diff --git a/packages/aws/package.json b/packages/aws/package.json index 5205bb4382..73a7241fa6 100644 --- a/packages/aws/package.json +++ b/packages/aws/package.json @@ -48,6 +48,11 @@ "bun": "./src/errors.ts", "default": "./lib/errors.js" }, + "./Presign": { + "types": "./lib/presign.d.ts", + "bun": "./src/presign.ts", + "default": "./lib/presign.js" + }, "./Region": { "types": "./lib/region.d.ts", "bun": "./src/region.ts", diff --git a/packages/aws/patches/aiops.json b/packages/aws/patches/aiops.json new file mode 100644 index 0000000000..5b1326e470 --- /dev/null +++ b/packages/aws/patches/aiops.json @@ -0,0 +1,13 @@ +{ + "operations": { + "getInvestigationGroup": { "errors": ["UnauthorizedException"] }, + "updateInvestigationGroup": { "errors": ["UnauthorizedException"] }, + "deleteInvestigationGroup": { "errors": ["UnauthorizedException"] }, + "getInvestigationGroupPolicy": { "errors": ["UnauthorizedException"] }, + "putInvestigationGroupPolicy": { "errors": ["UnauthorizedException"] }, + "deleteInvestigationGroupPolicy": { "errors": ["UnauthorizedException"] } + }, + "errorCategories": { + "UnauthorizedException": ["AuthError"] + } +} diff --git a/packages/aws/patches/amp.json b/packages/aws/patches/amp.json new file mode 100644 index 0000000000..271d240bd6 --- /dev/null +++ b/packages/aws/patches/amp.json @@ -0,0 +1,22 @@ +{ + "structures": { + "RuleGroupsNamespaceDescription": { + "members": { + "data": { + "optional": true + } + } + }, + "AlertManagerDefinitionDescription": { + "members": { + "data": { + "optional": true + } + } + } + }, + "operations": { + "createLoggingConfiguration": { "errors": ["ConflictException"] }, + "createQueryLoggingConfiguration": { "errors": ["ConflictException"] } + } +} diff --git a/packages/aws/patches/amplify.json b/packages/aws/patches/amplify.json new file mode 100644 index 0000000000..30069d503e --- /dev/null +++ b/packages/aws/patches/amplify.json @@ -0,0 +1,89 @@ +{ + "operations": { + "createApp": { "errors": ["TimeoutException"] }, + "createBackendEnvironment": { "errors": ["TimeoutException"] }, + "createBranch": { "errors": ["TimeoutException"] }, + "createDeployment": { "errors": ["TimeoutException"] }, + "createDomainAssociation": { "errors": ["TimeoutException"] }, + "createWebhook": { "errors": ["TimeoutException"] }, + "deleteApp": { "errors": ["TimeoutException"] }, + "deleteBackendEnvironment": { "errors": ["TimeoutException"] }, + "deleteBranch": { "errors": ["TimeoutException"] }, + "deleteDomainAssociation": { "errors": ["TimeoutException"] }, + "deleteJob": { "errors": ["TimeoutException"] }, + "deleteWebhook": { "errors": ["TimeoutException"] }, + "generateAccessLogs": { "errors": ["TimeoutException"] }, + "getApp": { "errors": ["TimeoutException"] }, + "getArtifactUrl": { "errors": ["TimeoutException"] }, + "getBackendEnvironment": { "errors": ["TimeoutException"] }, + "getBranch": { "errors": ["TimeoutException"] }, + "getDomainAssociation": { "errors": ["TimeoutException"] }, + "getJob": { "errors": ["TimeoutException"] }, + "getWebhook": { "errors": ["TimeoutException"] }, + "listApps": { "errors": ["TimeoutException"] }, + "listArtifacts": { "errors": ["TimeoutException"] }, + "listBackendEnvironments": { "errors": ["TimeoutException"] }, + "listBranches": { "errors": ["TimeoutException"] }, + "listDomainAssociations": { "errors": ["TimeoutException"] }, + "listJobs": { "errors": ["TimeoutException"] }, + "listTagsForResource": { "errors": ["TimeoutException"] }, + "listWebhooks": { "errors": ["TimeoutException"] }, + "startDeployment": { "errors": ["TimeoutException"] }, + "startJob": { "errors": ["TimeoutException"] }, + "stopJob": { "errors": ["TimeoutException"] }, + "tagResource": { "errors": ["TimeoutException"] }, + "untagResource": { "errors": ["TimeoutException"] }, + "updateApp": { "errors": ["TimeoutException"] }, + "updateBranch": { "errors": ["TimeoutException"] }, + "updateDomainAssociation": { "errors": ["TimeoutException"] }, + "updateWebhook": { "errors": ["TimeoutException"] } + }, + "errors": { + "TimeoutException": { + "message": { "type": "string" } + } + }, + "structures": { + "App": { + "members": { + "repository": { "optional": true }, + "description": { "optional": true }, + "environmentVariables": { "optional": true }, + "enableBranchAutoBuild": { "optional": true }, + "enableBasicAuth": { "optional": true }, + "defaultDomain": { "optional": true }, + "platform": { "optional": true } + } + }, + "JobSummary": { + "members": { + "commitId": { "optional": true }, + "commitMessage": { "optional": true }, + "commitTime": { "optional": true }, + "jobType": { "optional": true } + } + }, + "CreateDeploymentResult": { + "members": { + "fileUploadUrls": { "optional": true } + } + }, + "Branch": { + "members": { + "description": { "optional": true }, + "displayName": { "optional": true }, + "stage": { "optional": true }, + "enableNotification": { "optional": true }, + "environmentVariables": { "optional": true }, + "enableAutoBuild": { "optional": true }, + "customDomains": { "optional": true }, + "framework": { "optional": true }, + "activeJobId": { "optional": true }, + "totalNumberOfJobs": { "optional": true }, + "enableBasicAuth": { "optional": true }, + "ttl": { "optional": true }, + "enablePullRequestPreview": { "optional": true } + } + } + } +} diff --git a/packages/aws/patches/api-gateway.json b/packages/aws/patches/api-gateway.json new file mode 100644 index 0000000000..0aa5a742c0 --- /dev/null +++ b/packages/aws/patches/api-gateway.json @@ -0,0 +1,14 @@ +{ + "structures": { + "ApiKey": { + "members": { + "value": { "sensitive": true } + } + }, + "CreateApiKeyRequest": { + "members": { + "value": { "sensitive": true } + } + } + } +} diff --git a/packages/aws/patches/appflow.json b/packages/aws/patches/appflow.json new file mode 100644 index 0000000000..6f90e3571d --- /dev/null +++ b/packages/aws/patches/appflow.json @@ -0,0 +1,58 @@ +{ + "operations": { + "createConnectorProfile": { + "errors": ["ConnectorServerException"] + }, + "updateConnectorProfile": { + "errors": ["ConnectorServerException"] + } + }, + "structures": { + "DatadogConnectorProfileCredentials": { + "members": { + "applicationKey": { "sensitive": true } + } + }, + "DynatraceConnectorProfileCredentials": { + "members": { + "apiToken": { "sensitive": true } + } + }, + "InforNexusConnectorProfileCredentials": { + "members": { + "secretAccessKey": { "sensitive": true }, + "datakey": { "sensitive": true } + } + }, + "GoogleAnalyticsConnectorProfileCredentials": { + "members": { + "refreshToken": { "sensitive": true } + } + }, + "HoneycodeConnectorProfileCredentials": { + "members": { + "refreshToken": { "sensitive": true } + } + }, + "SalesforceConnectorProfileCredentials": { + "members": { + "refreshToken": { "sensitive": true } + } + }, + "OAuth2Credentials": { + "members": { + "refreshToken": { "sensitive": true } + } + }, + "OAuthCredentials": { + "members": { + "refreshToken": { "sensitive": true } + } + }, + "PardotConnectorProfileCredentials": { + "members": { + "refreshToken": { "sensitive": true } + } + } + } +} diff --git a/packages/aws/patches/appintegrations.json b/packages/aws/patches/appintegrations.json new file mode 100644 index 0000000000..e9fb2ebe75 --- /dev/null +++ b/packages/aws/patches/appintegrations.json @@ -0,0 +1,38 @@ +{ + "errorCategories": { + "TooManyRequestsException": ["ThrottlingError", "RetryableError"] + }, + "operations": { + "createApplication": { "errors": ["TooManyRequestsException"] }, + "createDataIntegration": { "errors": ["TooManyRequestsException"] }, + "createDataIntegrationAssociation": { + "errors": ["TooManyRequestsException"] + }, + "createEventIntegration": { "errors": ["TooManyRequestsException"] }, + "deleteApplication": { "errors": ["TooManyRequestsException"] }, + "deleteDataIntegration": { "errors": ["TooManyRequestsException"] }, + "deleteEventIntegration": { "errors": ["TooManyRequestsException"] }, + "getApplication": { "errors": ["TooManyRequestsException"] }, + "getDataIntegration": { "errors": ["TooManyRequestsException"] }, + "getEventIntegration": { "errors": ["TooManyRequestsException"] }, + "listApplicationAssociations": { "errors": ["TooManyRequestsException"] }, + "listApplications": { "errors": ["TooManyRequestsException"] }, + "listDataIntegrationAssociations": { + "errors": ["TooManyRequestsException"] + }, + "listDataIntegrations": { "errors": ["TooManyRequestsException"] }, + "listEventIntegrationAssociations": { + "errors": ["TooManyRequestsException"] + }, + "listEventIntegrations": { "errors": ["TooManyRequestsException"] }, + "listTagsForResource": { "errors": ["TooManyRequestsException"] }, + "tagResource": { "errors": ["TooManyRequestsException"] }, + "untagResource": { "errors": ["TooManyRequestsException"] }, + "updateApplication": { "errors": ["TooManyRequestsException"] }, + "updateDataIntegration": { "errors": ["TooManyRequestsException"] }, + "updateDataIntegrationAssociation": { + "errors": ["TooManyRequestsException"] + }, + "updateEventIntegration": { "errors": ["TooManyRequestsException"] } + } +} diff --git a/packages/aws/patches/application-auto-scaling.json b/packages/aws/patches/application-auto-scaling.json new file mode 100644 index 0000000000..6b97573b8c --- /dev/null +++ b/packages/aws/patches/application-auto-scaling.json @@ -0,0 +1,13 @@ +{ + "operations": { + "getPredictiveScalingForecast": { + "syntheticErrors": [ + { + "name": "PredictiveScalingForecastNotSupported", + "from": "AccessDeniedException", + "message": { "includes": "GetPredictiveScalingForecast is not supported" } + } + ] + } + } +} diff --git a/packages/aws/patches/application-signals.json b/packages/aws/patches/application-signals.json new file mode 100644 index 0000000000..0944b39e52 --- /dev/null +++ b/packages/aws/patches/application-signals.json @@ -0,0 +1,28 @@ +{ + "structures": { + "ServiceLevelObjectiveBudgetReportError": { + "members": { + "Name": { + "optional": true + } + } + }, + "Service": { + "members": { + "KeyAttributes": { + "optional": true + }, + "MetricReferences": { + "optional": true + } + } + }, + "RecurrenceRule": { + "members": { + "Expression": { + "optional": true + } + } + } + } +} \ No newline at end of file diff --git a/packages/aws/patches/apprunner.json b/packages/aws/patches/apprunner.json new file mode 100644 index 0000000000..0f8fb2a2f8 --- /dev/null +++ b/packages/aws/patches/apprunner.json @@ -0,0 +1,10 @@ +{ + "enums": { + "AutoScalingConfigurationStatus": { + "add": ["active", "inactive"] + }, + "VpcConnectorStatus": { + "add": ["active", "inactive"] + } + } +} diff --git a/packages/aws/patches/athena.json b/packages/aws/patches/athena.json new file mode 100644 index 0000000000..2832f85c00 --- /dev/null +++ b/packages/aws/patches/athena.json @@ -0,0 +1,99 @@ +{ + "operations": { + "getWorkGroup": { + "syntheticErrors": [ + { + "name": "WorkGroupNotFound", + "from": "InvalidRequestException", + "message": { "matches": "WorkGroup.*not found" } + } + ] + }, + "updateWorkGroup": { + "syntheticErrors": [ + { + "name": "WorkGroupNotFound", + "from": "InvalidRequestException", + "message": { "matches": "WorkGroup.*not found" } + } + ] + }, + "getNamedQuery": { + "syntheticErrors": [ + { + "name": "NamedQueryNotFound", + "from": "InvalidRequestException", + "message": { "matches": "NamedQuery.*does not exist" } + } + ] + }, + "updateNamedQuery": { + "syntheticErrors": [ + { + "name": "NamedQueryNotFound", + "from": "InvalidRequestException", + "message": { "matches": "NamedQuery.*does not exist" } + } + ] + }, + "deleteNamedQuery": { + "syntheticErrors": [ + { + "name": "NamedQueryNotFound", + "from": "InvalidRequestException", + "message": { "matches": "NamedQuery.*does not exist" } + } + ] + }, + "getPreparedStatement": { + "syntheticErrors": [ + { + "name": "WorkGroupNotFound", + "from": "InvalidRequestException", + "message": { "matches": "WorkGroup.*not found" } + } + ] + }, + "deletePreparedStatement": { + "syntheticErrors": [ + { + "name": "WorkGroupNotFound", + "from": "InvalidRequestException", + "message": { "matches": "WorkGroup.*not found" } + } + ] + }, + "getDataCatalog": { + "syntheticErrors": [ + { + "name": "DataCatalogNotFound", + "from": "InvalidRequestException", + "message": { "matches": "DataCatalog.*not found" } + } + ] + }, + "updateDataCatalog": { + "syntheticErrors": [ + { + "name": "DataCatalogNotFound", + "from": "InvalidRequestException", + "message": { "matches": "DataCatalog.*not found" } + } + ] + }, + "deleteDataCatalog": { + "syntheticErrors": [ + { + "name": "DataCatalogNotFound", + "from": "InvalidRequestException", + "message": { "matches": "DataCatalog.*not found" } + } + ] + } + }, + "errorCategories": { + "WorkGroupNotFound": ["NotFoundError"], + "NamedQueryNotFound": ["NotFoundError"], + "DataCatalogNotFound": ["NotFoundError"] + } +} diff --git a/packages/aws/patches/auditmanager.json b/packages/aws/patches/auditmanager.json new file mode 100644 index 0000000000..0b4095043b --- /dev/null +++ b/packages/aws/patches/auditmanager.json @@ -0,0 +1,20 @@ +{ + "operations": { + "registerAccount": { + "syntheticErrors": [ + { + "name": "AuditManagerMaintenanceMode", + "from": "ValidationException", + "message": { + "includes": "maintenance mode" + } + } + ] + } + }, + "errorCategories": { + "AuditManagerMaintenanceMode": [ + "BadRequestError" + ] + } +} diff --git a/packages/aws/patches/auto-scaling.json b/packages/aws/patches/auto-scaling.json new file mode 100644 index 0000000000..40b6ca96f5 --- /dev/null +++ b/packages/aws/patches/auto-scaling.json @@ -0,0 +1,58 @@ +{ + "operations": { + "describeScheduledActions": { + "syntheticErrors": [ + { + "name": "AutoScalingGroupNotFound", + "from": "ValidationError", + "message": { "includes": "not found" } + } + ] + }, + "putScheduledUpdateGroupAction": { + "syntheticErrors": [ + { + "name": "AutoScalingGroupNotFound", + "from": "ValidationError", + "message": { "includes": "not found" } + } + ] + }, + "deleteScheduledAction": { + "syntheticErrors": [ + { + "name": "AutoScalingGroupNotFound", + "from": "ValidationError", + "message": { "includes": "not found" } + } + ] + }, + "describeLifecycleHooks": { + "syntheticErrors": [ + { + "name": "AutoScalingGroupNotFound", + "from": "ValidationError", + "message": { "includes": "not found" } + } + ] + }, + "putLifecycleHook": { + "syntheticErrors": [ + { + "name": "AutoScalingGroupNotFound", + "from": "ValidationError", + "message": { "includes": "not found" } + } + ] + }, + "deleteLifecycleHook": { + "syntheticErrors": [ + { + "name": "AutoScalingGroupNotFound", + "from": "ValidationError", + "message": { "includes": "not found" } + } + ] + } + } +} diff --git a/packages/aws/patches/batch.json b/packages/aws/patches/batch.json new file mode 100644 index 0000000000..638b24855a --- /dev/null +++ b/packages/aws/patches/batch.json @@ -0,0 +1,113 @@ +{ + "operations": { + "updateComputeEnvironment": { + "syntheticErrors": [ + { + "name": "ComputeEnvironmentNotFound", + "from": "ClientException", + "message": { + "matches": "compute-environment/.* does not exist" + } + }, + { + "name": "ComputeEnvironmentBeingModified", + "from": "ClientException", + "message": { + "includes": "is being modified" + } + } + ] + }, + "deleteComputeEnvironment": { + "syntheticErrors": [ + { + "name": "ComputeEnvironmentNotFound", + "from": "ClientException", + "message": { + "matches": "compute-environment/.* does not exist" + } + }, + { + "name": "ComputeEnvironmentInUse", + "from": "ClientException", + "message": { + "includes": "found existing JobQueue relationship" + } + }, + { + "name": "ComputeEnvironmentBeingModified", + "from": "ClientException", + "message": { + "includes": "is being modified" + } + } + ] + }, + "createJobQueue": { + "syntheticErrors": [ + { + "name": "ComputeEnvironmentNotValid", + "from": "ClientException", + "message": { + "matches": "must be (created and )?valid before attaching" + } + }, + { + "name": "JobQueueAlreadyExists", + "from": "ClientException", + "message": { + "includes": "already exists" + } + } + ] + }, + "updateJobQueue": { + "syntheticErrors": [ + { + "name": "JobQueueNotFound", + "from": "ClientException", + "message": { + "matches": "job-queue/.* does not exist" + } + }, + { + "name": "JobQueueBeingModified", + "from": "ClientException", + "message": { + "includes": "is being modified" + } + } + ] + }, + "deleteJobQueue": { + "syntheticErrors": [ + { + "name": "JobQueueNotFound", + "from": "ClientException", + "message": { + "matches": "job-queue/.* does not exist" + } + }, + { + "name": "JobQueueBeingModified", + "from": "ClientException", + "message": { + "includes": "is being modified" + } + } + ] + } + }, + "errorCategories": { + "ComputeEnvironmentNotFound": ["NotFoundError"], + "ComputeEnvironmentBeingModified": ["ConflictError", "RetryableError"], + "ComputeEnvironmentInUse": ["DependencyViolationError", "RetryableError"], + "ComputeEnvironmentNotValid": [ + "DependencyViolationError", + "RetryableError" + ], + "JobQueueNotFound": ["NotFoundError"], + "JobQueueAlreadyExists": ["AlreadyExistsError", "ConflictError"], + "JobQueueBeingModified": ["ConflictError", "RetryableError"] + } +} diff --git a/packages/aws/patches/bedrock-agent.json b/packages/aws/patches/bedrock-agent.json new file mode 100644 index 0000000000..19d4cf0503 --- /dev/null +++ b/packages/aws/patches/bedrock-agent.json @@ -0,0 +1,9 @@ +{ + "structures": { + "Agent": { + "members": { + "agentVersion": { "optional": true } + } + } + } +} diff --git a/packages/aws/patches/bedrock-agentcore-control.json b/packages/aws/patches/bedrock-agentcore-control.json new file mode 100644 index 0000000000..c70d94be41 --- /dev/null +++ b/packages/aws/patches/bedrock-agentcore-control.json @@ -0,0 +1,9 @@ +{ + "structures": { + "WorkloadIdentityDetails": { + "members": { + "workloadIdentityArn": { "optional": true } + } + } + } +} diff --git a/packages/aws/patches/bedrock-agentcore.json b/packages/aws/patches/bedrock-agentcore.json new file mode 100644 index 0000000000..17785d0c59 --- /dev/null +++ b/packages/aws/patches/bedrock-agentcore.json @@ -0,0 +1,19 @@ +{ + "structures": { + "Event": { + "members": { + "payload": { "optional": true } + } + }, + "MemoryRecord": { + "members": { + "memoryStrategyId": { "optional": true } + } + }, + "MemoryRecordSummary": { + "members": { + "memoryStrategyId": { "optional": true } + } + } + } +} diff --git a/packages/aws/patches/chatbot.json b/packages/aws/patches/chatbot.json new file mode 100644 index 0000000000..744eac026d --- /dev/null +++ b/packages/aws/patches/chatbot.json @@ -0,0 +1,68 @@ +{ + "operations": { + "getMicrosoftTeamsChannelConfiguration": { + "errors": [ + "ResourceNotFoundException" + ] + }, + "listAssociations": { + "errors": [ + "InvalidRequestException" + ] + }, + "associateToConfiguration": { + "errors": [ + "ResourceNotFoundException" + ] + }, + "disassociateFromConfiguration": { + "errors": [ + "ResourceNotFoundException" + ] + }, + "createSlackChannelConfiguration": { + "syntheticErrors": [ + { + "name": "SlackWorkspaceNotAuthorized", + "from": "InvalidRequestException", + "message": { + "includes": "is not authorized with AWS account" + } + } + ] + }, + "createMicrosoftTeamsChannelConfiguration": { + "syntheticErrors": [ + { + "name": "MicrosoftTeamsTeamNotConfigured", + "from": "InvalidRequestException", + "message": { + "includes": "team id you are using is not configured" + } + } + ] + }, + "deleteMicrosoftTeamsConfiguredTeam": { + "errors": [ + "ResourceNotFoundException" + ] + } + }, + "structures": { + "CustomActionAttachment": { + "members": { + "NotificationType": { + "optional": false + } + } + } + }, + "errorCategories": { + "SlackWorkspaceNotAuthorized": [ + "BadRequestError" + ], + "MicrosoftTeamsTeamNotConfigured": [ + "BadRequestError" + ] + } +} diff --git a/packages/aws/patches/cloudformation.json b/packages/aws/patches/cloudformation.json new file mode 100644 index 0000000000..82fc42f566 --- /dev/null +++ b/packages/aws/patches/cloudformation.json @@ -0,0 +1,25 @@ +{ + "operations": { + "describeStacks": { + "syntheticErrors": [ + { + "name": "StackNotFound", + "from": "ValidationError", + "message": { "includes": "does not exist" } + } + ] + }, + "updateStack": { + "syntheticErrors": [ + { + "name": "NoUpdateToPerform", + "from": "ValidationError", + "message": { "includes": "No updates are to be performed" } + } + ] + } + }, + "errorCategories": { + "StackNotFound": ["NotFoundError"] + } +} diff --git a/packages/aws/patches/cloudfront.json b/packages/aws/patches/cloudfront.json index db250c3caa..223932caa1 100644 --- a/packages/aws/patches/cloudfront.json +++ b/packages/aws/patches/cloudfront.json @@ -119,4 +119,4 @@ } } } -} +} \ No newline at end of file diff --git a/packages/aws/patches/cloudtrail.json b/packages/aws/patches/cloudtrail.json new file mode 100644 index 0000000000..c54c9a9efd --- /dev/null +++ b/packages/aws/patches/cloudtrail.json @@ -0,0 +1,20 @@ +{ + "operations": { + "createEventDataStore": { + "syntheticErrors": [ + { + "name": "CloudTrailLakeOnboardingClosed", + "from": "InvalidParameterException", + "message": { + "includes": "no longer accepting new customers" + } + } + ] + } + }, + "errorCategories": { + "CloudTrailLakeOnboardingClosed": [ + "BadRequestError" + ] + } +} diff --git a/packages/aws/patches/cloudwatch.json b/packages/aws/patches/cloudwatch.json new file mode 100644 index 0000000000..d51ea5edaa --- /dev/null +++ b/packages/aws/patches/cloudwatch.json @@ -0,0 +1,10 @@ +{ + "errorCategories": { + "ValidationException": ["BadRequestError"] + }, + "operations": { + "describeAlarmContributors": { + "errors": ["ValidationException"] + } + } +} diff --git a/packages/aws/patches/codeartifact.json b/packages/aws/patches/codeartifact.json new file mode 100644 index 0000000000..9e8dc13c9e --- /dev/null +++ b/packages/aws/patches/codeartifact.json @@ -0,0 +1,9 @@ +{ + "structures": { + "GetAuthorizationTokenResult": { + "members": { + "authorizationToken": { "sensitive": true } + } + } + } +} diff --git a/packages/aws/patches/codepipeline.json b/packages/aws/patches/codepipeline.json new file mode 100644 index 0000000000..14cf300c36 --- /dev/null +++ b/packages/aws/patches/codepipeline.json @@ -0,0 +1,21 @@ +{ + "structures": { + "WebhookAuthConfiguration": { + "members": { + "SecretToken": { "sensitive": true } + } + }, + "ActionRevision": { + "members": { + "revisionChangeId": { "optional": true }, + "created": { "optional": true } + } + }, + "RuleRevision": { + "members": { + "revisionChangeId": { "optional": true }, + "created": { "optional": true } + } + } + } +} diff --git a/packages/aws/patches/cognito-identity.json b/packages/aws/patches/cognito-identity.json new file mode 100644 index 0000000000..bcf64458aa --- /dev/null +++ b/packages/aws/patches/cognito-identity.json @@ -0,0 +1,9 @@ +{ + "structures": { + "Credentials": { + "members": { + "SessionToken": { "sensitive": true } + } + } + } +} diff --git a/packages/aws/patches/comprehend.json b/packages/aws/patches/comprehend.json new file mode 100644 index 0000000000..722ae23750 --- /dev/null +++ b/packages/aws/patches/comprehend.json @@ -0,0 +1,29 @@ +{ + "operations": { + "startEventsDetectionJob": { + "errors": ["NotAuthorizedException"] + }, + "stopEventsDetectionJob": { + "errors": ["NotAuthorizedException"] + }, + "describeEventsDetectionJob": { + "errors": ["NotAuthorizedException"] + }, + "listEventsDetectionJobs": { + "errors": ["NotAuthorizedException"] + }, + "classifyDocument": { + "errors": ["NotAuthorizedException"] + } + }, + "errors": { + "NotAuthorizedException": { + "message": { + "type": "string" + } + } + }, + "errorCategories": { + "NotAuthorizedException": ["AuthError"] + } +} diff --git a/packages/aws/patches/controltower.json b/packages/aws/patches/controltower.json new file mode 100644 index 0000000000..e77c1812a2 --- /dev/null +++ b/packages/aws/patches/controltower.json @@ -0,0 +1,28 @@ +{ + "operations": { + "createLandingZone": { "errors": ["UnauthorizedException"] }, + "getLandingZone": { "errors": ["UnauthorizedException"] }, + "updateLandingZone": { "errors": ["UnauthorizedException"] }, + "deleteLandingZone": { "errors": ["UnauthorizedException"] }, + "resetLandingZone": { "errors": ["UnauthorizedException"] }, + "getLandingZoneOperation": { "errors": ["UnauthorizedException"] }, + "listLandingZoneOperations": { "errors": ["UnauthorizedException"] }, + "listLandingZones": { "errors": ["UnauthorizedException"] }, + "getBaseline": { "errors": ["UnauthorizedException"] }, + "listBaselines": { "errors": ["UnauthorizedException"] }, + "getBaselineOperation": { "errors": ["UnauthorizedException"] }, + "enableBaseline": { "errors": ["UnauthorizedException"] }, + "disableBaseline": { "errors": ["UnauthorizedException"] }, + "updateEnabledBaseline": { "errors": ["UnauthorizedException"] }, + "resetEnabledBaseline": { "errors": ["UnauthorizedException"] }, + "getEnabledBaseline": { "errors": ["UnauthorizedException"] }, + "listEnabledBaselines": { "errors": ["UnauthorizedException"] }, + "listTagsForResource": { "errors": ["BadRequestException"] }, + "tagResource": { "errors": ["BadRequestException"] }, + "untagResource": { "errors": ["BadRequestException"] } + }, + "errorCategories": { + "UnauthorizedException": ["AuthError"], + "BadRequestException": ["BadRequestError"] + } +} diff --git a/packages/aws/patches/cost-and-usage-report-service.json b/packages/aws/patches/cost-and-usage-report-service.json new file mode 100644 index 0000000000..843abde497 --- /dev/null +++ b/packages/aws/patches/cost-and-usage-report-service.json @@ -0,0 +1,25 @@ +{ + "operations": { + "putReportDefinition": { + "syntheticErrors": [ + { + "name": "ReportBucketNotVerified", + "from": "ValidationException", + "message": { "matches": "[Bb]ucket" } + } + ] + }, + "modifyReportDefinition": { + "syntheticErrors": [ + { + "name": "ReportBucketNotVerified", + "from": "ValidationException", + "message": { "matches": "[Bb]ucket" } + } + ] + } + }, + "errorCategories": { + "ReportBucketNotVerified": ["RetryableError"] + } +} diff --git a/packages/aws/patches/cost-explorer.json b/packages/aws/patches/cost-explorer.json new file mode 100644 index 0000000000..54b3400957 --- /dev/null +++ b/packages/aws/patches/cost-explorer.json @@ -0,0 +1,47 @@ +{ + "operations": { + "createAnomalyMonitor": { + "syntheticErrors": [ + { + "name": "AnomalyMonitorAlreadyExists", + "from": "ValidationException", + "message": { + "includes": "same monitor name as an existing monitor" + } + } + ] + }, + "createAnomalySubscription": { + "syntheticErrors": [ + { + "name": "AnomalySubscriptionAlreadyExists", + "from": "ValidationException", + "message": { + "includes": "same subscription name as an existing subscription" + } + } + ] + }, + "getRightsizingRecommendation": { + "syntheticErrors": [ + { + "name": "RightsizingRecommendationNotEnabled", + "from": "AccessDeniedException", + "message": { + "includes": "opt-in only feature" + } + } + ] + } + }, + "errorCategories": { + "AnomalyMonitorAlreadyExists": [ + "AlreadyExistsError", + "ConflictError" + ], + "AnomalySubscriptionAlreadyExists": [ + "AlreadyExistsError", + "ConflictError" + ] + } +} diff --git a/packages/aws/patches/databrew.json b/packages/aws/patches/databrew.json new file mode 100644 index 0000000000..25a63f67c0 --- /dev/null +++ b/packages/aws/patches/databrew.json @@ -0,0 +1,279 @@ +{ + "errorCategories": { + "TooManyRequestsException": [ + "ThrottlingError", + "RetryableError" + ], + "DataBrewRoleNotAssumable": [ + "BadRequestError", + "RetryableError" + ] + }, + "operations": { + "batchDeleteRecipeVersion": { + "errors": [ + "TooManyRequestsException" + ] + }, + "createDataset": { + "errors": [ + "TooManyRequestsException" + ] + }, + "createProfileJob": { + "errors": [ + "TooManyRequestsException" + ], + "syntheticErrors": [ + { + "name": "DataBrewRoleNotAssumable", + "from": "ValidationException", + "message": { + "includes": "is not a trusted entity for the data access role" + } + } + ] + }, + "createProject": { + "errors": [ + "TooManyRequestsException" + ], + "syntheticErrors": [ + { + "name": "DataBrewRoleNotAssumable", + "from": "ValidationException", + "message": { + "includes": "is not a trusted entity for the data access role" + } + } + ] + }, + "createRecipe": { + "errors": [ + "TooManyRequestsException" + ] + }, + "createRecipeJob": { + "errors": [ + "TooManyRequestsException" + ], + "syntheticErrors": [ + { + "name": "DataBrewRoleNotAssumable", + "from": "ValidationException", + "message": { + "includes": "is not a trusted entity for the data access role" + } + } + ] + }, + "createRuleset": { + "errors": [ + "TooManyRequestsException" + ] + }, + "createSchedule": { + "errors": [ + "TooManyRequestsException" + ] + }, + "deleteDataset": { + "errors": [ + "TooManyRequestsException" + ] + }, + "deleteJob": { + "errors": [ + "TooManyRequestsException" + ] + }, + "deleteProject": { + "errors": [ + "TooManyRequestsException" + ] + }, + "deleteRecipeVersion": { + "errors": [ + "TooManyRequestsException" + ] + }, + "deleteRuleset": { + "errors": [ + "TooManyRequestsException" + ] + }, + "deleteSchedule": { + "errors": [ + "TooManyRequestsException" + ] + }, + "describeDataset": { + "errors": [ + "TooManyRequestsException" + ] + }, + "describeJob": { + "errors": [ + "TooManyRequestsException" + ] + }, + "describeJobRun": { + "errors": [ + "TooManyRequestsException" + ] + }, + "describeProject": { + "errors": [ + "TooManyRequestsException" + ] + }, + "describeRecipe": { + "errors": [ + "TooManyRequestsException" + ] + }, + "describeRuleset": { + "errors": [ + "TooManyRequestsException" + ] + }, + "describeSchedule": { + "errors": [ + "TooManyRequestsException" + ] + }, + "listDatasets": { + "errors": [ + "TooManyRequestsException" + ] + }, + "listJobRuns": { + "errors": [ + "TooManyRequestsException" + ] + }, + "listJobs": { + "errors": [ + "TooManyRequestsException" + ] + }, + "listProjects": { + "errors": [ + "TooManyRequestsException" + ] + }, + "listRecipeVersions": { + "errors": [ + "TooManyRequestsException", + "ResourceNotFoundException" + ] + }, + "listRecipes": { + "errors": [ + "TooManyRequestsException" + ] + }, + "listRulesets": { + "errors": [ + "TooManyRequestsException" + ] + }, + "listSchedules": { + "errors": [ + "TooManyRequestsException" + ] + }, + "listTagsForResource": { + "errors": [ + "TooManyRequestsException" + ] + }, + "publishRecipe": { + "errors": [ + "TooManyRequestsException" + ] + }, + "startJobRun": { + "errors": [ + "TooManyRequestsException" + ] + }, + "stopJobRun": { + "errors": [ + "TooManyRequestsException" + ] + }, + "tagResource": { + "errors": [ + "TooManyRequestsException" + ] + }, + "untagResource": { + "errors": [ + "TooManyRequestsException" + ] + }, + "updateDataset": { + "errors": [ + "TooManyRequestsException" + ] + }, + "updateProfileJob": { + "errors": [ + "TooManyRequestsException" + ], + "syntheticErrors": [ + { + "name": "DataBrewRoleNotAssumable", + "from": "ValidationException", + "message": { + "includes": "is not a trusted entity for the data access role" + } + } + ] + }, + "updateProject": { + "errors": [ + "TooManyRequestsException" + ], + "syntheticErrors": [ + { + "name": "DataBrewRoleNotAssumable", + "from": "ValidationException", + "message": { + "includes": "is not a trusted entity for the data access role" + } + } + ] + }, + "updateRecipe": { + "errors": [ + "TooManyRequestsException" + ] + }, + "updateRecipeJob": { + "errors": [ + "TooManyRequestsException" + ], + "syntheticErrors": [ + { + "name": "DataBrewRoleNotAssumable", + "from": "ValidationException", + "message": { + "includes": "is not a trusted entity for the data access role" + } + } + ] + }, + "updateRuleset": { + "errors": [ + "TooManyRequestsException" + ] + }, + "updateSchedule": { + "errors": [ + "TooManyRequestsException" + ] + } + } +} \ No newline at end of file diff --git a/packages/aws/patches/dataexchange.json b/packages/aws/patches/dataexchange.json new file mode 100644 index 0000000000..0d3e4efa52 --- /dev/null +++ b/packages/aws/patches/dataexchange.json @@ -0,0 +1,19 @@ +{ + "structures": { + "ImportAssetFromApiGatewayApiRequestDetails": { + "members": { + "ApiKey": { "sensitive": true } + } + }, + "ImportAssetFromApiGatewayApiResponseDetails": { + "members": { + "ApiKey": { "sensitive": true } + } + }, + "ApiGatewayApiAsset": { + "members": { + "ApiKey": { "sensitive": true } + } + } + } +} diff --git a/packages/aws/patches/datasync.json b/packages/aws/patches/datasync.json new file mode 100644 index 0000000000..2b78bd86ba --- /dev/null +++ b/packages/aws/patches/datasync.json @@ -0,0 +1,101 @@ +{ + "operations": { + "createLocationS3": { + "syntheticErrors": [ + { + "name": "LocationRoleNotAssumable", + "from": "InvalidRequestException", + "message": { "includes": "Invalid IAM role" } + }, + { + "name": "LocationAccessTestFailed", + "from": "InvalidRequestException", + "message": { "includes": "location access test failed" } + } + ] + }, + "createLocationEfs": { + "syntheticErrors": [ + { + "name": "LocationRoleNotAssumable", + "from": "InvalidRequestException", + "message": { "includes": "Invalid IAM role" } + }, + { + "name": "LocationAccessTestFailed", + "from": "InvalidRequestException", + "message": { "includes": "location access test failed" } + } + ] + }, + "describeLocationS3": { + "syntheticErrors": [ + { + "name": "LocationNotFound", + "from": "InvalidRequestException", + "message": { "matches": "^Location .* is not found" } + } + ] + }, + "describeLocationEfs": { + "syntheticErrors": [ + { + "name": "LocationNotFound", + "from": "InvalidRequestException", + "message": { "matches": "^Location .* is not found" } + } + ] + }, + "deleteLocation": { + "syntheticErrors": [ + { + "name": "LocationNotFound", + "from": "InvalidRequestException", + "message": { "matches": "^Location .* is not found" } + } + ] + }, + "describeTask": { + "syntheticErrors": [ + { + "name": "TaskNotFound", + "from": "InvalidRequestException", + "message": { "matches": "^Task .* is not found" } + } + ] + }, + "updateTask": { + "syntheticErrors": [ + { + "name": "TaskNotFound", + "from": "InvalidRequestException", + "message": { "matches": "^Task .* is not found" } + } + ] + }, + "deleteTask": { + "syntheticErrors": [ + { + "name": "TaskNotFound", + "from": "InvalidRequestException", + "message": { "matches": "^Task .* is not found" } + } + ] + }, + "startTaskExecution": { + "syntheticErrors": [ + { + "name": "LocationAccessTestFailed", + "from": "InvalidRequestException", + "message": { "includes": "location access test failed" } + } + ] + } + }, + "errorCategories": { + "LocationNotFound": ["NotFoundError"], + "TaskNotFound": ["NotFoundError"], + "LocationRoleNotAssumable": ["RetryableError"], + "LocationAccessTestFailed": ["RetryableError"] + } +} diff --git a/packages/aws/patches/datazone.json b/packages/aws/patches/datazone.json new file mode 100644 index 0000000000..9f3ec1e9ee --- /dev/null +++ b/packages/aws/patches/datazone.json @@ -0,0 +1,34 @@ +{ + "operations": { + "listEnvironments": { + "errors": ["ResourceNotFoundException"] + }, + "listProjects": { + "errors": ["ResourceNotFoundException"] + }, + "deleteEnvironmentBlueprintConfiguration": { + "errors": ["ResourceNotFoundException"] + } + }, + "structures": { + "GetEnvironmentCredentialsOutput": { + "members": { + "secretAccessKey": { "sensitive": true }, + "sessionToken": { "sensitive": true } + } + }, + "ConnectionCredentials": { + "members": { + "secretAccessKey": { "sensitive": true }, + "sessionToken": { "sensitive": true } + } + } + }, + "unions": { + "ProvisioningProperties": { + "add": { + "manual": "smithy.api#Unit" + } + } + } +} diff --git a/packages/aws/patches/deadline.json b/packages/aws/patches/deadline.json new file mode 100644 index 0000000000..6e1e28f5ab --- /dev/null +++ b/packages/aws/patches/deadline.json @@ -0,0 +1,24 @@ +{ + "operations": { + "createQueue": { "errors": ["ConflictException"] }, + "createStorageProfile": { "errors": ["ConflictException"] }, + "createBudget": { "errors": ["ConflictException"] }, + "createFleet": { "errors": ["ConflictException"] }, + "createMonitor": { "errors": ["ConflictException"] }, + "updateFarm": { "errors": ["ConflictException"] }, + "updateStorageProfile": { "errors": ["ConflictException"] }, + "updateBudget": { + "errors": ["ConflictException", "InternalServerException"] + }, + "updateMonitor": { "errors": ["ConflictException"] }, + "deleteFarm": { "errors": ["ConflictException"] }, + "deleteBudget": { "errors": ["ConflictException"] }, + "deleteStorageProfile": { + "errors": ["ConflictException", "ResourceNotFoundException"] + }, + "deleteMonitor": { "errors": ["ConflictException"] } + }, + "errorCategories": { + "InternalServerException": ["ServerError", "RetryableError"] + } +} diff --git a/packages/aws/patches/docdb-elastic.json b/packages/aws/patches/docdb-elastic.json new file mode 100644 index 0000000000..5a658081d6 --- /dev/null +++ b/packages/aws/patches/docdb-elastic.json @@ -0,0 +1,9 @@ +{ + "structures": { + "Cluster": { + "members": { + "clusterEndpoint": { "optional": true } + } + } + } +} diff --git a/packages/aws/patches/docdb.json b/packages/aws/patches/docdb.json new file mode 100644 index 0000000000..314a9b77cf --- /dev/null +++ b/packages/aws/patches/docdb.json @@ -0,0 +1,19 @@ +{ + "structures": { + "CreateDBClusterMessage": { + "members": { + "MasterUserPassword": { "sensitive": true } + } + }, + "ModifyDBClusterMessage": { + "members": { + "MasterUserPassword": { "sensitive": true } + } + }, + "PendingModifiedValues": { + "members": { + "MasterUserPassword": { "sensitive": true } + } + } + } +} diff --git a/packages/aws/patches/ec2.json b/packages/aws/patches/ec2.json index d560a8b257..f864f6c43a 100644 --- a/packages/aws/patches/ec2.json +++ b/packages/aws/patches/ec2.json @@ -1,7 +1,15 @@ { "errorCategories": { - "RequestLimitExceeded": ["ThrottlingError"], - "IncorrectState": ["ConflictError"] + "RequestLimitExceeded": [ + "ThrottlingError" + ], + "IncorrectState": [ + "ConflictError" + ], + "VolumeInUse": [ + "ConflictError", + "RetryableError" + ] }, "operations": { "createVpc": { @@ -10,7 +18,8 @@ "InvalidParameterValue", "MissingParameter", "ParseError", - "VpcLimitExceeded" + "VpcLimitExceeded", + "UnauthorizedOperation" ] }, "deleteVpc": { @@ -20,7 +29,8 @@ "InvalidVpcID.NotFound", "InvalidVpcId.Malformed", "MissingParameter", - "RequestError" + "RequestError", + "UnauthorizedOperation" ] }, "createSubnet": { @@ -30,7 +40,8 @@ "InvalidVpcID.NotFound", "MissingParameter", "ParseError", - "InvalidSubnet.Conflict" + "InvalidSubnet.Conflict", + "UnauthorizedOperation" ] }, "deleteSubnet": { @@ -39,14 +50,16 @@ "DependencyViolation", "InvalidSubnetID.NotFound", "InvalidSubnetId.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createInternetGateway": { "errors": [ "RequestLimitExceeded", "InternetGatewayLimitExceeded", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "deleteInternetGateway": { @@ -54,7 +67,8 @@ "RequestLimitExceeded", "DependencyViolation", "InvalidInternetGatewayID.NotFound", - "InvalidInternetGatewayId.Malformed" + "InvalidInternetGatewayId.Malformed", + "UnauthorizedOperation" ] }, "attachInternetGateway": { @@ -63,7 +77,8 @@ "InvalidVpcID.NotFound", "InvalidInternetGatewayID.NotFound", "InvalidInternetGatewayId.Malformed", - "InvalidVpcId.Malformed" + "InvalidVpcId.Malformed", + "UnauthorizedOperation" ] }, "detachInternetGateway": { @@ -73,7 +88,8 @@ "Gateway.NotAttached", "InvalidInternetGatewayID.NotFound", "InvalidInternetGatewayId.Malformed", - "InvalidVpcId.Malformed" + "InvalidVpcId.Malformed", + "UnauthorizedOperation" ] }, "createRouteTable": { @@ -81,7 +97,8 @@ "RequestLimitExceeded", "InvalidVpcID.NotFound", "MissingParameter", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "deleteRouteTable": { @@ -89,7 +106,8 @@ "RequestLimitExceeded", "DependencyViolation", "InvalidRouteTableID.NotFound", - "InvalidRouteTableId.Malformed" + "InvalidRouteTableId.Malformed", + "UnauthorizedOperation" ] }, "createRoute": { @@ -103,7 +121,8 @@ "InvalidRouteTableId.Malformed", "InvalidVpcEndpointId.NotFound", "MissingParameter", - "RouteAlreadyExists" + "RouteAlreadyExists", + "UnauthorizedOperation" ] }, "createNatGateway": { @@ -113,7 +132,8 @@ "InvalidSubnet", "InvalidSubnetID.NotFound", "MissingParameter", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "describeVpcs": { @@ -121,28 +141,32 @@ "RequestLimitExceeded", "InvalidVpcID.NotFound", "ParseError", - "RequestError" + "RequestError", + "UnauthorizedOperation" ] }, "describeSubnets": { "errors": [ "RequestLimitExceeded", "InvalidSubnetID.NotFound", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "describeInternetGateways": { "errors": [ "RequestLimitExceeded", "InvalidInternetGatewayID.NotFound", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "describeRouteTables": { "errors": [ "RequestLimitExceeded", "InvalidRouteTableID.NotFound", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "deleteSecurityGroup": { @@ -153,7 +177,8 @@ "InvalidGroup.NotFound", "InvalidGroupId.Malformed", "MissingParameter", - "VPCIdNotSpecified" + "VPCIdNotSpecified", + "UnauthorizedOperation" ] }, "createNetworkAcl": { @@ -161,7 +186,8 @@ "RequestLimitExceeded", "InvalidVpcID.NotFound", "MissingParameter", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "deleteNetworkAcl": { @@ -172,7 +198,8 @@ "InvalidNetworkAclID.NotFound", "InvalidNetworkAclId.Malformed", "InvalidParameterValue", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createVpcPeeringConnection": { @@ -181,14 +208,16 @@ "InvalidVpcID.NotFound", "InvalidVpcId.Malformed", "MissingParameter", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "acceptVpcPeeringConnection": { "errors": [ "RequestLimitExceeded", "InvalidVpcPeeringConnectionID.NotFound", - "InvalidVpcPeeringConnectionId.NotFound" + "InvalidVpcPeeringConnectionId.NotFound", + "UnauthorizedOperation" ] }, "deleteDhcpOptions": { @@ -197,7 +226,8 @@ "DependencyViolation", "InvalidDhcpOptionID.NotFound", "InvalidDhcpOptionsID.NotFound", - "InvalidDhcpOptionsId.Malformed" + "InvalidDhcpOptionsId.Malformed", + "UnauthorizedOperation" ] }, "associateDhcpOptions": { @@ -205,7 +235,8 @@ "RequestLimitExceeded", "InvalidDhcpOptionsId.Malformed", "InvalidVpcID.NotFound", - "InvalidVpcId.Malformed" + "InvalidVpcId.Malformed", + "UnauthorizedOperation" ] }, "associateRouteTable": { @@ -218,7 +249,8 @@ "InvalidPublicIpv4PoolID.NotFound", "InvalidRouteTableID.NotFound", "InvalidSubnetID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "disassociateRouteTable": { @@ -226,7 +258,8 @@ "RequestLimitExceeded", "InvalidAssociationID.NotFound", "InvalidRouteTableID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "describeNatGateways": { @@ -237,7 +270,8 @@ "InvalidParameter", "NatGatewayMalformed", "NatGatewayNotFound", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "createVpcEndpoint": { @@ -247,14 +281,16 @@ "InvalidServiceName", "InvalidVpcID.NotFound", "InvalidVpcId.NotFound", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "deleteVpcEndpoints": { "errors": [ "RequestLimitExceeded", "InvalidVpcEndpointId.NotFound", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "rejectVpcPeeringConnection": { @@ -262,7 +298,8 @@ "RequestLimitExceeded", "InvalidVpcPeeringConnectionID.NotFound", "InvalidVpcPeeringConnectionId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteVpcPeeringConnection": { @@ -270,7 +307,8 @@ "RequestLimitExceeded", "InvalidVpcPeeringConnectionID.NotFound", "InvalidVpcPeeringConnectionId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "associateVpcCidrBlock": { @@ -280,14 +318,16 @@ "InvalidParameterCombination", "InvalidVpcID.NotFound", "InvalidVpcId.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "modifySubnetAttribute": { "errors": [ "RequestLimitExceeded", "InvalidSubnetID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "disassociateVpcCidrBlock": { @@ -296,7 +336,8 @@ "InvalidVpcCidrBlockAssociationID.NotFound", "InvalidVpcCidrBlockAssociationId.Malformed", "InvalidVpcCidrBlockAssociationIdError.NotFound", - "OperationNotPermitted" + "OperationNotPermitted", + "UnauthorizedOperation" ] }, "authorizeSecurityGroupIngress": { @@ -304,7 +345,8 @@ "RequestLimitExceeded", "InvalidGroup.NotFound", "InvalidGroupId.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "revokeSecurityGroupIngress": { @@ -314,7 +356,8 @@ "InvalidGroupId.Malformed", "InvalidPermission.NotFound", "MissingParameter", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "createNetworkInterface": { @@ -322,7 +365,8 @@ "RequestLimitExceeded", "InvalidSubnetID.NotFound", "MissingParameter", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "deleteNetworkInterface": { @@ -332,7 +376,8 @@ "InvalidNetworkInterfaceID.NotFound", "InvalidNetworkInterfaceId.Malformed", "InvalidParameterValue", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createEgressOnlyInternetGateway": { @@ -341,7 +386,8 @@ "InvalidVpcID.NotFound", "InvalidVpcId.Malformed", "MissingParameter", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "deleteEgressOnlyInternetGateway": { @@ -352,24 +398,32 @@ "InvalidGatewayID.NotFound", "MalformedGatewayID.NotFound", "MissingParameter", - "RequestLimitExceeded" + "RequestLimitExceeded", + "UnauthorizedOperation" ] }, "createVpnGateway": { - "errors": ["RequestLimitExceeded", "MissingParameter", "ParseError"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "ParseError", + "UnauthorizedOperation" + ] }, "deleteVpnGateway": { "errors": [ "RequestLimitExceeded", "IncorrectState", - "InvalidVpnGatewayID.NotFound" + "InvalidVpnGatewayID.NotFound", + "UnauthorizedOperation" ] }, "attachVpnGateway": { "errors": [ "RequestLimitExceeded", "InvalidVpcID.NotFound", - "InvalidVpnGatewayID.NotFound" + "InvalidVpnGatewayID.NotFound", + "UnauthorizedOperation" ] }, "detachVpnGateway": { @@ -378,7 +432,8 @@ "DependencyViolation", "IncorrectState", "InvalidVpnGatewayID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createSecurityGroup": { @@ -389,17 +444,24 @@ "InvalidVpcID.NotFound", "InvalidVpcId.Malformed", "MissingParameter", - "VPCIdNotSpecified" + "VPCIdNotSpecified", + "UnauthorizedOperation" ] }, "createDhcpOptions": { - "errors": ["RequestLimitExceeded", "MissingParameter", "ParseError"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "ParseError", + "UnauthorizedOperation" + ] }, "createNetworkAclEntry": { "errors": [ "RequestLimitExceeded", "InvalidNetworkAclID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteNetworkAclEntry": { @@ -408,14 +470,16 @@ "InvalidNetworkAclEntry.NotFound", "InvalidNetworkAclID.NotFound", "InvalidNetworkAclId.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "replaceNetworkAclEntry": { "errors": [ "RequestLimitExceeded", "InvalidNetworkAclID.NotFound", - "InvalidNetworkAclId.Malformed" + "InvalidNetworkAclId.Malformed", + "UnauthorizedOperation" ] }, "createVpnConnection": { @@ -424,46 +488,57 @@ "InvalidCustomerGatewayID.NotFound", "InvalidParameterValue", "MissingParameter", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "deleteVpnConnection": { "errors": [ "RequestLimitExceeded", "InvalidVpnConnectionID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createCustomerGateway": { - "errors": ["RequestLimitExceeded", "MissingParameter", "ParseError"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "ParseError", + "UnauthorizedOperation" + ] }, "createTransitGatewayVpcAttachment": { "errors": [ "RequestLimitExceeded", "InvalidSubnetID.NotFound", "InvalidTransitGatewayID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "describeVpcAttribute": { "errors": [ "RequestLimitExceeded", "InvalidParameterCombination", - "InvalidVpcID.NotFound" + "InvalidVpcID.NotFound", + "UnauthorizedOperation" ] }, "describeVpnGateways": { "errors": [ "RequestLimitExceeded", "InvalidVpnGatewayID.NotFound", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "describeCustomerGateways": { "errors": [ "RequestLimitExceeded", "InvalidCustomerGatewayID.NotFound", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "authorizeSecurityGroupEgress": { @@ -471,7 +546,8 @@ "RequestLimitExceeded", "InvalidGroup.NotFound", "InvalidGroupId.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "revokeSecurityGroupEgress": { @@ -484,7 +560,8 @@ "InvalidPermission.NotFound", "InvalidSecurityGroupRuleId.Malformed", "MissingParameter", - "UnknownParameter" + "UnknownParameter", + "UnauthorizedOperation" ] }, "describeSecurityGroups": { @@ -493,7 +570,8 @@ "InvalidGroup.NotFound", "InvalidGroupId.Malformed", "ParseError", - "VPCIdNotSpecified" + "VPCIdNotSpecified", + "UnauthorizedOperation" ] }, "describeNetworkAcls": { @@ -501,7 +579,8 @@ "RequestLimitExceeded", "InvalidNetworkAclID.NotFound", "InvalidRouteTableID.NotFound", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "createCarrierGateway": { @@ -510,7 +589,8 @@ "InvalidVpcID.NotFound", "InvalidVpcId.Malformed", "MissingParameter", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "deleteCarrierGateway": { @@ -518,7 +598,8 @@ "RequestLimitExceeded", "InvalidCarrierGatewayID.Malformed", "InvalidCarrierGatewayID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createFlowLogs": { @@ -526,44 +607,63 @@ "RequestLimitExceeded", "InvalidID", "InvalidParameterValue", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteFlowLogs": { - "errors": ["RequestLimitExceeded", "InvalidFlowLogId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidFlowLogId.NotFound", + "UnauthorizedOperation" + ] }, "createManagedPrefixList": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue", "ParseError"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "ParseError", + "UnauthorizedOperation" + ] }, "describeVpcPeeringConnections": { "errors": [ "RequestLimitExceeded", "InvalidVpcPeeringConnectionID.NotFound", - "ParseError" + "InvalidVpcPeeringConnectionId.NotFound", + "ParseError", + "UnauthorizedOperation" ] }, "modifyVpcPeeringConnectionOptions": { "errors": [ "RequestLimitExceeded", "InvalidVpcPeeringConnectionID.NotFound", - "InvalidVpcPeeringConnectionId.NotFound" + "InvalidVpcPeeringConnectionId.NotFound", + "UnauthorizedOperation" ] }, "describeVpcEndpoints": { "errors": [ "RequestLimitExceeded", "InvalidVpcEndpointId.NotFound", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "modifyVpcEndpoint": { - "errors": ["RequestLimitExceeded", "InvalidVpcEndpointId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidVpcEndpointId.NotFound", + "UnauthorizedOperation" + ] }, "replaceRoute": { "errors": [ "RequestLimitExceeded", "InvalidRouteTableID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteRoute": { @@ -574,18 +674,24 @@ "InvalidRoute.NotFound", "InvalidRouteTableID.NotFound", "InvalidRouteTableId.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "describeVpcEndpointServices": { - "errors": ["RequestLimitExceeded", "ParseError"] + "errors": [ + "RequestLimitExceeded", + "ParseError", + "UnauthorizedOperation" + ] }, "modifyNetworkInterfaceAttribute": { "errors": [ "RequestLimitExceeded", "InvalidNetworkInterfaceID.NotFound", "InvalidNetworkInterfaceId.Malformed", - "InvalidParameterCombination" + "InvalidParameterCombination", + "UnauthorizedOperation" ] }, "describeNetworkInterfaces": { @@ -593,21 +699,24 @@ "RequestLimitExceeded", "InvalidNetworkInterfaceID.NotFound", "InvalidNetworkInterfaceId.Malformed", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "describeManagedPrefixLists": { "errors": [ "RequestLimitExceeded", "InvalidPrefixListID.NotFound", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "describeTransitGateways": { "errors": [ "RequestLimitExceeded", "InvalidTransitGatewayID.NotFound", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "describeCarrierGateways": { @@ -615,60 +724,81 @@ "RequestLimitExceeded", "InvalidCarrierGatewayID.Malformed", "InvalidCarrierGatewayID.NotFound", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "describeFlowLogs": { - "errors": ["RequestLimitExceeded", "ParseError"] + "errors": [ + "RequestLimitExceeded", + "InvalidFlowLogId.NotFound", + "ParseError", + "UnauthorizedOperation" + ] }, "describeTransitGatewayAttachments": { "errors": [ "RequestLimitExceeded", "InvalidTransitGatewayAttachmentID.NotFound", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "describeVpnConnections": { - "errors": ["RequestLimitExceeded", "InvalidVpnConnectionID.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidVpnConnectionID.NotFound", + "UnauthorizedOperation" + ] }, "deleteCustomerGateway": { "errors": [ "RequestLimitExceeded", "InvalidCustomerGatewayID.NotFound", "InvalidCustomerGatewayId.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "modifyVpcAttribute": { "errors": [ "RequestLimitExceeded", "InvalidParameterCombination", - "InvalidVpcID.NotFound" + "InvalidVpcID.NotFound", + "UnauthorizedOperation" ] }, "replaceRouteTableAssociation": { "errors": [ "RequestLimitExceeded", "InvalidRouteTableAssociationId.Malformed", - "InvalidRouteTableID.NotFound" + "InvalidRouteTableID.NotFound", + "UnauthorizedOperation" ] }, "modifyVpcEndpointServiceConfiguration": { "errors": [ "RequestLimitExceeded", "InvalidVpcEndpointServiceId.Malformed", - "InvalidVpcEndpointServiceId.NotFound" + "InvalidVpcEndpointServiceId.NotFound", + "UnauthorizedOperation" ] }, "describeVpcEndpointServiceConfigurations": { - "errors": ["RequestLimitExceeded", "InvalidVpcEndpointServiceId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidVpcEndpointServiceId.NotFound", + "UnauthorizedOperation" + ] }, "describeDhcpOptions": { "errors": [ "RequestLimitExceeded", "InvalidDhcpOptionID.NotFound", + "InvalidDhcpOptionsID.NotFound", "InvalidParameterValue", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "describeNetworkInterfaceAttribute": { @@ -676,7 +806,8 @@ "RequestLimitExceeded", "InvalidNetworkInterfaceID.NotFound", "InvalidNetworkInterfaceId.Malformed", - "InvalidParameterCombination" + "InvalidParameterCombination", + "UnauthorizedOperation" ] }, "attachNetworkInterface": { @@ -684,7 +815,8 @@ "RequestLimitExceeded", "InvalidInstanceID.Malformed", "InvalidInstanceID.NotFound", - "InvalidNetworkInterfaceID.NotFound" + "InvalidNetworkInterfaceID.NotFound", + "UnauthorizedOperation" ] }, "detachNetworkInterface": { @@ -692,7 +824,8 @@ "RequestLimitExceeded", "DependencyViolation", "InvalidAttachmentID.NotFound", - "InvalidNetworkInterfaceAttachmentId.Malformed" + "InvalidNetworkInterfaceAttachmentId.Malformed", + "UnauthorizedOperation" ] }, "assignPrivateIpAddresses": { @@ -700,7 +833,8 @@ "RequestLimitExceeded", "InvalidNetworkInterfaceID.NotFound", "InvalidNetworkInterfaceId.Malformed", - "InvalidParameter" + "InvalidParameter", + "UnauthorizedOperation" ] }, "unassignPrivateIpAddresses": { @@ -708,93 +842,118 @@ "RequestLimitExceeded", "InvalidNetworkInterfaceID.NotFound", "InvalidNetworkInterfaceId.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "assignIpv6Addresses": { "errors": [ "RequestLimitExceeded", "InvalidNetworkInterfaceID.NotFound", - "InvalidParameterCombination" + "InvalidParameterCombination", + "UnauthorizedOperation" ] }, "unassignIpv6Addresses": { "errors": [ "RequestLimitExceeded", "InvalidNetworkInterfaceID.NotFound", - "InvalidParameterCombination" + "InvalidParameterCombination", + "UnauthorizedOperation" ] }, "associateSubnetCidrBlock": { "errors": [ "RequestLimitExceeded", "InvalidSubnetID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "disassociateSubnetCidrBlock": { "errors": [ "RequestLimitExceeded", "InvalidSubnetCidrBlockAssociationID.NotFound", - "InvalidSubnetCidrBlockAssociationId.Malformed" + "InvalidSubnetCidrBlockAssociationId.Malformed", + "UnauthorizedOperation" ] }, "getSecurityGroupsForVpc": { - "errors": ["RequestLimitExceeded", "InvalidVpcId.Malformed", "ParseError"] + "errors": [ + "RequestLimitExceeded", + "InvalidVpcId.Malformed", + "ParseError", + "UnauthorizedOperation" + ] }, "modifyVpcTenancy": { "errors": [ "RequestLimitExceeded", "InvalidVpcID.NotFound", - "InvalidVpcId.Malformed" + "InvalidVpcId.Malformed", + "UnauthorizedOperation" ] }, "createDefaultSubnet": { "errors": [ "RequestLimitExceeded", "DefaultSubnetAlreadyExistsInAvailabilityZone", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createDefaultVpc": { - "errors": ["RequestLimitExceeded", "DefaultVpcAlreadyExists"] + "errors": [ + "RequestLimitExceeded", + "DefaultVpcAlreadyExists", + "UnauthorizedOperation" + ] }, "describeVpcClassicLink": { "errors": [ "RequestLimitExceeded", "InvalidVpcID.NotFound", - "InvalidVpcId.Malformed" + "InvalidVpcId.Malformed", + "UnauthorizedOperation" ] }, "describeVpcClassicLinkDnsSupport": { - "errors": ["RequestLimitExceeded", "InvalidVpcID.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidVpcID.NotFound", + "UnauthorizedOperation" + ] }, "enableVpcClassicLink": { "errors": [ "RequestLimitExceeded", "InvalidVpcID.NotFound", - "InvalidVpcId.Malformed" + "InvalidVpcId.Malformed", + "UnauthorizedOperation" ] }, "disableVpcClassicLink": { "errors": [ "RequestLimitExceeded", "InvalidVpcID.NotFound", - "InvalidVpcId.Malformed" + "InvalidVpcId.Malformed", + "UnauthorizedOperation" ] }, "enableVpcClassicLinkDnsSupport": { "errors": [ "RequestLimitExceeded", "InvalidVpcID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "disableVpcClassicLinkDnsSupport": { "errors": [ "RequestLimitExceeded", "InvalidVpcID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteManagedPrefixList": { @@ -802,7 +961,8 @@ "RequestLimitExceeded", "InvalidPrefixListID.NotFound", "InvalidPrefixListId.Malformed", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "releaseAddress": { @@ -816,7 +976,8 @@ "InvalidIPAddress.InUse", "InvalidParameterCombination", "InvalidParameterValue", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "associateAddress": { @@ -825,61 +986,93 @@ "AuthFailure", "InvalidAllocationID.NotFound", "InvalidInstanceID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "disassociateAddress": { "errors": [ "RequestLimitExceeded", "InvalidAssociationID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "describeAddresses": { - "errors": ["RequestLimitExceeded", "InvalidAllocationID.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidAllocationID.NotFound", + "UnauthorizedOperation" + ] }, "describeEgressOnlyInternetGateways": { "errors": [ "RequestLimitExceeded", "InvalidEgressOnlyInternetGatewayId.Malformed", "InvalidEgressOnlyInternetGatewayId.NotFound", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "describeAddressesAttribute": { - "errors": ["RequestLimitExceeded", "InvalidAllocationID.NotFound"] - }, - "describeSecurityGroupRules": { - "errors": ["RequestLimitExceeded", "InvalidSecurityGroupRuleId.NotFound"] - }, + "errors": [ + "RequestLimitExceeded", + "InvalidAllocationID.NotFound", + "UnauthorizedOperation" + ] + }, + "describeSecurityGroupRules": { + "errors": [ + "RequestLimitExceeded", + "InvalidSecurityGroupRuleId.NotFound", + "UnauthorizedOperation" + ] + }, "describeTags": { - "errors": ["RequestLimitExceeded", "ParseError"] + "errors": [ + "RequestLimitExceeded", + "ParseError", + "UnauthorizedOperation" + ] }, "deleteTags": { - "errors": ["RequestLimitExceeded", "InvalidID", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "InvalidID", + "MissingParameter", + "UnauthorizedOperation" + ] }, "createTags": { - "errors": ["RequestLimitExceeded", "InvalidID", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "InvalidID", + "MissingParameter", + "UnauthorizedOperation" + ] }, "describeInstanceAttribute": { "errors": [ "RequestLimitExceeded", "InvalidInstanceID.NotFound", - "InvalidParameterValue" + "InvalidParameterValue", + "UnauthorizedOperation" ] }, "modifyInstanceAttribute": { "errors": [ "RequestLimitExceeded", "InvalidInstanceID.NotFound", - "InvalidParameterValue" + "InvalidParameterValue", + "UnauthorizedOperation" ] }, "describeSnapshots": { "errors": [ "RequestLimitExceeded", "InvalidSnapshot.NotFound", - "InvalidUserID.Malformed" + "InvalidUserID.Malformed", + "UnauthorizedOperation" ] }, "describeVolumes": { @@ -887,7 +1080,8 @@ "RequestLimitExceeded", "InvalidParameterValue", "InvalidVolume.NotFound", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "deleteSnapshot": { @@ -895,14 +1089,17 @@ "RequestLimitExceeded", "InvalidParameterValue", "InvalidSnapshot.NotFound", - "InvalidSnapshotID.Malformed" + "InvalidSnapshotID.Malformed", + "UnauthorizedOperation" ] }, "deleteVolume": { "errors": [ "RequestLimitExceeded", "InvalidParameterValue", - "InvalidVolume.NotFound" + "InvalidVolume.NotFound", + "VolumeInUse", + "UnauthorizedOperation" ] }, "runInstances": { @@ -912,7 +1109,8 @@ "InvalidAMIID.NotFound", "InvalidParameterValue", "MissingParameter", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "attachVolume": { @@ -920,7 +1118,9 @@ "RequestLimitExceeded", "InvalidInstanceID.NotFound", "InvalidParameterValue", - "InvalidVolume.NotFound" + "InvalidVolume.NotFound", + "VolumeInUse", + "UnauthorizedOperation" ] }, "terminateInstances": { @@ -928,7 +1128,8 @@ "RequestLimitExceeded", "InvalidInstanceID.Malformed", "InvalidInstanceID.NotFound", - "InvalidParameterCombination" + "InvalidParameterCombination", + "UnauthorizedOperation" ] }, "describeInstances": { @@ -936,7 +1137,8 @@ "RequestLimitExceeded", "InvalidInstanceID.Malformed", "InvalidInstanceID.NotFound", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "detachVolume": { @@ -945,7 +1147,8 @@ "DependencyViolation", "IncorrectState", "InvalidParameterValue", - "InvalidVolume.NotFound" + "InvalidVolume.NotFound", + "UnauthorizedOperation" ] }, "createSnapshot": { @@ -953,7 +1156,8 @@ "RequestLimitExceeded", "InvalidParameterValue", "InvalidVolume.NotFound", - "InvalidVolumeID.Malformed" + "InvalidVolumeID.Malformed", + "UnauthorizedOperation" ] }, "startInstances": { @@ -961,7 +1165,8 @@ "RequestLimitExceeded", "InvalidInstanceID.Malformed", "InvalidInstanceID.NotFound", - "InvalidParameterCombination" + "InvalidParameterCombination", + "UnauthorizedOperation" ] }, "stopInstances": { @@ -969,7 +1174,8 @@ "RequestLimitExceeded", "InvalidInstanceID.Malformed", "InvalidInstanceID.NotFound", - "InvalidParameterCombination" + "InvalidParameterCombination", + "UnauthorizedOperation" ] }, "rebootInstances": { @@ -977,7 +1183,8 @@ "RequestLimitExceeded", "InvalidInstanceID.Malformed", "InvalidInstanceID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "modifyVolume": { @@ -985,14 +1192,16 @@ "RequestLimitExceeded", "InvalidParameterValue", "InvalidVolume.NotFound", - "InvalidVolumeID.Malformed" + "InvalidVolumeID.Malformed", + "UnauthorizedOperation" ] }, "describeImages": { "errors": [ "RequestLimitExceeded", "InvalidAMIID.Malformed", - "InvalidAMIID.NotFound" + "InvalidAMIID.NotFound", + "UnauthorizedOperation" ] }, "deregisterImage": { @@ -1000,14 +1209,16 @@ "RequestLimitExceeded", "InvalidAMIID.Malformed", "InvalidAMIID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "describeKeyPairs": { "errors": [ "RequestLimitExceeded", "InvalidKeyPair.NotFound", - "InvalidParameterValue" + "InvalidParameterValue", + "UnauthorizedOperation" ] }, "copySnapshot": { @@ -1015,7 +1226,8 @@ "RequestLimitExceeded", "InvalidParameterValue", "InvalidRegion", - "InvalidSnapshot.NotFound" + "InvalidSnapshot.NotFound", + "UnauthorizedOperation" ] }, "describeSnapshotAttribute": { @@ -1023,7 +1235,8 @@ "RequestLimitExceeded", "InvalidParameterValue", "InvalidSnapshot.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "modifyImageAttribute": { @@ -1031,17 +1244,23 @@ "RequestLimitExceeded", "InvalidAMIID.Malformed", "InvalidAMIID.NotFound", - "InvalidParameterCombination" + "InvalidParameterCombination", + "UnauthorizedOperation" ] }, "createLaunchTemplate": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "deleteLaunchTemplate": { "errors": [ "RequestLimitExceeded", "InvalidLaunchTemplateName.NotFoundException", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "describeLaunchTemplates": { @@ -1050,42 +1269,48 @@ "InvalidLaunchTemplateId.Malformed", "ParseError", "InvalidLaunchTemplateId.NotFound", - "InvalidLaunchTemplateName.NotFoundException" + "InvalidLaunchTemplateName.NotFoundException", + "UnauthorizedOperation" ] }, "createTransitGateway": { "errors": [ "RequestLimitExceeded", "ParseError", - "TransitGatewayLimitExceeded" + "TransitGatewayLimitExceeded", + "UnauthorizedOperation" ] }, "describeInstanceStatus": { "errors": [ "RequestLimitExceeded", "InvalidInstanceID.Malformed", - "InvalidInstanceID.NotFound" + "InvalidInstanceID.NotFound", + "UnauthorizedOperation" ] }, "getConsoleOutput": { "errors": [ "RequestLimitExceeded", "InvalidInstanceID.Malformed", - "InvalidInstanceID.NotFound" + "InvalidInstanceID.NotFound", + "UnauthorizedOperation" ] }, "getPasswordData": { "errors": [ "RequestLimitExceeded", "InvalidInstanceID.Malformed", - "InvalidInstanceID.NotFound" + "InvalidInstanceID.NotFound", + "UnauthorizedOperation" ] }, "createImage": { "errors": [ "RequestLimitExceeded", "InvalidInstanceID.NotFound", - "InvalidParameterValue" + "InvalidParameterValue", + "UnauthorizedOperation" ] }, "copyImage": { @@ -1094,29 +1319,42 @@ "InvalidAMIID.Malformed", "InvalidAMIID.NotFound", "InvalidRegion", - "InvalidRequest" + "InvalidRequest", + "UnauthorizedOperation" ] }, "describeSpotInstanceRequests": { "errors": [ "RequestLimitExceeded", "InvalidSpotInstanceRequestID.Malformed", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "describeSpotFleetRequests": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue", "ParseError"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "ParseError", + "UnauthorizedOperation" + ] }, "getManagedPrefixListEntries": { "errors": [ "RequestLimitExceeded", "InvalidPrefixListID.NotFound", "InvalidPrefixListId.Malformed", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "describeAvailabilityZones": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue", "ParseError"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "ParseError", + "UnauthorizedOperation" + ] }, "deleteTransitGateway": { "errors": [ @@ -1125,7 +1363,8 @@ "InvalidTransitGatewayID.Malformed", "InvalidTransitGatewayID.NotFound", "MissingParameter", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "createTransitGatewayRouteTable": { @@ -1134,7 +1373,8 @@ "IncorrectState", "InvalidTransitGatewayID.NotFound", "MissingParameter", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "deleteTransitGatewayRouteTable": { @@ -1144,24 +1384,31 @@ "InvalidRouteTableID.NotFound", "InvalidRouteTableId.Malformed", "MissingParameter", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "modifySnapshotAttribute": { "errors": [ "RequestLimitExceeded", "InvalidParameterCombination", - "InvalidSnapshot.NotFound" + "InvalidSnapshot.NotFound", + "UnauthorizedOperation" ] }, "createKeyPair": { - "errors": ["RequestLimitExceeded", "InvalidKeyPair.Duplicate"] + "errors": [ + "RequestLimitExceeded", + "InvalidKeyPair.Duplicate", + "UnauthorizedOperation" + ] }, "describeTransitGatewayRouteTables": { "errors": [ "RequestLimitExceeded", "InvalidRouteTableID.NotFound", - "ParseError" + "ParseError", + "UnauthorizedOperation" ] }, "deleteNatGateway": { @@ -1172,18 +1419,24 @@ "InvalidParameter", "MissingParameter", "NatGatewayMalformed", - "NatGatewayNotFound" + "NatGatewayNotFound", + "UnauthorizedOperation" ] }, "deleteClientVpnEndpoint": { - "errors": ["RequestLimitExceeded", "InvalidClientVpnEndpointId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidClientVpnEndpointId.NotFound", + "UnauthorizedOperation" + ] }, "deleteNetworkInterfacePermission": { "errors": [ "RequestLimitExceeded", "InvalidPermissionID.Malformed", "InvalidPermissionID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createIpam": { @@ -1191,7 +1444,8 @@ "RequestLimitExceeded", "InvalidParameterValue", "ParseError", - "ResourceLimitExceeded" + "ResourceLimitExceeded", + "UnauthorizedOperation" ] }, "deleteIpam": { @@ -1199,14 +1453,16 @@ "RequestLimitExceeded", "DependencyViolation", "InvalidIpamId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteTransitGatewayVpcAttachment": { "errors": [ "RequestLimitExceeded", "InvalidTransitGatewayAttachmentID.Malformed", - "InvalidTransitGatewayAttachmentID.NotFound" + "InvalidTransitGatewayAttachmentID.NotFound", + "UnauthorizedOperation" ] }, "createTransitGatewayMulticastDomain": { @@ -1215,7 +1471,8 @@ "IncorrectState", "InvalidTransitGatewayID.Malformed", "InvalidTransitGatewayID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createLocalGatewayRouteTable": { @@ -1223,7 +1480,8 @@ "RequestLimitExceeded", "InvalidLocalGatewayID.Malformed", "InvalidLocalGatewayID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createSubnetCidrReservation": { @@ -1231,7 +1489,8 @@ "RequestLimitExceeded", "InvalidParameterValue", "InvalidSubnetID.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteSubnetCidrReservation": { @@ -1239,17 +1498,23 @@ "RequestLimitExceeded", "InvalidSubnetCidrReservationID.Malformed", "InvalidSubnetCidrReservationID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createTrafficMirrorFilter": { - "errors": ["RequestLimitExceeded", "ParseError"] + "errors": [ + "RequestLimitExceeded", + "ParseError", + "UnauthorizedOperation" + ] }, "deleteTrafficMirrorFilter": { "errors": [ "RequestLimitExceeded", "InvalidParameterValue", - "InvalidTrafficMirrorFilterId.NotFound" + "InvalidTrafficMirrorFilterId.NotFound", + "UnauthorizedOperation" ] }, "deleteTrafficMirrorTarget": { @@ -1257,7 +1522,8 @@ "RequestLimitExceeded", "InvalidParameterValue", "InvalidTrafficMirrorTargetId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteTrafficMirrorSession": { @@ -1265,39 +1531,48 @@ "RequestLimitExceeded", "InvalidParameterValue", "InvalidTrafficMirrorSessionId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createNetworkInsightsPath": { "errors": [ "RequestLimitExceeded", "InvalidParameterValue", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteNetworkInsightsPath": { "errors": [ "RequestLimitExceeded", "InvalidParameterValue", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteNetworkInsightsAccessScope": { "errors": [ "RequestLimitExceeded", "InvalidNetworkInsightsAccessScopeId.NotFound", - "InvalidParameterValue" + "InvalidParameterValue", + "UnauthorizedOperation" ] }, "deletePlacementGroup": { - "errors": ["RequestLimitExceeded", "InvalidPlacementGroup.Unknown"] + "errors": [ + "RequestLimitExceeded", + "InvalidPlacementGroup.Unknown", + "UnauthorizedOperation" + ] }, "createCoipPool": { "errors": [ "RequestLimitExceeded", "InvalidLocalGatewayRouteTableID.Malformed", "InvalidLocalGatewayRouteTableID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteCoipPool": { @@ -1305,23 +1580,30 @@ "RequestLimitExceeded", "InvalidIpv4PoolCoipId.Malformed", "InvalidParameterValue", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createClientVpnEndpoint": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "createVerifiedAccessInstance": { "errors": [ "RequestLimitExceeded", "ParseError", - "VerifiedAccessInstanceLimitExceeded" + "VerifiedAccessInstanceLimitExceeded", + "UnauthorizedOperation" ] }, "deleteVerifiedAccessInstance": { "errors": [ "RequestLimitExceeded", - "InvalidVerifiedAccessInstanceId.NotFound" + "InvalidVerifiedAccessInstanceId.NotFound", + "UnauthorizedOperation" ] }, "createVerifiedAccessGroup": { @@ -1329,14 +1611,16 @@ "RequestLimitExceeded", "InvalidParameterValue", "InvalidVerifiedAccessInstanceId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteVerifiedAccessGroup": { "errors": [ "RequestLimitExceeded", "InvalidVerifiedAccessGroupId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteVerifiedAccessEndpoint": { @@ -1344,23 +1628,30 @@ "RequestLimitExceeded", "InvalidParameterValue", "InvalidVerifiedAccessEndpointId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createVerifiedAccessTrustProvider": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "deleteVerifiedAccessTrustProvider": { "errors": [ "RequestLimitExceeded", - "InvalidVerifiedAccessTrustProviderId.NotFound" + "InvalidVerifiedAccessTrustProviderId.NotFound", + "UnauthorizedOperation" ] }, "createIpamPool": { "errors": [ "RequestLimitExceeded", "InvalidIpamScopeId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteIpamPool": { @@ -1368,24 +1659,31 @@ "RequestLimitExceeded", "IncorrectState", "InvalidIpamPoolId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createIpamResourceDiscovery": { - "errors": ["RequestLimitExceeded", "ResourceLimitExceeded"] + "errors": [ + "RequestLimitExceeded", + "ResourceLimitExceeded", + "UnauthorizedOperation" + ] }, "deleteIpamResourceDiscovery": { "errors": [ "RequestLimitExceeded", "InvalidIpamResourceDiscoveryId.Malformed", - "InvalidIpamResourceDiscoveryId.NotFound" + "InvalidIpamResourceDiscoveryId.NotFound", + "UnauthorizedOperation" ] }, "createIpamScope": { "errors": [ "RequestLimitExceeded", "InvalidIpamId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteIpamScope": { @@ -1394,14 +1692,16 @@ "DependencyViolation", "IncorrectState", "InvalidIpamScopeId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createIpamPolicy": { "errors": [ "RequestLimitExceeded", "InvalidIpamId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteIpamPolicy": { @@ -1409,17 +1709,23 @@ "RequestLimitExceeded", "InvalidIpamPolicyId.Malformed", "InvalidIpamPolicyId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createRouteServer": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "deleteRouteServer": { "errors": [ "RequestLimitExceeded", "IncorrectState", - "InvalidRouteServerId.NotFound" + "InvalidRouteServerId.NotFound", + "UnauthorizedOperation" ] }, "createInstanceConnectEndpoint": { @@ -1427,7 +1733,8 @@ "RequestLimitExceeded", "InvalidGroup.NotFound", "InvalidSubnetID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteInstanceConnectEndpoint": { @@ -1436,28 +1743,32 @@ "InvalidInstanceConnectEndpointId.Malformed", "InvalidInstanceConnectEndpointId.NotFound", "InvalidState", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createVpcBlockPublicAccessExclusion": { "errors": [ "RequestLimitExceeded", "InvalidVpcId.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteVpcBlockPublicAccessExclusion": { "errors": [ "RequestLimitExceeded", "MissingParameter", - "VpcBlockPublicAccessExclusionId.Malformed" + "VpcBlockPublicAccessExclusionId.Malformed", + "UnauthorizedOperation" ] }, "createVpcEncryptionControl": { "errors": [ "RequestLimitExceeded", "InvalidVpcId.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteVpcEncryptionControl": { @@ -1465,7 +1776,8 @@ "RequestLimitExceeded", "InvalidVpcEncryptionControlId.Malformed", "InvalidVpcEncryptionControlId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "replaceNetworkAclAssociation": { @@ -1473,21 +1785,24 @@ "RequestLimitExceeded", "DryRunOperation", "InvalidAssociationID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "acceptVpcEndpointConnections": { "errors": [ "RequestLimitExceeded", "InvalidParameter", - "InvalidVpcEndpointServiceId.NotFound" + "InvalidVpcEndpointServiceId.NotFound", + "UnauthorizedOperation" ] }, "rejectVpcEndpointConnections": { "errors": [ "RequestLimitExceeded", "InvalidParameter", - "InvalidVpcEndpointServiceId.NotFound" + "InvalidVpcEndpointServiceId.NotFound", + "UnauthorizedOperation" ] }, "modifyManagedPrefixList": { @@ -1495,127 +1810,188 @@ "RequestLimitExceeded", "InvalidParameterCombination", "InvalidPrefixListID.NotFound", - "InvalidPrefixListId.Malformed" + "InvalidPrefixListId.Malformed", + "UnauthorizedOperation" ] }, "modifySecurityGroupRules": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "allocateAddress": { - "errors": ["RequestLimitExceeded", "AddressLimitExceeded"] + "errors": [ + "RequestLimitExceeded", + "AddressLimitExceeded", + "UnauthorizedOperation" + ] }, "deleteKeyPair": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "createVolume": { "errors": [ "RequestLimitExceeded", "InvalidZone.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createPlacementGroup": { "errors": [ "RequestLimitExceeded", "InvalidParameterValue", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "describePlacementGroups": { "errors": [ "RequestLimitExceeded", "InvalidParameterValue", - "InvalidPlacementGroup.Unknown" + "InvalidPlacementGroup.Unknown", + "UnauthorizedOperation" ] }, "releaseHosts": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "allocateHosts": { "errors": [ "RequestLimitExceeded", "InvalidHostConfiguration", - "InvalidRequest" + "InvalidRequest", + "UnauthorizedOperation" ] }, "describeHosts": { - "errors": ["RequestLimitExceeded", "InvalidHostID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidHostID.Malformed", + "UnauthorizedOperation" + ] }, "cancelSpotFleetRequests": { "errors": [ "RequestLimitExceeded", "InvalidParameterValue", - "MissingParameter" - ] + "MissingParameter", + "UnauthorizedOperation" + ] }, "cancelSpotInstanceRequests": { "errors": [ "RequestLimitExceeded", "InvalidParameterCombination", - "InvalidSpotInstanceRequestID.Malformed" + "InvalidSpotInstanceRequestID.Malformed", + "UnauthorizedOperation" ] }, "requestSpotInstances": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "createSpotDatafeedSubscription": { - "errors": ["RequestLimitExceeded", "InaccessibleStorageLocation"] + "errors": [ + "RequestLimitExceeded", + "InaccessibleStorageLocation", + "UnauthorizedOperation" + ] }, "describeSpotDatafeedSubscription": { - "errors": ["RequestLimitExceeded", "InvalidSpotDatafeed.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidSpotDatafeed.NotFound", + "UnauthorizedOperation" + ] }, "bundleInstance": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "cancelBundleTask": { "errors": [ "RequestLimitExceeded", "InvalidBundleID.NotFound", - "InvalidInstanceID.Malformed" + "InvalidInstanceID.Malformed", + "UnauthorizedOperation" ] }, "describeBundleTasks": { "errors": [ "RequestLimitExceeded", "InvalidBundleID.NotFound", - "InvalidInstanceID.Malformed" + "InvalidInstanceID.Malformed", + "UnauthorizedOperation" ] }, "getConsoleScreenshot": { "errors": [ "RequestLimitExceeded", "InvalidInstanceID.Malformed", - "InvalidInstanceID.NotFound" + "InvalidInstanceID.NotFound", + "UnauthorizedOperation" ] }, "reportInstanceStatus": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "monitorInstances": { "errors": [ "RequestLimitExceeded", "InvalidParameterValue", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "unmonitorInstances": { "errors": [ "RequestLimitExceeded", "InvalidInstanceID.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "confirmProductInstance": { - "errors": ["RequestLimitExceeded", "AuthFailure"] + "errors": [ + "RequestLimitExceeded", + "AuthFailure", + "UnauthorizedOperation" + ] }, "createNetworkInterfacePermission": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "modifyVolumeAttribute": { "errors": [ "RequestLimitExceeded", "InvalidVolume.NotFound", - "InvalidVolumeID.Malformed" + "InvalidVolumeID.Malformed", + "UnauthorizedOperation" ] }, "describeVolumeAttribute": { @@ -1623,7 +1999,8 @@ "RequestLimitExceeded", "InvalidParameterCombination", "InvalidParameterValue", - "InvalidVolume.NotFound" + "InvalidVolume.NotFound", + "UnauthorizedOperation" ] }, "resetSnapshotAttribute": { @@ -1631,7 +2008,8 @@ "RequestLimitExceeded", "InvalidSnapshot.NotFound", "InvalidSnapshotID.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "resetImageAttribute": { @@ -1639,39 +2017,48 @@ "RequestLimitExceeded", "InvalidAMIID.Malformed", "InvalidAMIID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "describeImageAttribute": { "errors": [ "RequestLimitExceeded", "InvalidAMIID.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "describeRegions": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "createTransitGatewayPeeringAttachment": { "errors": [ "RequestLimitExceeded", "InvalidParameterValue", "InvalidTransitGatewayID.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "rejectTransitGatewayPeeringAttachment": { "errors": [ "RequestLimitExceeded", "InvalidTransitGatewayAttachmentID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "rejectTransitGatewayVpcAttachment": { "errors": [ "RequestLimitExceeded", "InvalidTransitGatewayAttachmentID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "getTransitGatewayMulticastDomainAssociations": { @@ -1679,87 +2066,110 @@ "RequestLimitExceeded", "InvalidTransitGatewayMulticastDomainId.Malformed", "InvalidTransitGatewayMulticastDomainId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "describeLaunchTemplateVersions": { "errors": [ "RequestLimitExceeded", "InvalidLaunchTemplateId.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "describeClientVpnConnections": { "errors": [ "RequestLimitExceeded", "InvalidClientVpnEndpointId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "provisionIpamPoolCidr": { "errors": [ "RequestLimitExceeded", "InvalidIpamPoolId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deprovisionIpamPoolCidr": { "errors": [ "RequestLimitExceeded", "InvalidIpamPoolId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createCapacityReservation": { - "errors": ["RequestLimitExceeded", "Unsupported"] + "errors": [ + "RequestLimitExceeded", + "Unsupported", + "UnauthorizedOperation" + ] }, "associateCapacityReservationBillingOwner": { "errors": [ "RequestLimitExceeded", "InvalidCapacityReservationId.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "cancelCapacityReservation": { "errors": [ "RequestLimitExceeded", "InvalidCapacityReservationId.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "disassociateCapacityReservationBillingOwner": { "errors": [ "RequestLimitExceeded", "InvalidCapacityReservationId.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "associateClientVpnTargetNetwork": { "errors": [ "RequestLimitExceeded", "InvalidSubnetID.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "disassociateClientVpnTargetNetwork": { "errors": [ "RequestLimitExceeded", "InvalidClientVpnEndpointId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "provisionIpamByoasn": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "disassociateIpamByoasn": { - "errors": ["RequestLimitExceeded", "InvalidCidr.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidCidr.NotFound", + "UnauthorizedOperation" + ] }, "associateNatGatewayAddress": { "errors": [ "RequestLimitExceeded", "MissingParameter", "NatGatewayMalformed", - "NatGatewayNotFound" + "NatGatewayNotFound", + "UnauthorizedOperation" ] }, "disassociateNatGatewayAddress": { @@ -1767,28 +2177,32 @@ "RequestLimitExceeded", "MissingParameter", "NatGatewayMalformed", - "NatGatewayNotFound" + "NatGatewayNotFound", + "UnauthorizedOperation" ] }, "associateSecurityGroupVpc": { "errors": [ "RequestLimitExceeded", "InvalidGroupId.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "disassociateSecurityGroupVpc": { "errors": [ "RequestLimitExceeded", "InvalidGroupId.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "disassociateTransitGatewayMulticastDomain": { "errors": [ "RequestLimitExceeded", "InvalidTransitGatewayMulticastDomainId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createTransitGatewayPolicyTable": { @@ -1796,7 +2210,8 @@ "RequestLimitExceeded", "IncorrectState", "InvalidTransitGatewayID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "disassociateTransitGatewayPolicyTable": { @@ -1804,21 +2219,24 @@ "RequestLimitExceeded", "InvalidTransitGatewayPolicyTableId.Malformed", "InvalidTransitGatewayPolicyTableId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "disassociateTransitGatewayRouteTable": { "errors": [ "RequestLimitExceeded", "InvalidRouteTableID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "attachClassicLinkVpc": { "errors": [ "RequestLimitExceeded", "InvalidInstanceID.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "detachClassicLinkVpc": { @@ -1827,7 +2245,8 @@ "DependencyViolation", "InvalidInstanceID.Malformed", "InvalidVpcID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createCoipCidr": { @@ -1835,7 +2254,8 @@ "RequestLimitExceeded", "InvalidPoolID.Malformed", "InvalidPoolID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteCoipCidr": { @@ -1843,38 +2263,54 @@ "RequestLimitExceeded", "InvalidCidrBlock.Malformed", "InvalidIpv4PoolCoipId.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteLocalGatewayRouteTable": { "errors": [ "RequestLimitExceeded", "InvalidLocalGatewayRouteTableID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "registerImage": { - "errors": ["RequestLimitExceeded", "InvalidParameterCombination"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterCombination", + "UnauthorizedOperation" + ] }, "createImageUsageReport": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "deleteImageUsageReport": { "errors": [ "RequestLimitExceeded", "InvalidImageUsageReportId.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createIpamPrefixListResolver": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "deleteIpamPrefixListResolver": { "errors": [ "RequestLimitExceeded", "InvalidIpamPrefixListResolverId.Malformed", "InvalidIpamPrefixListResolverId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createIpamPrefixListResolverTarget": { @@ -1882,39 +2318,48 @@ "RequestLimitExceeded", "InvalidIpamPrefixListResolverId.Malformed", "InvalidIpamPrefixListResolverId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteIpamPrefixListResolverTarget": { "errors": [ "RequestLimitExceeded", "InvalidIpamPrefixListResolverTargetId.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createLocalGatewayRoute": { "errors": [ "RequestLimitExceeded", "InvalidParameterValue", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteLocalGatewayRoute": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "deleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation": { "errors": [ "RequestLimitExceeded", "InvalidLocalGatewayRouteTableVirtualInterfaceGroupAssociationID.Malformed", "InvalidLocalGatewayRouteTableVirtualInterfaceGroupAssociationID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createLocalGatewayVirtualInterfaceGroup": { "errors": [ "RequestLimitExceeded", "InvalidLocalGatewayID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createLocalGatewayRouteTableVirtualInterfaceGroupAssociation": { @@ -1922,7 +2367,8 @@ "RequestLimitExceeded", "InvalidLocalGatewayRouteTableID.NotFound", "InvalidLocalGatewayVirtualInterfaceGroupID.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteLocalGatewayVirtualInterfaceGroup": { @@ -1930,7 +2376,8 @@ "RequestLimitExceeded", "InvalidLocalGatewayVirtualInterfaceGroupID.Malformed", "InvalidLocalGatewayVirtualInterfaceGroupID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createLocalGatewayRouteTableVpcAssociation": { @@ -1939,7 +2386,8 @@ "InvalidLocalGatewayRouteTableID.Malformed", "InvalidLocalGatewayRouteTableID.NotFound", "InvalidVpcID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteLocalGatewayRouteTableVpcAssociation": { @@ -1947,7 +2395,8 @@ "RequestLimitExceeded", "InvalidLocalGatewayRouteTableVpcAssociationID.Malformed", "InvalidLocalGatewayRouteTableVpcAssociationID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createLocalGatewayVirtualInterface": { @@ -1955,7 +2404,8 @@ "RequestLimitExceeded", "InvalidLocalGatewayVirtualInterfaceGroupID.Malformed", "InvalidLocalGatewayVirtualInterfaceGroupID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteLocalGatewayVirtualInterface": { @@ -1963,7 +2413,8 @@ "RequestLimitExceeded", "InvalidLocalGatewayVirtualInterfaceID.Malformed", "InvalidLocalGatewayVirtualInterfaceID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createRouteServerEndpoint": { @@ -1972,7 +2423,8 @@ "InvalidRouteServerId.NotAssociated", "InvalidRouteServerId.NotFound", "InvalidSubnetID.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "disassociateRouteServer": { @@ -1980,36 +2432,48 @@ "RequestLimitExceeded", "InvalidRouteServerId.NotFound", "InvalidVpcID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteRouteServerEndpoint": { "errors": [ "RequestLimitExceeded", "InvalidRouteServerEndpointId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createRouteServerPeer": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "deleteRouteServerPeer": { "errors": [ "RequestLimitExceeded", "InvalidRouteServerPeerId.Malformed", "InvalidRouteServerPeerId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createTrafficMirrorFilterRule": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "deleteTrafficMirrorFilterRule": { "errors": [ "RequestLimitExceeded", "InvalidParameterValue", "InvalidTrafficMirrorFilterRuleId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createTrafficMirrorSession": { @@ -2017,18 +2481,24 @@ "RequestLimitExceeded", "InvalidNetworkInterfaceID.NotFound", "InvalidParameterValue", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createTrafficMirrorTarget": { - "errors": ["RequestLimitExceeded", "InvalidParameterCombination"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterCombination", + "UnauthorizedOperation" + ] }, "createTransitGatewayMeteringPolicy": { "errors": [ "RequestLimitExceeded", "IncorrectState", "InvalidTransitGatewayID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteTransitGatewayMeteringPolicy": { @@ -2036,42 +2506,55 @@ "RequestLimitExceeded", "InvalidTransitGatewayMeteringPolicyId.NotFound", "InvalidTransitGatewayMeteringPolicyIdMalformedException", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createTransitGatewayMeteringPolicyEntry": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "deleteTransitGatewayMeteringPolicyEntry": { "errors": [ "RequestLimitExceeded", "InvalidTransitGatewayMeteringPolicyId.NotFound", "InvalidTransitGatewayMeteringPolicyIdMalformedException", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createTransitGatewayPrefixListReference": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "deleteTransitGatewayPrefixListReference": { "errors": [ "RequestLimitExceeded", "InvalidRouteTableID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createTransitGatewayRoute": { "errors": [ "RequestLimitExceeded", "InvalidRouteTableID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteTransitGatewayRoute": { "errors": [ "RequestLimitExceeded", "InvalidParameterValue", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createTransitGatewayRouteTableAnnouncement": { @@ -2079,62 +2562,79 @@ "RequestLimitExceeded", "InvalidRouteTableID.NotFound", "InvalidTransitGatewayAttachmentID.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteTransitGatewayRouteTableAnnouncement": { "errors": [ "RequestLimitExceeded", "InvalidTransitGatewayRouteTableAnnouncementId.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createVerifiedAccessEndpoint": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "createVpnConnectionRoute": { - "errors": ["RequestLimitExceeded", "InvalidParameter", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameter", + "MissingParameter", + "UnauthorizedOperation" + ] }, "deleteVpnConnectionRoute": { "errors": [ "RequestLimitExceeded", "InvalidRoute.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "startNetworkInsightsAccessScopeAnalysis": { "errors": [ "RequestLimitExceeded", "IdempotentParameterMismatch", - "InvalidParameterValue" + "InvalidParameterValue", + "UnauthorizedOperation" ] }, "deleteNetworkInsightsAccessScopeAnalysis": { "errors": [ "RequestLimitExceeded", "InvalidParameterValue", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "startNetworkInsightsAnalysis": { "errors": [ "RequestLimitExceeded", "InvalidParameterValue", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteNetworkInsightsAnalysis": { "errors": [ "RequestLimitExceeded", "InvalidParameterValue", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "provisionPublicIpv4PoolCidr": { "errors": [ "RequestLimitExceeded", "InvalidIpamPoolId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deprovisionPublicIpv4PoolCidr": { @@ -2142,106 +2642,132 @@ "RequestLimitExceeded", "InvalidPublicIpv4Pool.NotFound", "InvalidPublicIpv4PoolID.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deregisterTransitGatewayMulticastGroupMembers": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "registerTransitGatewayMulticastGroupMembers": { "errors": [ "RequestLimitExceeded", "InvalidNetworkInterfaceId.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deregisterTransitGatewayMulticastGroupSources": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "registerTransitGatewayMulticastGroupSources": { "errors": [ "RequestLimitExceeded", "InvalidNetworkInterfaceId.Malformed", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "describeByoipCidrs": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "getIpamPoolCidrs": { "errors": [ "RequestLimitExceeded", "InvalidIpamPoolId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "describeClientVpnTargetNetworks": { "errors": [ "RequestLimitExceeded", "InvalidClientVpnEndpointId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "getTransitGatewayPrefixListReferences": { "errors": [ "RequestLimitExceeded", "InvalidRouteTableID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "searchTransitGatewayRoutes": { "errors": [ "RequestLimitExceeded", "InvalidRouteTableID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "searchLocalGatewayRoutes": { "errors": [ "RequestLimitExceeded", "InvalidLocalGatewayRouteTableID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "describeClientVpnRoutes": { "errors": [ "RequestLimitExceeded", "InvalidClientVpnEndpointId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "getSubnetCidrReservations": { "errors": [ "RequestLimitExceeded", "InvalidSubnetID.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "describeVpcBlockPublicAccessExclusions": { "errors": [ "RequestLimitExceeded", "MissingParameter", - "VpcBlockPublicAccessExclusionId.Malformed" + "VpcBlockPublicAccessExclusionId.Malformed", + "UnauthorizedOperation" ] }, "getIpamPoolAllocations": { "errors": [ "RequestLimitExceeded", "InvalidIpamPoolId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteTransitGatewayPeeringAttachment": { "errors": [ "RequestLimitExceeded", - "InvalidTransitGatewayAttachmentID.NotFound" + "InvalidTransitGatewayAttachmentID.NotFound", + "UnauthorizedOperation" ] }, "deprovisionIpamByoasn": { "errors": [ "RequestLimitExceeded", "InvalidIpamId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteTransitGatewayPolicyTable": { @@ -2249,14 +2775,16 @@ "RequestLimitExceeded", "InvalidTransitGatewayPolicyTableId.Malformed", "InvalidTransitGatewayPolicyTableId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "createIpamExternalResourceVerificationToken": { "errors": [ "RequestLimitExceeded", "InvalidIpamId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "deleteIpamExternalResourceVerificationToken": { @@ -2264,396 +2792,672 @@ "RequestLimitExceeded", "InvalidIpamExternalResourceVerificationTokenId.Malformed", "InvalidIpamExternalResourceVerificationTokenId.NotFound", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, - "cancelConversion": { - "errors": ["RequestLimitExceeded", "InvalidAction"] - }, "cancelDeclarativePoliciesReport": { "errors": [ "RequestLimitExceeded", - "InvalidDeclarativePoliciesReportId.Malformed" + "InvalidDeclarativePoliciesReportId.Malformed", + "UnauthorizedOperation" ] }, "cancelExportTask": { - "errors": ["RequestLimitExceeded", "InvalidID"] + "errors": [ + "RequestLimitExceeded", + "InvalidID", + "UnauthorizedOperation" + ] }, "cancelImageLaunchPermission": { - "errors": ["RequestLimitExceeded", "InvalidAMIID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidAMIID.Malformed", + "UnauthorizedOperation" + ] }, "cancelImportTask": { - "errors": ["RequestLimitExceeded", "InvalidConversionTaskId.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidConversionTaskId.Malformed", + "UnauthorizedOperation" + ] }, "cancelReservedInstancesListing": { - "errors": ["RequestLimitExceeded", "InvalidInput"] + "errors": [ + "RequestLimitExceeded", + "InvalidInput", + "UnauthorizedOperation" + ] }, "deleteCapacityManagerDataExport": { "errors": [ "RequestLimitExceeded", "InvalidCapacityManagerDataExportId.Malformed", - "InvalidCapacityManagerDataExportId.NotFound" + "InvalidCapacityManagerDataExportId.NotFound", + "UnauthorizedOperation" ] }, "deleteClientVpnRoute": { - "errors": ["RequestLimitExceeded", "InvalidClientVpnEndpointId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidClientVpnEndpointId.NotFound", + "UnauthorizedOperation" + ] }, "deleteFpgaImage": { - "errors": ["RequestLimitExceeded", "InvalidFpgaImageID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidFpgaImageID.Malformed", + "UnauthorizedOperation" + ] }, "deleteInstanceEventWindow": { "errors": [ "RequestLimitExceeded", "InvalidInstanceEventWindowIDNotFound", - "InvalidParameterValue" + "InvalidParameterValue", + "UnauthorizedOperation" ] }, "deleteLaunchTemplateVersions": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "deletePublicIpv4Pool": { "errors": [ "RequestLimitExceeded", "InvalidPublicIpv4Pool.NotFound", - "InvalidPublicIpv4PoolID.Malformed" + "InvalidPublicIpv4PoolID.Malformed", + "UnauthorizedOperation" ] }, "deleteTransitGatewayConnect": { "errors": [ "RequestLimitExceeded", - "InvalidTransitGatewayAttachmentID.NotFound" + "InvalidTransitGatewayAttachmentID.NotFound", + "UnauthorizedOperation" ] }, "deleteTransitGatewayConnectPeer": { "errors": [ "RequestLimitExceeded", "InvalidTransitGatewayConnectPeerID.Malformed", - "InvalidTransitGatewayConnectPeerID.NotFound" + "InvalidTransitGatewayConnectPeerID.NotFound", + "UnauthorizedOperation" ] }, "deleteTransitGatewayMulticastDomain": { "errors": [ "RequestLimitExceeded", "InvalidTransitGatewayMulticastDomainId.Malformed", - "InvalidTransitGatewayMulticastDomainId.NotFound" + "InvalidTransitGatewayMulticastDomainId.NotFound", + "UnauthorizedOperation" ] }, "deleteVpnConcentrator": { - "errors": ["RequestLimitExceeded", "InvalidVpnConcentratorID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidVpnConcentratorID.Malformed", + "UnauthorizedOperation" + ] }, "deprovisionByoipCidr": { - "errors": ["RequestLimitExceeded", "RequestLimitExceeded"] + "errors": [ + "RequestLimitExceeded", + "RequestLimitExceeded", + "UnauthorizedOperation" + ] }, "deregisterInstanceEventNotificationAttributes": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "rejectCapacityReservationBillingOwnership": { "errors": [ "RequestLimitExceeded", - "InvalidCapacityReservationId.Malformed" + "InvalidCapacityReservationId.Malformed", + "UnauthorizedOperation" ] }, "rejectTransitGatewayMulticastDomainAssociations": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "releaseIpamPoolAllocation": { - "errors": ["RequestLimitExceeded", "InvalidIpamPoolId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidIpamPoolId.NotFound", + "UnauthorizedOperation" + ] }, "terminateClientVpnConnections": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "withdrawByoipCidr": { - "errors": ["RequestLimitExceeded", "RequestLimitExceeded"] + "errors": [ + "RequestLimitExceeded", + "RequestLimitExceeded", + "UnauthorizedOperation" + ] }, "allocateIpamPoolCidr": { - "errors": ["RequestLimitExceeded", "InvalidIpamPoolId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidIpamPoolId.NotFound", + "UnauthorizedOperation" + ] }, "associateEnclaveCertificateIamRole": { "errors": [ "RequestLimitExceeded", "InvalidCertificateArn.Malformed", - "InvalidRoleArn.Malformed" + "InvalidRoleArn.Malformed", + "UnauthorizedOperation" ] }, "associateIamInstanceProfile": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "associateIpamResourceDiscovery": { "errors": [ "RequestLimitExceeded", "InvalidIpamResourceDiscoveryId.Malformed", - "InvalidIpamResourceDiscoveryId.NotFound" + "InvalidIpamResourceDiscoveryId.NotFound", + "UnauthorizedOperation" ] }, "associateRouteServer": { - "errors": ["RequestLimitExceeded", "InvalidRouteServerId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidRouteServerId.NotFound", + "UnauthorizedOperation" + ] }, "associateTransitGatewayPolicyTable": { "errors": [ "RequestLimitExceeded", "InvalidTransitGatewayPolicyTableId.Malformed", - "InvalidTransitGatewayPolicyTableId.NotFound" + "InvalidTransitGatewayPolicyTableId.NotFound", + "UnauthorizedOperation" ] }, "associateTransitGatewayRouteTable": { - "errors": ["RequestLimitExceeded", "InvalidRouteTableID.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidRouteTableID.NotFound", + "UnauthorizedOperation" + ] }, "associateTrunkInterface": { - "errors": ["RequestLimitExceeded", "OperationNotPermitted"] + "errors": [ + "RequestLimitExceeded", + "OperationNotPermitted", + "UnauthorizedOperation" + ] }, "attachVerifiedAccessTrustProvider": { "errors": [ "RequestLimitExceeded", - "InvalidVerifiedAccessInstanceId.NotFound" + "InvalidVerifiedAccessInstanceId.NotFound", + "UnauthorizedOperation" ] }, "copyFpgaImage": { - "errors": ["RequestLimitExceeded", "InvalidFpgaImageID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidFpgaImageID.Malformed", + "UnauthorizedOperation" + ] }, "copyVolumes": { - "errors": ["RequestLimitExceeded", "InvalidVolumeID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidVolumeID.Malformed", + "UnauthorizedOperation" + ] }, "createCapacityManagerDataExport": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "createCapacityReservationBySplitting": { "errors": [ "RequestLimitExceeded", "InvalidCapacityReservationId.Malformed", - "InvalidCapacityReservationId.NotFound" + "InvalidCapacityReservationId.NotFound", + "UnauthorizedOperation" ] }, "createClientVpnRoute": { - "errors": ["RequestLimitExceeded", "InvalidClientVpnEndpointId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidClientVpnEndpointId.NotFound", + "UnauthorizedOperation" + ] }, "createDelegateMacVolumeOwnershipTask": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "createInstanceExportTask": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "createInterruptibleCapacityReservationAllocation": { "errors": [ "RequestLimitExceeded", - "InvalidCapacityReservationId.NotFound" + "InvalidCapacityReservationId.NotFound", + "UnauthorizedOperation" ] }, "createReplaceRootVolumeTask": { - "errors": ["RequestLimitExceeded", "InvalidInstanceID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidInstanceID.Malformed", + "UnauthorizedOperation" + ] }, "createReservedInstancesListing": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "createStoreImageTask": { - "errors": ["RequestLimitExceeded", "InvalidAMIID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidAMIID.Malformed", + "UnauthorizedOperation" + ] }, "createTransitGatewayConnect": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "createTransitGatewayConnectPeer": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "createVpcEndpointConnectionNotification": { - "errors": ["RequestLimitExceeded", "InvalidParameter"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameter", + "UnauthorizedOperation" + ] }, "importKeyPair": { - "errors": ["RequestLimitExceeded", "InvalidKeyPair.Duplicate"] + "errors": [ + "RequestLimitExceeded", + "InvalidKeyPair.Duplicate", + "UnauthorizedOperation" + ] }, "purchaseCapacityBlock": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "purchaseCapacityBlockExtension": { "errors": [ "RequestLimitExceeded", - "InvalidCapacityReservationId.NotFound" + "InvalidCapacityReservationId.NotFound", + "UnauthorizedOperation" ] }, "runScheduledInstances": { - "errors": ["RequestLimitExceeded", "InvalidScheduledInstance"] + "errors": [ + "RequestLimitExceeded", + "InvalidScheduledInstance", + "UnauthorizedOperation" + ] }, "startDeclarativePoliciesReport": { - "errors": ["RequestLimitExceeded", "DeclarativePoliciesAccessDenied"] + "errors": [ + "RequestLimitExceeded", + "DeclarativePoliciesAccessDenied", + "UnauthorizedOperation" + ] }, "startVpcEndpointServicePrivateDnsVerification": { "errors": [ "RequestLimitExceeded", "InvalidVpcEndpointServiceId.Malformed", - "InvalidVpcEndpointServiceId.NotFound" + "InvalidVpcEndpointServiceId.NotFound", + "UnauthorizedOperation" ] }, "acceptAddressTransfer": { "errors": [ "RequestLimitExceeded", "InvalidAddress.Malformed", - "InvalidAddress.NotFound" + "InvalidAddress.NotFound", + "UnauthorizedOperation" ] }, "acceptCapacityReservationBillingOwnership": { "errors": [ "RequestLimitExceeded", - "InvalidCapacityReservationId.Malformed" + "InvalidCapacityReservationId.Malformed", + "UnauthorizedOperation" ] }, "acceptTransitGatewayPeeringAttachment": { "errors": [ "RequestLimitExceeded", - "InvalidTransitGatewayAttachmentID.NotFound" + "InvalidTransitGatewayAttachmentID.NotFound", + "UnauthorizedOperation" ] }, "acceptTransitGatewayVpcAttachment": { "errors": [ "RequestLimitExceeded", - "InvalidTransitGatewayAttachmentID.NotFound" + "InvalidTransitGatewayAttachmentID.NotFound", + "UnauthorizedOperation" ] }, "assignPrivateNatGatewayAddress": { - "errors": ["RequestLimitExceeded", "NatGatewayNotFound"] + "errors": [ + "RequestLimitExceeded", + "NatGatewayNotFound", + "UnauthorizedOperation" + ] }, "describeCapacityBlockExtensionOfferings": { "errors": [ "RequestLimitExceeded", - "InvalidCapacityReservationId.NotFound" + "InvalidCapacityReservationId.NotFound", + "UnauthorizedOperation" ] }, "describeFleetHistory": { - "errors": ["RequestLimitExceeded", "InvalidFleetId.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidFleetId.Malformed", + "UnauthorizedOperation" + ] }, "describeFleetInstances": { - "errors": ["RequestLimitExceeded", "InvalidFleetId.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidFleetId.Malformed", + "UnauthorizedOperation" + ] }, "describeFpgaImageAttribute": { "errors": [ "RequestLimitExceeded", "InvalidFpgaImageID.Malformed", - "InvalidFpgaImageID.NotFound" + "InvalidFpgaImageID.NotFound", + "UnauthorizedOperation" ] }, "describeIdentityIdFormat": { - "errors": ["RequestLimitExceeded", "InvalidTargetArn.Unknown"] - }, + "errors": [ + "RequestLimitExceeded", + "InvalidTargetArn.Unknown", + "UnauthorizedOperation" + ] + }, "describeStaleSecurityGroups": { - "errors": ["RequestLimitExceeded", "InvalidVpcID.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidVpcID.NotFound", + "UnauthorizedOperation" + ] }, "describeVpcEndpointServicePermissions": { "errors": [ "RequestLimitExceeded", "InvalidVpcEndpointServiceId.Malformed", - "InvalidVpcEndpointServiceId.NotFound" + "InvalidVpcEndpointServiceId.NotFound", + "UnauthorizedOperation" ] }, "detachVerifiedAccessTrustProvider": { "errors": [ "RequestLimitExceeded", "DependencyViolation", - "InvalidVerifiedAccessInstanceId.NotFound" + "InvalidVerifiedAccessInstanceId.NotFound", + "UnauthorizedOperation" ] }, "disableAddressTransfer": { - "errors": ["RequestLimitExceeded", "InvalidElasticIpID.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidElasticIpID.NotFound", + "UnauthorizedOperation" + ] }, "disableFastLaunch": { - "errors": ["RequestLimitExceeded", "InvalidRequest"] + "errors": [ + "RequestLimitExceeded", + "InvalidRequest", + "UnauthorizedOperation" + ] }, "disableImage": { - "errors": ["RequestLimitExceeded", "InvalidAMIID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidAMIID.Malformed", + "UnauthorizedOperation" + ] }, "disableImageDeprecation": { - "errors": ["RequestLimitExceeded", "InvalidAMIID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidAMIID.Malformed", + "UnauthorizedOperation" + ] }, "disableImageDeregistrationProtection": { - "errors": ["RequestLimitExceeded", "InvalidAMIID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidAMIID.Malformed", + "UnauthorizedOperation" + ] }, "disableIpamPolicy": { "errors": [ "RequestLimitExceeded", "InvalidIpamPolicyId.Malformed", - "InvalidIpamPolicyId.NotFound" + "InvalidIpamPolicyId.NotFound", + "UnauthorizedOperation" ] }, "disableRouteServerPropagation": { - "errors": ["RequestLimitExceeded", "InvalidRouteServerId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidRouteServerId.NotFound", + "UnauthorizedOperation" + ] }, "disableTransitGatewayRouteTablePropagation": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "disableVgwRoutePropagation": { - "errors": ["RequestLimitExceeded", "InvalidRouteTableID.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidRouteTableID.NotFound", + "UnauthorizedOperation" + ] }, "disassociateEnclaveCertificateIamRole": { "errors": [ "RequestLimitExceeded", "InvalidCertificateArn.Malformed", - "InvalidRoleArn.Malformed" + "InvalidRoleArn.Malformed", + "UnauthorizedOperation" ] }, "disassociateIamInstanceProfile": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "disassociateInstanceEventWindow": { "errors": [ "RequestLimitExceeded", "DependencyViolation", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "disassociateIpamResourceDiscovery": { "errors": [ "RequestLimitExceeded", "InvalidIpamResourceDiscoveryAssociationId.Malformed", - "InvalidIpamResourceDiscoveryAssociationId.NotFound" + "InvalidIpamResourceDiscoveryAssociationId.NotFound", + "UnauthorizedOperation" ] }, "disassociateTrunkInterface": { - "errors": ["RequestLimitExceeded", "OperationNotPermitted"] + "errors": [ + "RequestLimitExceeded", + "OperationNotPermitted", + "UnauthorizedOperation" + ] }, "enableAddressTransfer": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "enableFastLaunch": { - "errors": ["RequestLimitExceeded", "InvalidRequest"] + "errors": [ + "RequestLimitExceeded", + "InvalidRequest", + "UnauthorizedOperation" + ] }, "enableImage": { - "errors": ["RequestLimitExceeded", "InvalidAMIID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidAMIID.Malformed", + "UnauthorizedOperation" + ] }, "enableImageBlockPublicAccess": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "enableImageDeprecation": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "enableImageDeregistrationProtection": { - "errors": ["RequestLimitExceeded", "InvalidAMIID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidAMIID.Malformed", + "UnauthorizedOperation" + ] }, "enableIpamPolicy": { "errors": [ "RequestLimitExceeded", "InvalidIpamPolicyId.Malformed", - "InvalidIpamPolicyId.NotFound" + "InvalidIpamPolicyId.NotFound", + "UnauthorizedOperation" ] }, "enableRouteServerPropagation": { - "errors": ["RequestLimitExceeded", "InvalidRouteServerId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidRouteServerId.NotFound", + "UnauthorizedOperation" + ] }, "enableTransitGatewayRouteTablePropagation": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "enableVgwRoutePropagation": { - "errors": ["RequestLimitExceeded", "InvalidRouteTableID.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidRouteTableID.NotFound", + "UnauthorizedOperation" + ] }, "exportImage": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "exportTransitGatewayRoutes": { - "errors": ["RequestLimitExceeded", "InvalidRouteTableID.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidRouteTableID.NotFound", + "UnauthorizedOperation" + ] }, "exportVerifiedAccessInstanceClientConfiguration": { "errors": [ "RequestLimitExceeded", - "InvalidVerifiedAccessInstanceId.NotFound" + "InvalidVerifiedAccessInstanceId.NotFound", + "UnauthorizedOperation" ] }, "getActiveVpnTunnelStatus": { - "errors": ["RequestLimitExceeded", "InvalidVpnConnectionID.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidVpnConnectionID.NotFound", + "UnauthorizedOperation" + ] }, "getAssociatedEnclaveCertificateIamRoles": { "errors": [ @@ -2663,1022 +3467,1810 @@ ] }, "getAssociatedIpv6PoolCidrs": { - "errors": ["RequestLimitExceeded", "InvalidIpv6PoolID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidIpv6PoolID.Malformed", + "UnauthorizedOperation" + ] }, "getCapacityReservationUsage": { "errors": [ "RequestLimitExceeded", - "InvalidCapacityReservationId.Malformed" + "InvalidCapacityReservationId.Malformed", + "UnauthorizedOperation" ] }, "getCoipPoolUsage": { - "errors": ["RequestLimitExceeded", "InvalidPoolID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidPoolID.Malformed", + "UnauthorizedOperation" + ] }, "getDeclarativePoliciesReportSummary": { "errors": [ "RequestLimitExceeded", - "InvalidDeclarativePoliciesReportId.Malformed" + "InvalidDeclarativePoliciesReportId.Malformed", + "UnauthorizedOperation" ] }, "getGroupsForCapacityReservation": { "errors": [ "RequestLimitExceeded", - "InvalidCapacityReservationId.Malformed" + "InvalidCapacityReservationId.Malformed", + "UnauthorizedOperation" ] }, "getImageAncestry": { - "errors": ["RequestLimitExceeded", "InvalidAMIID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidAMIID.Malformed", + "UnauthorizedOperation" + ] }, "getInstanceTpmEkPub": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "getInstanceUefiData": { - "errors": ["RequestLimitExceeded", "InvalidInstanceID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidInstanceID.Malformed", + "UnauthorizedOperation" + ] }, "getIpamAddressHistory": { - "errors": ["RequestLimitExceeded", "InvalidIpamScopeId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidIpamScopeId.NotFound", + "UnauthorizedOperation" + ] }, "getIpamDiscoveredAccounts": { "errors": [ "RequestLimitExceeded", "InvalidIpamResourceDiscoveryId.Malformed", - "InvalidIpamResourceDiscoveryId.NotFound" + "InvalidIpamResourceDiscoveryId.NotFound", + "UnauthorizedOperation" ] }, "getIpamDiscoveredPublicAddresses": { "errors": [ "RequestLimitExceeded", "InvalidIpamResourceDiscoveryId.Malformed", - "InvalidIpamResourceDiscoveryId.NotFound" + "InvalidIpamResourceDiscoveryId.NotFound", + "UnauthorizedOperation" ] }, "getIpamDiscoveredResourceCidrs": { "errors": [ "RequestLimitExceeded", "InvalidIpamResourceDiscoveryId.Malformed", - "InvalidIpamResourceDiscoveryId.NotFound" + "InvalidIpamResourceDiscoveryId.NotFound", + "UnauthorizedOperation" ] }, "getIpamPolicyAllocationRules": { "errors": [ "RequestLimitExceeded", "InvalidIpamPolicyId.Malformed", - "InvalidIpamPolicyId.NotFound" + "InvalidIpamPolicyId.NotFound", + "UnauthorizedOperation" ] }, "getIpamPolicyOrganizationTargets": { "errors": [ "RequestLimitExceeded", "InvalidIpamPolicyId.Malformed", - "InvalidIpamPolicyId.NotFound" + "InvalidIpamPolicyId.NotFound", + "UnauthorizedOperation" ] }, "getIpamPrefixListResolverRules": { "errors": [ "RequestLimitExceeded", "InvalidIpamPrefixListResolverId.Malformed", - "InvalidIpamPrefixListResolverId.NotFound" + "InvalidIpamPrefixListResolverId.NotFound", + "UnauthorizedOperation" ] }, "getIpamPrefixListResolverVersionEntries": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "getIpamPrefixListResolverVersions": { "errors": [ "RequestLimitExceeded", "InvalidIpamPrefixListResolverId.Malformed", - "InvalidIpamPrefixListResolverId.NotFound" + "InvalidIpamPrefixListResolverId.NotFound", + "UnauthorizedOperation" ] }, "getIpamResourceCidrs": { "errors": [ "RequestLimitExceeded", "InvalidIpamPoolId.NotFound", - "InvalidIpamScopeId.NotFound" + "InvalidIpamScopeId.NotFound", + "UnauthorizedOperation" ] }, "getLaunchTemplateData": { - "errors": ["RequestLimitExceeded", "InvalidInstanceID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidInstanceID.Malformed", + "UnauthorizedOperation" + ] }, "getManagedPrefixListAssociations": { "errors": [ "RequestLimitExceeded", "InvalidPrefixListID.NotFound", - "InvalidPrefixListId.Malformed" + "InvalidPrefixListId.Malformed", + "UnauthorizedOperation" ] }, "getNetworkInsightsAccessScopeAnalysisFindings": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "getNetworkInsightsAccessScopeContent": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "getRouteServerAssociations": { - "errors": ["RequestLimitExceeded", "InvalidRouteServerId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidRouteServerId.NotFound", + "UnauthorizedOperation" + ] }, "getRouteServerPropagations": { - "errors": ["RequestLimitExceeded", "InvalidRouteServerId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidRouteServerId.NotFound", + "UnauthorizedOperation" + ] }, "getRouteServerRoutingDatabase": { - "errors": ["RequestLimitExceeded", "InvalidRouteServerId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidRouteServerId.NotFound", + "UnauthorizedOperation" + ] }, "getTransitGatewayAttachmentPropagations": { "errors": [ "RequestLimitExceeded", - "InvalidTransitGatewayAttachmentID.NotFound" + "InvalidTransitGatewayAttachmentID.NotFound", + "UnauthorizedOperation" ] }, "getTransitGatewayMeteringPolicyEntries": { "errors": [ "RequestLimitExceeded", "InvalidTransitGatewayMeteringPolicyId.NotFound", - "InvalidTransitGatewayMeteringPolicyIdMalformedException" + "InvalidTransitGatewayMeteringPolicyIdMalformedException", + "UnauthorizedOperation" ] }, "getTransitGatewayPolicyTableAssociations": { "errors": [ "RequestLimitExceeded", "InvalidTransitGatewayPolicyTableId.Malformed", - "InvalidTransitGatewayPolicyTableId.NotFound" + "InvalidTransitGatewayPolicyTableId.NotFound", + "UnauthorizedOperation" ] }, "getTransitGatewayPolicyTableEntries": { "errors": [ "RequestLimitExceeded", "InvalidTransitGatewayPolicyTableId.Malformed", - "InvalidTransitGatewayPolicyTableId.NotFound" + "InvalidTransitGatewayPolicyTableId.NotFound", + "UnauthorizedOperation" ] }, "getTransitGatewayRouteTableAssociations": { - "errors": ["RequestLimitExceeded", "InvalidRouteTableID.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidRouteTableID.NotFound", + "UnauthorizedOperation" + ] }, "getTransitGatewayRouteTablePropagations": { - "errors": ["RequestLimitExceeded", "InvalidRouteTableID.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidRouteTableID.NotFound", + "UnauthorizedOperation" + ] }, "getVerifiedAccessEndpointPolicy": { "errors": [ "RequestLimitExceeded", "InvalidParameterValue", - "InvalidVerifiedAccessEndpointId.NotFound" + "InvalidVerifiedAccessEndpointId.NotFound", + "UnauthorizedOperation" ] }, "getVerifiedAccessEndpointTargets": { "errors": [ "RequestLimitExceeded", - "InvalidVerifiedAccessEndpointId.NotFound" + "InvalidVerifiedAccessEndpointId.NotFound", + "UnauthorizedOperation" ] }, "getVerifiedAccessGroupPolicy": { "errors": [ "RequestLimitExceeded", - "InvalidVerifiedAccessGroupId.NotFound" + "InvalidVerifiedAccessGroupId.NotFound", + "UnauthorizedOperation" ] }, "getVpcResourcesBlockingEncryptionEnforcement": { - "errors": ["RequestLimitExceeded", "InvalidVpcId.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidVpcId.Malformed", + "UnauthorizedOperation" + ] }, "getVpnConnectionDeviceSampleConfiguration": { "errors": [ "RequestLimitExceeded", - "InvalidVpnConnectionDeviceTypeId.NotFound" + "InvalidVpnConnectionDeviceTypeId.NotFound", + "UnauthorizedOperation" ] }, "getVpnTunnelReplacementStatus": { - "errors": ["RequestLimitExceeded", "InvalidVpnConnectionId"] + "errors": [ + "RequestLimitExceeded", + "InvalidVpnConnectionId", + "UnauthorizedOperation" + ] }, "lockSnapshot": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "modifyAddressAttribute": { "errors": [ "RequestLimitExceeded", "InvalidAllocationID.NotFound", - "InvalidElasticIpID.NotFound" + "InvalidElasticIpID.NotFound", + "UnauthorizedOperation" ] }, "modifyAvailabilityZoneGroup": { - "errors": ["RequestLimitExceeded", "MissingParameter"] - }, + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] + }, "modifyCapacityReservation": { "errors": [ "RequestLimitExceeded", - "InvalidCapacityReservationId.Malformed" + "InvalidCapacityReservationId.Malformed", + "UnauthorizedOperation" ] }, "modifyCapacityReservationFleet": { "errors": [ "RequestLimitExceeded", - "InvalidCapacityReservationFleetId.Malformed" + "InvalidCapacityReservationFleetId.Malformed", + "UnauthorizedOperation" ] }, "modifyFleet": { - "errors": ["RequestLimitExceeded", "InvalidFleetId.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidFleetId.Malformed", + "UnauthorizedOperation" + ] }, "modifyFpgaImageAttribute": { "errors": [ "RequestLimitExceeded", "InvalidFpgaImageID.Malformed", - "InvalidFpgaImageID.NotFound" + "InvalidFpgaImageID.NotFound", + "UnauthorizedOperation" ] }, "modifyInstanceCapacityReservationAttributes": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "modifyInstanceConnectEndpoint": { "errors": [ "RequestLimitExceeded", "InvalidInstanceConnectEndpointId.Malformed", - "InvalidInstanceConnectEndpointId.NotFound" + "InvalidInstanceConnectEndpointId.NotFound", + "UnauthorizedOperation" ] }, "modifyInstanceCpuOptions": { - "errors": ["RequestLimitExceeded", "InvalidInstanceID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidInstanceID.Malformed", + "UnauthorizedOperation" + ] }, "modifyInstanceEventStartTime": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "modifyInstanceEventWindow": { "errors": [ "RequestLimitExceeded", "InvalidInstanceEventWindowIDNotFound", - "InvalidInstanceEventWindowId.Malformed" + "InvalidInstanceEventWindowId.Malformed", + "UnauthorizedOperation" ] }, "modifyInstanceMaintenanceOptions": { - "errors": ["RequestLimitExceeded", "InvalidInstanceID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidInstanceID.Malformed", + "UnauthorizedOperation" + ] }, "modifyInstanceMetadataOptions": { - "errors": ["RequestLimitExceeded", "InvalidInstanceID.Malformed"] - }, - "modifyInstanceNetworkPerformance": { - "errors": ["RequestLimitExceeded", "InvalidAction"] + "errors": [ + "RequestLimitExceeded", + "InvalidInstanceID.Malformed", + "UnauthorizedOperation" + ] }, "modifyInstancePlacement": { - "errors": ["RequestLimitExceeded", "InvalidInstanceID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidInstanceID.Malformed", + "UnauthorizedOperation" + ] }, "modifyIpam": { - "errors": ["RequestLimitExceeded", "InvalidParameterCombination"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterCombination", + "UnauthorizedOperation" + ] }, "modifyIpamPolicyAllocationRules": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "modifyIpamPool": { - "errors": ["RequestLimitExceeded", "InvalidIpamPoolId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidIpamPoolId.NotFound", + "UnauthorizedOperation" + ] }, "modifyIpamPrefixListResolver": { "errors": [ "RequestLimitExceeded", "InvalidIpamPrefixListResolverId.Malformed", - "InvalidIpamPrefixListResolverId.NotFound" + "InvalidIpamPrefixListResolverId.NotFound", + "UnauthorizedOperation" ] }, "modifyIpamPrefixListResolverTarget": { "errors": [ "RequestLimitExceeded", - "InvalidIpamPrefixListResolverTargetId.Malformed" + "InvalidIpamPrefixListResolverTargetId.Malformed", + "UnauthorizedOperation" ] }, "modifyIpamResourceCidr": { "errors": [ "RequestLimitExceeded", "InvalidIpamScopeId.Malformed", - "InvalidParameterValue" + "InvalidParameterValue", + "UnauthorizedOperation" ] }, "modifyIpamResourceDiscovery": { "errors": [ "RequestLimitExceeded", "InvalidIpamResourceDiscoveryId.Malformed", - "InvalidIpamResourceDiscoveryId.NotFound" + "InvalidIpamResourceDiscoveryId.NotFound", + "UnauthorizedOperation" ] }, "modifyIpamScope": { - "errors": ["RequestLimitExceeded", "InvalidParameterCombination"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterCombination", + "UnauthorizedOperation" + ] }, "modifyLocalGatewayRoute": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "modifyPrivateDnsNameOptions": { - "errors": ["RequestLimitExceeded", "UnknownResource"] + "errors": [ + "RequestLimitExceeded", + "UnknownResource", + "UnauthorizedOperation" + ] }, "modifyPublicIpDnsNameOptions": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "modifyRouteServer": { - "errors": ["RequestLimitExceeded", "InvalidRouteServerId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidRouteServerId.NotFound", + "UnauthorizedOperation" + ] }, "modifySnapshotTier": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "modifyTrafficMirrorFilterNetworkServices": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "modifyTrafficMirrorFilterRule": { "errors": [ "RequestLimitExceeded", "InvalidParameterValue", - "InvalidTrafficMirrorFilterRuleId.NotFound" + "InvalidTrafficMirrorFilterRuleId.NotFound", + "UnauthorizedOperation" ] }, "modifyTrafficMirrorSession": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "modifyTransitGateway": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "modifyTransitGatewayMeteringPolicy": { "errors": [ "RequestLimitExceeded", "InvalidTransitGatewayMeteringPolicyIdMalformedException", - "MissingParameter" + "MissingParameter", + "UnauthorizedOperation" ] }, "modifyTransitGatewayPrefixListReference": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "modifyTransitGatewayVpcAttachment": { "errors": [ "RequestLimitExceeded", - "InvalidTransitGatewayAttachmentID.NotFound" + "InvalidTransitGatewayAttachmentID.NotFound", + "UnauthorizedOperation" ] }, "modifyVerifiedAccessEndpoint": { "errors": [ "RequestLimitExceeded", "InvalidParameterValue", - "InvalidVerifiedAccessEndpointId.NotFound" + "InvalidVerifiedAccessEndpointId.NotFound", + "UnauthorizedOperation" ] }, "modifyVerifiedAccessEndpointPolicy": { "errors": [ "RequestLimitExceeded", "InvalidParameterValue", - "InvalidVerifiedAccessEndpointId.NotFound" + "InvalidVerifiedAccessEndpointId.NotFound", + "UnauthorizedOperation" ] }, "modifyVerifiedAccessGroup": { "errors": [ "RequestLimitExceeded", - "InvalidVerifiedAccessGroupId.NotFound" + "InvalidVerifiedAccessGroupId.NotFound", + "UnauthorizedOperation" ] }, "modifyVerifiedAccessGroupPolicy": { "errors": [ "RequestLimitExceeded", - "InvalidVerifiedAccessGroupId.NotFound" + "InvalidVerifiedAccessGroupId.NotFound", + "UnauthorizedOperation" ] }, "modifyVerifiedAccessInstance": { "errors": [ "RequestLimitExceeded", - "InvalidVerifiedAccessInstanceId.NotFound" + "InvalidVerifiedAccessInstanceId.NotFound", + "UnauthorizedOperation" ] }, "modifyVerifiedAccessInstanceLoggingConfiguration": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "modifyVerifiedAccessTrustProvider": { "errors": [ "RequestLimitExceeded", - "InvalidVerifiedAccessTrustProviderId.NotFound" + "InvalidVerifiedAccessTrustProviderId.NotFound", + "UnauthorizedOperation" ] }, "modifyVpcEncryptionControl": { "errors": [ "RequestLimitExceeded", "InvalidVpcEncryptionControlId.Malformed", - "InvalidVpcEncryptionControlId.NotFound" + "InvalidVpcEncryptionControlId.NotFound", + "UnauthorizedOperation" ] }, "modifyVpcEndpointConnectionNotification": { "errors": [ "RequestLimitExceeded", "InvalidConnectionNotification", - "InvalidParameter" + "InvalidParameter", + "UnauthorizedOperation" ] }, "modifyVpcEndpointServicePayerResponsibility": { - "errors": ["RequestLimitExceeded", "UnsupportedOperation"] + "errors": [ + "RequestLimitExceeded", + "UnsupportedOperation", + "UnauthorizedOperation" + ] }, "modifyVpcEndpointServicePermissions": { "errors": [ "RequestLimitExceeded", "InvalidVpcEndpointServiceId.Malformed", - "InvalidVpcEndpointServiceId.NotFound" + "InvalidVpcEndpointServiceId.NotFound", + "UnauthorizedOperation" ] }, "modifyVpnConnection": { - "errors": ["RequestLimitExceeded", "InvalidVpnConnectionId"] + "errors": [ + "RequestLimitExceeded", + "InvalidVpnConnectionId", + "UnauthorizedOperation" + ] }, "modifyVpnConnectionOptions": { - "errors": ["RequestLimitExceeded", "InvalidVpnConnectionID.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidVpnConnectionID.NotFound", + "UnauthorizedOperation" + ] }, "modifyVpnTunnelCertificate": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "modifyVpnTunnelOptions": { - "errors": ["RequestLimitExceeded", "InvalidVpnConnectionId"] + "errors": [ + "RequestLimitExceeded", + "InvalidVpnConnectionId", + "UnauthorizedOperation" + ] }, "moveByoipCidrToIpam": { - "errors": ["RequestLimitExceeded", "InvalidIpamPoolId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidIpamPoolId.NotFound", + "UnauthorizedOperation" + ] }, "moveCapacityReservationInstances": { "errors": [ "RequestLimitExceeded", - "InvalidCapacityReservationId.Malformed" + "InvalidCapacityReservationId.Malformed", + "UnauthorizedOperation" ] }, "replaceTransitGatewayRoute": { - "errors": ["RequestLimitExceeded", "InvalidRouteTableID.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidRouteTableID.NotFound", + "UnauthorizedOperation" + ] }, "replaceVpnTunnel": { - "errors": ["RequestLimitExceeded", "InvalidVpnConnectionId"] + "errors": [ + "RequestLimitExceeded", + "InvalidVpnConnectionId", + "UnauthorizedOperation" + ] }, "resetAddressAttribute": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "resetFpgaImageAttribute": { - "errors": ["RequestLimitExceeded", "InvalidFpgaImageID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidFpgaImageID.Malformed", + "UnauthorizedOperation" + ] }, "resetInstanceAttribute": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "resetNetworkInterfaceAttribute": { - "errors": ["RequestLimitExceeded", "InvalidParameterCombination"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterCombination", + "UnauthorizedOperation" + ] }, "restoreImageFromRecycleBin": { - "errors": ["RequestLimitExceeded", "InvalidAMIID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidAMIID.Malformed", + "UnauthorizedOperation" + ] }, "restoreManagedPrefixListVersion": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "restoreSnapshotFromRecycleBin": { - "errors": ["RequestLimitExceeded", "InvalidSnapshotID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidSnapshotID.Malformed", + "UnauthorizedOperation" + ] }, "restoreSnapshotTier": { - "errors": ["RequestLimitExceeded", "InvalidSnapshotID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidSnapshotID.Malformed", + "UnauthorizedOperation" + ] }, "restoreVolumeFromRecycleBin": { - "errors": ["RequestLimitExceeded", "InvalidVolumeID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidVolumeID.Malformed", + "UnauthorizedOperation" + ] }, "searchTransitGatewayMulticastGroups": { "errors": [ "RequestLimitExceeded", "InvalidTransitGatewayMulticastDomainId.Malformed", - "InvalidTransitGatewayMulticastDomainId.NotFound" + "InvalidTransitGatewayMulticastDomainId.NotFound", + "UnauthorizedOperation" ] }, "sendDiagnosticInterrupt": { - "errors": ["RequestLimitExceeded", "InvalidInstanceID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidInstanceID.Malformed", + "UnauthorizedOperation" + ] }, "unlockSnapshot": { - "errors": ["RequestLimitExceeded", "InvalidSnapshotID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidSnapshotID.Malformed", + "UnauthorizedOperation" + ] }, "updateInterruptibleCapacityReservationAllocation": { "errors": [ "RequestLimitExceeded", - "InvalidCapacityReservationId.NotFound" + "InvalidCapacityReservationId.NotFound", + "UnauthorizedOperation" ] }, "acceptReservedInstancesExchangeQuote": { - "errors": ["RequestLimitExceeded", "InvalidReservedInstancesID.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidReservedInstancesID.NotFound", + "UnauthorizedOperation" + ] }, "applySecurityGroupsToClientVpnTargetNetwork": { - "errors": ["RequestLimitExceeded", "InvalidVpcId.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidVpcId.Malformed", + "UnauthorizedOperation" + ] }, "associateTransitGatewayMulticastDomain": { "errors": [ "RequestLimitExceeded", - "InvalidTransitGatewayMulticastDomainId.NotFound" + "InvalidTransitGatewayMulticastDomainId.NotFound", + "UnauthorizedOperation" ] }, "cancelCapacityReservationFleets": { "errors": [ "RequestLimitExceeded", - "InvalidCapacityReservationFleetId.Malformed" + "InvalidCapacityReservationFleetId.Malformed", + "UnauthorizedOperation" ] }, "deleteFleets": { - "errors": ["RequestLimitExceeded", "InvalidFleetId.Malformed"] - }, - "deleteQueuedReservedInstances": { - "errors": ["RequestLimitExceeded", "InvalidReservedInstancesID.NotFound"] - }, + "errors": [ + "RequestLimitExceeded", + "InvalidFleetId.Malformed", + "UnauthorizedOperation" + ] + }, + "deleteQueuedReservedInstances": { + "errors": [ + "RequestLimitExceeded", + "InvalidReservedInstancesID.NotFound", + "UnauthorizedOperation" + ] + }, "describeCapacityBlockExtensionHistory": { "errors": [ "RequestLimitExceeded", - "InvalidCapacityReservationId.Malformed" + "InvalidCapacityReservationId.Malformed", + "UnauthorizedOperation" ] }, "describeCapacityBlockStatus": { - "errors": ["RequestLimitExceeded", "InvalidCapacityBlockId.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidCapacityBlockId.Malformed", + "UnauthorizedOperation" + ] }, "describeCapacityBlocks": { - "errors": ["RequestLimitExceeded", "InvalidCapacityBlockId.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidCapacityBlockId.Malformed", + "UnauthorizedOperation" + ] }, "describeCapacityManagerDataExports": { "errors": [ "RequestLimitExceeded", - "InvalidCapacityManagerDataExportId.NotFound" + "InvalidCapacityManagerDataExportId.NotFound", + "UnauthorizedOperation" ] }, "describeCapacityReservationBillingRequests": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "describeCapacityReservationFleets": { "errors": [ "RequestLimitExceeded", - "InvalidCapacityReservationFleetId.Malformed" + "InvalidCapacityReservationFleetId.Malformed", + "UnauthorizedOperation" ] }, "describeCapacityReservations": { "errors": [ "RequestLimitExceeded", - "InvalidCapacityReservationId.Malformed" + "InvalidCapacityReservationId.Malformed", + "UnauthorizedOperation" ] }, "describeClassicLinkInstances": { - "errors": ["RequestLimitExceeded", "InvalidInstanceID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidInstanceID.Malformed", + "UnauthorizedOperation" + ] }, "describeClientVpnEndpoints": { - "errors": ["RequestLimitExceeded", "InvalidClientVpnEndpointId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidClientVpnEndpointId.NotFound", + "UnauthorizedOperation" + ] }, "describeCoipPools": { - "errors": ["RequestLimitExceeded", "InvalidPoolID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidPoolID.Malformed", + "UnauthorizedOperation" + ] }, "describeDeclarativePoliciesReports": { - "errors": ["RequestLimitExceeded", "InvalidParameter"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameter", + "UnauthorizedOperation" + ] }, "describeElasticGpus": { - "errors": ["RequestLimitExceeded", "UnsupportedOperation"] + "errors": [ + "RequestLimitExceeded", + "UnsupportedOperation", + "UnauthorizedOperation" + ] }, "describeExportImageTasks": { - "errors": ["RequestLimitExceeded", "InvalidExportTaskID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidExportTaskID.Malformed", + "UnauthorizedOperation" + ] }, "describeExportTasks": { - "errors": ["RequestLimitExceeded", "InvalidExportTaskID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidExportTaskID.Malformed", + "UnauthorizedOperation" + ] }, "describeFastLaunchImages": { - "errors": ["RequestLimitExceeded", "InvalidRequest"] + "errors": [ + "RequestLimitExceeded", + "InvalidRequest", + "UnauthorizedOperation" + ] }, "describeFleets": { - "errors": ["RequestLimitExceeded", "InvalidFleetId.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidFleetId.Malformed", + "UnauthorizedOperation" + ] }, "describeFpgaImages": { - "errors": ["RequestLimitExceeded", "InvalidFpgaImageID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidFpgaImageID.Malformed", + "UnauthorizedOperation" + ] }, "describeHostReservationOfferings": { "errors": [ "RequestLimitExceeded", - "InvalidHostReservationOfferingId.Malformed" + "InvalidHostReservationOfferingId.Malformed", + "UnauthorizedOperation" ] }, "describeIamInstanceProfileAssociations": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "describeImageReferences": { - "errors": ["RequestLimitExceeded", "InvalidAMIID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidAMIID.Malformed", + "UnauthorizedOperation" + ] }, "describeImageUsageReportEntries": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "describeImageUsageReports": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "describeImportImageTasks": { - "errors": ["RequestLimitExceeded", "InvalidParameter"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameter", + "UnauthorizedOperation" + ] }, "describeImportSnapshotTasks": { - "errors": ["RequestLimitExceeded", "InvalidParameter"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameter", + "UnauthorizedOperation" + ] }, "describeInstanceConnectEndpoints": { "errors": [ "RequestLimitExceeded", - "InvalidInstanceConnectEndpointId.NotFound" + "InvalidInstanceConnectEndpointId.NotFound", + "UnauthorizedOperation" ] }, "describeInstanceCreditSpecifications": { - "errors": ["RequestLimitExceeded", "InvalidInstanceID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidInstanceID.Malformed", + "UnauthorizedOperation" + ] }, "describeInstanceEventWindows": { - "errors": ["RequestLimitExceeded", "InvalidInstanceEventWindowIDNotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidInstanceEventWindowIDNotFound", + "UnauthorizedOperation" + ] }, "describeInstanceImageMetadata": { - "errors": ["RequestLimitExceeded", "InvalidInstanceID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidInstanceID.Malformed", + "UnauthorizedOperation" + ] }, "describeInstanceSqlHaHistoryStates": { - "errors": ["RequestLimitExceeded", "InvalidInstanceID.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidInstanceID.NotFound", + "UnauthorizedOperation" + ] }, "describeInstanceSqlHaStates": { - "errors": ["RequestLimitExceeded", "InvalidInstanceID.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidInstanceID.NotFound", + "UnauthorizedOperation" + ] }, "describeIpamExternalResourceVerificationTokens": { "errors": [ "RequestLimitExceeded", - "InvalidIpamExternalResourceVerificationTokenId.NotFound" + "InvalidIpamExternalResourceVerificationTokenId.NotFound", + "UnauthorizedOperation" ] }, "describeIpamPolicies": { - "errors": ["RequestLimitExceeded", "InvalidIpamPolicyId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidIpamPolicyId.NotFound", + "UnauthorizedOperation" + ] }, "describeIpamPools": { - "errors": ["RequestLimitExceeded", "InvalidIpamPoolId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidIpamPoolId.NotFound", + "UnauthorizedOperation" + ] }, "describeIpamPrefixListResolverTargets": { "errors": [ "RequestLimitExceeded", - "InvalidIpamPrefixListResolverTargetId.Malformed" + "InvalidIpamPrefixListResolverTargetId.Malformed", + "UnauthorizedOperation" ] }, "describeIpamPrefixListResolvers": { "errors": [ "RequestLimitExceeded", - "InvalidIpamPrefixListResolverId.NotFound" + "InvalidIpamPrefixListResolverId.NotFound", + "UnauthorizedOperation" ] }, "describeIpamResourceDiscoveries": { "errors": [ "RequestLimitExceeded", - "InvalidIpamResourceDiscoveryId.NotFound" + "InvalidIpamResourceDiscoveryId.NotFound", + "UnauthorizedOperation" ] }, "describeIpamResourceDiscoveryAssociations": { "errors": [ "RequestLimitExceeded", - "InvalidIpamResourceDiscoveryAssociationId.NotFound" + "InvalidIpamResourceDiscoveryAssociationId.NotFound", + "UnauthorizedOperation" ] }, "describeIpamScopes": { - "errors": ["RequestLimitExceeded", "InvalidIpamScopeId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidIpamScopeId.NotFound", + "UnauthorizedOperation" + ] }, "describeIpams": { - "errors": ["RequestLimitExceeded", "InvalidIpamId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidIpamId.NotFound", + "UnauthorizedOperation" + ] }, "describeIpv6Pools": { - "errors": ["RequestLimitExceeded", "InvalidIpv6PoolID.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidIpv6PoolID.NotFound", + "UnauthorizedOperation" + ] }, "describeLockedSnapshots": { - "errors": ["RequestLimitExceeded", "InvalidRequest"] + "errors": [ + "RequestLimitExceeded", + "InvalidRequest", + "UnauthorizedOperation" + ] }, "describeMacHosts": { - "errors": ["RequestLimitExceeded", "InvalidHostID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidHostID.Malformed", + "UnauthorizedOperation" + ] }, "describeMacModificationTasks": { - "errors": ["RequestLimitExceeded", "InvalidParameter"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameter", + "UnauthorizedOperation" + ] }, "describeNetworkInsightsAccessScopeAnalyses": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "describeNetworkInsightsAccessScopes": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "describeNetworkInsightsAnalyses": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "describeNetworkInsightsPaths": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "describeNetworkInterfacePermissions": { - "errors": ["RequestLimitExceeded", "InvalidPermissionID.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidPermissionID.NotFound", + "UnauthorizedOperation" + ] }, "describeOutpostLags": { - "errors": ["RequestLimitExceeded", "InvalidOutpostLagID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidOutpostLagID.Malformed", + "UnauthorizedOperation" + ] }, "describePrefixLists": { - "errors": ["RequestLimitExceeded", "InvalidPrefixListId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidPrefixListId.NotFound", + "UnauthorizedOperation" + ] }, "describePublicIpv4Pools": { - "errors": ["RequestLimitExceeded", "InvalidPublicIpv4PoolID.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidPublicIpv4PoolID.NotFound", + "UnauthorizedOperation" + ] }, "describeReplaceRootVolumeTasks": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "describeReservedInstances": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "describeReservedInstancesModifications": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "describeReservedInstancesOfferings": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "describeRouteServerEndpoints": { "errors": [ "RequestLimitExceeded", - "InvalidRouteServerEndpointId.NotFound" + "InvalidRouteServerEndpointId.NotFound", + "UnauthorizedOperation" ] }, "describeRouteServerPeers": { - "errors": ["RequestLimitExceeded", "InvalidRouteServerPeerId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidRouteServerPeerId.NotFound", + "UnauthorizedOperation" + ] }, "describeRouteServers": { - "errors": ["RequestLimitExceeded", "InvalidRouteServerId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidRouteServerId.NotFound", + "UnauthorizedOperation" + ] }, "describeServiceLinkVirtualInterfaces": { "errors": [ "RequestLimitExceeded", - "InvalidServiceLinkVirtualInterfaceID.Malformed" + "InvalidServiceLinkVirtualInterfaceID.Malformed", + "UnauthorizedOperation" ] }, "describeTrafficMirrorFilters": { "errors": [ "RequestLimitExceeded", - "InvalidTrafficMirrorFilterId.NotFound" + "InvalidTrafficMirrorFilterId.NotFound", + "UnauthorizedOperation" ] }, "describeTrafficMirrorSessions": { "errors": [ "RequestLimitExceeded", - "InvalidTrafficMirrorSessionId.NotFound" + "InvalidTrafficMirrorSessionId.NotFound", + "UnauthorizedOperation" ] }, "describeTrafficMirrorTargets": { "errors": [ "RequestLimitExceeded", - "InvalidTrafficMirrorTargetId.NotFound" + "InvalidTrafficMirrorTargetId.NotFound", + "UnauthorizedOperation" ] }, "describeTransitGatewayConnectPeers": { "errors": [ "RequestLimitExceeded", - "InvalidTransitGatewayConnectPeerID.NotFound" + "InvalidTransitGatewayConnectPeerID.NotFound", + "UnauthorizedOperation" ] }, "describeTransitGatewayConnects": { "errors": [ "RequestLimitExceeded", - "InvalidTransitGatewayAttachmentID.NotFound" - ] + "InvalidTransitGatewayAttachmentID.NotFound", + "UnauthorizedOperation" + ] }, "describeTransitGatewayMeteringPolicies": { "errors": [ "RequestLimitExceeded", - "InvalidTransitGatewayMeteringPolicyId.NotFound" + "InvalidTransitGatewayMeteringPolicyId.NotFound", + "UnauthorizedOperation" ] }, "describeTransitGatewayMulticastDomains": { "errors": [ "RequestLimitExceeded", - "InvalidTransitGatewayMulticastDomainId.NotFound" + "InvalidTransitGatewayMulticastDomainId.NotFound", + "UnauthorizedOperation" ] }, "describeTransitGatewayPeeringAttachments": { "errors": [ "RequestLimitExceeded", - "InvalidTransitGatewayAttachmentID.NotFound" + "InvalidTransitGatewayAttachmentID.NotFound", + "UnauthorizedOperation" ] }, "describeTransitGatewayPolicyTables": { "errors": [ "RequestLimitExceeded", - "InvalidTransitGatewayPolicyTableId.NotFound" + "InvalidTransitGatewayPolicyTableId.NotFound", + "UnauthorizedOperation" ] }, "describeTransitGatewayRouteTableAnnouncements": { "errors": [ "RequestLimitExceeded", - "InvalidTransitGatewayRouteTableAnnouncementId.Malformed" + "InvalidTransitGatewayRouteTableAnnouncementId.Malformed", + "UnauthorizedOperation" ] }, "describeTransitGatewayVpcAttachments": { "errors": [ "RequestLimitExceeded", - "InvalidTransitGatewayAttachmentID.NotFound" + "InvalidTransitGatewayAttachmentID.NotFound", + "UnauthorizedOperation" ] }, "describeTrunkInterfaceAssociations": { - "errors": ["RequestLimitExceeded", "OperationNotPermitted"] + "errors": [ + "RequestLimitExceeded", + "OperationNotPermitted", + "UnauthorizedOperation" + ] }, "describeVerifiedAccessEndpoints": { - "errors": ["RequestLimitExceeded", "InvalidParameterCombination"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterCombination", + "UnauthorizedOperation" + ] }, "describeVerifiedAccessGroups": { "errors": [ "RequestLimitExceeded", - "InvalidVerifiedAccessGroupId.NotFound" + "InvalidVerifiedAccessGroupId.NotFound", + "UnauthorizedOperation" ] }, "describeVerifiedAccessInstanceLoggingConfigurations": { "errors": [ "RequestLimitExceeded", - "InvalidVerifiedAccessInstanceId.NotFound" + "InvalidVerifiedAccessInstanceId.NotFound", + "UnauthorizedOperation" ] }, "describeVerifiedAccessInstances": { "errors": [ "RequestLimitExceeded", - "InvalidVerifiedAccessInstanceId.NotFound" + "InvalidVerifiedAccessInstanceId.NotFound", + "UnauthorizedOperation" ] }, "describeVerifiedAccessTrustProviders": { "errors": [ "RequestLimitExceeded", - "InvalidVerifiedAccessTrustProviderId.NotFound" + "InvalidVerifiedAccessTrustProviderId.NotFound", + "UnauthorizedOperation" ] }, "describeVolumeStatus": { - "errors": ["RequestLimitExceeded", "InvalidVolumeID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidVolumeID.Malformed", + "UnauthorizedOperation" + ] }, "describeVolumesModifications": { - "errors": ["RequestLimitExceeded", "InvalidVolumeID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidVolumeID.Malformed", + "UnauthorizedOperation" + ] }, "describeVpcEncryptionControls": { - "errors": ["RequestLimitExceeded", "InvalidParameterCombination"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterCombination", + "UnauthorizedOperation" + ] }, "describeVpcEndpointConnectionNotifications": { - "errors": ["RequestLimitExceeded", "InvalidConnectionNotification"] + "errors": [ + "RequestLimitExceeded", + "InvalidConnectionNotification", + "UnauthorizedOperation" + ] }, "describeVpnConcentrators": { - "errors": ["RequestLimitExceeded", "InvalidVpnConcentratorId.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidVpnConcentratorId.Malformed", + "UnauthorizedOperation" + ] }, "disableFastSnapshotRestores": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "disableInstanceSqlHaStandbyDetections": { - "errors": ["RequestLimitExceeded", "InvalidInstanceID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidInstanceID.Malformed", + "UnauthorizedOperation" + ] }, "enableFastSnapshotRestores": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "enableInstanceSqlHaStandbyDetections": { - "errors": ["RequestLimitExceeded", "InvalidInstanceID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidInstanceID.Malformed", + "UnauthorizedOperation" + ] }, "getReservedInstancesExchangeQuote": { - "errors": ["RequestLimitExceeded", "InvalidReservedInstancesID.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidReservedInstancesID.NotFound", + "UnauthorizedOperation" + ] }, "listImagesInRecycleBin": { - "errors": ["RequestLimitExceeded", "InvalidAMIID.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidAMIID.NotFound", + "UnauthorizedOperation" + ] }, "listSnapshotsInRecycleBin": { - "errors": ["RequestLimitExceeded", "InvalidSnapshotID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidSnapshotID.Malformed", + "UnauthorizedOperation" + ] }, "listVolumesInRecycleBin": { - "errors": ["RequestLimitExceeded", "InvalidVolumeID.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidVolumeID.Malformed", + "UnauthorizedOperation" + ] }, "modifyReservedInstances": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "cancelConversionTask": { - "errors": ["RequestLimitExceeded", "InvalidAction"] + "errors": [ + "RequestLimitExceeded", + "InvalidAction", + "UnauthorizedOperation" + ] }, "describeCapacityBlockOfferings": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "describeClientVpnAuthorizationRules": { - "errors": ["RequestLimitExceeded", "InvalidClientVpnEndpointId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidClientVpnEndpointId.NotFound", + "UnauthorizedOperation" + ] }, "describeMovingAddresses": { - "errors": ["RequestLimitExceeded", "UnsupportedOperation"] + "errors": [ + "RequestLimitExceeded", + "UnsupportedOperation", + "UnauthorizedOperation" + ] }, "associateInstanceEventWindow": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "associateIpamByoasn": { - "errors": ["RequestLimitExceeded", "InvalidCidr.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidCidr.NotFound", + "UnauthorizedOperation" + ] }, "authorizeClientVpnIngress": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "createCapacityReservationFleet": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "createFleet": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "createFpgaImage": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "createInstanceEventWindow": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "createRestoreImageTask": { - "errors": ["RequestLimitExceeded", "InvalidRequest"] + "errors": [ + "RequestLimitExceeded", + "InvalidRequest", + "UnauthorizedOperation" + ] }, "createSnapshots": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "acceptTransitGatewayMulticastDomainAssociations": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "advertiseByoipCidr": { - "errors": ["RequestLimitExceeded", "RequestLimitExceeded"] + "errors": [ + "RequestLimitExceeded", + "RequestLimitExceeded", + "UnauthorizedOperation" + ] }, "disableAwsNetworkPerformanceMetricSubscription": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "disableCapacityManager": { - "errors": ["RequestLimitExceeded", "CapacityManager.Disabled"] + "errors": [ + "RequestLimitExceeded", + "CapacityManager.Disabled", + "UnauthorizedOperation" + ] }, "disableIpamOrganizationAdminAccount": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "enableAwsNetworkPerformanceMetricSubscription": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "enableIpamOrganizationAdminAccount": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "enableSnapshotBlockPublicAccess": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "modifyClientVpnEndpoint": { - "errors": ["RequestLimitExceeded", "InvalidClientVpnEndpointId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidClientVpnEndpointId.NotFound", + "UnauthorizedOperation" + ] }, "modifyDefaultCreditSpecification": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "modifyEbsDefaultKmsKeyId": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "modifyInstanceMetadataDefaults": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "modifyInstanceNetworkPerformanceOptions": { - "errors": ["RequestLimitExceeded", "InvalidAction"] + "errors": [ + "RequestLimitExceeded", + "InvalidAction", + "UnauthorizedOperation" + ] }, "modifyLaunchTemplate": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "exportClientVpnClientCertificateRevocationList": { - "errors": ["RequestLimitExceeded", "InvalidClientVpnEndpointId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidClientVpnEndpointId.NotFound", + "UnauthorizedOperation" + ] }, "exportClientVpnClientConfiguration": { - "errors": ["RequestLimitExceeded", "InvalidClientVpnEndpointId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidClientVpnEndpointId.NotFound", + "UnauthorizedOperation" + ] }, "requestSpotFleet": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "createVpcEndpointServiceConfiguration": { - "errors": ["RequestLimitExceeded", "InvalidParameter"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameter", + "UnauthorizedOperation" + ] }, "createVpnConcentrator": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "describeSpotFleetInstances": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "describeSpotFleetRequestHistory": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "getAwsNetworkPerformanceData": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "getCapacityManagerMetricData": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "getCapacityManagerMetricDimensions": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "getDefaultCreditSpecification": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "getInstanceTypesFromInstanceRequirements": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "importClientVpnClientCertificateRevocationList": { - "errors": ["RequestLimitExceeded", "InvalidClientVpnEndpointId.NotFound"] + "errors": [ + "RequestLimitExceeded", + "InvalidClientVpnEndpointId.NotFound", + "UnauthorizedOperation" + ] }, "importImage": { - "errors": ["RequestLimitExceeded", "MissingRequiredParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingRequiredParameter", + "UnauthorizedOperation" + ] }, "importInstance": { - "errors": ["RequestLimitExceeded", "InvalidParameter"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameter", + "UnauthorizedOperation" + ] }, "importSnapshot": { - "errors": ["RequestLimitExceeded", "InvalidParameter"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameter", + "UnauthorizedOperation" + ] }, "modifySpotFleetRequest": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "moveAddressToVpc": { - "errors": ["RequestLimitExceeded", "UnsupportedOperation"] + "errors": [ + "RequestLimitExceeded", + "UnsupportedOperation", + "UnauthorizedOperation" + ] }, "provisionByoipCidr": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "purchaseReservedInstancesOffering": { - "errors": ["RequestLimitExceeded", "InvalidParameterValue"] + "errors": [ + "RequestLimitExceeded", + "InvalidParameterValue", + "UnauthorizedOperation" + ] }, "purchaseScheduledInstances": { - "errors": ["RequestLimitExceeded", "InvalidPurchaseToken.Malformed"] + "errors": [ + "RequestLimitExceeded", + "InvalidPurchaseToken.Malformed", + "UnauthorizedOperation" + ] }, "registerInstanceEventNotificationAttributes": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "restoreAddressToClassic": { - "errors": ["RequestLimitExceeded", "UnsupportedOperation"] + "errors": [ + "RequestLimitExceeded", + "UnsupportedOperation", + "UnauthorizedOperation" + ] }, "revokeClientVpnIngress": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "updateCapacityManagerOrganizationsAccess": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "updateSecurityGroupRuleDescriptionsEgress": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] }, "updateSecurityGroupRuleDescriptionsIngress": { - "errors": ["RequestLimitExceeded", "MissingParameter"] + "errors": [ + "RequestLimitExceeded", + "MissingParameter", + "UnauthorizedOperation" + ] } }, "enums": { @@ -3716,13 +5308,21 @@ ] }, "RIProductDescription": { - "add": ["Red Hat Enterprise Linux", "SUSE Linux", "Ubuntu Pro Linux"] + "add": [ + "Red Hat Enterprise Linux", + "SUSE Linux", + "Ubuntu Pro Linux" + ] }, "HypervisorType": { - "add": ["nitro"] + "add": [ + "nitro" + ] }, "VirtualizationType": { - "add": ["nested-virtualization"] + "add": [ + "nested-virtualization" + ] }, "State": { "replace": [ diff --git a/packages/aws/patches/ecr-public.json b/packages/aws/patches/ecr-public.json new file mode 100644 index 0000000000..56c0db21c5 --- /dev/null +++ b/packages/aws/patches/ecr-public.json @@ -0,0 +1,9 @@ +{ + "structures": { + "AuthorizationData": { + "members": { + "authorizationToken": { "sensitive": true } + } + } + } +} diff --git a/packages/aws/patches/ecr.json b/packages/aws/patches/ecr.json index 46290e9c72..b80a1c4b34 100644 --- a/packages/aws/patches/ecr.json +++ b/packages/aws/patches/ecr.json @@ -1,4 +1,11 @@ { + "structures": { + "AuthorizationData": { + "members": { + "authorizationToken": { "sensitive": true } + } + } + }, "errorCategories": { "RepositoryAlreadyExistsException": ["ConflictError", "AlreadyExistsError"], "RepositoryNotFoundException": ["NotFoundError"], diff --git a/packages/aws/patches/eks-auth.json b/packages/aws/patches/eks-auth.json new file mode 100644 index 0000000000..7fdb4e2430 --- /dev/null +++ b/packages/aws/patches/eks-auth.json @@ -0,0 +1,10 @@ +{ + "structures": { + "Credentials": { + "members": { + "secretAccessKey": { "sensitive": true }, + "sessionToken": { "sensitive": true } + } + } + } +} diff --git a/packages/aws/patches/eks.json b/packages/aws/patches/eks.json new file mode 100644 index 0000000000..bd992a872f --- /dev/null +++ b/packages/aws/patches/eks.json @@ -0,0 +1,6 @@ +{ + "operations": { + "createFargateProfile": { "errors": ["ResourceInUseException"] }, + "deleteFargateProfile": { "errors": ["ResourceInUseException"] } + } +} diff --git a/packages/aws/patches/elastic-load-balancing-v2.json b/packages/aws/patches/elastic-load-balancing-v2.json new file mode 100644 index 0000000000..d55518187c --- /dev/null +++ b/packages/aws/patches/elastic-load-balancing-v2.json @@ -0,0 +1,9 @@ +{ + "structures": { + "AuthenticateOidcActionConfig": { + "members": { + "ClientSecret": { "sensitive": true } + } + } + } +} diff --git a/packages/aws/patches/elasticache.json b/packages/aws/patches/elasticache.json new file mode 100644 index 0000000000..fb01a0356b --- /dev/null +++ b/packages/aws/patches/elasticache.json @@ -0,0 +1,39 @@ +{ + "structures": { + "CreateCacheClusterMessage": { + "members": { + "AuthToken": { "sensitive": true } + } + }, + "ModifyCacheClusterMessage": { + "members": { + "AuthToken": { "sensitive": true } + } + }, + "CreateReplicationGroupMessage": { + "members": { + "AuthToken": { "sensitive": true } + } + }, + "ModifyReplicationGroupMessage": { + "members": { + "AuthToken": { "sensitive": true } + } + }, + "AuthenticationMode": { + "members": { + "Passwords": { "sensitive": true } + } + }, + "CreateUserMessage": { + "members": { + "Passwords": { "sensitive": true } + } + }, + "ModifyUserMessage": { + "members": { + "Passwords": { "sensitive": true } + } + } + } +} diff --git a/packages/aws/patches/emr-containers.json b/packages/aws/patches/emr-containers.json new file mode 100644 index 0000000000..1f2fbf9180 --- /dev/null +++ b/packages/aws/patches/emr-containers.json @@ -0,0 +1,26 @@ +{ + "operations": { + "tagResource": { + "syntheticErrors": [ + { + "name": "InvalidResourceArn", + "from": "BadRequestException", + "message": { + "includes": "Invalid input resource arn" + } + } + ] + }, + "untagResource": { + "syntheticErrors": [ + { + "name": "InvalidResourceArn", + "from": "BadRequestException", + "message": { + "includes": "Invalid input resource arn" + } + } + ] + } + } +} diff --git a/packages/aws/patches/emr.json b/packages/aws/patches/emr.json new file mode 100644 index 0000000000..970fcccb9d --- /dev/null +++ b/packages/aws/patches/emr.json @@ -0,0 +1,167 @@ +{ + "structures": { + "UsernamePassword": { + "members": { + "Password": { + "sensitive": true + } + } + }, + "KerberosAttributes": { + "members": { + "KdcAdminPassword": { + "sensitive": true + }, + "CrossRealmTrustPrincipalPassword": { + "sensitive": true + }, + "ADDomainJoinPassword": { + "sensitive": true + } + } + } + }, + "operations": { + "describeCluster": { + "syntheticErrors": [ + { + "name": "ClusterNotFound", + "from": "InvalidRequestException", + "message": { + "matches": "^Cluster id .* is not valid" + } + } + ] + }, + "terminateJobFlows": { + "syntheticErrors": [ + { + "name": "JobFlowNotFound", + "from": "ValidationException", + "message": { + "includes": "Specified job flow ID not valid" + } + } + ] + }, + "setTerminationProtection": { + "syntheticErrors": [ + { + "name": "JobFlowNotFound", + "from": "ValidationException", + "message": { + "includes": "Specified job flow ID not valid" + } + } + ] + }, + "createSecurityConfiguration": { + "syntheticErrors": [ + { + "name": "SecurityConfigurationAlreadyExists", + "from": "InvalidRequestException", + "message": { + "matches": "^SecurityConfiguration with name .* already exists" + } + } + ] + }, + "describeSecurityConfiguration": { + "syntheticErrors": [ + { + "name": "SecurityConfigurationNotFound", + "from": "InvalidRequestException", + "message": { + "matches": "^Security configuration with name .* does not exist" + } + } + ] + }, + "deleteSecurityConfiguration": { + "syntheticErrors": [ + { + "name": "SecurityConfigurationNotFound", + "from": "InvalidRequestException", + "message": { + "matches": "^Security configuration with name .* does not exist" + } + } + ] + }, + "createStudio": { + "syntheticErrors": [ + { + "name": "StudioServiceRoleNotAssumable", + "from": "InvalidRequestException", + "message": { + "includes": "does not have permissions to assume role" + } + }, + { + "name": "StudioServiceRoleMissingS3Access", + "from": "InvalidRequestException", + "message": { + "includes": "does not have permission to access the 'S3 Location'" + } + } + ] + }, + "describeStudio": { + "syntheticErrors": [ + { + "name": "StudioNotFound", + "from": "InvalidRequestException", + "message": { + "includes": "Studio does not exist" + } + } + ] + }, + "deleteStudio": { + "syntheticErrors": [ + { + "name": "StudioNotFound", + "from": "InvalidRequestException", + "message": { + "includes": "Studio does not exist" + } + } + ] + }, + "updateStudio": { + "syntheticErrors": [ + { + "name": "StudioNotFound", + "from": "InvalidRequestException", + "message": { + "includes": "Studio does not exist" + } + } + ] + } + }, + "errorCategories": { + "ClusterNotFound": [ + "NotFoundError" + ], + "SecurityConfigurationNotFound": [ + "NotFoundError" + ], + "SecurityConfigurationAlreadyExists": [ + "AlreadyExistsError", + "ConflictError" + ], + "StudioNotFound": [ + "NotFoundError" + ], + "StudioServiceRoleNotAssumable": [ + "RetryableError" + ], + "StudioServiceRoleMissingS3Access": [ + "RetryableError" + ], + "JobFlowNotFound": [ + "NotFoundError" + ] + } +} diff --git a/packages/aws/patches/entityresolution.json b/packages/aws/patches/entityresolution.json new file mode 100644 index 0000000000..3905975f12 --- /dev/null +++ b/packages/aws/patches/entityresolution.json @@ -0,0 +1,21 @@ +{ + "operations": { + "deleteIdNamespace": { + "errors": ["ConflictException"] + } + }, + "structures": { + "CreateSchemaMappingOutput": { + "members": { + "description": { "optional": true } + } + }, + "BatchDeleteUniqueIdOutput": { + "members": { + "errors": { "optional": true }, + "deleted": { "optional": true }, + "disconnectedUniqueIds": { "optional": true } + } + } + } +} diff --git a/packages/aws/patches/eventbridge.json b/packages/aws/patches/eventbridge.json index 0a98afcfd3..f1deb590f6 100644 --- a/packages/aws/patches/eventbridge.json +++ b/packages/aws/patches/eventbridge.json @@ -1,28 +1,71 @@ { "errorCategories": { - "ThrottlingException": ["ThrottlingError", "RetryableError"], - "InternalException": ["ServerError", "RetryableError"], - "ConcurrentModificationException": ["ConflictError", "RetryableError"], - "IllegalStatusException": ["ConflictError"], - "InvalidStateException": ["ConflictError"], - "InvalidEventPatternException": ["BadRequestError"], - "ManagedRuleException": ["BadRequestError"], - "OperationDisabledException": ["BadRequestError"], - "LimitExceededException": ["QuotaError"], - "PolicyLengthExceededException": ["QuotaError"] + "ThrottlingException": [ + "ThrottlingError", + "RetryableError" + ], + "InternalException": [ + "ServerError", + "RetryableError" + ], + "ConcurrentModificationException": [ + "ConflictError", + "RetryableError" + ], + "IllegalStatusException": [ + "ConflictError" + ], + "InvalidStateException": [ + "ConflictError" + ], + "InvalidEventPatternException": [ + "BadRequestError" + ], + "ManagedRuleException": [ + "BadRequestError" + ], + "OperationDisabledException": [ + "BadRequestError" + ], + "LimitExceededException": [ + "QuotaError" + ], + "PolicyLengthExceededException": [ + "QuotaError" + ], + "EventBusHasRules": [ + "ConflictError" + ] }, "operations": { "deleteEventBus": { - "errors": ["ResourceNotFoundException"] + "errors": [ + "ResourceNotFoundException" + ], + "syntheticErrors": [ + { + "name": "EventBusHasRules", + "from": "ValidationException", + "message": { + "includes": "has rules" + } + } + ] }, "tagResource": { - "errors": ["ThrottlingException"] + "errors": [ + "ThrottlingException" + ] }, "untagResource": { - "errors": ["ThrottlingException"] + "errors": [ + "ThrottlingException" + ] }, "listTagsForResource": { - "errors": ["ThrottlingException"] + "errors": [ + "ThrottlingException" + ] } } -} +} \ No newline at end of file diff --git a/packages/aws/patches/firehose.json b/packages/aws/patches/firehose.json new file mode 100644 index 0000000000..b2f47d317d --- /dev/null +++ b/packages/aws/patches/firehose.json @@ -0,0 +1,19 @@ +{ + "structures": { + "SplunkDestinationConfiguration": { + "members": { + "HECToken": { "sensitive": true } + } + }, + "SplunkDestinationDescription": { + "members": { + "HECToken": { "sensitive": true } + } + }, + "SplunkDestinationUpdate": { + "members": { + "HECToken": { "sensitive": true } + } + } + } +} diff --git a/packages/aws/patches/fsx.json b/packages/aws/patches/fsx.json new file mode 100644 index 0000000000..804f089e85 --- /dev/null +++ b/packages/aws/patches/fsx.json @@ -0,0 +1,46 @@ +{ + "operations": { + "copySnapshotAndUpdateVolume": { + "syntheticErrors": [ + { + "name": "SourceSnapshotNotFound", + "from": "BadRequest", + "message": { "includes": "SourceSnapshotARN provided is not a valid ARN" } + } + ] + }, + "createSnapshot": { + "syntheticErrors": [ + { + "name": "SnapshotVolumeNotFound", + "from": "BadRequest", + "message": { "includes": "volume was not found" } + } + ] + }, + "restoreVolumeFromSnapshot": { + "syntheticErrors": [ + { + "name": "RestoreSnapshotNotFound", + "from": "BadRequest", + "message": { "includes": "snapshot cannot be found" } + } + ] + }, + "updateSnapshot": { + "syntheticErrors": [ + { + "name": "UpdateSnapshotNotFound", + "from": "BadRequest", + "message": { "includes": "the snapshot is not found" } + } + ] + } + }, + "errorCategories": { + "SourceSnapshotNotFound": ["NotFoundError"], + "SnapshotVolumeNotFound": ["NotFoundError"], + "RestoreSnapshotNotFound": ["NotFoundError"], + "UpdateSnapshotNotFound": ["NotFoundError"] + } +} diff --git a/packages/aws/patches/geo-routes.json b/packages/aws/patches/geo-routes.json new file mode 100644 index 0000000000..2aebba5e4b --- /dev/null +++ b/packages/aws/patches/geo-routes.json @@ -0,0 +1,164 @@ +{ + "structures": { + "WaypointOptimizationOptimizedWaypoint": { + "members": { + "DepartureTime": { + "optional": true + } + } + }, + "RouteFerryLegDetails": { + "members": { + "AfterTravelSteps": { + "optional": true + }, + "BeforeTravelSteps": { + "optional": true + }, + "Notices": { + "optional": true + }, + "PassThroughWaypoints": { + "optional": true + }, + "Spans": { + "optional": true + }, + "TravelSteps": { + "optional": true + } + } + }, + "RoutePedestrianLegDetails": { + "members": { + "AfterTravelSteps": { + "optional": true + }, + "Notices": { + "optional": true + }, + "PassThroughWaypoints": { + "optional": true + }, + "Spans": { + "optional": true + }, + "TravelSteps": { + "optional": true + } + } + }, + "RouteRentalLegDetails": { + "members": { + "AfterTravelSteps": { + "optional": true + }, + "Attributions": { + "optional": true + }, + "BeforeTravelSteps": { + "optional": true + }, + "BookingWebLinks": { + "optional": true + }, + "TravelSteps": { + "optional": true + } + } + }, + "RouteTaxiLegDetails": { + "members": { + "AfterTravelSteps": { + "optional": true + }, + "Attributions": { + "optional": true + }, + "BeforeTravelSteps": { + "optional": true + }, + "BookingWebLinks": { + "optional": true + }, + "Notices": { + "optional": true + }, + "TravelSteps": { + "optional": true + } + } + }, + "RouteTransitLegDetails": { + "members": { + "AfterTravelSteps": { + "optional": true + }, + "Attributions": { + "optional": true + }, + "BeforeTravelSteps": { + "optional": true + }, + "BookingWebLinks": { + "optional": true + }, + "Incidents": { + "optional": true + }, + "IntermediateStops": { + "optional": true + }, + "NextDepartures": { + "optional": true + }, + "Notices": { + "optional": true + }, + "PassThroughWaypoints": { + "optional": true + }, + "Spans": { + "optional": true + }, + "TravelSteps": { + "optional": true + } + } + }, + "RouteVehicleLegDetails": { + "members": { + "AfterTravelSteps": { + "optional": true + }, + "Incidents": { + "optional": true + }, + "Notices": { + "optional": true + }, + "PassThroughWaypoints": { + "optional": true + }, + "Spans": { + "optional": true + }, + "Tolls": { + "optional": true + }, + "TollSystems": { + "optional": true + }, + "TravelSteps": { + "optional": true + }, + "TruckRoadTypes": { + "optional": true + }, + "Zones": { + "optional": true + } + } + } + } +} diff --git a/packages/aws/patches/glue.json b/packages/aws/patches/glue.json new file mode 100644 index 0000000000..7287f0d323 --- /dev/null +++ b/packages/aws/patches/glue.json @@ -0,0 +1,63 @@ +{ + "operations": { + "createCrawler": { + "syntheticErrors": [ + { + "name": "GlueRoleNotAssumable", + "from": "InvalidInputException", + "message": { "includes": "unable to assume" } + }, + { + "name": "GlueS3TargetNotReady", + "from": "InvalidInputException", + "message": { "includes": "InvalidAccessKeyId" } + } + ] + }, + "updateCrawler": { + "syntheticErrors": [ + { + "name": "GlueRoleNotAssumable", + "from": "InvalidInputException", + "message": { "includes": "unable to assume" } + }, + { + "name": "GlueS3TargetNotReady", + "from": "InvalidInputException", + "message": { "includes": "InvalidAccessKeyId" } + } + ] + }, + "startJobRun": { + "syntheticErrors": [ + { + "name": "GlueRoleNotAssumable", + "from": "InvalidInputException", + "message": { "includes": "unable to assume" } + } + ] + }, + "createJob": { + "syntheticErrors": [ + { + "name": "GlueRoleNotAssumable", + "from": "InvalidInputException", + "message": { "includes": "unable to assume" } + } + ] + }, + "updateJob": { + "syntheticErrors": [ + { + "name": "GlueRoleNotAssumable", + "from": "InvalidInputException", + "message": { "includes": "unable to assume" } + } + ] + } + }, + "errorCategories": { + "GlueRoleNotAssumable": ["RetryableError"], + "GlueS3TargetNotReady": ["RetryableError"] + } +} diff --git a/packages/aws/patches/imagebuilder.json b/packages/aws/patches/imagebuilder.json new file mode 100644 index 0000000000..eaa2102298 --- /dev/null +++ b/packages/aws/patches/imagebuilder.json @@ -0,0 +1,45 @@ +{ + "operations": { + "getComponent": { "errors": ["ResourceNotFoundException"] }, + "getImage": { "errors": ["ResourceNotFoundException"] }, + "deleteImage": { "errors": ["ResourceNotFoundException"] }, + "cancelImageCreation": { "errors": ["ResourceNotFoundException"] }, + "getImageRecipe": { "errors": ["ResourceNotFoundException"] }, + "getImagePipeline": { "errors": ["ResourceNotFoundException"] }, + "getInfrastructureConfiguration": { + "errors": ["ResourceNotFoundException"] + }, + "getDistributionConfiguration": { + "errors": ["ResourceNotFoundException"] + }, + "deleteComponent": { "errors": ["ResourceNotFoundException"] }, + "deleteImageRecipe": { "errors": ["ResourceNotFoundException"] }, + "deleteImagePipeline": { "errors": ["ResourceNotFoundException"] }, + "deleteInfrastructureConfiguration": { + "errors": ["ResourceNotFoundException"] + }, + "deleteDistributionConfiguration": { + "errors": ["ResourceNotFoundException"] + }, + "updateImagePipeline": { "errors": ["ResourceNotFoundException"] }, + "updateDistributionConfiguration": { + "errors": ["ResourceNotFoundException"] + }, + "listComponentBuildVersions": { "errors": ["ResourceNotFoundException"] }, + "listTagsForResource": { "errors": ["ResourceNotFoundException"] }, + "createInfrastructureConfiguration": { + "errors": ["InvalidParameterValueException"] + }, + "updateInfrastructureConfiguration": { + "errors": ["ResourceNotFoundException", "InvalidParameterValueException"] + } + }, + "structures": { + "DistributionConfiguration": { + "members": { "timeoutMinutes": { "optional": true } } + } + }, + "errors": { + "InvalidParameterValueException": { "message": { "type": "string" } } + } +} diff --git a/packages/aws/patches/inspector2.json b/packages/aws/patches/inspector2.json new file mode 100644 index 0000000000..f36f4cc205 --- /dev/null +++ b/packages/aws/patches/inspector2.json @@ -0,0 +1,22 @@ +{ + "structures": { + "State": { + "members": { + "errorCode": { "optional": true }, + "errorMessage": { "optional": true } + } + }, + "ResourceStatus": { + "members": { + "ec2": { "optional": true }, + "ecr": { "optional": true } + } + }, + "FailedAccount": { + "members": { + "errorCode": { "optional": true }, + "errorMessage": { "optional": true } + } + } + } +} diff --git a/packages/aws/patches/internetmonitor.json b/packages/aws/patches/internetmonitor.json new file mode 100644 index 0000000000..3be048ab59 --- /dev/null +++ b/packages/aws/patches/internetmonitor.json @@ -0,0 +1,22 @@ +{ + "errorCategories": { + "ResourceNotFoundException": ["NotFoundError"] + }, + "structures": { + "GetQueryResultsOutput": { + "members": { + "Data": { + "optional": true + } + } + } + }, + "operations": { + "getMonitor": { + "errors": ["ResourceNotFoundException"] + }, + "deleteMonitor": { + "errors": ["ResourceNotFoundException"] + } + } +} diff --git a/packages/aws/patches/iot-data-plane.json b/packages/aws/patches/iot-data-plane.json new file mode 100644 index 0000000000..6c9ae7612e --- /dev/null +++ b/packages/aws/patches/iot-data-plane.json @@ -0,0 +1,25 @@ +{ + "operations": { + "publish": { + "errors": ["ForbiddenException"] + }, + "getThingShadow": { + "errors": ["ForbiddenException"] + }, + "updateThingShadow": { + "errors": ["ForbiddenException"] + }, + "deleteThingShadow": { + "errors": ["ForbiddenException"] + }, + "listNamedShadowsForThing": { + "errors": ["ForbiddenException"] + }, + "getRetainedMessage": { + "errors": ["ForbiddenException"] + }, + "listRetainedMessages": { + "errors": ["ForbiddenException"] + } + } +} diff --git a/packages/aws/patches/iot-wireless.json b/packages/aws/patches/iot-wireless.json new file mode 100644 index 0000000000..4cd21a126d --- /dev/null +++ b/packages/aws/patches/iot-wireless.json @@ -0,0 +1,30 @@ +{ + "structures": { + "OtaaV1_1": { + "members": { + "AppKey": { "sensitive": true }, + "NwkKey": { "sensitive": true } + } + }, + "OtaaV1_0_x": { + "members": { + "AppKey": { "sensitive": true }, + "GenAppKey": { "sensitive": true } + } + }, + "SessionKeysAbpV1_1": { + "members": { + "FNwkSIntKey": { "sensitive": true }, + "SNwkSIntKey": { "sensitive": true }, + "NwkSEncKey": { "sensitive": true }, + "AppSKey": { "sensitive": true } + } + }, + "SessionKeysAbpV1_0_x": { + "members": { + "NwkSKey": { "sensitive": true }, + "AppSKey": { "sensitive": true } + } + } + } +} diff --git a/packages/aws/patches/iot.json b/packages/aws/patches/iot.json new file mode 100644 index 0000000000..c6f779d621 --- /dev/null +++ b/packages/aws/patches/iot.json @@ -0,0 +1,29 @@ +{ + "operations": { + "getTopicRule": { + "syntheticErrors": [ + { + "name": "TopicRuleNotFound", + "from": "UnauthorizedException", + "message": { + "includes": "Access to topic rule" + } + } + ] + }, + "deleteTopicRule": { + "syntheticErrors": [ + { + "name": "TopicRuleNotFound", + "from": "UnauthorizedException", + "message": { + "includes": "Access to topic rule" + } + } + ] + } + }, + "errorCategories": { + "TopicRuleNotFound": ["NotFoundError"] + } +} diff --git a/packages/aws/patches/iotsitewise.json b/packages/aws/patches/iotsitewise.json new file mode 100644 index 0000000000..6e92e57305 --- /dev/null +++ b/packages/aws/patches/iotsitewise.json @@ -0,0 +1,9 @@ +{ + "structures": { + "AssetModelSummary": { + "members": { + "description": { "optional": true } + } + } + } +} diff --git a/packages/aws/patches/ivs-realtime.json b/packages/aws/patches/ivs-realtime.json new file mode 100644 index 0000000000..e12253b783 --- /dev/null +++ b/packages/aws/patches/ivs-realtime.json @@ -0,0 +1,12 @@ +{ + "operations": { + "createStage": { "errors": ["ThrottlingException"] }, + "deleteStage": { "errors": ["ThrottlingException"] }, + "getStage": { "errors": ["ThrottlingException"] }, + "listStages": { "errors": ["ThrottlingException"] }, + "listTagsForResource": { "errors": ["ThrottlingException"] }, + "tagResource": { "errors": ["ThrottlingException"] }, + "untagResource": { "errors": ["ThrottlingException"] }, + "updateStage": { "errors": ["ThrottlingException"] } + } +} diff --git a/packages/aws/patches/ivs.json b/packages/aws/patches/ivs.json new file mode 100644 index 0000000000..e34358d1f9 --- /dev/null +++ b/packages/aws/patches/ivs.json @@ -0,0 +1,37 @@ +{ + "operations": { + "createChannel": { "errors": ["ThrottlingException"] }, + "createRecordingConfiguration": { "errors": ["ThrottlingException"] }, + "createStreamKey": { "errors": ["ThrottlingException"] }, + "deleteAdConfiguration": { "errors": ["ThrottlingException"] }, + "deleteChannel": { "errors": ["ThrottlingException"] }, + "deletePlaybackKeyPair": { + "errors": ["ThrottlingException", "InternalServerException"] + }, + "deletePlaybackRestrictionPolicy": { "errors": ["ThrottlingException"] }, + "deleteRecordingConfiguration": { "errors": ["ThrottlingException"] }, + "deleteStreamKey": { "errors": ["ThrottlingException"] }, + "getAdConfiguration": { "errors": ["ThrottlingException"] }, + "getChannel": { "errors": ["ThrottlingException"] }, + "getPlaybackKeyPair": { "errors": ["ThrottlingException"] }, + "getPlaybackRestrictionPolicy": { "errors": ["ThrottlingException"] }, + "getRecordingConfiguration": { "errors": ["ThrottlingException"] }, + "getStream": { "errors": ["ThrottlingException"] }, + "getStreamKey": { "errors": ["ThrottlingException"] }, + "getStreamSession": { "errors": ["ThrottlingException"] }, + "importPlaybackKeyPair": { "errors": ["ThrottlingException"] }, + "listAdConfigurations": { "errors": ["ThrottlingException"] }, + "listChannels": { "errors": ["ThrottlingException"] }, + "listPlaybackKeyPairs": { "errors": ["ThrottlingException"] }, + "listPlaybackRestrictionPolicies": { "errors": ["ThrottlingException"] }, + "listRecordingConfigurations": { "errors": ["ThrottlingException"] }, + "listStreamKeys": { "errors": ["ThrottlingException"] }, + "listStreamSessions": { "errors": ["ThrottlingException"] }, + "listStreams": { "errors": ["ThrottlingException"] }, + "listTagsForResource": { "errors": ["ThrottlingException"] }, + "stopStream": { "errors": ["ThrottlingException"] }, + "tagResource": { "errors": ["ThrottlingException"] }, + "untagResource": { "errors": ["ThrottlingException"] }, + "updateChannel": { "errors": ["ThrottlingException"] } + } +} diff --git a/packages/aws/patches/ivschat.json b/packages/aws/patches/ivschat.json new file mode 100644 index 0000000000..c9cea61625 --- /dev/null +++ b/packages/aws/patches/ivschat.json @@ -0,0 +1,78 @@ +{ + "operations": { + "createLoggingConfiguration": { + "errors": [ + "ThrottlingException" + ] + }, + "createRoom": { + "errors": [ + "ThrottlingException" + ] + }, + "deleteLoggingConfiguration": { + "errors": [ + "ThrottlingException" + ] + }, + "deleteRoom": { + "errors": [ + "ThrottlingException" + ] + }, + "getLoggingConfiguration": { + "errors": [ + "ThrottlingException" + ] + }, + "getRoom": { + "errors": [ + "ThrottlingException" + ] + }, + "listLoggingConfigurations": { + "errors": [ + "ThrottlingException" + ] + }, + "listRooms": { + "errors": [ + "ThrottlingException" + ] + }, + "listTagsForResource": { + "errors": [ + "ThrottlingException" + ] + }, + "tagResource": { + "errors": [ + "ThrottlingException" + ] + }, + "untagResource": { + "errors": [ + "ThrottlingException" + ] + }, + "updateLoggingConfiguration": { + "errors": [ + "ThrottlingException" + ] + }, + "updateRoom": { + "errors": [ + "ThrottlingException" + ] + } + }, + "structures": { + "ValidationException": { + "members": { + "reason": { + "optional": true + } + } + } + } +} \ No newline at end of file diff --git a/packages/aws/patches/kafka.json b/packages/aws/patches/kafka.json new file mode 100644 index 0000000000..9e7d693210 --- /dev/null +++ b/packages/aws/patches/kafka.json @@ -0,0 +1,10 @@ +{ + "operations": { + "getBootstrapBrokers": { + "errors": ["NotFoundException"] + }, + "listTopics": { + "errors": ["NotFoundException"] + } + } +} diff --git a/packages/aws/patches/kendra.json b/packages/aws/patches/kendra.json new file mode 100644 index 0000000000..b1a4c853d6 --- /dev/null +++ b/packages/aws/patches/kendra.json @@ -0,0 +1,16 @@ +{ + "operations": { + "listTagsForResource": { + "errors": ["ResourceNotFoundException"] + } + }, + "structures": { + "UserContext": { + "members": { + "Token": { + "sensitive": true + } + } + } + } +} diff --git a/packages/aws/patches/kinesis-video-signaling.json b/packages/aws/patches/kinesis-video-signaling.json new file mode 100644 index 0000000000..6c07311afd --- /dev/null +++ b/packages/aws/patches/kinesis-video-signaling.json @@ -0,0 +1,9 @@ +{ + "structures": { + "IceServer": { + "members": { + "Password": { "sensitive": true } + } + } + } +} diff --git a/packages/aws/patches/kinesis-video.json b/packages/aws/patches/kinesis-video.json new file mode 100644 index 0000000000..3130308d74 --- /dev/null +++ b/packages/aws/patches/kinesis-video.json @@ -0,0 +1,70 @@ +{ + "operations": { + "updateStream": { + "syntheticErrors": [ + { + "name": "StreamNotActive", + "from": "ResourceNotFoundException", + "message": { "includes": "not active" } + } + ] + }, + "updateDataRetention": { + "syntheticErrors": [ + { + "name": "StreamNotActive", + "from": "ResourceNotFoundException", + "message": { "includes": "not active" } + } + ] + }, + "tagStream": { + "syntheticErrors": [ + { + "name": "StreamNotActive", + "from": "ResourceNotFoundException", + "message": { "includes": "not active" } + } + ] + }, + "untagStream": { + "syntheticErrors": [ + { + "name": "StreamNotActive", + "from": "ResourceNotFoundException", + "message": { "includes": "not active" } + } + ] + }, + "updateSignalingChannel": { + "syntheticErrors": [ + { + "name": "StreamNotActive", + "from": "ResourceNotFoundException", + "message": { "includes": "not active" } + } + ] + }, + "tagResource": { + "syntheticErrors": [ + { + "name": "StreamNotActive", + "from": "ResourceNotFoundException", + "message": { "includes": "not active" } + } + ] + }, + "untagResource": { + "syntheticErrors": [ + { + "name": "StreamNotActive", + "from": "ResourceNotFoundException", + "message": { "includes": "not active" } + } + ] + } + }, + "errorCategories": { + "StreamNotActive": ["ConflictError", "RetryableError"] + } +} diff --git a/packages/aws/patches/lakeformation.json b/packages/aws/patches/lakeformation.json new file mode 100644 index 0000000000..a93149e332 --- /dev/null +++ b/packages/aws/patches/lakeformation.json @@ -0,0 +1,123 @@ +{ + "structures": { + "TemporaryCredentials": { + "members": { + "SecretAccessKey": { "sensitive": true }, + "SessionToken": { "sensitive": true } + } + }, + "GetTemporaryGluePartitionCredentialsResponse": { + "members": { + "SecretAccessKey": { "sensitive": true }, + "SessionToken": { "sensitive": true } + } + }, + "GetTemporaryGlueTableCredentialsResponse": { + "members": { + "SecretAccessKey": { "sensitive": true }, + "SessionToken": { "sensitive": true } + } + }, + "AssumeDecoratedRoleWithSAMLResponse": { + "members": { + "SecretAccessKey": { "sensitive": true }, + "SessionToken": { "sensitive": true } + } + } + }, + "operations": { + "deregisterResource": { + "syntheticErrors": [ + { + "name": "LastServiceLinkedRoleRegistration", + "from": "InvalidInputException", + "message": { + "includes": "Must manually delete service-linked role" + } + } + ] + }, + "grantPermissions": { + "syntheticErrors": [ + { + "name": "InvalidLakeFormationPrincipal", + "from": "InvalidInputException", + "message": { + "includes": "Invalid principal" + } + } + ] + }, + "revokePermissions": { + "syntheticErrors": [ + { + "name": "InvalidLakeFormationPrincipal", + "from": "InvalidInputException", + "message": { + "includes": "Invalid principal" + } + } + ] + }, + "listPermissions": { + "syntheticErrors": [ + { + "name": "InvalidLakeFormationPrincipal", + "from": "InvalidInputException", + "message": { + "includes": "Invalid principal" + } + } + ] + }, + "putDataLakeSettings": { + "syntheticErrors": [ + { + "name": "InvalidLakeFormationPrincipal", + "from": "InvalidInputException", + "message": { + "includes": "Invalid principal" + } + } + ] + }, + "createLakeFormationOptIn": { + "syntheticErrors": [ + { + "name": "InvalidLakeFormationPrincipal", + "from": "InvalidInputException", + "message": { + "includes": "Invalid principal" + } + } + ] + }, + "deleteLakeFormationOptIn": { + "syntheticErrors": [ + { + "name": "InvalidLakeFormationPrincipal", + "from": "InvalidInputException", + "message": { + "includes": "Invalid principal" + } + } + ] + }, + "listLakeFormationOptIns": { + "errors": ["EntityNotFoundException"], + "syntheticErrors": [ + { + "name": "InvalidLakeFormationPrincipal", + "from": "InvalidInputException", + "message": { + "includes": "Invalid principal" + } + } + ] + } + }, + "errorCategories": { + "LastServiceLinkedRoleRegistration": ["ConflictError"], + "InvalidLakeFormationPrincipal": ["BadRequestError", "RetryableError"] + } +} diff --git a/packages/aws/patches/lex-models-v2.json b/packages/aws/patches/lex-models-v2.json new file mode 100644 index 0000000000..eb3e961695 --- /dev/null +++ b/packages/aws/patches/lex-models-v2.json @@ -0,0 +1,13 @@ +{ + "operations": { + "listBotAliases": { + "errors": ["ResourceNotFoundException"] + }, + "listIntents": { + "errors": ["ResourceNotFoundException"] + }, + "listSlotTypes": { + "errors": ["ResourceNotFoundException"] + } + } +} diff --git a/packages/aws/patches/license-manager.json b/packages/aws/patches/license-manager.json new file mode 100644 index 0000000000..2672d1b6a3 --- /dev/null +++ b/packages/aws/patches/license-manager.json @@ -0,0 +1,66 @@ +{ + "structures": { + "CreateTokenResponse": { + "members": { + "Token": { "sensitive": true } + } + }, + "GetAccessTokenRequest": { + "members": { + "Token": { "sensitive": true } + } + }, + "GetAccessTokenResponse": { + "members": { + "AccessToken": { "sensitive": true } + } + } + }, + "operations": { + "getAccessToken": { + "errors": ["InvalidParameterValueException"] + }, + "getLicense": { + "errors": ["ResourceNotFoundException"] + }, + "getGrant": { + "errors": ["ResourceNotFoundException"] + }, + "getLicenseConfiguration": { + "syntheticErrors": [ + { + "name": "LicenseConfigurationNotFound", + "from": "InvalidParameterValueException", + "message": { + "includes": "Invalid license configuration ARN" + } + } + ] + }, + "updateLicenseConfiguration": { + "syntheticErrors": [ + { + "name": "LicenseConfigurationNotFound", + "from": "InvalidParameterValueException", + "message": { + "includes": "Invalid license configuration ARN" + } + } + ] + }, + "deleteLicenseConfiguration": { + "syntheticErrors": [ + { + "name": "LicenseConfigurationNotFound", + "from": "InvalidParameterValueException", + "message": { + "includes": "Invalid license configuration ARN" + } + } + ] + } + }, + "errorCategories": { + "LicenseConfigurationNotFound": ["NotFoundError"] + } +} diff --git a/packages/aws/patches/location.json b/packages/aws/patches/location.json new file mode 100644 index 0000000000..ec55262316 --- /dev/null +++ b/packages/aws/patches/location.json @@ -0,0 +1,88 @@ +{ + "structures": { + "DescribeGeofenceCollectionResponse": { + "members": { + "Description": { + "optional": true + } + } + }, + "DescribeMapResponse": { + "members": { + "Description": { + "optional": true + } + } + }, + "DescribePlaceIndexResponse": { + "members": { + "Description": { + "optional": true + } + } + }, + "DescribeRouteCalculatorResponse": { + "members": { + "Description": { + "optional": true + } + } + }, + "DescribeTrackerResponse": { + "members": { + "Description": { + "optional": true + } + } + }, + "ListGeofenceCollectionsResponseEntry": { + "members": { + "Description": { + "optional": true + } + } + }, + "ListMapsResponseEntry": { + "members": { + "Description": { + "optional": true + } + } + }, + "ListPlaceIndexesResponseEntry": { + "members": { + "Description": { + "optional": true + } + } + }, + "ListRouteCalculatorsResponseEntry": { + "members": { + "Description": { + "optional": true + } + } + }, + "ListTrackersResponseEntry": { + "members": { + "Description": { + "optional": true + } + } + }, + "BatchEvaluateGeofencesResponse": { + "members": { + "Errors": { + "optional": true + } + } + } + }, + "operations": { + "cancelJob": { + "errors": [ + "ResourceNotFoundException" + ] + } + } +} diff --git a/packages/aws/patches/macie2.json b/packages/aws/patches/macie2.json new file mode 100644 index 0000000000..dc7480d7c2 --- /dev/null +++ b/packages/aws/patches/macie2.json @@ -0,0 +1,62 @@ +{ + "structures": { + "DetectedDataDetails": { + "members": { + "value": { + "sensitive": true + } + } + } + }, + "operations": { + "createClassificationJob": { + "syntheticErrors": [ + { + "name": "MacieNotEnabled", + "from": "AccessDeniedException", + "message": { + "matches": "Macie is(n[’']t| not) enabled" + } + } + ] + }, + "createAllowList": { + "syntheticErrors": [ + { + "name": "MacieNotEnabled", + "from": "AccessDeniedException", + "message": { + "matches": "Macie is(n[’']t| not) enabled" + } + } + ] + }, + "createCustomDataIdentifier": { + "syntheticErrors": [ + { + "name": "MacieNotEnabled", + "from": "AccessDeniedException", + "message": { + "matches": "Macie is(n[’']t| not) enabled" + } + } + ] + }, + "createFindingsFilter": { + "syntheticErrors": [ + { + "name": "MacieNotEnabled", + "from": "AccessDeniedException", + "message": { + "matches": "Macie is(n[’']t| not) enabled" + } + } + ] + } + }, + "errorCategories": { + "MacieNotEnabled": [ + "RetryableError" + ] + } +} \ No newline at end of file diff --git a/packages/aws/patches/mediaconvert.json b/packages/aws/patches/mediaconvert.json new file mode 100644 index 0000000000..77b3fecb50 --- /dev/null +++ b/packages/aws/patches/mediaconvert.json @@ -0,0 +1,9 @@ +{ + "structures": { + "StaticKeyProvider": { + "members": { + "StaticKeyValue": { "sensitive": true } + } + } + } +} diff --git a/packages/aws/patches/medialive.json b/packages/aws/patches/medialive.json new file mode 100644 index 0000000000..3d285c35b6 --- /dev/null +++ b/packages/aws/patches/medialive.json @@ -0,0 +1,23 @@ +{ + "structures": { + "StaticKeySettings": { + "members": { + "StaticKeyValue": { "sensitive": true } + } + } + }, + "operations": { + "createChannel": { + "syntheticErrors": [ + { + "name": "MediaLiveRoleNotYetTrusted", + "from": "UnprocessableEntityException", + "message": { "includes": "is a trusted service" } + } + ] + } + }, + "errorCategories": { + "MediaLiveRoleNotYetTrusted": ["RetryableError"] + } +} diff --git a/packages/aws/patches/mediatailor.json b/packages/aws/patches/mediatailor.json new file mode 100644 index 0000000000..32c9c3518f --- /dev/null +++ b/packages/aws/patches/mediatailor.json @@ -0,0 +1,146 @@ +{ + "operations": { + "getPlaybackConfiguration": { + "syntheticErrors": [ + { + "name": "PlaybackConfigurationNotFound", + "from": "NotFoundException", + "message": { "includes": "not found" } + } + ] + }, + "getPrefetchSchedule": { + "errors": ["BadRequestException"], + "syntheticErrors": [ + { + "name": "PrefetchScheduleNotFound", + "from": "NotFoundException", + "message": { "matches": ".*" } + } + ] + }, + "deletePrefetchSchedule": { + "errors": ["BadRequestException"], + "syntheticErrors": [ + { + "name": "PrefetchScheduleNotFound", + "from": "NotFoundException", + "message": { "matches": ".*" } + } + ] + }, + "createPrefetchSchedule": { + "errors": ["BadRequestException"], + "syntheticErrors": [ + { + "name": "PlaybackConfigurationNotFound", + "from": "NotFoundException", + "message": { "matches": ".*" } + } + ] + }, + "listPrefetchSchedules": { + "errors": ["BadRequestException"], + "syntheticErrors": [ + { + "name": "PlaybackConfigurationNotFound", + "from": "NotFoundException", + "message": { "matches": ".*" } + } + ] + }, + "listAlerts": { + "errors": ["BadRequestException"] + }, + "getChannelSchedule": { + "errors": ["BadRequestException"], + "syntheticErrors": [ + { + "name": "ChannelNotFound", + "from": "NotFoundException", + "message": { "matches": ".*" } + } + ] + }, + "startChannel": { + "errors": ["BadRequestException"], + "syntheticErrors": [ + { + "name": "ChannelNotFound", + "from": "NotFoundException", + "message": { "matches": ".*" } + } + ] + }, + "stopChannel": { + "errors": ["BadRequestException"], + "syntheticErrors": [ + { + "name": "ChannelNotFound", + "from": "NotFoundException", + "message": { "matches": ".*" } + } + ] + }, + "createProgram": { + "errors": ["BadRequestException"], + "syntheticErrors": [ + { + "name": "ChannelNotFound", + "from": "NotFoundException", + "message": { "matches": ".*" } + } + ] + }, + "describeProgram": { + "errors": ["BadRequestException"], + "syntheticErrors": [ + { + "name": "ProgramNotFound", + "from": "NotFoundException", + "message": { "matches": ".*" } + } + ] + }, + "updateProgram": { + "errors": ["BadRequestException"], + "syntheticErrors": [ + { + "name": "ProgramNotFound", + "from": "NotFoundException", + "message": { "matches": ".*" } + } + ] + }, + "deleteProgram": { + "errors": ["BadRequestException"], + "syntheticErrors": [ + { + "name": "ProgramNotFound", + "from": "NotFoundException", + "message": { "matches": ".*" } + } + ] + } + }, + "errors": { + "PlaybackConfigurationNotFound": { + "message": { "type": "string" } + }, + "PrefetchScheduleNotFound": { + "message": { "type": "string" } + }, + "ChannelNotFound": { + "message": { "type": "string" } + }, + "ProgramNotFound": { + "message": { "type": "string" } + } + }, + "errorCategories": { + "PlaybackConfigurationNotFound": ["NotFoundError"], + "PrefetchScheduleNotFound": ["NotFoundError"], + "ChannelNotFound": ["NotFoundError"], + "ProgramNotFound": ["NotFoundError"] + } +} diff --git a/packages/aws/patches/memorydb.json b/packages/aws/patches/memorydb.json new file mode 100644 index 0000000000..883adb0bd0 --- /dev/null +++ b/packages/aws/patches/memorydb.json @@ -0,0 +1,14 @@ +{ + "structures": { + "AuthenticationMode": { + "members": { + "Passwords": { "sensitive": true } + } + } + }, + "operations": { + "batchUpdateCluster": { + "errors": ["InvalidParameterCombinationException"] + } + } +} diff --git a/packages/aws/patches/mq.json b/packages/aws/patches/mq.json new file mode 100644 index 0000000000..12be03336b --- /dev/null +++ b/packages/aws/patches/mq.json @@ -0,0 +1,24 @@ +{ + "structures": { + "User": { + "members": { + "Password": { "sensitive": true } + } + }, + "CreateUserRequest": { + "members": { + "Password": { "sensitive": true } + } + }, + "UpdateUserRequest": { + "members": { + "Password": { "sensitive": true } + } + }, + "LdapServerMetadataInput": { + "members": { + "ServiceAccountPassword": { "sensitive": true } + } + } + } +} diff --git a/packages/aws/patches/mwaa.json b/packages/aws/patches/mwaa.json new file mode 100644 index 0000000000..0efd9ad5d8 --- /dev/null +++ b/packages/aws/patches/mwaa.json @@ -0,0 +1,5 @@ +{ + "errorHttpStatus": { + "ResourceNotFoundException": 404 + } +} diff --git a/packages/aws/patches/neptune.json b/packages/aws/patches/neptune.json new file mode 100644 index 0000000000..28f046e425 --- /dev/null +++ b/packages/aws/patches/neptune.json @@ -0,0 +1,29 @@ +{ + "structures": { + "CreateDBClusterMessage": { + "members": { + "MasterUserPassword": { "sensitive": true } + } + }, + "CreateDBInstanceMessage": { + "members": { + "MasterUserPassword": { "sensitive": true } + } + }, + "ModifyDBClusterMessage": { + "members": { + "MasterUserPassword": { "sensitive": true } + } + }, + "ModifyDBInstanceMessage": { + "members": { + "MasterUserPassword": { "sensitive": true } + } + }, + "PendingModifiedValues": { + "members": { + "MasterUserPassword": { "sensitive": true } + } + } + } +} diff --git a/packages/aws/patches/notifications.json b/packages/aws/patches/notifications.json new file mode 100644 index 0000000000..adc3356e82 --- /dev/null +++ b/packages/aws/patches/notifications.json @@ -0,0 +1,7 @@ +{ + "operations": { + "listManagedNotificationChildEvents": { + "errors": ["ResourceNotFoundException"] + } + } +} diff --git a/packages/aws/patches/oam.json b/packages/aws/patches/oam.json new file mode 100644 index 0000000000..25e6250b01 --- /dev/null +++ b/packages/aws/patches/oam.json @@ -0,0 +1,22 @@ +{ + "errorCategories": { + "TooManyRequestsException": ["ThrottlingError", "RetryableError"] + }, + "operations": { + "createLink": { "errors": ["TooManyRequestsException"] }, + "createSink": { "errors": ["TooManyRequestsException"] }, + "deleteLink": { "errors": ["TooManyRequestsException"] }, + "deleteSink": { "errors": ["TooManyRequestsException"] }, + "getLink": { "errors": ["TooManyRequestsException"] }, + "getSink": { "errors": ["TooManyRequestsException"] }, + "getSinkPolicy": { "errors": ["TooManyRequestsException"] }, + "listAttachedLinks": { "errors": ["TooManyRequestsException"] }, + "listLinks": { "errors": ["TooManyRequestsException"] }, + "listSinks": { "errors": ["TooManyRequestsException"] }, + "listTagsForResource": { "errors": ["TooManyRequestsException"] }, + "putSinkPolicy": { "errors": ["TooManyRequestsException"] }, + "tagResource": { "errors": ["TooManyRequestsException"] }, + "untagResource": { "errors": ["TooManyRequestsException"] }, + "updateLink": { "errors": ["TooManyRequestsException"] } + } +} diff --git a/packages/aws/patches/omics.json b/packages/aws/patches/omics.json new file mode 100644 index 0000000000..1b5ebfd80f --- /dev/null +++ b/packages/aws/patches/omics.json @@ -0,0 +1,10 @@ +{ + "errorCategories": { + "TooManyRequestsException": ["ThrottlingError", "RetryableError"] + }, + "operations": { + "getVariantStore": { + "errors": ["TooManyRequestsException"] + } + } +} diff --git a/packages/aws/patches/qbusiness.json b/packages/aws/patches/qbusiness.json new file mode 100644 index 0000000000..82fb251a49 --- /dev/null +++ b/packages/aws/patches/qbusiness.json @@ -0,0 +1,9 @@ +{ + "structures": { + "AutoSubscriptionConfiguration": { + "members": { + "autoSubscribe": { "optional": true } + } + } + } +} diff --git a/packages/aws/patches/quicksight.json b/packages/aws/patches/quicksight.json new file mode 100644 index 0000000000..c77a8b9f9d --- /dev/null +++ b/packages/aws/patches/quicksight.json @@ -0,0 +1,70 @@ +{ + "structures": { + "CredentialPair": { + "members": { + "Password": { "sensitive": true } + } + }, + "WebProxyCredentials": { + "members": { + "WebProxyPassword": { "sensitive": true } + } + }, + "AssetBundleImportJobDataSourceCredentialPair": { + "members": { + "Password": { "sensitive": true } + } + } + }, + "operations": { + "createDataSource": { + "syntheticErrors": [ + { + "name": "QuickSightSubscriptionRequired", + "from": "ResourceNotFoundException", + "message": { + "includes": "Directory information" + } + } + ] + }, + "createDataSet": { + "syntheticErrors": [ + { + "name": "QuickSightSubscriptionRequired", + "from": "ResourceNotFoundException", + "message": { + "includes": "Directory information" + } + } + ] + }, + "createDashboard": { + "syntheticErrors": [ + { + "name": "QuickSightSubscriptionRequired", + "from": "ResourceNotFoundException", + "message": { + "includes": "Directory information" + } + } + ] + }, + "createAnalysis": { + "syntheticErrors": [ + { + "name": "QuickSightSubscriptionRequired", + "from": "ResourceNotFoundException", + "message": { + "includes": "Directory information" + } + } + ] + } + }, + "errorCategories": { + "QuickSightSubscriptionRequired": [ + "NotFoundError" + ] + } +} diff --git a/packages/aws/patches/rds.json b/packages/aws/patches/rds.json index 8398f12aed..a1a282f49c 100644 --- a/packages/aws/patches/rds.json +++ b/packages/aws/patches/rds.json @@ -1,5 +1,29 @@ { + "operations": { + "createDBInstance": { + "errors": ["InvalidParameterCombination", "InvalidParameterValue"] + }, + "modifyDBInstance": { + "errors": ["InvalidParameterCombination", "InvalidParameterValue"] + }, + "createDBCluster": { + "errors": ["InvalidParameterCombination", "InvalidParameterValue"] + }, + "modifyDBCluster": { + "errors": ["InvalidParameterCombination", "InvalidParameterValue"] + } + }, + "errors": { + "InvalidParameterCombination": { + "message": { "type": "string" } + }, + "InvalidParameterValue": { + "message": { "type": "string" } + } + }, "errorCategories": { + "InvalidParameterCombination": ["BadRequestError"], + "InvalidParameterValue": ["BadRequestError"], "InvalidDBInstanceState": ["ConflictError", "RetryableError"], "InvalidDBClusterStateFault": ["ConflictError", "RetryableError"], "DBInstanceAlreadyExists": ["ConflictError", "AlreadyExistsError"], diff --git a/packages/aws/patches/redshift-serverless.json b/packages/aws/patches/redshift-serverless.json new file mode 100644 index 0000000000..587bddf022 --- /dev/null +++ b/packages/aws/patches/redshift-serverless.json @@ -0,0 +1,9 @@ +{ + "structures": { + "GetIdentityCenterAuthTokenResponse": { + "members": { + "token": { "sensitive": true } + } + } + } +} diff --git a/packages/aws/patches/repostspace.json b/packages/aws/patches/repostspace.json new file mode 100644 index 0000000000..14eb47e6be --- /dev/null +++ b/packages/aws/patches/repostspace.json @@ -0,0 +1,5 @@ +{ + "operations": { + "listChannels": { "errors": ["ResourceNotFoundException"] } + } +} diff --git a/packages/aws/patches/resource-groups.json b/packages/aws/patches/resource-groups.json new file mode 100644 index 0000000000..2c0cf47ecc --- /dev/null +++ b/packages/aws/patches/resource-groups.json @@ -0,0 +1,27 @@ +{ + "operations": { + "listGroupingStatuses": { + "errors": ["NotFoundException"] + }, + "createGroup": { + "syntheticErrors": [ + { + "name": "GroupAlreadyExists", + "from": "BadRequestException", + "message": { "includes": "group already exists" } + } + ] + } + }, + "errorCategories": { + "GroupAlreadyExists": ["AlreadyExistsError"] + }, + "structures": { + "GetGroupOutput": { + "members": { "Group": { "optional": false } } + }, + "CreateGroupOutput": { + "members": { "Group": { "optional": false } } + } + } +} diff --git a/packages/aws/patches/route-53-domains.json b/packages/aws/patches/route-53-domains.json new file mode 100644 index 0000000000..fc9801d7c8 --- /dev/null +++ b/packages/aws/patches/route-53-domains.json @@ -0,0 +1,53 @@ +{ + "operations": { + "getDomainDetail": { + "syntheticErrors": [ + { + "name": "DomainNotFound", + "from": "InvalidInput", + "message": { + "includes": "not found in account" + } + } + ] + }, + "renewDomain": { + "syntheticErrors": [ + { + "name": "DomainNotFound", + "from": "InvalidInput", + "message": { + "includes": "not found in account" + } + } + ] + }, + "retrieveDomainAuthCode": { + "syntheticErrors": [ + { + "name": "DomainNotFound", + "from": "InvalidInput", + "message": { + "includes": "not found in account" + } + } + ] + }, + "updateDomainNameservers": { + "syntheticErrors": [ + { + "name": "DomainNotFound", + "from": "InvalidInput", + "message": { + "includes": "not found in account" + } + } + ] + } + }, + "errorCategories": { + "DomainNotFound": [ + "NotFoundError" + ] + } +} diff --git a/packages/aws/patches/route-53.json b/packages/aws/patches/route-53.json index a374943fb4..37f44f1088 100644 --- a/packages/aws/patches/route-53.json +++ b/packages/aws/patches/route-53.json @@ -4,6 +4,13 @@ "ThrottlingException": ["ThrottlingError", "RetryableError"] }, "structures": { + "CreateHostedZoneResponse": { + "members": { + "DelegationSet": { + "optional": true + } + } + }, "ListResourceRecordSetsResponse": { "members": { "ResourceRecordSets": { @@ -37,6 +44,20 @@ "optional": true } } + }, + "ListVPCAssociationAuthorizationsResponse": { + "members": { + "VPCs": { + "optional": true + } + } + }, + "ListQueryLoggingConfigsResponse": { + "members": { + "QueryLoggingConfigs": { + "optional": true + } + } } } } diff --git a/packages/aws/patches/s3-control.json b/packages/aws/patches/s3-control.json new file mode 100644 index 0000000000..6fd3977cb8 --- /dev/null +++ b/packages/aws/patches/s3-control.json @@ -0,0 +1,251 @@ +{ + "errorCategories": { + "NoSuchAccessPoint": [ + "NotFoundError" + ], + "NoSuchAccessPointPolicy": [ + "NotFoundError" + ], + "AccessPointAlreadyOwnedByYou": [ + "AlreadyExistsError" + ], + "MalformedPolicy": [ + "BadRequestError" + ], + "InvalidRequest": [ + "BadRequestError" + ], + "MissingBucketLevelActivityMetrics": [ + "BadRequestError" + ], + "ObjectLambdaNotAvailable": [ + "AuthError" + ], + "NoSuchConfiguration": [ + "NotFoundError" + ], + "NoSuchMultiRegionAccessPoint": [ + "NotFoundError" + ], + "JobStatusTransitionForbidden": [ + "BadRequestError" + ] + }, + "structures": { + "AccountLevel": { + "members": { + "BucketLevel": { + "optional": true + } + } + } + }, + "operations": { + "createAccessPoint": { + "errors": [ + "AccessPointAlreadyOwnedByYou", + "InvalidRequest" + ] + }, + "getAccessPoint": { + "errors": [ + "NoSuchAccessPoint" + ] + }, + "deleteAccessPoint": { + "errors": [ + "NoSuchAccessPoint" + ] + }, + "getAccessPointPolicy": { + "errors": [ + "NoSuchAccessPoint", + "NoSuchAccessPointPolicy" + ] + }, + "putAccessPointPolicy": { + "errors": [ + "NoSuchAccessPoint", + "MalformedPolicy" + ] + }, + "deleteAccessPointPolicy": { + "errors": [ + "NoSuchAccessPoint", + "NoSuchAccessPointPolicy" + ] + }, + "getAccessPointPolicyStatus": { + "errors": [ + "NoSuchAccessPoint", + "NoSuchAccessPointPolicy" + ] + }, + "tagResource": { + "errors": [ + "NoSuchAccessPoint" + ] + }, + "untagResource": { + "errors": [ + "NoSuchAccessPoint" + ] + }, + "listTagsForResource": { + "errors": [ + "NoSuchAccessPoint" + ] + }, + "createAccessPointForObjectLambda": { + "errors": [ + "AccessPointAlreadyOwnedByYou", + "InvalidRequest", + "NoSuchAccessPoint" + ], + "syntheticErrors": [ + { + "name": "ObjectLambdaNotAvailable", + "from": "AccessDenied", + "message": { + "includes": "Object Lambda is available only to existing customers" + } + } + ] + }, + "getAccessPointForObjectLambda": { + "errors": [ + "NoSuchAccessPoint" + ] + }, + "deleteAccessPointForObjectLambda": { + "errors": [ + "NoSuchAccessPoint" + ] + }, + "getAccessPointConfigurationForObjectLambda": { + "errors": [ + "NoSuchAccessPoint" + ] + }, + "putAccessPointConfigurationForObjectLambda": { + "errors": [ + "NoSuchAccessPoint", + "InvalidRequest" + ] + }, + "getAccessPointPolicyForObjectLambda": { + "errors": [ + "NoSuchAccessPoint", + "NoSuchAccessPointPolicy" + ] + }, + "putAccessPointPolicyForObjectLambda": { + "errors": [ + "NoSuchAccessPoint", + "MalformedPolicy" + ] + }, + "deleteAccessPointPolicyForObjectLambda": { + "errors": [ + "NoSuchAccessPoint", + "NoSuchAccessPointPolicy" + ] + }, + "putStorageLensConfiguration": { + "errors": [ + "InvalidRequest", + "MissingBucketLevelActivityMetrics" + ] + }, + "getStorageLensConfiguration": { + "errors": [ + "NoSuchConfiguration" + ] + }, + "deleteStorageLensConfiguration": { + "errors": [ + "NoSuchConfiguration" + ] + }, + "getStorageLensConfigurationTagging": { + "errors": [ + "NoSuchConfiguration" + ] + }, + "putStorageLensConfigurationTagging": { + "errors": [ + "NoSuchConfiguration" + ] + }, + "deleteStorageLensConfigurationTagging": { + "errors": [ + "NoSuchConfiguration" + ] + }, + "createMultiRegionAccessPoint": { + "errors": [ + "InvalidRequest" + ] + }, + "getMultiRegionAccessPoint": { + "errors": [ + "NoSuchMultiRegionAccessPoint" + ] + }, + "deleteMultiRegionAccessPoint": { + "errors": [ + "NoSuchMultiRegionAccessPoint", + "InvalidRequest" + ] + }, + "describeMultiRegionAccessPointOperation": { + "errors": [ + "InvalidRequest" + ] + }, + "getMultiRegionAccessPointPolicy": { + "errors": [ + "NoSuchMultiRegionAccessPoint" + ] + }, + "putMultiRegionAccessPointPolicy": { + "errors": [ + "NoSuchMultiRegionAccessPoint", + "InvalidRequest" + ] + }, + "updateJobStatus": { + "errors": [ + "InvalidRequest" + ], + "syntheticErrors": [ + { + "name": "JobStatusTransitionForbidden", + "from": "InvalidRequest", + "message": { + "includes": "job status forbidden" + } + } + ] + }, + "updateJobPriority": { + "errors": [ + "InvalidRequest" + ], + "syntheticErrors": [ + { + "name": "JobStatusTransitionForbidden", + "from": "InvalidRequest", + "message": { + "includes": "job status forbidden" + } + } + ] + }, + "createJob": { + "errors": [ + "InvalidRequest" + ] + } + } +} \ No newline at end of file diff --git a/packages/aws/patches/s3.json b/packages/aws/patches/s3.json index 223603aa06..e86285a50c 100644 --- a/packages/aws/patches/s3.json +++ b/packages/aws/patches/s3.json @@ -2,6 +2,7 @@ "errorCategories": { "SlowDown": ["ThrottlingError", "RetryableError"], "BucketNotEmpty": ["ConflictError"], + "BucketHasAccessPointsAttached": ["ConflictError"], "BucketAlreadyOwnedByYou": ["AlreadyExistsError"], "MalformedXML": ["BadRequestError"], "MalformedPolicy": ["BadRequestError"], @@ -15,6 +16,13 @@ "PreconditionFailed": ["ConflictError"], "ConditionalRequestConflict": ["ConflictError", "RetryableError"] }, + "structures": { + "GetObjectTaggingOutput": { + "members": { + "TagSet": { "optional": true } + } + } + }, "operations": { "createBucket": { "errors": [ @@ -31,6 +39,7 @@ "RequestLimitExceeded", "SlowDown", "BucketNotEmpty", + "BucketHasAccessPointsAttached", "NoSuchBucket", "PermanentRedirect" ] @@ -354,7 +363,7 @@ "errors": ["RequestLimitExceeded", "SlowDown", "InvalidRequest"] }, "putObjectLegalHold": { - "errors": ["RequestLimitExceeded", "SlowDown", "MalformedXML"] + "errors": ["RequestLimitExceeded", "SlowDown", "MalformedXML", "InvalidRequest"] }, "listMultipartUploads": { "errors": ["RequestLimitExceeded", "SlowDown", "NoSuchBucket", "PermanentRedirect"] @@ -381,7 +390,13 @@ "errors": ["RequestLimitExceeded", "SlowDown", "NoSuchBucket", "PermanentRedirect"] }, "restoreObject": { - "errors": ["RequestLimitExceeded", "SlowDown", "NoSuchKey", "PermanentRedirect"] + "errors": [ + "RequestLimitExceeded", + "SlowDown", + "NoSuchKey", + "PermanentRedirect", + "InvalidObjectState" + ] }, "uploadPartCopy": { "errors": ["RequestLimitExceeded", "SlowDown", "NoSuchBucket"] diff --git a/packages/aws/patches/s3tables.json b/packages/aws/patches/s3tables.json new file mode 100644 index 0000000000..0dd8e56618 --- /dev/null +++ b/packages/aws/patches/s3tables.json @@ -0,0 +1,11 @@ +{ + "structures": { + "GetTableResponse": { + "members": { + "modifiedBy": { + "optional": true + } + } + } + } +} diff --git a/packages/aws/patches/sagemaker-featurestore-runtime.json b/packages/aws/patches/sagemaker-featurestore-runtime.json new file mode 100644 index 0000000000..3ebc7f7d28 --- /dev/null +++ b/packages/aws/patches/sagemaker-featurestore-runtime.json @@ -0,0 +1,34 @@ +{ + "operations": { + "getRecord": { + "syntheticErrors": [ + { + "name": "FeatureGroupNotFound", + "from": "ValidationError", + "message": { "includes": "Resource Not Found" } + } + ] + }, + "putRecord": { + "syntheticErrors": [ + { + "name": "FeatureGroupNotFound", + "from": "ValidationError", + "message": { "includes": "Resource Not Found" } + } + ] + }, + "deleteRecord": { + "syntheticErrors": [ + { + "name": "FeatureGroupNotFound", + "from": "ValidationError", + "message": { "includes": "Resource Not Found" } + } + ] + } + }, + "errorCategories": { + "FeatureGroupNotFound": ["NotFoundError"] + } +} diff --git a/packages/aws/patches/sagemaker.json b/packages/aws/patches/sagemaker.json new file mode 100644 index 0000000000..23e5716cc4 --- /dev/null +++ b/packages/aws/patches/sagemaker.json @@ -0,0 +1,114 @@ +{ + "operations": { + "createModel": { + "syntheticErrors": [ + { + "name": "ModelAlreadyExists", + "from": "ValidationException", + "message": { "includes": "Cannot create already existing model" } + } + ] + }, + "describeModel": { + "syntheticErrors": [ + { + "name": "ModelNotFound", + "from": "ValidationException", + "message": { "includes": "Could not find model" } + } + ] + }, + "deleteModel": { + "syntheticErrors": [ + { + "name": "ModelNotFound", + "from": "ValidationException", + "message": { "includes": "Could not find model" } + } + ] + }, + "createEndpointConfig": { + "syntheticErrors": [ + { + "name": "EndpointConfigAlreadyExists", + "from": "ValidationException", + "message": { + "includes": "Cannot create already existing endpoint configuration" + } + } + ] + }, + "describeEndpointConfig": { + "syntheticErrors": [ + { + "name": "EndpointConfigNotFound", + "from": "ValidationException", + "message": { "includes": "Could not find endpoint configuration" } + } + ] + }, + "deleteEndpointConfig": { + "syntheticErrors": [ + { + "name": "EndpointConfigNotFound", + "from": "ValidationException", + "message": { "includes": "Could not find endpoint configuration" } + } + ] + }, + "createEndpoint": { + "syntheticErrors": [ + { + "name": "EndpointConfigNotFound", + "from": "ValidationException", + "message": { "includes": "Could not find endpoint configuration" } + }, + { + "name": "EndpointAlreadyExists", + "from": "ValidationException", + "message": { "includes": "Cannot create already existing endpoint" } + } + ] + }, + "describeEndpoint": { + "syntheticErrors": [ + { + "name": "EndpointNotFound", + "from": "ValidationException", + "message": { "includes": "Could not find endpoint \"" } + } + ] + }, + "deleteEndpoint": { + "syntheticErrors": [ + { + "name": "EndpointNotFound", + "from": "ValidationException", + "message": { "includes": "Could not find endpoint \"" } + } + ] + }, + "updateEndpoint": { + "syntheticErrors": [ + { + "name": "EndpointConfigNotFound", + "from": "ValidationException", + "message": { "includes": "Could not find endpoint configuration" } + }, + { + "name": "EndpointNotFound", + "from": "ValidationException", + "message": { "includes": "Could not find endpoint \"" } + } + ] + } + }, + "errorCategories": { + "ModelNotFound": ["NotFoundError"], + "ModelAlreadyExists": ["AlreadyExistsError", "ConflictError"], + "EndpointConfigNotFound": ["NotFoundError"], + "EndpointConfigAlreadyExists": ["AlreadyExistsError", "ConflictError"], + "EndpointNotFound": ["NotFoundError"], + "EndpointAlreadyExists": ["AlreadyExistsError", "ConflictError"] + } +} diff --git a/packages/aws/patches/schemas.json b/packages/aws/patches/schemas.json new file mode 100644 index 0000000000..b9891d4fbf --- /dev/null +++ b/packages/aws/patches/schemas.json @@ -0,0 +1,7 @@ +{ + "operations": { + "putCodeBinding": { + "errors": ["ConflictException"] + } + } +} diff --git a/packages/aws/patches/securitylake.json b/packages/aws/patches/securitylake.json new file mode 100644 index 0000000000..5b6cc10f57 --- /dev/null +++ b/packages/aws/patches/securitylake.json @@ -0,0 +1,48 @@ +{ + "operations": { + "createAwsLogSource": { "errors": ["UnauthorizedException"] }, + "deleteAwsLogSource": { "errors": ["UnauthorizedException"] }, + "listLogSources": { "errors": ["UnauthorizedException"] }, + "createCustomLogSource": { "errors": ["UnauthorizedException"] }, + "deleteCustomLogSource": { "errors": ["UnauthorizedException"] }, + "createDataLake": { "errors": ["UnauthorizedException"] }, + "updateDataLake": { "errors": ["UnauthorizedException"] }, + "deleteDataLake": { "errors": ["UnauthorizedException"] }, + "listDataLakes": { "errors": ["UnauthorizedException"] }, + "getDataLakeSources": { "errors": ["UnauthorizedException"] }, + "listDataLakeExceptions": { "errors": ["UnauthorizedException"] }, + "createDataLakeExceptionSubscription": { + "errors": ["UnauthorizedException"] + }, + "getDataLakeExceptionSubscription": { + "errors": ["UnauthorizedException"] + }, + "updateDataLakeExceptionSubscription": { + "errors": ["UnauthorizedException"] + }, + "deleteDataLakeExceptionSubscription": { + "errors": ["UnauthorizedException"] + }, + "createSubscriber": { "errors": ["UnauthorizedException"] }, + "getSubscriber": { "errors": ["UnauthorizedException"] }, + "updateSubscriber": { "errors": ["UnauthorizedException"] }, + "deleteSubscriber": { "errors": ["UnauthorizedException"] }, + "listSubscribers": { "errors": ["UnauthorizedException"] }, + "createSubscriberNotification": { "errors": ["UnauthorizedException"] }, + "updateSubscriberNotification": { "errors": ["UnauthorizedException"] }, + "deleteSubscriberNotification": { "errors": ["UnauthorizedException"] }, + "listTagsForResource": { "errors": ["UnauthorizedException"] }, + "tagResource": { "errors": ["UnauthorizedException"] }, + "untagResource": { "errors": ["UnauthorizedException"] } + }, + "structures": { + "HttpsNotificationConfiguration": { + "members": { + "authorizationApiKeyValue": { "sensitive": true } + } + } + }, + "errorCategories": { + "UnauthorizedException": ["AuthError"] + } +} diff --git a/packages/aws/patches/service-catalog-appregistry.json b/packages/aws/patches/service-catalog-appregistry.json new file mode 100644 index 0000000000..58756faa48 --- /dev/null +++ b/packages/aws/patches/service-catalog-appregistry.json @@ -0,0 +1,16 @@ +{ + "errors": { + "ThrottlingException": { + "message": { "type": "string", "optional": true }, + "serviceCode": { "type": "string", "optional": true } + } + }, + "errorCategories": { + "ThrottlingException": ["ThrottlingError", "RetryableError"] + }, + "operations": { + "associateAttributeGroup": { + "errors": ["ThrottlingException"] + } + } +} diff --git a/packages/aws/patches/service-catalog.json b/packages/aws/patches/service-catalog.json new file mode 100644 index 0000000000..c10f7449a9 --- /dev/null +++ b/packages/aws/patches/service-catalog.json @@ -0,0 +1,15 @@ +{ + "operations": { + "executeProvisionedProductServiceAction": { + "syntheticErrors": [ + { + "name": "ProvisionedProductNotFound", + "from": "ValidationException", + "message": { + "includes": "Provisioned product not found" + } + } + ] + } + } +} diff --git a/packages/aws/patches/servicediscovery.json b/packages/aws/patches/servicediscovery.json new file mode 100644 index 0000000000..510b4d1e74 --- /dev/null +++ b/packages/aws/patches/servicediscovery.json @@ -0,0 +1,14 @@ +{ + "structures": { + "SOA": { + "members": { + "TTL": { "optional": true } + } + }, + "DnsConfig": { + "members": { + "DnsRecords": { "optional": true } + } + } + } +} diff --git a/packages/aws/patches/sesv2.json b/packages/aws/patches/sesv2.json new file mode 100644 index 0000000000..ee6880d845 --- /dev/null +++ b/packages/aws/patches/sesv2.json @@ -0,0 +1,17 @@ +{ + "structures": { + "MailFromAttributes": { + "members": { + "MailFromDomain": { + "optional": true + }, + "MailFromDomainStatus": { + "optional": true + }, + "BehaviorOnMxFailure": { + "optional": true + } + } + } + } +} diff --git a/packages/aws/patches/shield.json b/packages/aws/patches/shield.json new file mode 100644 index 0000000000..8d8f7f173a --- /dev/null +++ b/packages/aws/patches/shield.json @@ -0,0 +1,142 @@ +{ + "operations": { + "describeSubscription": { + "syntheticErrors": [ + { + "name": "SubscriptionNotFound", + "from": "ResourceNotFoundException", + "message": "The subscription does not exist." + } + ] + }, + "updateSubscription": { + "syntheticErrors": [ + { + "name": "SubscriptionNotFound", + "from": "ResourceNotFoundException", + "message": "The subscription does not exist." + } + ] + }, + "deleteSubscription": { + "syntheticErrors": [ + { + "name": "SubscriptionNotFound", + "from": "ResourceNotFoundException", + "message": "The subscription does not exist." + } + ] + }, + "createProtection": { + "syntheticErrors": [ + { + "name": "SubscriptionNotFound", + "from": "ResourceNotFoundException", + "message": "The subscription does not exist." + } + ] + }, + "describeProtection": { + "syntheticErrors": [ + { + "name": "SubscriptionNotFound", + "from": "ResourceNotFoundException", + "message": "The subscription does not exist." + } + ] + }, + "deleteProtection": { + "syntheticErrors": [ + { + "name": "SubscriptionNotFound", + "from": "ResourceNotFoundException", + "message": "The subscription does not exist." + } + ] + }, + "listProtections": { + "syntheticErrors": [ + { + "name": "SubscriptionNotFound", + "from": "ResourceNotFoundException", + "message": "The subscription does not exist." + } + ] + }, + "createProtectionGroup": { + "syntheticErrors": [ + { + "name": "SubscriptionNotFound", + "from": "ResourceNotFoundException", + "message": "The subscription does not exist." + } + ] + }, + "describeProtectionGroup": { + "syntheticErrors": [ + { + "name": "SubscriptionNotFound", + "from": "ResourceNotFoundException", + "message": "The subscription does not exist." + } + ] + }, + "updateProtectionGroup": { + "syntheticErrors": [ + { + "name": "SubscriptionNotFound", + "from": "ResourceNotFoundException", + "message": "The subscription does not exist." + } + ] + }, + "deleteProtectionGroup": { + "syntheticErrors": [ + { + "name": "SubscriptionNotFound", + "from": "ResourceNotFoundException", + "message": "The subscription does not exist." + } + ] + }, + "listProtectionGroups": { + "syntheticErrors": [ + { + "name": "SubscriptionNotFound", + "from": "ResourceNotFoundException", + "message": "The subscription does not exist." + } + ] + }, + "listTagsForResource": { + "syntheticErrors": [ + { + "name": "SubscriptionNotFound", + "from": "ResourceNotFoundException", + "message": "The subscription does not exist." + } + ] + }, + "tagResource": { + "syntheticErrors": [ + { + "name": "SubscriptionNotFound", + "from": "ResourceNotFoundException", + "message": "The subscription does not exist." + } + ] + }, + "untagResource": { + "syntheticErrors": [ + { + "name": "SubscriptionNotFound", + "from": "ResourceNotFoundException", + "message": "The subscription does not exist." + } + ] + } + }, + "errorCategories": { + "SubscriptionNotFound": ["NotFoundError"] + } +} diff --git a/packages/aws/patches/signer.json b/packages/aws/patches/signer.json new file mode 100644 index 0000000000..f6c242c97a --- /dev/null +++ b/packages/aws/patches/signer.json @@ -0,0 +1,29 @@ +{ + "operations": { + "putSigningProfile": { + "syntheticErrors": [ + { + "name": "SigningProfileAlreadyExists", + "from": "ValidationException", + "message": { + "includes": "already exists" + } + } + ] + } + }, + "errorCategories": { + "SigningProfileAlreadyExists": [ + "AlreadyExistsError" + ] + }, + "structures": { + "SigningMaterial": { + "members": { + "certificateArn": { + "optional": true + } + } + } + } +} \ No newline at end of file diff --git a/packages/aws/patches/socialmessaging.json b/packages/aws/patches/socialmessaging.json new file mode 100644 index 0000000000..5b1822749f --- /dev/null +++ b/packages/aws/patches/socialmessaging.json @@ -0,0 +1,12 @@ +{ + "structures": { + "WhatsAppSignupCallback": { + "members": { + "accessToken": { "sensitive": true } + } + } + }, + "operations": { + "sendWhatsAppMessage": { "errors": ["AccessDeniedByMetaException"] } + } +} diff --git a/packages/aws/patches/sqs.json b/packages/aws/patches/sqs.json index c4407eb56c..5a45fb6aa5 100644 --- a/packages/aws/patches/sqs.json +++ b/packages/aws/patches/sqs.json @@ -54,9 +54,37 @@ ] } }, + "errors": { + "InvalidParameterValueException": { + "message": { "type": "string" } + } + }, "structures": { "SendMessageBatchResult": { "members": { + "Successful": { + "optional": true + }, + "Failed": { + "optional": true + } + } + }, + "DeleteMessageBatchResult": { + "members": { + "Successful": { + "optional": true + }, + "Failed": { + "optional": true + } + } + }, + "ChangeMessageVisibilityBatchResult": { + "members": { + "Successful": { + "optional": true + }, "Failed": { "optional": true } diff --git a/packages/aws/patches/ssm-contacts.json b/packages/aws/patches/ssm-contacts.json new file mode 100644 index 0000000000..d09d91490d --- /dev/null +++ b/packages/aws/patches/ssm-contacts.json @@ -0,0 +1,500 @@ +{ + "operations": { + "getContact": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "getContactChannel": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "getRotation": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + }, + { + "name": "InvalidRotationArn", + "from": "ValidationException", + "message": { + "includes": "Invalid resource Arn" + } + } + ] + }, + "createContact": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "createContactChannel": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "createRotation": { + "errors": [ + "ConflictException" + ], + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "updateContact": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "updateContactChannel": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "updateRotation": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + }, + { + "name": "InvalidRotationArn", + "from": "ValidationException", + "message": { + "includes": "Invalid resource Arn" + } + } + ] + }, + "deleteContact": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "deleteContactChannel": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "deleteRotation": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + }, + { + "name": "InvalidRotationArn", + "from": "ValidationException", + "message": { + "includes": "Invalid resource Arn" + } + } + ] + }, + "listContacts": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "listContactChannels": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "listRotations": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "listTagsForResource": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "tagResource": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "untagResource": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "startEngagement": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "stopEngagement": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "describeEngagement": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "listEngagements": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "acceptPage": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "describePage": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "listPagesByContact": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "listPagesByEngagement": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "listPageReceipts": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "listPageResolutions": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "activateContactChannel": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "deactivateContactChannel": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "sendActivationCode": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "createRotationOverride": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + }, + { + "name": "InvalidRotationArn", + "from": "ValidationException", + "message": { + "includes": "Invalid resource Arn" + } + } + ] + }, + "deleteRotationOverride": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + }, + { + "name": "InvalidRotationArn", + "from": "ValidationException", + "message": { + "includes": "Invalid resource Arn" + } + } + ] + }, + "getRotationOverride": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + }, + { + "name": "InvalidRotationArn", + "from": "ValidationException", + "message": { + "includes": "Invalid resource Arn" + } + } + ] + }, + "listRotationOverrides": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + }, + { + "name": "InvalidRotationArn", + "from": "ValidationException", + "message": { + "includes": "Invalid resource Arn" + } + } + ] + }, + "listRotationShifts": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + }, + { + "name": "InvalidRotationArn", + "from": "ValidationException", + "message": { + "includes": "Invalid resource Arn" + } + } + ] + }, + "listPreviewRotationShifts": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "putContactPolicy": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + }, + "getContactPolicy": { + "syntheticErrors": [ + { + "name": "IncidentManagerNotOnboarded", + "from": "ValidationException", + "message": { + "includes": "Account not found for the request" + } + } + ] + } + }, + "errorCategories": { + "IncidentManagerNotOnboarded": [ + "BadRequestError" + ], + "InvalidRotationArn": [ + "BadRequestError" + ] + } +} diff --git a/packages/aws/patches/ssm-incidents.json b/packages/aws/patches/ssm-incidents.json new file mode 100644 index 0000000000..260a06ac5c --- /dev/null +++ b/packages/aws/patches/ssm-incidents.json @@ -0,0 +1,10 @@ +{ + "operations": { + "createReplicationSet": { + "errors": ["UnsupportedOperationException"] + } + }, + "errorCategories": { + "UnsupportedOperationException": ["BadRequestError"] + } +} diff --git a/packages/aws/patches/synthetics.json b/packages/aws/patches/synthetics.json new file mode 100644 index 0000000000..a649e24647 --- /dev/null +++ b/packages/aws/patches/synthetics.json @@ -0,0 +1,7 @@ +{ + "operations": { + "getCanary": { + "errors": ["ResourceNotFoundException"] + } + } +} diff --git a/packages/aws/patches/timestream-query.json b/packages/aws/patches/timestream-query.json new file mode 100644 index 0000000000..f2466cff48 --- /dev/null +++ b/packages/aws/patches/timestream-query.json @@ -0,0 +1,29 @@ +{ + "operations": { + "describeEndpoints": { + "syntheticErrors": [ + { + "name": "TimestreamNotOnboarded", + "from": "AccessDeniedException", + "message": { + "includes": "Only existing Timestream for LiveAnalytics customers" + } + } + ] + }, + "query": { + "syntheticErrors": [ + { + "name": "TimestreamNotOnboarded", + "from": "AccessDeniedException", + "message": { + "includes": "Only existing Timestream for LiveAnalytics customers" + } + } + ] + } + }, + "errorCategories": { + "TimestreamNotOnboarded": ["AuthError"] + } +} diff --git a/packages/aws/patches/timestream-write.json b/packages/aws/patches/timestream-write.json new file mode 100644 index 0000000000..19980bae08 --- /dev/null +++ b/packages/aws/patches/timestream-write.json @@ -0,0 +1,29 @@ +{ + "operations": { + "describeEndpoints": { + "syntheticErrors": [ + { + "name": "TimestreamNotOnboarded", + "from": "AccessDeniedException", + "message": { + "includes": "Only existing Timestream for LiveAnalytics customers" + } + } + ] + }, + "createDatabase": { + "syntheticErrors": [ + { + "name": "TimestreamNotOnboarded", + "from": "AccessDeniedException", + "message": { + "includes": "Only existing Timestream for LiveAnalytics customers" + } + } + ] + } + }, + "errorCategories": { + "TimestreamNotOnboarded": ["AuthError"] + } +} diff --git a/packages/aws/patches/verifiedpermissions.json b/packages/aws/patches/verifiedpermissions.json new file mode 100644 index 0000000000..8d52c406a0 --- /dev/null +++ b/packages/aws/patches/verifiedpermissions.json @@ -0,0 +1,25 @@ +{ + "operations": { + "createPolicyStore": { "errors": ["ValidationException"] }, + "updatePolicyStore": { "errors": ["ValidationException"] }, + "getPolicyStore": { "errors": ["ValidationException"] }, + "createPolicy": { "errors": ["ValidationException"] }, + "updatePolicy": { "errors": ["ValidationException"] }, + "getPolicy": { "errors": ["ValidationException"] }, + "putSchema": { "errors": ["ValidationException"] }, + "getSchema": { "errors": ["ValidationException"] }, + "isAuthorized": { "errors": ["ValidationException"] }, + "isAuthorizedWithToken": { "errors": ["ValidationException"] }, + "batchIsAuthorized": { "errors": ["ValidationException"] }, + "batchIsAuthorizedWithToken": { "errors": ["ValidationException"] }, + "batchGetPolicy": { "errors": ["ValidationException"] }, + "createIdentitySource": { "errors": ["ValidationException"] }, + "updateIdentitySource": { "errors": ["ValidationException"] }, + "createPolicyTemplate": { "errors": ["ValidationException"] }, + "updatePolicyTemplate": { "errors": ["ValidationException"] }, + "createPolicyStoreAlias": { "errors": ["ValidationException"] }, + "deletePolicyStoreAlias": { + "errors": ["ValidationException", "ResourceNotFoundException"] + } + } +} diff --git a/packages/aws/patches/vpc-lattice.json b/packages/aws/patches/vpc-lattice.json new file mode 100644 index 0000000000..56eb4104db --- /dev/null +++ b/packages/aws/patches/vpc-lattice.json @@ -0,0 +1,7 @@ +{ + "operations": { + "listAccessLogSubscriptions": { + "errors": ["ResourceNotFoundException"] + } + } +} diff --git a/packages/aws/patches/wafv2.json b/packages/aws/patches/wafv2.json new file mode 100644 index 0000000000..10675075c8 --- /dev/null +++ b/packages/aws/patches/wafv2.json @@ -0,0 +1,5 @@ +{ + "operations": { + "disassociateWebACL": { "errors": ["WAFUnavailableEntityException"] } + } +} diff --git a/packages/aws/patches/xray.json b/packages/aws/patches/xray.json new file mode 100644 index 0000000000..aaf57f0461 --- /dev/null +++ b/packages/aws/patches/xray.json @@ -0,0 +1,85 @@ +{ + "operations": { + "createGroup": { + "syntheticErrors": [ + { + "name": "GroupAlreadyExists", + "from": "InvalidRequestException", + "message": { + "matches": " already exists$" + } + } + ] + }, + "getGroup": { + "syntheticErrors": [ + { + "name": "GroupNotFound", + "from": "InvalidRequestException", + "message": "Group not found" + } + ] + }, + "updateGroup": { + "syntheticErrors": [ + { + "name": "GroupNotFound", + "from": "InvalidRequestException", + "message": "Group not found" + } + ] + }, + "deleteGroup": { + "syntheticErrors": [ + { + "name": "GroupNotFound", + "from": "InvalidRequestException", + "message": "Group not found" + } + ] + }, + "createSamplingRule": { + "syntheticErrors": [ + { + "name": "SamplingRuleAlreadyExists", + "from": "InvalidRequestException", + "message": "Sampling rule already exists" + } + ] + }, + "updateSamplingRule": { + "syntheticErrors": [ + { + "name": "SamplingRuleNotFound", + "from": "InvalidRequestException", + "message": "Sampling rule does not exist" + } + ] + }, + "deleteSamplingRule": { + "syntheticErrors": [ + { + "name": "SamplingRuleNotFound", + "from": "InvalidRequestException", + "message": "Sampling rule does not exist" + } + ] + } + }, + "errorCategories": { + "GroupNotFound": [ + "NotFoundError" + ], + "GroupAlreadyExists": [ + "AlreadyExistsError", + "ConflictError" + ], + "SamplingRuleNotFound": [ + "NotFoundError" + ], + "SamplingRuleAlreadyExists": [ + "AlreadyExistsError", + "ConflictError" + ] + } +} diff --git a/packages/aws/scripts/generate.ts b/packages/aws/scripts/generate.ts index 4c53954628..9f10344069 100644 --- a/packages/aws/scripts/generate.ts +++ b/packages/aws/scripts/generate.ts @@ -15,7 +15,11 @@ import { import * as FileSystem from "effect/FileSystem"; import * as Path from "effect/Path"; import * as ChildProcess from "effect/unstable/process/ChildProcess"; -import { loadServiceSpecPatch, type ServiceSpec } from "./spec-schema.ts"; +import { + loadServiceSpecPatch, + type ServiceSpec, + type SyntheticError, +} from "./spec-schema.ts"; import type { RuleSetObject } from "./compile-rules.ts"; import { generateRuleSetCode } from "./compile-rules.ts"; import { @@ -70,6 +74,14 @@ class SdkFile extends Context.Service< serviceXmlNamespace: string | undefined; // Map of input schema names to their operation traits operationInputTraits: Map; + // Per-operation trait overrides for input shapes SHARED by multiple + // operations with conflicting operation-level traits (keyed by operation + // shape name, e.g. "DisableTrustAnchor"). The operation generator emits a + // derived `${OpName}Request` schema carrying the correct @http trait — + // otherwise every op silently inherits one op's method/uri (observed + // live: rolesanywhere DisableTrustAnchor issued GET /trustanchor/{id} + // instead of POST .../disable and no-op'd). + operationInputTraitOverrides: Map; // Map of output schema names to their operation traits operationOutputTraits: Map; // Service-level traits (applied to all request schemas) @@ -118,6 +130,16 @@ class ShapeNotFound extends Data.TaggedError("ShapeNotFound")<{ }> {} class ProtocolNotFound extends Data.TaggedError("ProtocolNotFound")<{}> {} +// A patch file references an operation that does not exist in the Smithy +// model — usually a typo'd key that would otherwise silently no-op. +class OrphanedPatchOperations extends Data.TaggedError( + "OrphanedPatchOperations", +)<{ + sdkId: string; + operations: string[]; + message: string; +}> {} + //* todo(pear): better error here - most of these need to be handled class UnableToTransformShapeToSchema extends Data.TaggedError( "UnableToTransformShapeToSchema", @@ -584,9 +606,14 @@ const shapeToTsType = ( } case "list": { - // For lists, get the element type and return an array type + // For lists, get the element type and return an array type. + // Parenthesize union element types (e.g. sensitive members that + // render as `string | redacted.Redacted`) so the `[]` + // suffix binds to the whole union, not just the last member. const elementType = yield* shapeToTsType(shape.member.target); - return `${elementType}[]`; + return elementType.includes("|") + ? `(${elementType})[]` + : `${elementType}[]`; } case "map": { @@ -932,11 +959,27 @@ interface OperationInputTraits { staticContextParams?: Record; } -// Collect operation traits for input schemas -function collectOperationInputTraits( - model: SmithyModel, -): Map { +// Collect operation traits for input schemas. +// +// Returns two maps: +// - inputTraits: input schema name -> traits baked into that schema constant +// - inputTraitOverrides: operation shape name -> traits, for operations whose +// input shape is SHARED by multiple operations with CONFLICTING traits +// (restJson services commonly reuse one `Scalar{X}Request` shape across +// Get/Delete/Enable/Disable with different @http bindings). Keying traits +// by input shape name alone made the last writer win, so e.g. rolesanywhere +// DisableTrustAnchor issued GET /trustanchor/{id} and silently no-op'd. The +// operation generator emits a derived `${OpName}Request` schema for each +// overridden operation. +function collectOperationInputTraits(model: SmithyModel): { + operationInputTraits: Map; + operationInputTraitOverrides: Map; +} { const inputTraits = new Map(); + const opsByInput = new Map< + string, + { opName: string; traits: OperationInputTraits }[] + >(); for (const [_shapeId, shape] of Object.entries(model.shapes)) { if (shape.type === "operation" && shape.input) { @@ -958,17 +1001,57 @@ function collectOperationInputTraits( "smithy.rules#staticContextParams" ] as Record | undefined; - const inputName = formatName(shape.input.target); - inputTraits.set(inputName, { + const traits: OperationInputTraits = { method: httpTrait.method ?? "POST", uri: httpTrait.uri ?? "/", httpChecksum: httpChecksumTrait, staticContextParams: staticContextParamsTrait, - }); + }; + + // Operations with `smithy.api#Unit` inputs get a synthesized + // `${OpName}Request` schema (see the Unit-input branch in the + // operation generator), so key their traits under that name — + // keying under "Unit" loses the operation's real @http trait and + // every Unit-input operation silently falls back to POST "/" + // (observed live: resource-explorer-2 GetIndex returned + // AccessDeniedException because it was posted to "/" instead of + // "/GetIndex"). + if (shape.input.target === "smithy.api#Unit") { + inputTraits.set(`${_shapeId.split("#")[1]}Request`, traits); + continue; + } + const inputName = formatName(shape.input.target); + const ops = opsByInput.get(inputName) ?? []; + ops.push({ opName: _shapeId.split("#")[1], traits }); + opsByInput.set(inputName, ops); + } + } + + const inputTraitOverrides = new Map(); + for (const [inputName, ops] of opsByInput) { + const distinct = new Set(ops.map((o) => JSON.stringify(o.traits))); + if (distinct.size === 1) { + inputTraits.set(inputName, ops[0].traits); + continue; + } + // Conflicting traits on a shared input shape. The op whose natural + // `${OpName}Request` name matches the shape keeps ownership of the base + // schema (so no derived name can collide with the base); otherwise the + // first op in model order owns it. Every other op with different traits + // gets a per-operation override. + const owner = ops.find((o) => `${o.opName}Request` === inputName) ?? ops[0]; + inputTraits.set(inputName, owner.traits); + const ownerKey = JSON.stringify(owner.traits); + for (const op of ops) { + if (op === owner || JSON.stringify(op.traits) === ownerKey) continue; + inputTraitOverrides.set(op.opName, op.traits); } } - return inputTraits; + return { + operationInputTraits: inputTraits, + operationInputTraitOverrides: inputTraitOverrides, + }; } interface OperationOutputTraits { @@ -1552,7 +1635,9 @@ const convertShapeToSchema: ( .map((v) => `"${v}"`) .join("\n | "); const typeAlias = `export type ${schemaName} =\n | ${literalUnion}\n | (string & {});`; - const schemaDef = annotatePureExportConst(`export const ${schemaName} = S.String;`); + const schemaDef = annotatePureExportConst( + `export const ${schemaName} = S.String;`, + ); return addAlias(Effect.succeed(`${typeAlias}\n${schemaDef}`), []); }, ), @@ -1583,7 +1668,9 @@ const convertShapeToSchema: ( const literals = enumValues.join(", "); const literalUnion = enumValues.join(" | "); const typeAlias = `export type ${schemaName} = ${literalUnion};`; - const schemaDef = annotatePureExportConst(`export const ${schemaName} = S.Literals([${literals}]);`); + const schemaDef = annotatePureExportConst( + `export const ${schemaName} = S.Literals([${literals}]);`, + ); return addAlias(Effect.succeed(`${typeAlias}\n${schemaDef}`), []); }, ), @@ -1636,10 +1723,19 @@ const convertShapeToSchema: ( const memberTsType = yield* shapeToTsType( s.member.target, ); - const typeAlias = `export type ${schemaName} = ${memberTsType}[];`; + // Parenthesize union element types so `[]` binds to the + // whole union, not just the last member. + const memberTsTypeForArray = memberTsType.includes("|") + ? `(${memberTsType})` + : memberTsType; + const typeAlias = `export type ${schemaName} = ${memberTsTypeForArray}[];`; const schemaDef = isCyclic - ? annotatePureExportConst(`export const ${schemaName} = S.Array(${innerType})${sparsePipe} as any as S.Schema<${schemaName}>;`) - : annotatePureExportConst(`export const ${schemaName} = S.Array(${innerType})${sparsePipe};`); + ? annotatePureExportConst( + `export const ${schemaName} = S.Array(${innerType})${sparsePipe} as any as S.Schema<${schemaName}>;`, + ) + : annotatePureExportConst( + `export const ${schemaName} = S.Array(${innerType})${sparsePipe};`, + ); return `${typeAlias}\n${schemaDef}`; }), ), @@ -1810,6 +1906,43 @@ const convertShapeToSchema: ( sdkFile.serviceSpec.structures?.[currentSchemaName]; const memberOverride = structureOverride?.members?.[memberName]; + // Member-level sensitive override from spec patches — the + // Smithy model lacks @sensitive but the field carries secret + // material (e.g. API Gateway ApiKey.value). Swap the wire + // schema for SensitiveString so responses decode to Redacted + // and requests accept raw or Redacted values. + if (memberOverride?.sensitive) { + const listMemberTarget = + memberTargetShape?.type === "list" + ? ( + memberTargetShape as { + member?: { target?: string }; + } + ).member?.target + : undefined; + const isStringList = + listMemberTarget !== undefined && + (listMemberTarget === "smithy.api#String" || + ( + model.shapes[listMemberTarget] as + | GenericShape + | undefined + )?.type === "string"); + if (schema === "S.String") { + schema = "SensitiveString"; + tsType = "string | redacted.Redacted"; + } else if (isStringList) { + // Sensitive list of strings (e.g. ElastiCache user + // Passwords) — each element decodes to Redacted. + schema = "S.Array(SensitiveString)"; + tsType = "Array>"; + } else { + return yield* Effect.die( + `sensitive member override on ${currentSchemaName}.${memberName} ` + + `requires a plain string or list-of-string member (schema was ${schema})`, + ); + } + } // Check if this member is "soft required" (@clientOptional + @required) const hasClientOptional = member.traits?.["smithy.api#clientOptional"] != null; @@ -2010,7 +2143,9 @@ const convertShapeToSchema: ( // Generate interface + suspend(struct) pattern // Trait annotations inside suspend, identifier outside const interfaceDef = `export interface ${exportedName} { ${interfaceFields} }`; - const schemaDef = annotatePureExportConst(`export const ${exportedName} = S.suspend(() => S.Struct({${schemaFields}})${encodeKeysPipe}${innerPipe})${outerAnnotation} as any as S.Schema<${exportedName}>;`); + const schemaDef = annotatePureExportConst( + `export const ${exportedName} = S.suspend(() => S.Struct({${schemaFields}})${encodeKeysPipe}${innerPipe})${outerAnnotation} as any as S.Schema<${exportedName}>;`, + ); return `${interfaceDef}\n${schemaDef}`; }), @@ -2259,8 +2394,12 @@ const convertShapeToSchema: ( } const schemaDef = isCyclic - ? annotatePureExportConst(`export const ${schemaName} = ${recordExpr} as any as S.Schema<${schemaName}>;`) - : annotatePureExportConst(`export const ${schemaName} = ${recordExpr};`); + ? annotatePureExportConst( + `export const ${schemaName} = ${recordExpr} as any as S.Schema<${schemaName}>;`, + ) + : annotatePureExportConst( + `export const ${schemaName} = ${recordExpr};`, + ); return `${typeAlias}\n${schemaDef}`; }), ), @@ -2348,13 +2487,22 @@ const addError = Effect.fn(function* (error: { name: string; shapeId: string; tag?: string; // Original AWS error code (may contain dots) + // When set, this error is synthesized from an existing wire error + a + // message predicate (see spec-schema.ts SyntheticError). It inherits the + // base error's fields and carries a T.SyntheticError annotation that the + // response parser matches BEFORE the plain wire-code lookup. + synthetic?: SyntheticError; }) { const sdkFile = yield* SdkFile; const existingErrors = yield* Ref.get(sdkFile.errors); if (!existingErrors.some((e) => e.name === error.name)) { - // Get the inline fields from errorFields map (from Smithy model) + // Get the inline fields from errorFields map (from Smithy model). + // Synthetic errors reuse the fields of the wire error they derive from. const errorFieldsMap = yield* Ref.get(sdkFile.errorFields); - let fields = errorFieldsMap.get(error.name) ?? "{}"; + let fields = + errorFieldsMap.get( + error.synthetic ? sanitizeErrorName(error.synthetic.from) : error.name, + ) ?? "{}"; // Check for error member patches from spec file const errorPatches = sdkFile.serviceSpec.errors?.[error.name]; @@ -2409,6 +2557,13 @@ const addError = Effect.fn(function* (error: { ); } + // Add httpError annotation if present (smithy.api#httpError). The + // response parser uses it as a status-based fallback for services whose + // error responses carry no error code (e.g. IoT Managed Integrations). + if (errorTraits?.httpError) { + annotations.push(`T.HttpError(${errorTraits.httpError})`); + } + // Add retryable annotation if present (smithy.api#retryable) if (errorTraits?.retryable) { if (errorTraits.retryable.throttling) { @@ -2418,6 +2573,18 @@ const addError = Effect.fn(function* (error: { } } + // Synthetic errors carry the matcher (base wire code + message + // predicate) as an annotation the response parser evaluates BEFORE the + // plain wire-code lookup. + if (error.synthetic) { + annotations.push( + `T.SyntheticError(${JSON.stringify({ + from: error.synthetic.from, + message: error.synthetic.message, + })})`, + ); + } + // Map HTTP status codes to categories if (errorTraits?.httpError) { const code = errorTraits.httpError; @@ -2627,7 +2794,9 @@ const generateClient = Effect.fn(function* ( const outerAnnotation = `.annotate({ identifier: "${className}" })`; const interfaceDef = `export interface ${className} {}`; - const schemaDef = annotatePureExportConst(`export const ${className} = S.suspend(() => S.Struct({})${innerPipe})${outerAnnotation} as any as S.Schema<${className}>;`); + const schemaDef = annotatePureExportConst( + `export const ${className} = S.suspend(() => S.Struct({})${innerPipe})${outerAnnotation} as any as S.Schema<${className}>;`, + ); const definition = `${interfaceDef}\n${schemaDef}`; yield* Ref.update(sdkFile.schemas, (arr) => [ ...arr, @@ -2635,9 +2804,68 @@ const generateClient = Effect.fn(function* ( ]); return className; } - return yield* convertShapeToSchema(operationShape.input.target).pipe( - Effect.flatMap(Deferred.await), + const baseName = yield* convertShapeToSchema( + operationShape.input.target, + ).pipe(Effect.flatMap(Deferred.await)); + + // Input shape shared by multiple operations with CONFLICTING + // operation-level traits: emit a derived per-operation request + // schema whose direct annotations (getAnnotationUnwrap checks the + // outermost AST node first) override the traits baked into the + // shared base schema. + const overrideTraits = + sdkFile.operationInputTraitOverrides.get(opName); + if (overrideTraits === undefined) return baseName; + let derivedName = `${opName}Request`; + if (derivedName === baseName) return baseName; + if (sdkFile.allSchemaNames.has(derivedName)) { + derivedName = `${derivedName}_`; + } + + const overrideAnnotations: string[] = [ + `T.Http({ method: "${overrideTraits.method}", uri: "${overrideTraits.uri}" })`, + ]; + if (overrideTraits.httpChecksum) { + const checksumParts: string[] = []; + if (overrideTraits.httpChecksum.requestAlgorithmMember) { + checksumParts.push( + `requestAlgorithmMember: "${overrideTraits.httpChecksum.requestAlgorithmMember}"`, + ); + } + if (overrideTraits.httpChecksum.requestChecksumRequired) { + checksumParts.push(`requestChecksumRequired: true`); + } + if (overrideTraits.httpChecksum.responseAlgorithms) { + checksumParts.push( + `responseAlgorithms: [${overrideTraits.httpChecksum.responseAlgorithms.map((a) => `"${a}"`).join(", ")}]`, + ); + } + overrideAnnotations.push( + `T.AwsProtocolsHttpChecksum({ ${checksumParts.join(", ")} })`, + ); + } + if (overrideTraits.staticContextParams) { + overrideAnnotations.push( + `T.StaticContextParams(${JSON.stringify(overrideTraits.staticContextParams)})`, + ); + } + const overridePipe = + overrideAnnotations.length === 1 + ? overrideAnnotations[0] + : `T.all(${overrideAnnotations.join(", ")})`; + const interfaceDef = `export interface ${derivedName} extends ${baseName} {}`; + const schemaDef = annotatePureExportConst( + `export const ${derivedName} = ${baseName}.pipe(${overridePipe}).annotate({ identifier: "${derivedName}" }) as any as S.Schema<${derivedName}>;`, ); + yield* Ref.update(sdkFile.schemas, (arr) => [ + ...arr, + { + name: derivedName, + definition: `${interfaceDef}\n${schemaDef}`, + deps: [baseName], + }, + ]); + return derivedName; }); const output = yield* Effect.gen(function* () { @@ -2661,7 +2889,9 @@ const generateClient = Effect.fn(function* ( const outerAnnotation = `.annotate({ identifier: "${className}" })`; const interfaceDef = `export interface ${className} {}`; - const schemaDef = annotatePureExportConst(`export const ${className} = S.suspend(() => S.Struct({})${innerPipe})${outerAnnotation} as any as S.Schema<${className}>;`); + const schemaDef = annotatePureExportConst( + `export const ${className} = S.suspend(() => S.Struct({})${innerPipe})${outerAnnotation} as any as S.Schema<${className}>;`, + ); const definition = `${interfaceDef}\n${schemaDef}`; yield* Ref.update(sdkFile.schemas, (arr) => [ ...arr, @@ -2676,9 +2906,12 @@ const generateClient = Effect.fn(function* ( // Get patched errors from spec file for this operation // Use lowercase operation name to match spec file format - const patchedErrors = - sdkFile.serviceSpec.operations?.[formatName(operationShapeName, true)] - ?.errors ?? []; + const operationPatch = + sdkFile.serviceSpec.operations?.[ + formatName(operationShapeName, true) + ]; + const patchedErrors = operationPatch?.errors ?? []; + const patchedSyntheticErrors = operationPatch?.syntheticErrors ?? []; // Collect error names for both the runtime array and the type annotation const errorNames = yield* Effect.gen(function* () { @@ -2714,8 +2947,24 @@ const generateClient = Effect.fn(function* ( }), ); + // Process synthetic errors: NEW tags carved out of an existing + // wire error by message predicate (see spec-schema.ts + // SyntheticError). Processed after model errors so the base + // error's fields are available in errorFields. + const syntheticErrors = yield* Effect.forEach( + patchedSyntheticErrors, + (synthetic) => + addError({ + name: sanitizeErrorName(synthetic.name), + shapeId: `synthetic#${synthetic.name}`, + synthetic, + }), + ); + // Combine and deduplicate - return [...new Set([...modelErrors, ...patchErrors])]; + return [ + ...new Set([...modelErrors, ...patchErrors, ...syntheticErrors]), + ]; }); // Build the errors array string for runtime @@ -2765,15 +3014,34 @@ const generateClient = Effect.fn(function* ( } : undefined; + // Extract the endpoint trait's hostPrefix (smithy.api#endpoint). + // Operations like SFN's StartSyncExecution must target a prefixed + // host (sync-states.{region}); the runtime applies this prefix to + // the resolved endpoint. + const endpointTrait = operationShape.traits?.["smithy.api#endpoint"] as + | { hostPrefix?: string } + | undefined; + const endpointHostPrefix = endpointTrait?.hostPrefix; + // Build operation object - include pagination metadata if present // Use 'as const' on pagination to preserve literal types for type inference // Always emit the Smithy operation name: protocols use it as the wire // Action / X-Amz-Target instead of guessing it from the input shape // identifier (which fails for e.g. AutoScaling's `...NamesType` shapes). const exportedName = formatName(operationShapeName, true); - const metaObject = paginatedTrait - ? `{ input: ${input}, output: ${output}, errors: ${operationErrors}, operationName: ${JSON.stringify(opName)}, pagination: ${JSON.stringify(paginatedTrait)} as const }` - : `{ input: ${input}, output: ${output}, errors: ${operationErrors}, operationName: ${JSON.stringify(opName)} }`; + const metaParts = [ + `input: ${input}`, + `output: ${output}`, + `errors: ${operationErrors}`, + `operationName: ${JSON.stringify(opName)}`, + ...(endpointHostPrefix !== undefined + ? [`endpointHostPrefix: ${JSON.stringify(endpointHostPrefix)}`] + : []), + ...(paginatedTrait + ? [`pagination: ${JSON.stringify(paginatedTrait)} as const`] + : []), + ]; + const metaObject = `{ ${metaParts.join(", ")} }`; // Build the error type alias for the function signature // Errors include operation-specific errors plus common API errors @@ -2940,6 +3208,32 @@ const generateClient = Effect.fn(function* ( }, ); + // Orphan detection: every operation key in patches/{sdkId}.json must + // correspond to a generated operation. A typo'd key would otherwise + // silently no-op — the exact failure mode patches exist to prevent. + const generatedOperationNames = new Set( + [...new Set(allOperationIds)].map((id) => formatName(id, true)), + ); + const orphanedPatchOperations = Object.keys( + sdkFile.serviceSpec.operations ?? {}, + ).filter((name) => !generatedOperationNames.has(name)); + if (orphanedPatchOperations.length > 0) { + return yield* Effect.fail( + new OrphanedPatchOperations({ + sdkId: sdkFile.serviceTraits.sdkId, + operations: orphanedPatchOperations, + message: `patches/${sdkFile.serviceTraits.sdkId + .toLowerCase() + .replaceAll( + " ", + "-", + )}.json patches unknown operation(s): ${orphanedPatchOperations.join( + ", ", + )}`, + }), + ); + } + // Get schemas and sort them topologically // Cycles were already computed before generation, so just sort const schemas = yield* Ref.get(sdkFile.schemas); @@ -3152,7 +3446,8 @@ const generateClient = Effect.fn(function* ( const errorShapeIds = collectErrorShapeIds(model); // Pre-collect operation input traits and output traits - const operationInputTraits = collectOperationInputTraits(model); + const { operationInputTraits, operationInputTraitOverrides } = + collectOperationInputTraits(model); const operationOutputTraits = collectOperationOutputTraits(model); const inputEventStreamShapeIds = collectInputEventStreamShapeIds(model); const sensitiveShapeIds = collectSensitiveShapeIds(model); @@ -3201,6 +3496,69 @@ const generateClient = Effect.fn(function* ( // Load spec patches for this service const serviceSpec = loadServiceSpecPatch(serviceTraits.sdkId); + // Apply error httpError-status patches — some services return REST errors + // with no error code (no X-Amzn-Errortype header, no __type/code body + // field) AND no smithy.api#httpError trait on the declared error shape, so + // the response parser's status-based fallback has nothing to match (e.g. + // MWAA's InvokeRestApi webserver proxy answers a bare 404 + // `{"message":"Environment not found"}` for ResourceNotFoundException). + // The patch declares the wire status, emitted as a T.HttpError(n) + // annotation on the error class. + if (serviceSpec.errorHttpStatus) { + for (const [errorName, status] of Object.entries( + serviceSpec.errorHttpStatus, + )) { + const entry = [...errorShapeIds.entries()].find( + ([shapeId]) => shapeId.split("#")[1] === errorName, + ); + if (entry === undefined) { + return yield* Effect.fail( + new UnableToTransformShapeToSchema({ + message: `patches/${serviceTraits.sdkId + .toLowerCase() + .replaceAll( + " ", + "-", + )}.json errorHttpStatus patches error "${errorName}" which is not declared by any operation in the model`, + }), + ); + } + entry[1].httpError ??= status; + } + } + + // Apply union member patches to the loaded model — the live API can return + // union variants the published Smithy model is missing (e.g. DataZone's + // ProvisioningProperties `{ "manual": {} }` for CustomAwsService + // blueprints). Members are added before any codegen consumes the shape. + if (serviceSpec.unions) { + for (const [unionName, override] of Object.entries(serviceSpec.unions)) { + const shapeEntry = Object.entries(model.shapes).find( + ([id, shape]) => + id.split("#")[1] === unionName && shape.type === "union", + ); + if (shapeEntry === undefined) { + return yield* Effect.fail( + new UnableToTransformShapeToSchema({ + message: `patches/${serviceTraits.sdkId + .toLowerCase() + .replaceAll( + " ", + "-", + )}.json patches union "${unionName}" which does not exist in the model`, + }), + ); + } + const members = shapeEntry[1].members as Record< + string, + { target: string } + >; + for (const [memberName, target] of Object.entries(override.add)) { + members[memberName] ??= { target }; + } + } + } + return yield* client.pipe( Effect.provideService(SdkFile, { schemas: yield* Ref.make< @@ -3226,6 +3584,7 @@ const generateClient = Effect.fn(function* ( usesMiddleware: yield* Ref.make(false), serviceXmlNamespace, operationInputTraits, + operationInputTraitOverrides, operationOutputTraits, serviceTraits, endpointRuleSet, @@ -3267,14 +3626,24 @@ BunRuntime.runMain( "partition", "partitions.json", ); - const partitionsExists = yield* fs.exists(partitionsSrc).pipe(Effect.catch(() => Effect.succeed(false))); + const partitionsExists = yield* fs + .exists(partitionsSrc) + .pipe(Effect.catch(() => Effect.succeed(false))); if (partitionsExists) { - yield* fs.makeDirectory(path.join("src", "rules-engine"), { recursive: true }); - const partitionsDest = path.join("src", "rules-engine", "partitions.json"); + yield* fs.makeDirectory(path.join("src", "rules-engine"), { + recursive: true, + }); + const partitionsDest = path.join( + "src", + "rules-engine", + "partitions.json", + ); yield* fs.copyFile(partitionsSrc, partitionsDest); yield* Console.log("✅ partitions.json"); } else { - yield* Console.log("⚠️ partitions.json not found (smithy submodule not initialized)"); + yield* Console.log( + "⚠️ partitions.json not found (smithy submodule not initialized)", + ); } const rootModelsPath = path.join(AWS_MODELS_PATH, "models"); diff --git a/packages/aws/scripts/spec-schema.ts b/packages/aws/scripts/spec-schema.ts index 1b3672fff7..924c0b85aa 100644 --- a/packages/aws/scripts/spec-schema.ts +++ b/packages/aws/scripts/spec-schema.ts @@ -41,7 +41,7 @@ export const CategorySchema = S.Literals([ AbortedError, NotFoundError, AlreadyExistsError, - DependencyViolationError + DependencyViolationError, ]); export type CategorySchema = typeof CategorySchema.Type; @@ -60,6 +60,48 @@ export const ErrorAlias = S.Struct({ }); export type ErrorAlias = typeof ErrorAlias.Type; +/** + * Message predicate for synthetic error matching. + * A plain string is an exact match; the object form supports substring + * (`includes`) and regular-expression (`matches`) predicates. An object + * must specify at least one of `includes`/`matches` — an empty object + * matches nothing. + */ +export const MessageMatcher = S.Union([ + S.String, + S.Struct({ + includes: S.optional(S.String), + matches: S.optional(S.String), + }), +]); +export type MessageMatcher = typeof MessageMatcher.Type; + +/** + * Synthetic error - carves a NEW typed error class out of an existing wire + * error using a message predicate. Some AWS services overload a single wire + * error (e.g. X-Ray's InvalidRequestException) for semantically distinct + * failures that are only distinguishable by message text. A synthetic error + * gives each failure mode its own tag in the operation's typed error union; + * the runtime checks synthetic matchers BEFORE the base wire-code lookup so + * the tag specializes the base error. + */ +export const SyntheticError = S.Struct({ + /** + * The new error tag to synthesize (e.g., "SamplingRuleNotFound"). + */ + name: S.String, + /** + * The wire error code this error derives from (e.g., "InvalidRequestException"). + * Compared against the wire code with Exception/Error suffix normalization. + */ + from: S.String, + /** + * The message predicate that selects this error over the base wire error. + */ + message: MessageMatcher, +}); +export type SyntheticError = typeof SyntheticError.Type; + /** * Patches for a single operation */ @@ -74,6 +116,12 @@ export const OperationPatch = S.Struct({ * Useful for deduplicating errors like "Error" vs "ErrorException". */ aliases: S.optional(S.Array(ErrorAlias)), + /** + * Synthetic errors - new error classes carved out of an existing wire error + * by message predicate. Checked before the base error at runtime so the + * synthetic tag specializes the overloaded wire error. + */ + syntheticErrors: S.optional(S.Array(SyntheticError)), }); export type OperationPatch = typeof OperationPatch.Type; @@ -87,6 +135,13 @@ export const MemberOverride = S.Struct({ * If specified, overrides the Smithy model's required trait. */ optional: S.optional(S.Boolean), + /** + * Marks a string member as sensitive even though the Smithy model lacks + * the `@sensitive` trait (e.g. API Gateway's `ApiKey.value`). The member + * is generated as `SensitiveString`: responses decode to + * `Redacted` and requests accept either a raw or Redacted value. + */ + sensitive: S.optional(S.Boolean), }); export type MemberOverride = typeof MemberOverride.Type; @@ -119,6 +174,24 @@ export const StructureOverride = S.Struct({ }); export type StructureOverride = typeof StructureOverride.Type; +/** + * Union override - adds members to a Smithy union shape. + * Use this when the live API returns a union variant that the published + * Smithy model is missing (e.g. DataZone's ProvisioningProperties returns + * `{ "manual": {} }` for CustomAwsService blueprints, but the model only + * declares `cloudFormation`). The patch is applied to the loaded model + * before code generation. + */ +export const UnionOverride = S.Struct({ + /** + * Map of member names to their target shape ids (e.g. "smithy.api#Unit" + * for an empty-struct variant, or a fully-qualified shape id already + * present in the model). Members that already exist are left untouched. + */ + add: S.Record(S.String, S.String), +}); +export type UnionOverride = typeof UnionOverride.Type; + /** * Error member patch - adds a member to an error schema. * Use this for errors not fully documented in Smithy (e.g., PermanentRedirect). @@ -159,6 +232,12 @@ export const ServiceSpec = S.Struct({ * For example, when AWS returns undefined for a field marked as required. */ structures: S.optional(S.Record(S.String, StructureOverride)), + /** + * Map of union shape names to their member additions. + * Use this when the live API returns union variants missing from the + * published Smithy model. Applied to the loaded model before generation. + */ + unions: S.optional(S.Record(S.String, UnionOverride)), /** * Map of enum names to their value overrides. * Use this to fix enums where AWS returns values not in the Smithy model, @@ -178,6 +257,17 @@ export const ServiceSpec = S.Struct({ * Categories are applied globally to the error class, not per-operation. */ errorCategories: S.optional(S.Record(S.String, S.Array(CategorySchema))), + /** + * Map of error names to the HTTP status code they arrive with on the wire. + * Use this when a service returns REST errors that carry NO error code + * (no X-Amzn-Errortype header, no __type/code body field) AND the Smithy + * model lacks the `smithy.api#httpError` trait on the error shape — the + * response parser's status-based fallback then has nothing to match (e.g. + * MWAA's InvokeRestApi webserver proxy returns a bare 404 + * `{"message":"Environment not found"}` for ResourceNotFoundException). + * The status is emitted as a `T.HttpError(n)` annotation on the error class. + */ + errorHttpStatus: S.optional(S.Record(S.String, S.Number)), }); export type ServiceSpec = typeof ServiceSpec.Type; diff --git a/packages/aws/src/client/api.ts b/packages/aws/src/client/api.ts index 3e044abe22..d268fb0076 100644 --- a/packages/aws/src/client/api.ts +++ b/packages/aws/src/client/api.ts @@ -13,7 +13,12 @@ import { SingleShotGen } from "effect/Utils"; import { makeDefault, Retry } from "../retry.ts"; import { makeEndpointResolver } from "../rules-engine/endpoint-resolver.ts"; -import { getAwsApiService, getAwsAuthSigv4, getPath } from "../traits.ts"; +import { + getAwsApiService, + getAwsAuthSigv2, + getAwsAuthSigv4, + getPath, +} from "../traits.ts"; import { getIdentifier } from "../util/ast.ts"; import type { Operation } from "./operation.ts"; import { makeRequestBuilder } from "./request-builder.ts"; @@ -66,6 +71,10 @@ export const make = >( // Get SigV4 service name from annotations const sigv4 = getAwsAuthSigv4(inputAst); + // Legacy SigV2 (SimpleDB only) — when present it takes precedence and + // the request is signed via body parameters instead of headers. + const sigv2 = getAwsAuthSigv2(inputAst); + // Create rules resolver (if rule set available) const resolveEndpoint = makeEndpointResolver(op); @@ -73,6 +82,7 @@ export const make = >( buildRequest, parseResponse, sigv4, + sigv2, resolveEndpoint, serviceSdkId, operationName, @@ -84,6 +94,7 @@ export const make = >( buildRequest, parseResponse, sigv4, + sigv2, resolveEndpoint: rulesResolver, serviceSdkId: _serviceSdkId, operationName: _operationName, @@ -143,6 +154,28 @@ export const make = >( endpoint = `https://${serviceName}.${region}.amazonaws.com`; } + // Apply the Smithy `smithy.api#endpoint` hostPrefix (e.g. "sync-" for + // Step Functions StartSyncExecution -> sync-states.{region}). Skipped for + // custom endpoints, matching official AWS SDK behavior. Labels of the + // form {memberName} are substituted from the operation input. + if (op.endpointHostPrefix !== undefined && !customEndpoint) { + const resolvedPrefix = op.endpointHostPrefix.replace( + /\{(\w+)\}/g, + (_, member: string) => + String((payload as Record)?.[member] ?? ""), + ); + // The endpoint rules engine may already have baked the same label into + // the host (e.g. S3 Control resolves `{AccountId}.s3-control.{region}` + // from the AccountId context param, and the operations ALSO carry the + // `{AccountId}.` hostPrefix trait). Only prepend when the resolved + // endpoint does not already start with the prefix, else the label is + // applied twice and TLS fails on the doubled host. + const hostStart = endpoint.indexOf("://") + 3; + if (!endpoint.startsWith(resolvedPrefix, hostStart)) { + endpoint = endpoint.replace("://", `://${resolvedPrefix}`); + } + } + // Build full URL with query string const queryString = Object.entries(resolvedRequest.query) .filter(([_, v]) => v !== undefined) @@ -165,6 +198,98 @@ export const make = >( ? `${resolvedRequest.path}?${queryString}` : resolvedRequest.path; + // Legacy Signature Version 2 (SimpleDB is the sole remaining SigV2-only + // service). The signature is an HMAC-SHA256 over the sorted, + // RFC3986-encoded form parameters and travels IN the form-encoded body — + // there is no Authorization header. The classic endpoint rejects SigV4 + // with `AuthFailure: access credentials are missing`. + if (sigv2) { + const rfc3986 = (s: string) => + encodeURIComponent(s).replace( + /[!'()*]/g, + (c) => "%" + c.charCodeAt(0).toString(16).toUpperCase(), + ); + const pairs: Array<[string, string]> = []; + const bodyStr = + typeof resolvedRequest.body === "string" ? resolvedRequest.body : ""; + for (const part of bodyStr.split("&")) { + if (!part) continue; + const eq = part.indexOf("="); + pairs.push([ + decodeURIComponent(eq === -1 ? part : part.slice(0, eq)), + eq === -1 ? "" : decodeURIComponent(part.slice(eq + 1)), + ]); + } + pairs.push( + ["AWSAccessKeyId", Redacted.value(credentials.accessKeyId)], + ["SignatureVersion", "2"], + ["SignatureMethod", "HmacSHA256"], + ["Timestamp", new Date().toISOString().replace(/\.\d{3}/, "")], + ); + if (credentials.sessionToken) { + pairs.push(["SecurityToken", Redacted.value(credentials.sessionToken)]); + } + const canonical = pairs + .map(([k, v]) => [rfc3986(k), rfc3986(v)] as const) + .sort(([a, av], [b, bv]) => + a < b ? -1 : a > b ? 1 : av < bv ? -1 : av > bv ? 1 : 0, + ) + .map(([k, v]) => `${k}=${v}`) + .join("&"); + const requestUrl = new URL(`${endpoint}${fullPath}`); + const stringToSign = [ + resolvedRequest.method, + requestUrl.host, + requestUrl.pathname || "/", + canonical, + ].join("\n"); + const signatureBytes = yield* Effect.promise(async () => { + const key = await crypto.subtle.importKey( + "raw", + new TextEncoder().encode(Redacted.value(credentials.secretAccessKey)), + { name: "HMAC", hash: "SHA-256" }, + false, + ["sign"], + ); + return crypto.subtle.sign( + "HMAC", + key, + new TextEncoder().encode(stringToSign), + ); + }); + const signature = Buffer.from(signatureBytes).toString("base64"); + const signedBody = `${canonical}&Signature=${rfc3986(signature)}`; + const contentTypeV2 = + resolvedRequest.headers["Content-Type"] ?? + resolvedRequest.headers["content-type"] ?? + "application/x-www-form-urlencoded"; + + const httpRequestV2 = pipe( + HttpClientRequest.make( + resolvedRequest.method as "GET" | "POST" | "PUT" | "DELETE", + )(requestUrl.toString()), + HttpClientRequest.setHeaders(resolvedRequest.headers), + HttpClientRequest.setBody(HttpBody.text(signedBody, contentTypeV2)), + ); + + const clientV2 = yield* HttpClient.HttpClient; + const rawResponseV2 = yield* clientV2.execute(httpRequestV2); + const responseHeadersV2 = rawResponseV2.headers as Record; + const isEmptyBodyV2 = + responseHeadersV2["content-length"] === "0" || + rawResponseV2.status === 204; + const responseBodyV2 = isEmptyBodyV2 + ? new ReadableStream({ start: (c) => c.close() }) + : yield* Stream.toReadableStreamEffect(rawResponseV2.stream); + + return yield* parseResponse({ + status: rawResponseV2.status, + statusText: "OK", + headers: responseHeadersV2, + body: responseBodyV2, + }); + } + // For streaming bodies (ReadableStream), we can't compute a hash // so we use UNSIGNED-PAYLOAD and don't pass the body to the signer const isStreamingBody = resolvedRequest.body instanceof ReadableStream; @@ -179,16 +304,92 @@ export const make = >( ); // Check if there's a body to sign const hasBody = resolvedRequest.body !== undefined; - // Use unsigned payload for streaming bodies OR when service provides checksum with body + // Operations with a streaming input payload (smithy `@streaming` blob) + // are signed UNSIGNED-PAYLOAD even when the caller passed a buffered + // body — matching botocore's `has_streaming_input` behavior. Services + // like Lex Runtime V2 (RecognizeUtterance) reject payload-hash + // signatures on these routes. Glacier is the exception: it REQUIRES a + // real x-amz-content-sha256 (computed below), so it keeps the hashed + // path for buffered bodies. SageMaker Runtime is another exception: + // its event-stream route (InvokeEndpointWithResponseStream) rejects + // UNSIGNED-PAYLOAD with InvalidSignatureException — the service always + // reconstructs the canonical request from the actual body hash — so + // buffered bodies stay on the hashed path (plain InvokeEndpoint accepts + // payload-hash signatures too). AppConfig behaves the same way: its + // CreateHostedConfigurationVersion route rejects UNSIGNED-PAYLOAD with + // SignatureDoesNotMatch (the service's expected canonical request hashes + // the actual body), so it also stays on the hashed path. API Gateway's + // management API likewise models PostToConnection.Data as streaming, but + // rejects UNSIGNED-PAYLOAD and reconstructs the signature with the frame's + // actual SHA-256. Bedrock Runtime's InvokeModel operations do the same for + // their model-native request bodies. IoT Data Plane's shadow and publish + // operations also reject UNSIGNED-PAYLOAD for buffered payloads (as a + // generic Forbidden response), so those bodies must be hashed as well. + // IoT Wireless likewise hashes buffered GeoJSON position payloads. + // Lambda Invoke models Payload as streaming, but buffered invocations + // must hash the actual body or Lambda rejects the signature. + const hasStreamingInput = + resolvedRequest.hasStreamingInput === true && + _serviceSdkId !== "Glacier" && + _serviceSdkId !== "SageMaker Runtime" && + _serviceSdkId !== "AppConfig" && + _serviceSdkId !== "ApiGatewayManagementApi" && + _serviceSdkId !== "Bedrock Runtime" && + _serviceSdkId !== "IoT Data Plane" && + _serviceSdkId !== "IoT Wireless" && + _serviceSdkId !== "Lambda"; + // Use unsigned payload for streaming bodies OR streaming-input + // operations OR when service provides checksum with body const useUnsignedPayload = - (isStreamingBody || (hasServiceChecksum && hasBody)) && !hasContentSha256; - const signingHeaders = useUnsignedPayload + (isStreamingBody || + hasStreamingInput || + (hasServiceChecksum && hasBody)) && + !hasContentSha256; + let signingHeaders = useUnsignedPayload ? { ...resolvedRequest.headers, "X-Amz-Content-Sha256": "UNSIGNED-PAYLOAD", } : resolvedRequest.headers; + // S3 Control rejects UNSIGNED-PAYLOAD on several routes (access point + // operations fail with `InvalidRequest: "Request body cannot be + // unsigned"`). aws4fetch injects UNSIGNED-PAYLOAD for any service signing + // as "s3" when the header is absent, so pre-compute the real payload + // SHA-256 here (matching the official SDK's applyChecksum behavior). + // Glacier likewise REQUIRES the x-amz-content-sha256 header on + // payload-bearing requests (UploadArchive / UploadMultipartPart) — the + // service reconstructs the canonical request from that header, so + // omitting it fails with InvalidSignatureException (the official SDK's + // addChecksumHeaders middleware always sets it). + if ( + (_serviceSdkId === "S3 Control" || _serviceSdkId === "Glacier") && + !useUnsignedPayload && + !hasContentSha256 && + !isStreamingBody + ) { + const bodyBytes = + resolvedRequest.body === undefined + ? new Uint8Array(0) + : resolvedRequest.body instanceof Uint8Array + ? resolvedRequest.body + : new TextEncoder().encode(String(resolvedRequest.body)); + const digest = yield* Effect.promise(() => + crypto.subtle.digest( + "SHA-256", + // copy into a fresh ArrayBuffer-backed view for the DOM typings + bodyBytes.slice(), + ), + ); + const payloadHash = Array.from(new Uint8Array(digest)) + .map((byte) => byte.toString(16).padStart(2, "0")) + .join(""); + signingHeaders = { + ...signingHeaders, + "X-Amz-Content-Sha256": payloadHash, + }; + } + const signer = new AwsV4Signer({ method: resolvedRequest.method, url: `${endpoint}${fullPath}`, @@ -338,6 +539,21 @@ export const make = >( return Object.assign(outerFn, Proto); }; +/** + * Whether a continuation token returned by a paginated operation means + * "no more pages". + * + * AWS marks the terminal page by omitting the output token, returning it + * as `null`, or — for several services (e.g. SSM, CloudWatch Logs) — as an + * empty string. Treating `""` as a live token re-requests the first page + * with `NextToken: ""` forever (or fails with a ValidationException). + * This matches the official aws-sdk-js-v3 paginators, which stop on any + * falsy token (`hasNext = !!token`); object tokens like DynamoDB's + * `LastEvaluatedKey` are always truthy and unaffected. + */ +export const isTerminalPageToken = (token: unknown): boolean => + token === undefined || token === null || token === ""; + export const makePaginated = >( initOperation: () => Op, ): any => { @@ -371,7 +587,7 @@ export const makePaginated = >( // Return the full page and next state const nextState: State = { token: nextToken, - done: nextToken === undefined || nextToken === null, + done: isTerminalPageToken(nextToken), }; return [response, nextState] as const; }); diff --git a/packages/aws/src/client/operation.ts b/packages/aws/src/client/operation.ts index de87955813..be808c2f33 100644 --- a/packages/aws/src/client/operation.ts +++ b/packages/aws/src/client/operation.ts @@ -26,6 +26,14 @@ export interface Operation< * `AutoScalingGroupNamesType`). */ operationName?: string; + /** + * The Smithy `smithy.api#endpoint` trait's `hostPrefix` (e.g. `"sync-"` on + * Step Functions' `StartSyncExecution`, which must target + * `sync-states.{region}` instead of `states.{region}`). Applied to the + * resolved endpoint's host unless a custom `Endpoint` service is provided. + * May contain `{memberName}` labels substituted from the operation input. + */ + endpointHostPrefix?: string; /** Pagination metadata for paginated operations */ pagination?: PaginatedTrait; } diff --git a/packages/aws/src/client/request.ts b/packages/aws/src/client/request.ts index 9ad7c761d5..c6d9ce51f5 100644 --- a/packages/aws/src/client/request.ts +++ b/packages/aws/src/client/request.ts @@ -13,4 +13,13 @@ export interface Request { headers: Record; /** Request body (undefined for GET/HEAD/DELETE without body) */ body?: string | Uint8Array | ReadableStream; + /** + * True when the operation's input declares a streaming payload member + * (smithy `@streaming` blob). Streaming-input operations must be signed + * with `x-amz-content-sha256: UNSIGNED-PAYLOAD` (matching botocore's + * `has_streaming_input` behavior) — services like Lex Runtime V2 reject a + * payload-hash signature on these routes even when the payload is a + * buffered `Uint8Array`. + */ + hasStreamingInput?: boolean; } diff --git a/packages/aws/src/client/response-parser.ts b/packages/aws/src/client/response-parser.ts index dcfbf6fe38..49acfc5c11 100644 --- a/packages/aws/src/client/response-parser.ts +++ b/packages/aws/src/client/response-parser.ts @@ -13,9 +13,21 @@ import * as Effect from "effect/Effect"; import * as Schema from "effect/Schema"; import * as SchemaIssue from "effect/SchemaIssue"; -import { COMMON_ERRORS, UnknownAwsError } from "../errors.ts"; -import { getAwsQueryError, getHttpHeader, getProtocol } from "../traits.ts"; -import { getIdentifier, getPropertySignatures } from "../util/ast.ts"; +import { COMMON_ERRORS, ParseError, UnknownAwsError } from "../errors.ts"; +import { + getAwsQueryError, + getHttpError, + getHttpHeader, + getProtocol, + getSyntheticError, + type SyntheticErrorTrait, +} from "../traits.ts"; +import { + getIdentifier, + getPropertySignatures, + isBooleanAST, + isNumberAST, +} from "../util/ast.ts"; import type { Operation } from "./operation.ts"; import type { Protocol, ProtocolHandler } from "./protocol.ts"; import type { Response } from "./response.ts"; @@ -36,6 +48,38 @@ export type ResponseParser = ( response: Response, ) => Effect.Effect; +/** + * Strip the conventional Exception/Error suffix from a wire error code so + * synthetic `from` codes match both the full shape name and the short form. + */ +const stripErrorSuffix = (code: string): string => { + for (const suffix of ["Exception", "Error"]) { + if (code.endsWith(suffix)) return code.slice(0, -suffix.length); + } + return code; +}; + +const wireCodeMatches = (from: string, errorCode: string): boolean => + from === errorCode || stripErrorSuffix(from) === stripErrorSuffix(errorCode); + +/** + * Evaluate a synthetic error's message predicate. A plain string is an exact + * match; the object form supports substring (`includes`) and regex + * (`matches`) predicates. An empty object predicate would match every error + * — reject it. + */ +const matchesMessage = ( + matcher: SyntheticErrorTrait["message"], + message: string, +): boolean => { + if (typeof matcher === "string") return matcher === message; + const { includes, matches } = matcher; + if (includes === undefined && matches === undefined) return false; + if (includes !== undefined && !message.includes(includes)) return false; + if (matches !== undefined && !new RegExp(matches).test(message)) return false; + return true; +}; + /** * Create a response parser for a given operation. * @@ -99,11 +143,26 @@ export const makeResponseParser = ( // `Message` field) takes precedence over the field-less common error of the // same name. Otherwise the common error would clobber the specific one in // the map and the decoded error would drop its message/data. + // Synthetic errors (from spec patches) carve a new tag out of an existing + // wire error using a message predicate. They are matched BEFORE the plain + // wire-code lookup so the synthetic tag specializes the base error, and + // are intentionally NOT registered by wire code (the wire never returns + // the synthetic tag). + const syntheticErrors: Array<{ + schema: Schema.Top; + trait: SyntheticErrorTrait; + }> = []; + for (const err of COMMON_ERRORS) { registerError(err); } for (const err of operation.errors ?? []) { - registerError(err); + const synthetic = getSyntheticError(err.ast); + if (synthetic) { + syntheticErrors.push({ schema: err, trait: synthetic }); + } else { + registerError(err); + } } // Return a function that parses responses @@ -144,7 +203,43 @@ export const makeResponseParser = ( ).Message; } - const errorSchema = errorSchemas.get(errorCode); + // Synthetic errors specialize the base wire error. An exact-message + // matcher outranks a predicate matcher; ties resolve to declaration + // order (first registered wins). + const errorMessage = + data && typeof (data as Record).message === "string" + ? ((data as Record).message as string) + : ""; + let errorSchema: Schema.Top | undefined; + let bestScore = 0; + for (const { schema, trait } of syntheticErrors) { + if (!wireCodeMatches(trait.from, errorCode)) continue; + if (!matchesMessage(trait.message, errorMessage)) continue; + const score = typeof trait.message === "string" ? 2 : 1; + if (score > bestScore) { + bestScore = score; + errorSchema = schema; + } + } + errorSchema ??= errorSchemas.get(errorCode); + + // Status-based fallback: rest-json returns an empty error code when the + // response carries none (no X-Amzn-Errortype header, no __type/code body + // field — e.g. IoT Managed Integrations). Match the operation's declared + // errors by their smithy.api#httpError status, but only when exactly one + // declared error carries the response status. + if (errorSchema === undefined && errorCode === "") { + const statusMatches = (operation.errors ?? []).filter( + (err) => getHttpError(err.ast) === response.status, + ); + if (statusMatches.length === 1) { + errorSchema = statusMatches[0]; + } else { + return yield* new ParseError({ + message: `No error code found in response and ${statusMatches.length} declared errors match status ${response.status}. Data: ${JSON.stringify(data)}`, + }); + } + } if (errorSchema) { // Extract headers for error members with HttpHeader traits @@ -155,7 +250,35 @@ export const makeResponseParser = ( if (headerName) { const headerValue = response.headers[headerName.toLowerCase()]; if (headerValue !== undefined) { - (data as Record)[String(prop.name)] = headerValue; + // Coerce string header values to the member's declared type — + // e.g. ThrottlingException.retryAfterSeconds (S.Number) bound to + // the Retry-After header. Without coercion the decode fails and + // the error degrades to a plain object, losing its error class + // and retry/throttling categorization. + (data as Record)[String(prop.name)] = isNumberAST( + prop.type, + ) + ? Number(headerValue) + : isBooleanAST(prop.type) + ? headerValue === "true" + : headerValue; + } + } + } + + // REST-JSON services with jsonName-renamed error members (e.g. + // MediaLive) send camelCase wire keys ("message", "validationErrors") + // while the generated error class declares the Smithy member names + // ("Message", "ValidationErrors") without a key mapping. Backfill the + // schema-cased key from its camelCase wire twin so the decode keeps + // the payload instead of silently dropping every field. + for (const prop of errorProps) { + const name = String(prop.name); + const record = data as Record; + if (record[name] === undefined) { + const wireName = name.charAt(0).toLowerCase() + name.slice(1); + if (wireName !== name && record[wireName] !== undefined) { + record[name] = record[wireName]; } } } diff --git a/packages/aws/src/errors.ts b/packages/aws/src/errors.ts index 38ba3536a9..be5de6c6f0 100644 --- a/packages/aws/src/errors.ts +++ b/packages/aws/src/errors.ts @@ -4,7 +4,11 @@ import * as Category from "./category.ts"; //==== Common AWS Errors ==== export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", - {}, + { + // AWS explains WHICH action/resource was denied in the message — keep it + // so callers (and test logs) can see the actual authorization failure. + Message: S.optional(S.String), + }, ).pipe(Category.withAuthError) {} export class ExpiredTokenException extends S.TaggedErrorClass()( @@ -84,7 +88,14 @@ export class ValidationError extends S.TaggedErrorClass()( export class ValidationException extends S.TaggedErrorClass()( "ValidationException", - {}, + { + /** The human-readable validation failure reason from the service. */ + message: S.optional(S.String), + /** Machine-readable reason code (e.g. "FIELD_VALIDATION_FAILED"). */ + reason: S.optional(S.String), + /** Per-field validation failures, when the service reports them. */ + fieldList: S.optional(S.Any), + }, ).pipe(Category.withBadRequestError) {} export class OperationAborted extends S.TaggedErrorClass()( diff --git a/packages/aws/src/eventstream/parser.ts b/packages/aws/src/eventstream/parser.ts index 4b6b69fb8d..7357b4e498 100644 --- a/packages/aws/src/eventstream/parser.ts +++ b/packages/aws/src/eventstream/parser.ts @@ -7,6 +7,7 @@ import * as Effect from "effect/Effect"; import * as Ref from "effect/Ref"; +import * as Schema from "effect/Schema"; import * as Stream from "effect/Stream"; import { decodeMessage, @@ -148,6 +149,16 @@ export const rawPayloadParser: PayloadParser = (payload: Uint8Array) => { return text ? { payload: text } : {}; }; +/** Encode raw event payload bytes to the base64 wire form blob schemas decode from. */ +const uint8ToBase64 = (bytes: Uint8Array): string => { + let binary = ""; + const chunkSize = 0x8000; + for (let i = 0; i < bytes.length; i += chunkSize) { + binary += String.fromCharCode(...bytes.subarray(i, i + chunkSize)); + } + return btoa(binary); +}; + /** * Default JSON payload parser */ @@ -176,12 +187,25 @@ export const jsonPayloadParser: PayloadParser = (payload: Uint8Array) => { export const transformEventStreamToUnion = ( eventStream: Stream.Stream, payloadParser: PayloadParser = jsonPayloadParser, + eventPayloadMap?: Record, ): Stream.Stream => eventStream.pipe( Stream.map((streamEvent) => { if (streamEvent._tag === "MessageEvent") { // Normal message event - parse payload and wrap in tagged union const eventType = streamEvent.eventType; + // Smithy `eventPayload` member: the raw wire payload IS that single + // member's value (a blob), not a JSON document of the event struct. + // Bind the bytes to the member in wire (base64) form so the event + // schema decode produces the generated type (Uint8Array / Redacted). + const payloadMember = eventPayloadMap?.[eventType]; + if (payloadMember !== undefined) { + return { + [eventType]: { + [payloadMember]: uint8ToBase64(streamEvent.payload), + }, + }; + } const payload = payloadParser(streamEvent.payload); return { [eventType]: payload }; } else if (streamEvent._tag === "ExceptionEvent") { @@ -201,18 +225,62 @@ export const transformEventStreamToUnion = ( }), ); +/** + * Decode each parsed union event through the operation's event schema (the + * Smithy union of event types). The payload parser alone only produces plain + * JSON/XML values — member transformations declared on the schema never run, + * so blob members stay base64 strings (instead of `Uint8Array` / + * `Redacted` for sensitive blobs) and timestamps stay numbers. + * Running the schema decode makes the runtime values match the generated + * types (e.g. Bedrock `InvokeModelWithResponseStream`'s `chunk.bytes`). + * + * An event that fails to decode is passed through raw so unmodeled events + * (`UnmodeledError`) and exception events keep flowing. + */ +export const decodeEventStreamUnion = ( + eventStream: Stream.Stream, + eventSchema: Schema.Schema | undefined, +): Stream.Stream => { + if (!eventSchema) return eventStream; + const decode = Schema.decodeUnknownEffect(eventSchema); + return Stream.mapEffect( + eventStream, + (event) => + decode(event).pipe( + Effect.map((decoded) => decoded as ParsedEvent), + Effect.catch(() => Effect.succeed(event)), + // The schema arrives via untyped AST annotations as `Schema`, + // whose decoding-services slot is `unknown`; generated event schemas + // are plain data codecs with no decode services, so the effect is + // service-free at runtime. + ) as Effect.Effect, + ); +}; + /** * Parse a ReadableStream of bytes into a Stream of typed union events. * * This is the high-level API that combines: * 1. parseEventStream - decode wire format to StreamEvents * 2. transformEventStreamToUnion - convert to typed union members + * 3. decodeEventStreamUnion - run the event schema so runtime values match + * the generated types (blobs → Uint8Array, sensitive blobs → Redacted) * * @param input - ReadableStream of event stream bytes * @param payloadParser - Function to parse event payloads (default: JSON) + * @param eventSchema - The Smithy union schema for the stream's events */ export const parseEventStreamToUnion = ( input: ReadableStream, payloadParser: PayloadParser = jsonPayloadParser, + eventSchema?: Schema.Schema, + eventPayloadMap?: Record, ): Stream.Stream => - transformEventStreamToUnion(parseEventStream(input), payloadParser); + decodeEventStreamUnion( + transformEventStreamToUnion( + parseEventStream(input), + payloadParser, + eventPayloadMap, + ), + eventSchema, + ); diff --git a/packages/aws/src/index.browser.ts b/packages/aws/src/index.browser.ts index c22a04e396..7e87d27104 100644 --- a/packages/aws/src/index.browser.ts +++ b/packages/aws/src/index.browser.ts @@ -26,6 +26,13 @@ export * as Endpoint from "./endpoint.ts"; */ export * as Errors from "./errors.ts"; +/** + * SigV4 query-string presigning for AWS URLs (e.g. S3 presigned URLs). + * + * @since 0.0.0 + */ +export * as Presign from "./presign.ts"; + /** * AWS Region configuration. * diff --git a/packages/aws/src/index.ts b/packages/aws/src/index.ts index cf6cff92b6..53e40fffcb 100644 --- a/packages/aws/src/index.ts +++ b/packages/aws/src/index.ts @@ -26,6 +26,13 @@ export * as Endpoint from "./endpoint.ts"; */ export * as Errors from "./errors.ts"; +/** + * SigV4 query-string presigning for AWS URLs (e.g. S3 presigned URLs). + * + * @since 0.0.0 + */ +export * as Presign from "./presign.ts"; + /** * AWS Region configuration. * diff --git a/packages/aws/src/presign.ts b/packages/aws/src/presign.ts new file mode 100644 index 0000000000..4ddfdd9e3c --- /dev/null +++ b/packages/aws/src/presign.ts @@ -0,0 +1,186 @@ +import { AwsV4Signer } from "aws4fetch"; +import * as Effect from "effect/Effect"; +import * as Option from "effect/Option"; +import * as Redacted from "effect/Redacted"; + +import * as Credentials from "./credentials.browser.ts"; +import * as Endpoint from "./endpoint.ts"; +import * as Region from "./region.ts"; + +/** + * Options for {@link presignUrl}. + */ +export interface PresignUrlOptions { + /** + * HTTP method the presigned URL authorizes. + * @default "GET" + */ + readonly method?: string; + /** + * Full URL to presign (scheme + host + path + any query parameters that + * should be part of the signature). + */ + readonly url: string; + /** + * SigV4 signing service name (e.g. `s3`, `execute-api`, `lambda`). + */ + readonly service: string; + /** + * SigV4 signing region. Defaults to the {@link Region.Region} service. + */ + readonly region?: string; + /** + * Number of seconds the URL remains valid. + * @default 900 + */ + readonly expiresIn?: number; + /** + * Headers to sign into the URL (`X-Amz-SignedHeaders`). The consumer of + * the presigned URL must send these headers verbatim or the signature + * fails to validate. + */ + readonly headers?: Record; + /** + * Fixed signing datetime in `YYYYMMDDTHHMMSSZ` format. Defaults to now. + * Signing is deterministic for a fixed datetime + credentials, which + * makes this useful for tests. + */ + readonly datetime?: string; +} + +/** + * SigV4 query-string presigning for an arbitrary AWS URL. + * + * Pure client-side computation — no AWS API call is made. Credentials are + * resolved from the {@link Credentials.Credentials} service (the presigned + * URL inherits that identity's IAM permissions) and the signing region + * defaults to the {@link Region.Region} service. + */ +export const presignUrl: ( + options: PresignUrlOptions, +) => Effect.Effect< + string, + Credentials.CredentialsError, + Credentials.Credentials | Region.Region +> = Effect.fnUntraced(function* (options: PresignUrlOptions) { + const credentials = yield* yield* Credentials.Credentials; + const region = options.region ?? (yield* yield* Region.Region); + + const url = new URL(options.url); + url.searchParams.set("X-Amz-Expires", String(options.expiresIn ?? 900)); + + const signer = new AwsV4Signer({ + method: options.method ?? "GET", + url: url.toString(), + headers: options.headers, + accessKeyId: Redacted.value(credentials.accessKeyId), + secretAccessKey: Redacted.value(credentials.secretAccessKey), + sessionToken: credentials.sessionToken + ? Redacted.value(credentials.sessionToken) + : undefined, + service: options.service, + region, + signQuery: true, + datetime: options.datetime, + // aws4fetch excludes `content-type` (among others) from the signature by + // default (UNSIGNABLE_HEADERS). Callers passing headers here explicitly + // want them pinned into the signature — e.g. the AWS SDK's getSignedUrl + // signs `content-type` when a ContentType is given, which is what pins an + // uploader to the declared type — so opt back in. + allHeaders: options.headers !== undefined, + }); + const signed = yield* Effect.promise(() => signer.sign()); + return signed.url.toString(); +}); + +/** + * Options for {@link presignS3Url}. + */ +export interface PresignS3UrlOptions { + /** + * HTTP method the presigned URL authorizes. + * @default "GET" + */ + readonly method?: "GET" | "PUT" | "HEAD" | "DELETE"; + /** + * Name of the bucket the object lives in. + */ + readonly bucket: string; + /** + * Key of the object. + */ + readonly key: string; + /** + * Region the bucket lives in (used for both the endpoint and the SigV4 + * credential scope). Defaults to the {@link Region.Region} service. + */ + readonly region?: string; + /** + * Number of seconds the URL remains valid. + * @default 900 + */ + readonly expiresIn?: number; + /** + * `Content-Type` header to sign into the URL. The consumer (e.g. a PUT + * uploader) must send exactly this `Content-Type` or S3 rejects the + * request with a signature mismatch. + */ + readonly contentType?: string; + /** + * `response-content-type` override for GET URLs — S3 responds with this + * `Content-Type` regardless of the stored object's metadata. + */ + readonly responseContentType?: string; + /** + * Fixed signing datetime in `YYYYMMDDTHHMMSSZ` format. Defaults to now. + */ + readonly datetime?: string; +} + +/** + * SigV4 query-string presigning for S3 objects. + * + * Produces a virtual-hosted-style URL + * (`https://{bucket}.s3.{region}.amazonaws.com/{key}`), or a path-style URL + * under the custom {@link Endpoint.Endpoint} when one is provided (e.g. + * LocalStack or S3-compatible stores). + * + * Pure client-side computation — no AWS API call is made. The URL inherits + * the IAM permissions of the identity resolved from the + * {@link Credentials.Credentials} service. + */ +export const presignS3Url: ( + options: PresignS3UrlOptions, +) => Effect.Effect< + string, + Credentials.CredentialsError, + Credentials.Credentials | Region.Region +> = Effect.fnUntraced(function* (options: PresignS3UrlOptions) { + const region = options.region ?? (yield* yield* Region.Region); + const customEndpoint = yield* yield* Effect.serviceOption( + Endpoint.Endpoint, + ).pipe(Effect.map(Option.getOrElse(() => Effect.undefined))); + + const encodedKey = options.key.split("/").map(encodeURIComponent).join("/"); + const url = new URL( + customEndpoint + ? `${customEndpoint.replace(/\/+$/, "")}/${options.bucket}/${encodedKey}` + : `https://${options.bucket}.s3.${region}.amazonaws.com/${encodedKey}`, + ); + if (options.responseContentType !== undefined) { + url.searchParams.set("response-content-type", options.responseContentType); + } + + return yield* presignUrl({ + method: options.method ?? "GET", + url: url.toString(), + service: "s3", + region, + expiresIn: options.expiresIn, + headers: + options.contentType !== undefined + ? { "content-type": options.contentType } + : undefined, + datetime: options.datetime, + }); +}); diff --git a/packages/aws/src/protocols/aws-json.ts b/packages/aws/src/protocols/aws-json.ts index 94c64ff178..2ebdec3cc7 100644 --- a/packages/aws/src/protocols/aws-json.ts +++ b/packages/aws/src/protocols/aws-json.ts @@ -28,6 +28,7 @@ import { ParseError } from "../errors.ts"; import { parseEventStreamToUnion } from "../eventstream/parser.ts"; import { getAwsApiService, + getEventSchema, isOutputEventStream, isStreamingType, } from "../traits.ts"; @@ -75,13 +76,19 @@ function createAwsJsonProtocol(version: "1.0" | "1.1"): Protocol { // Check for streaming output member (event stream) let streamingOutputProp: - | { name: string; isEventStream: boolean } + | { + name: string; + isEventStream: boolean; + eventSchema?: Schema.Schema; + } | undefined; for (const prop of getEncodedPropertySignatures(outputAst)) { if (isStreamingType(prop.type)) { + const isEventStream = isOutputEventStream(prop.type); streamingOutputProp = { name: String(prop.name), - isEventStream: isOutputEventStream(prop.type), + isEventStream, + eventSchema: isEventStream ? getEventSchema(prop.type) : undefined, }; break; } @@ -113,10 +120,13 @@ function createAwsJsonProtocol(version: "1.0" | "1.1"): Protocol { // Handle streaming output (event stream) if (streamingOutputProp && response.body) { if (streamingOutputProp.isEventStream) { - // Parse event stream to typed union events + // Parse event stream to typed union events, decoded through the + // event schema so blob/timestamp members match the generated types return { [streamingOutputProp.name]: parseEventStreamToUnion( response.body as ReadableStream, + undefined, + streamingOutputProp.eventSchema, ), }; } diff --git a/packages/aws/src/protocols/aws-query.ts b/packages/aws/src/protocols/aws-query.ts index 0a19ea7380..86e36bd097 100644 --- a/packages/aws/src/protocols/aws-query.ts +++ b/packages/aws/src/protocols/aws-query.ts @@ -181,6 +181,27 @@ export const awsQueryProtocol: Protocol = ( } } + // Legacy query services (SimpleDB) wrap errors EC2-style: + // ...... + if ( + !errorContent && + parsed.Response && + typeof parsed.Response === "object" + ) { + const responseObj = parsed.Response as Record; + if (typeof responseObj.RequestID === "string") { + requestId = responseObj.RequestID; + } + if (responseObj.Errors && typeof responseObj.Errors === "object") { + const errors = responseObj.Errors as Record; + if (errors.Error && typeof errors.Error === "object") { + errorContent = ( + Array.isArray(errors.Error) ? errors.Error[0] : errors.Error + ) as Record; + } + } + } + if (!errorContent) { return yield* new ParseError({ message: `Could not find Error element in XML response: ${bodyText}`, diff --git a/packages/aws/src/protocols/rest-json.ts b/packages/aws/src/protocols/rest-json.ts index b863d4ee5a..4eda84c2ce 100644 --- a/packages/aws/src/protocols/rest-json.ts +++ b/packages/aws/src/protocols/rest-json.ts @@ -37,10 +37,14 @@ import { getEventPayloadMap, getEventSchema, getHttpHeader, + getOutputEventPayloadMap, getHttpPrefixHeaders, + getHttpQuery, getPropAnnotations, getServiceVersion, + hasHttpLabel, hasHttpPayload, + hasHttpQueryParams, isInputEventStream, isOutputEventStream, isStreamingType, @@ -48,6 +52,7 @@ import { } from "../traits.ts"; import { getEncodedPropertySignatures, + getIdentifier, isBooleanAST, isNumberAST, } from "../util/ast.ts"; @@ -62,6 +67,7 @@ import { convertStreamingInput, isEffectStream, readableToEffectStream, + readStreamAsBytes, readStreamAsText, } from "../util/stream.ts"; @@ -95,8 +101,11 @@ export const restJson1Protocol: Protocol = ( name: string; isStreaming: boolean; isRaw: boolean; + isBlob: boolean; isEventStream: boolean; eventSchema?: Schema.Schema; + /** event type → `eventPayload` member name (raw-bytes events). */ + eventPayloadMap?: Record; }; const headerProps: HeaderProp[] = []; @@ -125,26 +134,57 @@ export const restJson1Protocol: Protocol = ( prefixHeaderProps.push({ name, prefix: prefix.toLowerCase() }); } else if (hasHttpPayload(prop)) { const isEventStream = isOutputEventStream(prop.type); + const eventSchema = isEventStream ? getEventSchema(prop.type) : undefined; outputPayloadProp = { name, isStreaming: isStreamingType(prop.type), isRaw: isRawPayload(prop.type), + isBlob: isBlobPayload(prop.type), isEventStream, - eventSchema: isEventStream ? getEventSchema(prop.type) : undefined, + eventSchema, + eventPayloadMap: eventSchema + ? getOutputEventPayloadMap(eventSchema) + : undefined, }; } else if (isStreamingType(prop.type)) { // Streaming members (including event streams) implicitly become the payload const isEventStream = isOutputEventStream(prop.type); + const eventSchema = isEventStream ? getEventSchema(prop.type) : undefined; outputPayloadProp = { name, isStreaming: true, isRaw: false, + isBlob: false, isEventStream, - eventSchema: isEventStream ? getEventSchema(prop.type) : undefined, + eventSchema, + eventPayloadMap: eventSchema + ? getOutputEventPayloadMap(eventSchema) + : undefined, }; } } + // restJson1 sends an explicit empty JSON document (`{}`) whenever the + // input shape has at least one member bound to the body but none were + // set (matching the AWS SDK v3 / botocore behavior — see + // AwsRestJsonProtocol.serializeRequest + ProtocolLib.resolveRestContentType + // in aws-sdk-js-v3). Several services reject an absent body outright: + // resource-explorer-2's ListIndexes/ListViews return + // `ValidationException: Invalid request body` when called with no body. + // Unit inputs (zero members) and inputs whose members are all bound to + // labels/query/headers keep an empty body. + const hasBodyCapableInputMembers = getEncodedPropertySignatures( + inputAst, + ).some( + (prop) => + getHttpHeader(prop) === undefined && + !hasHttpLabel(prop) && + getHttpQuery(prop) === undefined && + !hasHttpQueryParams(prop) && + getHttpPrefixHeaders(prop) === undefined && + !hasHttpPayload(prop), + ); + return { serializeRequest: Effect.fn(function* (input: unknown) { const encoded = yield* encodeInput(input).pipe( @@ -199,6 +239,10 @@ export const restJson1Protocol: Protocol = ( request.body = convertStreamingInput( payloadValue as StreamingInputBody, ); + // Streaming-input operations are signed UNSIGNED-PAYLOAD (see + // Request.hasStreamingInput) — some services (Lex Runtime V2) + // reject payload-hash signatures on these routes. + request.hasStreamingInput = true; // Default to octet-stream for streaming payloads, unless user set explicitly if (!userSetContentType) { request.headers["Content-Type"] = "application/octet-stream"; @@ -223,7 +267,12 @@ export const restJson1Protocol: Protocol = ( request.headers["Content-Type"] = "application/json"; } } else { - // No body - set default JSON content type for consistency + if (hasBodyCapableInputMembers) { + // Body-capable members exist but none were set: send an explicit + // empty JSON document, matching AWS SDK v3 / botocore. + request.body = "{}"; + } + // No body members set - default JSON content type for consistency if (!userSetContentType) { request.headers["Content-Type"] = "application/json"; } @@ -278,9 +327,14 @@ export const restJson1Protocol: Protocol = ( // Handle streaming output payload - return early if (outputPayloadProp?.isStreaming) { if (outputPayloadProp.isEventStream && response.body) { - // Parse event stream - converts raw bytes to typed union events + // Parse event stream - converts raw bytes to typed union events, + // decoded through the event schema so blob/timestamp members match + // the generated types result[outputPayloadProp.name] = parseEventStreamToUnion( response.body as ReadableStream, + undefined, + outputPayloadProp.eventSchema, + outputPayloadProp.eventPayloadMap, ); } else { // Raw streaming output (blob) @@ -291,6 +345,18 @@ export const restJson1Protocol: Protocol = ( return result; } + // Non-streaming blob payload (e.g. geo-maps GetTile / GetStaticMap): + // the raw body bytes ARE the payload. Read them as bytes and re-encode + // to the wire (base64 string) form the Blob schema decodes from. + // The body is binary, not a JSON document, so JSON parsing is skipped. + if (outputPayloadProp?.isBlob) { + const bytes = yield* readStreamAsBytes(response.body); + if (bytes.byteLength > 0) { + result[outputPayloadProp.name] = bytesToBase64(bytes); + } + return result; + } + // Non-streaming response - read body as text const bodyText = yield* readStreamAsText(response.body); @@ -333,9 +399,12 @@ export const restJson1Protocol: Protocol = ( body = parsed as Record; } } catch { - return yield* new ParseError({ - message: `Failed to parse error JSON body: ${bodyText}`, - }); + // Some API Gateway-fronted services (e.g. FinSpace Data) return + // plain-text error bodies ("Failed to retrieve environment"). + // Treat the text as the error message and fall back to matching + // the operation's declared errors by httpError status instead of + // failing the deserializer. + return { errorCode: "", data: { message: bodyText } }; } } @@ -346,9 +415,12 @@ export const restJson1Protocol: Protocol = ( extractJsonErrorCode(body); if (!rawErrorCode) { - return yield* new ParseError({ - message: `No error code found in response. Headers: ${JSON.stringify(response.headers)}, Body: ${bodyText}`, - }); + // Some services (API Gateway-fronted, e.g. IoT Managed Integrations) + // return error responses with no error code at all — no + // X-Amzn-Errortype header and no __type/code body field. Return an + // empty error code so the response parser can fall back to matching + // the operation's declared errors by smithy.api#httpError status. + return { errorCode: "", data: extractJsonErrorData(body) }; } // Sanitize the error code @@ -371,3 +443,24 @@ function isRawPayload(ast: AST.AST): boolean { if (AST.isUnion(ast)) return ast.types.some(isRawPayload); return false; } + +/** + * Check if AST represents a non-streaming blob payload (T.Blob — decoded + * Uint8Array with a base64-string wire form). For httpPayload bindings the + * HTTP body carries the raw bytes directly, so the deserializer must read + * bytes instead of JSON-parsing the body. + */ +function isBlobPayload(ast: AST.AST): boolean { + if (AST.isUnion(ast)) return ast.types.some(isBlobPayload); + return getIdentifier(ast) === "Blob"; +} + +/** Base64-encode bytes without blowing the stack on large payloads. */ +function bytesToBase64(bytes: Uint8Array): string { + let binary = ""; + const chunkSize = 0x2000; + for (let i = 0; i < bytes.length; i += chunkSize) { + binary += String.fromCharCode(...bytes.subarray(i, i + chunkSize)); + } + return btoa(binary); +} diff --git a/packages/aws/src/protocols/rest-xml.ts b/packages/aws/src/protocols/rest-xml.ts index aca9d82c13..3efa25766e 100644 --- a/packages/aws/src/protocols/rest-xml.ts +++ b/packages/aws/src/protocols/rest-xml.ts @@ -17,6 +17,7 @@ import { type PayloadParser, } from "../eventstream/parser.ts"; import { + getEventSchema, getHttpHeader, getHttpPrefixHeaders, getHttpQuery, @@ -116,6 +117,7 @@ export const restXmlProtocol: Protocol = ( type: AST.AST; isStreaming: boolean; isEventStream: boolean; + eventSchema?: S.Schema; isRawString: boolean; xmlName?: string; }; @@ -146,11 +148,13 @@ export const restXmlProtocol: Protocol = ( prefixHeaderProps.push({ name, prefix: prefixHeader.toLowerCase() }); } else if (hasHttpPayload(prop)) { const unwrapped = unwrapUnion(prop.type); + const isEventStream = isOutputEventStream(prop.type); outputPayloadProp = { name, type: prop.type, isStreaming: isStreamingType(prop.type), - isEventStream: isOutputEventStream(prop.type), + isEventStream, + eventSchema: isEventStream ? getEventSchema(prop.type) : undefined, isRawString: unwrapped._tag === "Union" || unwrapped._tag === "String", // Use property name as fallback when type annotations aren't preserved // (e.g., when using Schema.pipe to add HttpPayload annotation) @@ -262,6 +266,7 @@ export const restXmlProtocol: Protocol = ( result[outputPayloadProp.name] = parseEventStreamToUnion( response.body as ReadableStream, xmlPayloadParser, + outputPayloadProp.eventSchema, ); } else { // Raw streaming output (blob) @@ -512,9 +517,12 @@ function deserializeValue(ast: AST.AST, value: unknown): unknown { if (!elAST) return Array.isArray(value) ? value : [value]; // Handle wrapped arrays: { Item: [...] } - // Use xmlName trait first, then fall back to class identifier + // Use xmlName trait first, then fall back to class identifier, then the + // Smithy default wrapper for non-flattened lists: (e.g. + // CloudFront RealtimeLogConfig.EndPoints, whose list member carries no + // xmlName trait and arrives as ...). const elTag = getXmlNameFromAST(elAST) ?? getIdentifier(elAST); - const unwrapped = unwrapArrayValue(value, elTag); + const unwrapped = unwrapArrayValue(value, elTag, ["member"]); const items = Array.isArray(unwrapped) ? unwrapped : [unwrapped]; return items.map((item) => deserializeValue(elAST, item)); diff --git a/packages/aws/src/services/aiops.ts b/packages/aws/src/services/aiops.ts index 8b322d25c7..5f18e70710 100644 --- a/packages/aws/src/services/aiops.ts +++ b/packages/aws/src/services/aiops.ts @@ -560,6 +560,10 @@ export class ServiceQuotaExceededException extends S.TaggedErrorClass()( + "UnauthorizedException", + {}, +).pipe(C.withAuthError) {} //# Operations export type ListTagsForResourceError = @@ -707,6 +711,7 @@ export type GetInvestigationGroupError = | InternalServerException | ResourceNotFoundException | ThrottlingException + | UnauthorizedException | CommonErrors; /** * Returns the configuration information for the specified investigation group. @@ -724,6 +729,7 @@ export const getInvestigationGroup: API.OperationMethod< InternalServerException, ResourceNotFoundException, ThrottlingException, + UnauthorizedException, ], operationName: "GetInvestigationGroup", })); @@ -734,6 +740,7 @@ export type UpdateInvestigationGroupError = | ResourceNotFoundException | ThrottlingException | ValidationException + | UnauthorizedException | CommonErrors; /** * Updates the configuration of the specified investigation group. @@ -753,6 +760,7 @@ export const updateInvestigationGroup: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + UnauthorizedException, ], operationName: "UpdateInvestigationGroup", })); @@ -761,6 +769,7 @@ export type DeleteInvestigationGroupError = | InternalServerException | ResourceNotFoundException | ThrottlingException + | UnauthorizedException | CommonErrors; /** * Deletes the specified investigation group from your account. You can currently have one investigation group per Region in your account. After you delete an investigation group, you can later create a new investigation group in the same Region. @@ -778,6 +787,7 @@ export const deleteInvestigationGroup: API.OperationMethod< InternalServerException, ResourceNotFoundException, ThrottlingException, + UnauthorizedException, ], operationName: "DeleteInvestigationGroup", })); @@ -828,6 +838,7 @@ export type PutInvestigationGroupPolicyError = | ResourceNotFoundException | ThrottlingException | ValidationException + | UnauthorizedException | CommonErrors; /** * Creates an IAM resource policy and assigns it to the specified investigation group. @@ -851,6 +862,7 @@ export const putInvestigationGroupPolicy: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + UnauthorizedException, ], operationName: "PutInvestigationGroupPolicy", })); @@ -860,6 +872,7 @@ export type GetInvestigationGroupPolicyError = | ResourceNotFoundException | ThrottlingException | ValidationException + | UnauthorizedException | CommonErrors; /** * Returns the JSON of the IAM resource policy associated with the specified investigation group in a string. For example, `{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"aiops.alarms.cloudwatch.amazonaws.com\"},\"Action\":[\"aiops:CreateInvestigation\",\"aiops:CreateInvestigationEvent\"],\"Resource\":\"*\",\"Condition\":{\"StringEquals\":{\"aws:SourceAccount\":\"111122223333\"},\"ArnLike\":{\"aws:SourceArn\":\"arn:aws:cloudwatch:us-east-1:111122223333:alarm:*\"}}}]}`. @@ -878,6 +891,7 @@ export const getInvestigationGroupPolicy: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + UnauthorizedException, ], operationName: "GetInvestigationGroupPolicy", })); @@ -887,6 +901,7 @@ export type DeleteInvestigationGroupPolicyError = | ResourceNotFoundException | ThrottlingException | ValidationException + | UnauthorizedException | CommonErrors; /** * Removes the IAM resource policy from being associated with the investigation group that you specify. @@ -905,6 +920,7 @@ export const deleteInvestigationGroupPolicy: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + UnauthorizedException, ], operationName: "DeleteInvestigationGroupPolicy", })); diff --git a/packages/aws/src/services/amp.ts b/packages/aws/src/services/amp.ts index 530e285891..9e6fa90e88 100644 --- a/packages/aws/src/services/amp.ts +++ b/packages/aws/src/services/amp.ts @@ -1020,7 +1020,7 @@ export const DescribeAlertManagerDefinitionRequest = }) as any as S.Schema; export interface AlertManagerDefinitionDescription { status: AlertManagerDefinitionStatus; - data: Uint8Array; + data?: Uint8Array; createdAt: Date; modifiedAt: Date; } @@ -1028,7 +1028,7 @@ export const AlertManagerDefinitionDescription = /*@__PURE__*/ S.suspend(() => S.Struct({ status: AlertManagerDefinitionStatus, - data: T.Blob, + data: S.optional(T.Blob), createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), modifiedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), }), @@ -1872,7 +1872,7 @@ export interface RuleGroupsNamespaceDescription { arn: string; name: string; status: RuleGroupsNamespaceStatus; - data: Uint8Array; + data?: Uint8Array; createdAt: Date; modifiedAt: Date; tags?: { [key: string]: string | undefined }; @@ -1883,7 +1883,7 @@ export const RuleGroupsNamespaceDescription = arn: S.String, name: S.String, status: RuleGroupsNamespaceStatus, - data: T.Blob, + data: S.optional(T.Blob), createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), modifiedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), tags: S.optional(TagMap), @@ -2275,6 +2275,7 @@ export const DeleteResourcePolicyResponse = export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.String }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", @@ -2282,7 +2283,7 @@ export class InternalServerException extends S.TaggedErrorClass()( "ThrottlingException", @@ -2292,11 +2293,12 @@ export class ThrottlingException extends S.TaggedErrorClass quotaCode: S.optional(S.String), retryAfterSeconds: S.optional(S.Number).pipe(T.HttpHeader("Retry-After")), }, - T.Retryable(), + T.all(T.HttpError(429), T.Retryable()), ).pipe(C.withThrottlingError, C.withRetryableError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.String, resourceId: S.String, resourceType: S.String }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", @@ -2305,10 +2307,12 @@ export class ValidationException extends S.TaggedErrorClass reason: S.String, fieldList: S.optional(ValidationExceptionFieldList), }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { message: S.String, resourceId: S.String, resourceType: S.String }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", @@ -2319,6 +2323,7 @@ export class ServiceQuotaExceededException extends S.TaggedErrorClass; customRules?: CustomRule[]; productionBranch?: ProductionBranch; @@ -408,18 +408,18 @@ export const App = /*@__PURE__*/ S.suspend(() => appArn: S.String, name: S.String, tags: S.optional(TagMap), - description: S.String, - repository: S.String, - platform: Platform, + description: S.optional(S.String), + repository: S.optional(S.String), + platform: S.optional(Platform), createTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), updateTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), computeRoleArn: S.optional(S.String), iamServiceRoleArn: S.optional(S.String), - environmentVariables: EnvironmentVariables, - defaultDomain: S.String, - enableBranchAutoBuild: S.Boolean, + environmentVariables: S.optional(EnvironmentVariables), + defaultDomain: S.optional(S.String), + enableBranchAutoBuild: S.optional(S.Boolean), enableBranchAutoDeletion: S.optional(S.Boolean), - enableBasicAuth: S.Boolean, + enableBasicAuth: S.optional(S.Boolean), basicAuthCredentials: S.optional(SensitiveString), customRules: S.optional(CustomRules), productionBranch: S.optional(ProductionBranch), @@ -451,27 +451,26 @@ export interface CreateBackendEnvironmentRequest { stackName?: string; deploymentArtifacts?: string; } -export const CreateBackendEnvironmentRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - appId: S.String.pipe(T.HttpLabel("appId")), - environmentName: S.String, - stackName: S.optional(S.String), - deploymentArtifacts: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/apps/{appId}/backendenvironments" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateBackendEnvironmentRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + appId: S.String.pipe(T.HttpLabel("appId")), + environmentName: S.String, + stackName: S.optional(S.String), + deploymentArtifacts: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/apps/{appId}/backendenvironments" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateBackendEnvironmentRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateBackendEnvironmentRequest", +}) as any as S.Schema; export interface BackendEnvironment { backendEnvironmentArn: string; environmentName: string; @@ -495,12 +494,11 @@ export const BackendEnvironment = /*@__PURE__*/ S.suspend(() => export interface CreateBackendEnvironmentResult { backendEnvironment: BackendEnvironment; } -export const CreateBackendEnvironmentResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ backendEnvironment: BackendEnvironment }).pipe(ns), - ).annotate({ - identifier: "CreateBackendEnvironmentResult", - }) as any as S.Schema; +export const CreateBackendEnvironmentResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ backendEnvironment: BackendEnvironment }).pipe(ns), +).annotate({ + identifier: "CreateBackendEnvironmentResult", +}) as any as S.Schema; export interface Backend { stackArn?: string; } @@ -574,28 +572,28 @@ export const AssociatedResources = /*@__PURE__*/ S.Array(S.String); export interface Branch { branchArn: string; branchName: string; - description: string; + description?: string; tags?: { [key: string]: string | undefined }; - stage: Stage; - displayName: string; - enableNotification: boolean; + stage?: Stage; + displayName?: string; + enableNotification?: boolean; createTime: Date; updateTime: Date; - environmentVariables: { [key: string]: string | undefined }; - enableAutoBuild: boolean; + environmentVariables?: { [key: string]: string | undefined }; + enableAutoBuild?: boolean; enableSkewProtection?: boolean; - customDomains: string[]; - framework: string; - activeJobId: string; - totalNumberOfJobs: string; - enableBasicAuth: boolean; + customDomains?: string[]; + framework?: string; + activeJobId?: string; + totalNumberOfJobs?: string; + enableBasicAuth?: boolean; enablePerformanceMode?: boolean; thumbnailUrl?: string; basicAuthCredentials?: string | redacted.Redacted; buildSpec?: string | redacted.Redacted; - ttl: string; + ttl?: string; associatedResources?: string[]; - enablePullRequestPreview: boolean; + enablePullRequestPreview?: boolean; pullRequestEnvironmentName?: string; destinationBranch?: string; sourceBranch?: string; @@ -607,28 +605,28 @@ export const Branch = /*@__PURE__*/ S.suspend(() => S.Struct({ branchArn: S.String, branchName: S.String, - description: S.String, + description: S.optional(S.String), tags: S.optional(TagMap), - stage: Stage, - displayName: S.String, - enableNotification: S.Boolean, + stage: S.optional(Stage), + displayName: S.optional(S.String), + enableNotification: S.optional(S.Boolean), createTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), updateTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - environmentVariables: EnvironmentVariables, - enableAutoBuild: S.Boolean, + environmentVariables: S.optional(EnvironmentVariables), + enableAutoBuild: S.optional(S.Boolean), enableSkewProtection: S.optional(S.Boolean), - customDomains: CustomDomains, - framework: S.String, - activeJobId: S.String, - totalNumberOfJobs: S.String, - enableBasicAuth: S.Boolean, + customDomains: S.optional(CustomDomains), + framework: S.optional(S.String), + activeJobId: S.optional(S.String), + totalNumberOfJobs: S.optional(S.String), + enableBasicAuth: S.optional(S.Boolean), enablePerformanceMode: S.optional(S.Boolean), thumbnailUrl: S.optional(S.String), basicAuthCredentials: S.optional(SensitiveString), buildSpec: S.optional(SensitiveString), - ttl: S.String, + ttl: S.optional(S.String), associatedResources: S.optional(AssociatedResources), - enablePullRequestPreview: S.Boolean, + enablePullRequestPreview: S.optional(S.Boolean), pullRequestEnvironmentName: S.optional(S.String), destinationBranch: S.optional(S.String), sourceBranch: S.optional(S.String), @@ -684,13 +682,13 @@ export const FileUploadUrls = /*@__PURE__*/ S.Record( ); export interface CreateDeploymentResult { jobId?: string; - fileUploadUrls: { [key: string]: string | undefined }; + fileUploadUrls?: { [key: string]: string | undefined }; zipUploadUrl: string; } export const CreateDeploymentResult = /*@__PURE__*/ S.suspend(() => S.Struct({ jobId: S.optional(S.String), - fileUploadUrls: FileUploadUrls, + fileUploadUrls: S.optional(FileUploadUrls), zipUploadUrl: S.String, }).pipe(ns), ).annotate({ @@ -732,30 +730,29 @@ export interface CreateDomainAssociationRequest { autoSubDomainIAMRole?: string; certificateSettings?: CertificateSettings; } -export const CreateDomainAssociationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - appId: S.String.pipe(T.HttpLabel("appId")), - domainName: S.String, - enableAutoSubDomain: S.optional(S.Boolean), - subDomainSettings: SubDomainSettings, - autoSubDomainCreationPatterns: S.optional(AutoSubDomainCreationPatterns), - autoSubDomainIAMRole: S.optional(S.String), - certificateSettings: S.optional(CertificateSettings), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/apps/{appId}/domains" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateDomainAssociationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + appId: S.String.pipe(T.HttpLabel("appId")), + domainName: S.String, + enableAutoSubDomain: S.optional(S.Boolean), + subDomainSettings: SubDomainSettings, + autoSubDomainCreationPatterns: S.optional(AutoSubDomainCreationPatterns), + autoSubDomainIAMRole: S.optional(S.String), + certificateSettings: S.optional(CertificateSettings), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/apps/{appId}/domains" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateDomainAssociationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateDomainAssociationRequest", +}) as any as S.Schema; export type DomainStatus = | "PENDING_VERIFICATION" | "IN_PROGRESS" @@ -838,12 +835,11 @@ export const DomainAssociation = /*@__PURE__*/ S.suspend(() => export interface CreateDomainAssociationResult { domainAssociation: DomainAssociation; } -export const CreateDomainAssociationResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ domainAssociation: DomainAssociation }).pipe(ns), - ).annotate({ - identifier: "CreateDomainAssociationResult", - }) as any as S.Schema; +export const CreateDomainAssociationResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ domainAssociation: DomainAssociation }).pipe(ns), +).annotate({ + identifier: "CreateDomainAssociationResult", +}) as any as S.Schema; export interface CreateWebhookRequest { appId: string; branchName: string; @@ -928,37 +924,35 @@ export interface DeleteBackendEnvironmentRequest { appId: string; environmentName: string; } -export const DeleteBackendEnvironmentRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - appId: S.String.pipe(T.HttpLabel("appId")), - environmentName: S.String.pipe(T.HttpLabel("environmentName")), - }).pipe( - T.all( - ns, - T.Http({ - method: "DELETE", - uri: "/apps/{appId}/backendenvironments/{environmentName}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteBackendEnvironmentRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + appId: S.String.pipe(T.HttpLabel("appId")), + environmentName: S.String.pipe(T.HttpLabel("environmentName")), + }).pipe( + T.all( + ns, + T.Http({ + method: "DELETE", + uri: "/apps/{appId}/backendenvironments/{environmentName}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteBackendEnvironmentRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteBackendEnvironmentRequest", +}) as any as S.Schema; export interface DeleteBackendEnvironmentResult { backendEnvironment: BackendEnvironment; } -export const DeleteBackendEnvironmentResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ backendEnvironment: BackendEnvironment }).pipe(ns), - ).annotate({ - identifier: "DeleteBackendEnvironmentResult", - }) as any as S.Schema; +export const DeleteBackendEnvironmentResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ backendEnvironment: BackendEnvironment }).pipe(ns), +).annotate({ + identifier: "DeleteBackendEnvironmentResult", +}) as any as S.Schema; export interface DeleteBranchRequest { appId: string; branchName: string; @@ -993,34 +987,32 @@ export interface DeleteDomainAssociationRequest { appId: string; domainName: string; } -export const DeleteDomainAssociationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - appId: S.String.pipe(T.HttpLabel("appId")), - domainName: S.String.pipe(T.HttpLabel("domainName")), - }).pipe( - T.all( - ns, - T.Http({ method: "DELETE", uri: "/apps/{appId}/domains/{domainName}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteDomainAssociationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + appId: S.String.pipe(T.HttpLabel("appId")), + domainName: S.String.pipe(T.HttpLabel("domainName")), + }).pipe( + T.all( + ns, + T.Http({ method: "DELETE", uri: "/apps/{appId}/domains/{domainName}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteDomainAssociationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteDomainAssociationRequest", +}) as any as S.Schema; export interface DeleteDomainAssociationResult { domainAssociation: DomainAssociation; } -export const DeleteDomainAssociationResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ domainAssociation: DomainAssociation }).pipe(ns), - ).annotate({ - identifier: "DeleteDomainAssociationResult", - }) as any as S.Schema; +export const DeleteDomainAssociationResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ domainAssociation: DomainAssociation }).pipe(ns), +).annotate({ + identifier: "DeleteDomainAssociationResult", +}) as any as S.Schema; export interface DeleteJobRequest { appId: string; branchName: string; @@ -1071,13 +1063,13 @@ export const SourceUrlType = /*@__PURE__*/ S.String; export interface JobSummary { jobArn: string; jobId: string; - commitId: string; - commitMessage: string; - commitTime: Date; + commitId?: string; + commitMessage?: string; + commitTime?: Date; startTime: Date; status: JobStatus; endTime?: Date; - jobType: JobType; + jobType?: JobType; sourceUrl?: string; sourceUrlType?: SourceUrlType; } @@ -1085,13 +1077,13 @@ export const JobSummary = /*@__PURE__*/ S.suspend(() => S.Struct({ jobArn: S.String, jobId: S.String, - commitId: S.String, - commitMessage: S.String, - commitTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + commitId: S.optional(S.String), + commitMessage: S.optional(S.String), + commitTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), startTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), status: JobStatus, endTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - jobType: JobType, + jobType: S.optional(JobType), sourceUrl: S.optional(S.String), sourceUrlType: S.optional(SourceUrlType), }), @@ -1217,37 +1209,35 @@ export interface GetBackendEnvironmentRequest { appId: string; environmentName: string; } -export const GetBackendEnvironmentRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - appId: S.String.pipe(T.HttpLabel("appId")), - environmentName: S.String.pipe(T.HttpLabel("environmentName")), - }).pipe( - T.all( - ns, - T.Http({ - method: "GET", - uri: "/apps/{appId}/backendenvironments/{environmentName}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetBackendEnvironmentRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + appId: S.String.pipe(T.HttpLabel("appId")), + environmentName: S.String.pipe(T.HttpLabel("environmentName")), + }).pipe( + T.all( + ns, + T.Http({ + method: "GET", + uri: "/apps/{appId}/backendenvironments/{environmentName}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetBackendEnvironmentRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetBackendEnvironmentRequest", +}) as any as S.Schema; export interface GetBackendEnvironmentResult { backendEnvironment: BackendEnvironment; } -export const GetBackendEnvironmentResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ backendEnvironment: BackendEnvironment }).pipe(ns), - ).annotate({ - identifier: "GetBackendEnvironmentResult", - }) as any as S.Schema; +export const GetBackendEnvironmentResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ backendEnvironment: BackendEnvironment }).pipe(ns), +).annotate({ + identifier: "GetBackendEnvironmentResult", +}) as any as S.Schema; export interface GetBranchRequest { appId: string; branchName: string; @@ -1282,25 +1272,24 @@ export interface GetDomainAssociationRequest { appId: string; domainName: string; } -export const GetDomainAssociationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - appId: S.String.pipe(T.HttpLabel("appId")), - domainName: S.String.pipe(T.HttpLabel("domainName")), - }).pipe( - T.all( - ns, - T.Http({ method: "GET", uri: "/apps/{appId}/domains/{domainName}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetDomainAssociationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + appId: S.String.pipe(T.HttpLabel("appId")), + domainName: S.String.pipe(T.HttpLabel("domainName")), + }).pipe( + T.all( + ns, + T.Http({ method: "GET", uri: "/apps/{appId}/domains/{domainName}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetDomainAssociationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetDomainAssociationRequest", +}) as any as S.Schema; export interface GetDomainAssociationResult { domainAssociation: DomainAssociation; } @@ -1494,44 +1483,40 @@ export interface ListBackendEnvironmentsRequest { nextToken?: string; maxResults?: number; } -export const ListBackendEnvironmentsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - appId: S.String.pipe(T.HttpLabel("appId")), - environmentName: S.optional(S.String).pipe( - T.HttpQuery("environmentName"), - ), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - }).pipe( - T.all( - ns, - T.Http({ method: "GET", uri: "/apps/{appId}/backendenvironments" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListBackendEnvironmentsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + appId: S.String.pipe(T.HttpLabel("appId")), + environmentName: S.optional(S.String).pipe(T.HttpQuery("environmentName")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + }).pipe( + T.all( + ns, + T.Http({ method: "GET", uri: "/apps/{appId}/backendenvironments" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListBackendEnvironmentsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListBackendEnvironmentsRequest", +}) as any as S.Schema; export type BackendEnvironments = BackendEnvironment[]; export const BackendEnvironments = /*@__PURE__*/ S.Array(BackendEnvironment); export interface ListBackendEnvironmentsResult { backendEnvironments: BackendEnvironment[]; nextToken?: string; } -export const ListBackendEnvironmentsResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - backendEnvironments: BackendEnvironments, - nextToken: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "ListBackendEnvironmentsResult", - }) as any as S.Schema; +export const ListBackendEnvironmentsResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + backendEnvironments: BackendEnvironments, + nextToken: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "ListBackendEnvironmentsResult", +}) as any as S.Schema; export interface ListBranchesRequest { appId: string; nextToken?: string; @@ -1572,41 +1557,39 @@ export interface ListDomainAssociationsRequest { nextToken?: string; maxResults?: number; } -export const ListDomainAssociationsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - appId: S.String.pipe(T.HttpLabel("appId")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - }).pipe( - T.all( - ns, - T.Http({ method: "GET", uri: "/apps/{appId}/domains" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListDomainAssociationsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + appId: S.String.pipe(T.HttpLabel("appId")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + }).pipe( + T.all( + ns, + T.Http({ method: "GET", uri: "/apps/{appId}/domains" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListDomainAssociationsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListDomainAssociationsRequest", +}) as any as S.Schema; export type DomainAssociations = DomainAssociation[]; export const DomainAssociations = /*@__PURE__*/ S.Array(DomainAssociation); export interface ListDomainAssociationsResult { domainAssociations: DomainAssociation[]; nextToken?: string; } -export const ListDomainAssociationsResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainAssociations: DomainAssociations, - nextToken: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "ListDomainAssociationsResult", - }) as any as S.Schema; +export const ListDomainAssociationsResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainAssociations: DomainAssociations, + nextToken: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "ListDomainAssociationsResult", +}) as any as S.Schema; export interface ListJobsRequest { appId: string; branchName: string; @@ -1669,12 +1652,11 @@ export const ListTagsForResourceRequest = /*@__PURE__*/ S.suspend(() => export interface ListTagsForResourceResponse { tags?: { [key: string]: string | undefined }; } -export const ListTagsForResourceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ tags: S.optional(TagMap) }).pipe(ns), - ).annotate({ - identifier: "ListTagsForResourceResponse", - }) as any as S.Schema; +export const ListTagsForResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ tags: S.optional(TagMap) }).pipe(ns), +).annotate({ + identifier: "ListTagsForResourceResponse", +}) as any as S.Schema; export interface ListWebhooksRequest { appId: string; nextToken?: string; @@ -2026,39 +2008,37 @@ export interface UpdateDomainAssociationRequest { autoSubDomainIAMRole?: string; certificateSettings?: CertificateSettings; } -export const UpdateDomainAssociationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - appId: S.String.pipe(T.HttpLabel("appId")), - domainName: S.String.pipe(T.HttpLabel("domainName")), - enableAutoSubDomain: S.optional(S.Boolean), - subDomainSettings: S.optional(SubDomainSettings), - autoSubDomainCreationPatterns: S.optional(AutoSubDomainCreationPatterns), - autoSubDomainIAMRole: S.optional(S.String), - certificateSettings: S.optional(CertificateSettings), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/apps/{appId}/domains/{domainName}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateDomainAssociationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + appId: S.String.pipe(T.HttpLabel("appId")), + domainName: S.String.pipe(T.HttpLabel("domainName")), + enableAutoSubDomain: S.optional(S.Boolean), + subDomainSettings: S.optional(SubDomainSettings), + autoSubDomainCreationPatterns: S.optional(AutoSubDomainCreationPatterns), + autoSubDomainIAMRole: S.optional(S.String), + certificateSettings: S.optional(CertificateSettings), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/apps/{appId}/domains/{domainName}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateDomainAssociationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateDomainAssociationRequest", +}) as any as S.Schema; export interface UpdateDomainAssociationResult { domainAssociation: DomainAssociation; } -export const UpdateDomainAssociationResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ domainAssociation: DomainAssociation }).pipe(ns), - ).annotate({ - identifier: "UpdateDomainAssociationResult", - }) as any as S.Schema; +export const UpdateDomainAssociationResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ domainAssociation: DomainAssociation }).pipe(ns), +).annotate({ + identifier: "UpdateDomainAssociationResult", +}) as any as S.Schema; export interface UpdateWebhookRequest { webhookId: string; branchName?: string; @@ -2096,30 +2076,41 @@ export const UpdateWebhookResult = /*@__PURE__*/ S.suspend(() => export class BadRequestException extends S.TaggedErrorClass()( "BadRequestException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class DependentServiceFailureException extends S.TaggedErrorClass()( "DependentServiceFailureException", { message: S.optional(S.String) }, + T.HttpError(503), ).pipe(C.withServerError) {} export class InternalFailureException extends S.TaggedErrorClass()( "InternalFailureException", { message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class LimitExceededException extends S.TaggedErrorClass()( "LimitExceededException", { message: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class UnauthorizedException extends S.TaggedErrorClass()( "UnauthorizedException", { message: S.optional(S.String) }, + T.HttpError(401), ).pipe(C.withAuthError) {} +export class TimeoutException extends S.TaggedErrorClass()( + "TimeoutException", + { message: S.optional(S.String) }, +) {} export class NotFoundException extends S.TaggedErrorClass()( "NotFoundException", { message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { code: S.String, message: S.String }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} //# Operations @@ -2129,6 +2120,7 @@ export type CreateAppError = | InternalFailureException | LimitExceededException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Creates a new Amplify app. @@ -2147,6 +2139,7 @@ export const createApp: API.OperationMethod< InternalFailureException, LimitExceededException, UnauthorizedException, + TimeoutException, ], operationName: "CreateApp", })); @@ -2156,6 +2149,7 @@ export type CreateBackendEnvironmentError = | LimitExceededException | NotFoundException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Creates a new backend environment for an Amplify app. @@ -2180,6 +2174,7 @@ export const createBackendEnvironment: API.OperationMethod< LimitExceededException, NotFoundException, UnauthorizedException, + TimeoutException, ], operationName: "CreateBackendEnvironment", })); @@ -2190,6 +2185,7 @@ export type CreateBranchError = | LimitExceededException | NotFoundException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Creates a new branch for an Amplify app. @@ -2209,6 +2205,7 @@ export const createBranch: API.OperationMethod< LimitExceededException, NotFoundException, UnauthorizedException, + TimeoutException, ], operationName: "CreateBranch", })); @@ -2217,6 +2214,7 @@ export type CreateDeploymentError = | InternalFailureException | LimitExceededException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Creates a deployment for a manually deployed Amplify app. Manually deployed apps are @@ -2240,6 +2238,7 @@ export const createDeployment: API.OperationMethod< InternalFailureException, LimitExceededException, UnauthorizedException, + TimeoutException, ], operationName: "CreateDeployment", })); @@ -2250,6 +2249,7 @@ export type CreateDomainAssociationError = | LimitExceededException | NotFoundException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Creates a new domain association for an Amplify app. This action associates a custom @@ -2270,6 +2270,7 @@ export const createDomainAssociation: API.OperationMethod< LimitExceededException, NotFoundException, UnauthorizedException, + TimeoutException, ], operationName: "CreateDomainAssociation", })); @@ -2280,6 +2281,7 @@ export type CreateWebhookError = | LimitExceededException | NotFoundException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Creates a new webhook on an Amplify app. @@ -2299,6 +2301,7 @@ export const createWebhook: API.OperationMethod< LimitExceededException, NotFoundException, UnauthorizedException, + TimeoutException, ], operationName: "CreateWebhook", })); @@ -2308,6 +2311,7 @@ export type DeleteAppError = | InternalFailureException | NotFoundException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Deletes an existing Amplify app specified by an app ID. @@ -2326,6 +2330,7 @@ export const deleteApp: API.OperationMethod< InternalFailureException, NotFoundException, UnauthorizedException, + TimeoutException, ], operationName: "DeleteApp", })); @@ -2335,6 +2340,7 @@ export type DeleteBackendEnvironmentError = | InternalFailureException | NotFoundException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Deletes a backend environment for an Amplify app. @@ -2359,6 +2365,7 @@ export const deleteBackendEnvironment: API.OperationMethod< InternalFailureException, NotFoundException, UnauthorizedException, + TimeoutException, ], operationName: "DeleteBackendEnvironment", })); @@ -2368,6 +2375,7 @@ export type DeleteBranchError = | InternalFailureException | NotFoundException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Deletes a branch for an Amplify app. @@ -2386,6 +2394,7 @@ export const deleteBranch: API.OperationMethod< InternalFailureException, NotFoundException, UnauthorizedException, + TimeoutException, ], operationName: "DeleteBranch", })); @@ -2395,6 +2404,7 @@ export type DeleteDomainAssociationError = | InternalFailureException | NotFoundException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Deletes a domain association for an Amplify app. @@ -2413,6 +2423,7 @@ export const deleteDomainAssociation: API.OperationMethod< InternalFailureException, NotFoundException, UnauthorizedException, + TimeoutException, ], operationName: "DeleteDomainAssociation", })); @@ -2422,6 +2433,7 @@ export type DeleteJobError = | LimitExceededException | NotFoundException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Deletes a job for a branch of an Amplify app. @@ -2440,6 +2452,7 @@ export const deleteJob: API.OperationMethod< LimitExceededException, NotFoundException, UnauthorizedException, + TimeoutException, ], operationName: "DeleteJob", })); @@ -2449,6 +2462,7 @@ export type DeleteWebhookError = | LimitExceededException | NotFoundException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Deletes a webhook. @@ -2467,6 +2481,7 @@ export const deleteWebhook: API.OperationMethod< LimitExceededException, NotFoundException, UnauthorizedException, + TimeoutException, ], operationName: "DeleteWebhook", })); @@ -2475,6 +2490,7 @@ export type GenerateAccessLogsError = | InternalFailureException | NotFoundException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Returns the website access logs for a specific time range using a presigned URL. @@ -2492,6 +2508,7 @@ export const generateAccessLogs: API.OperationMethod< InternalFailureException, NotFoundException, UnauthorizedException, + TimeoutException, ], operationName: "GenerateAccessLogs", })); @@ -2500,6 +2517,7 @@ export type GetAppError = | InternalFailureException | NotFoundException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Returns an existing Amplify app specified by an app ID. @@ -2517,6 +2535,7 @@ export const getApp: API.OperationMethod< InternalFailureException, NotFoundException, UnauthorizedException, + TimeoutException, ], operationName: "GetApp", })); @@ -2526,6 +2545,7 @@ export type GetArtifactUrlError = | LimitExceededException | NotFoundException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Returns the artifact info that corresponds to an artifact id. @@ -2544,6 +2564,7 @@ export const getArtifactUrl: API.OperationMethod< LimitExceededException, NotFoundException, UnauthorizedException, + TimeoutException, ], operationName: "GetArtifactUrl", })); @@ -2552,6 +2573,7 @@ export type GetBackendEnvironmentError = | InternalFailureException | NotFoundException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Returns a backend environment for an Amplify app. @@ -2575,6 +2597,7 @@ export const getBackendEnvironment: API.OperationMethod< InternalFailureException, NotFoundException, UnauthorizedException, + TimeoutException, ], operationName: "GetBackendEnvironment", })); @@ -2583,6 +2606,7 @@ export type GetBranchError = | InternalFailureException | NotFoundException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Returns a branch for an Amplify app. @@ -2600,6 +2624,7 @@ export const getBranch: API.OperationMethod< InternalFailureException, NotFoundException, UnauthorizedException, + TimeoutException, ], operationName: "GetBranch", })); @@ -2608,6 +2633,7 @@ export type GetDomainAssociationError = | InternalFailureException | NotFoundException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Returns the domain information for an Amplify app. @@ -2625,6 +2651,7 @@ export const getDomainAssociation: API.OperationMethod< InternalFailureException, NotFoundException, UnauthorizedException, + TimeoutException, ], operationName: "GetDomainAssociation", })); @@ -2634,6 +2661,7 @@ export type GetJobError = | LimitExceededException | NotFoundException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Returns a job for a branch of an Amplify app. @@ -2652,6 +2680,7 @@ export const getJob: API.OperationMethod< LimitExceededException, NotFoundException, UnauthorizedException, + TimeoutException, ], operationName: "GetJob", })); @@ -2661,6 +2690,7 @@ export type GetWebhookError = | LimitExceededException | NotFoundException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Returns the webhook information that corresponds to a specified webhook ID. @@ -2679,6 +2709,7 @@ export const getWebhook: API.OperationMethod< LimitExceededException, NotFoundException, UnauthorizedException, + TimeoutException, ], operationName: "GetWebhook", })); @@ -2686,6 +2717,7 @@ export type ListAppsError = | BadRequestException | InternalFailureException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Returns a list of the existing Amplify apps. @@ -2717,6 +2749,7 @@ export const listApps: API.OperationMethod< BadRequestException, InternalFailureException, UnauthorizedException, + TimeoutException, ], operationName: "ListApps", pagination: { @@ -2731,6 +2764,7 @@ export type ListArtifactsError = | InternalFailureException | LimitExceededException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Returns a list of end-to-end testing artifacts for a specified app, branch, and @@ -2755,6 +2789,7 @@ export const listArtifacts: API.OperationMethod< InternalFailureException, LimitExceededException, UnauthorizedException, + TimeoutException, ], operationName: "ListArtifacts", })); @@ -2762,6 +2797,7 @@ export type ListBackendEnvironmentsError = | BadRequestException | InternalFailureException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Lists the backend environments for an Amplify app. @@ -2784,6 +2820,7 @@ export const listBackendEnvironments: API.OperationMethod< BadRequestException, InternalFailureException, UnauthorizedException, + TimeoutException, ], operationName: "ListBackendEnvironments", })); @@ -2791,6 +2828,7 @@ export type ListBranchesError = | BadRequestException | InternalFailureException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Lists the branches of an Amplify app. @@ -2822,6 +2860,7 @@ export const listBranches: API.OperationMethod< BadRequestException, InternalFailureException, UnauthorizedException, + TimeoutException, ], operationName: "ListBranches", pagination: { @@ -2835,6 +2874,7 @@ export type ListDomainAssociationsError = | BadRequestException | InternalFailureException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Returns the domain associations for an Amplify app. @@ -2866,6 +2906,7 @@ export const listDomainAssociations: API.OperationMethod< BadRequestException, InternalFailureException, UnauthorizedException, + TimeoutException, ], operationName: "ListDomainAssociations", pagination: { @@ -2880,6 +2921,7 @@ export type ListJobsError = | InternalFailureException | LimitExceededException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Lists the jobs for a branch of an Amplify app. @@ -2912,6 +2954,7 @@ export const listJobs: API.OperationMethod< InternalFailureException, LimitExceededException, UnauthorizedException, + TimeoutException, ], operationName: "ListJobs", pagination: { @@ -2925,6 +2968,7 @@ export type ListTagsForResourceError = | BadRequestException | InternalFailureException | ResourceNotFoundException + | TimeoutException | CommonErrors; /** * Returns a list of tags for a specified Amazon Resource Name (ARN). @@ -2941,6 +2985,7 @@ export const listTagsForResource: API.OperationMethod< BadRequestException, InternalFailureException, ResourceNotFoundException, + TimeoutException, ], operationName: "ListTagsForResource", })); @@ -2949,6 +2994,7 @@ export type ListWebhooksError = | InternalFailureException | LimitExceededException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Returns a list of webhooks for an Amplify app. @@ -2966,6 +3012,7 @@ export const listWebhooks: API.OperationMethod< InternalFailureException, LimitExceededException, UnauthorizedException, + TimeoutException, ], operationName: "ListWebhooks", })); @@ -2975,6 +3022,7 @@ export type StartDeploymentError = | LimitExceededException | NotFoundException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Starts a deployment for a manually deployed app. Manually deployed apps are not @@ -2999,6 +3047,7 @@ export const startDeployment: API.OperationMethod< LimitExceededException, NotFoundException, UnauthorizedException, + TimeoutException, ], operationName: "StartDeployment", })); @@ -3008,6 +3057,7 @@ export type StartJobError = | LimitExceededException | NotFoundException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Starts a new job for a branch of an Amplify app. @@ -3026,6 +3076,7 @@ export const startJob: API.OperationMethod< LimitExceededException, NotFoundException, UnauthorizedException, + TimeoutException, ], operationName: "StartJob", })); @@ -3035,6 +3086,7 @@ export type StopJobError = | LimitExceededException | NotFoundException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Stops a job that is in progress for a branch of an Amplify app. @@ -3053,6 +3105,7 @@ export const stopJob: API.OperationMethod< LimitExceededException, NotFoundException, UnauthorizedException, + TimeoutException, ], operationName: "StopJob", })); @@ -3060,6 +3113,7 @@ export type TagResourceError = | BadRequestException | InternalFailureException | ResourceNotFoundException + | TimeoutException | CommonErrors; /** * Tags the resource with a tag key and value. @@ -3076,6 +3130,7 @@ export const tagResource: API.OperationMethod< BadRequestException, InternalFailureException, ResourceNotFoundException, + TimeoutException, ], operationName: "TagResource", })); @@ -3083,6 +3138,7 @@ export type UntagResourceError = | BadRequestException | InternalFailureException | ResourceNotFoundException + | TimeoutException | CommonErrors; /** * Untags a resource with a specified Amazon Resource Name (ARN). @@ -3099,6 +3155,7 @@ export const untagResource: API.OperationMethod< BadRequestException, InternalFailureException, ResourceNotFoundException, + TimeoutException, ], operationName: "UntagResource", })); @@ -3107,6 +3164,7 @@ export type UpdateAppError = | InternalFailureException | NotFoundException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Updates an existing Amplify app. @@ -3124,6 +3182,7 @@ export const updateApp: API.OperationMethod< InternalFailureException, NotFoundException, UnauthorizedException, + TimeoutException, ], operationName: "UpdateApp", })); @@ -3133,6 +3192,7 @@ export type UpdateBranchError = | InternalFailureException | NotFoundException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Updates a branch for an Amplify app. @@ -3151,6 +3211,7 @@ export const updateBranch: API.OperationMethod< InternalFailureException, NotFoundException, UnauthorizedException, + TimeoutException, ], operationName: "UpdateBranch", })); @@ -3160,6 +3221,7 @@ export type UpdateDomainAssociationError = | InternalFailureException | NotFoundException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Creates a new domain association for an Amplify app. @@ -3178,6 +3240,7 @@ export const updateDomainAssociation: API.OperationMethod< InternalFailureException, NotFoundException, UnauthorizedException, + TimeoutException, ], operationName: "UpdateDomainAssociation", })); @@ -3187,6 +3250,7 @@ export type UpdateWebhookError = | InternalFailureException | NotFoundException | UnauthorizedException + | TimeoutException | CommonErrors; /** * Updates a webhook. @@ -3205,6 +3269,7 @@ export const updateWebhook: API.OperationMethod< InternalFailureException, NotFoundException, UnauthorizedException, + TimeoutException, ], operationName: "UpdateWebhook", })); diff --git a/packages/aws/src/services/api-gateway.ts b/packages/aws/src/services/api-gateway.ts index 9c08d34109..6e782830f1 100644 --- a/packages/aws/src/services/api-gateway.ts +++ b/packages/aws/src/services/api-gateway.ts @@ -1,4 +1,5 @@ import * as HttpClient from "effect/unstable/http/HttpClient"; +import * as redacted from "effect/Redacted"; import * as S from "@distilled.cloud/core/schema"; import * as stream from "effect/Stream"; import * as API from "../client/api.ts"; @@ -7,6 +8,7 @@ import * as C from "../category.ts"; import type { Credentials } from "../credentials.ts"; import type { CommonErrors } from "../errors.ts"; import type { Region } from "../region.ts"; +import { SensitiveString } from "../sensitive.ts"; const svc = T.AwsApiService({ sdkId: "API Gateway", serviceShapeName: "BackplaneControlService", @@ -111,7 +113,7 @@ export interface CreateApiKeyRequest { description?: string; enabled?: boolean; generateDistinctId?: boolean; - value?: string; + value?: string | redacted.Redacted; stageKeys?: StageKey[]; customerId?: string; tags?: { [key: string]: string | undefined }; @@ -122,7 +124,7 @@ export const CreateApiKeyRequest = /*@__PURE__*/ S.suspend(() => description: S.optional(S.String), enabled: S.optional(S.Boolean), generateDistinctId: S.optional(S.Boolean), - value: S.optional(S.String), + value: S.optional(SensitiveString), stageKeys: S.optional(ListOfStageKeys), customerId: S.optional(S.String), tags: S.optional(MapOfStringToString), @@ -143,7 +145,7 @@ export type ListOfString = string[]; export const ListOfString = /*@__PURE__*/ S.Array(S.String); export interface ApiKey { id?: string; - value?: string; + value?: string | redacted.Redacted; name?: string; customerId?: string; description?: string; @@ -156,7 +158,7 @@ export interface ApiKey { export const ApiKey = /*@__PURE__*/ S.suspend(() => S.Struct({ id: S.optional(S.String), - value: S.optional(S.String), + value: S.optional(SensitiveString), name: S.optional(S.String), customerId: S.optional(S.String), description: S.optional(S.String), @@ -4839,10 +4841,12 @@ export const UpdateVpcLinkRequest = /*@__PURE__*/ S.suspend(() => export class BadRequestException extends S.TaggedErrorClass()( "BadRequestException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class LimitExceededException extends S.TaggedErrorClass()( "LimitExceededException", @@ -4850,10 +4854,12 @@ export class LimitExceededException extends S.TaggedErrorClass()( "NotFoundException", { message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class TooManyRequestsException extends S.TaggedErrorClass()( "TooManyRequestsException", @@ -4861,10 +4867,12 @@ export class TooManyRequestsException extends S.TaggedErrorClass()( "UnauthorizedException", { message: S.optional(S.String) }, + T.HttpError(401), ).pipe(C.withAuthError) {} export class ServiceUnavailableException extends S.TaggedErrorClass()( "ServiceUnavailableException", @@ -4872,6 +4880,7 @@ export class ServiceUnavailableException extends S.TaggedErrorClass - S.Struct({ - flowName: S.String, - executionIds: S.optional(ExecutionIds), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/cancel-flow-executions" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CancelFlowExecutionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ flowName: S.String, executionIds: S.optional(ExecutionIds) }).pipe( + T.all( + T.Http({ method: "POST", uri: "/cancel-flow-executions" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CancelFlowExecutionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CancelFlowExecutionsRequest", +}) as any as S.Schema; export interface CancelFlowExecutionsResponse { invalidExecutions?: string[]; } -export const CancelFlowExecutionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ invalidExecutions: S.optional(ExecutionIds) }), - ).annotate({ - identifier: "CancelFlowExecutionsResponse", - }) as any as S.Schema; +export const CancelFlowExecutionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ invalidExecutions: S.optional(ExecutionIds) }), +).annotate({ + identifier: "CancelFlowExecutionsResponse", +}) as any as S.Schema; export type ConnectorType = | "Salesforce" | "Singular" @@ -260,48 +255,54 @@ export const ConnectorType = /*@__PURE__*/ S.String; export type ConnectionMode = "Public" | "Private" | (string & {}); export const ConnectionMode = /*@__PURE__*/ S.String; export interface AmplitudeConnectorProfileProperties {} -export const AmplitudeConnectorProfileProperties = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "AmplitudeConnectorProfileProperties", - }) as any as S.Schema; +export const AmplitudeConnectorProfileProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "AmplitudeConnectorProfileProperties", +}) as any as S.Schema; export interface DatadogConnectorProfileProperties { instanceUrl: string; } -export const DatadogConnectorProfileProperties = - /*@__PURE__*/ S.suspend(() => S.Struct({ instanceUrl: S.String })).annotate({ - identifier: "DatadogConnectorProfileProperties", - }) as any as S.Schema; +export const DatadogConnectorProfileProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ instanceUrl: S.String }), +).annotate({ + identifier: "DatadogConnectorProfileProperties", +}) as any as S.Schema; export interface DynatraceConnectorProfileProperties { instanceUrl: string; } -export const DynatraceConnectorProfileProperties = - /*@__PURE__*/ S.suspend(() => S.Struct({ instanceUrl: S.String })).annotate({ - identifier: "DynatraceConnectorProfileProperties", - }) as any as S.Schema; +export const DynatraceConnectorProfileProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ instanceUrl: S.String }), +).annotate({ + identifier: "DynatraceConnectorProfileProperties", +}) as any as S.Schema; export interface GoogleAnalyticsConnectorProfileProperties {} export const GoogleAnalyticsConnectorProfileProperties = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ identifier: "GoogleAnalyticsConnectorProfileProperties", }) as any as S.Schema; export interface HoneycodeConnectorProfileProperties {} -export const HoneycodeConnectorProfileProperties = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "HoneycodeConnectorProfileProperties", - }) as any as S.Schema; +export const HoneycodeConnectorProfileProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "HoneycodeConnectorProfileProperties", +}) as any as S.Schema; export interface InforNexusConnectorProfileProperties { instanceUrl: string; } -export const InforNexusConnectorProfileProperties = - /*@__PURE__*/ S.suspend(() => S.Struct({ instanceUrl: S.String })).annotate({ - identifier: "InforNexusConnectorProfileProperties", - }) as any as S.Schema; +export const InforNexusConnectorProfileProperties = /*@__PURE__*/ S.suspend( + () => S.Struct({ instanceUrl: S.String }), +).annotate({ + identifier: "InforNexusConnectorProfileProperties", +}) as any as S.Schema; export interface MarketoConnectorProfileProperties { instanceUrl: string; } -export const MarketoConnectorProfileProperties = - /*@__PURE__*/ S.suspend(() => S.Struct({ instanceUrl: S.String })).annotate({ - identifier: "MarketoConnectorProfileProperties", - }) as any as S.Schema; +export const MarketoConnectorProfileProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ instanceUrl: S.String }), +).annotate({ + identifier: "MarketoConnectorProfileProperties", +}) as any as S.Schema; export interface RedshiftConnectorProfileProperties { databaseUrl?: string; bucketName: string; @@ -313,56 +314,58 @@ export interface RedshiftConnectorProfileProperties { workgroupName?: string; databaseName?: string; } -export const RedshiftConnectorProfileProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - databaseUrl: S.optional(S.String), - bucketName: S.String, - bucketPrefix: S.optional(S.String), - roleArn: S.String, - dataApiRoleArn: S.optional(S.String), - isRedshiftServerless: S.optional(S.Boolean), - clusterIdentifier: S.optional(S.String), - workgroupName: S.optional(S.String), - databaseName: S.optional(S.String), - }), - ).annotate({ - identifier: "RedshiftConnectorProfileProperties", - }) as any as S.Schema; +export const RedshiftConnectorProfileProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + databaseUrl: S.optional(S.String), + bucketName: S.String, + bucketPrefix: S.optional(S.String), + roleArn: S.String, + dataApiRoleArn: S.optional(S.String), + isRedshiftServerless: S.optional(S.Boolean), + clusterIdentifier: S.optional(S.String), + workgroupName: S.optional(S.String), + databaseName: S.optional(S.String), + }), +).annotate({ + identifier: "RedshiftConnectorProfileProperties", +}) as any as S.Schema; export interface SalesforceConnectorProfileProperties { instanceUrl?: string; isSandboxEnvironment?: boolean; usePrivateLinkForMetadataAndAuthorization?: boolean; } -export const SalesforceConnectorProfileProperties = - /*@__PURE__*/ S.suspend(() => +export const SalesforceConnectorProfileProperties = /*@__PURE__*/ S.suspend( + () => S.Struct({ instanceUrl: S.optional(S.String), isSandboxEnvironment: S.optional(S.Boolean), usePrivateLinkForMetadataAndAuthorization: S.optional(S.Boolean), }), - ).annotate({ - identifier: "SalesforceConnectorProfileProperties", - }) as any as S.Schema; +).annotate({ + identifier: "SalesforceConnectorProfileProperties", +}) as any as S.Schema; export interface ServiceNowConnectorProfileProperties { instanceUrl: string; } -export const ServiceNowConnectorProfileProperties = - /*@__PURE__*/ S.suspend(() => S.Struct({ instanceUrl: S.String })).annotate({ - identifier: "ServiceNowConnectorProfileProperties", - }) as any as S.Schema; +export const ServiceNowConnectorProfileProperties = /*@__PURE__*/ S.suspend( + () => S.Struct({ instanceUrl: S.String }), +).annotate({ + identifier: "ServiceNowConnectorProfileProperties", +}) as any as S.Schema; export interface SingularConnectorProfileProperties {} -export const SingularConnectorProfileProperties = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "SingularConnectorProfileProperties", - }) as any as S.Schema; +export const SingularConnectorProfileProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "SingularConnectorProfileProperties", +}) as any as S.Schema; export interface SlackConnectorProfileProperties { instanceUrl: string; } -export const SlackConnectorProfileProperties = - /*@__PURE__*/ S.suspend(() => S.Struct({ instanceUrl: S.String })).annotate({ - identifier: "SlackConnectorProfileProperties", - }) as any as S.Schema; +export const SlackConnectorProfileProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ instanceUrl: S.String }), +).annotate({ + identifier: "SlackConnectorProfileProperties", +}) as any as S.Schema; export interface SnowflakeConnectorProfileProperties { warehouse: string; stage: string; @@ -372,39 +375,41 @@ export interface SnowflakeConnectorProfileProperties { accountName?: string; region?: string; } -export const SnowflakeConnectorProfileProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - warehouse: S.String, - stage: S.String, - bucketName: S.String, - bucketPrefix: S.optional(S.String), - privateLinkServiceName: S.optional(S.String), - accountName: S.optional(S.String), - region: S.optional(S.String), - }), - ).annotate({ - identifier: "SnowflakeConnectorProfileProperties", - }) as any as S.Schema; +export const SnowflakeConnectorProfileProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + warehouse: S.String, + stage: S.String, + bucketName: S.String, + bucketPrefix: S.optional(S.String), + privateLinkServiceName: S.optional(S.String), + accountName: S.optional(S.String), + region: S.optional(S.String), + }), +).annotate({ + identifier: "SnowflakeConnectorProfileProperties", +}) as any as S.Schema; export interface TrendmicroConnectorProfileProperties {} -export const TrendmicroConnectorProfileProperties = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "TrendmicroConnectorProfileProperties", - }) as any as S.Schema; +export const TrendmicroConnectorProfileProperties = /*@__PURE__*/ S.suspend( + () => S.Struct({}), +).annotate({ + identifier: "TrendmicroConnectorProfileProperties", +}) as any as S.Schema; export interface VeevaConnectorProfileProperties { instanceUrl: string; } -export const VeevaConnectorProfileProperties = - /*@__PURE__*/ S.suspend(() => S.Struct({ instanceUrl: S.String })).annotate({ - identifier: "VeevaConnectorProfileProperties", - }) as any as S.Schema; +export const VeevaConnectorProfileProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ instanceUrl: S.String }), +).annotate({ + identifier: "VeevaConnectorProfileProperties", +}) as any as S.Schema; export interface ZendeskConnectorProfileProperties { instanceUrl: string; } -export const ZendeskConnectorProfileProperties = - /*@__PURE__*/ S.suspend(() => S.Struct({ instanceUrl: S.String })).annotate({ - identifier: "ZendeskConnectorProfileProperties", - }) as any as S.Schema; +export const ZendeskConnectorProfileProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ instanceUrl: S.String }), +).annotate({ + identifier: "ZendeskConnectorProfileProperties", +}) as any as S.Schema; export type OAuthScopeList = string[]; export const OAuthScopeList = /*@__PURE__*/ S.Array(S.String); export interface OAuthProperties { @@ -431,21 +436,20 @@ export interface SAPODataConnectorProfileProperties { oAuthProperties?: OAuthProperties; disableSSO?: boolean; } -export const SAPODataConnectorProfileProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - applicationHostUrl: S.String, - applicationServicePath: S.String, - portNumber: S.Number, - clientNumber: S.String, - logonLanguage: S.optional(S.String), - privateLinkServiceName: S.optional(S.String), - oAuthProperties: S.optional(OAuthProperties), - disableSSO: S.optional(S.Boolean), - }), - ).annotate({ - identifier: "SAPODataConnectorProfileProperties", - }) as any as S.Schema; +export const SAPODataConnectorProfileProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + applicationHostUrl: S.String, + applicationServicePath: S.String, + portNumber: S.Number, + clientNumber: S.String, + logonLanguage: S.optional(S.String), + privateLinkServiceName: S.optional(S.String), + oAuthProperties: S.optional(OAuthProperties), + disableSSO: S.optional(S.Boolean), + }), +).annotate({ + identifier: "SAPODataConnectorProfileProperties", +}) as any as S.Schema; export type ProfilePropertiesMap = { [key: string]: string | undefined }; export const ProfilePropertiesMap = /*@__PURE__*/ S.Record( S.String, @@ -480,30 +484,28 @@ export interface CustomConnectorProfileProperties { profileProperties?: { [key: string]: string | undefined }; oAuth2Properties?: OAuth2Properties; } -export const CustomConnectorProfileProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - profileProperties: S.optional(ProfilePropertiesMap), - oAuth2Properties: S.optional(OAuth2Properties), - }), - ).annotate({ - identifier: "CustomConnectorProfileProperties", - }) as any as S.Schema; +export const CustomConnectorProfileProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + profileProperties: S.optional(ProfilePropertiesMap), + oAuth2Properties: S.optional(OAuth2Properties), + }), +).annotate({ + identifier: "CustomConnectorProfileProperties", +}) as any as S.Schema; export interface PardotConnectorProfileProperties { instanceUrl?: string; isSandboxEnvironment?: boolean; businessUnitId?: string; } -export const PardotConnectorProfileProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - instanceUrl: S.optional(S.String), - isSandboxEnvironment: S.optional(S.Boolean), - businessUnitId: S.optional(S.String), - }), - ).annotate({ - identifier: "PardotConnectorProfileProperties", - }) as any as S.Schema; +export const PardotConnectorProfileProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + instanceUrl: S.optional(S.String), + isSandboxEnvironment: S.optional(S.Boolean), + businessUnitId: S.optional(S.String), + }), +).annotate({ + identifier: "PardotConnectorProfileProperties", +}) as any as S.Schema; export interface ConnectorProfileProperties { Amplitude?: AmplitudeConnectorProfileProperties; Datadog?: DatadogConnectorProfileProperties; @@ -554,29 +556,28 @@ export interface AmplitudeConnectorProfileCredentials { apiKey: string | redacted.Redacted; secretKey: string | redacted.Redacted; } -export const AmplitudeConnectorProfileCredentials = - /*@__PURE__*/ S.suspend(() => - S.Struct({ apiKey: SensitiveString, secretKey: SensitiveString }), - ).annotate({ - identifier: "AmplitudeConnectorProfileCredentials", - }) as any as S.Schema; +export const AmplitudeConnectorProfileCredentials = /*@__PURE__*/ S.suspend( + () => S.Struct({ apiKey: SensitiveString, secretKey: SensitiveString }), +).annotate({ + identifier: "AmplitudeConnectorProfileCredentials", +}) as any as S.Schema; export interface DatadogConnectorProfileCredentials { apiKey: string | redacted.Redacted; - applicationKey: string; + applicationKey: string | redacted.Redacted; } -export const DatadogConnectorProfileCredentials = - /*@__PURE__*/ S.suspend(() => - S.Struct({ apiKey: SensitiveString, applicationKey: S.String }), - ).annotate({ - identifier: "DatadogConnectorProfileCredentials", - }) as any as S.Schema; +export const DatadogConnectorProfileCredentials = /*@__PURE__*/ S.suspend(() => + S.Struct({ apiKey: SensitiveString, applicationKey: SensitiveString }), +).annotate({ + identifier: "DatadogConnectorProfileCredentials", +}) as any as S.Schema; export interface DynatraceConnectorProfileCredentials { - apiToken: string; + apiToken: string | redacted.Redacted; } -export const DynatraceConnectorProfileCredentials = - /*@__PURE__*/ S.suspend(() => S.Struct({ apiToken: S.String })).annotate({ - identifier: "DynatraceConnectorProfileCredentials", - }) as any as S.Schema; +export const DynatraceConnectorProfileCredentials = /*@__PURE__*/ S.suspend( + () => S.Struct({ apiToken: SensitiveString }), +).annotate({ + identifier: "DynatraceConnectorProfileCredentials", +}) as any as S.Schema; export interface ConnectorOAuthRequest { authCode?: string; redirectUri?: string; @@ -593,7 +594,7 @@ export interface GoogleAnalyticsConnectorProfileCredentials { clientId: string; clientSecret: string | redacted.Redacted; accessToken?: string | redacted.Redacted; - refreshToken?: string; + refreshToken?: string | redacted.Redacted; oAuthRequest?: ConnectorOAuthRequest; } export const GoogleAnalyticsConnectorProfileCredentials = @@ -602,7 +603,7 @@ export const GoogleAnalyticsConnectorProfileCredentials = clientId: S.String, clientSecret: SensitiveString, accessToken: S.optional(SensitiveString), - refreshToken: S.optional(S.String), + refreshToken: S.optional(SensitiveString), oAuthRequest: S.optional(ConnectorOAuthRequest), }), ).annotate({ @@ -610,92 +611,90 @@ export const GoogleAnalyticsConnectorProfileCredentials = }) as any as S.Schema; export interface HoneycodeConnectorProfileCredentials { accessToken?: string | redacted.Redacted; - refreshToken?: string; + refreshToken?: string | redacted.Redacted; oAuthRequest?: ConnectorOAuthRequest; } -export const HoneycodeConnectorProfileCredentials = - /*@__PURE__*/ S.suspend(() => +export const HoneycodeConnectorProfileCredentials = /*@__PURE__*/ S.suspend( + () => S.Struct({ accessToken: S.optional(SensitiveString), - refreshToken: S.optional(S.String), + refreshToken: S.optional(SensitiveString), oAuthRequest: S.optional(ConnectorOAuthRequest), }), - ).annotate({ - identifier: "HoneycodeConnectorProfileCredentials", - }) as any as S.Schema; +).annotate({ + identifier: "HoneycodeConnectorProfileCredentials", +}) as any as S.Schema; export interface InforNexusConnectorProfileCredentials { accessKeyId: string | redacted.Redacted; userId: string; - secretAccessKey: string; - datakey: string; + secretAccessKey: string | redacted.Redacted; + datakey: string | redacted.Redacted; } -export const InforNexusConnectorProfileCredentials = - /*@__PURE__*/ S.suspend(() => +export const InforNexusConnectorProfileCredentials = /*@__PURE__*/ S.suspend( + () => S.Struct({ accessKeyId: SensitiveString, userId: S.String, - secretAccessKey: S.String, - datakey: S.String, + secretAccessKey: SensitiveString, + datakey: SensitiveString, }), - ).annotate({ - identifier: "InforNexusConnectorProfileCredentials", - }) as any as S.Schema; +).annotate({ + identifier: "InforNexusConnectorProfileCredentials", +}) as any as S.Schema; export interface MarketoConnectorProfileCredentials { clientId: string; clientSecret: string | redacted.Redacted; accessToken?: string | redacted.Redacted; oAuthRequest?: ConnectorOAuthRequest; } -export const MarketoConnectorProfileCredentials = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - clientId: S.String, - clientSecret: SensitiveString, - accessToken: S.optional(SensitiveString), - oAuthRequest: S.optional(ConnectorOAuthRequest), - }), - ).annotate({ - identifier: "MarketoConnectorProfileCredentials", - }) as any as S.Schema; +export const MarketoConnectorProfileCredentials = /*@__PURE__*/ S.suspend(() => + S.Struct({ + clientId: S.String, + clientSecret: SensitiveString, + accessToken: S.optional(SensitiveString), + oAuthRequest: S.optional(ConnectorOAuthRequest), + }), +).annotate({ + identifier: "MarketoConnectorProfileCredentials", +}) as any as S.Schema; export interface RedshiftConnectorProfileCredentials { username?: string; password?: string | redacted.Redacted; } -export const RedshiftConnectorProfileCredentials = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - username: S.optional(S.String), - password: S.optional(SensitiveString), - }), - ).annotate({ - identifier: "RedshiftConnectorProfileCredentials", - }) as any as S.Schema; +export const RedshiftConnectorProfileCredentials = /*@__PURE__*/ S.suspend(() => + S.Struct({ + username: S.optional(S.String), + password: S.optional(SensitiveString), + }), +).annotate({ + identifier: "RedshiftConnectorProfileCredentials", +}) as any as S.Schema; export interface SalesforceConnectorProfileCredentials { accessToken?: string | redacted.Redacted; - refreshToken?: string; + refreshToken?: string | redacted.Redacted; oAuthRequest?: ConnectorOAuthRequest; clientCredentialsArn?: string | redacted.Redacted; oAuth2GrantType?: OAuth2GrantType; jwtToken?: string | redacted.Redacted; } -export const SalesforceConnectorProfileCredentials = - /*@__PURE__*/ S.suspend(() => +export const SalesforceConnectorProfileCredentials = /*@__PURE__*/ S.suspend( + () => S.Struct({ accessToken: S.optional(SensitiveString), - refreshToken: S.optional(S.String), + refreshToken: S.optional(SensitiveString), oAuthRequest: S.optional(ConnectorOAuthRequest), clientCredentialsArn: S.optional(SensitiveString), oAuth2GrantType: S.optional(OAuth2GrantType), jwtToken: S.optional(SensitiveString), }), - ).annotate({ - identifier: "SalesforceConnectorProfileCredentials", - }) as any as S.Schema; +).annotate({ + identifier: "SalesforceConnectorProfileCredentials", +}) as any as S.Schema; export interface OAuth2Credentials { clientId?: string; clientSecret?: string | redacted.Redacted; accessToken?: string | redacted.Redacted; - refreshToken?: string; + refreshToken?: string | redacted.Redacted; oAuthRequest?: ConnectorOAuthRequest; } export const OAuth2Credentials = /*@__PURE__*/ S.suspend(() => @@ -703,7 +702,7 @@ export const OAuth2Credentials = /*@__PURE__*/ S.suspend(() => clientId: S.optional(S.String), clientSecret: S.optional(SensitiveString), accessToken: S.optional(SensitiveString), - refreshToken: S.optional(S.String), + refreshToken: S.optional(SensitiveString), oAuthRequest: S.optional(ConnectorOAuthRequest), }), ).annotate({ @@ -714,88 +713,82 @@ export interface ServiceNowConnectorProfileCredentials { password?: string | redacted.Redacted; oAuth2Credentials?: OAuth2Credentials; } -export const ServiceNowConnectorProfileCredentials = - /*@__PURE__*/ S.suspend(() => +export const ServiceNowConnectorProfileCredentials = /*@__PURE__*/ S.suspend( + () => S.Struct({ username: S.optional(S.String), password: S.optional(SensitiveString), oAuth2Credentials: S.optional(OAuth2Credentials), }), - ).annotate({ - identifier: "ServiceNowConnectorProfileCredentials", - }) as any as S.Schema; +).annotate({ + identifier: "ServiceNowConnectorProfileCredentials", +}) as any as S.Schema; export interface SingularConnectorProfileCredentials { apiKey: string | redacted.Redacted; } -export const SingularConnectorProfileCredentials = - /*@__PURE__*/ S.suspend(() => S.Struct({ apiKey: SensitiveString })).annotate( - { - identifier: "SingularConnectorProfileCredentials", - }, - ) as any as S.Schema; +export const SingularConnectorProfileCredentials = /*@__PURE__*/ S.suspend(() => + S.Struct({ apiKey: SensitiveString }), +).annotate({ + identifier: "SingularConnectorProfileCredentials", +}) as any as S.Schema; export interface SlackConnectorProfileCredentials { clientId: string; clientSecret: string | redacted.Redacted; accessToken?: string | redacted.Redacted; oAuthRequest?: ConnectorOAuthRequest; } -export const SlackConnectorProfileCredentials = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - clientId: S.String, - clientSecret: SensitiveString, - accessToken: S.optional(SensitiveString), - oAuthRequest: S.optional(ConnectorOAuthRequest), - }), - ).annotate({ - identifier: "SlackConnectorProfileCredentials", - }) as any as S.Schema; +export const SlackConnectorProfileCredentials = /*@__PURE__*/ S.suspend(() => + S.Struct({ + clientId: S.String, + clientSecret: SensitiveString, + accessToken: S.optional(SensitiveString), + oAuthRequest: S.optional(ConnectorOAuthRequest), + }), +).annotate({ + identifier: "SlackConnectorProfileCredentials", +}) as any as S.Schema; export interface SnowflakeConnectorProfileCredentials { username: string; password: string | redacted.Redacted; } -export const SnowflakeConnectorProfileCredentials = - /*@__PURE__*/ S.suspend(() => - S.Struct({ username: S.String, password: SensitiveString }), - ).annotate({ - identifier: "SnowflakeConnectorProfileCredentials", - }) as any as S.Schema; +export const SnowflakeConnectorProfileCredentials = /*@__PURE__*/ S.suspend( + () => S.Struct({ username: S.String, password: SensitiveString }), +).annotate({ + identifier: "SnowflakeConnectorProfileCredentials", +}) as any as S.Schema; export interface TrendmicroConnectorProfileCredentials { apiSecretKey: string | redacted.Redacted; } -export const TrendmicroConnectorProfileCredentials = - /*@__PURE__*/ S.suspend(() => - S.Struct({ apiSecretKey: SensitiveString }), - ).annotate({ - identifier: "TrendmicroConnectorProfileCredentials", - }) as any as S.Schema; +export const TrendmicroConnectorProfileCredentials = /*@__PURE__*/ S.suspend( + () => S.Struct({ apiSecretKey: SensitiveString }), +).annotate({ + identifier: "TrendmicroConnectorProfileCredentials", +}) as any as S.Schema; export interface VeevaConnectorProfileCredentials { username: string; password: string | redacted.Redacted; } -export const VeevaConnectorProfileCredentials = - /*@__PURE__*/ S.suspend(() => - S.Struct({ username: S.String, password: SensitiveString }), - ).annotate({ - identifier: "VeevaConnectorProfileCredentials", - }) as any as S.Schema; +export const VeevaConnectorProfileCredentials = /*@__PURE__*/ S.suspend(() => + S.Struct({ username: S.String, password: SensitiveString }), +).annotate({ + identifier: "VeevaConnectorProfileCredentials", +}) as any as S.Schema; export interface ZendeskConnectorProfileCredentials { clientId: string; clientSecret: string | redacted.Redacted; accessToken?: string | redacted.Redacted; oAuthRequest?: ConnectorOAuthRequest; } -export const ZendeskConnectorProfileCredentials = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - clientId: S.String, - clientSecret: SensitiveString, - accessToken: S.optional(SensitiveString), - oAuthRequest: S.optional(ConnectorOAuthRequest), - }), - ).annotate({ - identifier: "ZendeskConnectorProfileCredentials", - }) as any as S.Schema; +export const ZendeskConnectorProfileCredentials = /*@__PURE__*/ S.suspend(() => + S.Struct({ + clientId: S.String, + clientSecret: SensitiveString, + accessToken: S.optional(SensitiveString), + oAuthRequest: S.optional(ConnectorOAuthRequest), + }), +).annotate({ + identifier: "ZendeskConnectorProfileCredentials", +}) as any as S.Schema; export interface BasicAuthCredentials { username: string; password: string | redacted.Redacted; @@ -809,7 +802,7 @@ export interface OAuthCredentials { clientId: string; clientSecret: string | redacted.Redacted; accessToken?: string | redacted.Redacted; - refreshToken?: string; + refreshToken?: string | redacted.Redacted; oAuthRequest?: ConnectorOAuthRequest; } export const OAuthCredentials = /*@__PURE__*/ S.suspend(() => @@ -817,7 +810,7 @@ export const OAuthCredentials = /*@__PURE__*/ S.suspend(() => clientId: S.String, clientSecret: SensitiveString, accessToken: S.optional(SensitiveString), - refreshToken: S.optional(S.String), + refreshToken: S.optional(SensitiveString), oAuthRequest: S.optional(ConnectorOAuthRequest), }), ).annotate({ @@ -827,15 +820,14 @@ export interface SAPODataConnectorProfileCredentials { basicAuthCredentials?: BasicAuthCredentials; oAuthCredentials?: OAuthCredentials; } -export const SAPODataConnectorProfileCredentials = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - basicAuthCredentials: S.optional(BasicAuthCredentials), - oAuthCredentials: S.optional(OAuthCredentials), - }), - ).annotate({ - identifier: "SAPODataConnectorProfileCredentials", - }) as any as S.Schema; +export const SAPODataConnectorProfileCredentials = /*@__PURE__*/ S.suspend(() => + S.Struct({ + basicAuthCredentials: S.optional(BasicAuthCredentials), + oAuthCredentials: S.optional(OAuthCredentials), + }), +).annotate({ + identifier: "SAPODataConnectorProfileCredentials", +}) as any as S.Schema; export type AuthenticationType = | "OAUTH2" | "APIKEY" @@ -883,35 +875,33 @@ export interface CustomConnectorProfileCredentials { apiKey?: ApiKeyCredentials; custom?: CustomAuthCredentials; } -export const CustomConnectorProfileCredentials = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - authenticationType: AuthenticationType, - basic: S.optional(BasicAuthCredentials), - oauth2: S.optional(OAuth2Credentials), - apiKey: S.optional(ApiKeyCredentials), - custom: S.optional(CustomAuthCredentials), - }), - ).annotate({ - identifier: "CustomConnectorProfileCredentials", - }) as any as S.Schema; +export const CustomConnectorProfileCredentials = /*@__PURE__*/ S.suspend(() => + S.Struct({ + authenticationType: AuthenticationType, + basic: S.optional(BasicAuthCredentials), + oauth2: S.optional(OAuth2Credentials), + apiKey: S.optional(ApiKeyCredentials), + custom: S.optional(CustomAuthCredentials), + }), +).annotate({ + identifier: "CustomConnectorProfileCredentials", +}) as any as S.Schema; export interface PardotConnectorProfileCredentials { accessToken?: string | redacted.Redacted; - refreshToken?: string; + refreshToken?: string | redacted.Redacted; oAuthRequest?: ConnectorOAuthRequest; clientCredentialsArn?: string | redacted.Redacted; } -export const PardotConnectorProfileCredentials = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - accessToken: S.optional(SensitiveString), - refreshToken: S.optional(S.String), - oAuthRequest: S.optional(ConnectorOAuthRequest), - clientCredentialsArn: S.optional(SensitiveString), - }), - ).annotate({ - identifier: "PardotConnectorProfileCredentials", - }) as any as S.Schema; +export const PardotConnectorProfileCredentials = /*@__PURE__*/ S.suspend(() => + S.Struct({ + accessToken: S.optional(SensitiveString), + refreshToken: S.optional(SensitiveString), + oAuthRequest: S.optional(ConnectorOAuthRequest), + clientCredentialsArn: S.optional(SensitiveString), + }), +).annotate({ + identifier: "PardotConnectorProfileCredentials", +}) as any as S.Schema; export interface ConnectorProfileCredentials { Amplitude?: AmplitudeConnectorProfileCredentials; Datadog?: DatadogConnectorProfileCredentials; @@ -933,32 +923,31 @@ export interface ConnectorProfileCredentials { CustomConnector?: CustomConnectorProfileCredentials; Pardot?: PardotConnectorProfileCredentials; } -export const ConnectorProfileCredentials = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Amplitude: S.optional(AmplitudeConnectorProfileCredentials), - Datadog: S.optional(DatadogConnectorProfileCredentials), - Dynatrace: S.optional(DynatraceConnectorProfileCredentials), - GoogleAnalytics: S.optional(GoogleAnalyticsConnectorProfileCredentials), - Honeycode: S.optional(HoneycodeConnectorProfileCredentials), - InforNexus: S.optional(InforNexusConnectorProfileCredentials), - Marketo: S.optional(MarketoConnectorProfileCredentials), - Redshift: S.optional(RedshiftConnectorProfileCredentials), - Salesforce: S.optional(SalesforceConnectorProfileCredentials), - ServiceNow: S.optional(ServiceNowConnectorProfileCredentials), - Singular: S.optional(SingularConnectorProfileCredentials), - Slack: S.optional(SlackConnectorProfileCredentials), - Snowflake: S.optional(SnowflakeConnectorProfileCredentials), - Trendmicro: S.optional(TrendmicroConnectorProfileCredentials), - Veeva: S.optional(VeevaConnectorProfileCredentials), - Zendesk: S.optional(ZendeskConnectorProfileCredentials), - SAPOData: S.optional(SAPODataConnectorProfileCredentials), - CustomConnector: S.optional(CustomConnectorProfileCredentials), - Pardot: S.optional(PardotConnectorProfileCredentials), - }), - ).annotate({ - identifier: "ConnectorProfileCredentials", - }) as any as S.Schema; +export const ConnectorProfileCredentials = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Amplitude: S.optional(AmplitudeConnectorProfileCredentials), + Datadog: S.optional(DatadogConnectorProfileCredentials), + Dynatrace: S.optional(DynatraceConnectorProfileCredentials), + GoogleAnalytics: S.optional(GoogleAnalyticsConnectorProfileCredentials), + Honeycode: S.optional(HoneycodeConnectorProfileCredentials), + InforNexus: S.optional(InforNexusConnectorProfileCredentials), + Marketo: S.optional(MarketoConnectorProfileCredentials), + Redshift: S.optional(RedshiftConnectorProfileCredentials), + Salesforce: S.optional(SalesforceConnectorProfileCredentials), + ServiceNow: S.optional(ServiceNowConnectorProfileCredentials), + Singular: S.optional(SingularConnectorProfileCredentials), + Slack: S.optional(SlackConnectorProfileCredentials), + Snowflake: S.optional(SnowflakeConnectorProfileCredentials), + Trendmicro: S.optional(TrendmicroConnectorProfileCredentials), + Veeva: S.optional(VeevaConnectorProfileCredentials), + Zendesk: S.optional(ZendeskConnectorProfileCredentials), + SAPOData: S.optional(SAPODataConnectorProfileCredentials), + CustomConnector: S.optional(CustomConnectorProfileCredentials), + Pardot: S.optional(PardotConnectorProfileCredentials), + }), +).annotate({ + identifier: "ConnectorProfileCredentials", +}) as any as S.Schema; export interface ConnectorProfileConfig { connectorProfileProperties: ConnectorProfileProperties; connectorProfileCredentials?: ConnectorProfileCredentials; @@ -980,38 +969,36 @@ export interface CreateConnectorProfileRequest { connectorProfileConfig: ConnectorProfileConfig; clientToken?: string; } -export const CreateConnectorProfileRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - connectorProfileName: S.String, - kmsArn: S.optional(S.String), - connectorType: ConnectorType, - connectorLabel: S.optional(S.String), - connectionMode: ConnectionMode, - connectorProfileConfig: ConnectorProfileConfig, - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/create-connector-profile" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateConnectorProfileRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + connectorProfileName: S.String, + kmsArn: S.optional(S.String), + connectorType: ConnectorType, + connectorLabel: S.optional(S.String), + connectionMode: ConnectionMode, + connectorProfileConfig: ConnectorProfileConfig, + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/create-connector-profile" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateConnectorProfileRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateConnectorProfileRequest", +}) as any as S.Schema; export interface CreateConnectorProfileResponse { connectorProfileArn?: string; } -export const CreateConnectorProfileResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ connectorProfileArn: S.optional(S.String) }), - ).annotate({ - identifier: "CreateConnectorProfileResponse", - }) as any as S.Schema; +export const CreateConnectorProfileResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ connectorProfileArn: S.optional(S.String) }), +).annotate({ + identifier: "CreateConnectorProfileResponse", +}) as any as S.Schema; export type TriggerType = "Scheduled" | "Event" | "OnDemand" | (string & {}); export const TriggerType = /*@__PURE__*/ S.String; export type DataPullMode = "Incremental" | "Complete" | (string & {}); @@ -1091,10 +1078,11 @@ export const DynatraceSourceProperties = /*@__PURE__*/ S.suspend(() => export interface GoogleAnalyticsSourceProperties { object: string; } -export const GoogleAnalyticsSourceProperties = - /*@__PURE__*/ S.suspend(() => S.Struct({ object: S.String })).annotate({ - identifier: "GoogleAnalyticsSourceProperties", - }) as any as S.Schema; +export const GoogleAnalyticsSourceProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ object: S.String }), +).annotate({ + identifier: "GoogleAnalyticsSourceProperties", +}) as any as S.Schema; export interface InforNexusSourceProperties { object: string; } @@ -1273,16 +1261,15 @@ export interface CustomConnectorSourceProperties { customProperties?: { [key: string]: string | undefined }; dataTransferApi?: DataTransferApi; } -export const CustomConnectorSourceProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - entityName: S.String, - customProperties: S.optional(CustomProperties), - dataTransferApi: S.optional(DataTransferApi), - }), - ).annotate({ - identifier: "CustomConnectorSourceProperties", - }) as any as S.Schema; +export const CustomConnectorSourceProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + entityName: S.String, + customProperties: S.optional(CustomProperties), + dataTransferApi: S.optional(DataTransferApi), + }), +).annotate({ + identifier: "CustomConnectorSourceProperties", +}) as any as S.Schema; export interface PardotSourceProperties { object: string; } @@ -1379,17 +1366,16 @@ export interface RedshiftDestinationProperties { bucketPrefix?: string; errorHandlingConfig?: ErrorHandlingConfig; } -export const RedshiftDestinationProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - object: S.String, - intermediateBucketName: S.String, - bucketPrefix: S.optional(S.String), - errorHandlingConfig: S.optional(ErrorHandlingConfig), - }), - ).annotate({ - identifier: "RedshiftDestinationProperties", - }) as any as S.Schema; +export const RedshiftDestinationProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + object: S.String, + intermediateBucketName: S.String, + bucketPrefix: S.optional(S.String), + errorHandlingConfig: S.optional(ErrorHandlingConfig), + }), +).annotate({ + identifier: "RedshiftDestinationProperties", +}) as any as S.Schema; export type FileType = "CSV" | "JSON" | "PARQUET" | (string & {}); export const FileType = /*@__PURE__*/ S.String; export type PrefixType = @@ -1482,136 +1468,129 @@ export interface SalesforceDestinationProperties { writeOperationType?: WriteOperationType; dataTransferApi?: SalesforceDataTransferApi; } -export const SalesforceDestinationProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - object: S.String, - idFieldNames: S.optional(IdFieldNameList), - errorHandlingConfig: S.optional(ErrorHandlingConfig), - writeOperationType: S.optional(WriteOperationType), - dataTransferApi: S.optional(SalesforceDataTransferApi), - }), - ).annotate({ - identifier: "SalesforceDestinationProperties", - }) as any as S.Schema; +export const SalesforceDestinationProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + object: S.String, + idFieldNames: S.optional(IdFieldNameList), + errorHandlingConfig: S.optional(ErrorHandlingConfig), + writeOperationType: S.optional(WriteOperationType), + dataTransferApi: S.optional(SalesforceDataTransferApi), + }), +).annotate({ + identifier: "SalesforceDestinationProperties", +}) as any as S.Schema; export interface SnowflakeDestinationProperties { object: string; intermediateBucketName: string; bucketPrefix?: string; errorHandlingConfig?: ErrorHandlingConfig; } -export const SnowflakeDestinationProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - object: S.String, - intermediateBucketName: S.String, - bucketPrefix: S.optional(S.String), - errorHandlingConfig: S.optional(ErrorHandlingConfig), - }), - ).annotate({ - identifier: "SnowflakeDestinationProperties", - }) as any as S.Schema; +export const SnowflakeDestinationProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + object: S.String, + intermediateBucketName: S.String, + bucketPrefix: S.optional(S.String), + errorHandlingConfig: S.optional(ErrorHandlingConfig), + }), +).annotate({ + identifier: "SnowflakeDestinationProperties", +}) as any as S.Schema; export interface EventBridgeDestinationProperties { object: string; errorHandlingConfig?: ErrorHandlingConfig; } -export const EventBridgeDestinationProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - object: S.String, - errorHandlingConfig: S.optional(ErrorHandlingConfig), - }), - ).annotate({ - identifier: "EventBridgeDestinationProperties", - }) as any as S.Schema; +export const EventBridgeDestinationProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + object: S.String, + errorHandlingConfig: S.optional(ErrorHandlingConfig), + }), +).annotate({ + identifier: "EventBridgeDestinationProperties", +}) as any as S.Schema; export interface LookoutMetricsDestinationProperties {} -export const LookoutMetricsDestinationProperties = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "LookoutMetricsDestinationProperties", - }) as any as S.Schema; +export const LookoutMetricsDestinationProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "LookoutMetricsDestinationProperties", +}) as any as S.Schema; export interface UpsolverS3OutputFormatConfig { fileType?: FileType; prefixConfig: PrefixConfig; aggregationConfig?: AggregationConfig; } -export const UpsolverS3OutputFormatConfig = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - fileType: S.optional(FileType), - prefixConfig: PrefixConfig, - aggregationConfig: S.optional(AggregationConfig), - }), - ).annotate({ - identifier: "UpsolverS3OutputFormatConfig", - }) as any as S.Schema; +export const UpsolverS3OutputFormatConfig = /*@__PURE__*/ S.suspend(() => + S.Struct({ + fileType: S.optional(FileType), + prefixConfig: PrefixConfig, + aggregationConfig: S.optional(AggregationConfig), + }), +).annotate({ + identifier: "UpsolverS3OutputFormatConfig", +}) as any as S.Schema; export interface UpsolverDestinationProperties { bucketName: string; bucketPrefix?: string; s3OutputFormatConfig: UpsolverS3OutputFormatConfig; } -export const UpsolverDestinationProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - bucketName: S.String, - bucketPrefix: S.optional(S.String), - s3OutputFormatConfig: UpsolverS3OutputFormatConfig, - }), - ).annotate({ - identifier: "UpsolverDestinationProperties", - }) as any as S.Schema; +export const UpsolverDestinationProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + bucketName: S.String, + bucketPrefix: S.optional(S.String), + s3OutputFormatConfig: UpsolverS3OutputFormatConfig, + }), +).annotate({ + identifier: "UpsolverDestinationProperties", +}) as any as S.Schema; export interface HoneycodeDestinationProperties { object: string; errorHandlingConfig?: ErrorHandlingConfig; } -export const HoneycodeDestinationProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - object: S.String, - errorHandlingConfig: S.optional(ErrorHandlingConfig), - }), - ).annotate({ - identifier: "HoneycodeDestinationProperties", - }) as any as S.Schema; +export const HoneycodeDestinationProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + object: S.String, + errorHandlingConfig: S.optional(ErrorHandlingConfig), + }), +).annotate({ + identifier: "HoneycodeDestinationProperties", +}) as any as S.Schema; export interface CustomerProfilesDestinationProperties { domainName: string; objectTypeName?: string; } -export const CustomerProfilesDestinationProperties = - /*@__PURE__*/ S.suspend(() => +export const CustomerProfilesDestinationProperties = /*@__PURE__*/ S.suspend( + () => S.Struct({ domainName: S.String, objectTypeName: S.optional(S.String) }), - ).annotate({ - identifier: "CustomerProfilesDestinationProperties", - }) as any as S.Schema; +).annotate({ + identifier: "CustomerProfilesDestinationProperties", +}) as any as S.Schema; export interface ZendeskDestinationProperties { object: string; idFieldNames?: string[]; errorHandlingConfig?: ErrorHandlingConfig; writeOperationType?: WriteOperationType; } -export const ZendeskDestinationProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - object: S.String, - idFieldNames: S.optional(IdFieldNameList), - errorHandlingConfig: S.optional(ErrorHandlingConfig), - writeOperationType: S.optional(WriteOperationType), - }), - ).annotate({ - identifier: "ZendeskDestinationProperties", - }) as any as S.Schema; +export const ZendeskDestinationProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + object: S.String, + idFieldNames: S.optional(IdFieldNameList), + errorHandlingConfig: S.optional(ErrorHandlingConfig), + writeOperationType: S.optional(WriteOperationType), + }), +).annotate({ + identifier: "ZendeskDestinationProperties", +}) as any as S.Schema; export interface MarketoDestinationProperties { object: string; errorHandlingConfig?: ErrorHandlingConfig; } -export const MarketoDestinationProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - object: S.String, - errorHandlingConfig: S.optional(ErrorHandlingConfig), - }), - ).annotate({ - identifier: "MarketoDestinationProperties", - }) as any as S.Schema; +export const MarketoDestinationProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + object: S.String, + errorHandlingConfig: S.optional(ErrorHandlingConfig), + }), +).annotate({ + identifier: "MarketoDestinationProperties", +}) as any as S.Schema; export interface CustomConnectorDestinationProperties { entityName: string; errorHandlingConfig?: ErrorHandlingConfig; @@ -1619,8 +1598,8 @@ export interface CustomConnectorDestinationProperties { idFieldNames?: string[]; customProperties?: { [key: string]: string | undefined }; } -export const CustomConnectorDestinationProperties = - /*@__PURE__*/ S.suspend(() => +export const CustomConnectorDestinationProperties = /*@__PURE__*/ S.suspend( + () => S.Struct({ entityName: S.String, errorHandlingConfig: S.optional(ErrorHandlingConfig), @@ -1628,22 +1607,21 @@ export const CustomConnectorDestinationProperties = idFieldNames: S.optional(IdFieldNameList), customProperties: S.optional(CustomProperties), }), - ).annotate({ - identifier: "CustomConnectorDestinationProperties", - }) as any as S.Schema; +).annotate({ + identifier: "CustomConnectorDestinationProperties", +}) as any as S.Schema; export interface SuccessResponseHandlingConfig { bucketPrefix?: string; bucketName?: string; } -export const SuccessResponseHandlingConfig = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - bucketPrefix: S.optional(S.String), - bucketName: S.optional(S.String), - }), - ).annotate({ - identifier: "SuccessResponseHandlingConfig", - }) as any as S.Schema; +export const SuccessResponseHandlingConfig = /*@__PURE__*/ S.suspend(() => + S.Struct({ + bucketPrefix: S.optional(S.String), + bucketName: S.optional(S.String), + }), +).annotate({ + identifier: "SuccessResponseHandlingConfig", +}) as any as S.Schema; export interface SAPODataDestinationProperties { objectPath: string; successResponseHandlingConfig?: SuccessResponseHandlingConfig; @@ -1651,18 +1629,17 @@ export interface SAPODataDestinationProperties { errorHandlingConfig?: ErrorHandlingConfig; writeOperationType?: WriteOperationType; } -export const SAPODataDestinationProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - objectPath: S.String, - successResponseHandlingConfig: S.optional(SuccessResponseHandlingConfig), - idFieldNames: S.optional(IdFieldNameList), - errorHandlingConfig: S.optional(ErrorHandlingConfig), - writeOperationType: S.optional(WriteOperationType), - }), - ).annotate({ - identifier: "SAPODataDestinationProperties", - }) as any as S.Schema; +export const SAPODataDestinationProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + objectPath: S.String, + successResponseHandlingConfig: S.optional(SuccessResponseHandlingConfig), + idFieldNames: S.optional(IdFieldNameList), + errorHandlingConfig: S.optional(ErrorHandlingConfig), + writeOperationType: S.optional(WriteOperationType), + }), +).annotate({ + identifier: "SAPODataDestinationProperties", +}) as any as S.Schema; export interface DestinationConnectorProperties { Redshift?: RedshiftDestinationProperties; S3?: S3DestinationProperties; @@ -1678,26 +1655,25 @@ export interface DestinationConnectorProperties { CustomConnector?: CustomConnectorDestinationProperties; SAPOData?: SAPODataDestinationProperties; } -export const DestinationConnectorProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Redshift: S.optional(RedshiftDestinationProperties), - S3: S.optional(S3DestinationProperties), - Salesforce: S.optional(SalesforceDestinationProperties), - Snowflake: S.optional(SnowflakeDestinationProperties), - EventBridge: S.optional(EventBridgeDestinationProperties), - LookoutMetrics: S.optional(LookoutMetricsDestinationProperties), - Upsolver: S.optional(UpsolverDestinationProperties), - Honeycode: S.optional(HoneycodeDestinationProperties), - CustomerProfiles: S.optional(CustomerProfilesDestinationProperties), - Zendesk: S.optional(ZendeskDestinationProperties), - Marketo: S.optional(MarketoDestinationProperties), - CustomConnector: S.optional(CustomConnectorDestinationProperties), - SAPOData: S.optional(SAPODataDestinationProperties), - }), - ).annotate({ - identifier: "DestinationConnectorProperties", - }) as any as S.Schema; +export const DestinationConnectorProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Redshift: S.optional(RedshiftDestinationProperties), + S3: S.optional(S3DestinationProperties), + Salesforce: S.optional(SalesforceDestinationProperties), + Snowflake: S.optional(SnowflakeDestinationProperties), + EventBridge: S.optional(EventBridgeDestinationProperties), + LookoutMetrics: S.optional(LookoutMetricsDestinationProperties), + Upsolver: S.optional(UpsolverDestinationProperties), + Honeycode: S.optional(HoneycodeDestinationProperties), + CustomerProfiles: S.optional(CustomerProfilesDestinationProperties), + Zendesk: S.optional(ZendeskDestinationProperties), + Marketo: S.optional(MarketoDestinationProperties), + CustomConnector: S.optional(CustomConnectorDestinationProperties), + SAPOData: S.optional(SAPODataDestinationProperties), + }), +).annotate({ + identifier: "DestinationConnectorProperties", +}) as any as S.Schema; export interface DestinationFlowConfig { connectorType: ConnectorType; apiVersion?: string; @@ -2220,29 +2196,29 @@ export interface DeleteConnectorProfileRequest { connectorProfileName: string; forceDelete?: boolean; } -export const DeleteConnectorProfileRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - connectorProfileName: S.String, - forceDelete: S.optional(S.Boolean), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/delete-connector-profile" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteConnectorProfileRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + connectorProfileName: S.String, + forceDelete: S.optional(S.Boolean), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/delete-connector-profile" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteConnectorProfileRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteConnectorProfileRequest", +}) as any as S.Schema; export interface DeleteConnectorProfileResponse {} -export const DeleteConnectorProfileResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteConnectorProfileResponse", - }) as any as S.Schema; +export const DeleteConnectorProfileResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteConnectorProfileResponse", +}) as any as S.Schema; export interface DeleteFlowRequest { flowName: string; forceDelete?: boolean; @@ -2354,8 +2330,9 @@ export const S3Metadata = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ identifier: "S3Metadata", }) as any as S.Schema; export type SalesforceDataTransferApiList = SalesforceDataTransferApi[]; -export const SalesforceDataTransferApiList = - /*@__PURE__*/ S.Array(SalesforceDataTransferApi); +export const SalesforceDataTransferApiList = /*@__PURE__*/ S.Array( + SalesforceDataTransferApi, +); export type OAuth2GrantTypeSupportedList = OAuth2GrantType[]; export const OAuth2GrantTypeSupportedList = /*@__PURE__*/ S.Array(OAuth2GrantType); @@ -2677,24 +2654,25 @@ export const ConnectorProvisioningType = /*@__PURE__*/ S.String; export interface LambdaConnectorProvisioningConfig { lambdaArn: string; } -export const LambdaConnectorProvisioningConfig = - /*@__PURE__*/ S.suspend(() => S.Struct({ lambdaArn: S.String })).annotate({ - identifier: "LambdaConnectorProvisioningConfig", - }) as any as S.Schema; +export const LambdaConnectorProvisioningConfig = /*@__PURE__*/ S.suspend(() => + S.Struct({ lambdaArn: S.String }), +).annotate({ + identifier: "LambdaConnectorProvisioningConfig", +}) as any as S.Schema; export interface ConnectorProvisioningConfig { lambda?: LambdaConnectorProvisioningConfig; } -export const ConnectorProvisioningConfig = - /*@__PURE__*/ S.suspend(() => - S.Struct({ lambda: S.optional(LambdaConnectorProvisioningConfig) }), - ).annotate({ - identifier: "ConnectorProvisioningConfig", - }) as any as S.Schema; +export const ConnectorProvisioningConfig = /*@__PURE__*/ S.suspend(() => + S.Struct({ lambda: S.optional(LambdaConnectorProvisioningConfig) }), +).annotate({ + identifier: "ConnectorProvisioningConfig", +}) as any as S.Schema; export type SupportedDataTransferType = "RECORD" | "FILE" | (string & {}); export const SupportedDataTransferType = /*@__PURE__*/ S.String; export type SupportedDataTransferTypeList = SupportedDataTransferType[]; -export const SupportedDataTransferTypeList = - /*@__PURE__*/ S.Array(SupportedDataTransferType); +export const SupportedDataTransferTypeList = /*@__PURE__*/ S.Array( + SupportedDataTransferType, +); export type SupportedDataTransferApis = DataTransferApi[]; export const SupportedDataTransferApis = /*@__PURE__*/ S.Array(DataTransferApi); export interface ConnectorConfiguration { @@ -2775,26 +2753,25 @@ export interface DescribeConnectorEntityRequest { connectorProfileName?: string; apiVersion?: string; } -export const DescribeConnectorEntityRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - connectorEntityName: S.String, - connectorType: S.optional(ConnectorType), - connectorProfileName: S.optional(S.String), - apiVersion: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/describe-connector-entity" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeConnectorEntityRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + connectorEntityName: S.String, + connectorType: S.optional(ConnectorType), + connectorProfileName: S.optional(S.String), + apiVersion: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/describe-connector-entity" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeConnectorEntityRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeConnectorEntityRequest", +}) as any as S.Schema; export type FilterOperatorList = Operator[]; export const FilterOperatorList = /*@__PURE__*/ S.Array(Operator); export type SupportedValueList = string[]; @@ -2906,12 +2883,11 @@ export const ConnectorEntityFieldList = export interface DescribeConnectorEntityResponse { connectorEntityFields: ConnectorEntityField[]; } -export const DescribeConnectorEntityResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ connectorEntityFields: ConnectorEntityFieldList }), - ).annotate({ - identifier: "DescribeConnectorEntityResponse", - }) as any as S.Schema; +export const DescribeConnectorEntityResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ connectorEntityFields: ConnectorEntityFieldList }), +).annotate({ + identifier: "DescribeConnectorEntityResponse", +}) as any as S.Schema; export type ConnectorProfileNameList = string[]; export const ConnectorProfileNameList = /*@__PURE__*/ S.Array(S.String); export interface DescribeConnectorProfilesRequest { @@ -2921,27 +2897,26 @@ export interface DescribeConnectorProfilesRequest { maxResults?: number; nextToken?: string; } -export const DescribeConnectorProfilesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - connectorProfileNames: S.optional(ConnectorProfileNameList), - connectorType: S.optional(ConnectorType), - connectorLabel: S.optional(S.String), - maxResults: S.optional(S.Number), - nextToken: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/describe-connector-profiles" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeConnectorProfilesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + connectorProfileNames: S.optional(ConnectorProfileNameList), + connectorType: S.optional(ConnectorType), + connectorLabel: S.optional(S.String), + maxResults: S.optional(S.Number), + nextToken: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/describe-connector-profiles" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeConnectorProfilesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeConnectorProfilesRequest", +}) as any as S.Schema; export type PrivateConnectionProvisioningStatus = | "FAILED" | "PENDING" @@ -2961,16 +2936,15 @@ export interface PrivateConnectionProvisioningState { failureMessage?: string; failureCause?: PrivateConnectionProvisioningFailureCause; } -export const PrivateConnectionProvisioningState = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - status: S.optional(PrivateConnectionProvisioningStatus), - failureMessage: S.optional(S.String), - failureCause: S.optional(PrivateConnectionProvisioningFailureCause), - }), - ).annotate({ - identifier: "PrivateConnectionProvisioningState", - }) as any as S.Schema; +export const PrivateConnectionProvisioningState = /*@__PURE__*/ S.suspend(() => + S.Struct({ + status: S.optional(PrivateConnectionProvisioningStatus), + failureMessage: S.optional(S.String), + failureCause: S.optional(PrivateConnectionProvisioningFailureCause), + }), +).annotate({ + identifier: "PrivateConnectionProvisioningState", +}) as any as S.Schema; export interface ConnectorProfile { connectorProfileArn?: string; connectorProfileName?: string; @@ -3008,15 +2982,14 @@ export interface DescribeConnectorProfilesResponse { connectorProfileDetails?: ConnectorProfile[]; nextToken?: string; } -export const DescribeConnectorProfilesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - connectorProfileDetails: S.optional(ConnectorProfileDetailList), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "DescribeConnectorProfilesResponse", - }) as any as S.Schema; +export const DescribeConnectorProfilesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + connectorProfileDetails: S.optional(ConnectorProfileDetailList), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "DescribeConnectorProfilesResponse", +}) as any as S.Schema; export interface DescribeConnectorsRequest { connectorTypes?: ConnectorType[]; maxResults?: number; @@ -3225,25 +3198,24 @@ export interface DescribeFlowExecutionRecordsRequest { maxResults?: number; nextToken?: string; } -export const DescribeFlowExecutionRecordsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - flowName: S.String, - maxResults: S.optional(S.Number), - nextToken: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/describe-flow-execution-records" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeFlowExecutionRecordsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + flowName: S.String, + maxResults: S.optional(S.Number), + nextToken: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/describe-flow-execution-records" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeFlowExecutionRecordsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeFlowExecutionRecordsRequest", +}) as any as S.Schema; export interface ErrorInfo { putFailuresCount?: number; executionMessage?: string; @@ -3308,15 +3280,15 @@ export interface DescribeFlowExecutionRecordsResponse { flowExecutions?: ExecutionRecord[]; nextToken?: string; } -export const DescribeFlowExecutionRecordsResponse = - /*@__PURE__*/ S.suspend(() => +export const DescribeFlowExecutionRecordsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ flowExecutions: S.optional(FlowExecutionList), nextToken: S.optional(S.String), }), - ).annotate({ - identifier: "DescribeFlowExecutionRecordsResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeFlowExecutionRecordsResponse", +}) as any as S.Schema; export interface ListConnectorEntitiesRequest { connectorProfileName?: string; connectorType?: ConnectorType; @@ -3325,28 +3297,27 @@ export interface ListConnectorEntitiesRequest { maxResults?: number; nextToken?: string; } -export const ListConnectorEntitiesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - connectorProfileName: S.optional(S.String), - connectorType: S.optional(ConnectorType), - entitiesPath: S.optional(S.String), - apiVersion: S.optional(S.String), - maxResults: S.optional(S.Number), - nextToken: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/list-connector-entities" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListConnectorEntitiesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + connectorProfileName: S.optional(S.String), + connectorType: S.optional(ConnectorType), + entitiesPath: S.optional(S.String), + apiVersion: S.optional(S.String), + maxResults: S.optional(S.Number), + nextToken: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/list-connector-entities" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListConnectorEntitiesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListConnectorEntitiesRequest", +}) as any as S.Schema; export interface ConnectorEntity { name: string; label?: string; @@ -3374,15 +3345,14 @@ export interface ListConnectorEntitiesResponse { connectorEntityMap: { [key: string]: ConnectorEntity[] | undefined }; nextToken?: string; } -export const ListConnectorEntitiesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - connectorEntityMap: ConnectorEntityMap, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListConnectorEntitiesResponse", - }) as any as S.Schema; +export const ListConnectorEntitiesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + connectorEntityMap: ConnectorEntityMap, + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListConnectorEntitiesResponse", +}) as any as S.Schema; export interface ListConnectorsRequest { maxResults?: number; nextToken?: string; @@ -3504,12 +3474,11 @@ export const ListTagsForResourceRequest = /*@__PURE__*/ S.suspend(() => export interface ListTagsForResourceResponse { tags?: { [key: string]: string | undefined }; } -export const ListTagsForResourceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ tags: S.optional(TagMap) }), - ).annotate({ - identifier: "ListTagsForResourceResponse", - }) as any as S.Schema; +export const ListTagsForResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ tags: S.optional(TagMap) }), +).annotate({ + identifier: "ListTagsForResourceResponse", +}) as any as S.Schema; export interface RegisterConnectorRequest { connectorLabel?: string; description?: string; @@ -3552,32 +3521,32 @@ export interface ResetConnectorMetadataCacheRequest { entitiesPath?: string; apiVersion?: string; } -export const ResetConnectorMetadataCacheRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - connectorProfileName: S.optional(S.String), - connectorType: S.optional(ConnectorType), - connectorEntityName: S.optional(S.String), - entitiesPath: S.optional(S.String), - apiVersion: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/reset-connector-metadata-cache" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ResetConnectorMetadataCacheRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + connectorProfileName: S.optional(S.String), + connectorType: S.optional(ConnectorType), + connectorEntityName: S.optional(S.String), + entitiesPath: S.optional(S.String), + apiVersion: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/reset-connector-metadata-cache" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ResetConnectorMetadataCacheRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ResetConnectorMetadataCacheRequest", +}) as any as S.Schema; export interface ResetConnectorMetadataCacheResponse {} -export const ResetConnectorMetadataCacheResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "ResetConnectorMetadataCacheResponse", - }) as any as S.Schema; +export const ResetConnectorMetadataCacheResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "ResetConnectorMetadataCacheResponse", +}) as any as S.Schema; export interface StartFlowRequest { flowName: string; clientToken?: string; @@ -3691,10 +3660,11 @@ export const UnregisterConnectorRequest = /*@__PURE__*/ S.suspend(() => identifier: "UnregisterConnectorRequest", }) as any as S.Schema; export interface UnregisterConnectorResponse {} -export const UnregisterConnectorResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UnregisterConnectorResponse", - }) as any as S.Schema; +export const UnregisterConnectorResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "UnregisterConnectorResponse", +}) as any as S.Schema; export type TagKeyList = string[]; export const TagKeyList = /*@__PURE__*/ S.Array(S.String); export interface UntagResourceRequest { @@ -3730,70 +3700,66 @@ export interface UpdateConnectorProfileRequest { connectorProfileConfig: ConnectorProfileConfig; clientToken?: string; } -export const UpdateConnectorProfileRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - connectorProfileName: S.String, - connectionMode: ConnectionMode, - connectorProfileConfig: ConnectorProfileConfig, - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/update-connector-profile" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateConnectorProfileRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + connectorProfileName: S.String, + connectionMode: ConnectionMode, + connectorProfileConfig: ConnectorProfileConfig, + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/update-connector-profile" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateConnectorProfileRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateConnectorProfileRequest", +}) as any as S.Schema; export interface UpdateConnectorProfileResponse { connectorProfileArn?: string; } -export const UpdateConnectorProfileResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ connectorProfileArn: S.optional(S.String) }), - ).annotate({ - identifier: "UpdateConnectorProfileResponse", - }) as any as S.Schema; +export const UpdateConnectorProfileResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ connectorProfileArn: S.optional(S.String) }), +).annotate({ + identifier: "UpdateConnectorProfileResponse", +}) as any as S.Schema; export interface UpdateConnectorRegistrationRequest { connectorLabel: string; description?: string; connectorProvisioningConfig?: ConnectorProvisioningConfig; clientToken?: string; } -export const UpdateConnectorRegistrationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - connectorLabel: S.String, - description: S.optional(S.String), - connectorProvisioningConfig: S.optional(ConnectorProvisioningConfig), - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/update-connector-registration" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateConnectorRegistrationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + connectorLabel: S.String, + description: S.optional(S.String), + connectorProvisioningConfig: S.optional(ConnectorProvisioningConfig), + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/update-connector-registration" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateConnectorRegistrationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateConnectorRegistrationRequest", +}) as any as S.Schema; export interface UpdateConnectorRegistrationResponse { connectorArn?: string; } -export const UpdateConnectorRegistrationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ connectorArn: S.optional(S.String) }), - ).annotate({ - identifier: "UpdateConnectorRegistrationResponse", - }) as any as S.Schema; +export const UpdateConnectorRegistrationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ connectorArn: S.optional(S.String) }), +).annotate({ + identifier: "UpdateConnectorRegistrationResponse", +}) as any as S.Schema; export interface UpdateFlowRequest { flowName: string; description?: string; @@ -3840,42 +3806,51 @@ export const UpdateFlowResponse = /*@__PURE__*/ S.suspend(() => export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", { message: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ConnectorAuthenticationException extends S.TaggedErrorClass()( "ConnectorAuthenticationException", { message: S.optional(S.String) }, + T.HttpError(401), ).pipe(C.withAuthError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", { message: S.optional(S.String) }, + T.HttpError(402), ).pipe(C.withQuotaError) {} export class ConnectorServerException extends S.TaggedErrorClass()( "ConnectorServerException", - { message: S.optional(S.String) }, -).pipe(C.withBadRequestError) {} + {}, +) {} export class UnsupportedOperationException extends S.TaggedErrorClass()( "UnsupportedOperationException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} //# Operations @@ -3932,6 +3907,7 @@ export type CreateConnectorProfileError = | InternalServerException | ServiceQuotaExceededException | ValidationException + | ConnectorServerException | CommonErrors; /** * Creates a new connector profile associated with your Amazon Web Services account. There is @@ -3954,6 +3930,7 @@ export const createConnectorProfile: API.OperationMethod< InternalServerException, ServiceQuotaExceededException, ValidationException, + ConnectorServerException, ], operationName: "CreateConnectorProfile", })); @@ -4568,6 +4545,7 @@ export type UpdateConnectorProfileError = | InternalServerException | ResourceNotFoundException | ValidationException + | ConnectorServerException | CommonErrors; /** * Updates a given connector profile associated with your account. @@ -4586,6 +4564,7 @@ export const updateConnectorProfile: API.OperationMethod< InternalServerException, ResourceNotFoundException, ValidationException, + ConnectorServerException, ], operationName: "UpdateConnectorProfile", })); diff --git a/packages/aws/src/services/appintegrations.ts b/packages/aws/src/services/appintegrations.ts index 0115856061..537d759bb8 100644 --- a/packages/aws/src/services/appintegrations.ts +++ b/packages/aws/src/services/appintegrations.ts @@ -1331,34 +1331,46 @@ export const UpdateEventIntegrationResponse = export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { Message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class DuplicateResourceException extends S.TaggedErrorClass()( "DuplicateResourceException", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class InternalServiceError extends S.TaggedErrorClass()( "InternalServiceError", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class InvalidRequestException extends S.TaggedErrorClass()( "InvalidRequestException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ResourceQuotaExceededException extends S.TaggedErrorClass()( "ResourceQuotaExceededException", { Message: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", { Message: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class UnsupportedOperationException extends S.TaggedErrorClass()( "UnsupportedOperationException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} +export class TooManyRequestsException extends S.TaggedErrorClass()( + "TooManyRequestsException", + {}, +).pipe(C.withThrottlingError, C.withRetryableError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} //# Operations @@ -1370,6 +1382,7 @@ export type CreateApplicationError = | ResourceQuotaExceededException | ThrottlingException | UnsupportedOperationException + | TooManyRequestsException | CommonErrors; /** * Creates and persists an Application resource. @@ -1390,6 +1403,7 @@ export const createApplication: API.OperationMethod< ResourceQuotaExceededException, ThrottlingException, UnsupportedOperationException, + TooManyRequestsException, ], operationName: "CreateApplication", })); @@ -1400,6 +1414,7 @@ export type CreateDataIntegrationError = | InvalidRequestException | ResourceQuotaExceededException | ThrottlingException + | TooManyRequestsException | CommonErrors; /** * Creates and persists a DataIntegration resource. @@ -1423,6 +1438,7 @@ export const createDataIntegration: API.OperationMethod< InvalidRequestException, ResourceQuotaExceededException, ThrottlingException, + TooManyRequestsException, ], operationName: "CreateDataIntegration", })); @@ -1433,6 +1449,7 @@ export type CreateDataIntegrationAssociationError = | ResourceNotFoundException | ResourceQuotaExceededException | ThrottlingException + | TooManyRequestsException | CommonErrors; /** * Creates and persists a DataIntegrationAssociation resource. @@ -1452,6 +1469,7 @@ export const createDataIntegrationAssociation: API.OperationMethod< ResourceNotFoundException, ResourceQuotaExceededException, ThrottlingException, + TooManyRequestsException, ], operationName: "CreateDataIntegrationAssociation", })); @@ -1462,6 +1480,7 @@ export type CreateEventIntegrationError = | InvalidRequestException | ResourceQuotaExceededException | ThrottlingException + | TooManyRequestsException | CommonErrors; /** * Creates an EventIntegration, given a specified name, description, and a reference to an @@ -1484,6 +1503,7 @@ export const createEventIntegration: API.OperationMethod< InvalidRequestException, ResourceQuotaExceededException, ThrottlingException, + TooManyRequestsException, ], operationName: "CreateEventIntegration", })); @@ -1493,6 +1513,7 @@ export type DeleteApplicationError = | InvalidRequestException | ResourceNotFoundException | ThrottlingException + | TooManyRequestsException | CommonErrors; /** * Deletes the Application. Only Applications that don't have any Application Associations @@ -1512,6 +1533,7 @@ export const deleteApplication: API.OperationMethod< InvalidRequestException, ResourceNotFoundException, ThrottlingException, + TooManyRequestsException, ], operationName: "DeleteApplication", })); @@ -1521,6 +1543,7 @@ export type DeleteDataIntegrationError = | InvalidRequestException | ResourceNotFoundException | ThrottlingException + | TooManyRequestsException | CommonErrors; /** * Deletes the DataIntegration. Only DataIntegrations that don't have any @@ -1545,6 +1568,7 @@ export const deleteDataIntegration: API.OperationMethod< InvalidRequestException, ResourceNotFoundException, ThrottlingException, + TooManyRequestsException, ], operationName: "DeleteDataIntegration", })); @@ -1554,6 +1578,7 @@ export type DeleteEventIntegrationError = | InvalidRequestException | ResourceNotFoundException | ThrottlingException + | TooManyRequestsException | CommonErrors; /** * Deletes the specified existing event integration. If the event integration is associated @@ -1573,6 +1598,7 @@ export const deleteEventIntegration: API.OperationMethod< InvalidRequestException, ResourceNotFoundException, ThrottlingException, + TooManyRequestsException, ], operationName: "DeleteEventIntegration", })); @@ -1582,6 +1608,7 @@ export type GetApplicationError = | InvalidRequestException | ResourceNotFoundException | ThrottlingException + | TooManyRequestsException | CommonErrors; /** * Get an Application resource. @@ -1600,6 +1627,7 @@ export const getApplication: API.OperationMethod< InvalidRequestException, ResourceNotFoundException, ThrottlingException, + TooManyRequestsException, ], operationName: "GetApplication", })); @@ -1609,6 +1637,7 @@ export type GetDataIntegrationError = | InvalidRequestException | ResourceNotFoundException | ThrottlingException + | TooManyRequestsException | CommonErrors; /** * Returns information about the DataIntegration. @@ -1631,6 +1660,7 @@ export const getDataIntegration: API.OperationMethod< InvalidRequestException, ResourceNotFoundException, ThrottlingException, + TooManyRequestsException, ], operationName: "GetDataIntegration", })); @@ -1640,6 +1670,7 @@ export type GetEventIntegrationError = | InvalidRequestException | ResourceNotFoundException | ThrottlingException + | TooManyRequestsException | CommonErrors; /** * Returns information about the event integration. @@ -1658,6 +1689,7 @@ export const getEventIntegration: API.OperationMethod< InvalidRequestException, ResourceNotFoundException, ThrottlingException, + TooManyRequestsException, ], operationName: "GetEventIntegration", })); @@ -1667,6 +1699,7 @@ export type ListApplicationAssociationsError = | InvalidRequestException | ResourceNotFoundException | ThrottlingException + | TooManyRequestsException | CommonErrors; /** * Returns a paginated list of application associations for an application. @@ -1700,6 +1733,7 @@ export const listApplicationAssociations: API.OperationMethod< InvalidRequestException, ResourceNotFoundException, ThrottlingException, + TooManyRequestsException, ], operationName: "ListApplicationAssociations", pagination: { @@ -1714,6 +1748,7 @@ export type ListApplicationsError = | InternalServiceError | InvalidRequestException | ThrottlingException + | TooManyRequestsException | CommonErrors; /** * Lists applications in the account. @@ -1746,6 +1781,7 @@ export const listApplications: API.OperationMethod< InternalServiceError, InvalidRequestException, ThrottlingException, + TooManyRequestsException, ], operationName: "ListApplications", pagination: { @@ -1761,6 +1797,7 @@ export type ListDataIntegrationAssociationsError = | InvalidRequestException | ResourceNotFoundException | ThrottlingException + | TooManyRequestsException | CommonErrors; /** * Returns a paginated list of DataIntegration associations in the account. @@ -1798,6 +1835,7 @@ export const listDataIntegrationAssociations: API.OperationMethod< InvalidRequestException, ResourceNotFoundException, ThrottlingException, + TooManyRequestsException, ], operationName: "ListDataIntegrationAssociations", pagination: { @@ -1812,6 +1850,7 @@ export type ListDataIntegrationsError = | InternalServiceError | InvalidRequestException | ThrottlingException + | TooManyRequestsException | CommonErrors; /** * Returns a paginated list of DataIntegrations in the account. @@ -1848,6 +1887,7 @@ export const listDataIntegrations: API.OperationMethod< InternalServiceError, InvalidRequestException, ThrottlingException, + TooManyRequestsException, ], operationName: "ListDataIntegrations", pagination: { @@ -1863,6 +1903,7 @@ export type ListEventIntegrationAssociationsError = | InvalidRequestException | ResourceNotFoundException | ThrottlingException + | TooManyRequestsException | CommonErrors; /** * Returns a paginated list of event integration associations in the account. @@ -1896,6 +1937,7 @@ export const listEventIntegrationAssociations: API.OperationMethod< InvalidRequestException, ResourceNotFoundException, ThrottlingException, + TooManyRequestsException, ], operationName: "ListEventIntegrationAssociations", pagination: { @@ -1910,6 +1952,7 @@ export type ListEventIntegrationsError = | InternalServiceError | InvalidRequestException | ThrottlingException + | TooManyRequestsException | CommonErrors; /** * Returns a paginated list of event integrations in the account. @@ -1942,6 +1985,7 @@ export const listEventIntegrations: API.OperationMethod< InternalServiceError, InvalidRequestException, ThrottlingException, + TooManyRequestsException, ], operationName: "ListEventIntegrations", pagination: { @@ -1956,6 +2000,7 @@ export type ListTagsForResourceError = | InvalidRequestException | ResourceNotFoundException | ThrottlingException + | TooManyRequestsException | CommonErrors; /** * Lists the tags for the specified resource. @@ -1973,6 +2018,7 @@ export const listTagsForResource: API.OperationMethod< InvalidRequestException, ResourceNotFoundException, ThrottlingException, + TooManyRequestsException, ], operationName: "ListTagsForResource", })); @@ -1981,6 +2027,7 @@ export type TagResourceError = | InvalidRequestException | ResourceNotFoundException | ThrottlingException + | TooManyRequestsException | CommonErrors; /** * Adds the specified tags to the specified resource. @@ -1998,6 +2045,7 @@ export const tagResource: API.OperationMethod< InvalidRequestException, ResourceNotFoundException, ThrottlingException, + TooManyRequestsException, ], operationName: "TagResource", })); @@ -2006,6 +2054,7 @@ export type UntagResourceError = | InvalidRequestException | ResourceNotFoundException | ThrottlingException + | TooManyRequestsException | CommonErrors; /** * Removes the specified tags from the specified resource. @@ -2023,6 +2072,7 @@ export const untagResource: API.OperationMethod< InvalidRequestException, ResourceNotFoundException, ThrottlingException, + TooManyRequestsException, ], operationName: "UntagResource", })); @@ -2033,6 +2083,7 @@ export type UpdateApplicationError = | ResourceNotFoundException | ThrottlingException | UnsupportedOperationException + | TooManyRequestsException | CommonErrors; /** * Updates and persists an Application resource. @@ -2052,6 +2103,7 @@ export const updateApplication: API.OperationMethod< ResourceNotFoundException, ThrottlingException, UnsupportedOperationException, + TooManyRequestsException, ], operationName: "UpdateApplication", })); @@ -2061,6 +2113,7 @@ export type UpdateDataIntegrationError = | InvalidRequestException | ResourceNotFoundException | ThrottlingException + | TooManyRequestsException | CommonErrors; /** * Updates the description of a DataIntegration. @@ -2083,6 +2136,7 @@ export const updateDataIntegration: API.OperationMethod< InvalidRequestException, ResourceNotFoundException, ThrottlingException, + TooManyRequestsException, ], operationName: "UpdateDataIntegration", })); @@ -2092,6 +2146,7 @@ export type UpdateDataIntegrationAssociationError = | InvalidRequestException | ResourceNotFoundException | ThrottlingException + | TooManyRequestsException | CommonErrors; /** * Updates and persists a DataIntegrationAssociation resource. @@ -2112,6 +2167,7 @@ export const updateDataIntegrationAssociation: API.OperationMethod< InvalidRequestException, ResourceNotFoundException, ThrottlingException, + TooManyRequestsException, ], operationName: "UpdateDataIntegrationAssociation", })); @@ -2121,6 +2177,7 @@ export type UpdateEventIntegrationError = | InvalidRequestException | ResourceNotFoundException | ThrottlingException + | TooManyRequestsException | CommonErrors; /** * Updates the description of an event integration. @@ -2139,6 +2196,7 @@ export const updateEventIntegration: API.OperationMethod< InvalidRequestException, ResourceNotFoundException, ThrottlingException, + TooManyRequestsException, ], operationName: "UpdateEventIntegration", })); diff --git a/packages/aws/src/services/application-auto-scaling.ts b/packages/aws/src/services/application-auto-scaling.ts index 012458b0f6..6c6fa1c7f1 100644 --- a/packages/aws/src/services/application-auto-scaling.ts +++ b/packages/aws/src/services/application-auto-scaling.ts @@ -1228,48 +1228,88 @@ export const UntagResourceResponse = /*@__PURE__*/ S.suspend(() => export class ConcurrentUpdateException extends S.TaggedErrorClass()( "ConcurrentUpdateException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "ConcurrentUpdateException", httpResponseCode: 500 }), + T.all( + T.AwsQueryError({ + code: "ConcurrentUpdateException", + httpResponseCode: 500, + }), + T.HttpError(500), + ), ).pipe(C.withServerError) {} export class InternalServiceException extends S.TaggedErrorClass()( "InternalServiceException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "InternalServiceException", httpResponseCode: 500 }), + T.all( + T.AwsQueryError({ + code: "InternalServiceException", + httpResponseCode: 500, + }), + T.HttpError(500), + ), ).pipe(C.withServerError) {} export class ObjectNotFoundException extends S.TaggedErrorClass()( "ObjectNotFoundException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "ObjectNotFoundException", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "ObjectNotFoundException", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "ValidationException", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "ValidationException", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidNextTokenException extends S.TaggedErrorClass()( "InvalidNextTokenException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidNextTokenException", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "InvalidNextTokenException", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class FailedResourceAccessException extends S.TaggedErrorClass()( "FailedResourceAccessException", { Message: S.optional(S.String) }, - T.AwsQueryError({ - code: "FailedResourceAccessException", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "FailedResourceAccessException", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} +export class PredictiveScalingForecastNotSupported extends S.TaggedErrorClass()( + "PredictiveScalingForecastNotSupported", + {}, + T.SyntheticError({ + from: "AccessDeniedException", + message: { includes: "GetPredictiveScalingForecast is not supported" }, + }), +) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { Message: S.optional(S.String), ResourceName: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class LimitExceededException extends S.TaggedErrorClass()( "LimitExceededException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "LimitExceededException", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "LimitExceededException", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class TooManyTagsException extends S.TaggedErrorClass()( "TooManyTagsException", { Message: S.optional(S.String), ResourceName: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} //# Operations @@ -1569,6 +1609,7 @@ export const describeScheduledActions: API.OperationMethod< export type GetPredictiveScalingForecastError = | InternalServiceException | ValidationException + | PredictiveScalingForecastNotSupported | CommonErrors; /** * Retrieves the forecast data for a predictive scaling policy. @@ -1589,7 +1630,11 @@ export const getPredictiveScalingForecast: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetPredictiveScalingForecastRequest, output: GetPredictiveScalingForecastResponse, - errors: [InternalServiceException, ValidationException], + errors: [ + InternalServiceException, + ValidationException, + PredictiveScalingForecastNotSupported, + ], operationName: "GetPredictiveScalingForecast", })); export type ListTagsForResourceError = ResourceNotFoundException | CommonErrors; diff --git a/packages/aws/src/services/application-signals.ts b/packages/aws/src/services/application-signals.ts index cabfa1f8f5..3258997805 100644 --- a/packages/aws/src/services/application-signals.ts +++ b/packages/aws/src/services/application-signals.ts @@ -183,19 +183,19 @@ export interface BatchDeleteSuccessfulDeletion { SignalType?: string; LocationHash?: string; } -export const BatchDeleteSuccessfulDeletion = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResourceArn: S.optional(S.String), - SignalType: S.optional(S.String), - LocationHash: S.optional(S.String), - }), - ).annotate({ - identifier: "BatchDeleteSuccessfulDeletion", - }) as any as S.Schema; +export const BatchDeleteSuccessfulDeletion = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResourceArn: S.optional(S.String), + SignalType: S.optional(S.String), + LocationHash: S.optional(S.String), + }), +).annotate({ + identifier: "BatchDeleteSuccessfulDeletion", +}) as any as S.Schema; export type BatchDeleteSuccessfulDeletionList = BatchDeleteSuccessfulDeletion[]; -export const BatchDeleteSuccessfulDeletionList = - /*@__PURE__*/ S.Array(BatchDeleteSuccessfulDeletion); +export const BatchDeleteSuccessfulDeletionList = /*@__PURE__*/ S.Array( + BatchDeleteSuccessfulDeletion, +); export type BatchDeleteErrorCode = | "ResourceNotFoundException" | "AccessDeniedException" @@ -427,20 +427,19 @@ export interface ServiceLevelIndicatorMetric { MetricSource?: MetricSource; CompositeSliConfig?: CompositeSliConfig; } -export const ServiceLevelIndicatorMetric = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - KeyAttributes: S.optional(Attributes), - OperationName: S.optional(S.String), - MetricType: S.optional(ServiceLevelIndicatorMetricType), - MetricDataQueries: MetricDataQueries, - DependencyConfig: S.optional(DependencyConfig), - MetricSource: S.optional(MetricSource), - CompositeSliConfig: S.optional(CompositeSliConfig), - }), - ).annotate({ - identifier: "ServiceLevelIndicatorMetric", - }) as any as S.Schema; +export const ServiceLevelIndicatorMetric = /*@__PURE__*/ S.suspend(() => + S.Struct({ + KeyAttributes: S.optional(Attributes), + OperationName: S.optional(S.String), + MetricType: S.optional(ServiceLevelIndicatorMetricType), + MetricDataQueries: MetricDataQueries, + DependencyConfig: S.optional(DependencyConfig), + MetricSource: S.optional(MetricSource), + CompositeSliConfig: S.optional(CompositeSliConfig), + }), +).annotate({ + identifier: "ServiceLevelIndicatorMetric", +}) as any as S.Schema; export type ServiceLevelIndicatorComparisonOperator = | "GreaterThanOrEqualTo" | "GreaterThan" @@ -465,11 +464,10 @@ export const ServiceLevelIndicator = /*@__PURE__*/ S.suspend(() => export type MonitoredRequestCountMetricDataQueries = | { GoodCountMetric: MetricDataQuery[]; BadCountMetric?: never } | { GoodCountMetric?: never; BadCountMetric: MetricDataQuery[] }; -export const MonitoredRequestCountMetricDataQueries = - /*@__PURE__*/ S.Union([ - S.Struct({ GoodCountMetric: MetricDataQueries }), - S.Struct({ BadCountMetric: MetricDataQueries }), - ]); +export const MonitoredRequestCountMetricDataQueries = /*@__PURE__*/ S.Union([ + S.Struct({ GoodCountMetric: MetricDataQueries }), + S.Struct({ BadCountMetric: MetricDataQueries }), +]); export interface RequestBasedServiceLevelIndicatorMetric { KeyAttributes?: { [key: string]: string | undefined }; OperationName?: string; @@ -480,8 +478,8 @@ export interface RequestBasedServiceLevelIndicatorMetric { MetricSource?: MetricSource; CompositeSliConfig?: CompositeSliConfig; } -export const RequestBasedServiceLevelIndicatorMetric = - /*@__PURE__*/ S.suspend(() => +export const RequestBasedServiceLevelIndicatorMetric = /*@__PURE__*/ S.suspend( + () => S.Struct({ KeyAttributes: S.optional(Attributes), OperationName: S.optional(S.String), @@ -492,24 +490,23 @@ export const RequestBasedServiceLevelIndicatorMetric = MetricSource: S.optional(MetricSource), CompositeSliConfig: S.optional(CompositeSliConfig), }), - ).annotate({ - identifier: "RequestBasedServiceLevelIndicatorMetric", - }) as any as S.Schema; +).annotate({ + identifier: "RequestBasedServiceLevelIndicatorMetric", +}) as any as S.Schema; export interface RequestBasedServiceLevelIndicator { RequestBasedSliMetric: RequestBasedServiceLevelIndicatorMetric; MetricThreshold?: number; ComparisonOperator?: ServiceLevelIndicatorComparisonOperator; } -export const RequestBasedServiceLevelIndicator = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RequestBasedSliMetric: RequestBasedServiceLevelIndicatorMetric, - MetricThreshold: S.optional(S.Number), - ComparisonOperator: S.optional(ServiceLevelIndicatorComparisonOperator), - }), - ).annotate({ - identifier: "RequestBasedServiceLevelIndicator", - }) as any as S.Schema; +export const RequestBasedServiceLevelIndicator = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RequestBasedSliMetric: RequestBasedServiceLevelIndicatorMetric, + MetricThreshold: S.optional(S.Number), + ComparisonOperator: S.optional(ServiceLevelIndicatorComparisonOperator), + }), +).annotate({ + identifier: "RequestBasedServiceLevelIndicator", +}) as any as S.Schema; export type DurationUnit = "MINUTE" | "HOUR" | "DAY" | "MONTH" | (string & {}); export const DurationUnit = /*@__PURE__*/ S.String; export interface RollingInterval { @@ -568,50 +565,51 @@ export interface ServiceLevelObjectiveBudgetReport { RequestBasedSli?: RequestBasedServiceLevelIndicator; Goal?: Goal; } -export const ServiceLevelObjectiveBudgetReport = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Arn: S.String, - Name: S.String, - EvaluationType: S.optional(EvaluationType), - BudgetStatus: ServiceLevelObjectiveBudgetStatus, - Attainment: S.optional(S.Number), - TotalBudgetSeconds: S.optional(S.Number), - BudgetSecondsRemaining: S.optional(S.Number), - TotalBudgetRequests: S.optional(S.Number), - BudgetRequestsRemaining: S.optional(S.Number), - Sli: S.optional(ServiceLevelIndicator), - RequestBasedSli: S.optional(RequestBasedServiceLevelIndicator), - Goal: S.optional(Goal), - }), - ).annotate({ - identifier: "ServiceLevelObjectiveBudgetReport", - }) as any as S.Schema; +export const ServiceLevelObjectiveBudgetReport = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Arn: S.String, + Name: S.String, + EvaluationType: S.optional(EvaluationType), + BudgetStatus: ServiceLevelObjectiveBudgetStatus, + Attainment: S.optional(S.Number), + TotalBudgetSeconds: S.optional(S.Number), + BudgetSecondsRemaining: S.optional(S.Number), + TotalBudgetRequests: S.optional(S.Number), + BudgetRequestsRemaining: S.optional(S.Number), + Sli: S.optional(ServiceLevelIndicator), + RequestBasedSli: S.optional(RequestBasedServiceLevelIndicator), + Goal: S.optional(Goal), + }), +).annotate({ + identifier: "ServiceLevelObjectiveBudgetReport", +}) as any as S.Schema; export type ServiceLevelObjectiveBudgetReports = ServiceLevelObjectiveBudgetReport[]; -export const ServiceLevelObjectiveBudgetReports = - /*@__PURE__*/ S.Array(ServiceLevelObjectiveBudgetReport); +export const ServiceLevelObjectiveBudgetReports = /*@__PURE__*/ S.Array( + ServiceLevelObjectiveBudgetReport, +); export interface ServiceLevelObjectiveBudgetReportError { - Name: string; + Name?: string; Arn: string; ErrorCode: string; ErrorMessage: string; } -export const ServiceLevelObjectiveBudgetReportError = - /*@__PURE__*/ S.suspend(() => +export const ServiceLevelObjectiveBudgetReportError = /*@__PURE__*/ S.suspend( + () => S.Struct({ - Name: S.String, + Name: S.optional(S.String), Arn: S.String, ErrorCode: S.String, ErrorMessage: S.String, }), - ).annotate({ - identifier: "ServiceLevelObjectiveBudgetReportError", - }) as any as S.Schema; +).annotate({ + identifier: "ServiceLevelObjectiveBudgetReportError", +}) as any as S.Schema; export type ServiceLevelObjectiveBudgetReportErrors = ServiceLevelObjectiveBudgetReportError[]; -export const ServiceLevelObjectiveBudgetReportErrors = - /*@__PURE__*/ S.Array(ServiceLevelObjectiveBudgetReportError); +export const ServiceLevelObjectiveBudgetReportErrors = /*@__PURE__*/ S.Array( + ServiceLevelObjectiveBudgetReportError, +); export interface BatchGetServiceLevelObjectiveBudgetReportOutput { Timestamp: Date; Reports: ServiceLevelObjectiveBudgetReport[]; @@ -635,10 +633,10 @@ export const Window = /*@__PURE__*/ S.suspend(() => S.Struct({ DurationUnit: DurationUnit, Duration: S.Number }), ).annotate({ identifier: "Window" }) as any as S.Schema; export interface RecurrenceRule { - Expression: string; + Expression?: string; } export const RecurrenceRule = /*@__PURE__*/ S.suspend(() => - S.Struct({ Expression: S.String }), + S.Struct({ Expression: S.optional(S.String) }), ).annotate({ identifier: "RecurrenceRule" }) as any as S.Schema; export interface ExclusionWindow { Window: Window; @@ -663,53 +661,51 @@ export interface BatchUpdateExclusionWindowsInput { AddExclusionWindows?: ExclusionWindow[]; RemoveExclusionWindows?: ExclusionWindow[]; } -export const BatchUpdateExclusionWindowsInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SloIds: ServiceLevelObjectiveIds, - AddExclusionWindows: S.optional(ExclusionWindows), - RemoveExclusionWindows: S.optional(ExclusionWindows), - }).pipe( - T.all( - T.Http({ method: "PATCH", uri: "/exclusion-windows" }), - svc, - auth, - proto, - ver, - rules, - ), +export const BatchUpdateExclusionWindowsInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SloIds: ServiceLevelObjectiveIds, + AddExclusionWindows: S.optional(ExclusionWindows), + RemoveExclusionWindows: S.optional(ExclusionWindows), + }).pipe( + T.all( + T.Http({ method: "PATCH", uri: "/exclusion-windows" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "BatchUpdateExclusionWindowsInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "BatchUpdateExclusionWindowsInput", +}) as any as S.Schema; export interface BatchUpdateExclusionWindowsError_ { SloId: string; ErrorCode: string; ErrorMessage: string; } -export const BatchUpdateExclusionWindowsError_ = - /*@__PURE__*/ S.suspend(() => - S.Struct({ SloId: S.String, ErrorCode: S.String, ErrorMessage: S.String }), - ).annotate({ - identifier: "BatchUpdateExclusionWindowsError", - }) as any as S.Schema; +export const BatchUpdateExclusionWindowsError_ = /*@__PURE__*/ S.suspend(() => + S.Struct({ SloId: S.String, ErrorCode: S.String, ErrorMessage: S.String }), +).annotate({ + identifier: "BatchUpdateExclusionWindowsError", +}) as any as S.Schema; export type BatchUpdateExclusionWindowsErrors = BatchUpdateExclusionWindowsError_[]; -export const BatchUpdateExclusionWindowsErrors = - /*@__PURE__*/ S.Array(BatchUpdateExclusionWindowsError_); +export const BatchUpdateExclusionWindowsErrors = /*@__PURE__*/ S.Array( + BatchUpdateExclusionWindowsError_, +); export interface BatchUpdateExclusionWindowsOutput { SloIds: string[]; Errors: BatchUpdateExclusionWindowsError_[]; } -export const BatchUpdateExclusionWindowsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SloIds: ServiceLevelObjectiveIds, - Errors: BatchUpdateExclusionWindowsErrors, - }), - ).annotate({ - identifier: "BatchUpdateExclusionWindowsOutput", - }) as any as S.Schema; +export const BatchUpdateExclusionWindowsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SloIds: ServiceLevelObjectiveIds, + Errors: BatchUpdateExclusionWindowsErrors, + }), +).annotate({ + identifier: "BatchUpdateExclusionWindowsOutput", +}) as any as S.Schema; export type DynamicInstrumentationSignalType = "SNAPSHOT" | (string & {}); export const DynamicInstrumentationSignalType = /*@__PURE__*/ S.String; export type ProgrammingLanguage = @@ -748,8 +744,9 @@ export const DynamicInstrumentationAttributeFilterGroup = export type DynamicInstrumentationAttributeFilters = { [key: string]: string | undefined; }[]; -export const DynamicInstrumentationAttributeFilters = - /*@__PURE__*/ S.Array(DynamicInstrumentationAttributeFilterGroup); +export const DynamicInstrumentationAttributeFilters = /*@__PURE__*/ S.Array( + DynamicInstrumentationAttributeFilterGroup, +); export type StringList = string[]; export const StringList = /*@__PURE__*/ S.Array(S.String); export interface CaptureLimitsConfig { @@ -882,19 +879,26 @@ export const CreateInstrumentationConfigurationResponse = identifier: "CreateInstrumentationConfigurationResponse", }) as any as S.Schema; export interface DeleteGroupingConfigurationRequest {} -export const DeleteGroupingConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({}).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), +export const DeleteGroupingConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/grouping-configuration" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteGroupingConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteGroupingConfigurationRequest", +}) as any as S.Schema; export interface DeleteGroupingConfigurationOutput {} -export const DeleteGroupingConfigurationOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteGroupingConfigurationOutput", - }) as any as S.Schema; +export const DeleteGroupingConfigurationOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteGroupingConfigurationOutput", +}) as any as S.Schema; export type LocationIdentifier = | { CodeLocation: CodeLocation; LocationHash?: never } | { CodeLocation?: never; LocationHash: string }; @@ -951,8 +955,8 @@ export interface GetInstrumentationConfigurationRequest { SignalType: DynamicInstrumentationSignalType; LocationIdentifier: LocationIdentifier; } -export const GetInstrumentationConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const GetInstrumentationConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ InstrumentationType: InstrumentationType, Service: S.String, @@ -969,9 +973,9 @@ export const GetInstrumentationConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "GetInstrumentationConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "GetInstrumentationConfigurationRequest", +}) as any as S.Schema; export interface InstrumentationConfiguration { InstrumentationType: InstrumentationType; Service: string; @@ -986,34 +990,32 @@ export interface InstrumentationConfiguration { CreatedAt: Date; ARN: string; } -export const InstrumentationConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - InstrumentationType: InstrumentationType, - Service: S.String, - Environment: S.String, - SignalType: DynamicInstrumentationSignalType, - Location: Location, - LocationHash: S.String, - Description: S.optional(S.String), - ExpiresAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - AttributeFilters: S.optional(DynamicInstrumentationAttributeFilters), - CaptureConfiguration: CaptureConfiguration, - CreatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ARN: S.String, - }), - ).annotate({ - identifier: "InstrumentationConfiguration", - }) as any as S.Schema; +export const InstrumentationConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + InstrumentationType: InstrumentationType, + Service: S.String, + Environment: S.String, + SignalType: DynamicInstrumentationSignalType, + Location: Location, + LocationHash: S.String, + Description: S.optional(S.String), + ExpiresAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + AttributeFilters: S.optional(DynamicInstrumentationAttributeFilters), + CaptureConfiguration: CaptureConfiguration, + CreatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ARN: S.String, + }), +).annotate({ + identifier: "InstrumentationConfiguration", +}) as any as S.Schema; export interface GetInstrumentationConfigurationResponse { Configuration: InstrumentationConfiguration; } -export const GetInstrumentationConfigurationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Configuration: InstrumentationConfiguration }), - ).annotate({ - identifier: "GetInstrumentationConfigurationResponse", - }) as any as S.Schema; +export const GetInstrumentationConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ Configuration: InstrumentationConfiguration }), +).annotate({ + identifier: "GetInstrumentationConfigurationResponse", +}) as any as S.Schema; export type InstrumentationConfigurationStatus = | "READY" | "ERROR" @@ -1084,8 +1086,9 @@ export const InstrumentationStatusEvent = /*@__PURE__*/ S.suspend(() => identifier: "InstrumentationStatusEvent", }) as any as S.Schema; export type InstrumentationStatusEventList = InstrumentationStatusEvent[]; -export const InstrumentationStatusEventList = - /*@__PURE__*/ S.Array(InstrumentationStatusEvent); +export const InstrumentationStatusEventList = /*@__PURE__*/ S.Array( + InstrumentationStatusEvent, +); export interface GetInstrumentationConfigurationStatusResponse { Service: string; Environment: string; @@ -1182,18 +1185,18 @@ export const MetricReferences = /*@__PURE__*/ S.Array(MetricReference); export type LogGroupReferences = { [key: string]: string | undefined }[]; export const LogGroupReferences = /*@__PURE__*/ S.Array(Attributes); export interface Service { - KeyAttributes: { [key: string]: string | undefined }; + KeyAttributes?: { [key: string]: string | undefined }; AttributeMaps?: { [key: string]: string | undefined }[]; ServiceGroups?: ServiceGroup[]; - MetricReferences: MetricReference[]; + MetricReferences?: MetricReference[]; LogGroupReferences?: { [key: string]: string | undefined }[]; } export const Service = /*@__PURE__*/ S.suspend(() => S.Struct({ - KeyAttributes: Attributes, + KeyAttributes: S.optional(Attributes), AttributeMaps: S.optional(AttributeMaps), ServiceGroups: S.optional(ServiceGroups), - MetricReferences: MetricReferences, + MetricReferences: S.optional(MetricReferences), LogGroupReferences: S.optional(LogGroupReferences), }), ).annotate({ identifier: "Service" }) as any as S.Schema; @@ -1233,12 +1236,11 @@ export interface ServiceLevelObjectiveEntity { SloName?: string; SloArn?: string; } -export const ServiceLevelObjectiveEntity = - /*@__PURE__*/ S.suspend(() => - S.Struct({ SloName: S.optional(S.String), SloArn: S.optional(S.String) }), - ).annotate({ - identifier: "ServiceLevelObjectiveEntity", - }) as any as S.Schema; +export const ServiceLevelObjectiveEntity = /*@__PURE__*/ S.suspend(() => + S.Struct({ SloName: S.optional(S.String), SloArn: S.optional(S.String) }), +).annotate({ + identifier: "ServiceLevelObjectiveEntity", +}) as any as S.Schema; export interface ServiceOperationEntity { Service?: ServiceEntity; Operation?: string; @@ -1536,8 +1538,8 @@ export interface ListGroupingAttributeDefinitionsInput { AwsAccountId?: string; IncludeLinkedAccounts?: boolean; } -export const ListGroupingAttributeDefinitionsInput = - /*@__PURE__*/ S.suspend(() => +export const ListGroupingAttributeDefinitionsInput = /*@__PURE__*/ S.suspend( + () => S.Struct({ NextToken: S.optional(S.String).pipe(T.HttpQuery("NextToken")), AwsAccountId: S.optional(S.String).pipe(T.HttpQuery("AwsAccountId")), @@ -1554,9 +1556,9 @@ export const ListGroupingAttributeDefinitionsInput = rules, ), ), - ).annotate({ - identifier: "ListGroupingAttributeDefinitionsInput", - }) as any as S.Schema; +).annotate({ + identifier: "ListGroupingAttributeDefinitionsInput", +}) as any as S.Schema; export type GroupingSourceKeyStringList = string[]; export const GroupingSourceKeyStringList = /*@__PURE__*/ S.Array(S.String); export interface GroupingAttributeDefinition { @@ -1564,16 +1566,15 @@ export interface GroupingAttributeDefinition { GroupingSourceKeys?: string[]; DefaultGroupingValue?: string; } -export const GroupingAttributeDefinition = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - GroupingName: S.String, - GroupingSourceKeys: S.optional(GroupingSourceKeyStringList), - DefaultGroupingValue: S.optional(S.String), - }), - ).annotate({ - identifier: "GroupingAttributeDefinition", - }) as any as S.Schema; +export const GroupingAttributeDefinition = /*@__PURE__*/ S.suspend(() => + S.Struct({ + GroupingName: S.String, + GroupingSourceKeys: S.optional(GroupingSourceKeyStringList), + DefaultGroupingValue: S.optional(S.String), + }), +).annotate({ + identifier: "GroupingAttributeDefinition", +}) as any as S.Schema; export type GroupingAttributeDefinitions = GroupingAttributeDefinition[]; export const GroupingAttributeDefinitions = /*@__PURE__*/ S.Array( GroupingAttributeDefinition, @@ -1583,16 +1584,16 @@ export interface ListGroupingAttributeDefinitionsOutput { UpdatedAt?: Date; NextToken?: string; } -export const ListGroupingAttributeDefinitionsOutput = - /*@__PURE__*/ S.suspend(() => +export const ListGroupingAttributeDefinitionsOutput = /*@__PURE__*/ S.suspend( + () => S.Struct({ GroupingAttributeDefinitions: GroupingAttributeDefinitions, UpdatedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), NextToken: S.optional(S.String), }), - ).annotate({ - identifier: "ListGroupingAttributeDefinitionsOutput", - }) as any as S.Schema; +).annotate({ + identifier: "ListGroupingAttributeDefinitionsOutput", +}) as any as S.Schema; export interface ListInstrumentationConfigurationsRequest { Service: string; Environment: string; @@ -1601,8 +1602,8 @@ export interface ListInstrumentationConfigurationsRequest { MaxResults?: number; NextToken?: string; } -export const ListInstrumentationConfigurationsRequest = - /*@__PURE__*/ S.suspend(() => +export const ListInstrumentationConfigurationsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Service: S.String, Environment: S.String, @@ -1620,9 +1621,9 @@ export const ListInstrumentationConfigurationsRequest = rules, ), ), - ).annotate({ - identifier: "ListInstrumentationConfigurationsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListInstrumentationConfigurationsRequest", +}) as any as S.Schema; export interface InstrumentationConfigurationWithoutServiceEnv { InstrumentationType: InstrumentationType; SignalType: DynamicInstrumentationSignalType; @@ -1665,22 +1666,21 @@ export interface InstrumentationConfigurationsPage { SyncInterval: number; NextToken?: string; } -export const InstrumentationConfigurationsPage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Service: S.String, - Environment: S.String, - Changed: S.Boolean, - LatestConfigurations: S.optional( - InstrumentationConfigurationsWithoutServiceEnv, - ), - SyncedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - SyncInterval: S.Number, - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "InstrumentationConfigurationsPage", - }) as any as S.Schema; +export const InstrumentationConfigurationsPage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Service: S.String, + Environment: S.String, + Changed: S.Boolean, + LatestConfigurations: S.optional( + InstrumentationConfigurationsWithoutServiceEnv, + ), + SyncedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + SyncInterval: S.Number, + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "InstrumentationConfigurationsPage", +}) as any as S.Schema; export interface ListServiceDependenciesInput { StartTime: Date; EndTime: Date; @@ -1688,31 +1688,30 @@ export interface ListServiceDependenciesInput { MaxResults?: number; NextToken?: string; } -export const ListServiceDependenciesInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - StartTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")).pipe( - T.HttpQuery("StartTime"), - ), - EndTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")).pipe( - T.HttpQuery("EndTime"), - ), - KeyAttributes: Attributes, - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("MaxResults")), - NextToken: S.optional(S.String).pipe(T.HttpQuery("NextToken")), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/service-dependencies" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListServiceDependenciesInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + StartTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")).pipe( + T.HttpQuery("StartTime"), ), - ).annotate({ - identifier: "ListServiceDependenciesInput", - }) as any as S.Schema; + EndTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")).pipe( + T.HttpQuery("EndTime"), + ), + KeyAttributes: Attributes, + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("MaxResults")), + NextToken: S.optional(S.String).pipe(T.HttpQuery("NextToken")), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/service-dependencies" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "ListServiceDependenciesInput", +}) as any as S.Schema; export interface ServiceDependency { OperationName: string; DependencyKeyAttributes: { [key: string]: string | undefined }; @@ -1737,17 +1736,16 @@ export interface ListServiceDependenciesOutput { ServiceDependencies: ServiceDependency[]; NextToken?: string; } -export const ListServiceDependenciesOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - StartTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - EndTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ServiceDependencies: ServiceDependencies, - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListServiceDependenciesOutput", - }) as any as S.Schema; +export const ListServiceDependenciesOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + StartTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + EndTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ServiceDependencies: ServiceDependencies, + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListServiceDependenciesOutput", +}) as any as S.Schema; export interface ListServiceDependentsInput { StartTime: Date; EndTime: Date; @@ -1803,17 +1801,16 @@ export interface ListServiceDependentsOutput { ServiceDependents: ServiceDependent[]; NextToken?: string; } -export const ListServiceDependentsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - StartTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - EndTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ServiceDependents: ServiceDependents, - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListServiceDependentsOutput", - }) as any as S.Schema; +export const ListServiceDependentsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + StartTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + EndTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ServiceDependents: ServiceDependents, + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListServiceDependentsOutput", +}) as any as S.Schema; export interface ListServiceLevelObjectiveExclusionWindowsInput { Id: string; MaxResults?: number; @@ -1899,17 +1896,16 @@ export interface ListServiceOperationsOutput { ServiceOperations: ServiceOperation[]; NextToken?: string; } -export const ListServiceOperationsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - StartTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - EndTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ServiceOperations: ServiceOperations, - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListServiceOperationsOutput", - }) as any as S.Schema; +export const ListServiceOperationsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + StartTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + EndTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ServiceOperations: ServiceOperations, + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListServiceOperationsOutput", +}) as any as S.Schema; export interface ListServicesInput { StartTime: Date; EndTime: Date; @@ -2076,32 +2072,28 @@ export const ListTagsForResourceRequest = /*@__PURE__*/ S.suspend(() => export interface ListTagsForResourceResponse { Tags?: Tag[]; } -export const ListTagsForResourceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Tags: S.optional(TagList) }), - ).annotate({ - identifier: "ListTagsForResourceResponse", - }) as any as S.Schema; +export const ListTagsForResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Tags: S.optional(TagList) }), +).annotate({ + identifier: "ListTagsForResourceResponse", +}) as any as S.Schema; export interface PutGroupingConfigurationInput { GroupingAttributeDefinitions: GroupingAttributeDefinition[]; } -export const PutGroupingConfigurationInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - GroupingAttributeDefinitions: GroupingAttributeDefinitions, - }).pipe( - T.all( - T.Http({ method: "PUT", uri: "/grouping-configuration" }), - svc, - auth, - proto, - ver, - rules, - ), +export const PutGroupingConfigurationInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ GroupingAttributeDefinitions: GroupingAttributeDefinitions }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/grouping-configuration" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "PutGroupingConfigurationInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "PutGroupingConfigurationInput", +}) as any as S.Schema; export interface GroupingConfiguration { GroupingAttributeDefinitions: GroupingAttributeDefinition[]; UpdatedAt: Date; @@ -2117,12 +2109,11 @@ export const GroupingConfiguration = /*@__PURE__*/ S.suspend(() => export interface PutGroupingConfigurationOutput { GroupingConfiguration: GroupingConfiguration; } -export const PutGroupingConfigurationOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ GroupingConfiguration: GroupingConfiguration }), - ).annotate({ - identifier: "PutGroupingConfigurationOutput", - }) as any as S.Schema; +export const PutGroupingConfigurationOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ GroupingConfiguration: GroupingConfiguration }), +).annotate({ + identifier: "PutGroupingConfigurationOutput", +}) as any as S.Schema; export interface InstrumentationConfigurationStatusReport { InstrumentationType: InstrumentationType; SignalType: DynamicInstrumentationSignalType; @@ -2131,8 +2122,8 @@ export interface InstrumentationConfigurationStatusReport { Time: Date; ErrorCause?: InstrumentationErrorCause; } -export const InstrumentationConfigurationStatusReport = - /*@__PURE__*/ S.suspend(() => +export const InstrumentationConfigurationStatusReport = /*@__PURE__*/ S.suspend( + () => S.Struct({ InstrumentationType: InstrumentationType, SignalType: DynamicInstrumentationSignalType, @@ -2141,13 +2132,14 @@ export const InstrumentationConfigurationStatusReport = Time: S.Date.pipe(T.TimestampFormat("epoch-seconds")), ErrorCause: S.optional(InstrumentationErrorCause), }), - ).annotate({ - identifier: "InstrumentationConfigurationStatusReport", - }) as any as S.Schema; +).annotate({ + identifier: "InstrumentationConfigurationStatusReport", +}) as any as S.Schema; export type InstrumentationConfigurationStatusList = InstrumentationConfigurationStatusReport[]; -export const InstrumentationConfigurationStatusList = - /*@__PURE__*/ S.Array(InstrumentationConfigurationStatusReport); +export const InstrumentationConfigurationStatusList = /*@__PURE__*/ S.Array( + InstrumentationConfigurationStatusReport, +); export interface ReportInstrumentationConfigurationStatusRequest { Service: string; Environment: string; @@ -2303,38 +2295,36 @@ export interface ServiceLevelIndicatorMetricConfig { DependencyConfig?: DependencyConfig; CompositeSliConfig?: CompositeSliConfig; } -export const ServiceLevelIndicatorMetricConfig = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - KeyAttributes: S.optional(Attributes), - OperationName: S.optional(S.String), - MetricType: S.optional(ServiceLevelIndicatorMetricType), - MetricName: S.optional(S.String), - Statistic: S.optional(S.String), - PeriodSeconds: S.optional(S.Number), - MetricSource: S.optional(MetricSource), - MetricDataQueries: S.optional(MetricDataQueries), - DependencyConfig: S.optional(DependencyConfig), - CompositeSliConfig: S.optional(CompositeSliConfig), - }), - ).annotate({ - identifier: "ServiceLevelIndicatorMetricConfig", - }) as any as S.Schema; +export const ServiceLevelIndicatorMetricConfig = /*@__PURE__*/ S.suspend(() => + S.Struct({ + KeyAttributes: S.optional(Attributes), + OperationName: S.optional(S.String), + MetricType: S.optional(ServiceLevelIndicatorMetricType), + MetricName: S.optional(S.String), + Statistic: S.optional(S.String), + PeriodSeconds: S.optional(S.Number), + MetricSource: S.optional(MetricSource), + MetricDataQueries: S.optional(MetricDataQueries), + DependencyConfig: S.optional(DependencyConfig), + CompositeSliConfig: S.optional(CompositeSliConfig), + }), +).annotate({ + identifier: "ServiceLevelIndicatorMetricConfig", +}) as any as S.Schema; export interface ServiceLevelIndicatorConfig { SliMetricConfig: ServiceLevelIndicatorMetricConfig; MetricThreshold?: number; ComparisonOperator?: ServiceLevelIndicatorComparisonOperator; } -export const ServiceLevelIndicatorConfig = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SliMetricConfig: ServiceLevelIndicatorMetricConfig, - MetricThreshold: S.optional(S.Number), - ComparisonOperator: S.optional(ServiceLevelIndicatorComparisonOperator), - }), - ).annotate({ - identifier: "ServiceLevelIndicatorConfig", - }) as any as S.Schema; +export const ServiceLevelIndicatorConfig = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SliMetricConfig: ServiceLevelIndicatorMetricConfig, + MetricThreshold: S.optional(S.Number), + ComparisonOperator: S.optional(ServiceLevelIndicatorComparisonOperator), + }), +).annotate({ + identifier: "ServiceLevelIndicatorConfig", +}) as any as S.Schema; export interface RequestBasedServiceLevelIndicatorMetricConfig { KeyAttributes?: { [key: string]: string | undefined }; OperationName?: string; @@ -2369,17 +2359,17 @@ export interface RequestBasedServiceLevelIndicatorConfig { MetricThreshold?: number; ComparisonOperator?: ServiceLevelIndicatorComparisonOperator; } -export const RequestBasedServiceLevelIndicatorConfig = - /*@__PURE__*/ S.suspend(() => +export const RequestBasedServiceLevelIndicatorConfig = /*@__PURE__*/ S.suspend( + () => S.Struct({ RequestBasedSliMetricConfig: RequestBasedServiceLevelIndicatorMetricConfig, MetricThreshold: S.optional(S.Number), ComparisonOperator: S.optional(ServiceLevelIndicatorComparisonOperator), }), - ).annotate({ - identifier: "RequestBasedServiceLevelIndicatorConfig", - }) as any as S.Schema; +).annotate({ + identifier: "RequestBasedServiceLevelIndicatorConfig", +}) as any as S.Schema; export interface BurnRateConfiguration { LookBackWindowMinutes: number; } @@ -2403,33 +2393,30 @@ export interface CreateServiceLevelObjectiveInput { CreateRecommendedSlo?: boolean; AutoInvestigationEnabled?: boolean; } -export const CreateServiceLevelObjectiveInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Name: S.String, - Description: S.optional(S.String), - SliConfig: S.optional(ServiceLevelIndicatorConfig), - RequestBasedSliConfig: S.optional( - RequestBasedServiceLevelIndicatorConfig, - ), - Goal: S.optional(Goal), - Tags: S.optional(TagList), - BurnRateConfigurations: S.optional(BurnRateConfigurations), - CreateRecommendedSlo: S.optional(S.Boolean), - AutoInvestigationEnabled: S.optional(S.Boolean), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/slo" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateServiceLevelObjectiveInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.String, + Description: S.optional(S.String), + SliConfig: S.optional(ServiceLevelIndicatorConfig), + RequestBasedSliConfig: S.optional(RequestBasedServiceLevelIndicatorConfig), + Goal: S.optional(Goal), + Tags: S.optional(TagList), + BurnRateConfigurations: S.optional(BurnRateConfigurations), + CreateRecommendedSlo: S.optional(S.Boolean), + AutoInvestigationEnabled: S.optional(S.Boolean), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/slo" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateServiceLevelObjectiveInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateServiceLevelObjectiveInput", +}) as any as S.Schema; export type MetricSourceType = | "ServiceOperation" | "CloudWatchMetric" @@ -2474,39 +2461,36 @@ export const ServiceLevelObjective = /*@__PURE__*/ S.suspend(() => export interface CreateServiceLevelObjectiveOutput { Slo: ServiceLevelObjective; } -export const CreateServiceLevelObjectiveOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Slo: ServiceLevelObjective }), - ).annotate({ - identifier: "CreateServiceLevelObjectiveOutput", - }) as any as S.Schema; +export const CreateServiceLevelObjectiveOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ Slo: ServiceLevelObjective }), +).annotate({ + identifier: "CreateServiceLevelObjectiveOutput", +}) as any as S.Schema; export interface GetServiceLevelObjectiveInput { Id: string; } -export const GetServiceLevelObjectiveInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( - T.all( - T.Http({ method: "GET", uri: "/slo/{Id}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetServiceLevelObjectiveInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( + T.all( + T.Http({ method: "GET", uri: "/slo/{Id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetServiceLevelObjectiveInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetServiceLevelObjectiveInput", +}) as any as S.Schema; export interface GetServiceLevelObjectiveOutput { Slo: ServiceLevelObjective; } -export const GetServiceLevelObjectiveOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Slo: ServiceLevelObjective }), - ).annotate({ - identifier: "GetServiceLevelObjectiveOutput", - }) as any as S.Schema; +export const GetServiceLevelObjectiveOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ Slo: ServiceLevelObjective }), +).annotate({ + identifier: "GetServiceLevelObjectiveOutput", +}) as any as S.Schema; export interface UpdateServiceLevelObjectiveInput { Id: string; Description?: string; @@ -2516,63 +2500,59 @@ export interface UpdateServiceLevelObjectiveInput { BurnRateConfigurations?: BurnRateConfiguration[]; AutoInvestigationEnabled?: boolean; } -export const UpdateServiceLevelObjectiveInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Id: S.String.pipe(T.HttpLabel("Id")), - Description: S.optional(S.String), - SliConfig: S.optional(ServiceLevelIndicatorConfig), - RequestBasedSliConfig: S.optional( - RequestBasedServiceLevelIndicatorConfig, - ), - Goal: S.optional(Goal), - BurnRateConfigurations: S.optional(BurnRateConfigurations), - AutoInvestigationEnabled: S.optional(S.Boolean), - }).pipe( - T.all( - T.Http({ method: "PATCH", uri: "/slo/{Id}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateServiceLevelObjectiveInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Id: S.String.pipe(T.HttpLabel("Id")), + Description: S.optional(S.String), + SliConfig: S.optional(ServiceLevelIndicatorConfig), + RequestBasedSliConfig: S.optional(RequestBasedServiceLevelIndicatorConfig), + Goal: S.optional(Goal), + BurnRateConfigurations: S.optional(BurnRateConfigurations), + AutoInvestigationEnabled: S.optional(S.Boolean), + }).pipe( + T.all( + T.Http({ method: "PATCH", uri: "/slo/{Id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateServiceLevelObjectiveInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateServiceLevelObjectiveInput", +}) as any as S.Schema; export interface UpdateServiceLevelObjectiveOutput { Slo: ServiceLevelObjective; } -export const UpdateServiceLevelObjectiveOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Slo: ServiceLevelObjective }), - ).annotate({ - identifier: "UpdateServiceLevelObjectiveOutput", - }) as any as S.Schema; +export const UpdateServiceLevelObjectiveOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ Slo: ServiceLevelObjective }), +).annotate({ + identifier: "UpdateServiceLevelObjectiveOutput", +}) as any as S.Schema; export interface DeleteServiceLevelObjectiveInput { Id: string; } -export const DeleteServiceLevelObjectiveInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/slo/{Id}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteServiceLevelObjectiveInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/slo/{Id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteServiceLevelObjectiveInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteServiceLevelObjectiveInput", +}) as any as S.Schema; export interface DeleteServiceLevelObjectiveOutput {} -export const DeleteServiceLevelObjectiveOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteServiceLevelObjectiveOutput", - }) as any as S.Schema; +export const DeleteServiceLevelObjectiveOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteServiceLevelObjectiveOutput", +}) as any as S.Schema; export type MetricSourceTypes = MetricSourceType[]; export const MetricSourceTypes = /*@__PURE__*/ S.Array(MetricSourceType); export interface ListServiceLevelObjectivesInput { @@ -2586,35 +2566,34 @@ export interface ListServiceLevelObjectivesInput { SloOwnerAwsAccountId?: string; MetricSource?: MetricSource; } -export const ListServiceLevelObjectivesInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - KeyAttributes: S.optional(Attributes), - OperationName: S.optional(S.String).pipe(T.HttpQuery("OperationName")), - DependencyConfig: S.optional(DependencyConfig), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("MaxResults")), - NextToken: S.optional(S.String).pipe(T.HttpQuery("NextToken")), - MetricSourceTypes: S.optional(MetricSourceTypes), - IncludeLinkedAccounts: S.optional(S.Boolean).pipe( - T.HttpQuery("IncludeLinkedAccounts"), - ), - SloOwnerAwsAccountId: S.optional(S.String).pipe( - T.HttpQuery("SloOwnerAwsAccountId"), - ), - MetricSource: S.optional(MetricSource), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/slos" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListServiceLevelObjectivesInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + KeyAttributes: S.optional(Attributes), + OperationName: S.optional(S.String).pipe(T.HttpQuery("OperationName")), + DependencyConfig: S.optional(DependencyConfig), + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("MaxResults")), + NextToken: S.optional(S.String).pipe(T.HttpQuery("NextToken")), + MetricSourceTypes: S.optional(MetricSourceTypes), + IncludeLinkedAccounts: S.optional(S.Boolean).pipe( + T.HttpQuery("IncludeLinkedAccounts"), ), - ).annotate({ - identifier: "ListServiceLevelObjectivesInput", - }) as any as S.Schema; + SloOwnerAwsAccountId: S.optional(S.String).pipe( + T.HttpQuery("SloOwnerAwsAccountId"), + ), + MetricSource: S.optional(MetricSource), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/slos" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "ListServiceLevelObjectivesInput", +}) as any as S.Schema; export interface ServiceLevelObjectiveSummary { Arn: string; Name: string; @@ -2627,66 +2606,75 @@ export interface ServiceLevelObjectiveSummary { MetricSource?: MetricSource; CompositeSliConfig?: CompositeSliConfig; } -export const ServiceLevelObjectiveSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Arn: S.String, - Name: S.String, - KeyAttributes: S.optional(Attributes), - OperationName: S.optional(S.String), - DependencyConfig: S.optional(DependencyConfig), - CreatedTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - EvaluationType: S.optional(EvaluationType), - MetricSourceType: S.optional(MetricSourceType), - MetricSource: S.optional(MetricSource), - CompositeSliConfig: S.optional(CompositeSliConfig), - }), - ).annotate({ - identifier: "ServiceLevelObjectiveSummary", - }) as any as S.Schema; +export const ServiceLevelObjectiveSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Arn: S.String, + Name: S.String, + KeyAttributes: S.optional(Attributes), + OperationName: S.optional(S.String), + DependencyConfig: S.optional(DependencyConfig), + CreatedTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + EvaluationType: S.optional(EvaluationType), + MetricSourceType: S.optional(MetricSourceType), + MetricSource: S.optional(MetricSource), + CompositeSliConfig: S.optional(CompositeSliConfig), + }), +).annotate({ + identifier: "ServiceLevelObjectiveSummary", +}) as any as S.Schema; export type ServiceLevelObjectiveSummaries = ServiceLevelObjectiveSummary[]; -export const ServiceLevelObjectiveSummaries = - /*@__PURE__*/ S.Array(ServiceLevelObjectiveSummary); +export const ServiceLevelObjectiveSummaries = /*@__PURE__*/ S.Array( + ServiceLevelObjectiveSummary, +); export interface ListServiceLevelObjectivesOutput { SloSummaries?: ServiceLevelObjectiveSummary[]; NextToken?: string; } -export const ListServiceLevelObjectivesOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SloSummaries: S.optional(ServiceLevelObjectiveSummaries), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListServiceLevelObjectivesOutput", - }) as any as S.Schema; +export const ListServiceLevelObjectivesOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SloSummaries: S.optional(ServiceLevelObjectiveSummaries), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListServiceLevelObjectivesOutput", +}) as any as S.Schema; //# Errors export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", { Message: S.String }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "ValidationError", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "ValidationError", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { ResourceType: S.String, ResourceId: S.String, Message: S.String }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { Message: S.String }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", { Message: S.String }, + T.HttpError(402), ).pipe(C.withQuotaError) {} export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "AccessDenied", httpResponseCode: 403 }), + T.all( + T.AwsQueryError({ code: "AccessDenied", httpResponseCode: 403 }), + T.HttpError(403), + ), ).pipe(C.withAuthError) {} //# Operations diff --git a/packages/aws/src/services/apprunner.ts b/packages/aws/src/services/apprunner.ts index 6391d7a6aa..c6d9c3f962 100644 --- a/packages/aws/src/services/apprunner.ts +++ b/packages/aws/src/services/apprunner.ts @@ -142,26 +142,25 @@ export interface AssociateCustomDomainRequest { DomainName: string; EnableWWWSubdomain?: boolean; } -export const AssociateCustomDomainRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ServiceArn: S.String, - DomainName: S.String, - EnableWWWSubdomain: S.optional(S.Boolean), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const AssociateCustomDomainRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ServiceArn: S.String, + DomainName: S.String, + EnableWWWSubdomain: S.optional(S.Boolean), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "AssociateCustomDomainRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "AssociateCustomDomainRequest", +}) as any as S.Schema; export type CertificateValidationRecordStatus = | "PENDING_VALIDATION" | "SUCCESS" @@ -174,20 +173,20 @@ export interface CertificateValidationRecord { Value?: string; Status?: CertificateValidationRecordStatus; } -export const CertificateValidationRecord = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Name: S.optional(S.String), - Type: S.optional(S.String), - Value: S.optional(S.String), - Status: S.optional(CertificateValidationRecordStatus), - }), - ).annotate({ - identifier: "CertificateValidationRecord", - }) as any as S.Schema; +export const CertificateValidationRecord = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.optional(S.String), + Type: S.optional(S.String), + Value: S.optional(S.String), + Status: S.optional(CertificateValidationRecordStatus), + }), +).annotate({ + identifier: "CertificateValidationRecord", +}) as any as S.Schema; export type CertificateValidationRecordList = CertificateValidationRecord[]; -export const CertificateValidationRecordList = - /*@__PURE__*/ S.Array(CertificateValidationRecord); +export const CertificateValidationRecordList = /*@__PURE__*/ S.Array( + CertificateValidationRecord, +); export type CustomDomainAssociationStatus = | "CREATING" | "CREATE_FAILED" @@ -232,17 +231,16 @@ export interface AssociateCustomDomainResponse { CustomDomain: CustomDomain; VpcDNSTargets: VpcDNSTarget[]; } -export const AssociateCustomDomainResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DNSTarget: S.String, - ServiceArn: S.String, - CustomDomain: CustomDomain, - VpcDNSTargets: VpcDNSTargetList, - }).pipe(ns), - ).annotate({ - identifier: "AssociateCustomDomainResponse", - }) as any as S.Schema; +export const AssociateCustomDomainResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DNSTarget: S.String, + ServiceArn: S.String, + CustomDomain: CustomDomain, + VpcDNSTargets: VpcDNSTargetList, + }).pipe(ns), +).annotate({ + identifier: "AssociateCustomDomainResponse", +}) as any as S.Schema; export interface Tag { Key?: string; Value?: string; @@ -259,8 +257,8 @@ export interface CreateAutoScalingConfigurationRequest { MaxSize?: number; Tags?: Tag[]; } -export const CreateAutoScalingConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const CreateAutoScalingConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AutoScalingConfigurationName: S.String, MaxConcurrency: S.optional(S.Number), @@ -278,12 +276,14 @@ export const CreateAutoScalingConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "CreateAutoScalingConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "CreateAutoScalingConfigurationRequest", +}) as any as S.Schema; export type AutoScalingConfigurationStatus = | "ACTIVE" | "INACTIVE" + | "active" + | "inactive" | (string & {}); export const AutoScalingConfigurationStatus = /*@__PURE__*/ S.String; export interface AutoScalingConfiguration { @@ -321,12 +321,12 @@ export const AutoScalingConfiguration = /*@__PURE__*/ S.suspend(() => export interface CreateAutoScalingConfigurationResponse { AutoScalingConfiguration: AutoScalingConfiguration; } -export const CreateAutoScalingConfigurationResponse = - /*@__PURE__*/ S.suspend(() => +export const CreateAutoScalingConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ AutoScalingConfiguration: AutoScalingConfiguration }).pipe(ns), - ).annotate({ - identifier: "CreateAutoScalingConfigurationResponse", - }) as any as S.Schema; +).annotate({ + identifier: "CreateAutoScalingConfigurationResponse", +}) as any as S.Schema; export type ProviderType = "GITHUB" | "BITBUCKET" | (string & {}); export const ProviderType = /*@__PURE__*/ S.String; export interface CreateConnectionRequest { @@ -399,8 +399,8 @@ export interface CreateObservabilityConfigurationRequest { TraceConfiguration?: TraceConfiguration; Tags?: Tag[]; } -export const CreateObservabilityConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const CreateObservabilityConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ ObservabilityConfigurationName: S.String, TraceConfiguration: S.optional(TraceConfiguration), @@ -416,9 +416,9 @@ export const CreateObservabilityConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "CreateObservabilityConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "CreateObservabilityConfigurationRequest", +}) as any as S.Schema; export type ObservabilityConfigurationStatus = | "ACTIVE" | "INACTIVE" @@ -451,14 +451,14 @@ export const ObservabilityConfiguration = /*@__PURE__*/ S.suspend(() => export interface CreateObservabilityConfigurationResponse { ObservabilityConfiguration: ObservabilityConfiguration; } -export const CreateObservabilityConfigurationResponse = - /*@__PURE__*/ S.suspend(() => +export const CreateObservabilityConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ ObservabilityConfiguration: ObservabilityConfiguration }).pipe( ns, ), - ).annotate({ - identifier: "CreateObservabilityConfigurationResponse", - }) as any as S.Schema; +).annotate({ + identifier: "CreateObservabilityConfigurationResponse", +}) as any as S.Schema; export type SourceCodeVersionType = "BRANCH" | (string & {}); export const SourceCodeVersionType = /*@__PURE__*/ S.String; export interface SourceCodeVersion { @@ -592,15 +592,14 @@ export interface AuthenticationConfiguration { ConnectionArn?: string; AccessRoleArn?: string; } -export const AuthenticationConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ConnectionArn: S.optional(S.String), - AccessRoleArn: S.optional(S.String), - }), - ).annotate({ - identifier: "AuthenticationConfiguration", - }) as any as S.Schema; +export const AuthenticationConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ConnectionArn: S.optional(S.String), + AccessRoleArn: S.optional(S.String), + }), +).annotate({ + identifier: "AuthenticationConfiguration", +}) as any as S.Schema; export interface SourceConfiguration { CodeRepository?: CodeRepository; ImageRepository?: ImageRepository; @@ -703,15 +702,14 @@ export interface ServiceObservabilityConfiguration { ObservabilityEnabled: boolean; ObservabilityConfigurationArn?: string; } -export const ServiceObservabilityConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ObservabilityEnabled: S.Boolean, - ObservabilityConfigurationArn: S.optional(S.String), - }), - ).annotate({ - identifier: "ServiceObservabilityConfiguration", - }) as any as S.Schema; +export const ServiceObservabilityConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ObservabilityEnabled: S.Boolean, + ObservabilityConfigurationArn: S.optional(S.String), + }), +).annotate({ + identifier: "ServiceObservabilityConfiguration", +}) as any as S.Schema; export interface CreateServiceRequest { ServiceName: string; SourceConfiguration: SourceConfiguration; @@ -766,20 +764,19 @@ export interface AutoScalingConfigurationSummary { HasAssociatedService?: boolean; IsDefault?: boolean; } -export const AutoScalingConfigurationSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AutoScalingConfigurationArn: S.optional(S.String), - AutoScalingConfigurationName: S.optional(S.String), - AutoScalingConfigurationRevision: S.optional(S.Number), - Status: S.optional(AutoScalingConfigurationStatus), - CreatedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - HasAssociatedService: S.optional(S.Boolean), - IsDefault: S.optional(S.Boolean), - }), - ).annotate({ - identifier: "AutoScalingConfigurationSummary", - }) as any as S.Schema; +export const AutoScalingConfigurationSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AutoScalingConfigurationArn: S.optional(S.String), + AutoScalingConfigurationName: S.optional(S.String), + AutoScalingConfigurationRevision: S.optional(S.Number), + Status: S.optional(AutoScalingConfigurationStatus), + CreatedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + HasAssociatedService: S.optional(S.Boolean), + IsDefault: S.optional(S.Boolean), + }), +).annotate({ + identifier: "AutoScalingConfigurationSummary", +}) as any as S.Schema; export interface Service { ServiceName: string; ServiceId: string; @@ -853,7 +850,12 @@ export const CreateVpcConnectorRequest = /*@__PURE__*/ S.suspend(() => ).annotate({ identifier: "CreateVpcConnectorRequest", }) as any as S.Schema; -export type VpcConnectorStatus = "ACTIVE" | "INACTIVE" | (string & {}); +export type VpcConnectorStatus = + | "ACTIVE" + | "INACTIVE" + | "active" + | "inactive" + | (string & {}); export const VpcConnectorStatus = /*@__PURE__*/ S.String; export interface VpcConnector { VpcConnectorName?: string; @@ -903,27 +905,26 @@ export interface CreateVpcIngressConnectionRequest { IngressVpcConfiguration: IngressVpcConfiguration; Tags?: Tag[]; } -export const CreateVpcIngressConnectionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ServiceArn: S.String, - VpcIngressConnectionName: S.String, - IngressVpcConfiguration: IngressVpcConfiguration, - Tags: S.optional(TagList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateVpcIngressConnectionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ServiceArn: S.String, + VpcIngressConnectionName: S.String, + IngressVpcConfiguration: IngressVpcConfiguration, + Tags: S.optional(TagList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateVpcIngressConnectionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateVpcIngressConnectionRequest", +}) as any as S.Schema; export type VpcIngressConnectionStatus = | "AVAILABLE" | "PENDING_CREATION" @@ -964,18 +965,17 @@ export const VpcIngressConnection = /*@__PURE__*/ S.suspend(() => export interface CreateVpcIngressConnectionResponse { VpcIngressConnection: VpcIngressConnection; } -export const CreateVpcIngressConnectionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ VpcIngressConnection: VpcIngressConnection }).pipe(ns), - ).annotate({ - identifier: "CreateVpcIngressConnectionResponse", - }) as any as S.Schema; +export const CreateVpcIngressConnectionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ VpcIngressConnection: VpcIngressConnection }).pipe(ns), +).annotate({ + identifier: "CreateVpcIngressConnectionResponse", +}) as any as S.Schema; export interface DeleteAutoScalingConfigurationRequest { AutoScalingConfigurationArn: string; DeleteAllRevisions?: boolean; } -export const DeleteAutoScalingConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const DeleteAutoScalingConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AutoScalingConfigurationArn: S.String, DeleteAllRevisions: S.optional(S.Boolean), @@ -990,18 +990,18 @@ export const DeleteAutoScalingConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "DeleteAutoScalingConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteAutoScalingConfigurationRequest", +}) as any as S.Schema; export interface DeleteAutoScalingConfigurationResponse { AutoScalingConfiguration: AutoScalingConfiguration; } -export const DeleteAutoScalingConfigurationResponse = - /*@__PURE__*/ S.suspend(() => +export const DeleteAutoScalingConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ AutoScalingConfiguration: AutoScalingConfiguration }).pipe(ns), - ).annotate({ - identifier: "DeleteAutoScalingConfigurationResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteAutoScalingConfigurationResponse", +}) as any as S.Schema; export interface DeleteConnectionRequest { ConnectionArn: string; } @@ -1031,8 +1031,8 @@ export const DeleteConnectionResponse = /*@__PURE__*/ S.suspend(() => export interface DeleteObservabilityConfigurationRequest { ObservabilityConfigurationArn: string; } -export const DeleteObservabilityConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const DeleteObservabilityConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ ObservabilityConfigurationArn: S.String }).pipe( T.all( ns, @@ -1044,20 +1044,20 @@ export const DeleteObservabilityConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "DeleteObservabilityConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteObservabilityConfigurationRequest", +}) as any as S.Schema; export interface DeleteObservabilityConfigurationResponse { ObservabilityConfiguration: ObservabilityConfiguration; } -export const DeleteObservabilityConfigurationResponse = - /*@__PURE__*/ S.suspend(() => +export const DeleteObservabilityConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ ObservabilityConfiguration: ObservabilityConfiguration }).pipe( ns, ), - ).annotate({ - identifier: "DeleteObservabilityConfigurationResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteObservabilityConfigurationResponse", +}) as any as S.Schema; export interface DeleteServiceRequest { ServiceArn: string; } @@ -1114,36 +1114,34 @@ export const DeleteVpcConnectorResponse = /*@__PURE__*/ S.suspend(() => export interface DeleteVpcIngressConnectionRequest { VpcIngressConnectionArn: string; } -export const DeleteVpcIngressConnectionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ VpcIngressConnectionArn: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteVpcIngressConnectionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ VpcIngressConnectionArn: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteVpcIngressConnectionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteVpcIngressConnectionRequest", +}) as any as S.Schema; export interface DeleteVpcIngressConnectionResponse { VpcIngressConnection: VpcIngressConnection; } -export const DeleteVpcIngressConnectionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ VpcIngressConnection: VpcIngressConnection }).pipe(ns), - ).annotate({ - identifier: "DeleteVpcIngressConnectionResponse", - }) as any as S.Schema; +export const DeleteVpcIngressConnectionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ VpcIngressConnection: VpcIngressConnection }).pipe(ns), +).annotate({ + identifier: "DeleteVpcIngressConnectionResponse", +}) as any as S.Schema; export interface DescribeAutoScalingConfigurationRequest { AutoScalingConfigurationArn: string; } -export const DescribeAutoScalingConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const DescribeAutoScalingConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AutoScalingConfigurationArn: S.String }).pipe( T.all( ns, @@ -1155,43 +1153,42 @@ export const DescribeAutoScalingConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "DescribeAutoScalingConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeAutoScalingConfigurationRequest", +}) as any as S.Schema; export interface DescribeAutoScalingConfigurationResponse { AutoScalingConfiguration: AutoScalingConfiguration; } -export const DescribeAutoScalingConfigurationResponse = - /*@__PURE__*/ S.suspend(() => +export const DescribeAutoScalingConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ AutoScalingConfiguration: AutoScalingConfiguration }).pipe(ns), - ).annotate({ - identifier: "DescribeAutoScalingConfigurationResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeAutoScalingConfigurationResponse", +}) as any as S.Schema; export interface DescribeCustomDomainsRequest { ServiceArn: string; NextToken?: string; MaxResults?: number; } -export const DescribeCustomDomainsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ServiceArn: S.String, - NextToken: S.optional(S.String), - MaxResults: S.optional(S.Number), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeCustomDomainsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ServiceArn: S.String, + NextToken: S.optional(S.String), + MaxResults: S.optional(S.Number), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeCustomDomainsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeCustomDomainsRequest", +}) as any as S.Schema; export type CustomDomainList = CustomDomain[]; export const CustomDomainList = /*@__PURE__*/ S.Array(CustomDomain); export interface DescribeCustomDomainsResponse { @@ -1201,18 +1198,17 @@ export interface DescribeCustomDomainsResponse { VpcDNSTargets: VpcDNSTarget[]; NextToken?: string; } -export const DescribeCustomDomainsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DNSTarget: S.String, - ServiceArn: S.String, - CustomDomains: CustomDomainList, - VpcDNSTargets: VpcDNSTargetList, - NextToken: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "DescribeCustomDomainsResponse", - }) as any as S.Schema; +export const DescribeCustomDomainsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DNSTarget: S.String, + ServiceArn: S.String, + CustomDomains: CustomDomainList, + VpcDNSTargets: VpcDNSTargetList, + NextToken: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "DescribeCustomDomainsResponse", +}) as any as S.Schema; export interface DescribeObservabilityConfigurationRequest { ObservabilityConfigurationArn: string; } @@ -1272,104 +1268,98 @@ export const DescribeServiceResponse = /*@__PURE__*/ S.suspend(() => export interface DescribeVpcConnectorRequest { VpcConnectorArn: string; } -export const DescribeVpcConnectorRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ VpcConnectorArn: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeVpcConnectorRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ VpcConnectorArn: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeVpcConnectorRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeVpcConnectorRequest", +}) as any as S.Schema; export interface DescribeVpcConnectorResponse { VpcConnector: VpcConnector; } -export const DescribeVpcConnectorResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ VpcConnector: VpcConnector }).pipe(ns), - ).annotate({ - identifier: "DescribeVpcConnectorResponse", - }) as any as S.Schema; +export const DescribeVpcConnectorResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ VpcConnector: VpcConnector }).pipe(ns), +).annotate({ + identifier: "DescribeVpcConnectorResponse", +}) as any as S.Schema; export interface DescribeVpcIngressConnectionRequest { VpcIngressConnectionArn: string; } -export const DescribeVpcIngressConnectionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ VpcIngressConnectionArn: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeVpcIngressConnectionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ VpcIngressConnectionArn: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeVpcIngressConnectionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeVpcIngressConnectionRequest", +}) as any as S.Schema; export interface DescribeVpcIngressConnectionResponse { VpcIngressConnection: VpcIngressConnection; } -export const DescribeVpcIngressConnectionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ VpcIngressConnection: VpcIngressConnection }).pipe(ns), - ).annotate({ - identifier: "DescribeVpcIngressConnectionResponse", - }) as any as S.Schema; +export const DescribeVpcIngressConnectionResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ VpcIngressConnection: VpcIngressConnection }).pipe(ns), +).annotate({ + identifier: "DescribeVpcIngressConnectionResponse", +}) as any as S.Schema; export interface DisassociateCustomDomainRequest { ServiceArn: string; DomainName: string; } -export const DisassociateCustomDomainRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ServiceArn: S.String, DomainName: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DisassociateCustomDomainRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ ServiceArn: S.String, DomainName: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DisassociateCustomDomainRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DisassociateCustomDomainRequest", +}) as any as S.Schema; export interface DisassociateCustomDomainResponse { DNSTarget: string; ServiceArn: string; CustomDomain: CustomDomain; VpcDNSTargets: VpcDNSTarget[]; } -export const DisassociateCustomDomainResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DNSTarget: S.String, - ServiceArn: S.String, - CustomDomain: CustomDomain, - VpcDNSTargets: VpcDNSTargetList, - }).pipe(ns), - ).annotate({ - identifier: "DisassociateCustomDomainResponse", - }) as any as S.Schema; +export const DisassociateCustomDomainResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DNSTarget: S.String, + ServiceArn: S.String, + CustomDomain: CustomDomain, + VpcDNSTargets: VpcDNSTargetList, + }).pipe(ns), +).annotate({ + identifier: "DisassociateCustomDomainResponse", +}) as any as S.Schema; export interface ListAutoScalingConfigurationsRequest { AutoScalingConfigurationName?: string; LatestOnly?: boolean; MaxResults?: number; NextToken?: string; } -export const ListAutoScalingConfigurationsRequest = - /*@__PURE__*/ S.suspend(() => +export const ListAutoScalingConfigurationsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AutoScalingConfigurationName: S.optional(S.String), LatestOnly: S.optional(S.Boolean), @@ -1386,26 +1376,27 @@ export const ListAutoScalingConfigurationsRequest = rules, ), ), - ).annotate({ - identifier: "ListAutoScalingConfigurationsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListAutoScalingConfigurationsRequest", +}) as any as S.Schema; export type AutoScalingConfigurationSummaryList = AutoScalingConfigurationSummary[]; -export const AutoScalingConfigurationSummaryList = - /*@__PURE__*/ S.Array(AutoScalingConfigurationSummary); +export const AutoScalingConfigurationSummaryList = /*@__PURE__*/ S.Array( + AutoScalingConfigurationSummary, +); export interface ListAutoScalingConfigurationsResponse { AutoScalingConfigurationSummaryList: AutoScalingConfigurationSummary[]; NextToken?: string; } -export const ListAutoScalingConfigurationsResponse = - /*@__PURE__*/ S.suspend(() => +export const ListAutoScalingConfigurationsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ AutoScalingConfigurationSummaryList: AutoScalingConfigurationSummaryList, NextToken: S.optional(S.String), }).pipe(ns), - ).annotate({ - identifier: "ListAutoScalingConfigurationsResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListAutoScalingConfigurationsResponse", +}) as any as S.Schema; export interface ListConnectionsRequest { ConnectionName?: string; MaxResults?: number; @@ -1468,8 +1459,8 @@ export interface ListObservabilityConfigurationsRequest { MaxResults?: number; NextToken?: string; } -export const ListObservabilityConfigurationsRequest = - /*@__PURE__*/ S.suspend(() => +export const ListObservabilityConfigurationsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ ObservabilityConfigurationName: S.optional(S.String), LatestOnly: S.optional(S.Boolean), @@ -1486,42 +1477,42 @@ export const ListObservabilityConfigurationsRequest = rules, ), ), - ).annotate({ - identifier: "ListObservabilityConfigurationsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListObservabilityConfigurationsRequest", +}) as any as S.Schema; export interface ObservabilityConfigurationSummary { ObservabilityConfigurationArn?: string; ObservabilityConfigurationName?: string; ObservabilityConfigurationRevision?: number; } -export const ObservabilityConfigurationSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ObservabilityConfigurationArn: S.optional(S.String), - ObservabilityConfigurationName: S.optional(S.String), - ObservabilityConfigurationRevision: S.optional(S.Number), - }), - ).annotate({ - identifier: "ObservabilityConfigurationSummary", - }) as any as S.Schema; +export const ObservabilityConfigurationSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ObservabilityConfigurationArn: S.optional(S.String), + ObservabilityConfigurationName: S.optional(S.String), + ObservabilityConfigurationRevision: S.optional(S.Number), + }), +).annotate({ + identifier: "ObservabilityConfigurationSummary", +}) as any as S.Schema; export type ObservabilityConfigurationSummaryList = ObservabilityConfigurationSummary[]; -export const ObservabilityConfigurationSummaryList = - /*@__PURE__*/ S.Array(ObservabilityConfigurationSummary); +export const ObservabilityConfigurationSummaryList = /*@__PURE__*/ S.Array( + ObservabilityConfigurationSummary, +); export interface ListObservabilityConfigurationsResponse { ObservabilityConfigurationSummaryList: ObservabilityConfigurationSummary[]; NextToken?: string; } -export const ListObservabilityConfigurationsResponse = - /*@__PURE__*/ S.suspend(() => +export const ListObservabilityConfigurationsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ ObservabilityConfigurationSummaryList: ObservabilityConfigurationSummaryList, NextToken: S.optional(S.String), }).pipe(ns), - ).annotate({ - identifier: "ListObservabilityConfigurationsResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListObservabilityConfigurationsResponse", +}) as any as S.Schema; export interface ListOperationsRequest { ServiceArn: string; NextToken?: string; @@ -1718,12 +1709,11 @@ export const ListTagsForResourceRequest = /*@__PURE__*/ S.suspend(() => export interface ListTagsForResourceResponse { Tags?: Tag[]; } -export const ListTagsForResourceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Tags: S.optional(TagList) }).pipe(ns), - ).annotate({ - identifier: "ListTagsForResourceResponse", - }) as any as S.Schema; +export const ListTagsForResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Tags: S.optional(TagList) }).pipe(ns), +).annotate({ + identifier: "ListTagsForResourceResponse", +}) as any as S.Schema; export interface ListVpcConnectorsRequest { MaxResults?: number; NextToken?: string; @@ -1764,69 +1754,66 @@ export interface ListVpcIngressConnectionsFilter { ServiceArn?: string; VpcEndpointId?: string; } -export const ListVpcIngressConnectionsFilter = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ServiceArn: S.optional(S.String), - VpcEndpointId: S.optional(S.String), - }), - ).annotate({ - identifier: "ListVpcIngressConnectionsFilter", - }) as any as S.Schema; +export const ListVpcIngressConnectionsFilter = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ServiceArn: S.optional(S.String), + VpcEndpointId: S.optional(S.String), + }), +).annotate({ + identifier: "ListVpcIngressConnectionsFilter", +}) as any as S.Schema; export interface ListVpcIngressConnectionsRequest { Filter?: ListVpcIngressConnectionsFilter; MaxResults?: number; NextToken?: string; } -export const ListVpcIngressConnectionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Filter: S.optional(ListVpcIngressConnectionsFilter), - MaxResults: S.optional(S.Number), - NextToken: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListVpcIngressConnectionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Filter: S.optional(ListVpcIngressConnectionsFilter), + MaxResults: S.optional(S.Number), + NextToken: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListVpcIngressConnectionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListVpcIngressConnectionsRequest", +}) as any as S.Schema; export interface VpcIngressConnectionSummary { VpcIngressConnectionArn?: string; ServiceArn?: string; } -export const VpcIngressConnectionSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - VpcIngressConnectionArn: S.optional(S.String), - ServiceArn: S.optional(S.String), - }), - ).annotate({ - identifier: "VpcIngressConnectionSummary", - }) as any as S.Schema; +export const VpcIngressConnectionSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + VpcIngressConnectionArn: S.optional(S.String), + ServiceArn: S.optional(S.String), + }), +).annotate({ + identifier: "VpcIngressConnectionSummary", +}) as any as S.Schema; export type VpcIngressConnectionSummaryList = VpcIngressConnectionSummary[]; -export const VpcIngressConnectionSummaryList = - /*@__PURE__*/ S.Array(VpcIngressConnectionSummary); +export const VpcIngressConnectionSummaryList = /*@__PURE__*/ S.Array( + VpcIngressConnectionSummary, +); export interface ListVpcIngressConnectionsResponse { VpcIngressConnectionSummaryList: VpcIngressConnectionSummary[]; NextToken?: string; } -export const ListVpcIngressConnectionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - VpcIngressConnectionSummaryList: VpcIngressConnectionSummaryList, - NextToken: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "ListVpcIngressConnectionsResponse", - }) as any as S.Schema; +export const ListVpcIngressConnectionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + VpcIngressConnectionSummaryList: VpcIngressConnectionSummaryList, + NextToken: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "ListVpcIngressConnectionsResponse", +}) as any as S.Schema; export interface PauseServiceRequest { ServiceArn: string; } @@ -2032,60 +2019,73 @@ export interface UpdateVpcIngressConnectionRequest { VpcIngressConnectionArn: string; IngressVpcConfiguration: IngressVpcConfiguration; } -export const UpdateVpcIngressConnectionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - VpcIngressConnectionArn: S.String, - IngressVpcConfiguration: IngressVpcConfiguration, - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateVpcIngressConnectionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + VpcIngressConnectionArn: S.String, + IngressVpcConfiguration: IngressVpcConfiguration, + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateVpcIngressConnectionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateVpcIngressConnectionRequest", +}) as any as S.Schema; export interface UpdateVpcIngressConnectionResponse { VpcIngressConnection: VpcIngressConnection; } -export const UpdateVpcIngressConnectionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ VpcIngressConnection: VpcIngressConnection }).pipe(ns), - ).annotate({ - identifier: "UpdateVpcIngressConnectionResponse", - }) as any as S.Schema; +export const UpdateVpcIngressConnectionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ VpcIngressConnection: VpcIngressConnection }).pipe(ns), +).annotate({ + identifier: "UpdateVpcIngressConnectionResponse", +}) as any as S.Schema; //# Errors export class InternalServiceErrorException extends S.TaggedErrorClass()( "InternalServiceErrorException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "InternalServiceError", httpResponseCode: 500 }), + T.all( + T.AwsQueryError({ code: "InternalServiceError", httpResponseCode: 500 }), + T.HttpError(500), + ), ).pipe(C.withServerError) {} export class InvalidRequestException extends S.TaggedErrorClass()( "InvalidRequestException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidRequest", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidRequest", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidStateException extends S.TaggedErrorClass()( "InvalidStateException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidState", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidState", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "ServiceQuotaExceeded", httpResponseCode: 402 }), + T.all( + T.AwsQueryError({ code: "ServiceQuotaExceeded", httpResponseCode: 402 }), + T.HttpError(402), + ), ).pipe(C.withQuotaError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "ResourceNotfound", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "ResourceNotfound", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} //# Operations diff --git a/packages/aws/src/services/athena.ts b/packages/aws/src/services/athena.ts index 9089472b5b..295db74441 100644 --- a/packages/aws/src/services/athena.ts +++ b/packages/aws/src/services/athena.ts @@ -3221,6 +3221,30 @@ export class ResourceNotFoundException extends S.TaggedErrorClass()( + "DataCatalogNotFound", + { AthenaErrorCode: S.optional(S.String), Message: S.optional(S.String) }, + T.SyntheticError({ + from: "InvalidRequestException", + message: { matches: "DataCatalog.*not found" }, + }), +).pipe(C.withNotFoundError) {} +export class NamedQueryNotFound extends S.TaggedErrorClass()( + "NamedQueryNotFound", + { AthenaErrorCode: S.optional(S.String), Message: S.optional(S.String) }, + T.SyntheticError({ + from: "InvalidRequestException", + message: { matches: "NamedQuery.*does not exist" }, + }), +).pipe(C.withNotFoundError) {} +export class WorkGroupNotFound extends S.TaggedErrorClass()( + "WorkGroupNotFound", + { AthenaErrorCode: S.optional(S.String), Message: S.optional(S.String) }, + T.SyntheticError({ + from: "InvalidRequestException", + message: { matches: "WorkGroup.*not found" }, + }), +).pipe(C.withNotFoundError) {} export class MetadataException extends S.TaggedErrorClass()( "MetadataException", { Message: S.optional(S.String) }, @@ -3509,6 +3533,7 @@ export const deleteCapacityReservation: API.OperationMethod< export type DeleteDataCatalogError = | InternalServerException | InvalidRequestException + | DataCatalogNotFound | CommonErrors; /** * Deletes a data catalog. @@ -3521,12 +3546,17 @@ export const deleteDataCatalog: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteDataCatalogInput, output: DeleteDataCatalogOutput, - errors: [InternalServerException, InvalidRequestException], + errors: [ + InternalServerException, + InvalidRequestException, + DataCatalogNotFound, + ], operationName: "DeleteDataCatalog", })); export type DeleteNamedQueryError = | InternalServerException | InvalidRequestException + | NamedQueryNotFound | CommonErrors; /** * Deletes the named query if you have access to the workgroup in which the query was @@ -3540,7 +3570,11 @@ export const deleteNamedQuery: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteNamedQueryInput, output: DeleteNamedQueryOutput, - errors: [InternalServerException, InvalidRequestException], + errors: [ + InternalServerException, + InvalidRequestException, + NamedQueryNotFound, + ], operationName: "DeleteNamedQuery", })); export type DeleteNotebookError = @@ -3570,6 +3604,7 @@ export type DeletePreparedStatementError = | InternalServerException | InvalidRequestException | ResourceNotFoundException + | WorkGroupNotFound | CommonErrors; /** * Deletes the prepared statement with the specified name from the specified @@ -3587,6 +3622,7 @@ export const deletePreparedStatement: API.OperationMethod< InternalServerException, InvalidRequestException, ResourceNotFoundException, + WorkGroupNotFound, ], operationName: "DeletePreparedStatement", })); @@ -3760,6 +3796,7 @@ export const getDatabase: API.OperationMethod< export type GetDataCatalogError = | InternalServerException | InvalidRequestException + | DataCatalogNotFound | CommonErrors; /** * Returns the specified data catalog. @@ -3772,12 +3809,17 @@ export const getDataCatalog: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetDataCatalogInput, output: GetDataCatalogOutput, - errors: [InternalServerException, InvalidRequestException], + errors: [ + InternalServerException, + InvalidRequestException, + DataCatalogNotFound, + ], operationName: "GetDataCatalog", })); export type GetNamedQueryError = | InternalServerException | InvalidRequestException + | NamedQueryNotFound | CommonErrors; /** * Returns information about a single query. Requires that you have access to the @@ -3791,7 +3833,11 @@ export const getNamedQuery: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetNamedQueryInput, output: GetNamedQueryOutput, - errors: [InternalServerException, InvalidRequestException], + errors: [ + InternalServerException, + InvalidRequestException, + NamedQueryNotFound, + ], operationName: "GetNamedQuery", })); export type GetNotebookMetadataError = @@ -3821,6 +3867,7 @@ export type GetPreparedStatementError = | InternalServerException | InvalidRequestException | ResourceNotFoundException + | WorkGroupNotFound | CommonErrors; /** * Retrieves the prepared statement with the specified name from the specified @@ -3838,6 +3885,7 @@ export const getPreparedStatement: API.OperationMethod< InternalServerException, InvalidRequestException, ResourceNotFoundException, + WorkGroupNotFound, ], operationName: "GetPreparedStatement", })); @@ -4058,6 +4106,7 @@ export const getTableMetadata: API.OperationMethod< export type GetWorkGroupError = | InternalServerException | InvalidRequestException + | WorkGroupNotFound | CommonErrors; /** * Returns information about the workgroup with the specified name. @@ -4070,7 +4119,7 @@ export const getWorkGroup: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetWorkGroupInput, output: GetWorkGroupOutput, - errors: [InternalServerException, InvalidRequestException], + errors: [InternalServerException, InvalidRequestException, WorkGroupNotFound], operationName: "GetWorkGroup", })); export type ImportNotebookError = @@ -4989,6 +5038,7 @@ export const updateCapacityReservation: API.OperationMethod< export type UpdateDataCatalogError = | InternalServerException | InvalidRequestException + | DataCatalogNotFound | CommonErrors; /** * Updates the data catalog that has the specified name. @@ -5001,12 +5051,17 @@ export const updateDataCatalog: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: UpdateDataCatalogInput, output: UpdateDataCatalogOutput, - errors: [InternalServerException, InvalidRequestException], + errors: [ + InternalServerException, + InvalidRequestException, + DataCatalogNotFound, + ], operationName: "UpdateDataCatalog", })); export type UpdateNamedQueryError = | InternalServerException | InvalidRequestException + | NamedQueryNotFound | CommonErrors; /** * Updates a NamedQuery object. The database or workgroup cannot be @@ -5020,7 +5075,11 @@ export const updateNamedQuery: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: UpdateNamedQueryInput, output: UpdateNamedQueryOutput, - errors: [InternalServerException, InvalidRequestException], + errors: [ + InternalServerException, + InvalidRequestException, + NamedQueryNotFound, + ], operationName: "UpdateNamedQuery", })); export type UpdateNotebookError = @@ -5095,6 +5154,7 @@ export const updatePreparedStatement: API.OperationMethod< export type UpdateWorkGroupError = | InternalServerException | InvalidRequestException + | WorkGroupNotFound | CommonErrors; /** * Updates the workgroup with the specified name. The workgroup's name cannot be changed. @@ -5108,6 +5168,6 @@ export const updateWorkGroup: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: UpdateWorkGroupInput, output: UpdateWorkGroupOutput, - errors: [InternalServerException, InvalidRequestException], + errors: [InternalServerException, InvalidRequestException, WorkGroupNotFound], operationName: "UpdateWorkGroup", })); diff --git a/packages/aws/src/services/auditmanager.ts b/packages/aws/src/services/auditmanager.ts index efe04a50da..57c3033f62 100644 --- a/packages/aws/src/services/auditmanager.ts +++ b/packages/aws/src/services/auditmanager.ts @@ -3545,6 +3545,18 @@ export class ServiceQuotaExceededException extends S.TaggedErrorClass()( + "AuditManagerMaintenanceMode", + { + message: S.String, + reason: S.optional(ValidationExceptionReason), + fields: S.optional(ValidationExceptionFieldList), + }, + T.SyntheticError({ + from: "ValidationException", + message: { includes: "maintenance mode" }, + }), +).pipe(C.withBadRequestError) {} //# Operations export type AssociateAssessmentReportEvidenceFolderError = @@ -5174,6 +5186,7 @@ export type RegisterAccountError = | ResourceNotFoundException | ThrottlingException | ValidationException + | AuditManagerMaintenanceMode | CommonErrors; /** * Enables Audit Manager for the specified Amazon Web Services account. @@ -5192,6 +5205,7 @@ export const registerAccount: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + AuditManagerMaintenanceMode, ], operationName: "RegisterAccount", })); diff --git a/packages/aws/src/services/auto-scaling.ts b/packages/aws/src/services/auto-scaling.ts index 80f3fd3429..daf3f96171 100644 --- a/packages/aws/src/services/auto-scaling.ts +++ b/packages/aws/src/services/auto-scaling.ts @@ -4627,6 +4627,14 @@ export class ScalingActivityInProgressFault extends S.TaggedErrorClass()( + "AutoScalingGroupNotFound", + {}, + T.SyntheticError({ + from: "ValidationError", + message: { includes: "not found" }, + }), +) {} export class InvalidNextToken extends S.TaggedErrorClass()( "InvalidNextToken", { message: S.optional(S.String) }, @@ -5099,7 +5107,10 @@ export const deleteLaunchConfiguration: API.OperationMethod< errors: [ResourceContentionFault, ResourceInUseFault], operationName: "DeleteLaunchConfiguration", })); -export type DeleteLifecycleHookError = ResourceContentionFault | CommonErrors; +export type DeleteLifecycleHookError = + | ResourceContentionFault + | AutoScalingGroupNotFound + | CommonErrors; /** * Deletes the specified lifecycle hook. * @@ -5115,7 +5126,7 @@ export const deleteLifecycleHook: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteLifecycleHookType, output: DeleteLifecycleHookAnswer, - errors: [ResourceContentionFault], + errors: [ResourceContentionFault, AutoScalingGroupNotFound], operationName: "DeleteLifecycleHook", })); export type DeleteNotificationConfigurationError = @@ -5160,7 +5171,10 @@ export const deletePolicy: API.OperationMethod< errors: [ResourceContentionFault, ServiceLinkedRoleFailure], operationName: "DeletePolicy", })); -export type DeleteScheduledActionError = ResourceContentionFault | CommonErrors; +export type DeleteScheduledActionError = + | ResourceContentionFault + | AutoScalingGroupNotFound + | CommonErrors; /** * Deletes the specified scheduled action. */ @@ -5172,7 +5186,7 @@ export const deleteScheduledAction: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteScheduledActionType, output: DeleteScheduledActionResponse, - errors: [ResourceContentionFault], + errors: [ResourceContentionFault, AutoScalingGroupNotFound], operationName: "DeleteScheduledAction", })); export type DeleteTagsError = @@ -5462,6 +5476,7 @@ export const describeLaunchConfigurations: API.OperationMethod< })); export type DescribeLifecycleHooksError = | ResourceContentionFault + | AutoScalingGroupNotFound | CommonErrors; /** * Gets information about the lifecycle hooks for the specified Auto Scaling group. @@ -5474,7 +5489,7 @@ export const describeLifecycleHooks: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeLifecycleHooksType, output: DescribeLifecycleHooksAnswer, - errors: [ResourceContentionFault], + errors: [ResourceContentionFault, AutoScalingGroupNotFound], operationName: "DescribeLifecycleHooks", })); export type DescribeLifecycleHookTypesError = @@ -5809,6 +5824,7 @@ export const describeScalingProcessTypes: API.OperationMethod< export type DescribeScheduledActionsError = | InvalidNextToken | ResourceContentionFault + | AutoScalingGroupNotFound | CommonErrors; /** * Gets information about the scheduled actions that haven't run or that have not reached @@ -5840,7 +5856,7 @@ export const describeScheduledActions: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeScheduledActionsType, output: ScheduledActionsType, - errors: [InvalidNextToken, ResourceContentionFault], + errors: [InvalidNextToken, ResourceContentionFault, AutoScalingGroupNotFound], operationName: "DescribeScheduledActions", pagination: { inputToken: "NextToken", @@ -6278,6 +6294,7 @@ export const launchInstances: API.OperationMethod< export type PutLifecycleHookError = | LimitExceededFault | ResourceContentionFault + | AutoScalingGroupNotFound | CommonErrors; /** * Creates or updates a lifecycle hook for the specified Auto Scaling group. @@ -6328,7 +6345,11 @@ export const putLifecycleHook: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: PutLifecycleHookType, output: PutLifecycleHookAnswer, - errors: [LimitExceededFault, ResourceContentionFault], + errors: [ + LimitExceededFault, + ResourceContentionFault, + AutoScalingGroupNotFound, + ], operationName: "PutLifecycleHook", })); export type PutNotificationConfigurationError = @@ -6405,6 +6426,7 @@ export type PutScheduledUpdateGroupActionError = | AlreadyExistsFault | LimitExceededFault | ResourceContentionFault + | AutoScalingGroupNotFound | CommonErrors; /** * Creates or updates a scheduled scaling action for an Auto Scaling group. @@ -6428,7 +6450,12 @@ export const putScheduledUpdateGroupAction: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: PutScheduledUpdateGroupActionType, output: PutScheduledUpdateGroupActionResponse, - errors: [AlreadyExistsFault, LimitExceededFault, ResourceContentionFault], + errors: [ + AlreadyExistsFault, + LimitExceededFault, + ResourceContentionFault, + AutoScalingGroupNotFound, + ], operationName: "PutScheduledUpdateGroupAction", })); export type PutWarmPoolError = diff --git a/packages/aws/src/services/backup.ts b/packages/aws/src/services/backup.ts index 8215d2c5a2..930e095470 100644 --- a/packages/aws/src/services/backup.ts +++ b/packages/aws/src/services/backup.ts @@ -3339,7 +3339,14 @@ export interface GetSupportedResourceTypesRequest {} export const GetSupportedResourceTypesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + T.all( + T.Http({ method: "GET", uri: "/supported-resource-types" }), + svc, + auth, + proto, + ver, + rules, + ), ), ).annotate({ identifier: "GetSupportedResourceTypesRequest", @@ -6515,7 +6522,10 @@ export class ConflictException extends S.TaggedErrorClass()( Type: S.optional(S.String), Context: S.optional(S.String), }, - T.AwsQueryError({ code: "ConflictException", httpResponseCode: 409 }), + T.all( + T.AwsQueryError({ code: "ConflictException", httpResponseCode: 409 }), + T.HttpError(409), + ), ).pipe(C.withConflictError) {} export class DependencyFailureException extends S.TaggedErrorClass()( "DependencyFailureException", diff --git a/packages/aws/src/services/batch.ts b/packages/aws/src/services/batch.ts index 252acde32d..625b3863e5 100644 --- a/packages/aws/src/services/batch.ts +++ b/packages/aws/src/services/batch.ts @@ -4922,6 +4922,62 @@ export class ServerException extends S.TaggedErrorClass()( "ServerException", { message: S.optional(S.String) }, ).pipe(C.withServerError) {} +export class ComputeEnvironmentNotValid extends S.TaggedErrorClass()( + "ComputeEnvironmentNotValid", + { message: S.optional(S.String) }, + T.SyntheticError({ + from: "ClientException", + message: { matches: "must be (created and )?valid before attaching" }, + }), +).pipe(C.withDependencyViolationError, C.withRetryableError) {} +export class JobQueueAlreadyExists extends S.TaggedErrorClass()( + "JobQueueAlreadyExists", + { message: S.optional(S.String) }, + T.SyntheticError({ + from: "ClientException", + message: { includes: "already exists" }, + }), +).pipe(C.withAlreadyExistsError, C.withConflictError) {} +export class ComputeEnvironmentInUse extends S.TaggedErrorClass()( + "ComputeEnvironmentInUse", + { message: S.optional(S.String) }, + T.SyntheticError({ + from: "ClientException", + message: { includes: "found existing JobQueue relationship" }, + }), +).pipe(C.withDependencyViolationError, C.withRetryableError) {} +export class ComputeEnvironmentBeingModified extends S.TaggedErrorClass()( + "ComputeEnvironmentBeingModified", + { message: S.optional(S.String) }, + T.SyntheticError({ + from: "ClientException", + message: { includes: "is being modified" }, + }), +).pipe(C.withConflictError, C.withRetryableError) {} +export class JobQueueBeingModified extends S.TaggedErrorClass()( + "JobQueueBeingModified", + { message: S.optional(S.String) }, + T.SyntheticError({ + from: "ClientException", + message: { includes: "is being modified" }, + }), +).pipe(C.withConflictError, C.withRetryableError) {} +export class ComputeEnvironmentNotFound extends S.TaggedErrorClass()( + "ComputeEnvironmentNotFound", + { message: S.optional(S.String) }, + T.SyntheticError({ + from: "ClientException", + message: { matches: "compute-environment/.* does not exist" }, + }), +).pipe(C.withNotFoundError) {} +export class JobQueueNotFound extends S.TaggedErrorClass()( + "JobQueueNotFound", + { message: S.optional(S.String) }, + T.SyntheticError({ + from: "ClientException", + message: { matches: "job-queue/.* does not exist" }, + }), +).pipe(C.withNotFoundError) {} //# Operations export type CancelJobError = ClientException | ServerException | CommonErrors; @@ -5016,6 +5072,8 @@ export const createConsumableResource: API.OperationMethod< export type CreateJobQueueError = | ClientException | ServerException + | ComputeEnvironmentNotValid + | JobQueueAlreadyExists | CommonErrors; /** * Creates an Batch job queue. When you create a job queue, you associate one or more @@ -5035,7 +5093,12 @@ export const createJobQueue: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateJobQueueRequest, output: CreateJobQueueResponse, - errors: [ClientException, ServerException], + errors: [ + ClientException, + ServerException, + ComputeEnvironmentNotValid, + JobQueueAlreadyExists, + ], operationName: "CreateJobQueue", })); export type CreateQuotaShareError = @@ -5095,6 +5158,9 @@ export const createServiceEnvironment: API.OperationMethod< export type DeleteComputeEnvironmentError = | ClientException | ServerException + | ComputeEnvironmentNotFound + | ComputeEnvironmentInUse + | ComputeEnvironmentBeingModified | CommonErrors; /** * Deletes an Batch compute environment. @@ -5114,7 +5180,13 @@ export const deleteComputeEnvironment: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteComputeEnvironmentRequest, output: DeleteComputeEnvironmentResponse, - errors: [ClientException, ServerException], + errors: [ + ClientException, + ServerException, + ComputeEnvironmentNotFound, + ComputeEnvironmentInUse, + ComputeEnvironmentBeingModified, + ], operationName: "DeleteComputeEnvironment", })); export type DeleteConsumableResourceError = @@ -5138,6 +5210,8 @@ export const deleteConsumableResource: API.OperationMethod< export type DeleteJobQueueError = | ClientException | ServerException + | JobQueueNotFound + | JobQueueBeingModified | CommonErrors; /** * Deletes the specified job queue. You must first disable submissions for a queue with the @@ -5155,7 +5229,12 @@ export const deleteJobQueue: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteJobQueueRequest, output: DeleteJobQueueResponse, - errors: [ClientException, ServerException], + errors: [ + ClientException, + ServerException, + JobQueueNotFound, + JobQueueBeingModified, + ], operationName: "DeleteJobQueue", })); export type DeleteQuotaShareError = @@ -5907,6 +5986,8 @@ export const untagResource: API.OperationMethod< export type UpdateComputeEnvironmentError = | ClientException | ServerException + | ComputeEnvironmentNotFound + | ComputeEnvironmentBeingModified | CommonErrors; /** * Updates an Batch compute environment. @@ -5919,7 +6000,12 @@ export const updateComputeEnvironment: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: UpdateComputeEnvironmentRequest, output: UpdateComputeEnvironmentResponse, - errors: [ClientException, ServerException], + errors: [ + ClientException, + ServerException, + ComputeEnvironmentNotFound, + ComputeEnvironmentBeingModified, + ], operationName: "UpdateComputeEnvironment", })); export type UpdateConsumableResourceError = @@ -5943,6 +6029,8 @@ export const updateConsumableResource: API.OperationMethod< export type UpdateJobQueueError = | ClientException | ServerException + | JobQueueNotFound + | JobQueueBeingModified | CommonErrors; /** * Updates a job queue. @@ -5955,7 +6043,12 @@ export const updateJobQueue: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: UpdateJobQueueRequest, output: UpdateJobQueueResponse, - errors: [ClientException, ServerException], + errors: [ + ClientException, + ServerException, + JobQueueNotFound, + JobQueueBeingModified, + ], operationName: "UpdateJobQueue", })); export type UpdateQuotaShareError = diff --git a/packages/aws/src/services/bedrock-agent.ts b/packages/aws/src/services/bedrock-agent.ts index 85fb4aec95..77638365c5 100644 --- a/packages/aws/src/services/bedrock-agent.ts +++ b/packages/aws/src/services/bedrock-agent.ts @@ -3766,7 +3766,7 @@ export interface Agent { agentId: string; agentName: string; agentArn: string; - agentVersion: string; + agentVersion?: string; clientToken?: string; instruction?: string | redacted.Redacted; agentStatus: AgentStatus; @@ -3792,7 +3792,7 @@ export const Agent = /*@__PURE__*/ S.suspend(() => agentId: S.String, agentName: S.String, agentArn: S.String, - agentVersion: S.String, + agentVersion: S.optional(S.String), clientToken: S.optional(S.String), instruction: S.optional(SensitiveString), agentStatus: AgentStatus, diff --git a/packages/aws/src/services/bedrock-agentcore-control.ts b/packages/aws/src/services/bedrock-agentcore-control.ts index 38e9ba98e3..4a96dbcf17 100644 --- a/packages/aws/src/services/bedrock-agentcore-control.ts +++ b/packages/aws/src/services/bedrock-agentcore-control.ts @@ -341,26 +341,26 @@ export type WorkloadIdentityArnType = string; export interface DeleteResourcePolicyRequest { resourceArn: string; } -export const DeleteResourcePolicyRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ resourceArn: S.String.pipe(T.HttpLabel("resourceArn")) }).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/resourcepolicy/{resourceArn}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteResourcePolicyRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ resourceArn: S.String.pipe(T.HttpLabel("resourceArn")) }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/resourcepolicy/{resourceArn}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteResourcePolicyRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteResourcePolicyRequest", +}) as any as S.Schema; export interface DeleteResourcePolicyResponse {} -export const DeleteResourcePolicyResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteResourcePolicyResponse", - }) as any as S.Schema; +export const DeleteResourcePolicyResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteResourcePolicyResponse", +}) as any as S.Schema; export type ValidationExceptionReason = | "CannotParse" | "FieldValidationFailed" @@ -477,12 +477,11 @@ export const TagsMap = /*@__PURE__*/ S.Record( export interface ListTagsForResourceResponse { tags?: { [key: string]: string | undefined }; } -export const ListTagsForResourceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ tags: S.optional(TagsMap) }), - ).annotate({ - identifier: "ListTagsForResourceResponse", - }) as any as S.Schema; +export const ListTagsForResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ tags: S.optional(TagsMap) }), +).annotate({ + identifier: "ListTagsForResourceResponse", +}) as any as S.Schema; export interface PutResourcePolicyRequest { resourceArn: string; policy: string; @@ -611,31 +610,30 @@ export interface CreateAgentRuntimeEndpointRequest { clientToken?: string; tags?: { [key: string]: string | undefined }; } -export const CreateAgentRuntimeEndpointRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - agentRuntimeId: S.String.pipe(T.HttpLabel("agentRuntimeId")), - name: SensitiveString, - agentRuntimeVersion: S.optional(S.String), - description: S.optional(S.String), - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - tags: S.optional(TagsMap), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/runtimes/{agentRuntimeId}/runtime-endpoints/", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateAgentRuntimeEndpointRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + agentRuntimeId: S.String.pipe(T.HttpLabel("agentRuntimeId")), + name: SensitiveString, + agentRuntimeVersion: S.optional(S.String), + description: S.optional(S.String), + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + tags: S.optional(TagsMap), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/runtimes/{agentRuntimeId}/runtime-endpoints/", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateAgentRuntimeEndpointRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateAgentRuntimeEndpointRequest", +}) as any as S.Schema; export type AgentRuntimeEndpointStatus = | "CREATING" | "CREATE_FAILED" @@ -654,45 +652,43 @@ export interface CreateAgentRuntimeEndpointResponse { status: AgentRuntimeEndpointStatus; createdAt: Date; } -export const CreateAgentRuntimeEndpointResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - targetVersion: S.String, - agentRuntimeEndpointArn: S.String, - agentRuntimeArn: S.String, - agentRuntimeId: S.optional(S.String), - endpointName: S.optional(SensitiveString), - status: AgentRuntimeEndpointStatus, - createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - }), - ).annotate({ - identifier: "CreateAgentRuntimeEndpointResponse", - }) as any as S.Schema; +export const CreateAgentRuntimeEndpointResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + targetVersion: S.String, + agentRuntimeEndpointArn: S.String, + agentRuntimeArn: S.String, + agentRuntimeId: S.optional(S.String), + endpointName: S.optional(SensitiveString), + status: AgentRuntimeEndpointStatus, + createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + }), +).annotate({ + identifier: "CreateAgentRuntimeEndpointResponse", +}) as any as S.Schema; export interface GetAgentRuntimeEndpointRequest { agentRuntimeId: string; endpointName: string | redacted.Redacted; } -export const GetAgentRuntimeEndpointRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - agentRuntimeId: S.String.pipe(T.HttpLabel("agentRuntimeId")), - endpointName: SensitiveString.pipe(T.HttpLabel("endpointName")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/runtimes/{agentRuntimeId}/runtime-endpoints/{endpointName}/", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetAgentRuntimeEndpointRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + agentRuntimeId: S.String.pipe(T.HttpLabel("agentRuntimeId")), + endpointName: SensitiveString.pipe(T.HttpLabel("endpointName")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/runtimes/{agentRuntimeId}/runtime-endpoints/{endpointName}/", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetAgentRuntimeEndpointRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetAgentRuntimeEndpointRequest", +}) as any as S.Schema; export interface GetAgentRuntimeEndpointResponse { liveVersion?: string; targetVersion?: string; @@ -706,24 +702,23 @@ export interface GetAgentRuntimeEndpointResponse { name: string | redacted.Redacted; id: string; } -export const GetAgentRuntimeEndpointResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - liveVersion: S.optional(S.String), - targetVersion: S.optional(S.String), - agentRuntimeEndpointArn: S.String, - agentRuntimeArn: S.String, - description: S.optional(S.String), - status: AgentRuntimeEndpointStatus, - createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - lastUpdatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - failureReason: S.optional(S.String), - name: SensitiveString, - id: S.String, - }), - ).annotate({ - identifier: "GetAgentRuntimeEndpointResponse", - }) as any as S.Schema; +export const GetAgentRuntimeEndpointResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + liveVersion: S.optional(S.String), + targetVersion: S.optional(S.String), + agentRuntimeEndpointArn: S.String, + agentRuntimeArn: S.String, + description: S.optional(S.String), + status: AgentRuntimeEndpointStatus, + createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + lastUpdatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + failureReason: S.optional(S.String), + name: SensitiveString, + id: S.String, + }), +).annotate({ + identifier: "GetAgentRuntimeEndpointResponse", +}) as any as S.Schema; export interface UpdateAgentRuntimeEndpointRequest { agentRuntimeId: string; endpointName: string | redacted.Redacted; @@ -731,30 +726,29 @@ export interface UpdateAgentRuntimeEndpointRequest { description?: string; clientToken?: string; } -export const UpdateAgentRuntimeEndpointRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - agentRuntimeId: S.String.pipe(T.HttpLabel("agentRuntimeId")), - endpointName: SensitiveString.pipe(T.HttpLabel("endpointName")), - agentRuntimeVersion: S.optional(S.String), - description: S.optional(S.String), - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/runtimes/{agentRuntimeId}/runtime-endpoints/{endpointName}/", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateAgentRuntimeEndpointRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + agentRuntimeId: S.String.pipe(T.HttpLabel("agentRuntimeId")), + endpointName: SensitiveString.pipe(T.HttpLabel("endpointName")), + agentRuntimeVersion: S.optional(S.String), + description: S.optional(S.String), + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/runtimes/{agentRuntimeId}/runtime-endpoints/{endpointName}/", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateAgentRuntimeEndpointRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateAgentRuntimeEndpointRequest", +}) as any as S.Schema; export interface UpdateAgentRuntimeEndpointResponse { liveVersion?: string; targetVersion?: string; @@ -764,92 +758,88 @@ export interface UpdateAgentRuntimeEndpointResponse { createdAt: Date; lastUpdatedAt: Date; } -export const UpdateAgentRuntimeEndpointResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - liveVersion: S.optional(S.String), - targetVersion: S.optional(S.String), - agentRuntimeEndpointArn: S.String, - agentRuntimeArn: S.String, - status: AgentRuntimeEndpointStatus, - createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - lastUpdatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - }), - ).annotate({ - identifier: "UpdateAgentRuntimeEndpointResponse", - }) as any as S.Schema; +export const UpdateAgentRuntimeEndpointResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + liveVersion: S.optional(S.String), + targetVersion: S.optional(S.String), + agentRuntimeEndpointArn: S.String, + agentRuntimeArn: S.String, + status: AgentRuntimeEndpointStatus, + createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + lastUpdatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + }), +).annotate({ + identifier: "UpdateAgentRuntimeEndpointResponse", +}) as any as S.Schema; export interface DeleteAgentRuntimeEndpointRequest { agentRuntimeId: string; endpointName: string | redacted.Redacted; clientToken?: string; } -export const DeleteAgentRuntimeEndpointRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - agentRuntimeId: S.String.pipe(T.HttpLabel("agentRuntimeId")), - endpointName: SensitiveString.pipe(T.HttpLabel("endpointName")), - clientToken: S.optional(S.String).pipe( - T.HttpQuery("clientToken"), - T.IdempotencyToken(), - ), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/runtimes/{agentRuntimeId}/runtime-endpoints/{endpointName}/", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteAgentRuntimeEndpointRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + agentRuntimeId: S.String.pipe(T.HttpLabel("agentRuntimeId")), + endpointName: SensitiveString.pipe(T.HttpLabel("endpointName")), + clientToken: S.optional(S.String).pipe( + T.HttpQuery("clientToken"), + T.IdempotencyToken(), ), - ).annotate({ - identifier: "DeleteAgentRuntimeEndpointRequest", - }) as any as S.Schema; + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/runtimes/{agentRuntimeId}/runtime-endpoints/{endpointName}/", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "DeleteAgentRuntimeEndpointRequest", +}) as any as S.Schema; export interface DeleteAgentRuntimeEndpointResponse { status: AgentRuntimeEndpointStatus; agentRuntimeId?: string; endpointName?: string | redacted.Redacted; } -export const DeleteAgentRuntimeEndpointResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - status: AgentRuntimeEndpointStatus, - agentRuntimeId: S.optional(S.String), - endpointName: S.optional(SensitiveString), - }), - ).annotate({ - identifier: "DeleteAgentRuntimeEndpointResponse", - }) as any as S.Schema; +export const DeleteAgentRuntimeEndpointResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + status: AgentRuntimeEndpointStatus, + agentRuntimeId: S.optional(S.String), + endpointName: S.optional(SensitiveString), + }), +).annotate({ + identifier: "DeleteAgentRuntimeEndpointResponse", +}) as any as S.Schema; export interface ListAgentRuntimeEndpointsRequest { agentRuntimeId: string; maxResults?: number; nextToken?: string; } -export const ListAgentRuntimeEndpointsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - agentRuntimeId: S.String.pipe(T.HttpLabel("agentRuntimeId")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/runtimes/{agentRuntimeId}/runtime-endpoints/", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListAgentRuntimeEndpointsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + agentRuntimeId: S.String.pipe(T.HttpLabel("agentRuntimeId")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/runtimes/{agentRuntimeId}/runtime-endpoints/", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListAgentRuntimeEndpointsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListAgentRuntimeEndpointsRequest", +}) as any as S.Schema; export interface AgentRuntimeEndpoint { name: string | redacted.Redacted; liveVersion?: string; @@ -885,15 +875,14 @@ export interface ListAgentRuntimeEndpointsResponse { runtimeEndpoints: AgentRuntimeEndpoint[]; nextToken?: string; } -export const ListAgentRuntimeEndpointsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - runtimeEndpoints: AgentRuntimeEndpoints, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListAgentRuntimeEndpointsResponse", - }) as any as S.Schema; +export const ListAgentRuntimeEndpointsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + runtimeEndpoints: AgentRuntimeEndpoints, + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListAgentRuntimeEndpointsResponse", +}) as any as S.Schema; export interface ContainerConfiguration { containerUri: string; } @@ -1011,15 +1000,14 @@ export interface AuthorizingClaimMatchValueType { claimMatchValue: ClaimMatchValueType; claimMatchOperator: ClaimMatchOperatorType; } -export const AuthorizingClaimMatchValueType = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - claimMatchValue: ClaimMatchValueType, - claimMatchOperator: ClaimMatchOperatorType, - }), - ).annotate({ - identifier: "AuthorizingClaimMatchValueType", - }) as any as S.Schema; +export const AuthorizingClaimMatchValueType = /*@__PURE__*/ S.suspend(() => + S.Struct({ + claimMatchValue: ClaimMatchValueType, + claimMatchOperator: ClaimMatchOperatorType, + }), +).annotate({ + identifier: "AuthorizingClaimMatchValueType", +}) as any as S.Schema; export interface CustomClaimValidationType { inboundTokenClaimName: string; inboundTokenClaimValueType: InboundTokenClaimValueType; @@ -1113,15 +1101,14 @@ export interface AllowedWorkloadConfiguration { hostingEnvironments?: HostingEnvironment[]; workloadIdentities?: string[]; } -export const AllowedWorkloadConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - hostingEnvironments: S.optional(HostingEnvironmentListType), - workloadIdentities: S.optional(WorkloadIdentityNameListType), - }), - ).annotate({ - identifier: "AllowedWorkloadConfiguration", - }) as any as S.Schema; +export const AllowedWorkloadConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + hostingEnvironments: S.optional(HostingEnvironmentListType), + workloadIdentities: S.optional(WorkloadIdentityNameListType), + }), +).annotate({ + identifier: "AllowedWorkloadConfiguration", +}) as any as S.Schema; export interface CustomJWTAuthorizerConfiguration { discoveryUrl: string; allowedAudience?: string[]; @@ -1132,21 +1119,20 @@ export interface CustomJWTAuthorizerConfiguration { privateEndpointOverrides?: PrivateEndpointOverride[]; allowedWorkloadConfiguration?: AllowedWorkloadConfiguration; } -export const CustomJWTAuthorizerConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - discoveryUrl: S.String, - allowedAudience: S.optional(AllowedAudienceList), - allowedClients: S.optional(AllowedClientsList), - allowedScopes: S.optional(AllowedScopesType), - customClaims: S.optional(CustomClaimValidationsType), - privateEndpoint: S.optional(PrivateEndpoint), - privateEndpointOverrides: S.optional(PrivateEndpointOverrides), - allowedWorkloadConfiguration: S.optional(AllowedWorkloadConfiguration), - }), - ).annotate({ - identifier: "CustomJWTAuthorizerConfiguration", - }) as any as S.Schema; +export const CustomJWTAuthorizerConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + discoveryUrl: S.String, + allowedAudience: S.optional(AllowedAudienceList), + allowedClients: S.optional(AllowedClientsList), + allowedScopes: S.optional(AllowedScopesType), + customClaims: S.optional(CustomClaimValidationsType), + privateEndpoint: S.optional(PrivateEndpoint), + privateEndpointOverrides: S.optional(PrivateEndpointOverrides), + allowedWorkloadConfiguration: S.optional(AllowedWorkloadConfiguration), + }), +).annotate({ + identifier: "CustomJWTAuthorizerConfiguration", +}) as any as S.Schema; export type AuthorizerConfiguration = { customJWTAuthorizer: CustomJWTAuthorizerConfiguration; }; @@ -1189,30 +1175,29 @@ export const EnvironmentVariablesMap = /*@__PURE__*/ S.Record( export interface SessionStorageConfiguration { mountPath: string; } -export const SessionStorageConfiguration = - /*@__PURE__*/ S.suspend(() => S.Struct({ mountPath: S.String })).annotate({ - identifier: "SessionStorageConfiguration", - }) as any as S.Schema; +export const SessionStorageConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ mountPath: S.String }), +).annotate({ + identifier: "SessionStorageConfiguration", +}) as any as S.Schema; export interface S3FilesAccessPointConfiguration { accessPointArn: string; mountPath: string; } -export const S3FilesAccessPointConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ accessPointArn: S.String, mountPath: S.String }), - ).annotate({ - identifier: "S3FilesAccessPointConfiguration", - }) as any as S.Schema; +export const S3FilesAccessPointConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ accessPointArn: S.String, mountPath: S.String }), +).annotate({ + identifier: "S3FilesAccessPointConfiguration", +}) as any as S.Schema; export interface EfsAccessPointConfiguration { accessPointArn: string; mountPath: string; } -export const EfsAccessPointConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ accessPointArn: S.String, mountPath: S.String }), - ).annotate({ - identifier: "EfsAccessPointConfiguration", - }) as any as S.Schema; +export const EfsAccessPointConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ accessPointArn: S.String, mountPath: S.String }), +).annotate({ + identifier: "EfsAccessPointConfiguration", +}) as any as S.Schema; export type FilesystemConfiguration = | { sessionStorage: SessionStorageConfiguration; @@ -1282,10 +1267,10 @@ export const CreateAgentRuntimeRequest = /*@__PURE__*/ S.suspend(() => identifier: "CreateAgentRuntimeRequest", }) as any as S.Schema; export interface WorkloadIdentityDetails { - workloadIdentityArn: string; + workloadIdentityArn?: string; } export const WorkloadIdentityDetails = /*@__PURE__*/ S.suspend(() => - S.Struct({ workloadIdentityArn: S.String }), + S.Struct({ workloadIdentityArn: S.optional(S.String) }), ).annotate({ identifier: "WorkloadIdentityDetails", }) as any as S.Schema; @@ -1342,12 +1327,11 @@ export const GetAgentRuntimeRequest = /*@__PURE__*/ S.suspend(() => export interface RuntimeMetadataConfiguration { requireMMDSV2: boolean; } -export const RuntimeMetadataConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ requireMMDSV2: S.Boolean }), - ).annotate({ - identifier: "RuntimeMetadataConfiguration", - }) as any as S.Schema; +export const RuntimeMetadataConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ requireMMDSV2: S.Boolean }), +).annotate({ + identifier: "RuntimeMetadataConfiguration", +}) as any as S.Schema; export interface GetAgentRuntimeResponse { agentRuntimeArn: string; agentRuntimeName: string; @@ -1554,35 +1538,33 @@ export interface ListAgentRuntimeVersionsRequest { maxResults?: number; nextToken?: string; } -export const ListAgentRuntimeVersionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - agentRuntimeId: S.String.pipe(T.HttpLabel("agentRuntimeId")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/runtimes/{agentRuntimeId}/versions/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListAgentRuntimeVersionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + agentRuntimeId: S.String.pipe(T.HttpLabel("agentRuntimeId")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/runtimes/{agentRuntimeId}/versions/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListAgentRuntimeVersionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListAgentRuntimeVersionsRequest", +}) as any as S.Schema; export interface ListAgentRuntimeVersionsResponse { agentRuntimes: AgentRuntime[]; nextToken?: string; } -export const ListAgentRuntimeVersionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ agentRuntimes: AgentRuntimes, nextToken: S.optional(S.String) }), - ).annotate({ - identifier: "ListAgentRuntimeVersionsResponse", - }) as any as S.Schema; +export const ListAgentRuntimeVersionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ agentRuntimes: AgentRuntimes, nextToken: S.optional(S.String) }), +).annotate({ + identifier: "ListAgentRuntimeVersionsResponse", +}) as any as S.Schema; export interface SecretReference { secretId: string; jsonKey: string; @@ -1601,8 +1583,8 @@ export interface CreateApiKeyCredentialProviderRequest { apiKeySecretSource?: SecretSourceType; tags?: { [key: string]: string | undefined }; } -export const CreateApiKeyCredentialProviderRequest = - /*@__PURE__*/ S.suspend(() => +export const CreateApiKeyCredentialProviderRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ name: S.String, apiKey: S.optional(SensitiveString), @@ -1622,9 +1604,9 @@ export const CreateApiKeyCredentialProviderRequest = rules, ), ), - ).annotate({ - identifier: "CreateApiKeyCredentialProviderRequest", - }) as any as S.Schema; +).annotate({ + identifier: "CreateApiKeyCredentialProviderRequest", +}) as any as S.Schema; export interface Secret { secretArn: string; } @@ -1638,8 +1620,8 @@ export interface CreateApiKeyCredentialProviderResponse { name: string; credentialProviderArn: string; } -export const CreateApiKeyCredentialProviderResponse = - /*@__PURE__*/ S.suspend(() => +export const CreateApiKeyCredentialProviderResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ apiKeySecretArn: Secret, apiKeySecretJsonKey: S.optional(S.String), @@ -1647,30 +1629,29 @@ export const CreateApiKeyCredentialProviderResponse = name: S.String, credentialProviderArn: S.String, }), - ).annotate({ - identifier: "CreateApiKeyCredentialProviderResponse", - }) as any as S.Schema; +).annotate({ + identifier: "CreateApiKeyCredentialProviderResponse", +}) as any as S.Schema; export interface GetApiKeyCredentialProviderRequest { name: string; } -export const GetApiKeyCredentialProviderRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ name: S.String }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/identities/GetApiKeyCredentialProvider", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetApiKeyCredentialProviderRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ name: S.String }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/identities/GetApiKeyCredentialProvider", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetApiKeyCredentialProviderRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetApiKeyCredentialProviderRequest", +}) as any as S.Schema; export interface GetApiKeyCredentialProviderResponse { apiKeySecretArn: Secret; apiKeySecretJsonKey?: string; @@ -1680,28 +1661,27 @@ export interface GetApiKeyCredentialProviderResponse { createdTime: Date; lastUpdatedTime: Date; } -export const GetApiKeyCredentialProviderResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - apiKeySecretArn: Secret, - apiKeySecretJsonKey: S.optional(S.String), - apiKeySecretSource: S.optional(SecretSourceType), - name: S.String, - credentialProviderArn: S.String, - createdTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - lastUpdatedTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - }), - ).annotate({ - identifier: "GetApiKeyCredentialProviderResponse", - }) as any as S.Schema; +export const GetApiKeyCredentialProviderResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + apiKeySecretArn: Secret, + apiKeySecretJsonKey: S.optional(S.String), + apiKeySecretSource: S.optional(SecretSourceType), + name: S.String, + credentialProviderArn: S.String, + createdTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + lastUpdatedTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + }), +).annotate({ + identifier: "GetApiKeyCredentialProviderResponse", +}) as any as S.Schema; export interface UpdateApiKeyCredentialProviderRequest { name: string; apiKey?: string | redacted.Redacted; apiKeySecretConfig?: SecretReference; apiKeySecretSource?: SecretSourceType; } -export const UpdateApiKeyCredentialProviderRequest = - /*@__PURE__*/ S.suspend(() => +export const UpdateApiKeyCredentialProviderRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ name: S.String, apiKey: S.optional(SensitiveString), @@ -1720,9 +1700,9 @@ export const UpdateApiKeyCredentialProviderRequest = rules, ), ), - ).annotate({ - identifier: "UpdateApiKeyCredentialProviderRequest", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateApiKeyCredentialProviderRequest", +}) as any as S.Schema; export interface UpdateApiKeyCredentialProviderResponse { apiKeySecretArn: Secret; apiKeySecretJsonKey?: string; @@ -1732,8 +1712,8 @@ export interface UpdateApiKeyCredentialProviderResponse { createdTime: Date; lastUpdatedTime: Date; } -export const UpdateApiKeyCredentialProviderResponse = - /*@__PURE__*/ S.suspend(() => +export const UpdateApiKeyCredentialProviderResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ apiKeySecretArn: Secret, apiKeySecretJsonKey: S.optional(S.String), @@ -1743,14 +1723,14 @@ export const UpdateApiKeyCredentialProviderResponse = createdTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), lastUpdatedTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), }), - ).annotate({ - identifier: "UpdateApiKeyCredentialProviderResponse", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateApiKeyCredentialProviderResponse", +}) as any as S.Schema; export interface DeleteApiKeyCredentialProviderRequest { name: string; } -export const DeleteApiKeyCredentialProviderRequest = - /*@__PURE__*/ S.suspend(() => +export const DeleteApiKeyCredentialProviderRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ name: S.String }).pipe( T.all( T.Http({ @@ -1764,20 +1744,21 @@ export const DeleteApiKeyCredentialProviderRequest = rules, ), ), - ).annotate({ - identifier: "DeleteApiKeyCredentialProviderRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteApiKeyCredentialProviderRequest", +}) as any as S.Schema; export interface DeleteApiKeyCredentialProviderResponse {} -export const DeleteApiKeyCredentialProviderResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteApiKeyCredentialProviderResponse", - }) as any as S.Schema; +export const DeleteApiKeyCredentialProviderResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}), +).annotate({ + identifier: "DeleteApiKeyCredentialProviderResponse", +}) as any as S.Schema; export interface ListApiKeyCredentialProvidersRequest { nextToken?: string; maxResults?: number; } -export const ListApiKeyCredentialProvidersRequest = - /*@__PURE__*/ S.suspend(() => +export const ListApiKeyCredentialProvidersRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ nextToken: S.optional(S.String), maxResults: S.optional(S.Number), @@ -1794,26 +1775,25 @@ export const ListApiKeyCredentialProvidersRequest = rules, ), ), - ).annotate({ - identifier: "ListApiKeyCredentialProvidersRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListApiKeyCredentialProvidersRequest", +}) as any as S.Schema; export interface ApiKeyCredentialProviderItem { name: string; credentialProviderArn: string; createdTime: Date; lastUpdatedTime: Date; } -export const ApiKeyCredentialProviderItem = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.String, - credentialProviderArn: S.String, - createdTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - lastUpdatedTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - }), - ).annotate({ - identifier: "ApiKeyCredentialProviderItem", - }) as any as S.Schema; +export const ApiKeyCredentialProviderItem = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.String, + credentialProviderArn: S.String, + createdTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + lastUpdatedTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + }), +).annotate({ + identifier: "ApiKeyCredentialProviderItem", +}) as any as S.Schema; export type ApiKeyCredentialProviders = ApiKeyCredentialProviderItem[]; export const ApiKeyCredentialProviders = /*@__PURE__*/ S.Array( ApiKeyCredentialProviderItem, @@ -1822,41 +1802,40 @@ export interface ListApiKeyCredentialProvidersResponse { credentialProviders: ApiKeyCredentialProviderItem[]; nextToken?: string; } -export const ListApiKeyCredentialProvidersResponse = - /*@__PURE__*/ S.suspend(() => +export const ListApiKeyCredentialProvidersResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ credentialProviders: ApiKeyCredentialProviders, nextToken: S.optional(S.String), }), - ).annotate({ - identifier: "ListApiKeyCredentialProvidersResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListApiKeyCredentialProvidersResponse", +}) as any as S.Schema; export interface CreateBrowserProfileRequest { name: string; description?: string | redacted.Redacted; clientToken?: string; tags?: { [key: string]: string | undefined }; } -export const CreateBrowserProfileRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.String, - description: S.optional(SensitiveString), - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - tags: S.optional(TagsMap), - }).pipe( - T.all( - T.Http({ method: "PUT", uri: "/browser-profiles" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateBrowserProfileRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.String, + description: S.optional(SensitiveString), + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + tags: S.optional(TagsMap), + }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/browser-profiles" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateBrowserProfileRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateBrowserProfileRequest", +}) as any as S.Schema; export type BrowserProfileStatus = | "READY" | "DELETING" @@ -1870,17 +1849,16 @@ export interface CreateBrowserProfileResponse { createdAt: Date; status: BrowserProfileStatus; } -export const CreateBrowserProfileResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - profileId: S.String, - profileArn: S.String, - createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - status: BrowserProfileStatus, - }), - ).annotate({ - identifier: "CreateBrowserProfileResponse", - }) as any as S.Schema; +export const CreateBrowserProfileResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + profileId: S.String, + profileArn: S.String, + createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + status: BrowserProfileStatus, + }), +).annotate({ + identifier: "CreateBrowserProfileResponse", +}) as any as S.Schema; export interface GetBrowserProfileRequest { profileId: string; } @@ -1932,27 +1910,26 @@ export interface DeleteBrowserProfileRequest { profileId: string; clientToken?: string; } -export const DeleteBrowserProfileRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - profileId: S.String.pipe(T.HttpLabel("profileId")), - clientToken: S.optional(S.String).pipe( - T.HttpQuery("clientToken"), - T.IdempotencyToken(), - ), - }).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/browser-profiles/{profileId}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteBrowserProfileRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + profileId: S.String.pipe(T.HttpLabel("profileId")), + clientToken: S.optional(S.String).pipe( + T.HttpQuery("clientToken"), + T.IdempotencyToken(), ), - ).annotate({ - identifier: "DeleteBrowserProfileRequest", - }) as any as S.Schema; + }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/browser-profiles/{profileId}" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "DeleteBrowserProfileRequest", +}) as any as S.Schema; export interface DeleteBrowserProfileResponse { profileId: string; profileArn: string; @@ -1960,20 +1937,19 @@ export interface DeleteBrowserProfileResponse { lastUpdatedAt: Date; lastSavedAt?: Date; } -export const DeleteBrowserProfileResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - profileId: S.String, - profileArn: S.String, - status: BrowserProfileStatus, - lastUpdatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - lastSavedAt: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - }), - ).annotate({ - identifier: "DeleteBrowserProfileResponse", - }) as any as S.Schema; +export const DeleteBrowserProfileResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + profileId: S.String, + profileArn: S.String, + status: BrowserProfileStatus, + lastUpdatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + lastSavedAt: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + }), +).annotate({ + identifier: "DeleteBrowserProfileResponse", +}) as any as S.Schema; export interface ListBrowserProfilesRequest { maxResults?: number; nextToken?: string; @@ -2035,30 +2011,28 @@ export interface ListBrowserProfilesResponse { profileSummaries: BrowserProfileSummary[]; nextToken?: string; } -export const ListBrowserProfilesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - profileSummaries: BrowserProfileSummaries, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListBrowserProfilesResponse", - }) as any as S.Schema; +export const ListBrowserProfilesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + profileSummaries: BrowserProfileSummaries, + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListBrowserProfilesResponse", +}) as any as S.Schema; export type BrowserNetworkMode = "PUBLIC" | "VPC" | (string & {}); export const BrowserNetworkMode = /*@__PURE__*/ S.String; export interface BrowserNetworkConfiguration { networkMode: BrowserNetworkMode; vpcConfig?: VpcConfig; } -export const BrowserNetworkConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - networkMode: BrowserNetworkMode, - vpcConfig: S.optional(VpcConfig), - }), - ).annotate({ - identifier: "BrowserNetworkConfiguration", - }) as any as S.Schema; +export const BrowserNetworkConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + networkMode: BrowserNetworkMode, + vpcConfig: S.optional(VpcConfig), + }), +).annotate({ + identifier: "BrowserNetworkConfiguration", +}) as any as S.Schema; export interface RecordingConfig { enabled?: boolean; s3Location?: S3Location; @@ -2356,15 +2330,14 @@ export interface CodeInterpreterNetworkConfiguration { networkMode: CodeInterpreterNetworkMode; vpcConfig?: VpcConfig; } -export const CodeInterpreterNetworkConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - networkMode: CodeInterpreterNetworkMode, - vpcConfig: S.optional(VpcConfig), - }), - ).annotate({ - identifier: "CodeInterpreterNetworkConfiguration", - }) as any as S.Schema; +export const CodeInterpreterNetworkConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + networkMode: CodeInterpreterNetworkMode, + vpcConfig: S.optional(VpcConfig), + }), +).annotate({ + identifier: "CodeInterpreterNetworkConfiguration", +}) as any as S.Schema; export interface CreateCodeInterpreterRequest { name: string; description?: string | redacted.Redacted; @@ -2374,29 +2347,28 @@ export interface CreateCodeInterpreterRequest { clientToken?: string; tags?: { [key: string]: string | undefined }; } -export const CreateCodeInterpreterRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.String, - description: S.optional(SensitiveString), - executionRoleArn: S.optional(S.String), - networkConfiguration: CodeInterpreterNetworkConfiguration, - certificates: S.optional(Certificates), - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - tags: S.optional(TagsMap), - }).pipe( - T.all( - T.Http({ method: "PUT", uri: "/code-interpreters" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateCodeInterpreterRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.String, + description: S.optional(SensitiveString), + executionRoleArn: S.optional(S.String), + networkConfiguration: CodeInterpreterNetworkConfiguration, + certificates: S.optional(Certificates), + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + tags: S.optional(TagsMap), + }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/code-interpreters" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateCodeInterpreterRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateCodeInterpreterRequest", +}) as any as S.Schema; export type CodeInterpreterStatus = | "CREATING" | "CREATE_FAILED" @@ -2412,17 +2384,16 @@ export interface CreateCodeInterpreterResponse { createdAt: Date; status: CodeInterpreterStatus; } -export const CreateCodeInterpreterResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - codeInterpreterId: S.String, - codeInterpreterArn: S.String, - createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - status: CodeInterpreterStatus, - }), - ).annotate({ - identifier: "CreateCodeInterpreterResponse", - }) as any as S.Schema; +export const CreateCodeInterpreterResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + codeInterpreterId: S.String, + codeInterpreterArn: S.String, + createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + status: CodeInterpreterStatus, + }), +).annotate({ + identifier: "CreateCodeInterpreterResponse", +}) as any as S.Schema; export interface GetCodeInterpreterRequest { codeInterpreterId: string; } @@ -2431,10 +2402,7 @@ export const GetCodeInterpreterRequest = /*@__PURE__*/ S.suspend(() => codeInterpreterId: S.String.pipe(T.HttpLabel("codeInterpreterId")), }).pipe( T.all( - T.Http({ - method: "GET", - uri: "/code-interpreters/{codeInterpreterId}", - }), + T.Http({ method: "GET", uri: "/code-interpreters/{codeInterpreterId}" }), svc, auth, proto, @@ -2479,69 +2447,66 @@ export interface DeleteCodeInterpreterRequest { codeInterpreterId: string; clientToken?: string; } -export const DeleteCodeInterpreterRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - codeInterpreterId: S.String.pipe(T.HttpLabel("codeInterpreterId")), - clientToken: S.optional(S.String).pipe( - T.HttpQuery("clientToken"), - T.IdempotencyToken(), - ), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/code-interpreters/{codeInterpreterId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteCodeInterpreterRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + codeInterpreterId: S.String.pipe(T.HttpLabel("codeInterpreterId")), + clientToken: S.optional(S.String).pipe( + T.HttpQuery("clientToken"), + T.IdempotencyToken(), ), - ).annotate({ - identifier: "DeleteCodeInterpreterRequest", - }) as any as S.Schema; + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/code-interpreters/{codeInterpreterId}", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "DeleteCodeInterpreterRequest", +}) as any as S.Schema; export interface DeleteCodeInterpreterResponse { codeInterpreterId: string; status: CodeInterpreterStatus; lastUpdatedAt: Date; } -export const DeleteCodeInterpreterResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - codeInterpreterId: S.String, - status: CodeInterpreterStatus, - lastUpdatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - }), - ).annotate({ - identifier: "DeleteCodeInterpreterResponse", - }) as any as S.Schema; +export const DeleteCodeInterpreterResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + codeInterpreterId: S.String, + status: CodeInterpreterStatus, + lastUpdatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + }), +).annotate({ + identifier: "DeleteCodeInterpreterResponse", +}) as any as S.Schema; export interface ListCodeInterpretersRequest { maxResults?: number; nextToken?: string; type?: ResourceType; } -export const ListCodeInterpretersRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - type: S.optional(ResourceType).pipe(T.HttpQuery("type")), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/code-interpreters" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListCodeInterpretersRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + type: S.optional(ResourceType).pipe(T.HttpQuery("type")), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/code-interpreters" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListCodeInterpretersRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListCodeInterpretersRequest", +}) as any as S.Schema; export interface CodeInterpreterSummary { codeInterpreterId: string; codeInterpreterArn: string; @@ -2574,15 +2539,14 @@ export interface ListCodeInterpretersResponse { codeInterpreterSummaries: CodeInterpreterSummary[]; nextToken?: string; } -export const ListCodeInterpretersResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - codeInterpreterSummaries: CodeInterpreterSummaries, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListCodeInterpretersResponse", - }) as any as S.Schema; +export const ListCodeInterpretersResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + codeInterpreterSummaries: CodeInterpreterSummaries, + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListCodeInterpretersResponse", +}) as any as S.Schema; export interface ComponentConfiguration { configuration: any; } @@ -2618,70 +2582,67 @@ export interface CreateConfigurationBundleRequest { kmsKeyArn?: string; tags?: { [key: string]: string | undefined }; } -export const CreateConfigurationBundleRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - bundleName: S.String, - description: S.optional(SensitiveString), - components: ComponentConfigurationMap, - branchName: S.optional(S.String), - commitMessage: S.optional(S.String), - createdBy: S.optional(VersionCreatedBySource), - kmsKeyArn: S.optional(S.String), - tags: S.optional(TagsMap), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/configuration-bundles/create" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateConfigurationBundleRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + bundleName: S.String, + description: S.optional(SensitiveString), + components: ComponentConfigurationMap, + branchName: S.optional(S.String), + commitMessage: S.optional(S.String), + createdBy: S.optional(VersionCreatedBySource), + kmsKeyArn: S.optional(S.String), + tags: S.optional(TagsMap), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/configuration-bundles/create" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateConfigurationBundleRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateConfigurationBundleRequest", +}) as any as S.Schema; export interface CreateConfigurationBundleResponse { bundleArn: string; bundleId: string; versionId: string; createdAt: Date; } -export const CreateConfigurationBundleResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - bundleArn: S.String, - bundleId: S.String, - versionId: S.String, - createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - }), - ).annotate({ - identifier: "CreateConfigurationBundleResponse", - }) as any as S.Schema; +export const CreateConfigurationBundleResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + bundleArn: S.String, + bundleId: S.String, + versionId: S.String, + createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + }), +).annotate({ + identifier: "CreateConfigurationBundleResponse", +}) as any as S.Schema; export interface GetConfigurationBundleRequest { bundleId: string; branchName?: string; } -export const GetConfigurationBundleRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - bundleId: S.String.pipe(T.HttpLabel("bundleId")), - branchName: S.optional(S.String).pipe(T.HttpQuery("branchName")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/configuration-bundles/{bundleId}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetConfigurationBundleRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + bundleId: S.String.pipe(T.HttpLabel("bundleId")), + branchName: S.optional(S.String).pipe(T.HttpQuery("branchName")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/configuration-bundles/{bundleId}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetConfigurationBundleRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetConfigurationBundleRequest", +}) as any as S.Schema; export type ConfigurationBundleVersionList = string[]; export const ConfigurationBundleVersionList = /*@__PURE__*/ S.Array(S.String); export interface VersionLineageMetadata { @@ -2712,23 +2673,22 @@ export interface GetConfigurationBundleResponse { updatedAt: Date; kmsKeyArn?: string; } -export const GetConfigurationBundleResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - bundleArn: S.String, - bundleId: S.String, - bundleName: S.String, - description: S.optional(SensitiveString), - versionId: S.String, - components: ComponentConfigurationMap, - lineageMetadata: S.optional(VersionLineageMetadata), - createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - updatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - kmsKeyArn: S.optional(S.String), - }), - ).annotate({ - identifier: "GetConfigurationBundleResponse", - }) as any as S.Schema; +export const GetConfigurationBundleResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + bundleArn: S.String, + bundleId: S.String, + bundleName: S.String, + description: S.optional(SensitiveString), + versionId: S.String, + components: ComponentConfigurationMap, + lineageMetadata: S.optional(VersionLineageMetadata), + createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + updatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + kmsKeyArn: S.optional(S.String), + }), +).annotate({ + identifier: "GetConfigurationBundleResponse", +}) as any as S.Schema; export interface UpdateConfigurationBundleRequest { clientToken?: string; bundleId: string; @@ -2741,67 +2701,64 @@ export interface UpdateConfigurationBundleRequest { createdBy?: VersionCreatedBySource; kmsKeyArn?: string; } -export const UpdateConfigurationBundleRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - bundleId: S.String.pipe(T.HttpLabel("bundleId")), - bundleName: S.optional(S.String), - description: S.optional(SensitiveString), - components: S.optional(ComponentConfigurationMap), - parentVersionIds: S.optional(ConfigurationBundleVersionList), - branchName: S.optional(S.String), - commitMessage: S.optional(S.String), - createdBy: S.optional(VersionCreatedBySource), - kmsKeyArn: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "PUT", uri: "/configuration-bundles/{bundleId}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateConfigurationBundleRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + bundleId: S.String.pipe(T.HttpLabel("bundleId")), + bundleName: S.optional(S.String), + description: S.optional(SensitiveString), + components: S.optional(ComponentConfigurationMap), + parentVersionIds: S.optional(ConfigurationBundleVersionList), + branchName: S.optional(S.String), + commitMessage: S.optional(S.String), + createdBy: S.optional(VersionCreatedBySource), + kmsKeyArn: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/configuration-bundles/{bundleId}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateConfigurationBundleRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateConfigurationBundleRequest", +}) as any as S.Schema; export interface UpdateConfigurationBundleResponse { bundleArn: string; bundleId: string; versionId: string; updatedAt: Date; } -export const UpdateConfigurationBundleResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - bundleArn: S.String, - bundleId: S.String, - versionId: S.String, - updatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - }), - ).annotate({ - identifier: "UpdateConfigurationBundleResponse", - }) as any as S.Schema; +export const UpdateConfigurationBundleResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + bundleArn: S.String, + bundleId: S.String, + versionId: S.String, + updatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + }), +).annotate({ + identifier: "UpdateConfigurationBundleResponse", +}) as any as S.Schema; export interface DeleteConfigurationBundleRequest { bundleId: string; } -export const DeleteConfigurationBundleRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ bundleId: S.String.pipe(T.HttpLabel("bundleId")) }).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/configuration-bundles/{bundleId}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteConfigurationBundleRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ bundleId: S.String.pipe(T.HttpLabel("bundleId")) }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/configuration-bundles/{bundleId}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteConfigurationBundleRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteConfigurationBundleRequest", +}) as any as S.Schema; export type ConfigurationBundleStatus = | "ACTIVE" | "CREATING" @@ -2816,34 +2773,32 @@ export interface DeleteConfigurationBundleResponse { bundleId: string; status: ConfigurationBundleStatus; } -export const DeleteConfigurationBundleResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ bundleId: S.String, status: ConfigurationBundleStatus }), - ).annotate({ - identifier: "DeleteConfigurationBundleResponse", - }) as any as S.Schema; +export const DeleteConfigurationBundleResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ bundleId: S.String, status: ConfigurationBundleStatus }), +).annotate({ + identifier: "DeleteConfigurationBundleResponse", +}) as any as S.Schema; export interface ListConfigurationBundlesRequest { nextToken?: string; maxResults?: number; } -export const ListConfigurationBundlesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/configuration-bundles" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListConfigurationBundlesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/configuration-bundles" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListConfigurationBundlesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListConfigurationBundlesRequest", +}) as any as S.Schema; export interface ConfigurationBundleSummary { bundleArn: string; bundleId: string; @@ -2863,27 +2818,27 @@ export const ConfigurationBundleSummary = /*@__PURE__*/ S.suspend(() => identifier: "ConfigurationBundleSummary", }) as any as S.Schema; export type ConfigurationBundleSummaryList = ConfigurationBundleSummary[]; -export const ConfigurationBundleSummaryList = - /*@__PURE__*/ S.Array(ConfigurationBundleSummary); +export const ConfigurationBundleSummaryList = /*@__PURE__*/ S.Array( + ConfigurationBundleSummary, +); export interface ListConfigurationBundlesResponse { bundles: ConfigurationBundleSummary[]; nextToken?: string; } -export const ListConfigurationBundlesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - bundles: ConfigurationBundleSummaryList, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListConfigurationBundlesResponse", - }) as any as S.Schema; +export const ListConfigurationBundlesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + bundles: ConfigurationBundleSummaryList, + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListConfigurationBundlesResponse", +}) as any as S.Schema; export interface GetConfigurationBundleVersionRequest { bundleId: string; versionId: string; } -export const GetConfigurationBundleVersionRequest = - /*@__PURE__*/ S.suspend(() => +export const GetConfigurationBundleVersionRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ bundleId: S.String.pipe(T.HttpLabel("bundleId")), versionId: S.String.pipe(T.HttpLabel("versionId")), @@ -2900,9 +2855,9 @@ export const GetConfigurationBundleVersionRequest = rules, ), ), - ).annotate({ - identifier: "GetConfigurationBundleVersionRequest", - }) as any as S.Schema; +).annotate({ + identifier: "GetConfigurationBundleVersionRequest", +}) as any as S.Schema; export interface GetConfigurationBundleVersionResponse { bundleArn: string; bundleId: string; @@ -2915,8 +2870,8 @@ export interface GetConfigurationBundleVersionResponse { versionCreatedAt: Date; kmsKeyArn?: string; } -export const GetConfigurationBundleVersionResponse = - /*@__PURE__*/ S.suspend(() => +export const GetConfigurationBundleVersionResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ bundleArn: S.String, bundleId: S.String, @@ -2929,9 +2884,9 @@ export const GetConfigurationBundleVersionResponse = versionCreatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), kmsKeyArn: S.optional(S.String), }), - ).annotate({ - identifier: "GetConfigurationBundleVersionResponse", - }) as any as S.Schema; +).annotate({ + identifier: "GetConfigurationBundleVersionResponse", +}) as any as S.Schema; export interface VersionFilter { branchName?: string; createdByName?: string; @@ -2950,8 +2905,8 @@ export interface ListConfigurationBundleVersionsRequest { maxResults?: number; filter?: VersionFilter; } -export const ListConfigurationBundleVersionsRequest = - /*@__PURE__*/ S.suspend(() => +export const ListConfigurationBundleVersionsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ bundleId: S.String.pipe(T.HttpLabel("bundleId")), nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), @@ -2970,9 +2925,9 @@ export const ListConfigurationBundleVersionsRequest = rules, ), ), - ).annotate({ - identifier: "ListConfigurationBundleVersionsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListConfigurationBundleVersionsRequest", +}) as any as S.Schema; export interface ConfigurationBundleVersionSummary { bundleArn: string; bundleId: string; @@ -2980,35 +2935,35 @@ export interface ConfigurationBundleVersionSummary { lineageMetadata?: VersionLineageMetadata; versionCreatedAt: Date; } -export const ConfigurationBundleVersionSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - bundleArn: S.String, - bundleId: S.String, - versionId: S.String, - lineageMetadata: S.optional(VersionLineageMetadata), - versionCreatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - }), - ).annotate({ - identifier: "ConfigurationBundleVersionSummary", - }) as any as S.Schema; +export const ConfigurationBundleVersionSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + bundleArn: S.String, + bundleId: S.String, + versionId: S.String, + lineageMetadata: S.optional(VersionLineageMetadata), + versionCreatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + }), +).annotate({ + identifier: "ConfigurationBundleVersionSummary", +}) as any as S.Schema; export type ConfigurationBundleVersionSummaryList = ConfigurationBundleVersionSummary[]; -export const ConfigurationBundleVersionSummaryList = - /*@__PURE__*/ S.Array(ConfigurationBundleVersionSummary); +export const ConfigurationBundleVersionSummaryList = /*@__PURE__*/ S.Array( + ConfigurationBundleVersionSummary, +); export interface ListConfigurationBundleVersionsResponse { versions: ConfigurationBundleVersionSummary[]; nextToken?: string; } -export const ListConfigurationBundleVersionsResponse = - /*@__PURE__*/ S.suspend(() => +export const ListConfigurationBundleVersionsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ versions: ConfigurationBundleVersionSummaryList, nextToken: S.optional(S.String), }), - ).annotate({ - identifier: "ListConfigurationBundleVersionsResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListConfigurationBundleVersionsResponse", +}) as any as S.Schema; export type DatasetExampleList = any[]; export const DatasetExampleList = /*@__PURE__*/ S.Array(S.Any); export interface InlineExamplesSource { @@ -3342,24 +3297,23 @@ export interface CreateDatasetVersionRequest { datasetId: string; clientToken?: string; } -export const CreateDatasetVersionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - datasetId: S.String.pipe(T.HttpLabel("datasetId")), - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/datasets/{datasetId}/versions" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateDatasetVersionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + datasetId: S.String.pipe(T.HttpLabel("datasetId")), + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/datasets/{datasetId}/versions" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateDatasetVersionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateDatasetVersionRequest", +}) as any as S.Schema; export interface CreateDatasetVersionResponse { datasetArn: string; datasetId: string; @@ -3367,45 +3321,40 @@ export interface CreateDatasetVersionResponse { datasetVersion: string; createdAt: Date; } -export const CreateDatasetVersionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - datasetArn: S.String, - datasetId: S.String, - status: DatasetStatus, - datasetVersion: S.String, - createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - }), - ).annotate({ - identifier: "CreateDatasetVersionResponse", - }) as any as S.Schema; +export const CreateDatasetVersionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + datasetArn: S.String, + datasetId: S.String, + status: DatasetStatus, + datasetVersion: S.String, + createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + }), +).annotate({ + identifier: "CreateDatasetVersionResponse", +}) as any as S.Schema; export interface DeleteDatasetExamplesRequest { datasetId: string; clientToken?: string; exampleIds: string[]; } -export const DeleteDatasetExamplesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - datasetId: S.String.pipe(T.HttpLabel("datasetId")), - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - exampleIds: ExampleIdList, - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/datasets/{datasetId}/examples/delete", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteDatasetExamplesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + datasetId: S.String.pipe(T.HttpLabel("datasetId")), + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + exampleIds: ExampleIdList, + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/datasets/{datasetId}/examples/delete" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteDatasetExamplesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteDatasetExamplesRequest", +}) as any as S.Schema; export interface DeleteDatasetExamplesResponse { datasetArn: string; datasetId: string; @@ -3413,18 +3362,17 @@ export interface DeleteDatasetExamplesResponse { deletedCount: number; updatedAt: Date; } -export const DeleteDatasetExamplesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - datasetArn: S.String, - datasetId: S.String, - status: DatasetStatus, - deletedCount: S.Number, - updatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - }), - ).annotate({ - identifier: "DeleteDatasetExamplesResponse", - }) as any as S.Schema; +export const DeleteDatasetExamplesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + datasetArn: S.String, + datasetId: S.String, + status: DatasetStatus, + deletedCount: S.Number, + updatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + }), +).annotate({ + identifier: "DeleteDatasetExamplesResponse", +}) as any as S.Schema; export interface ListDatasetExamplesRequest { datasetId: string; datasetVersion?: string; @@ -3457,18 +3405,17 @@ export interface ListDatasetExamplesResponse { examples: any[]; nextToken?: string; } -export const ListDatasetExamplesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - datasetArn: S.String, - datasetId: S.String, - datasetVersion: S.String, - examples: DatasetExampleList, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListDatasetExamplesResponse", - }) as any as S.Schema; +export const ListDatasetExamplesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + datasetArn: S.String, + datasetId: S.String, + datasetVersion: S.String, + examples: DatasetExampleList, + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListDatasetExamplesResponse", +}) as any as S.Schema; export interface ListDatasetVersionsRequest { datasetId: string; nextToken?: string; @@ -3514,42 +3461,37 @@ export interface ListDatasetVersionsResponse { versions: DatasetVersionSummary[]; nextToken?: string; } -export const ListDatasetVersionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - versions: DatasetVersionSummaryList, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListDatasetVersionsResponse", - }) as any as S.Schema; +export const ListDatasetVersionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + versions: DatasetVersionSummaryList, + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListDatasetVersionsResponse", +}) as any as S.Schema; export interface UpdateDatasetExamplesRequest { datasetId: string; clientToken?: string; examples: any[]; } -export const UpdateDatasetExamplesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - datasetId: S.String.pipe(T.HttpLabel("datasetId")), - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - examples: DatasetExampleList, - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/datasets/{datasetId}/examples/update", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateDatasetExamplesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + datasetId: S.String.pipe(T.HttpLabel("datasetId")), + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + examples: DatasetExampleList, + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/datasets/{datasetId}/examples/update" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateDatasetExamplesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateDatasetExamplesRequest", +}) as any as S.Schema; export interface UpdateDatasetExamplesResponse { datasetArn: string; datasetId: string; @@ -3557,18 +3499,17 @@ export interface UpdateDatasetExamplesResponse { updatedCount: number; updatedAt: Date; } -export const UpdateDatasetExamplesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - datasetArn: S.String, - datasetId: S.String, - status: DatasetStatus, - updatedCount: S.Number, - updatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - }), - ).annotate({ - identifier: "UpdateDatasetExamplesResponse", - }) as any as S.Schema; +export const UpdateDatasetExamplesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + datasetArn: S.String, + datasetId: S.String, + status: DatasetStatus, + updatedCount: S.Number, + updatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + }), +).annotate({ + identifier: "UpdateDatasetExamplesResponse", +}) as any as S.Schema; export interface NumericalScaleDefinition { definition: string; value: number; @@ -3626,16 +3567,15 @@ export interface BedrockEvaluatorModelConfig { inferenceConfig?: InferenceConfiguration; additionalModelRequestFields?: any; } -export const BedrockEvaluatorModelConfig = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - modelId: S.String, - inferenceConfig: S.optional(InferenceConfiguration), - additionalModelRequestFields: S.optional(S.Any), - }), - ).annotate({ - identifier: "BedrockEvaluatorModelConfig", - }) as any as S.Schema; +export const BedrockEvaluatorModelConfig = /*@__PURE__*/ S.suspend(() => + S.Struct({ + modelId: S.String, + inferenceConfig: S.optional(InferenceConfiguration), + additionalModelRequestFields: S.optional(S.Any), + }), +).annotate({ + identifier: "BedrockEvaluatorModelConfig", +}) as any as S.Schema; export type EvaluatorModelConfig = { bedrockEvaluatorModelConfig: BedrockEvaluatorModelConfig; }; @@ -3987,10 +3927,11 @@ export const AuthorizerType = /*@__PURE__*/ S.String; export interface LambdaInterceptorConfiguration { arn: string; } -export const LambdaInterceptorConfiguration = - /*@__PURE__*/ S.suspend(() => S.Struct({ arn: S.String })).annotate({ - identifier: "LambdaInterceptorConfiguration", - }) as any as S.Schema; +export const LambdaInterceptorConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ arn: S.String }), +).annotate({ + identifier: "LambdaInterceptorConfiguration", +}) as any as S.Schema; export type InterceptorConfiguration = { lambda: LambdaInterceptorConfiguration; }; @@ -4008,12 +3949,14 @@ export const InterceptorPayloadExclusion = /*@__PURE__*/ S.String; export type InterceptorPayloadExclusionSelector = { field: InterceptorPayloadExclusion; }; -export const InterceptorPayloadExclusionSelector = - /*@__PURE__*/ S.Union([S.Struct({ field: InterceptorPayloadExclusion })]); +export const InterceptorPayloadExclusionSelector = /*@__PURE__*/ S.Union([ + S.Struct({ field: InterceptorPayloadExclusion }), +]); export type InterceptorPayloadExclusionSelectorList = InterceptorPayloadExclusionSelector[]; -export const InterceptorPayloadExclusionSelectorList = - /*@__PURE__*/ S.Array(InterceptorPayloadExclusionSelector); +export const InterceptorPayloadExclusionSelectorList = /*@__PURE__*/ S.Array( + InterceptorPayloadExclusionSelector, +); export interface InterceptorPayloadFilter { exclude: InterceptorPayloadExclusionSelector[]; } @@ -4026,46 +3969,44 @@ export interface InterceptorInputConfiguration { passRequestHeaders: boolean; payloadFilter?: InterceptorPayloadFilter; } -export const InterceptorInputConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - passRequestHeaders: S.Boolean, - payloadFilter: S.optional(InterceptorPayloadFilter), - }), - ).annotate({ - identifier: "InterceptorInputConfiguration", - }) as any as S.Schema; +export const InterceptorInputConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + passRequestHeaders: S.Boolean, + payloadFilter: S.optional(InterceptorPayloadFilter), + }), +).annotate({ + identifier: "InterceptorInputConfiguration", +}) as any as S.Schema; export interface GatewayInterceptorConfiguration { interceptor: InterceptorConfiguration; interceptionPoints: GatewayInterceptionPoint[]; inputConfiguration?: InterceptorInputConfiguration; } -export const GatewayInterceptorConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - interceptor: InterceptorConfiguration, - interceptionPoints: GatewayInterceptionPoints, - inputConfiguration: S.optional(InterceptorInputConfiguration), - }), - ).annotate({ - identifier: "GatewayInterceptorConfiguration", - }) as any as S.Schema; +export const GatewayInterceptorConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + interceptor: InterceptorConfiguration, + interceptionPoints: GatewayInterceptionPoints, + inputConfiguration: S.optional(InterceptorInputConfiguration), + }), +).annotate({ + identifier: "GatewayInterceptorConfiguration", +}) as any as S.Schema; export type GatewayInterceptorConfigurations = GatewayInterceptorConfiguration[]; -export const GatewayInterceptorConfigurations = - /*@__PURE__*/ S.Array(GatewayInterceptorConfiguration); +export const GatewayInterceptorConfigurations = /*@__PURE__*/ S.Array( + GatewayInterceptorConfiguration, +); export type GatewayPolicyEngineMode = "LOG_ONLY" | "ENFORCE" | (string & {}); export const GatewayPolicyEngineMode = /*@__PURE__*/ S.String; export interface GatewayPolicyEngineConfiguration { arn: string; mode: GatewayPolicyEngineMode; } -export const GatewayPolicyEngineConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ arn: S.String, mode: GatewayPolicyEngineMode }), - ).annotate({ - identifier: "GatewayPolicyEngineConfiguration", - }) as any as S.Schema; +export const GatewayPolicyEngineConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ arn: S.String, mode: GatewayPolicyEngineMode }), +).annotate({ + identifier: "GatewayPolicyEngineConfiguration", +}) as any as S.Schema; export type ExceptionLevel = "DEBUG" | (string & {}); export const ExceptionLevel = /*@__PURE__*/ S.String; export interface CreateGatewayRequest { @@ -4125,21 +4066,19 @@ export const StatusReasons = /*@__PURE__*/ S.Array(S.String); export interface LambdaTransformConfiguration { arn?: string; } -export const LambdaTransformConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ arn: S.optional(S.String) }), - ).annotate({ - identifier: "LambdaTransformConfiguration", - }) as any as S.Schema; +export const LambdaTransformConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ arn: S.optional(S.String) }), +).annotate({ + identifier: "LambdaTransformConfiguration", +}) as any as S.Schema; export interface CustomTransformConfiguration { lambda?: LambdaTransformConfiguration; } -export const CustomTransformConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ lambda: S.optional(LambdaTransformConfiguration) }), - ).annotate({ - identifier: "CustomTransformConfiguration", - }) as any as S.Schema; +export const CustomTransformConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ lambda: S.optional(LambdaTransformConfiguration) }), +).annotate({ + identifier: "CustomTransformConfiguration", +}) as any as S.Schema; export type WafFailureMode = "FAIL_CLOSE" | "FAIL_OPEN" | (string & {}); export const WafFailureMode = /*@__PURE__*/ S.String; export interface WafConfiguration { @@ -4511,12 +4450,11 @@ export interface ConfigurationBundleReference { bundleArn: string; bundleVersion: string; } -export const ConfigurationBundleReference = - /*@__PURE__*/ S.suspend(() => - S.Struct({ bundleArn: S.String, bundleVersion: S.String }), - ).annotate({ - identifier: "ConfigurationBundleReference", - }) as any as S.Schema; +export const ConfigurationBundleReference = /*@__PURE__*/ S.suspend(() => + S.Struct({ bundleArn: S.String, bundleVersion: S.String }), +).annotate({ + identifier: "ConfigurationBundleReference", +}) as any as S.Schema; export type TrafficSplitMetadataMap = { [key: string]: string | undefined }; export const TrafficSplitMetadataMap = /*@__PURE__*/ S.Record( S.String, @@ -4980,12 +4918,11 @@ export interface McpLambdaTargetConfiguration { lambdaArn: string; toolSchema: ToolSchema; } -export const McpLambdaTargetConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ lambdaArn: S.String, toolSchema: ToolSchema }), - ).annotate({ - identifier: "McpLambdaTargetConfiguration", - }) as any as S.Schema; +export const McpLambdaTargetConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ lambdaArn: S.String, toolSchema: ToolSchema }), +).annotate({ + identifier: "McpLambdaTargetConfiguration", +}) as any as S.Schema; export type McpToolSchemaConfiguration = | { s3: S3Configuration; inlinePayload?: never } | { s3?: never; inlinePayload: string | redacted.Redacted }; @@ -5001,17 +4938,16 @@ export interface McpServerTargetConfiguration { listingMode?: ListingMode; resourcePriority?: number; } -export const McpServerTargetConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - endpoint: S.String, - mcpToolSchema: S.optional(McpToolSchemaConfiguration), - listingMode: S.optional(ListingMode), - resourcePriority: S.optional(S.Number), - }), - ).annotate({ - identifier: "McpServerTargetConfiguration", - }) as any as S.Schema; +export const McpServerTargetConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + endpoint: S.String, + mcpToolSchema: S.optional(McpToolSchemaConfiguration), + listingMode: S.optional(ListingMode), + resourcePriority: S.optional(S.Number), + }), +).annotate({ + identifier: "McpServerTargetConfiguration", +}) as any as S.Schema; export type RestApiMethod = | "GET" | "DELETE" @@ -5060,30 +4996,28 @@ export interface ApiGatewayToolConfiguration { toolOverrides?: ApiGatewayToolOverride[]; toolFilters: ApiGatewayToolFilter[]; } -export const ApiGatewayToolConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - toolOverrides: S.optional(ApiGatewayToolOverrides), - toolFilters: ApiGatewayToolFilters, - }), - ).annotate({ - identifier: "ApiGatewayToolConfiguration", - }) as any as S.Schema; +export const ApiGatewayToolConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + toolOverrides: S.optional(ApiGatewayToolOverrides), + toolFilters: ApiGatewayToolFilters, + }), +).annotate({ + identifier: "ApiGatewayToolConfiguration", +}) as any as S.Schema; export interface ApiGatewayTargetConfiguration { restApiId: string; stage: string; apiGatewayToolConfiguration: ApiGatewayToolConfiguration; } -export const ApiGatewayTargetConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - restApiId: S.String, - stage: S.String, - apiGatewayToolConfiguration: ApiGatewayToolConfiguration, - }), - ).annotate({ - identifier: "ApiGatewayTargetConfiguration", - }) as any as S.Schema; +export const ApiGatewayTargetConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + restApiId: S.String, + stage: S.String, + apiGatewayToolConfiguration: ApiGatewayToolConfiguration, + }), +).annotate({ + identifier: "ApiGatewayTargetConfiguration", +}) as any as S.Schema; export interface ConnectorSource { connectorId: string; } @@ -5137,16 +5071,15 @@ export interface ConnectorTargetConfiguration { enabled?: string[]; configurations?: ConnectorConfiguration[]; } -export const ConnectorTargetConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - source: ConnectorSource, - enabled: S.optional(EnabledConnectors), - configurations: S.optional(ConnectorConfigurations), - }), - ).annotate({ - identifier: "ConnectorTargetConfiguration", - }) as any as S.Schema; +export const ConnectorTargetConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + source: ConnectorSource, + enabled: S.optional(EnabledConnectors), + configurations: S.optional(ConnectorConfigurations), + }), +).annotate({ + identifier: "ConnectorTargetConfiguration", +}) as any as S.Schema; export type McpTargetConfiguration = | { openApiSchema: ApiSchemaConfiguration; @@ -5248,17 +5181,16 @@ export interface PassthroughTargetConfiguration { schema?: HttpApiSchemaConfiguration; stickinessConfiguration?: StickinessConfiguration; } -export const PassthroughTargetConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - endpoint: S.String, - protocolType: PassthroughProtocolType, - schema: S.optional(HttpApiSchemaConfiguration), - stickinessConfiguration: S.optional(StickinessConfiguration), - }), - ).annotate({ - identifier: "PassthroughTargetConfiguration", - }) as any as S.Schema; +export const PassthroughTargetConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + endpoint: S.String, + protocolType: PassthroughProtocolType, + schema: S.optional(HttpApiSchemaConfiguration), + stickinessConfiguration: S.optional(StickinessConfiguration), + }), +).annotate({ + identifier: "PassthroughTargetConfiguration", +}) as any as S.Schema; export type HttpTargetConfiguration = | { agentcoreRuntime: RuntimeTargetConfiguration; passthrough?: never } | { agentcoreRuntime?: never; passthrough: PassthroughTargetConfiguration }; @@ -5277,12 +5209,11 @@ export const InferenceConnectorSource = /*@__PURE__*/ S.suspend(() => export interface InferenceConnectorTargetConfiguration { source: InferenceConnectorSource; } -export const InferenceConnectorTargetConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ source: InferenceConnectorSource }), - ).annotate({ - identifier: "InferenceConnectorTargetConfiguration", - }) as any as S.Schema; +export const InferenceConnectorTargetConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ source: InferenceConnectorSource }), +).annotate({ + identifier: "InferenceConnectorTargetConfiguration", +}) as any as S.Schema; export interface ProviderPrefix { strip?: boolean; separator?: string; @@ -5309,35 +5240,35 @@ export interface InferenceOperationConfiguration { providerPath?: string; models?: ModelEntry[]; } -export const InferenceOperationConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - path: S.String, - providerPath: S.optional(S.String), - models: S.optional(ModelEntries), - }), - ).annotate({ - identifier: "InferenceOperationConfiguration", - }) as any as S.Schema; +export const InferenceOperationConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + path: S.String, + providerPath: S.optional(S.String), + models: S.optional(ModelEntries), + }), +).annotate({ + identifier: "InferenceOperationConfiguration", +}) as any as S.Schema; export type InferenceOperationConfigurations = InferenceOperationConfiguration[]; -export const InferenceOperationConfigurations = - /*@__PURE__*/ S.Array(InferenceOperationConfiguration); +export const InferenceOperationConfigurations = /*@__PURE__*/ S.Array( + InferenceOperationConfiguration, +); export interface InferenceProviderTargetConfiguration { endpoint: string; modelMapping?: ModelMapping; operations?: InferenceOperationConfiguration[]; } -export const InferenceProviderTargetConfiguration = - /*@__PURE__*/ S.suspend(() => +export const InferenceProviderTargetConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ endpoint: S.String, modelMapping: S.optional(ModelMapping), operations: S.optional(InferenceOperationConfigurations), }), - ).annotate({ - identifier: "InferenceProviderTargetConfiguration", - }) as any as S.Schema; +).annotate({ + identifier: "InferenceProviderTargetConfiguration", +}) as any as S.Schema; export type InferenceTargetConfiguration = | { connector: InferenceConnectorTargetConfiguration; provider?: never } | { connector?: never; provider: InferenceProviderTargetConfiguration }; @@ -5408,17 +5339,16 @@ export interface GatewayApiKeyCredentialProvider { credentialPrefix?: string; credentialLocation?: ApiKeyCredentialLocation; } -export const GatewayApiKeyCredentialProvider = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - providerArn: S.String, - credentialParameterName: S.optional(S.String), - credentialPrefix: S.optional(S.String), - credentialLocation: S.optional(ApiKeyCredentialLocation), - }), - ).annotate({ - identifier: "GatewayApiKeyCredentialProvider", - }) as any as S.Schema; +export const GatewayApiKeyCredentialProvider = /*@__PURE__*/ S.suspend(() => + S.Struct({ + providerArn: S.String, + credentialParameterName: S.optional(S.String), + credentialPrefix: S.optional(S.String), + credentialLocation: S.optional(ApiKeyCredentialLocation), + }), +).annotate({ + identifier: "GatewayApiKeyCredentialProvider", +}) as any as S.Schema; export interface IamCredentialProvider { service: string; region?: string; @@ -5453,19 +5383,19 @@ export interface CredentialProviderConfiguration { credentialProviderType: CredentialProviderType; credentialProvider?: CredentialProvider; } -export const CredentialProviderConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - credentialProviderType: CredentialProviderType, - credentialProvider: S.optional(CredentialProvider), - }), - ).annotate({ - identifier: "CredentialProviderConfiguration", - }) as any as S.Schema; +export const CredentialProviderConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + credentialProviderType: CredentialProviderType, + credentialProvider: S.optional(CredentialProvider), + }), +).annotate({ + identifier: "CredentialProviderConfiguration", +}) as any as S.Schema; export type CredentialProviderConfigurations = CredentialProviderConfiguration[]; -export const CredentialProviderConfigurations = - /*@__PURE__*/ S.Array(CredentialProviderConfiguration); +export const CredentialProviderConfigurations = /*@__PURE__*/ S.Array( + CredentialProviderConfiguration, +); export type AllowedRequestHeaders = string[]; export const AllowedRequestHeaders = /*@__PURE__*/ S.Array(S.String); export type AllowedQueryParameters = string[]; @@ -5510,10 +5440,7 @@ export const CreateGatewayTargetRequest = /*@__PURE__*/ S.suspend(() => privateEndpoint: S.optional(PrivateEndpoint), }).pipe( T.all( - T.Http({ - method: "POST", - uri: "/gateways/{gatewayIdentifier}/targets/", - }), + T.Http({ method: "POST", uri: "/gateways/{gatewayIdentifier}/targets/" }), svc, auth, proto, @@ -5553,8 +5480,9 @@ export const ManagedResourceDetails = /*@__PURE__*/ S.suspend(() => identifier: "ManagedResourceDetails", }) as any as S.Schema; export type PrivateEndpointManagedResources = ManagedResourceDetails[]; -export const PrivateEndpointManagedResources = - /*@__PURE__*/ S.Array(ManagedResourceDetails); +export const PrivateEndpointManagedResources = /*@__PURE__*/ S.Array( + ManagedResourceDetails, +); export interface OAuth2AuthorizationData { authorizationUrl: string; userId?: string; @@ -5588,33 +5516,32 @@ export interface CreateGatewayTargetResponse { authorizationData?: AuthorizationData; protocolType?: TargetProtocolType; } -export const CreateGatewayTargetResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - gatewayArn: S.String, - targetId: S.String, - createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - updatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - status: TargetStatus, - statusReasons: S.optional(StatusReasons), - name: SensitiveString, - description: S.optional(SensitiveString), - targetConfiguration: TargetConfiguration, - credentialProviderConfigurations: CredentialProviderConfigurations, - lastSynchronizedAt: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - metadataConfiguration: S.optional(MetadataConfiguration), - privateEndpoint: S.optional(PrivateEndpoint), - privateEndpointManagedResources: S.optional( - PrivateEndpointManagedResources, - ), - authorizationData: S.optional(AuthorizationData), - protocolType: S.optional(TargetProtocolType), - }), - ).annotate({ - identifier: "CreateGatewayTargetResponse", - }) as any as S.Schema; +export const CreateGatewayTargetResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + gatewayArn: S.String, + targetId: S.String, + createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + updatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + status: TargetStatus, + statusReasons: S.optional(StatusReasons), + name: SensitiveString, + description: S.optional(SensitiveString), + targetConfiguration: TargetConfiguration, + credentialProviderConfigurations: CredentialProviderConfigurations, + lastSynchronizedAt: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + metadataConfiguration: S.optional(MetadataConfiguration), + privateEndpoint: S.optional(PrivateEndpoint), + privateEndpointManagedResources: S.optional( + PrivateEndpointManagedResources, + ), + authorizationData: S.optional(AuthorizationData), + protocolType: S.optional(TargetProtocolType), + }), +).annotate({ + identifier: "CreateGatewayTargetResponse", +}) as any as S.Schema; export interface DeleteGatewayTargetRequest { gatewayIdentifier: string; targetId: string; @@ -5645,17 +5572,16 @@ export interface DeleteGatewayTargetResponse { status: TargetStatus; statusReasons?: string[]; } -export const DeleteGatewayTargetResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - gatewayArn: S.String, - targetId: S.String, - status: TargetStatus, - statusReasons: S.optional(StatusReasons), - }), - ).annotate({ - identifier: "DeleteGatewayTargetResponse", - }) as any as S.Schema; +export const DeleteGatewayTargetResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + gatewayArn: S.String, + targetId: S.String, + status: TargetStatus, + statusReasons: S.optional(StatusReasons), + }), +).annotate({ + identifier: "DeleteGatewayTargetResponse", +}) as any as S.Schema; export interface GetGatewayTargetRequest { gatewayIdentifier: string; targetId: string; @@ -5736,10 +5662,7 @@ export const ListGatewayTargetsRequest = /*@__PURE__*/ S.suspend(() => nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), }).pipe( T.all( - T.Http({ - method: "GET", - uri: "/gateways/{gatewayIdentifier}/targets/", - }), + T.Http({ method: "GET", uri: "/gateways/{gatewayIdentifier}/targets/" }), svc, auth, proto, @@ -5809,27 +5732,26 @@ export interface SynchronizeGatewayTargetsRequest { gatewayIdentifier: string; targetIdList: string[]; } -export const SynchronizeGatewayTargetsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - gatewayIdentifier: S.String.pipe(T.HttpLabel("gatewayIdentifier")), - targetIdList: TargetIdList, - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/gateways/{gatewayIdentifier}/synchronizeTargets", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const SynchronizeGatewayTargetsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + gatewayIdentifier: S.String.pipe(T.HttpLabel("gatewayIdentifier")), + targetIdList: TargetIdList, + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/gateways/{gatewayIdentifier}/synchronizeTargets", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "SynchronizeGatewayTargetsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "SynchronizeGatewayTargetsRequest", +}) as any as S.Schema; export interface GatewayTarget { gatewayArn: string; targetId: string; @@ -5877,12 +5799,11 @@ export const GatewayTargetList = /*@__PURE__*/ S.Array(GatewayTarget); export interface SynchronizeGatewayTargetsResponse { targets?: GatewayTarget[]; } -export const SynchronizeGatewayTargetsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ targets: S.optional(GatewayTargetList) }), - ).annotate({ - identifier: "SynchronizeGatewayTargetsResponse", - }) as any as S.Schema; +export const SynchronizeGatewayTargetsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ targets: S.optional(GatewayTargetList) }), +).annotate({ + identifier: "SynchronizeGatewayTargetsResponse", +}) as any as S.Schema; export interface UpdateGatewayTargetRequest { gatewayIdentifier: string; targetId: string; @@ -5939,33 +5860,32 @@ export interface UpdateGatewayTargetResponse { authorizationData?: AuthorizationData; protocolType?: TargetProtocolType; } -export const UpdateGatewayTargetResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - gatewayArn: S.String, - targetId: S.String, - createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - updatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - status: TargetStatus, - statusReasons: S.optional(StatusReasons), - name: SensitiveString, - description: S.optional(SensitiveString), - targetConfiguration: TargetConfiguration, - credentialProviderConfigurations: CredentialProviderConfigurations, - lastSynchronizedAt: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - metadataConfiguration: S.optional(MetadataConfiguration), - privateEndpoint: S.optional(PrivateEndpoint), - privateEndpointManagedResources: S.optional( - PrivateEndpointManagedResources, - ), - authorizationData: S.optional(AuthorizationData), - protocolType: S.optional(TargetProtocolType), - }), - ).annotate({ - identifier: "UpdateGatewayTargetResponse", - }) as any as S.Schema; +export const UpdateGatewayTargetResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + gatewayArn: S.String, + targetId: S.String, + createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + updatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + status: TargetStatus, + statusReasons: S.optional(StatusReasons), + name: SensitiveString, + description: S.optional(SensitiveString), + targetConfiguration: TargetConfiguration, + credentialProviderConfigurations: CredentialProviderConfigurations, + lastSynchronizedAt: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + metadataConfiguration: S.optional(MetadataConfiguration), + privateEndpoint: S.optional(PrivateEndpoint), + privateEndpointManagedResources: S.optional( + PrivateEndpointManagedResources, + ), + authorizationData: S.optional(AuthorizationData), + protocolType: S.optional(TargetProtocolType), + }), +).annotate({ + identifier: "UpdateGatewayTargetResponse", +}) as any as S.Schema; export interface CreateHarnessEndpointRequest { harnessId: string; endpointName: string; @@ -5974,28 +5894,27 @@ export interface CreateHarnessEndpointRequest { clientToken?: string; tags?: { [key: string]: string | undefined }; } -export const CreateHarnessEndpointRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - harnessId: S.String.pipe(T.HttpLabel("harnessId")), - endpointName: S.String, - targetVersion: S.optional(S.String), - description: S.optional(S.String), - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - tags: S.optional(TagsMap), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/harnesses/{harnessId}/endpoints" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateHarnessEndpointRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + harnessId: S.String.pipe(T.HttpLabel("harnessId")), + endpointName: S.String, + targetVersion: S.optional(S.String), + description: S.optional(S.String), + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + tags: S.optional(TagsMap), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/harnesses/{harnessId}/endpoints" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateHarnessEndpointRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateHarnessEndpointRequest", +}) as any as S.Schema; export type HarnessEndpointStatus = | "CREATING" | "CREATE_FAILED" @@ -6039,51 +5958,48 @@ export const HarnessEndpoint = /*@__PURE__*/ S.suspend(() => export interface CreateHarnessEndpointResponse { endpoint: HarnessEndpoint; } -export const CreateHarnessEndpointResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ endpoint: HarnessEndpoint }), - ).annotate({ - identifier: "CreateHarnessEndpointResponse", - }) as any as S.Schema; +export const CreateHarnessEndpointResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ endpoint: HarnessEndpoint }), +).annotate({ + identifier: "CreateHarnessEndpointResponse", +}) as any as S.Schema; export interface DeleteHarnessEndpointRequest { harnessId: string; endpointName: string; clientToken?: string; } -export const DeleteHarnessEndpointRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - harnessId: S.String.pipe(T.HttpLabel("harnessId")), - endpointName: S.String.pipe(T.HttpLabel("endpointName")), - clientToken: S.optional(S.String).pipe( - T.HttpQuery("clientToken"), - T.IdempotencyToken(), - ), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/harnesses/{harnessId}/endpoints/{endpointName}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteHarnessEndpointRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + harnessId: S.String.pipe(T.HttpLabel("harnessId")), + endpointName: S.String.pipe(T.HttpLabel("endpointName")), + clientToken: S.optional(S.String).pipe( + T.HttpQuery("clientToken"), + T.IdempotencyToken(), ), - ).annotate({ - identifier: "DeleteHarnessEndpointRequest", - }) as any as S.Schema; + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/harnesses/{harnessId}/endpoints/{endpointName}", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "DeleteHarnessEndpointRequest", +}) as any as S.Schema; export interface DeleteHarnessEndpointResponse { endpoint: HarnessEndpoint; } -export const DeleteHarnessEndpointResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ endpoint: HarnessEndpoint }), - ).annotate({ - identifier: "DeleteHarnessEndpointResponse", - }) as any as S.Schema; +export const DeleteHarnessEndpointResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ endpoint: HarnessEndpoint }), +).annotate({ + identifier: "DeleteHarnessEndpointResponse", +}) as any as S.Schema; export interface GetHarnessEndpointRequest { harnessId: string; endpointName: string; @@ -6121,37 +6037,35 @@ export interface ListHarnessEndpointsRequest { maxResults?: number; nextToken?: string; } -export const ListHarnessEndpointsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - harnessId: S.String.pipe(T.HttpLabel("harnessId")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/harnesses/{harnessId}/endpoints" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListHarnessEndpointsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + harnessId: S.String.pipe(T.HttpLabel("harnessId")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/harnesses/{harnessId}/endpoints" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListHarnessEndpointsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListHarnessEndpointsRequest", +}) as any as S.Schema; export type HarnessEndpoints = HarnessEndpoint[]; export const HarnessEndpoints = /*@__PURE__*/ S.Array(HarnessEndpoint); export interface ListHarnessEndpointsResponse { endpoints: HarnessEndpoint[]; nextToken?: string; } -export const ListHarnessEndpointsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ endpoints: HarnessEndpoints, nextToken: S.optional(S.String) }), - ).annotate({ - identifier: "ListHarnessEndpointsResponse", - }) as any as S.Schema; +export const ListHarnessEndpointsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ endpoints: HarnessEndpoints, nextToken: S.optional(S.String) }), +).annotate({ + identifier: "ListHarnessEndpointsResponse", +}) as any as S.Schema; export interface UpdateHarnessEndpointRequest { harnessId: string; endpointName: string; @@ -6159,39 +6073,37 @@ export interface UpdateHarnessEndpointRequest { description?: string; clientToken?: string; } -export const UpdateHarnessEndpointRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - harnessId: S.String.pipe(T.HttpLabel("harnessId")), - endpointName: S.String.pipe(T.HttpLabel("endpointName")), - targetVersion: S.optional(S.String), - description: S.optional(S.String), - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ - method: "PATCH", - uri: "/harnesses/{harnessId}/endpoints/{endpointName}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateHarnessEndpointRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + harnessId: S.String.pipe(T.HttpLabel("harnessId")), + endpointName: S.String.pipe(T.HttpLabel("endpointName")), + targetVersion: S.optional(S.String), + description: S.optional(S.String), + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ + method: "PATCH", + uri: "/harnesses/{harnessId}/endpoints/{endpointName}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateHarnessEndpointRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateHarnessEndpointRequest", +}) as any as S.Schema; export interface UpdateHarnessEndpointResponse { endpoint: HarnessEndpoint; } -export const UpdateHarnessEndpointResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ endpoint: HarnessEndpoint }), - ).annotate({ - identifier: "UpdateHarnessEndpointResponse", - }) as any as S.Schema; +export const UpdateHarnessEndpointResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ endpoint: HarnessEndpoint }), +).annotate({ + identifier: "UpdateHarnessEndpointResponse", +}) as any as S.Schema; export interface HarnessAgentCoreRuntimeEnvironmentRequest { lifecycleConfiguration?: LifecycleConfiguration; networkConfiguration?: NetworkConfiguration; @@ -6210,12 +6122,11 @@ export const HarnessAgentCoreRuntimeEnvironmentRequest = export type HarnessEnvironmentProviderRequest = { agentCoreRuntimeEnvironment: HarnessAgentCoreRuntimeEnvironmentRequest; }; -export const HarnessEnvironmentProviderRequest = - /*@__PURE__*/ S.Union([ - S.Struct({ - agentCoreRuntimeEnvironment: HarnessAgentCoreRuntimeEnvironmentRequest, - }), - ]); +export const HarnessEnvironmentProviderRequest = /*@__PURE__*/ S.Union([ + S.Struct({ + agentCoreRuntimeEnvironment: HarnessAgentCoreRuntimeEnvironmentRequest, + }), +]); export type HarnessEnvironmentArtifact = { containerConfiguration: ContainerConfiguration; }; @@ -6383,12 +6294,11 @@ export const HarnessRemoteMcpConfig = /*@__PURE__*/ S.suspend(() => export interface HarnessAgentCoreBrowserConfig { browserArn?: string; } -export const HarnessAgentCoreBrowserConfig = - /*@__PURE__*/ S.suspend(() => - S.Struct({ browserArn: S.optional(S.String) }), - ).annotate({ - identifier: "HarnessAgentCoreBrowserConfig", - }) as any as S.Schema; +export const HarnessAgentCoreBrowserConfig = /*@__PURE__*/ S.suspend(() => + S.Struct({ browserArn: S.optional(S.String) }), +).annotate({ + identifier: "HarnessAgentCoreBrowserConfig", +}) as any as S.Schema; export type HarnessGatewayOutboundAuth = | { awsIam: Record; none?: never; oauth?: never } | { awsIam?: never; none: Record; oauth?: never } @@ -6402,34 +6312,31 @@ export interface HarnessAgentCoreGatewayConfig { gatewayArn: string; outboundAuth?: HarnessGatewayOutboundAuth; } -export const HarnessAgentCoreGatewayConfig = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - gatewayArn: S.String, - outboundAuth: S.optional(HarnessGatewayOutboundAuth), - }), - ).annotate({ - identifier: "HarnessAgentCoreGatewayConfig", - }) as any as S.Schema; +export const HarnessAgentCoreGatewayConfig = /*@__PURE__*/ S.suspend(() => + S.Struct({ + gatewayArn: S.String, + outboundAuth: S.optional(HarnessGatewayOutboundAuth), + }), +).annotate({ + identifier: "HarnessAgentCoreGatewayConfig", +}) as any as S.Schema; export interface HarnessInlineFunctionConfig { description: string | redacted.Redacted; inputSchema: any; } -export const HarnessInlineFunctionConfig = - /*@__PURE__*/ S.suspend(() => - S.Struct({ description: SensitiveString, inputSchema: S.Any }), - ).annotate({ - identifier: "HarnessInlineFunctionConfig", - }) as any as S.Schema; +export const HarnessInlineFunctionConfig = /*@__PURE__*/ S.suspend(() => + S.Struct({ description: SensitiveString, inputSchema: S.Any }), +).annotate({ + identifier: "HarnessInlineFunctionConfig", +}) as any as S.Schema; export interface HarnessAgentCoreCodeInterpreterConfig { codeInterpreterArn?: string; } -export const HarnessAgentCoreCodeInterpreterConfig = - /*@__PURE__*/ S.suspend(() => - S.Struct({ codeInterpreterArn: S.optional(S.String) }), - ).annotate({ - identifier: "HarnessAgentCoreCodeInterpreterConfig", - }) as any as S.Schema; +export const HarnessAgentCoreCodeInterpreterConfig = /*@__PURE__*/ S.suspend( + () => S.Struct({ codeInterpreterArn: S.optional(S.String) }), +).annotate({ + identifier: "HarnessAgentCoreCodeInterpreterConfig", +}) as any as S.Schema; export type HarnessToolConfiguration = | { remoteMcp: HarnessRemoteMcpConfig; @@ -6523,12 +6430,11 @@ export const HarnessAwsSkillPaths = /*@__PURE__*/ S.Array(S.String); export interface HarnessSkillAwsSkillsSource { paths?: string[]; } -export const HarnessSkillAwsSkillsSource = - /*@__PURE__*/ S.suspend(() => - S.Struct({ paths: S.optional(HarnessAwsSkillPaths) }), - ).annotate({ - identifier: "HarnessSkillAwsSkillsSource", - }) as any as S.Schema; +export const HarnessSkillAwsSkillsSource = /*@__PURE__*/ S.suspend(() => + S.Struct({ paths: S.optional(HarnessAwsSkillPaths) }), +).annotate({ + identifier: "HarnessSkillAwsSkillsSource", +}) as any as S.Schema; export type HarnessSkill = | { path: string; s3?: never; git?: never; awsSkills?: never } | { path?: never; s3: HarnessSkillS3Source; git?: never; awsSkills?: never } @@ -6554,24 +6460,23 @@ export interface HarnessAgentCoreMemoryRetrievalConfig { relevanceScore?: number; strategyId?: string; } -export const HarnessAgentCoreMemoryRetrievalConfig = - /*@__PURE__*/ S.suspend(() => +export const HarnessAgentCoreMemoryRetrievalConfig = /*@__PURE__*/ S.suspend( + () => S.Struct({ topK: S.optional(S.Number), relevanceScore: S.optional(S.Number), strategyId: S.optional(S.String), }), - ).annotate({ - identifier: "HarnessAgentCoreMemoryRetrievalConfig", - }) as any as S.Schema; +).annotate({ + identifier: "HarnessAgentCoreMemoryRetrievalConfig", +}) as any as S.Schema; export type HarnessAgentCoreMemoryRetrievalConfigs = { [key: string]: HarnessAgentCoreMemoryRetrievalConfig | undefined; }; -export const HarnessAgentCoreMemoryRetrievalConfigs = - /*@__PURE__*/ S.Record( - S.String, - HarnessAgentCoreMemoryRetrievalConfig.pipe(S.optional), - ); +export const HarnessAgentCoreMemoryRetrievalConfigs = /*@__PURE__*/ S.Record( + S.String, + HarnessAgentCoreMemoryRetrievalConfig.pipe(S.optional), +); export interface HarnessAgentCoreMemoryConfiguration { arn: string; actorId?: string; @@ -6580,17 +6485,16 @@ export interface HarnessAgentCoreMemoryConfiguration { [key: string]: HarnessAgentCoreMemoryRetrievalConfig | undefined; }; } -export const HarnessAgentCoreMemoryConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - arn: S.String, - actorId: S.optional(S.String), - messagesCount: S.optional(S.Number), - retrievalConfig: S.optional(HarnessAgentCoreMemoryRetrievalConfigs), - }), - ).annotate({ - identifier: "HarnessAgentCoreMemoryConfiguration", - }) as any as S.Schema; +export const HarnessAgentCoreMemoryConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + arn: S.String, + actorId: S.optional(S.String), + messagesCount: S.optional(S.Number), + retrievalConfig: S.optional(HarnessAgentCoreMemoryRetrievalConfigs), + }), +).annotate({ + identifier: "HarnessAgentCoreMemoryConfiguration", +}) as any as S.Schema; export type HarnessManagedMemoryStrategyType = | "SEMANTIC" | "SUMMARIZATION" @@ -6600,30 +6504,31 @@ export type HarnessManagedMemoryStrategyType = export const HarnessManagedMemoryStrategyType = /*@__PURE__*/ S.String; export type HarnessManagedMemoryStrategyList = HarnessManagedMemoryStrategyType[]; -export const HarnessManagedMemoryStrategyList = - /*@__PURE__*/ S.Array(HarnessManagedMemoryStrategyType); +export const HarnessManagedMemoryStrategyList = /*@__PURE__*/ S.Array( + HarnessManagedMemoryStrategyType, +); export interface HarnessManagedMemoryConfiguration { arn?: string; strategies?: HarnessManagedMemoryStrategyType[]; eventExpiryDuration?: number; encryptionKeyArn?: string; } -export const HarnessManagedMemoryConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - arn: S.optional(S.String), - strategies: S.optional(HarnessManagedMemoryStrategyList), - eventExpiryDuration: S.optional(S.Number), - encryptionKeyArn: S.optional(S.String), - }), - ).annotate({ - identifier: "HarnessManagedMemoryConfiguration", - }) as any as S.Schema; +export const HarnessManagedMemoryConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + arn: S.optional(S.String), + strategies: S.optional(HarnessManagedMemoryStrategyList), + eventExpiryDuration: S.optional(S.Number), + encryptionKeyArn: S.optional(S.String), + }), +).annotate({ + identifier: "HarnessManagedMemoryConfiguration", +}) as any as S.Schema; export interface HarnessDisabledMemoryConfiguration {} -export const HarnessDisabledMemoryConfiguration = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "HarnessDisabledMemoryConfiguration", - }) as any as S.Schema; +export const HarnessDisabledMemoryConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "HarnessDisabledMemoryConfiguration", +}) as any as S.Schema; export type HarnessMemoryConfiguration = | { agentCoreMemoryConfiguration: HarnessAgentCoreMemoryConfiguration; @@ -6656,48 +6561,44 @@ export const HarnessTruncationStrategy = /*@__PURE__*/ S.String; export interface HarnessSlidingWindowConfiguration { messagesCount?: number; } -export const HarnessSlidingWindowConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ messagesCount: S.optional(S.Number) }), - ).annotate({ - identifier: "HarnessSlidingWindowConfiguration", - }) as any as S.Schema; +export const HarnessSlidingWindowConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ messagesCount: S.optional(S.Number) }), +).annotate({ + identifier: "HarnessSlidingWindowConfiguration", +}) as any as S.Schema; export interface HarnessSummarizationConfiguration { summaryRatio?: number; preserveRecentMessages?: number; summarizationSystemPrompt?: string; } -export const HarnessSummarizationConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - summaryRatio: S.optional(S.Number), - preserveRecentMessages: S.optional(S.Number), - summarizationSystemPrompt: S.optional(S.String), - }), - ).annotate({ - identifier: "HarnessSummarizationConfiguration", - }) as any as S.Schema; +export const HarnessSummarizationConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + summaryRatio: S.optional(S.Number), + preserveRecentMessages: S.optional(S.Number), + summarizationSystemPrompt: S.optional(S.String), + }), +).annotate({ + identifier: "HarnessSummarizationConfiguration", +}) as any as S.Schema; export type HarnessTruncationStrategyConfiguration = | { slidingWindow: HarnessSlidingWindowConfiguration; summarization?: never } | { slidingWindow?: never; summarization: HarnessSummarizationConfiguration }; -export const HarnessTruncationStrategyConfiguration = - /*@__PURE__*/ S.Union([ - S.Struct({ slidingWindow: HarnessSlidingWindowConfiguration }), - S.Struct({ summarization: HarnessSummarizationConfiguration }), - ]); +export const HarnessTruncationStrategyConfiguration = /*@__PURE__*/ S.Union([ + S.Struct({ slidingWindow: HarnessSlidingWindowConfiguration }), + S.Struct({ summarization: HarnessSummarizationConfiguration }), +]); export interface HarnessTruncationConfiguration { strategy: HarnessTruncationStrategy; config?: HarnessTruncationStrategyConfiguration; } -export const HarnessTruncationConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - strategy: HarnessTruncationStrategy, - config: S.optional(HarnessTruncationStrategyConfiguration), - }), - ).annotate({ - identifier: "HarnessTruncationConfiguration", - }) as any as S.Schema; +export const HarnessTruncationConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + strategy: HarnessTruncationStrategy, + config: S.optional(HarnessTruncationStrategyConfiguration), + }), +).annotate({ + identifier: "HarnessTruncationConfiguration", +}) as any as S.Schema; export interface CreateHarnessRequest { harnessName: string; clientToken?: string; @@ -6769,19 +6670,18 @@ export interface HarnessAgentCoreRuntimeEnvironment { networkConfiguration: NetworkConfiguration; filesystemConfigurations?: FilesystemConfiguration[]; } -export const HarnessAgentCoreRuntimeEnvironment = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - agentRuntimeArn: S.String, - agentRuntimeName: S.String, - agentRuntimeId: S.String, - lifecycleConfiguration: LifecycleConfiguration, - networkConfiguration: NetworkConfiguration, - filesystemConfigurations: S.optional(FilesystemConfigurations), - }), - ).annotate({ - identifier: "HarnessAgentCoreRuntimeEnvironment", - }) as any as S.Schema; +export const HarnessAgentCoreRuntimeEnvironment = /*@__PURE__*/ S.suspend(() => + S.Struct({ + agentRuntimeArn: S.String, + agentRuntimeName: S.String, + agentRuntimeId: S.String, + lifecycleConfiguration: LifecycleConfiguration, + networkConfiguration: NetworkConfiguration, + filesystemConfigurations: S.optional(FilesystemConfigurations), + }), +).annotate({ + identifier: "HarnessAgentCoreRuntimeEnvironment", +}) as any as S.Schema; export type HarnessEnvironmentProvider = { agentCoreRuntimeEnvironment: HarnessAgentCoreRuntimeEnvironment; }; @@ -7020,42 +6920,38 @@ export interface ListHarnessVersionsResponse { harnessVersions: HarnessVersionSummary[]; nextToken?: string; } -export const ListHarnessVersionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - harnessVersions: HarnessVersionSummaries, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListHarnessVersionsResponse", - }) as any as S.Schema; +export const ListHarnessVersionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + harnessVersions: HarnessVersionSummaries, + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListHarnessVersionsResponse", +}) as any as S.Schema; export interface UpdatedHarnessEnvironmentArtifact { optionalValue?: HarnessEnvironmentArtifact; } -export const UpdatedHarnessEnvironmentArtifact = - /*@__PURE__*/ S.suspend(() => - S.Struct({ optionalValue: S.optional(HarnessEnvironmentArtifact) }), - ).annotate({ - identifier: "UpdatedHarnessEnvironmentArtifact", - }) as any as S.Schema; +export const UpdatedHarnessEnvironmentArtifact = /*@__PURE__*/ S.suspend(() => + S.Struct({ optionalValue: S.optional(HarnessEnvironmentArtifact) }), +).annotate({ + identifier: "UpdatedHarnessEnvironmentArtifact", +}) as any as S.Schema; export interface UpdatedAuthorizerConfiguration { optionalValue?: AuthorizerConfiguration; } -export const UpdatedAuthorizerConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ optionalValue: S.optional(AuthorizerConfiguration) }), - ).annotate({ - identifier: "UpdatedAuthorizerConfiguration", - }) as any as S.Schema; +export const UpdatedAuthorizerConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ optionalValue: S.optional(AuthorizerConfiguration) }), +).annotate({ + identifier: "UpdatedAuthorizerConfiguration", +}) as any as S.Schema; export interface UpdatedHarnessMemoryConfiguration { optionalValue?: HarnessMemoryConfiguration; } -export const UpdatedHarnessMemoryConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ optionalValue: S.optional(HarnessMemoryConfiguration) }), - ).annotate({ - identifier: "UpdatedHarnessMemoryConfiguration", - }) as any as S.Schema; +export const UpdatedHarnessMemoryConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ optionalValue: S.optional(HarnessMemoryConfiguration) }), +).annotate({ + identifier: "UpdatedHarnessMemoryConfiguration", +}) as any as S.Schema; export interface UpdateHarnessRequest { harnessId: string; clientToken?: string; @@ -7230,21 +7126,20 @@ export interface SemanticMemoryStrategyInput { name: string; description?: string | redacted.Redacted; namespaces?: string[]; - namespaceTemplates?: string[]; - memoryRecordSchema?: MemoryRecordSchema; -} -export const SemanticMemoryStrategyInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.String, - description: S.optional(SensitiveString), - namespaces: S.optional(NamespacesList), - namespaceTemplates: S.optional(NamespacesList), - memoryRecordSchema: S.optional(MemoryRecordSchema), - }), - ).annotate({ - identifier: "SemanticMemoryStrategyInput", - }) as any as S.Schema; + namespaceTemplates?: string[]; + memoryRecordSchema?: MemoryRecordSchema; +} +export const SemanticMemoryStrategyInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.String, + description: S.optional(SensitiveString), + namespaces: S.optional(NamespacesList), + namespaceTemplates: S.optional(NamespacesList), + memoryRecordSchema: S.optional(MemoryRecordSchema), + }), +).annotate({ + identifier: "SemanticMemoryStrategyInput", +}) as any as S.Schema; export interface SummaryMemoryStrategyInput { name: string; description?: string | redacted.Redacted; @@ -7270,18 +7165,17 @@ export interface UserPreferenceMemoryStrategyInput { namespaceTemplates?: string[]; memoryRecordSchema?: MemoryRecordSchema; } -export const UserPreferenceMemoryStrategyInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.String, - description: S.optional(SensitiveString), - namespaces: S.optional(NamespacesList), - namespaceTemplates: S.optional(NamespacesList), - memoryRecordSchema: S.optional(MemoryRecordSchema), - }), - ).annotate({ - identifier: "UserPreferenceMemoryStrategyInput", - }) as any as S.Schema; +export const UserPreferenceMemoryStrategyInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.String, + description: S.optional(SensitiveString), + namespaces: S.optional(NamespacesList), + namespaceTemplates: S.optional(NamespacesList), + memoryRecordSchema: S.optional(MemoryRecordSchema), + }), +).annotate({ + identifier: "UserPreferenceMemoryStrategyInput", +}) as any as S.Schema; export interface SemanticOverrideExtractionConfigurationInput { appendToPrompt: string | redacted.Redacted; modelId: string; @@ -7306,17 +7200,14 @@ export interface SemanticOverrideConfigurationInput { extraction?: SemanticOverrideExtractionConfigurationInput; consolidation?: SemanticOverrideConsolidationConfigurationInput; } -export const SemanticOverrideConfigurationInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - extraction: S.optional(SemanticOverrideExtractionConfigurationInput), - consolidation: S.optional( - SemanticOverrideConsolidationConfigurationInput, - ), - }), - ).annotate({ - identifier: "SemanticOverrideConfigurationInput", - }) as any as S.Schema; +export const SemanticOverrideConfigurationInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + extraction: S.optional(SemanticOverrideExtractionConfigurationInput), + consolidation: S.optional(SemanticOverrideConsolidationConfigurationInput), + }), +).annotate({ + identifier: "SemanticOverrideConfigurationInput", +}) as any as S.Schema; export interface SummaryOverrideConsolidationConfigurationInput { appendToPrompt: string | redacted.Redacted; modelId: string; @@ -7330,14 +7221,13 @@ export const SummaryOverrideConsolidationConfigurationInput = export interface SummaryOverrideConfigurationInput { consolidation?: SummaryOverrideConsolidationConfigurationInput; } -export const SummaryOverrideConfigurationInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - consolidation: S.optional(SummaryOverrideConsolidationConfigurationInput), - }), - ).annotate({ - identifier: "SummaryOverrideConfigurationInput", - }) as any as S.Schema; +export const SummaryOverrideConfigurationInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + consolidation: S.optional(SummaryOverrideConsolidationConfigurationInput), + }), +).annotate({ + identifier: "SummaryOverrideConfigurationInput", +}) as any as S.Schema; export interface UserPreferenceOverrideExtractionConfigurationInput { appendToPrompt: string | redacted.Redacted; modelId: string; @@ -7362,8 +7252,8 @@ export interface UserPreferenceOverrideConfigurationInput { extraction?: UserPreferenceOverrideExtractionConfigurationInput; consolidation?: UserPreferenceOverrideConsolidationConfigurationInput; } -export const UserPreferenceOverrideConfigurationInput = - /*@__PURE__*/ S.suspend(() => +export const UserPreferenceOverrideConfigurationInput = /*@__PURE__*/ S.suspend( + () => S.Struct({ extraction: S.optional( UserPreferenceOverrideExtractionConfigurationInput, @@ -7372,9 +7262,9 @@ export const UserPreferenceOverrideConfigurationInput = UserPreferenceOverrideConsolidationConfigurationInput, ), }), - ).annotate({ - identifier: "UserPreferenceOverrideConfigurationInput", - }) as any as S.Schema; +).annotate({ + identifier: "UserPreferenceOverrideConfigurationInput", +}) as any as S.Schema; export interface EpisodicOverrideExtractionConfigurationInput { appendToPrompt: string | redacted.Redacted; modelId: string; @@ -7419,18 +7309,15 @@ export interface EpisodicOverrideConfigurationInput { consolidation?: EpisodicOverrideConsolidationConfigurationInput; reflection?: EpisodicOverrideReflectionConfigurationInput; } -export const EpisodicOverrideConfigurationInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - extraction: S.optional(EpisodicOverrideExtractionConfigurationInput), - consolidation: S.optional( - EpisodicOverrideConsolidationConfigurationInput, - ), - reflection: S.optional(EpisodicOverrideReflectionConfigurationInput), - }), - ).annotate({ - identifier: "EpisodicOverrideConfigurationInput", - }) as any as S.Schema; +export const EpisodicOverrideConfigurationInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + extraction: S.optional(EpisodicOverrideExtractionConfigurationInput), + consolidation: S.optional(EpisodicOverrideConsolidationConfigurationInput), + reflection: S.optional(EpisodicOverrideReflectionConfigurationInput), + }), +).annotate({ + identifier: "EpisodicOverrideConfigurationInput", +}) as any as S.Schema; export interface MessageBasedTriggerInput { messageCount?: number; } @@ -7484,27 +7371,25 @@ export interface InvocationConfigurationInput { topicArn: string; payloadDeliveryBucketName: string; } -export const InvocationConfigurationInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ topicArn: S.String, payloadDeliveryBucketName: S.String }), - ).annotate({ - identifier: "InvocationConfigurationInput", - }) as any as S.Schema; +export const InvocationConfigurationInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ topicArn: S.String, payloadDeliveryBucketName: S.String }), +).annotate({ + identifier: "InvocationConfigurationInput", +}) as any as S.Schema; export interface SelfManagedConfigurationInput { triggerConditions?: TriggerConditionInput[]; invocationConfiguration: InvocationConfigurationInput; historicalContextWindowSize?: number; } -export const SelfManagedConfigurationInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - triggerConditions: S.optional(TriggerConditionInputList), - invocationConfiguration: InvocationConfigurationInput, - historicalContextWindowSize: S.optional(S.Number), - }), - ).annotate({ - identifier: "SelfManagedConfigurationInput", - }) as any as S.Schema; +export const SelfManagedConfigurationInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + triggerConditions: S.optional(TriggerConditionInputList), + invocationConfiguration: InvocationConfigurationInput, + historicalContextWindowSize: S.optional(S.Number), + }), +).annotate({ + identifier: "SelfManagedConfigurationInput", +}) as any as S.Schema; export type CustomConfigurationInput = | { semanticOverride: SemanticOverrideConfigurationInput; @@ -7575,16 +7460,16 @@ export interface EpisodicReflectionConfigurationInput { namespaceTemplates?: string[]; memoryRecordSchema?: MemoryRecordSchema; } -export const EpisodicReflectionConfigurationInput = - /*@__PURE__*/ S.suspend(() => +export const EpisodicReflectionConfigurationInput = /*@__PURE__*/ S.suspend( + () => S.Struct({ namespaces: S.optional(NamespacesList), namespaceTemplates: S.optional(NamespacesList), memoryRecordSchema: S.optional(MemoryRecordSchema), }), - ).annotate({ - identifier: "EpisodicReflectionConfigurationInput", - }) as any as S.Schema; +).annotate({ + identifier: "EpisodicReflectionConfigurationInput", +}) as any as S.Schema; export interface EpisodicMemoryStrategyInput { name: string; description?: string | redacted.Redacted; @@ -7593,19 +7478,18 @@ export interface EpisodicMemoryStrategyInput { reflectionConfiguration?: EpisodicReflectionConfigurationInput; memoryRecordSchema?: MemoryRecordSchema; } -export const EpisodicMemoryStrategyInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.String, - description: S.optional(SensitiveString), - namespaces: S.optional(NamespacesList), - namespaceTemplates: S.optional(NamespacesList), - reflectionConfiguration: S.optional(EpisodicReflectionConfigurationInput), - memoryRecordSchema: S.optional(MemoryRecordSchema), - }), - ).annotate({ - identifier: "EpisodicMemoryStrategyInput", - }) as any as S.Schema; +export const EpisodicMemoryStrategyInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.String, + description: S.optional(SensitiveString), + namespaces: S.optional(NamespacesList), + namespaceTemplates: S.optional(NamespacesList), + reflectionConfiguration: S.optional(EpisodicReflectionConfigurationInput), + memoryRecordSchema: S.optional(MemoryRecordSchema), + }), +).annotate({ + identifier: "EpisodicMemoryStrategyInput", +}) as any as S.Schema; export type MemoryStrategyInput = | { semanticMemoryStrategy: SemanticMemoryStrategyInput; @@ -7771,12 +7655,11 @@ export interface UserPreferenceExtractionOverride { appendToPrompt: string | redacted.Redacted; modelId: string; } -export const UserPreferenceExtractionOverride = - /*@__PURE__*/ S.suspend(() => - S.Struct({ appendToPrompt: SensitiveString, modelId: S.String }), - ).annotate({ - identifier: "UserPreferenceExtractionOverride", - }) as any as S.Schema; +export const UserPreferenceExtractionOverride = /*@__PURE__*/ S.suspend(() => + S.Struct({ appendToPrompt: SensitiveString, modelId: S.String }), +).annotate({ + identifier: "UserPreferenceExtractionOverride", +}) as any as S.Schema; export interface EpisodicExtractionOverride { appendToPrompt: string | redacted.Redacted; modelId: string; @@ -7802,14 +7685,13 @@ export type CustomExtractionConfiguration = userPreferenceExtractionOverride?: never; episodicExtractionOverride: EpisodicExtractionOverride; }; -export const CustomExtractionConfiguration = - /*@__PURE__*/ S.Union([ - S.Struct({ semanticExtractionOverride: SemanticExtractionOverride }), - S.Struct({ - userPreferenceExtractionOverride: UserPreferenceExtractionOverride, - }), - S.Struct({ episodicExtractionOverride: EpisodicExtractionOverride }), - ]); +export const CustomExtractionConfiguration = /*@__PURE__*/ S.Union([ + S.Struct({ semanticExtractionOverride: SemanticExtractionOverride }), + S.Struct({ + userPreferenceExtractionOverride: UserPreferenceExtractionOverride, + }), + S.Struct({ episodicExtractionOverride: EpisodicExtractionOverride }), +]); export type ExtractionConfiguration = { customExtractionConfiguration: CustomExtractionConfiguration; }; @@ -7820,42 +7702,38 @@ export interface SemanticConsolidationOverride { appendToPrompt: string | redacted.Redacted; modelId: string; } -export const SemanticConsolidationOverride = - /*@__PURE__*/ S.suspend(() => - S.Struct({ appendToPrompt: SensitiveString, modelId: S.String }), - ).annotate({ - identifier: "SemanticConsolidationOverride", - }) as any as S.Schema; +export const SemanticConsolidationOverride = /*@__PURE__*/ S.suspend(() => + S.Struct({ appendToPrompt: SensitiveString, modelId: S.String }), +).annotate({ + identifier: "SemanticConsolidationOverride", +}) as any as S.Schema; export interface SummaryConsolidationOverride { appendToPrompt: string | redacted.Redacted; modelId: string; } -export const SummaryConsolidationOverride = - /*@__PURE__*/ S.suspend(() => - S.Struct({ appendToPrompt: SensitiveString, modelId: S.String }), - ).annotate({ - identifier: "SummaryConsolidationOverride", - }) as any as S.Schema; +export const SummaryConsolidationOverride = /*@__PURE__*/ S.suspend(() => + S.Struct({ appendToPrompt: SensitiveString, modelId: S.String }), +).annotate({ + identifier: "SummaryConsolidationOverride", +}) as any as S.Schema; export interface UserPreferenceConsolidationOverride { appendToPrompt: string | redacted.Redacted; modelId: string; } -export const UserPreferenceConsolidationOverride = - /*@__PURE__*/ S.suspend(() => - S.Struct({ appendToPrompt: SensitiveString, modelId: S.String }), - ).annotate({ - identifier: "UserPreferenceConsolidationOverride", - }) as any as S.Schema; +export const UserPreferenceConsolidationOverride = /*@__PURE__*/ S.suspend(() => + S.Struct({ appendToPrompt: SensitiveString, modelId: S.String }), +).annotate({ + identifier: "UserPreferenceConsolidationOverride", +}) as any as S.Schema; export interface EpisodicConsolidationOverride { appendToPrompt: string | redacted.Redacted; modelId: string; } -export const EpisodicConsolidationOverride = - /*@__PURE__*/ S.suspend(() => - S.Struct({ appendToPrompt: SensitiveString, modelId: S.String }), - ).annotate({ - identifier: "EpisodicConsolidationOverride", - }) as any as S.Schema; +export const EpisodicConsolidationOverride = /*@__PURE__*/ S.suspend(() => + S.Struct({ appendToPrompt: SensitiveString, modelId: S.String }), +).annotate({ + identifier: "EpisodicConsolidationOverride", +}) as any as S.Schema; export type CustomConsolidationConfiguration = | { semanticConsolidationOverride: SemanticConsolidationOverride; @@ -7881,15 +7759,14 @@ export type CustomConsolidationConfiguration = userPreferenceConsolidationOverride?: never; episodicConsolidationOverride: EpisodicConsolidationOverride; }; -export const CustomConsolidationConfiguration = - /*@__PURE__*/ S.Union([ - S.Struct({ semanticConsolidationOverride: SemanticConsolidationOverride }), - S.Struct({ summaryConsolidationOverride: SummaryConsolidationOverride }), - S.Struct({ - userPreferenceConsolidationOverride: UserPreferenceConsolidationOverride, - }), - S.Struct({ episodicConsolidationOverride: EpisodicConsolidationOverride }), - ]); +export const CustomConsolidationConfiguration = /*@__PURE__*/ S.Union([ + S.Struct({ semanticConsolidationOverride: SemanticConsolidationOverride }), + S.Struct({ summaryConsolidationOverride: SummaryConsolidationOverride }), + S.Struct({ + userPreferenceConsolidationOverride: UserPreferenceConsolidationOverride, + }), + S.Struct({ episodicConsolidationOverride: EpisodicConsolidationOverride }), +]); export type ConsolidationConfiguration = { customConsolidationConfiguration: CustomConsolidationConfiguration; }; @@ -7919,25 +7796,23 @@ export const EpisodicReflectionOverride = /*@__PURE__*/ S.suspend(() => export type CustomReflectionConfiguration = { episodicReflectionOverride: EpisodicReflectionOverride; }; -export const CustomReflectionConfiguration = - /*@__PURE__*/ S.Union([ - S.Struct({ episodicReflectionOverride: EpisodicReflectionOverride }), - ]); +export const CustomReflectionConfiguration = /*@__PURE__*/ S.Union([ + S.Struct({ episodicReflectionOverride: EpisodicReflectionOverride }), +]); export interface EpisodicReflectionConfiguration { namespaces?: string[]; namespaceTemplates?: string[]; memoryRecordSchema?: MemoryRecordSchema; } -export const EpisodicReflectionConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - namespaces: S.optional(NamespacesList), - namespaceTemplates: S.optional(NamespacesList), - memoryRecordSchema: S.optional(MemoryRecordSchema), - }), - ).annotate({ - identifier: "EpisodicReflectionConfiguration", - }) as any as S.Schema; +export const EpisodicReflectionConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + namespaces: S.optional(NamespacesList), + namespaceTemplates: S.optional(NamespacesList), + memoryRecordSchema: S.optional(MemoryRecordSchema), + }), +).annotate({ + identifier: "EpisodicReflectionConfiguration", +}) as any as S.Schema; export type ReflectionConfiguration = | { customReflectionConfiguration: CustomReflectionConfiguration; @@ -8175,28 +8050,26 @@ export type CustomExtractionConfigurationInput = userPreferenceExtractionOverride?: never; episodicExtractionOverride: EpisodicOverrideExtractionConfigurationInput; }; -export const CustomExtractionConfigurationInput = - /*@__PURE__*/ S.Union([ - S.Struct({ - semanticExtractionOverride: SemanticOverrideExtractionConfigurationInput, - }), - S.Struct({ - userPreferenceExtractionOverride: - UserPreferenceOverrideExtractionConfigurationInput, - }), - S.Struct({ - episodicExtractionOverride: EpisodicOverrideExtractionConfigurationInput, - }), - ]); +export const CustomExtractionConfigurationInput = /*@__PURE__*/ S.Union([ + S.Struct({ + semanticExtractionOverride: SemanticOverrideExtractionConfigurationInput, + }), + S.Struct({ + userPreferenceExtractionOverride: + UserPreferenceOverrideExtractionConfigurationInput, + }), + S.Struct({ + episodicExtractionOverride: EpisodicOverrideExtractionConfigurationInput, + }), +]); export type ModifyExtractionConfiguration = { customExtractionConfiguration: CustomExtractionConfigurationInput; }; -export const ModifyExtractionConfiguration = - /*@__PURE__*/ S.Union([ - S.Struct({ - customExtractionConfiguration: CustomExtractionConfigurationInput, - }), - ]); +export const ModifyExtractionConfiguration = /*@__PURE__*/ S.Union([ + S.Struct({ + customExtractionConfiguration: CustomExtractionConfigurationInput, + }), +]); export type CustomConsolidationConfigurationInput = | { semanticConsolidationOverride: SemanticOverrideConsolidationConfigurationInput; @@ -8222,43 +8095,40 @@ export type CustomConsolidationConfigurationInput = userPreferenceConsolidationOverride?: never; episodicConsolidationOverride: EpisodicOverrideConsolidationConfigurationInput; }; -export const CustomConsolidationConfigurationInput = - /*@__PURE__*/ S.Union([ - S.Struct({ - semanticConsolidationOverride: - SemanticOverrideConsolidationConfigurationInput, - }), - S.Struct({ - summaryConsolidationOverride: - SummaryOverrideConsolidationConfigurationInput, - }), - S.Struct({ - userPreferenceConsolidationOverride: - UserPreferenceOverrideConsolidationConfigurationInput, - }), - S.Struct({ - episodicConsolidationOverride: - EpisodicOverrideConsolidationConfigurationInput, - }), - ]); +export const CustomConsolidationConfigurationInput = /*@__PURE__*/ S.Union([ + S.Struct({ + semanticConsolidationOverride: + SemanticOverrideConsolidationConfigurationInput, + }), + S.Struct({ + summaryConsolidationOverride: + SummaryOverrideConsolidationConfigurationInput, + }), + S.Struct({ + userPreferenceConsolidationOverride: + UserPreferenceOverrideConsolidationConfigurationInput, + }), + S.Struct({ + episodicConsolidationOverride: + EpisodicOverrideConsolidationConfigurationInput, + }), +]); export type ModifyConsolidationConfiguration = { customConsolidationConfiguration: CustomConsolidationConfigurationInput; }; -export const ModifyConsolidationConfiguration = - /*@__PURE__*/ S.Union([ - S.Struct({ - customConsolidationConfiguration: CustomConsolidationConfigurationInput, - }), - ]); +export const ModifyConsolidationConfiguration = /*@__PURE__*/ S.Union([ + S.Struct({ + customConsolidationConfiguration: CustomConsolidationConfigurationInput, + }), +]); export type CustomReflectionConfigurationInput = { episodicReflectionOverride: EpisodicOverrideReflectionConfigurationInput; }; -export const CustomReflectionConfigurationInput = - /*@__PURE__*/ S.Union([ - S.Struct({ - episodicReflectionOverride: EpisodicOverrideReflectionConfigurationInput, - }), - ]); +export const CustomReflectionConfigurationInput = /*@__PURE__*/ S.Union([ + S.Struct({ + episodicReflectionOverride: EpisodicOverrideReflectionConfigurationInput, + }), +]); export type ModifyReflectionConfiguration = | { episodicReflectionConfiguration: EpisodicReflectionConfigurationInput; @@ -8268,60 +8138,56 @@ export type ModifyReflectionConfiguration = episodicReflectionConfiguration?: never; customReflectionConfiguration: CustomReflectionConfigurationInput; }; -export const ModifyReflectionConfiguration = - /*@__PURE__*/ S.Union([ - S.Struct({ - episodicReflectionConfiguration: EpisodicReflectionConfigurationInput, - }), - S.Struct({ - customReflectionConfiguration: CustomReflectionConfigurationInput, - }), - ]); +export const ModifyReflectionConfiguration = /*@__PURE__*/ S.Union([ + S.Struct({ + episodicReflectionConfiguration: EpisodicReflectionConfigurationInput, + }), + S.Struct({ + customReflectionConfiguration: CustomReflectionConfigurationInput, + }), +]); export interface ModifyInvocationConfigurationInput { topicArn?: string; payloadDeliveryBucketName?: string; } -export const ModifyInvocationConfigurationInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - topicArn: S.optional(S.String), - payloadDeliveryBucketName: S.optional(S.String), - }), - ).annotate({ - identifier: "ModifyInvocationConfigurationInput", - }) as any as S.Schema; +export const ModifyInvocationConfigurationInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + topicArn: S.optional(S.String), + payloadDeliveryBucketName: S.optional(S.String), + }), +).annotate({ + identifier: "ModifyInvocationConfigurationInput", +}) as any as S.Schema; export interface ModifySelfManagedConfiguration { triggerConditions?: TriggerConditionInput[]; invocationConfiguration?: ModifyInvocationConfigurationInput; historicalContextWindowSize?: number; } -export const ModifySelfManagedConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - triggerConditions: S.optional(TriggerConditionInputList), - invocationConfiguration: S.optional(ModifyInvocationConfigurationInput), - historicalContextWindowSize: S.optional(S.Number), - }), - ).annotate({ - identifier: "ModifySelfManagedConfiguration", - }) as any as S.Schema; +export const ModifySelfManagedConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + triggerConditions: S.optional(TriggerConditionInputList), + invocationConfiguration: S.optional(ModifyInvocationConfigurationInput), + historicalContextWindowSize: S.optional(S.Number), + }), +).annotate({ + identifier: "ModifySelfManagedConfiguration", +}) as any as S.Schema; export interface ModifyStrategyConfiguration { extraction?: ModifyExtractionConfiguration; consolidation?: ModifyConsolidationConfiguration; reflection?: ModifyReflectionConfiguration; selfManagedConfiguration?: ModifySelfManagedConfiguration; } -export const ModifyStrategyConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - extraction: S.optional(ModifyExtractionConfiguration), - consolidation: S.optional(ModifyConsolidationConfiguration), - reflection: S.optional(ModifyReflectionConfiguration), - selfManagedConfiguration: S.optional(ModifySelfManagedConfiguration), - }), - ).annotate({ - identifier: "ModifyStrategyConfiguration", - }) as any as S.Schema; +export const ModifyStrategyConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + extraction: S.optional(ModifyExtractionConfiguration), + consolidation: S.optional(ModifyConsolidationConfiguration), + reflection: S.optional(ModifyReflectionConfiguration), + selfManagedConfiguration: S.optional(ModifySelfManagedConfiguration), + }), +).annotate({ + identifier: "ModifyStrategyConfiguration", +}) as any as S.Schema; export interface ModifyMemoryStrategyInput { memoryStrategyId: string; description?: string | redacted.Redacted; @@ -8535,18 +8401,17 @@ export interface Oauth2AuthorizationServerMetadata { responseTypes?: string[]; tokenEndpointAuthMethods?: string[]; } -export const Oauth2AuthorizationServerMetadata = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - issuer: S.String, - authorizationEndpoint: S.String, - tokenEndpoint: S.String, - responseTypes: S.optional(ResponseListType), - tokenEndpointAuthMethods: S.optional(TokenEndpointAuthMethodsType), - }), - ).annotate({ - identifier: "Oauth2AuthorizationServerMetadata", - }) as any as S.Schema; +export const Oauth2AuthorizationServerMetadata = /*@__PURE__*/ S.suspend(() => + S.Struct({ + issuer: S.String, + authorizationEndpoint: S.String, + tokenEndpoint: S.String, + responseTypes: S.optional(ResponseListType), + tokenEndpointAuthMethods: S.optional(TokenEndpointAuthMethodsType), + }), +).annotate({ + identifier: "Oauth2AuthorizationServerMetadata", +}) as any as S.Schema; export type Oauth2Discovery = | { discoveryUrl: string; authorizationServerMetadata?: never } | { @@ -8574,30 +8439,26 @@ export interface TokenExchangeGrantTypeConfigType { actorTokenContent: ActorTokenContentType; actorTokenScopes?: string[]; } -export const TokenExchangeGrantTypeConfigType = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - actorTokenContent: ActorTokenContentType, - actorTokenScopes: S.optional(ScopesListType), - }), - ).annotate({ - identifier: "TokenExchangeGrantTypeConfigType", - }) as any as S.Schema; +export const TokenExchangeGrantTypeConfigType = /*@__PURE__*/ S.suspend(() => + S.Struct({ + actorTokenContent: ActorTokenContentType, + actorTokenScopes: S.optional(ScopesListType), + }), +).annotate({ + identifier: "TokenExchangeGrantTypeConfigType", +}) as any as S.Schema; export interface OnBehalfOfTokenExchangeConfigType { grantType: OnBehalfOfTokenExchangeGrantTypeType; tokenExchangeGrantTypeConfig?: TokenExchangeGrantTypeConfigType; } -export const OnBehalfOfTokenExchangeConfigType = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - grantType: OnBehalfOfTokenExchangeGrantTypeType, - tokenExchangeGrantTypeConfig: S.optional( - TokenExchangeGrantTypeConfigType, - ), - }), - ).annotate({ - identifier: "OnBehalfOfTokenExchangeConfigType", - }) as any as S.Schema; +export const OnBehalfOfTokenExchangeConfigType = /*@__PURE__*/ S.suspend(() => + S.Struct({ + grantType: OnBehalfOfTokenExchangeGrantTypeType, + tokenExchangeGrantTypeConfig: S.optional(TokenExchangeGrantTypeConfigType), + }), +).annotate({ + identifier: "OnBehalfOfTokenExchangeConfigType", +}) as any as S.Schema; export type ClientAuthenticationMethodType = | "CLIENT_SECRET_BASIC" | "CLIENT_SECRET_POST" @@ -8615,92 +8476,87 @@ export interface CustomOauth2ProviderConfigInput { privateEndpoint?: PrivateEndpoint; privateEndpointOverrides?: PrivateEndpointOverride[]; } -export const CustomOauth2ProviderConfigInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - oauthDiscovery: Oauth2Discovery, - clientId: S.optional(S.String), - clientSecret: S.optional(SensitiveString), - clientSecretConfig: S.optional(SecretReference), - clientSecretSource: S.optional(SecretSourceType), - onBehalfOfTokenExchangeConfig: S.optional( - OnBehalfOfTokenExchangeConfigType, - ), - clientAuthenticationMethod: S.optional(ClientAuthenticationMethodType), - privateEndpoint: S.optional(PrivateEndpoint), - privateEndpointOverrides: S.optional(PrivateEndpointOverrides), - }), - ).annotate({ - identifier: "CustomOauth2ProviderConfigInput", - }) as any as S.Schema; +export const CustomOauth2ProviderConfigInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + oauthDiscovery: Oauth2Discovery, + clientId: S.optional(S.String), + clientSecret: S.optional(SensitiveString), + clientSecretConfig: S.optional(SecretReference), + clientSecretSource: S.optional(SecretSourceType), + onBehalfOfTokenExchangeConfig: S.optional( + OnBehalfOfTokenExchangeConfigType, + ), + clientAuthenticationMethod: S.optional(ClientAuthenticationMethodType), + privateEndpoint: S.optional(PrivateEndpoint), + privateEndpointOverrides: S.optional(PrivateEndpointOverrides), + }), +).annotate({ + identifier: "CustomOauth2ProviderConfigInput", +}) as any as S.Schema; export interface GoogleOauth2ProviderConfigInput { clientId: string; clientSecret?: string | redacted.Redacted; - clientSecretConfig?: SecretReference; - clientSecretSource?: SecretSourceType; -} -export const GoogleOauth2ProviderConfigInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - clientId: S.String, - clientSecret: S.optional(SensitiveString), - clientSecretConfig: S.optional(SecretReference), - clientSecretSource: S.optional(SecretSourceType), - }), - ).annotate({ - identifier: "GoogleOauth2ProviderConfigInput", - }) as any as S.Schema; + clientSecretConfig?: SecretReference; + clientSecretSource?: SecretSourceType; +} +export const GoogleOauth2ProviderConfigInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + clientId: S.String, + clientSecret: S.optional(SensitiveString), + clientSecretConfig: S.optional(SecretReference), + clientSecretSource: S.optional(SecretSourceType), + }), +).annotate({ + identifier: "GoogleOauth2ProviderConfigInput", +}) as any as S.Schema; export interface GithubOauth2ProviderConfigInput { clientId: string; clientSecret?: string | redacted.Redacted; clientSecretConfig?: SecretReference; clientSecretSource?: SecretSourceType; } -export const GithubOauth2ProviderConfigInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - clientId: S.String, - clientSecret: S.optional(SensitiveString), - clientSecretConfig: S.optional(SecretReference), - clientSecretSource: S.optional(SecretSourceType), - }), - ).annotate({ - identifier: "GithubOauth2ProviderConfigInput", - }) as any as S.Schema; +export const GithubOauth2ProviderConfigInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + clientId: S.String, + clientSecret: S.optional(SensitiveString), + clientSecretConfig: S.optional(SecretReference), + clientSecretSource: S.optional(SecretSourceType), + }), +).annotate({ + identifier: "GithubOauth2ProviderConfigInput", +}) as any as S.Schema; export interface SlackOauth2ProviderConfigInput { clientId: string; clientSecret?: string | redacted.Redacted; clientSecretConfig?: SecretReference; clientSecretSource?: SecretSourceType; } -export const SlackOauth2ProviderConfigInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - clientId: S.String, - clientSecret: S.optional(SensitiveString), - clientSecretConfig: S.optional(SecretReference), - clientSecretSource: S.optional(SecretSourceType), - }), - ).annotate({ - identifier: "SlackOauth2ProviderConfigInput", - }) as any as S.Schema; +export const SlackOauth2ProviderConfigInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + clientId: S.String, + clientSecret: S.optional(SensitiveString), + clientSecretConfig: S.optional(SecretReference), + clientSecretSource: S.optional(SecretSourceType), + }), +).annotate({ + identifier: "SlackOauth2ProviderConfigInput", +}) as any as S.Schema; export interface SalesforceOauth2ProviderConfigInput { clientId: string; clientSecret?: string | redacted.Redacted; clientSecretConfig?: SecretReference; clientSecretSource?: SecretSourceType; } -export const SalesforceOauth2ProviderConfigInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - clientId: S.String, - clientSecret: S.optional(SensitiveString), - clientSecretConfig: S.optional(SecretReference), - clientSecretSource: S.optional(SecretSourceType), - }), - ).annotate({ - identifier: "SalesforceOauth2ProviderConfigInput", - }) as any as S.Schema; +export const SalesforceOauth2ProviderConfigInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + clientId: S.String, + clientSecret: S.optional(SensitiveString), + clientSecretConfig: S.optional(SecretReference), + clientSecretSource: S.optional(SecretSourceType), + }), +).annotate({ + identifier: "SalesforceOauth2ProviderConfigInput", +}) as any as S.Schema; export interface MicrosoftOauth2ProviderConfigInput { clientId: string; clientSecret?: string | redacted.Redacted; @@ -8708,52 +8564,49 @@ export interface MicrosoftOauth2ProviderConfigInput { clientSecretSource?: SecretSourceType; tenantId?: string; } -export const MicrosoftOauth2ProviderConfigInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - clientId: S.String, - clientSecret: S.optional(SensitiveString), - clientSecretConfig: S.optional(SecretReference), - clientSecretSource: S.optional(SecretSourceType), - tenantId: S.optional(S.String), - }), - ).annotate({ - identifier: "MicrosoftOauth2ProviderConfigInput", - }) as any as S.Schema; +export const MicrosoftOauth2ProviderConfigInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + clientId: S.String, + clientSecret: S.optional(SensitiveString), + clientSecretConfig: S.optional(SecretReference), + clientSecretSource: S.optional(SecretSourceType), + tenantId: S.optional(S.String), + }), +).annotate({ + identifier: "MicrosoftOauth2ProviderConfigInput", +}) as any as S.Schema; export interface AtlassianOauth2ProviderConfigInput { clientId: string; clientSecret?: string | redacted.Redacted; clientSecretConfig?: SecretReference; clientSecretSource?: SecretSourceType; } -export const AtlassianOauth2ProviderConfigInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - clientId: S.String, - clientSecret: S.optional(SensitiveString), - clientSecretConfig: S.optional(SecretReference), - clientSecretSource: S.optional(SecretSourceType), - }), - ).annotate({ - identifier: "AtlassianOauth2ProviderConfigInput", - }) as any as S.Schema; +export const AtlassianOauth2ProviderConfigInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + clientId: S.String, + clientSecret: S.optional(SensitiveString), + clientSecretConfig: S.optional(SecretReference), + clientSecretSource: S.optional(SecretSourceType), + }), +).annotate({ + identifier: "AtlassianOauth2ProviderConfigInput", +}) as any as S.Schema; export interface LinkedinOauth2ProviderConfigInput { clientId: string; clientSecret?: string | redacted.Redacted; clientSecretConfig?: SecretReference; clientSecretSource?: SecretSourceType; } -export const LinkedinOauth2ProviderConfigInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - clientId: S.String, - clientSecret: S.optional(SensitiveString), - clientSecretConfig: S.optional(SecretReference), - clientSecretSource: S.optional(SecretSourceType), - }), - ).annotate({ - identifier: "LinkedinOauth2ProviderConfigInput", - }) as any as S.Schema; +export const LinkedinOauth2ProviderConfigInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + clientId: S.String, + clientSecret: S.optional(SensitiveString), + clientSecretConfig: S.optional(SecretReference), + clientSecretSource: S.optional(SecretSourceType), + }), +).annotate({ + identifier: "LinkedinOauth2ProviderConfigInput", +}) as any as S.Schema; export interface IncludedOauth2ProviderConfigInput { clientId: string; clientSecret?: string | redacted.Redacted; @@ -8763,20 +8616,19 @@ export interface IncludedOauth2ProviderConfigInput { authorizationEndpoint?: string; tokenEndpoint?: string; } -export const IncludedOauth2ProviderConfigInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - clientId: S.String, - clientSecret: S.optional(SensitiveString), - clientSecretConfig: S.optional(SecretReference), - clientSecretSource: S.optional(SecretSourceType), - issuer: S.optional(S.String), - authorizationEndpoint: S.optional(S.String), - tokenEndpoint: S.optional(S.String), - }), - ).annotate({ - identifier: "IncludedOauth2ProviderConfigInput", - }) as any as S.Schema; +export const IncludedOauth2ProviderConfigInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + clientId: S.String, + clientSecret: S.optional(SensitiveString), + clientSecretConfig: S.optional(SecretReference), + clientSecretSource: S.optional(SecretSourceType), + issuer: S.optional(S.String), + authorizationEndpoint: S.optional(S.String), + tokenEndpoint: S.optional(S.String), + }), +).annotate({ + identifier: "IncludedOauth2ProviderConfigInput", +}) as any as S.Schema; export type Oauth2ProviderConfigInput = | { customOauth2ProviderConfig: CustomOauth2ProviderConfigInput; @@ -8900,8 +8752,8 @@ export interface CreateOauth2CredentialProviderRequest { oauth2ProviderConfigInput: Oauth2ProviderConfigInput; tags?: { [key: string]: string | undefined }; } -export const CreateOauth2CredentialProviderRequest = - /*@__PURE__*/ S.suspend(() => +export const CreateOauth2CredentialProviderRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ name: S.String, credentialProviderVendor: CredentialProviderVendorType, @@ -8920,9 +8772,9 @@ export const CreateOauth2CredentialProviderRequest = rules, ), ), - ).annotate({ - identifier: "CreateOauth2CredentialProviderRequest", - }) as any as S.Schema; +).annotate({ + identifier: "CreateOauth2CredentialProviderRequest", +}) as any as S.Schema; export interface CustomOauth2ProviderConfigOutput { oauthDiscovery: Oauth2Discovery; clientId?: string; @@ -8931,125 +8783,96 @@ export interface CustomOauth2ProviderConfigOutput { onBehalfOfTokenExchangeConfig?: OnBehalfOfTokenExchangeConfigType; clientAuthenticationMethod?: ClientAuthenticationMethodType; } -export const CustomOauth2ProviderConfigOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - oauthDiscovery: Oauth2Discovery, - clientId: S.optional(S.String), - privateEndpoint: S.optional(PrivateEndpoint), - privateEndpointOverrides: S.optional(PrivateEndpointOverrides), - onBehalfOfTokenExchangeConfig: S.optional( - OnBehalfOfTokenExchangeConfigType, - ), - clientAuthenticationMethod: S.optional(ClientAuthenticationMethodType), - }), - ).annotate({ - identifier: "CustomOauth2ProviderConfigOutput", - }) as any as S.Schema; +export const CustomOauth2ProviderConfigOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + oauthDiscovery: Oauth2Discovery, + clientId: S.optional(S.String), + privateEndpoint: S.optional(PrivateEndpoint), + privateEndpointOverrides: S.optional(PrivateEndpointOverrides), + onBehalfOfTokenExchangeConfig: S.optional( + OnBehalfOfTokenExchangeConfigType, + ), + clientAuthenticationMethod: S.optional(ClientAuthenticationMethodType), + }), +).annotate({ + identifier: "CustomOauth2ProviderConfigOutput", +}) as any as S.Schema; export interface GoogleOauth2ProviderConfigOutput { oauthDiscovery: Oauth2Discovery; clientId?: string; } -export const GoogleOauth2ProviderConfigOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - oauthDiscovery: Oauth2Discovery, - clientId: S.optional(S.String), - }), - ).annotate({ - identifier: "GoogleOauth2ProviderConfigOutput", - }) as any as S.Schema; +export const GoogleOauth2ProviderConfigOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ oauthDiscovery: Oauth2Discovery, clientId: S.optional(S.String) }), +).annotate({ + identifier: "GoogleOauth2ProviderConfigOutput", +}) as any as S.Schema; export interface GithubOauth2ProviderConfigOutput { oauthDiscovery: Oauth2Discovery; clientId?: string; } -export const GithubOauth2ProviderConfigOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - oauthDiscovery: Oauth2Discovery, - clientId: S.optional(S.String), - }), - ).annotate({ - identifier: "GithubOauth2ProviderConfigOutput", - }) as any as S.Schema; +export const GithubOauth2ProviderConfigOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ oauthDiscovery: Oauth2Discovery, clientId: S.optional(S.String) }), +).annotate({ + identifier: "GithubOauth2ProviderConfigOutput", +}) as any as S.Schema; export interface SlackOauth2ProviderConfigOutput { oauthDiscovery: Oauth2Discovery; clientId?: string; } -export const SlackOauth2ProviderConfigOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - oauthDiscovery: Oauth2Discovery, - clientId: S.optional(S.String), - }), - ).annotate({ - identifier: "SlackOauth2ProviderConfigOutput", - }) as any as S.Schema; +export const SlackOauth2ProviderConfigOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ oauthDiscovery: Oauth2Discovery, clientId: S.optional(S.String) }), +).annotate({ + identifier: "SlackOauth2ProviderConfigOutput", +}) as any as S.Schema; export interface SalesforceOauth2ProviderConfigOutput { oauthDiscovery: Oauth2Discovery; clientId?: string; } -export const SalesforceOauth2ProviderConfigOutput = - /*@__PURE__*/ S.suspend(() => +export const SalesforceOauth2ProviderConfigOutput = /*@__PURE__*/ S.suspend( + () => S.Struct({ oauthDiscovery: Oauth2Discovery, clientId: S.optional(S.String), }), - ).annotate({ - identifier: "SalesforceOauth2ProviderConfigOutput", - }) as any as S.Schema; +).annotate({ + identifier: "SalesforceOauth2ProviderConfigOutput", +}) as any as S.Schema; export interface MicrosoftOauth2ProviderConfigOutput { oauthDiscovery: Oauth2Discovery; clientId?: string; } -export const MicrosoftOauth2ProviderConfigOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - oauthDiscovery: Oauth2Discovery, - clientId: S.optional(S.String), - }), - ).annotate({ - identifier: "MicrosoftOauth2ProviderConfigOutput", - }) as any as S.Schema; +export const MicrosoftOauth2ProviderConfigOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ oauthDiscovery: Oauth2Discovery, clientId: S.optional(S.String) }), +).annotate({ + identifier: "MicrosoftOauth2ProviderConfigOutput", +}) as any as S.Schema; export interface AtlassianOauth2ProviderConfigOutput { oauthDiscovery: Oauth2Discovery; clientId?: string; } -export const AtlassianOauth2ProviderConfigOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - oauthDiscovery: Oauth2Discovery, - clientId: S.optional(S.String), - }), - ).annotate({ - identifier: "AtlassianOauth2ProviderConfigOutput", - }) as any as S.Schema; +export const AtlassianOauth2ProviderConfigOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ oauthDiscovery: Oauth2Discovery, clientId: S.optional(S.String) }), +).annotate({ + identifier: "AtlassianOauth2ProviderConfigOutput", +}) as any as S.Schema; export interface LinkedinOauth2ProviderConfigOutput { oauthDiscovery: Oauth2Discovery; clientId?: string; } -export const LinkedinOauth2ProviderConfigOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - oauthDiscovery: Oauth2Discovery, - clientId: S.optional(S.String), - }), - ).annotate({ - identifier: "LinkedinOauth2ProviderConfigOutput", - }) as any as S.Schema; +export const LinkedinOauth2ProviderConfigOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ oauthDiscovery: Oauth2Discovery, clientId: S.optional(S.String) }), +).annotate({ + identifier: "LinkedinOauth2ProviderConfigOutput", +}) as any as S.Schema; export interface IncludedOauth2ProviderConfigOutput { oauthDiscovery: Oauth2Discovery; clientId?: string; } -export const IncludedOauth2ProviderConfigOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - oauthDiscovery: Oauth2Discovery, - clientId: S.optional(S.String), - }), - ).annotate({ - identifier: "IncludedOauth2ProviderConfigOutput", - }) as any as S.Schema; +export const IncludedOauth2ProviderConfigOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ oauthDiscovery: Oauth2Discovery, clientId: S.optional(S.String) }), +).annotate({ + identifier: "IncludedOauth2ProviderConfigOutput", +}) as any as S.Schema; export type Oauth2ProviderConfigOutput = | { customOauth2ProviderConfig: CustomOauth2ProviderConfigOutput; @@ -9191,8 +9014,8 @@ export interface CreateOauth2CredentialProviderResponse { oauth2ProviderConfigOutput?: Oauth2ProviderConfigOutput; status?: Status; } -export const CreateOauth2CredentialProviderResponse = - /*@__PURE__*/ S.suspend(() => +export const CreateOauth2CredentialProviderResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ clientSecretArn: Secret, clientSecretJsonKey: S.optional(S.String), @@ -9203,30 +9026,29 @@ export const CreateOauth2CredentialProviderResponse = oauth2ProviderConfigOutput: S.optional(Oauth2ProviderConfigOutput), status: S.optional(Status), }), - ).annotate({ - identifier: "CreateOauth2CredentialProviderResponse", - }) as any as S.Schema; +).annotate({ + identifier: "CreateOauth2CredentialProviderResponse", +}) as any as S.Schema; export interface GetOauth2CredentialProviderRequest { name: string; } -export const GetOauth2CredentialProviderRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ name: S.String }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/identities/GetOauth2CredentialProvider", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetOauth2CredentialProviderRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ name: S.String }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/identities/GetOauth2CredentialProvider", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetOauth2CredentialProviderRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetOauth2CredentialProviderRequest", +}) as any as S.Schema; export interface GetOauth2CredentialProviderResponse { clientSecretArn: Secret; clientSecretJsonKey?: string; @@ -9241,32 +9063,31 @@ export interface GetOauth2CredentialProviderResponse { status?: Status; failureReason?: string; } -export const GetOauth2CredentialProviderResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - clientSecretArn: Secret, - clientSecretJsonKey: S.optional(S.String), - clientSecretSource: S.optional(SecretSourceType), - name: S.String, - credentialProviderArn: S.String, - credentialProviderVendor: CredentialProviderVendorType, - callbackUrl: S.optional(S.String), - oauth2ProviderConfigOutput: Oauth2ProviderConfigOutput, - createdTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - lastUpdatedTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - status: S.optional(Status), - failureReason: S.optional(S.String), - }), - ).annotate({ - identifier: "GetOauth2CredentialProviderResponse", - }) as any as S.Schema; +export const GetOauth2CredentialProviderResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + clientSecretArn: Secret, + clientSecretJsonKey: S.optional(S.String), + clientSecretSource: S.optional(SecretSourceType), + name: S.String, + credentialProviderArn: S.String, + credentialProviderVendor: CredentialProviderVendorType, + callbackUrl: S.optional(S.String), + oauth2ProviderConfigOutput: Oauth2ProviderConfigOutput, + createdTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + lastUpdatedTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + status: S.optional(Status), + failureReason: S.optional(S.String), + }), +).annotate({ + identifier: "GetOauth2CredentialProviderResponse", +}) as any as S.Schema; export interface UpdateOauth2CredentialProviderRequest { name: string; credentialProviderVendor: CredentialProviderVendorType; oauth2ProviderConfigInput: Oauth2ProviderConfigInput; } -export const UpdateOauth2CredentialProviderRequest = - /*@__PURE__*/ S.suspend(() => +export const UpdateOauth2CredentialProviderRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ name: S.String, credentialProviderVendor: CredentialProviderVendorType, @@ -9284,9 +9105,9 @@ export const UpdateOauth2CredentialProviderRequest = rules, ), ), - ).annotate({ - identifier: "UpdateOauth2CredentialProviderRequest", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateOauth2CredentialProviderRequest", +}) as any as S.Schema; export interface UpdateOauth2CredentialProviderResponse { clientSecretArn: Secret; clientSecretJsonKey?: string; @@ -9300,8 +9121,8 @@ export interface UpdateOauth2CredentialProviderResponse { lastUpdatedTime: Date; status?: Status; } -export const UpdateOauth2CredentialProviderResponse = - /*@__PURE__*/ S.suspend(() => +export const UpdateOauth2CredentialProviderResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ clientSecretArn: Secret, clientSecretJsonKey: S.optional(S.String), @@ -9315,14 +9136,14 @@ export const UpdateOauth2CredentialProviderResponse = lastUpdatedTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), status: S.optional(Status), }), - ).annotate({ - identifier: "UpdateOauth2CredentialProviderResponse", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateOauth2CredentialProviderResponse", +}) as any as S.Schema; export interface DeleteOauth2CredentialProviderRequest { name: string; } -export const DeleteOauth2CredentialProviderRequest = - /*@__PURE__*/ S.suspend(() => +export const DeleteOauth2CredentialProviderRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ name: S.String }).pipe( T.all( T.Http({ @@ -9336,20 +9157,21 @@ export const DeleteOauth2CredentialProviderRequest = rules, ), ), - ).annotate({ - identifier: "DeleteOauth2CredentialProviderRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteOauth2CredentialProviderRequest", +}) as any as S.Schema; export interface DeleteOauth2CredentialProviderResponse {} -export const DeleteOauth2CredentialProviderResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteOauth2CredentialProviderResponse", - }) as any as S.Schema; +export const DeleteOauth2CredentialProviderResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}), +).annotate({ + identifier: "DeleteOauth2CredentialProviderResponse", +}) as any as S.Schema; export interface ListOauth2CredentialProvidersRequest { nextToken?: string; maxResults?: number; } -export const ListOauth2CredentialProvidersRequest = - /*@__PURE__*/ S.suspend(() => +export const ListOauth2CredentialProvidersRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ nextToken: S.optional(S.String), maxResults: S.optional(S.Number), @@ -9366,9 +9188,9 @@ export const ListOauth2CredentialProvidersRequest = rules, ), ), - ).annotate({ - identifier: "ListOauth2CredentialProvidersRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListOauth2CredentialProvidersRequest", +}) as any as S.Schema; export interface Oauth2CredentialProviderItem { name: string; credentialProviderVendor: CredentialProviderVendorType; @@ -9376,18 +9198,17 @@ export interface Oauth2CredentialProviderItem { createdTime: Date; lastUpdatedTime: Date; } -export const Oauth2CredentialProviderItem = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.String, - credentialProviderVendor: CredentialProviderVendorType, - credentialProviderArn: S.String, - createdTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - lastUpdatedTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - }), - ).annotate({ - identifier: "Oauth2CredentialProviderItem", - }) as any as S.Schema; +export const Oauth2CredentialProviderItem = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.String, + credentialProviderVendor: CredentialProviderVendorType, + credentialProviderArn: S.String, + createdTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + lastUpdatedTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + }), +).annotate({ + identifier: "Oauth2CredentialProviderItem", +}) as any as S.Schema; export type Oauth2CredentialProviders = Oauth2CredentialProviderItem[]; export const Oauth2CredentialProviders = /*@__PURE__*/ S.Array( Oauth2CredentialProviderItem, @@ -9396,15 +9217,15 @@ export interface ListOauth2CredentialProvidersResponse { credentialProviders: Oauth2CredentialProviderItem[]; nextToken?: string; } -export const ListOauth2CredentialProvidersResponse = - /*@__PURE__*/ S.suspend(() => +export const ListOauth2CredentialProvidersResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ credentialProviders: Oauth2CredentialProviders, nextToken: S.optional(S.String), }), - ).annotate({ - identifier: "ListOauth2CredentialProvidersResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListOauth2CredentialProvidersResponse", +}) as any as S.Schema; export interface SamplingConfig { samplingPercentage: number; } @@ -9523,33 +9344,32 @@ export interface CreateOnlineEvaluationConfigRequest { enableOnCreate: boolean; tags?: { [key: string]: string | undefined }; } -export const CreateOnlineEvaluationConfigRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - onlineEvaluationConfigName: S.String, - description: S.optional(SensitiveString), - rule: Rule, - dataSourceConfig: DataSourceConfig, - evaluators: S.optional(EvaluatorList), - insights: S.optional(InsightList), - clusteringConfig: S.optional(ClusteringConfig), - evaluationExecutionRoleArn: S.String, - enableOnCreate: S.Boolean, - tags: S.optional(TagsMap), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/online-evaluation-configs/create" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateOnlineEvaluationConfigRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + onlineEvaluationConfigName: S.String, + description: S.optional(SensitiveString), + rule: Rule, + dataSourceConfig: DataSourceConfig, + evaluators: S.optional(EvaluatorList), + insights: S.optional(InsightList), + clusteringConfig: S.optional(ClusteringConfig), + evaluationExecutionRoleArn: S.String, + enableOnCreate: S.Boolean, + tags: S.optional(TagsMap), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/online-evaluation-configs/create" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateOnlineEvaluationConfigRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateOnlineEvaluationConfigRequest", +}) as any as S.Schema; export interface CloudWatchOutputConfig { logGroupName: string; } @@ -9588,45 +9408,44 @@ export interface CreateOnlineEvaluationConfigResponse { executionStatus: OnlineEvaluationExecutionStatus; failureReason?: string; } -export const CreateOnlineEvaluationConfigResponse = - /*@__PURE__*/ S.suspend(() => +export const CreateOnlineEvaluationConfigResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ onlineEvaluationConfigArn: S.String, onlineEvaluationConfigId: S.String, createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), outputConfig: S.optional(OutputConfig), - status: OnlineEvaluationConfigStatus, - executionStatus: OnlineEvaluationExecutionStatus, - failureReason: S.optional(S.String), - }), - ).annotate({ - identifier: "CreateOnlineEvaluationConfigResponse", - }) as any as S.Schema; -export interface GetOnlineEvaluationConfigRequest { - onlineEvaluationConfigId: string; -} -export const GetOnlineEvaluationConfigRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - onlineEvaluationConfigId: S.String.pipe( - T.HttpLabel("onlineEvaluationConfigId"), - ), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/online-evaluation-configs/{onlineEvaluationConfigId}", - }), - svc, - auth, - proto, - ver, - rules, - ), + status: OnlineEvaluationConfigStatus, + executionStatus: OnlineEvaluationExecutionStatus, + failureReason: S.optional(S.String), + }), +).annotate({ + identifier: "CreateOnlineEvaluationConfigResponse", +}) as any as S.Schema; +export interface GetOnlineEvaluationConfigRequest { + onlineEvaluationConfigId: string; +} +export const GetOnlineEvaluationConfigRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + onlineEvaluationConfigId: S.String.pipe( + T.HttpLabel("onlineEvaluationConfigId"), ), - ).annotate({ - identifier: "GetOnlineEvaluationConfigRequest", - }) as any as S.Schema; + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/online-evaluation-configs/{onlineEvaluationConfigId}", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "GetOnlineEvaluationConfigRequest", +}) as any as S.Schema; export interface GetOnlineEvaluationConfigResponse { onlineEvaluationConfigArn: string; onlineEvaluationConfigId: string; @@ -9645,29 +9464,28 @@ export interface GetOnlineEvaluationConfigResponse { updatedAt: Date; failureReason?: string; } -export const GetOnlineEvaluationConfigResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - onlineEvaluationConfigArn: S.String, - onlineEvaluationConfigId: S.String, - onlineEvaluationConfigName: S.String, - description: S.optional(SensitiveString), - rule: Rule, - dataSourceConfig: DataSourceConfig, - evaluators: S.optional(EvaluatorList), - insights: S.optional(InsightList), - clusteringConfig: S.optional(ClusteringConfig), - outputConfig: S.optional(OutputConfig), - evaluationExecutionRoleArn: S.optional(S.String), - status: OnlineEvaluationConfigStatus, - executionStatus: OnlineEvaluationExecutionStatus, - createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - updatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - failureReason: S.optional(S.String), - }), - ).annotate({ - identifier: "GetOnlineEvaluationConfigResponse", - }) as any as S.Schema; +export const GetOnlineEvaluationConfigResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + onlineEvaluationConfigArn: S.String, + onlineEvaluationConfigId: S.String, + onlineEvaluationConfigName: S.String, + description: S.optional(SensitiveString), + rule: Rule, + dataSourceConfig: DataSourceConfig, + evaluators: S.optional(EvaluatorList), + insights: S.optional(InsightList), + clusteringConfig: S.optional(ClusteringConfig), + outputConfig: S.optional(OutputConfig), + evaluationExecutionRoleArn: S.optional(S.String), + status: OnlineEvaluationConfigStatus, + executionStatus: OnlineEvaluationExecutionStatus, + createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + updatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + failureReason: S.optional(S.String), + }), +).annotate({ + identifier: "GetOnlineEvaluationConfigResponse", +}) as any as S.Schema; export interface UpdateOnlineEvaluationConfigRequest { clientToken?: string; onlineEvaluationConfigId: string; @@ -9680,37 +9498,36 @@ export interface UpdateOnlineEvaluationConfigRequest { evaluationExecutionRoleArn?: string; executionStatus?: OnlineEvaluationExecutionStatus; } -export const UpdateOnlineEvaluationConfigRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - onlineEvaluationConfigId: S.String.pipe( - T.HttpLabel("onlineEvaluationConfigId"), - ), - description: S.optional(SensitiveString), - rule: S.optional(Rule), - dataSourceConfig: S.optional(DataSourceConfig), - evaluators: S.optional(EvaluatorList), - insights: S.optional(InsightList), - clusteringConfig: S.optional(ClusteringConfig), - evaluationExecutionRoleArn: S.optional(S.String), - executionStatus: S.optional(OnlineEvaluationExecutionStatus), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/online-evaluation-configs/{onlineEvaluationConfigId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateOnlineEvaluationConfigRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + onlineEvaluationConfigId: S.String.pipe( + T.HttpLabel("onlineEvaluationConfigId"), ), - ).annotate({ - identifier: "UpdateOnlineEvaluationConfigRequest", - }) as any as S.Schema; + description: S.optional(SensitiveString), + rule: S.optional(Rule), + dataSourceConfig: S.optional(DataSourceConfig), + evaluators: S.optional(EvaluatorList), + insights: S.optional(InsightList), + clusteringConfig: S.optional(ClusteringConfig), + evaluationExecutionRoleArn: S.optional(S.String), + executionStatus: S.optional(OnlineEvaluationExecutionStatus), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/online-evaluation-configs/{onlineEvaluationConfigId}", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "UpdateOnlineEvaluationConfigRequest", +}) as any as S.Schema; export interface UpdateOnlineEvaluationConfigResponse { onlineEvaluationConfigArn: string; onlineEvaluationConfigId: string; @@ -9719,8 +9536,8 @@ export interface UpdateOnlineEvaluationConfigResponse { executionStatus: OnlineEvaluationExecutionStatus; failureReason?: string; } -export const UpdateOnlineEvaluationConfigResponse = - /*@__PURE__*/ S.suspend(() => +export const UpdateOnlineEvaluationConfigResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ onlineEvaluationConfigArn: S.String, onlineEvaluationConfigId: S.String, @@ -9729,71 +9546,69 @@ export const UpdateOnlineEvaluationConfigResponse = executionStatus: OnlineEvaluationExecutionStatus, failureReason: S.optional(S.String), }), - ).annotate({ - identifier: "UpdateOnlineEvaluationConfigResponse", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateOnlineEvaluationConfigResponse", +}) as any as S.Schema; export interface DeleteOnlineEvaluationConfigRequest { onlineEvaluationConfigId: string; } -export const DeleteOnlineEvaluationConfigRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - onlineEvaluationConfigId: S.String.pipe( - T.HttpLabel("onlineEvaluationConfigId"), - ), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/online-evaluation-configs/{onlineEvaluationConfigId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteOnlineEvaluationConfigRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + onlineEvaluationConfigId: S.String.pipe( + T.HttpLabel("onlineEvaluationConfigId"), ), - ).annotate({ - identifier: "DeleteOnlineEvaluationConfigRequest", - }) as any as S.Schema; + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/online-evaluation-configs/{onlineEvaluationConfigId}", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "DeleteOnlineEvaluationConfigRequest", +}) as any as S.Schema; export interface DeleteOnlineEvaluationConfigResponse { onlineEvaluationConfigArn: string; onlineEvaluationConfigId: string; status: OnlineEvaluationConfigStatus; } -export const DeleteOnlineEvaluationConfigResponse = - /*@__PURE__*/ S.suspend(() => +export const DeleteOnlineEvaluationConfigResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ onlineEvaluationConfigArn: S.String, onlineEvaluationConfigId: S.String, status: OnlineEvaluationConfigStatus, }), - ).annotate({ - identifier: "DeleteOnlineEvaluationConfigResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteOnlineEvaluationConfigResponse", +}) as any as S.Schema; export interface ListOnlineEvaluationConfigsRequest { nextToken?: string; maxResults?: number; } -export const ListOnlineEvaluationConfigsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/online-evaluation-configs" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListOnlineEvaluationConfigsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/online-evaluation-configs" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListOnlineEvaluationConfigsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListOnlineEvaluationConfigsRequest", +}) as any as S.Schema; export interface OnlineEvaluationConfigSummary { onlineEvaluationConfigArn: string; onlineEvaluationConfigId: string; @@ -9807,40 +9622,39 @@ export interface OnlineEvaluationConfigSummary { insights?: Insight[]; clusteringConfig?: ClusteringConfig; } -export const OnlineEvaluationConfigSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - onlineEvaluationConfigArn: S.String, - onlineEvaluationConfigId: S.String, - onlineEvaluationConfigName: S.String, - description: S.optional(SensitiveString), - status: OnlineEvaluationConfigStatus, - executionStatus: OnlineEvaluationExecutionStatus, - createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - updatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - failureReason: S.optional(S.String), - insights: S.optional(InsightList), - clusteringConfig: S.optional(ClusteringConfig), - }), - ).annotate({ - identifier: "OnlineEvaluationConfigSummary", - }) as any as S.Schema; +export const OnlineEvaluationConfigSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + onlineEvaluationConfigArn: S.String, + onlineEvaluationConfigId: S.String, + onlineEvaluationConfigName: S.String, + description: S.optional(SensitiveString), + status: OnlineEvaluationConfigStatus, + executionStatus: OnlineEvaluationExecutionStatus, + createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + updatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + failureReason: S.optional(S.String), + insights: S.optional(InsightList), + clusteringConfig: S.optional(ClusteringConfig), + }), +).annotate({ + identifier: "OnlineEvaluationConfigSummary", +}) as any as S.Schema; export type OnlineEvaluationConfigSummaryList = OnlineEvaluationConfigSummary[]; -export const OnlineEvaluationConfigSummaryList = - /*@__PURE__*/ S.Array(OnlineEvaluationConfigSummary); +export const OnlineEvaluationConfigSummaryList = /*@__PURE__*/ S.Array( + OnlineEvaluationConfigSummary, +); export interface ListOnlineEvaluationConfigsResponse { onlineEvaluationConfigs: OnlineEvaluationConfigSummary[]; nextToken?: string; } -export const ListOnlineEvaluationConfigsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - onlineEvaluationConfigs: OnlineEvaluationConfigSummaryList, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListOnlineEvaluationConfigsResponse", - }) as any as S.Schema; +export const ListOnlineEvaluationConfigsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + onlineEvaluationConfigs: OnlineEvaluationConfigSummaryList, + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListOnlineEvaluationConfigsResponse", +}) as any as S.Schema; export type PaymentCredentialProviderVendorType = | "CoinbaseCDP" | "StripePrivy" @@ -9855,20 +9669,19 @@ export interface CoinbaseCdpConfigurationInput { walletSecretSource?: SecretSourceType; walletSecretConfig?: SecretReference; } -export const CoinbaseCdpConfigurationInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - apiKeyId: S.String, - apiKeySecret: S.optional(SensitiveString), - apiKeySecretSource: S.optional(SecretSourceType), - apiKeySecretConfig: S.optional(SecretReference), - walletSecret: S.optional(SensitiveString), - walletSecretSource: S.optional(SecretSourceType), - walletSecretConfig: S.optional(SecretReference), - }), - ).annotate({ - identifier: "CoinbaseCdpConfigurationInput", - }) as any as S.Schema; +export const CoinbaseCdpConfigurationInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + apiKeyId: S.String, + apiKeySecret: S.optional(SensitiveString), + apiKeySecretSource: S.optional(SecretSourceType), + apiKeySecretConfig: S.optional(SecretReference), + walletSecret: S.optional(SensitiveString), + walletSecretSource: S.optional(SecretSourceType), + walletSecretConfig: S.optional(SecretReference), + }), +).annotate({ + identifier: "CoinbaseCdpConfigurationInput", +}) as any as S.Schema; export interface StripePrivyConfigurationInput { appId: string; appSecret?: string | redacted.Redacted; @@ -9879,21 +9692,20 @@ export interface StripePrivyConfigurationInput { authorizationPrivateKeyConfig?: SecretReference; authorizationId: string; } -export const StripePrivyConfigurationInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - appId: S.String, - appSecret: S.optional(SensitiveString), - appSecretSource: S.optional(SecretSourceType), - appSecretConfig: S.optional(SecretReference), - authorizationPrivateKey: S.optional(SensitiveString), - authorizationPrivateKeySource: S.optional(SecretSourceType), - authorizationPrivateKeyConfig: S.optional(SecretReference), - authorizationId: S.String, - }), - ).annotate({ - identifier: "StripePrivyConfigurationInput", - }) as any as S.Schema; +export const StripePrivyConfigurationInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + appId: S.String, + appSecret: S.optional(SensitiveString), + appSecretSource: S.optional(SecretSourceType), + appSecretConfig: S.optional(SecretReference), + authorizationPrivateKey: S.optional(SensitiveString), + authorizationPrivateKeySource: S.optional(SecretSourceType), + authorizationPrivateKeyConfig: S.optional(SecretReference), + authorizationId: S.String, + }), +).annotate({ + identifier: "StripePrivyConfigurationInput", +}) as any as S.Schema; export type PaymentProviderConfigurationInput = | { coinbaseCdpConfiguration: CoinbaseCdpConfigurationInput; @@ -9903,19 +9715,18 @@ export type PaymentProviderConfigurationInput = coinbaseCdpConfiguration?: never; stripePrivyConfiguration: StripePrivyConfigurationInput; }; -export const PaymentProviderConfigurationInput = - /*@__PURE__*/ S.Union([ - S.Struct({ coinbaseCdpConfiguration: CoinbaseCdpConfigurationInput }), - S.Struct({ stripePrivyConfiguration: StripePrivyConfigurationInput }), - ]); +export const PaymentProviderConfigurationInput = /*@__PURE__*/ S.Union([ + S.Struct({ coinbaseCdpConfiguration: CoinbaseCdpConfigurationInput }), + S.Struct({ stripePrivyConfiguration: StripePrivyConfigurationInput }), +]); export interface CreatePaymentCredentialProviderRequest { name: string; credentialProviderVendor: PaymentCredentialProviderVendorType; providerConfigurationInput: PaymentProviderConfigurationInput; tags?: { [key: string]: string | undefined }; } -export const CreatePaymentCredentialProviderRequest = - /*@__PURE__*/ S.suspend(() => +export const CreatePaymentCredentialProviderRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ name: S.String, credentialProviderVendor: PaymentCredentialProviderVendorType, @@ -9934,9 +9745,9 @@ export const CreatePaymentCredentialProviderRequest = rules, ), ), - ).annotate({ - identifier: "CreatePaymentCredentialProviderRequest", - }) as any as S.Schema; +).annotate({ + identifier: "CreatePaymentCredentialProviderRequest", +}) as any as S.Schema; export interface CoinbaseCdpConfigurationOutput { apiKeyId: string; apiKeySecretArn: Secret; @@ -9946,20 +9757,19 @@ export interface CoinbaseCdpConfigurationOutput { walletSecretJsonKey?: string; walletSecretSource?: SecretSourceType; } -export const CoinbaseCdpConfigurationOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - apiKeyId: S.String, - apiKeySecretArn: Secret, - apiKeySecretJsonKey: S.optional(S.String), - apiKeySecretSource: S.optional(SecretSourceType), - walletSecretArn: Secret, - walletSecretJsonKey: S.optional(S.String), - walletSecretSource: S.optional(SecretSourceType), - }), - ).annotate({ - identifier: "CoinbaseCdpConfigurationOutput", - }) as any as S.Schema; +export const CoinbaseCdpConfigurationOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + apiKeyId: S.String, + apiKeySecretArn: Secret, + apiKeySecretJsonKey: S.optional(S.String), + apiKeySecretSource: S.optional(SecretSourceType), + walletSecretArn: Secret, + walletSecretJsonKey: S.optional(S.String), + walletSecretSource: S.optional(SecretSourceType), + }), +).annotate({ + identifier: "CoinbaseCdpConfigurationOutput", +}) as any as S.Schema; export interface StripePrivyConfigurationOutput { appId: string; appSecretArn: Secret; @@ -9970,21 +9780,20 @@ export interface StripePrivyConfigurationOutput { authorizationPrivateKeySource?: SecretSourceType; authorizationId: string; } -export const StripePrivyConfigurationOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - appId: S.String, - appSecretArn: Secret, - appSecretJsonKey: S.optional(S.String), - appSecretSource: S.optional(SecretSourceType), - authorizationPrivateKeyArn: Secret, - authorizationPrivateKeyJsonKey: S.optional(S.String), - authorizationPrivateKeySource: S.optional(SecretSourceType), - authorizationId: S.String, - }), - ).annotate({ - identifier: "StripePrivyConfigurationOutput", - }) as any as S.Schema; +export const StripePrivyConfigurationOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + appId: S.String, + appSecretArn: Secret, + appSecretJsonKey: S.optional(S.String), + appSecretSource: S.optional(SecretSourceType), + authorizationPrivateKeyArn: Secret, + authorizationPrivateKeyJsonKey: S.optional(S.String), + authorizationPrivateKeySource: S.optional(SecretSourceType), + authorizationId: S.String, + }), +).annotate({ + identifier: "StripePrivyConfigurationOutput", +}) as any as S.Schema; export type PaymentProviderConfigurationOutput = | { coinbaseCdpConfiguration: CoinbaseCdpConfigurationOutput; @@ -9994,49 +9803,47 @@ export type PaymentProviderConfigurationOutput = coinbaseCdpConfiguration?: never; stripePrivyConfiguration: StripePrivyConfigurationOutput; }; -export const PaymentProviderConfigurationOutput = - /*@__PURE__*/ S.Union([ - S.Struct({ coinbaseCdpConfiguration: CoinbaseCdpConfigurationOutput }), - S.Struct({ stripePrivyConfiguration: StripePrivyConfigurationOutput }), - ]); +export const PaymentProviderConfigurationOutput = /*@__PURE__*/ S.Union([ + S.Struct({ coinbaseCdpConfiguration: CoinbaseCdpConfigurationOutput }), + S.Struct({ stripePrivyConfiguration: StripePrivyConfigurationOutput }), +]); export interface CreatePaymentCredentialProviderResponse { name: string; credentialProviderVendor: PaymentCredentialProviderVendorType; credentialProviderArn: string; providerConfigurationOutput: PaymentProviderConfigurationOutput; } -export const CreatePaymentCredentialProviderResponse = - /*@__PURE__*/ S.suspend(() => +export const CreatePaymentCredentialProviderResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ name: S.String, credentialProviderVendor: PaymentCredentialProviderVendorType, credentialProviderArn: S.String, providerConfigurationOutput: PaymentProviderConfigurationOutput, }), - ).annotate({ - identifier: "CreatePaymentCredentialProviderResponse", - }) as any as S.Schema; +).annotate({ + identifier: "CreatePaymentCredentialProviderResponse", +}) as any as S.Schema; export interface GetPaymentCredentialProviderRequest { name: string; } -export const GetPaymentCredentialProviderRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ name: S.String }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/identities/GetPaymentCredentialProvider", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetPaymentCredentialProviderRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ name: S.String }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/identities/GetPaymentCredentialProvider", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetPaymentCredentialProviderRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetPaymentCredentialProviderRequest", +}) as any as S.Schema; export interface GetPaymentCredentialProviderResponse { name: string; credentialProviderArn: string; @@ -10046,8 +9853,8 @@ export interface GetPaymentCredentialProviderResponse { lastUpdatedTime: Date; tags?: { [key: string]: string | undefined }; } -export const GetPaymentCredentialProviderResponse = - /*@__PURE__*/ S.suspend(() => +export const GetPaymentCredentialProviderResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ name: S.String, credentialProviderArn: S.String, @@ -10057,16 +9864,16 @@ export const GetPaymentCredentialProviderResponse = lastUpdatedTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), tags: S.optional(TagsMap), }), - ).annotate({ - identifier: "GetPaymentCredentialProviderResponse", - }) as any as S.Schema; +).annotate({ + identifier: "GetPaymentCredentialProviderResponse", +}) as any as S.Schema; export interface UpdatePaymentCredentialProviderRequest { name: string; credentialProviderVendor: PaymentCredentialProviderVendorType; providerConfigurationInput: PaymentProviderConfigurationInput; } -export const UpdatePaymentCredentialProviderRequest = - /*@__PURE__*/ S.suspend(() => +export const UpdatePaymentCredentialProviderRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ name: S.String, credentialProviderVendor: PaymentCredentialProviderVendorType, @@ -10084,9 +9891,9 @@ export const UpdatePaymentCredentialProviderRequest = rules, ), ), - ).annotate({ - identifier: "UpdatePaymentCredentialProviderRequest", - }) as any as S.Schema; +).annotate({ + identifier: "UpdatePaymentCredentialProviderRequest", +}) as any as S.Schema; export interface UpdatePaymentCredentialProviderResponse { name: string; credentialProviderVendor: PaymentCredentialProviderVendorType; @@ -10095,8 +9902,8 @@ export interface UpdatePaymentCredentialProviderResponse { createdTime: Date; lastUpdatedTime: Date; } -export const UpdatePaymentCredentialProviderResponse = - /*@__PURE__*/ S.suspend(() => +export const UpdatePaymentCredentialProviderResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ name: S.String, credentialProviderVendor: PaymentCredentialProviderVendorType, @@ -10105,14 +9912,14 @@ export const UpdatePaymentCredentialProviderResponse = createdTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), lastUpdatedTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), }), - ).annotate({ - identifier: "UpdatePaymentCredentialProviderResponse", - }) as any as S.Schema; +).annotate({ + identifier: "UpdatePaymentCredentialProviderResponse", +}) as any as S.Schema; export interface DeletePaymentCredentialProviderRequest { name: string; } -export const DeletePaymentCredentialProviderRequest = - /*@__PURE__*/ S.suspend(() => +export const DeletePaymentCredentialProviderRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ name: S.String }).pipe( T.all( T.Http({ @@ -10126,20 +9933,21 @@ export const DeletePaymentCredentialProviderRequest = rules, ), ), - ).annotate({ - identifier: "DeletePaymentCredentialProviderRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DeletePaymentCredentialProviderRequest", +}) as any as S.Schema; export interface DeletePaymentCredentialProviderResponse {} -export const DeletePaymentCredentialProviderResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeletePaymentCredentialProviderResponse", - }) as any as S.Schema; +export const DeletePaymentCredentialProviderResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}), +).annotate({ + identifier: "DeletePaymentCredentialProviderResponse", +}) as any as S.Schema; export interface ListPaymentCredentialProvidersRequest { nextToken?: string; maxResults?: number; } -export const ListPaymentCredentialProvidersRequest = - /*@__PURE__*/ S.suspend(() => +export const ListPaymentCredentialProvidersRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ nextToken: S.optional(S.String), maxResults: S.optional(S.Number), @@ -10156,9 +9964,9 @@ export const ListPaymentCredentialProvidersRequest = rules, ), ), - ).annotate({ - identifier: "ListPaymentCredentialProvidersRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListPaymentCredentialProvidersRequest", +}) as any as S.Schema; export interface PaymentCredentialProviderItem { name: string; credentialProviderVendor: PaymentCredentialProviderVendorType; @@ -10166,18 +9974,17 @@ export interface PaymentCredentialProviderItem { createdTime: Date; lastUpdatedTime: Date; } -export const PaymentCredentialProviderItem = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.String, - credentialProviderVendor: PaymentCredentialProviderVendorType, - credentialProviderArn: S.String, - createdTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - lastUpdatedTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - }), - ).annotate({ - identifier: "PaymentCredentialProviderItem", - }) as any as S.Schema; +export const PaymentCredentialProviderItem = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.String, + credentialProviderVendor: PaymentCredentialProviderVendorType, + credentialProviderArn: S.String, + createdTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + lastUpdatedTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + }), +).annotate({ + identifier: "PaymentCredentialProviderItem", +}) as any as S.Schema; export type PaymentCredentialProviders = PaymentCredentialProviderItem[]; export const PaymentCredentialProviders = /*@__PURE__*/ S.Array( PaymentCredentialProviderItem, @@ -10186,15 +9993,15 @@ export interface ListPaymentCredentialProvidersResponse { credentialProviders: PaymentCredentialProviderItem[]; nextToken?: string; } -export const ListPaymentCredentialProvidersResponse = - /*@__PURE__*/ S.suspend(() => +export const ListPaymentCredentialProvidersResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ credentialProviders: PaymentCredentialProviders, nextToken: S.optional(S.String), }), - ).annotate({ - identifier: "ListPaymentCredentialProvidersResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListPaymentCredentialProvidersResponse", +}) as any as S.Schema; export type PaymentsAuthorizerType = "CUSTOM_JWT" | "AWS_IAM" | (string & {}); export const PaymentsAuthorizerType = /*@__PURE__*/ S.String; export interface CreatePaymentManagerRequest { @@ -10206,29 +10013,28 @@ export interface CreatePaymentManagerRequest { clientToken?: string; tags?: { [key: string]: string | undefined }; } -export const CreatePaymentManagerRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.String, - description: S.optional(S.String), - authorizerType: PaymentsAuthorizerType, - authorizerConfiguration: S.optional(AuthorizerConfiguration), - roleArn: S.String, - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - tags: S.optional(TagsMap), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/payments/managers" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreatePaymentManagerRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.String, + description: S.optional(S.String), + authorizerType: PaymentsAuthorizerType, + authorizerConfiguration: S.optional(AuthorizerConfiguration), + roleArn: S.String, + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + tags: S.optional(TagsMap), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/payments/managers" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreatePaymentManagerRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreatePaymentManagerRequest", +}) as any as S.Schema; export type PaymentManagerStatus = | "CREATING" | "UPDATING" @@ -10251,23 +10057,22 @@ export interface CreatePaymentManagerResponse { status: PaymentManagerStatus; tags?: { [key: string]: string | undefined }; } -export const CreatePaymentManagerResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - paymentManagerArn: S.String, - paymentManagerId: S.String, - name: S.String, - authorizerType: PaymentsAuthorizerType, - authorizerConfiguration: S.optional(AuthorizerConfiguration), - roleArn: S.String, - workloadIdentityDetails: S.optional(WorkloadIdentityDetails), - createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - status: PaymentManagerStatus, - tags: S.optional(TagsMap), - }), - ).annotate({ - identifier: "CreatePaymentManagerResponse", - }) as any as S.Schema; +export const CreatePaymentManagerResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + paymentManagerArn: S.String, + paymentManagerId: S.String, + name: S.String, + authorizerType: PaymentsAuthorizerType, + authorizerConfiguration: S.optional(AuthorizerConfiguration), + roleArn: S.String, + workloadIdentityDetails: S.optional(WorkloadIdentityDetails), + createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + status: PaymentManagerStatus, + tags: S.optional(TagsMap), + }), +).annotate({ + identifier: "CreatePaymentManagerResponse", +}) as any as S.Schema; export interface GetPaymentManagerRequest { paymentManagerId: string; } @@ -10327,31 +10132,27 @@ export interface UpdatePaymentManagerRequest { roleArn?: string; clientToken?: string; } -export const UpdatePaymentManagerRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - paymentManagerId: S.String.pipe(T.HttpLabel("paymentManagerId")), - description: S.optional(S.String), - authorizerType: S.optional(PaymentsAuthorizerType), - authorizerConfiguration: S.optional(AuthorizerConfiguration), - roleArn: S.optional(S.String), - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ - method: "PATCH", - uri: "/payments/managers/{paymentManagerId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdatePaymentManagerRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + paymentManagerId: S.String.pipe(T.HttpLabel("paymentManagerId")), + description: S.optional(S.String), + authorizerType: S.optional(PaymentsAuthorizerType), + authorizerConfiguration: S.optional(AuthorizerConfiguration), + roleArn: S.optional(S.String), + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ method: "PATCH", uri: "/payments/managers/{paymentManagerId}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdatePaymentManagerRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdatePaymentManagerRequest", +}) as any as S.Schema; export interface UpdatePaymentManagerResponse { paymentManagerArn: string; paymentManagerId: string; @@ -10362,62 +10163,59 @@ export interface UpdatePaymentManagerResponse { lastUpdatedAt: Date; status: PaymentManagerStatus; } -export const UpdatePaymentManagerResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - paymentManagerArn: S.String, - paymentManagerId: S.String, - name: S.String, - authorizerType: PaymentsAuthorizerType, - roleArn: S.String, - workloadIdentityDetails: S.optional(WorkloadIdentityDetails), - lastUpdatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - status: PaymentManagerStatus, - }), - ).annotate({ - identifier: "UpdatePaymentManagerResponse", - }) as any as S.Schema; +export const UpdatePaymentManagerResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + paymentManagerArn: S.String, + paymentManagerId: S.String, + name: S.String, + authorizerType: PaymentsAuthorizerType, + roleArn: S.String, + workloadIdentityDetails: S.optional(WorkloadIdentityDetails), + lastUpdatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + status: PaymentManagerStatus, + }), +).annotate({ + identifier: "UpdatePaymentManagerResponse", +}) as any as S.Schema; export interface DeletePaymentManagerRequest { paymentManagerId: string; clientToken?: string; } -export const DeletePaymentManagerRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - paymentManagerId: S.String.pipe(T.HttpLabel("paymentManagerId")), - clientToken: S.optional(S.String).pipe( - T.HttpQuery("clientToken"), - T.IdempotencyToken(), - ), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/payments/managers/{paymentManagerId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeletePaymentManagerRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + paymentManagerId: S.String.pipe(T.HttpLabel("paymentManagerId")), + clientToken: S.optional(S.String).pipe( + T.HttpQuery("clientToken"), + T.IdempotencyToken(), ), - ).annotate({ - identifier: "DeletePaymentManagerRequest", - }) as any as S.Schema; + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/payments/managers/{paymentManagerId}", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "DeletePaymentManagerRequest", +}) as any as S.Schema; export interface DeletePaymentManagerResponse { status: PaymentManagerStatus; paymentManagerId?: string; } -export const DeletePaymentManagerResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - status: PaymentManagerStatus, - paymentManagerId: S.optional(S.String), - }), - ).annotate({ - identifier: "DeletePaymentManagerResponse", - }) as any as S.Schema; +export const DeletePaymentManagerResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + status: PaymentManagerStatus, + paymentManagerId: S.optional(S.String), + }), +).annotate({ + identifier: "DeletePaymentManagerResponse", +}) as any as S.Schema; export interface ListPaymentManagersRequest { maxResults?: number; nextToken?: string; @@ -10475,15 +10273,14 @@ export interface ListPaymentManagersResponse { paymentManagers: PaymentManagerSummary[]; nextToken?: string; } -export const ListPaymentManagersResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - paymentManagers: PaymentManagerSummaries, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListPaymentManagersResponse", - }) as any as S.Schema; +export const ListPaymentManagersResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + paymentManagers: PaymentManagerSummaries, + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListPaymentManagersResponse", +}) as any as S.Schema; export type PaymentConnectorType = | "CoinbaseCDP" | "StripePrivy" @@ -10492,27 +10289,26 @@ export const PaymentConnectorType = /*@__PURE__*/ S.String; export interface PaymentCredentialProviderConfiguration { credentialProviderArn: string; } -export const PaymentCredentialProviderConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ credentialProviderArn: S.String }), - ).annotate({ - identifier: "PaymentCredentialProviderConfiguration", - }) as any as S.Schema; +export const PaymentCredentialProviderConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ credentialProviderArn: S.String }), +).annotate({ + identifier: "PaymentCredentialProviderConfiguration", +}) as any as S.Schema; export type CredentialsProviderConfiguration = | { coinbaseCDP: PaymentCredentialProviderConfiguration; stripePrivy?: never } | { coinbaseCDP?: never; stripePrivy: PaymentCredentialProviderConfiguration; }; -export const CredentialsProviderConfiguration = - /*@__PURE__*/ S.Union([ - S.Struct({ coinbaseCDP: PaymentCredentialProviderConfiguration }), - S.Struct({ stripePrivy: PaymentCredentialProviderConfiguration }), - ]); +export const CredentialsProviderConfiguration = /*@__PURE__*/ S.Union([ + S.Struct({ coinbaseCDP: PaymentCredentialProviderConfiguration }), + S.Struct({ stripePrivy: PaymentCredentialProviderConfiguration }), +]); export type CredentialsProviderConfigurations = CredentialsProviderConfiguration[]; -export const CredentialsProviderConfigurations = - /*@__PURE__*/ S.Array(CredentialsProviderConfiguration); +export const CredentialsProviderConfigurations = /*@__PURE__*/ S.Array( + CredentialsProviderConfiguration, +); export interface CreatePaymentConnectorRequest { paymentManagerId: string; name: string; @@ -10521,31 +10317,30 @@ export interface CreatePaymentConnectorRequest { credentialProviderConfigurations: CredentialsProviderConfiguration[]; clientToken?: string; } -export const CreatePaymentConnectorRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - paymentManagerId: S.String.pipe(T.HttpLabel("paymentManagerId")), - name: S.String, - description: S.optional(S.String), - type: PaymentConnectorType, - credentialProviderConfigurations: CredentialsProviderConfigurations, - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/payments/managers/{paymentManagerId}/connectors", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreatePaymentConnectorRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + paymentManagerId: S.String.pipe(T.HttpLabel("paymentManagerId")), + name: S.String, + description: S.optional(S.String), + type: PaymentConnectorType, + credentialProviderConfigurations: CredentialsProviderConfigurations, + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/payments/managers/{paymentManagerId}/connectors", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreatePaymentConnectorRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreatePaymentConnectorRequest", +}) as any as S.Schema; export type PaymentConnectorStatus = | "CREATING" | "UPDATING" @@ -10565,20 +10360,19 @@ export interface CreatePaymentConnectorResponse { createdAt: Date; status: PaymentConnectorStatus; } -export const CreatePaymentConnectorResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - paymentConnectorId: S.String, - paymentManagerId: S.String, - name: S.String, - type: PaymentConnectorType, - credentialProviderConfigurations: CredentialsProviderConfigurations, - createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - status: PaymentConnectorStatus, - }), - ).annotate({ - identifier: "CreatePaymentConnectorResponse", - }) as any as S.Schema; +export const CreatePaymentConnectorResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + paymentConnectorId: S.String, + paymentManagerId: S.String, + name: S.String, + type: PaymentConnectorType, + credentialProviderConfigurations: CredentialsProviderConfigurations, + createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + status: PaymentConnectorStatus, + }), +).annotate({ + identifier: "CreatePaymentConnectorResponse", +}) as any as S.Schema; export interface GetPaymentConnectorRequest { paymentManagerId: string; paymentConnectorId: string; @@ -10613,21 +10407,20 @@ export interface GetPaymentConnectorResponse { lastUpdatedAt: Date; status: PaymentConnectorStatus; } -export const GetPaymentConnectorResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - paymentConnectorId: S.String, - name: S.String, - description: S.optional(S.String), - type: PaymentConnectorType, - credentialProviderConfigurations: CredentialsProviderConfigurations, - createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - lastUpdatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - status: PaymentConnectorStatus, - }), - ).annotate({ - identifier: "GetPaymentConnectorResponse", - }) as any as S.Schema; +export const GetPaymentConnectorResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + paymentConnectorId: S.String, + name: S.String, + description: S.optional(S.String), + type: PaymentConnectorType, + credentialProviderConfigurations: CredentialsProviderConfigurations, + createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + lastUpdatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + status: PaymentConnectorStatus, + }), +).annotate({ + identifier: "GetPaymentConnectorResponse", +}) as any as S.Schema; export interface UpdatePaymentConnectorRequest { paymentManagerId: string; paymentConnectorId: string; @@ -10636,33 +10429,32 @@ export interface UpdatePaymentConnectorRequest { credentialProviderConfigurations?: CredentialsProviderConfiguration[]; clientToken?: string; } -export const UpdatePaymentConnectorRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - paymentManagerId: S.String.pipe(T.HttpLabel("paymentManagerId")), - paymentConnectorId: S.String.pipe(T.HttpLabel("paymentConnectorId")), - description: S.optional(S.String), - type: S.optional(PaymentConnectorType), - credentialProviderConfigurations: S.optional( - CredentialsProviderConfigurations, - ), - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ - method: "PATCH", - uri: "/payments/managers/{paymentManagerId}/connectors/{paymentConnectorId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdatePaymentConnectorRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + paymentManagerId: S.String.pipe(T.HttpLabel("paymentManagerId")), + paymentConnectorId: S.String.pipe(T.HttpLabel("paymentConnectorId")), + description: S.optional(S.String), + type: S.optional(PaymentConnectorType), + credentialProviderConfigurations: S.optional( + CredentialsProviderConfigurations, ), - ).annotate({ - identifier: "UpdatePaymentConnectorRequest", - }) as any as S.Schema; + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ + method: "PATCH", + uri: "/payments/managers/{paymentManagerId}/connectors/{paymentConnectorId}", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "UpdatePaymentConnectorRequest", +}) as any as S.Schema; export interface UpdatePaymentConnectorResponse { paymentConnectorId: string; paymentManagerId: string; @@ -10672,90 +10464,86 @@ export interface UpdatePaymentConnectorResponse { lastUpdatedAt: Date; status: PaymentConnectorStatus; } -export const UpdatePaymentConnectorResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - paymentConnectorId: S.String, - paymentManagerId: S.String, - name: S.String, - type: PaymentConnectorType, - credentialProviderConfigurations: CredentialsProviderConfigurations, - lastUpdatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - status: PaymentConnectorStatus, - }), - ).annotate({ - identifier: "UpdatePaymentConnectorResponse", - }) as any as S.Schema; +export const UpdatePaymentConnectorResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + paymentConnectorId: S.String, + paymentManagerId: S.String, + name: S.String, + type: PaymentConnectorType, + credentialProviderConfigurations: CredentialsProviderConfigurations, + lastUpdatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + status: PaymentConnectorStatus, + }), +).annotate({ + identifier: "UpdatePaymentConnectorResponse", +}) as any as S.Schema; export interface DeletePaymentConnectorRequest { paymentManagerId: string; paymentConnectorId: string; clientToken?: string; } -export const DeletePaymentConnectorRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - paymentManagerId: S.String.pipe(T.HttpLabel("paymentManagerId")), - paymentConnectorId: S.String.pipe(T.HttpLabel("paymentConnectorId")), - clientToken: S.optional(S.String).pipe( - T.HttpQuery("clientToken"), - T.IdempotencyToken(), - ), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/payments/managers/{paymentManagerId}/connectors/{paymentConnectorId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeletePaymentConnectorRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + paymentManagerId: S.String.pipe(T.HttpLabel("paymentManagerId")), + paymentConnectorId: S.String.pipe(T.HttpLabel("paymentConnectorId")), + clientToken: S.optional(S.String).pipe( + T.HttpQuery("clientToken"), + T.IdempotencyToken(), ), - ).annotate({ - identifier: "DeletePaymentConnectorRequest", - }) as any as S.Schema; + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/payments/managers/{paymentManagerId}/connectors/{paymentConnectorId}", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "DeletePaymentConnectorRequest", +}) as any as S.Schema; export interface DeletePaymentConnectorResponse { status: PaymentConnectorStatus; paymentConnectorId?: string; } -export const DeletePaymentConnectorResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - status: PaymentConnectorStatus, - paymentConnectorId: S.optional(S.String), - }), - ).annotate({ - identifier: "DeletePaymentConnectorResponse", - }) as any as S.Schema; +export const DeletePaymentConnectorResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + status: PaymentConnectorStatus, + paymentConnectorId: S.optional(S.String), + }), +).annotate({ + identifier: "DeletePaymentConnectorResponse", +}) as any as S.Schema; export interface ListPaymentConnectorsRequest { paymentManagerId: string; maxResults?: number; nextToken?: string; } -export const ListPaymentConnectorsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - paymentManagerId: S.String.pipe(T.HttpLabel("paymentManagerId")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/payments/managers/{paymentManagerId}/connectors-list", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListPaymentConnectorsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + paymentManagerId: S.String.pipe(T.HttpLabel("paymentManagerId")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/payments/managers/{paymentManagerId}/connectors-list", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListPaymentConnectorsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListPaymentConnectorsRequest", +}) as any as S.Schema; export interface PaymentConnectorSummary { paymentConnectorId: string; name: string; @@ -10782,15 +10570,14 @@ export interface ListPaymentConnectorsResponse { paymentConnectors: PaymentConnectorSummary[]; nextToken?: string; } -export const ListPaymentConnectorsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - paymentConnectors: PaymentConnectorSummaries, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListPaymentConnectorsResponse", - }) as any as S.Schema; +export const ListPaymentConnectorsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + paymentConnectors: PaymentConnectorSummaries, + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListPaymentConnectorsResponse", +}) as any as S.Schema; export interface CreatePolicyEngineRequest { name: string; description?: string | redacted.Redacted; @@ -11060,26 +10847,25 @@ export const ListPolicyEnginesResponse = /*@__PURE__*/ S.suspend(() => export interface GetPolicyEngineSummaryRequest { policyEngineId: string; } -export const GetPolicyEngineSummaryRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - policyEngineId: S.String.pipe(T.HttpLabel("policyEngineId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/policy-engine-summaries/{policyEngineId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetPolicyEngineSummaryRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + policyEngineId: S.String.pipe(T.HttpLabel("policyEngineId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/policy-engine-summaries/{policyEngineId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetPolicyEngineSummaryRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetPolicyEngineSummaryRequest", +}) as any as S.Schema; export interface GetPolicyEngineSummaryResponse { policyEngineId: string; name: string; @@ -11089,42 +10875,40 @@ export interface GetPolicyEngineSummaryResponse { status: PolicyEngineStatus; encryptionKeyArn?: string; } -export const GetPolicyEngineSummaryResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - policyEngineId: S.String, - name: S.String, - createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - updatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - policyEngineArn: S.String, - status: PolicyEngineStatus, - encryptionKeyArn: S.optional(S.String), - }), - ).annotate({ - identifier: "GetPolicyEngineSummaryResponse", - }) as any as S.Schema; +export const GetPolicyEngineSummaryResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + policyEngineId: S.String, + name: S.String, + createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + updatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + policyEngineArn: S.String, + status: PolicyEngineStatus, + encryptionKeyArn: S.optional(S.String), + }), +).annotate({ + identifier: "GetPolicyEngineSummaryResponse", +}) as any as S.Schema; export interface ListPolicyEngineSummariesRequest { nextToken?: string; maxResults?: number; } -export const ListPolicyEngineSummariesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/policy-engine-summaries" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListPolicyEngineSummariesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/policy-engine-summaries" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListPolicyEngineSummariesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListPolicyEngineSummariesRequest", +}) as any as S.Schema; export interface PolicyEngineSummary { policyEngineId: string; name: string; @@ -11154,15 +10938,14 @@ export interface ListPolicyEngineSummariesResponse { policyEngines: PolicyEngineSummary[]; nextToken?: string; } -export const ListPolicyEngineSummariesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - policyEngines: PolicyEngineSummaryList, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListPolicyEngineSummariesResponse", - }) as any as S.Schema; +export const ListPolicyEngineSummariesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + policyEngines: PolicyEngineSummaryList, + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListPolicyEngineSummariesResponse", +}) as any as S.Schema; export type Resource = { arn: string }; export const Resource = /*@__PURE__*/ S.Union([S.Struct({ arn: S.String })]); export type Content = { rawText: string }; @@ -11174,30 +10957,29 @@ export interface StartPolicyGenerationRequest { name: string; clientToken?: string; } -export const StartPolicyGenerationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - policyEngineId: S.String.pipe(T.HttpLabel("policyEngineId")), - resource: Resource, - content: Content, - name: S.String, - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/policy-engines/{policyEngineId}/policy-generations", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const StartPolicyGenerationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + policyEngineId: S.String.pipe(T.HttpLabel("policyEngineId")), + resource: Resource, + content: Content, + name: S.String, + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/policy-engines/{policyEngineId}/policy-generations", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "StartPolicyGenerationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "StartPolicyGenerationRequest", +}) as any as S.Schema; export type PolicyGenerationStatus = | "GENERATING" | "GENERATED" @@ -11217,23 +10999,22 @@ export interface StartPolicyGenerationResponse { findings?: string; statusReasons: string[]; } -export const StartPolicyGenerationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - policyEngineId: S.String, - policyGenerationId: S.String, - name: S.String, - policyGenerationArn: S.String, - resource: Resource, - createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - updatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - status: PolicyGenerationStatus, - findings: S.optional(S.String), - statusReasons: PolicyStatusReasons, - }), - ).annotate({ - identifier: "StartPolicyGenerationResponse", - }) as any as S.Schema; +export const StartPolicyGenerationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + policyEngineId: S.String, + policyGenerationId: S.String, + name: S.String, + policyGenerationArn: S.String, + resource: Resource, + createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + updatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + status: PolicyGenerationStatus, + findings: S.optional(S.String), + statusReasons: PolicyStatusReasons, + }), +).annotate({ + identifier: "StartPolicyGenerationResponse", +}) as any as S.Schema; export interface GetPolicyGenerationRequest { policyGenerationId: string; policyEngineId: string; @@ -11270,50 +11051,48 @@ export interface GetPolicyGenerationResponse { findings?: string; statusReasons: string[]; } -export const GetPolicyGenerationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - policyEngineId: S.String, - policyGenerationId: S.String, - name: S.String, - policyGenerationArn: S.String, - resource: Resource, - createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - updatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - status: PolicyGenerationStatus, - findings: S.optional(S.String), - statusReasons: PolicyStatusReasons, - }), - ).annotate({ - identifier: "GetPolicyGenerationResponse", - }) as any as S.Schema; +export const GetPolicyGenerationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + policyEngineId: S.String, + policyGenerationId: S.String, + name: S.String, + policyGenerationArn: S.String, + resource: Resource, + createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + updatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + status: PolicyGenerationStatus, + findings: S.optional(S.String), + statusReasons: PolicyStatusReasons, + }), +).annotate({ + identifier: "GetPolicyGenerationResponse", +}) as any as S.Schema; export interface ListPolicyGenerationsRequest { nextToken?: string; maxResults?: number; policyEngineId: string; } -export const ListPolicyGenerationsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - policyEngineId: S.String.pipe(T.HttpLabel("policyEngineId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/policy-engines/{policyEngineId}/policy-generations", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListPolicyGenerationsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + policyEngineId: S.String.pipe(T.HttpLabel("policyEngineId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/policy-engines/{policyEngineId}/policy-generations", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListPolicyGenerationsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListPolicyGenerationsRequest", +}) as any as S.Schema; export interface PolicyGeneration { policyEngineId: string; policyGenerationId: string; @@ -11348,40 +11127,38 @@ export interface ListPolicyGenerationsResponse { policyGenerations: PolicyGeneration[]; nextToken?: string; } -export const ListPolicyGenerationsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - policyGenerations: PolicyGenerations, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListPolicyGenerationsResponse", - }) as any as S.Schema; +export const ListPolicyGenerationsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + policyGenerations: PolicyGenerations, + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListPolicyGenerationsResponse", +}) as any as S.Schema; export interface GetPolicyGenerationSummaryRequest { policyGenerationId: string; policyEngineId: string; } -export const GetPolicyGenerationSummaryRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - policyGenerationId: S.String.pipe(T.HttpLabel("policyGenerationId")), - policyEngineId: S.String.pipe(T.HttpLabel("policyEngineId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/policy-engines/{policyEngineId}/policy-generation-summaries/{policyGenerationId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetPolicyGenerationSummaryRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + policyGenerationId: S.String.pipe(T.HttpLabel("policyGenerationId")), + policyEngineId: S.String.pipe(T.HttpLabel("policyEngineId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/policy-engines/{policyEngineId}/policy-generation-summaries/{policyGenerationId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetPolicyGenerationSummaryRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetPolicyGenerationSummaryRequest", +}) as any as S.Schema; export interface GetPolicyGenerationSummaryResponse { policyEngineId: string; policyGenerationId: string; @@ -11393,51 +11170,49 @@ export interface GetPolicyGenerationSummaryResponse { status: PolicyGenerationStatus; findings?: string; } -export const GetPolicyGenerationSummaryResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - policyEngineId: S.String, - policyGenerationId: S.String, - name: S.String, - policyGenerationArn: S.String, - resource: Resource, - createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - updatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - status: PolicyGenerationStatus, - findings: S.optional(S.String), - }), - ).annotate({ - identifier: "GetPolicyGenerationSummaryResponse", - }) as any as S.Schema; +export const GetPolicyGenerationSummaryResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + policyEngineId: S.String, + policyGenerationId: S.String, + name: S.String, + policyGenerationArn: S.String, + resource: Resource, + createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + updatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + status: PolicyGenerationStatus, + findings: S.optional(S.String), + }), +).annotate({ + identifier: "GetPolicyGenerationSummaryResponse", +}) as any as S.Schema; export interface ListPolicyGenerationAssetsRequest { policyGenerationId: string; policyEngineId: string; nextToken?: string; maxResults?: number; } -export const ListPolicyGenerationAssetsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - policyGenerationId: S.String.pipe(T.HttpLabel("policyGenerationId")), - policyEngineId: S.String.pipe(T.HttpLabel("policyEngineId")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/policy-engines/{policyEngineId}/policy-generations/{policyGenerationId}/assets", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListPolicyGenerationAssetsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + policyGenerationId: S.String.pipe(T.HttpLabel("policyGenerationId")), + policyEngineId: S.String.pipe(T.HttpLabel("policyEngineId")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/policy-engines/{policyEngineId}/policy-generations/{policyGenerationId}/assets", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListPolicyGenerationAssetsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListPolicyGenerationAssetsRequest", +}) as any as S.Schema; export interface CedarPolicy { statement: string; } @@ -11449,10 +11224,7 @@ export interface PolicyGenerationDetails { policyGenerationAssetId: string; } export const PolicyGenerationDetails = /*@__PURE__*/ S.suspend(() => - S.Struct({ - policyGenerationId: S.String, - policyGenerationAssetId: S.String, - }), + S.Struct({ policyGenerationId: S.String, policyGenerationAssetId: S.String }), ).annotate({ identifier: "PolicyGenerationDetails", }) as any as S.Schema; @@ -11519,22 +11291,21 @@ export interface ListPolicyGenerationAssetsResponse { policyGenerationAssets?: PolicyGenerationAsset[]; nextToken?: string; } -export const ListPolicyGenerationAssetsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - policyGenerationAssets: S.optional(PolicyGenerationAssets), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListPolicyGenerationAssetsResponse", - }) as any as S.Schema; +export const ListPolicyGenerationAssetsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + policyGenerationAssets: S.optional(PolicyGenerationAssets), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListPolicyGenerationAssetsResponse", +}) as any as S.Schema; export interface ListPolicyGenerationSummariesRequest { nextToken?: string; maxResults?: number; policyEngineId: string; } -export const ListPolicyGenerationSummariesRequest = - /*@__PURE__*/ S.suspend(() => +export const ListPolicyGenerationSummariesRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), @@ -11552,9 +11323,9 @@ export const ListPolicyGenerationSummariesRequest = rules, ), ), - ).annotate({ - identifier: "ListPolicyGenerationSummariesRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListPolicyGenerationSummariesRequest", +}) as any as S.Schema; export interface PolicyGenerationSummary { policyEngineId: string; policyGenerationId: string; @@ -11589,15 +11360,15 @@ export interface ListPolicyGenerationSummariesResponse { policyGenerations: PolicyGenerationSummary[]; nextToken?: string; } -export const ListPolicyGenerationSummariesResponse = - /*@__PURE__*/ S.suspend(() => +export const ListPolicyGenerationSummariesResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ policyGenerations: PolicyGenerationSummaryList, nextToken: S.optional(S.String), }), - ).annotate({ - identifier: "ListPolicyGenerationSummariesResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListPolicyGenerationSummariesResponse", +}) as any as S.Schema; export type PolicyValidationMode = | "FAIL_ON_ANY_FINDINGS" | "IGNORE_ALL_FINDINGS" @@ -12024,12 +11795,11 @@ export interface ListPolicySummariesResponse { policies: PolicySummary[]; nextToken?: string; } -export const ListPolicySummariesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ policies: PolicySummaryList, nextToken: S.optional(S.String) }), - ).annotate({ - identifier: "ListPolicySummariesResponse", - }) as any as S.Schema; +export const ListPolicySummariesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ policies: PolicySummaryList, nextToken: S.optional(S.String) }), +).annotate({ + identifier: "ListPolicySummariesResponse", +}) as any as S.Schema; export type DescriptorType = | "MCP" | "A2A" @@ -12165,32 +11935,31 @@ export interface RegistryRecordOAuthCredentialProvider { scopes?: string[]; customParameters?: { [key: string]: string | undefined }; } -export const RegistryRecordOAuthCredentialProvider = - /*@__PURE__*/ S.suspend(() => +export const RegistryRecordOAuthCredentialProvider = /*@__PURE__*/ S.suspend( + () => S.Struct({ providerArn: S.String, grantType: S.optional(RegistryRecordOAuthGrantType), scopes: S.optional(ScopeList), customParameters: S.optional(CustomParameterMap), }), - ).annotate({ - identifier: "RegistryRecordOAuthCredentialProvider", - }) as any as S.Schema; +).annotate({ + identifier: "RegistryRecordOAuthCredentialProvider", +}) as any as S.Schema; export interface RegistryRecordIamCredentialProvider { roleArn?: string; service?: string; region?: string; } -export const RegistryRecordIamCredentialProvider = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - roleArn: S.optional(S.String), - service: S.optional(S.String), - region: S.optional(S.String), - }), - ).annotate({ - identifier: "RegistryRecordIamCredentialProvider", - }) as any as S.Schema; +export const RegistryRecordIamCredentialProvider = /*@__PURE__*/ S.suspend(() => + S.Struct({ + roleArn: S.optional(S.String), + service: S.optional(S.String), + region: S.optional(S.String), + }), +).annotate({ + identifier: "RegistryRecordIamCredentialProvider", +}) as any as S.Schema; export type RegistryRecordCredentialProviderUnion = | { oauthCredentialProvider: RegistryRecordOAuthCredentialProvider; @@ -12200,13 +11969,10 @@ export type RegistryRecordCredentialProviderUnion = oauthCredentialProvider?: never; iamCredentialProvider: RegistryRecordIamCredentialProvider; }; -export const RegistryRecordCredentialProviderUnion = - /*@__PURE__*/ S.Union([ - S.Struct({ - oauthCredentialProvider: RegistryRecordOAuthCredentialProvider, - }), - S.Struct({ iamCredentialProvider: RegistryRecordIamCredentialProvider }), - ]); +export const RegistryRecordCredentialProviderUnion = /*@__PURE__*/ S.Union([ + S.Struct({ oauthCredentialProvider: RegistryRecordOAuthCredentialProvider }), + S.Struct({ iamCredentialProvider: RegistryRecordIamCredentialProvider }), +]); export interface RegistryRecordCredentialProviderConfiguration { credentialProviderType: RegistryRecordCredentialProviderType; credentialProvider: RegistryRecordCredentialProviderUnion; @@ -12228,26 +11994,24 @@ export interface FromUrlSynchronizationConfiguration { url: string; credentialProviderConfigurations?: RegistryRecordCredentialProviderConfiguration[]; } -export const FromUrlSynchronizationConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - url: S.String, - credentialProviderConfigurations: S.optional( - RegistryRecordCredentialProviderConfigurationList, - ), - }), - ).annotate({ - identifier: "FromUrlSynchronizationConfiguration", - }) as any as S.Schema; +export const FromUrlSynchronizationConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + url: S.String, + credentialProviderConfigurations: S.optional( + RegistryRecordCredentialProviderConfigurationList, + ), + }), +).annotate({ + identifier: "FromUrlSynchronizationConfiguration", +}) as any as S.Schema; export interface SynchronizationConfiguration { fromUrl?: FromUrlSynchronizationConfiguration; } -export const SynchronizationConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ fromUrl: S.optional(FromUrlSynchronizationConfiguration) }), - ).annotate({ - identifier: "SynchronizationConfiguration", - }) as any as S.Schema; +export const SynchronizationConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ fromUrl: S.optional(FromUrlSynchronizationConfiguration) }), +).annotate({ + identifier: "SynchronizationConfiguration", +}) as any as S.Schema; export interface CreateRegistryRecordRequest { registryId: string; name: string; @@ -12259,31 +12023,30 @@ export interface CreateRegistryRecordRequest { synchronizationConfiguration?: SynchronizationConfiguration; clientToken?: string; } -export const CreateRegistryRecordRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - registryId: S.String.pipe(T.HttpLabel("registryId")), - name: S.String, - description: S.optional(SensitiveString), - descriptorType: DescriptorType, - descriptors: S.optional(Descriptors), - recordVersion: S.optional(S.String), - synchronizationType: S.optional(SynchronizationType), - synchronizationConfiguration: S.optional(SynchronizationConfiguration), - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/registries/{registryId}/records" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateRegistryRecordRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + registryId: S.String.pipe(T.HttpLabel("registryId")), + name: S.String, + description: S.optional(SensitiveString), + descriptorType: DescriptorType, + descriptors: S.optional(Descriptors), + recordVersion: S.optional(S.String), + synchronizationType: S.optional(SynchronizationType), + synchronizationConfiguration: S.optional(SynchronizationConfiguration), + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/registries/{registryId}/records" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateRegistryRecordRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateRegistryRecordRequest", +}) as any as S.Schema; export type RegistryRecordStatus = | "DRAFT" | "PENDING_APPROVAL" @@ -12300,12 +12063,11 @@ export interface CreateRegistryRecordResponse { recordArn: string; status: RegistryRecordStatus; } -export const CreateRegistryRecordResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ recordArn: S.String, status: RegistryRecordStatus }), - ).annotate({ - identifier: "CreateRegistryRecordResponse", - }) as any as S.Schema; +export const CreateRegistryRecordResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ recordArn: S.String, status: RegistryRecordStatus }), +).annotate({ + identifier: "CreateRegistryRecordResponse", +}) as any as S.Schema; export interface GetRegistryRecordRequest { registryId: string; recordId: string; @@ -12438,24 +12200,22 @@ export interface UpdatedAgentSkillsDescriptorFields { skillMd?: UpdatedSkillMdDefinition; skillDefinition?: UpdatedSkillDefinition; } -export const UpdatedAgentSkillsDescriptorFields = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - skillMd: S.optional(UpdatedSkillMdDefinition), - skillDefinition: S.optional(UpdatedSkillDefinition), - }), - ).annotate({ - identifier: "UpdatedAgentSkillsDescriptorFields", - }) as any as S.Schema; +export const UpdatedAgentSkillsDescriptorFields = /*@__PURE__*/ S.suspend(() => + S.Struct({ + skillMd: S.optional(UpdatedSkillMdDefinition), + skillDefinition: S.optional(UpdatedSkillDefinition), + }), +).annotate({ + identifier: "UpdatedAgentSkillsDescriptorFields", +}) as any as S.Schema; export interface UpdatedAgentSkillsDescriptor { optionalValue?: UpdatedAgentSkillsDescriptorFields; } -export const UpdatedAgentSkillsDescriptor = - /*@__PURE__*/ S.suspend(() => - S.Struct({ optionalValue: S.optional(UpdatedAgentSkillsDescriptorFields) }), - ).annotate({ - identifier: "UpdatedAgentSkillsDescriptor", - }) as any as S.Schema; +export const UpdatedAgentSkillsDescriptor = /*@__PURE__*/ S.suspend(() => + S.Struct({ optionalValue: S.optional(UpdatedAgentSkillsDescriptorFields) }), +).annotate({ + identifier: "UpdatedAgentSkillsDescriptor", +}) as any as S.Schema; export interface UpdatedDescriptorsUnion { mcp?: UpdatedMcpDescriptor; a2a?: UpdatedA2aDescriptor; @@ -12491,12 +12251,11 @@ export const UpdatedSynchronizationType = /*@__PURE__*/ S.suspend(() => export interface UpdatedSynchronizationConfiguration { optionalValue?: SynchronizationConfiguration; } -export const UpdatedSynchronizationConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ optionalValue: S.optional(SynchronizationConfiguration) }), - ).annotate({ - identifier: "UpdatedSynchronizationConfiguration", - }) as any as S.Schema; +export const UpdatedSynchronizationConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ optionalValue: S.optional(SynchronizationConfiguration) }), +).annotate({ + identifier: "UpdatedSynchronizationConfiguration", +}) as any as S.Schema; export interface UpdateRegistryRecordRequest { registryId: string; recordId: string; @@ -12509,37 +12268,36 @@ export interface UpdateRegistryRecordRequest { synchronizationConfiguration?: UpdatedSynchronizationConfiguration; triggerSynchronization?: boolean; } -export const UpdateRegistryRecordRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - registryId: S.String.pipe(T.HttpLabel("registryId")), - recordId: S.String.pipe(T.HttpLabel("recordId")), - name: S.optional(S.String), - description: S.optional(UpdatedDescription), - descriptorType: S.optional(DescriptorType), - descriptors: S.optional(UpdatedDescriptors), - recordVersion: S.optional(S.String), - synchronizationType: S.optional(UpdatedSynchronizationType), - synchronizationConfiguration: S.optional( - UpdatedSynchronizationConfiguration, - ), - triggerSynchronization: S.optional(S.Boolean), - }).pipe( - T.all( - T.Http({ - method: "PATCH", - uri: "/registries/{registryId}/records/{recordId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateRegistryRecordRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + registryId: S.String.pipe(T.HttpLabel("registryId")), + recordId: S.String.pipe(T.HttpLabel("recordId")), + name: S.optional(S.String), + description: S.optional(UpdatedDescription), + descriptorType: S.optional(DescriptorType), + descriptors: S.optional(UpdatedDescriptors), + recordVersion: S.optional(S.String), + synchronizationType: S.optional(UpdatedSynchronizationType), + synchronizationConfiguration: S.optional( + UpdatedSynchronizationConfiguration, ), - ).annotate({ - identifier: "UpdateRegistryRecordRequest", - }) as any as S.Schema; + triggerSynchronization: S.optional(S.Boolean), + }).pipe( + T.all( + T.Http({ + method: "PATCH", + uri: "/registries/{registryId}/records/{recordId}", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "UpdateRegistryRecordRequest", +}) as any as S.Schema; export interface UpdateRegistryRecordResponse { registryArn: string; recordArn: string; @@ -12556,57 +12314,56 @@ export interface UpdateRegistryRecordResponse { synchronizationType?: SynchronizationType; synchronizationConfiguration?: SynchronizationConfiguration; } -export const UpdateRegistryRecordResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - registryArn: S.String, - recordArn: S.String, - recordId: S.String, - name: S.String, - description: S.optional(SensitiveString), - descriptorType: DescriptorType, - descriptors: Descriptors, - recordVersion: S.optional(S.String), - status: RegistryRecordStatus, - createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - updatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - statusReason: S.optional(S.String), - synchronizationType: S.optional(SynchronizationType), - synchronizationConfiguration: S.optional(SynchronizationConfiguration), - }), - ).annotate({ - identifier: "UpdateRegistryRecordResponse", - }) as any as S.Schema; +export const UpdateRegistryRecordResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + registryArn: S.String, + recordArn: S.String, + recordId: S.String, + name: S.String, + description: S.optional(SensitiveString), + descriptorType: DescriptorType, + descriptors: Descriptors, + recordVersion: S.optional(S.String), + status: RegistryRecordStatus, + createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + updatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + statusReason: S.optional(S.String), + synchronizationType: S.optional(SynchronizationType), + synchronizationConfiguration: S.optional(SynchronizationConfiguration), + }), +).annotate({ + identifier: "UpdateRegistryRecordResponse", +}) as any as S.Schema; export interface DeleteRegistryRecordRequest { registryId: string; recordId: string; } -export const DeleteRegistryRecordRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - registryId: S.String.pipe(T.HttpLabel("registryId")), - recordId: S.String.pipe(T.HttpLabel("recordId")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/registries/{registryId}/records/{recordId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteRegistryRecordRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + registryId: S.String.pipe(T.HttpLabel("registryId")), + recordId: S.String.pipe(T.HttpLabel("recordId")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/registries/{registryId}/records/{recordId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteRegistryRecordRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteRegistryRecordRequest", +}) as any as S.Schema; export interface DeleteRegistryRecordResponse {} -export const DeleteRegistryRecordResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteRegistryRecordResponse", - }) as any as S.Schema; +export const DeleteRegistryRecordResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteRegistryRecordResponse", +}) as any as S.Schema; export interface ListRegistryRecordsRequest { registryId: string; maxResults?: number; @@ -12674,21 +12431,20 @@ export interface ListRegistryRecordsResponse { registryRecords: RegistryRecordSummary[]; nextToken?: string; } -export const ListRegistryRecordsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - registryRecords: RegistryRecordSummaryList, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListRegistryRecordsResponse", - }) as any as S.Schema; +export const ListRegistryRecordsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + registryRecords: RegistryRecordSummaryList, + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListRegistryRecordsResponse", +}) as any as S.Schema; export interface SubmitRegistryRecordForApprovalRequest { registryId: string; recordId: string; } -export const SubmitRegistryRecordForApprovalRequest = - /*@__PURE__*/ S.suspend(() => +export const SubmitRegistryRecordForApprovalRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ registryId: S.String.pipe(T.HttpLabel("registryId")), recordId: S.String.pipe(T.HttpLabel("recordId")), @@ -12705,9 +12461,9 @@ export const SubmitRegistryRecordForApprovalRequest = rules, ), ), - ).annotate({ - identifier: "SubmitRegistryRecordForApprovalRequest", - }) as any as S.Schema; +).annotate({ + identifier: "SubmitRegistryRecordForApprovalRequest", +}) as any as S.Schema; export interface SubmitRegistryRecordForApprovalResponse { registryArn: string; recordArn: string; @@ -12715,8 +12471,8 @@ export interface SubmitRegistryRecordForApprovalResponse { status: RegistryRecordStatus; updatedAt: Date; } -export const SubmitRegistryRecordForApprovalResponse = - /*@__PURE__*/ S.suspend(() => +export const SubmitRegistryRecordForApprovalResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ registryArn: S.String, recordArn: S.String, @@ -12724,38 +12480,37 @@ export const SubmitRegistryRecordForApprovalResponse = status: RegistryRecordStatus, updatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), }), - ).annotate({ - identifier: "SubmitRegistryRecordForApprovalResponse", - }) as any as S.Schema; +).annotate({ + identifier: "SubmitRegistryRecordForApprovalResponse", +}) as any as S.Schema; export interface UpdateRegistryRecordStatusRequest { registryId: string; recordId: string; status: RegistryRecordStatus; statusReason: string; } -export const UpdateRegistryRecordStatusRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - registryId: S.String.pipe(T.HttpLabel("registryId")), - recordId: S.String.pipe(T.HttpLabel("recordId")), - status: RegistryRecordStatus, - statusReason: S.String, - }).pipe( - T.all( - T.Http({ - method: "PATCH", - uri: "/registries/{registryId}/records/{recordId}/status", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateRegistryRecordStatusRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + registryId: S.String.pipe(T.HttpLabel("registryId")), + recordId: S.String.pipe(T.HttpLabel("recordId")), + status: RegistryRecordStatus, + statusReason: S.String, + }).pipe( + T.all( + T.Http({ + method: "PATCH", + uri: "/registries/{registryId}/records/{recordId}/status", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateRegistryRecordStatusRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateRegistryRecordStatusRequest", +}) as any as S.Schema; export interface UpdateRegistryRecordStatusResponse { registryArn: string; recordArn: string; @@ -12764,19 +12519,18 @@ export interface UpdateRegistryRecordStatusResponse { statusReason: string; updatedAt: Date; } -export const UpdateRegistryRecordStatusResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - registryArn: S.String, - recordArn: S.String, - recordId: S.String, - status: RegistryRecordStatus, - statusReason: S.String, - updatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - }), - ).annotate({ - identifier: "UpdateRegistryRecordStatusResponse", - }) as any as S.Schema; +export const UpdateRegistryRecordStatusResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + registryArn: S.String, + recordArn: S.String, + recordId: S.String, + status: RegistryRecordStatus, + statusReason: S.String, + updatedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + }), +).annotate({ + identifier: "UpdateRegistryRecordStatusResponse", +}) as any as S.Schema; export type RegistryAuthorizerType = "CUSTOM_JWT" | "AWS_IAM" | (string & {}); export const RegistryAuthorizerType = /*@__PURE__*/ S.String; export interface ApprovalConfiguration { @@ -12884,12 +12638,11 @@ export const GetRegistryResponse = /*@__PURE__*/ S.suspend(() => export interface UpdatedApprovalConfiguration { optionalValue?: ApprovalConfiguration; } -export const UpdatedApprovalConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ optionalValue: S.optional(ApprovalConfiguration) }), - ).annotate({ - identifier: "UpdatedApprovalConfiguration", - }) as any as S.Schema; +export const UpdatedApprovalConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ optionalValue: S.optional(ApprovalConfiguration) }), +).annotate({ + identifier: "UpdatedApprovalConfiguration", +}) as any as S.Schema; export interface UpdateRegistryRequest { registryId: string; name?: string; @@ -13046,44 +12799,42 @@ export interface CreateWorkloadIdentityRequest { allowedResourceOauth2ReturnUrls?: string[]; tags?: { [key: string]: string | undefined }; } -export const CreateWorkloadIdentityRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.String, - allowedResourceOauth2ReturnUrls: S.optional( - ResourceOauth2ReturnUrlListType, - ), - tags: S.optional(TagsMap), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/identities/CreateWorkloadIdentity" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateWorkloadIdentityRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.String, + allowedResourceOauth2ReturnUrls: S.optional( + ResourceOauth2ReturnUrlListType, ), - ).annotate({ - identifier: "CreateWorkloadIdentityRequest", - }) as any as S.Schema; + tags: S.optional(TagsMap), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/identities/CreateWorkloadIdentity" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "CreateWorkloadIdentityRequest", +}) as any as S.Schema; export interface CreateWorkloadIdentityResponse { name: string; workloadIdentityArn: string; allowedResourceOauth2ReturnUrls?: string[]; } -export const CreateWorkloadIdentityResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.String, - workloadIdentityArn: S.String, - allowedResourceOauth2ReturnUrls: S.optional( - ResourceOauth2ReturnUrlListType, - ), - }), - ).annotate({ - identifier: "CreateWorkloadIdentityResponse", - }) as any as S.Schema; +export const CreateWorkloadIdentityResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.String, + workloadIdentityArn: S.String, + allowedResourceOauth2ReturnUrls: S.optional( + ResourceOauth2ReturnUrlListType, + ), + }), +).annotate({ + identifier: "CreateWorkloadIdentityResponse", +}) as any as S.Schema; export interface GetWorkloadIdentityRequest { name: string; } @@ -13108,44 +12859,42 @@ export interface GetWorkloadIdentityResponse { createdTime: Date; lastUpdatedTime: Date; } -export const GetWorkloadIdentityResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.String, - workloadIdentityArn: S.String, - allowedResourceOauth2ReturnUrls: S.optional( - ResourceOauth2ReturnUrlListType, - ), - createdTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - lastUpdatedTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - }), - ).annotate({ - identifier: "GetWorkloadIdentityResponse", - }) as any as S.Schema; +export const GetWorkloadIdentityResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.String, + workloadIdentityArn: S.String, + allowedResourceOauth2ReturnUrls: S.optional( + ResourceOauth2ReturnUrlListType, + ), + createdTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + lastUpdatedTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + }), +).annotate({ + identifier: "GetWorkloadIdentityResponse", +}) as any as S.Schema; export interface UpdateWorkloadIdentityRequest { name: string; allowedResourceOauth2ReturnUrls?: string[]; } -export const UpdateWorkloadIdentityRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.String, - allowedResourceOauth2ReturnUrls: S.optional( - ResourceOauth2ReturnUrlListType, - ), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/identities/UpdateWorkloadIdentity" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateWorkloadIdentityRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.String, + allowedResourceOauth2ReturnUrls: S.optional( + ResourceOauth2ReturnUrlListType, ), - ).annotate({ - identifier: "UpdateWorkloadIdentityRequest", - }) as any as S.Schema; + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/identities/UpdateWorkloadIdentity" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "UpdateWorkloadIdentityRequest", +}) as any as S.Schema; export interface UpdateWorkloadIdentityResponse { name: string; workloadIdentityArn: string; @@ -13153,65 +12902,63 @@ export interface UpdateWorkloadIdentityResponse { createdTime: Date; lastUpdatedTime: Date; } -export const UpdateWorkloadIdentityResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.String, - workloadIdentityArn: S.String, - allowedResourceOauth2ReturnUrls: S.optional( - ResourceOauth2ReturnUrlListType, - ), - createdTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - lastUpdatedTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - }), - ).annotate({ - identifier: "UpdateWorkloadIdentityResponse", - }) as any as S.Schema; +export const UpdateWorkloadIdentityResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.String, + workloadIdentityArn: S.String, + allowedResourceOauth2ReturnUrls: S.optional( + ResourceOauth2ReturnUrlListType, + ), + createdTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + lastUpdatedTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + }), +).annotate({ + identifier: "UpdateWorkloadIdentityResponse", +}) as any as S.Schema; export interface DeleteWorkloadIdentityRequest { name: string; } -export const DeleteWorkloadIdentityRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ name: S.String }).pipe( - T.all( - T.Http({ method: "POST", uri: "/identities/DeleteWorkloadIdentity" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteWorkloadIdentityRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ name: S.String }).pipe( + T.all( + T.Http({ method: "POST", uri: "/identities/DeleteWorkloadIdentity" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteWorkloadIdentityRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteWorkloadIdentityRequest", +}) as any as S.Schema; export interface DeleteWorkloadIdentityResponse {} -export const DeleteWorkloadIdentityResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteWorkloadIdentityResponse", - }) as any as S.Schema; +export const DeleteWorkloadIdentityResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteWorkloadIdentityResponse", +}) as any as S.Schema; export interface ListWorkloadIdentitiesRequest { nextToken?: string; maxResults?: number; } -export const ListWorkloadIdentitiesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - nextToken: S.optional(S.String), - maxResults: S.optional(S.Number), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/identities/ListWorkloadIdentities" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListWorkloadIdentitiesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + nextToken: S.optional(S.String), + maxResults: S.optional(S.Number), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/identities/ListWorkloadIdentities" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListWorkloadIdentitiesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListWorkloadIdentitiesRequest", +}) as any as S.Schema; export interface WorkloadIdentityType { name: string; workloadIdentityArn: string; @@ -13227,32 +12974,35 @@ export interface ListWorkloadIdentitiesResponse { workloadIdentities: WorkloadIdentityType[]; nextToken?: string; } -export const ListWorkloadIdentitiesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - workloadIdentities: WorkloadIdentityList, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListWorkloadIdentitiesResponse", - }) as any as S.Schema; +export const ListWorkloadIdentitiesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + workloadIdentities: WorkloadIdentityList, + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListWorkloadIdentitiesResponse", +}) as any as S.Schema; //# Errors export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", { message: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", @@ -13261,44 +13011,52 @@ export class ValidationException extends S.TaggedErrorClass reason: ValidationExceptionReason, fieldList: S.optional(ValidationExceptionFieldList), }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class UnauthorizedException extends S.TaggedErrorClass()( "UnauthorizedException", { message: S.optional(S.String) }, + T.HttpError(401), ).pipe(C.withAuthError) {} export class ConcurrentModificationException extends S.TaggedErrorClass()( "ConcurrentModificationException", { message: S.String }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", { message: S.optional(S.String) }, + T.HttpError(402), ).pipe(C.withQuotaError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class DecryptionFailure extends S.TaggedErrorClass()( "DecryptionFailure", { message: S.String }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class EncryptionFailure extends S.TaggedErrorClass()( "EncryptionFailure", { message: S.String }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ResourceLimitExceededException extends S.TaggedErrorClass()( "ResourceLimitExceededException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ServiceException extends S.TaggedErrorClass()( "ServiceException", { message: S.optional(S.String) }, - T.Retryable(), + T.all(T.HttpError(500), T.Retryable()), ).pipe(C.withServerError, C.withRetryableError) {} export class ThrottledException extends S.TaggedErrorClass()( "ThrottledException", { message: S.optional(S.String) }, - T.Retryable(), + T.all(T.HttpError(429), T.Retryable()), ).pipe(C.withThrottlingError, C.withRetryableError) {} //# Operations diff --git a/packages/aws/src/services/bedrock-agentcore.ts b/packages/aws/src/services/bedrock-agentcore.ts index c284abfeb2..ef799b85cc 100644 --- a/packages/aws/src/services/bedrock-agentcore.ts +++ b/packages/aws/src/services/bedrock-agentcore.ts @@ -5572,7 +5572,7 @@ export interface Event { sessionId: string; eventId: string; eventTimestamp: Date; - payload: PayloadType[]; + payload?: PayloadType[]; branch?: Branch; metadata?: { [key: string]: MetadataValue | undefined }; } @@ -5583,7 +5583,7 @@ export const Event = /*@__PURE__*/ S.suspend(() => sessionId: S.String, eventId: S.String, eventTimestamp: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - payload: PayloadTypeList, + payload: S.optional(PayloadTypeList), branch: S.optional(Branch), metadata: S.optional(MetadataMap), }), @@ -5723,7 +5723,7 @@ export const GetMemoryRecordInput = /*@__PURE__*/ S.suspend(() => export interface MemoryRecord { memoryRecordId: string; content: MemoryContent; - memoryStrategyId: string; + memoryStrategyId?: string; namespaces: string[]; createdAt: Date; metadata?: { [key: string]: MemoryRecordMetadataValue | undefined }; @@ -5732,7 +5732,7 @@ export const MemoryRecord = /*@__PURE__*/ S.suspend(() => S.Struct({ memoryRecordId: S.String, content: MemoryContent, - memoryStrategyId: S.String, + memoryStrategyId: S.optional(S.String), namespaces: NamespacesList, createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), metadata: S.optional(MemoryRecordMetadataMap), @@ -6058,7 +6058,7 @@ export const ListMemoryRecordsInput = /*@__PURE__*/ S.suspend(() => export interface MemoryRecordSummary { memoryRecordId: string; content: MemoryContent; - memoryStrategyId: string; + memoryStrategyId?: string; namespaces: string[]; createdAt: Date; score?: number; @@ -6068,7 +6068,7 @@ export const MemoryRecordSummary = /*@__PURE__*/ S.suspend(() => S.Struct({ memoryRecordId: S.String, content: MemoryContent, - memoryStrategyId: S.String, + memoryStrategyId: S.optional(S.String), namespaces: NamespacesList, createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), score: S.optional(S.Number), @@ -7228,22 +7228,27 @@ export const SearchRegistryRecordsResponse = export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", { message: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class UnauthorizedException extends S.TaggedErrorClass()( "UnauthorizedException", { message: S.optional(S.String) }, + T.HttpError(401), ).pipe(C.withAuthError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", @@ -7252,39 +7257,47 @@ export class ValidationException extends S.TaggedErrorClass reason: ValidationExceptionReason, fieldList: S.optional(ValidationExceptionFieldList), }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", { message: S.optional(S.String) }, + T.HttpError(402), ).pipe(C.withQuotaError) {} export class RuntimeClientError extends S.TaggedErrorClass()( "RuntimeClientError", { message: S.optional(S.String) }, + T.HttpError(424), ) {} export class RetryableConflictException extends S.TaggedErrorClass()( "RetryableConflictException", { message: S.String }, - T.Retryable(), + T.all(T.HttpError(409), T.Retryable()), ).pipe(C.withConflictError, C.withRetryableError) {} export class DuplicateIdException extends S.TaggedErrorClass()( "DuplicateIdException", { message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ServiceException extends S.TaggedErrorClass()( "ServiceException", { message: S.String }, + T.HttpError(500), ).pipe(C.withServerError) {} export class ThrottledException extends S.TaggedErrorClass()( "ThrottledException", { message: S.String }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class InvalidInputException extends S.TaggedErrorClass()( "InvalidInputException", { message: S.String }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} //# Operations diff --git a/packages/aws/src/services/chatbot.ts b/packages/aws/src/services/chatbot.ts index 3ef867456c..b026ce8ad3 100644 --- a/packages/aws/src/services/chatbot.ts +++ b/packages/aws/src/services/chatbot.ts @@ -127,27 +127,27 @@ export interface AssociateToConfigurationRequest { Resource: string; ChatConfiguration: string; } -export const AssociateToConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Resource: S.String, ChatConfiguration: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/associate-to-configuration" }), - svc, - auth, - proto, - ver, - rules, - ), +export const AssociateToConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Resource: S.String, ChatConfiguration: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/associate-to-configuration" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "AssociateToConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "AssociateToConfigurationRequest", +}) as any as S.Schema; export interface AssociateToConfigurationResult {} -export const AssociateToConfigurationResult = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "AssociateToConfigurationResult", - }) as any as S.Schema; +export const AssociateToConfigurationResult = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "AssociateToConfigurationResult", +}) as any as S.Schema; export type SnsTopicArnList = string[]; export const SnsTopicArnList = /*@__PURE__*/ S.Array(S.String); export interface Tag { @@ -168,8 +168,8 @@ export interface CreateChimeWebhookConfigurationRequest { LoggingLevel?: string; Tags?: Tag[]; } -export const CreateChimeWebhookConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const CreateChimeWebhookConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ WebhookDescription: SensitiveString, WebhookUrl: SensitiveString, @@ -189,9 +189,9 @@ export const CreateChimeWebhookConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "CreateChimeWebhookConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "CreateChimeWebhookConfigurationRequest", +}) as any as S.Schema; export interface ChimeWebhookConfiguration { WebhookDescription: string | redacted.Redacted; ChatConfigurationArn: string; @@ -221,14 +221,14 @@ export const ChimeWebhookConfiguration = /*@__PURE__*/ S.suspend(() => export interface CreateChimeWebhookConfigurationResult { WebhookConfiguration?: ChimeWebhookConfiguration; } -export const CreateChimeWebhookConfigurationResult = - /*@__PURE__*/ S.suspend(() => +export const CreateChimeWebhookConfigurationResult = /*@__PURE__*/ S.suspend( + () => S.Struct({ WebhookConfiguration: S.optional(ChimeWebhookConfiguration), }).pipe(ns), - ).annotate({ - identifier: "CreateChimeWebhookConfigurationResult", - }) as any as S.Schema; +).annotate({ + identifier: "CreateChimeWebhookConfigurationResult", +}) as any as S.Schema; export type GuardrailPolicyArnList = string[]; export const GuardrailPolicyArnList = /*@__PURE__*/ S.Array(S.String); export interface CreateTeamsChannelConfigurationRequest { @@ -245,8 +245,8 @@ export interface CreateTeamsChannelConfigurationRequest { UserAuthorizationRequired?: boolean; Tags?: Tag[]; } -export const CreateTeamsChannelConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const CreateTeamsChannelConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ ChannelId: S.String, ChannelName: S.optional(SensitiveString), @@ -274,9 +274,9 @@ export const CreateTeamsChannelConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "CreateTeamsChannelConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "CreateTeamsChannelConfigurationRequest", +}) as any as S.Schema; export interface TeamsChannelConfiguration { ChannelId: string; ChannelName?: string | redacted.Redacted; @@ -318,14 +318,14 @@ export const TeamsChannelConfiguration = /*@__PURE__*/ S.suspend(() => export interface CreateTeamsChannelConfigurationResult { ChannelConfiguration?: TeamsChannelConfiguration; } -export const CreateTeamsChannelConfigurationResult = - /*@__PURE__*/ S.suspend(() => +export const CreateTeamsChannelConfigurationResult = /*@__PURE__*/ S.suspend( + () => S.Struct({ ChannelConfiguration: S.optional(TeamsChannelConfiguration), }).pipe(ns), - ).annotate({ - identifier: "CreateTeamsChannelConfigurationResult", - }) as any as S.Schema; +).annotate({ + identifier: "CreateTeamsChannelConfigurationResult", +}) as any as S.Schema; export interface CreateSlackChannelConfigurationRequest { SlackTeamId: string; SlackChannelId: string; @@ -338,8 +338,8 @@ export interface CreateSlackChannelConfigurationRequest { UserAuthorizationRequired?: boolean; Tags?: Tag[]; } -export const CreateSlackChannelConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const CreateSlackChannelConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ SlackTeamId: S.String, SlackChannelId: S.String, @@ -362,9 +362,9 @@ export const CreateSlackChannelConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "CreateSlackChannelConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "CreateSlackChannelConfigurationRequest", +}) as any as S.Schema; export interface SlackChannelConfiguration { SlackTeamName: string; SlackTeamId: string; @@ -404,19 +404,19 @@ export const SlackChannelConfiguration = /*@__PURE__*/ S.suspend(() => export interface CreateSlackChannelConfigurationResult { ChannelConfiguration?: SlackChannelConfiguration; } -export const CreateSlackChannelConfigurationResult = - /*@__PURE__*/ S.suspend(() => +export const CreateSlackChannelConfigurationResult = /*@__PURE__*/ S.suspend( + () => S.Struct({ ChannelConfiguration: S.optional(SlackChannelConfiguration), }).pipe(ns), - ).annotate({ - identifier: "CreateSlackChannelConfigurationResult", - }) as any as S.Schema; +).annotate({ + identifier: "CreateSlackChannelConfigurationResult", +}) as any as S.Schema; export interface DeleteChimeWebhookConfigurationRequest { ChatConfigurationArn: string; } -export const DeleteChimeWebhookConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const DeleteChimeWebhookConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ ChatConfigurationArn: S.String }).pipe( T.all( ns, @@ -428,19 +428,20 @@ export const DeleteChimeWebhookConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "DeleteChimeWebhookConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteChimeWebhookConfigurationRequest", +}) as any as S.Schema; export interface DeleteChimeWebhookConfigurationResult {} -export const DeleteChimeWebhookConfigurationResult = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteChimeWebhookConfigurationResult", - }) as any as S.Schema; +export const DeleteChimeWebhookConfigurationResult = /*@__PURE__*/ S.suspend( + () => S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteChimeWebhookConfigurationResult", +}) as any as S.Schema; export interface DeleteTeamsChannelConfigurationRequest { ChatConfigurationArn: string; } -export const DeleteTeamsChannelConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const DeleteTeamsChannelConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ ChatConfigurationArn: S.String }).pipe( T.all( ns, @@ -455,44 +456,45 @@ export const DeleteTeamsChannelConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "DeleteTeamsChannelConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteTeamsChannelConfigurationRequest", +}) as any as S.Schema; export interface DeleteTeamsChannelConfigurationResult {} -export const DeleteTeamsChannelConfigurationResult = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteTeamsChannelConfigurationResult", - }) as any as S.Schema; +export const DeleteTeamsChannelConfigurationResult = /*@__PURE__*/ S.suspend( + () => S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteTeamsChannelConfigurationResult", +}) as any as S.Schema; export interface DeleteTeamsConfiguredTeamRequest { TeamId: string; } -export const DeleteTeamsConfiguredTeamRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ TeamId: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/delete-ms-teams-configured-teams" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteTeamsConfiguredTeamRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ TeamId: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/delete-ms-teams-configured-teams" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteTeamsConfiguredTeamRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteTeamsConfiguredTeamRequest", +}) as any as S.Schema; export interface DeleteTeamsConfiguredTeamResult {} -export const DeleteTeamsConfiguredTeamResult = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteTeamsConfiguredTeamResult", - }) as any as S.Schema; +export const DeleteTeamsConfiguredTeamResult = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteTeamsConfiguredTeamResult", +}) as any as S.Schema; export interface DeleteMicrosoftTeamsUserIdentityRequest { ChatConfigurationArn: string; UserId: string; } -export const DeleteMicrosoftTeamsUserIdentityRequest = - /*@__PURE__*/ S.suspend(() => +export const DeleteMicrosoftTeamsUserIdentityRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ ChatConfigurationArn: S.String, UserId: S.String }).pipe( T.all( ns, @@ -504,19 +506,20 @@ export const DeleteMicrosoftTeamsUserIdentityRequest = rules, ), ), - ).annotate({ - identifier: "DeleteMicrosoftTeamsUserIdentityRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteMicrosoftTeamsUserIdentityRequest", +}) as any as S.Schema; export interface DeleteMicrosoftTeamsUserIdentityResult {} -export const DeleteMicrosoftTeamsUserIdentityResult = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteMicrosoftTeamsUserIdentityResult", - }) as any as S.Schema; +export const DeleteMicrosoftTeamsUserIdentityResult = /*@__PURE__*/ S.suspend( + () => S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteMicrosoftTeamsUserIdentityResult", +}) as any as S.Schema; export interface DeleteSlackChannelConfigurationRequest { ChatConfigurationArn: string; } -export const DeleteSlackChannelConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const DeleteSlackChannelConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ ChatConfigurationArn: S.String }).pipe( T.all( ns, @@ -528,49 +531,50 @@ export const DeleteSlackChannelConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "DeleteSlackChannelConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteSlackChannelConfigurationRequest", +}) as any as S.Schema; export interface DeleteSlackChannelConfigurationResult {} -export const DeleteSlackChannelConfigurationResult = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteSlackChannelConfigurationResult", - }) as any as S.Schema; +export const DeleteSlackChannelConfigurationResult = /*@__PURE__*/ S.suspend( + () => S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteSlackChannelConfigurationResult", +}) as any as S.Schema; export interface DeleteSlackUserIdentityRequest { ChatConfigurationArn: string; SlackTeamId: string; SlackUserId: string; } -export const DeleteSlackUserIdentityRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ChatConfigurationArn: S.String, - SlackTeamId: S.String, - SlackUserId: S.String, - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/delete-slack-user-identity" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteSlackUserIdentityRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ChatConfigurationArn: S.String, + SlackTeamId: S.String, + SlackUserId: S.String, + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/delete-slack-user-identity" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteSlackUserIdentityRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteSlackUserIdentityRequest", +}) as any as S.Schema; export interface DeleteSlackUserIdentityResult {} -export const DeleteSlackUserIdentityResult = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteSlackUserIdentityResult", - }) as any as S.Schema; +export const DeleteSlackUserIdentityResult = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteSlackUserIdentityResult", +}) as any as S.Schema; export interface DeleteSlackWorkspaceAuthorizationRequest { SlackTeamId: string; } -export const DeleteSlackWorkspaceAuthorizationRequest = - /*@__PURE__*/ S.suspend(() => +export const DeleteSlackWorkspaceAuthorizationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ SlackTeamId: S.String }).pipe( T.all( ns, @@ -585,14 +589,15 @@ export const DeleteSlackWorkspaceAuthorizationRequest = rules, ), ), - ).annotate({ - identifier: "DeleteSlackWorkspaceAuthorizationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteSlackWorkspaceAuthorizationRequest", +}) as any as S.Schema; export interface DeleteSlackWorkspaceAuthorizationResult {} -export const DeleteSlackWorkspaceAuthorizationResult = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteSlackWorkspaceAuthorizationResult", - }) as any as S.Schema; +export const DeleteSlackWorkspaceAuthorizationResult = /*@__PURE__*/ S.suspend( + () => S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteSlackWorkspaceAuthorizationResult", +}) as any as S.Schema; export interface DescribeChimeWebhookConfigurationsRequest { MaxResults?: number; NextToken?: string; @@ -622,21 +627,22 @@ export const DescribeChimeWebhookConfigurationsRequest = identifier: "DescribeChimeWebhookConfigurationsRequest", }) as any as S.Schema; export type ChimeWebhookConfigurationList = ChimeWebhookConfiguration[]; -export const ChimeWebhookConfigurationList = - /*@__PURE__*/ S.Array(ChimeWebhookConfiguration); +export const ChimeWebhookConfigurationList = /*@__PURE__*/ S.Array( + ChimeWebhookConfiguration, +); export interface DescribeChimeWebhookConfigurationsResult { NextToken?: string; WebhookConfigurations?: ChimeWebhookConfiguration[]; } -export const DescribeChimeWebhookConfigurationsResult = - /*@__PURE__*/ S.suspend(() => +export const DescribeChimeWebhookConfigurationsResult = /*@__PURE__*/ S.suspend( + () => S.Struct({ NextToken: S.optional(S.String), WebhookConfigurations: S.optional(ChimeWebhookConfigurationList), }).pipe(ns), - ).annotate({ - identifier: "DescribeChimeWebhookConfigurationsResult", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeChimeWebhookConfigurationsResult", +}) as any as S.Schema; export interface DescribeSlackChannelConfigurationsRequest { MaxResults?: number; NextToken?: string; @@ -666,46 +672,46 @@ export const DescribeSlackChannelConfigurationsRequest = identifier: "DescribeSlackChannelConfigurationsRequest", }) as any as S.Schema; export type SlackChannelConfigurationList = SlackChannelConfiguration[]; -export const SlackChannelConfigurationList = - /*@__PURE__*/ S.Array(SlackChannelConfiguration); +export const SlackChannelConfigurationList = /*@__PURE__*/ S.Array( + SlackChannelConfiguration, +); export interface DescribeSlackChannelConfigurationsResult { NextToken?: string; SlackChannelConfigurations?: SlackChannelConfiguration[]; } -export const DescribeSlackChannelConfigurationsResult = - /*@__PURE__*/ S.suspend(() => +export const DescribeSlackChannelConfigurationsResult = /*@__PURE__*/ S.suspend( + () => S.Struct({ NextToken: S.optional(S.String), SlackChannelConfigurations: S.optional(SlackChannelConfigurationList), }).pipe(ns), - ).annotate({ - identifier: "DescribeSlackChannelConfigurationsResult", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeSlackChannelConfigurationsResult", +}) as any as S.Schema; export interface DescribeSlackUserIdentitiesRequest { ChatConfigurationArn?: string; NextToken?: string; MaxResults?: number; } -export const DescribeSlackUserIdentitiesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ChatConfigurationArn: S.optional(S.String), - NextToken: S.optional(S.String), - MaxResults: S.optional(S.Number), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/describe-slack-user-identities" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeSlackUserIdentitiesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ChatConfigurationArn: S.optional(S.String), + NextToken: S.optional(S.String), + MaxResults: S.optional(S.Number), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/describe-slack-user-identities" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeSlackUserIdentitiesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeSlackUserIdentitiesRequest", +}) as any as S.Schema; export interface SlackUserIdentity { IamRoleArn: string; ChatConfigurationArn: string; @@ -730,38 +736,36 @@ export interface DescribeSlackUserIdentitiesResult { SlackUserIdentities?: SlackUserIdentity[]; NextToken?: string; } -export const DescribeSlackUserIdentitiesResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SlackUserIdentities: S.optional(SlackUserIdentitiesList), - NextToken: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "DescribeSlackUserIdentitiesResult", - }) as any as S.Schema; +export const DescribeSlackUserIdentitiesResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SlackUserIdentities: S.optional(SlackUserIdentitiesList), + NextToken: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "DescribeSlackUserIdentitiesResult", +}) as any as S.Schema; export interface DescribeSlackWorkspacesRequest { MaxResults?: number; NextToken?: string; } -export const DescribeSlackWorkspacesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - MaxResults: S.optional(S.Number), - NextToken: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/describe-slack-workspaces" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeSlackWorkspacesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + MaxResults: S.optional(S.Number), + NextToken: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/describe-slack-workspaces" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeSlackWorkspacesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeSlackWorkspacesRequest", +}) as any as S.Schema; export interface SlackWorkspace { SlackTeamId: string; SlackTeamName: string; @@ -782,21 +786,20 @@ export interface DescribeSlackWorkspacesResult { SlackWorkspaces?: SlackWorkspace[]; NextToken?: string; } -export const DescribeSlackWorkspacesResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SlackWorkspaces: S.optional(SlackWorkspacesList), - NextToken: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "DescribeSlackWorkspacesResult", - }) as any as S.Schema; +export const DescribeSlackWorkspacesResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SlackWorkspaces: S.optional(SlackWorkspacesList), + NextToken: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "DescribeSlackWorkspacesResult", +}) as any as S.Schema; export interface DisassociateFromConfigurationRequest { Resource: string; ChatConfiguration: string; } -export const DisassociateFromConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const DisassociateFromConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Resource: S.String, ChatConfiguration: S.String }).pipe( T.all( ns, @@ -808,31 +811,31 @@ export const DisassociateFromConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "DisassociateFromConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DisassociateFromConfigurationRequest", +}) as any as S.Schema; export interface DisassociateFromConfigurationResult {} -export const DisassociateFromConfigurationResult = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DisassociateFromConfigurationResult", - }) as any as S.Schema; +export const DisassociateFromConfigurationResult = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DisassociateFromConfigurationResult", +}) as any as S.Schema; export interface GetAccountPreferencesRequest {} -export const GetAccountPreferencesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({}).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/get-account-preferences" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetAccountPreferencesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/get-account-preferences" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetAccountPreferencesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetAccountPreferencesRequest", +}) as any as S.Schema; export interface AccountPreferences { UserAuthorizationRequired?: boolean; TrainingDataCollectionEnabled?: boolean; @@ -848,42 +851,39 @@ export const AccountPreferences = /*@__PURE__*/ S.suspend(() => export interface GetAccountPreferencesResult { AccountPreferences?: AccountPreferences; } -export const GetAccountPreferencesResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ AccountPreferences: S.optional(AccountPreferences) }).pipe(ns), - ).annotate({ - identifier: "GetAccountPreferencesResult", - }) as any as S.Schema; +export const GetAccountPreferencesResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ AccountPreferences: S.optional(AccountPreferences) }).pipe(ns), +).annotate({ + identifier: "GetAccountPreferencesResult", +}) as any as S.Schema; export interface GetTeamsChannelConfigurationRequest { ChatConfigurationArn: string; } -export const GetTeamsChannelConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ChatConfigurationArn: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/get-ms-teams-channel-configuration" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetTeamsChannelConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ ChatConfigurationArn: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/get-ms-teams-channel-configuration" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetTeamsChannelConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetTeamsChannelConfigurationRequest", +}) as any as S.Schema; export interface GetTeamsChannelConfigurationResult { ChannelConfiguration?: TeamsChannelConfiguration; } -export const GetTeamsChannelConfigurationResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ChannelConfiguration: S.optional(TeamsChannelConfiguration), - }).pipe(ns), - ).annotate({ - identifier: "GetTeamsChannelConfigurationResult", - }) as any as S.Schema; +export const GetTeamsChannelConfigurationResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ChannelConfiguration: S.optional(TeamsChannelConfiguration), + }).pipe(ns), +).annotate({ + identifier: "GetTeamsChannelConfigurationResult", +}) as any as S.Schema; export interface ListAssociationsRequest { ChatConfiguration: string; MaxResults?: number; @@ -935,8 +935,8 @@ export interface ListTeamsChannelConfigurationsRequest { NextToken?: string; TeamId?: string; } -export const ListTeamsChannelConfigurationsRequest = - /*@__PURE__*/ S.suspend(() => +export const ListTeamsChannelConfigurationsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ MaxResults: S.optional(S.Number), NextToken: S.optional(S.String), @@ -955,31 +955,32 @@ export const ListTeamsChannelConfigurationsRequest = rules, ), ), - ).annotate({ - identifier: "ListTeamsChannelConfigurationsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListTeamsChannelConfigurationsRequest", +}) as any as S.Schema; export type TeamChannelConfigurationsList = TeamsChannelConfiguration[]; -export const TeamChannelConfigurationsList = - /*@__PURE__*/ S.Array(TeamsChannelConfiguration); +export const TeamChannelConfigurationsList = /*@__PURE__*/ S.Array( + TeamsChannelConfiguration, +); export interface ListTeamsChannelConfigurationsResult { NextToken?: string; TeamChannelConfigurations?: TeamsChannelConfiguration[]; } -export const ListTeamsChannelConfigurationsResult = - /*@__PURE__*/ S.suspend(() => +export const ListTeamsChannelConfigurationsResult = /*@__PURE__*/ S.suspend( + () => S.Struct({ NextToken: S.optional(S.String), TeamChannelConfigurations: S.optional(TeamChannelConfigurationsList), }).pipe(ns), - ).annotate({ - identifier: "ListTeamsChannelConfigurationsResult", - }) as any as S.Schema; +).annotate({ + identifier: "ListTeamsChannelConfigurationsResult", +}) as any as S.Schema; export interface ListMicrosoftTeamsConfiguredTeamsRequest { MaxResults?: number; NextToken?: string; } -export const ListMicrosoftTeamsConfiguredTeamsRequest = - /*@__PURE__*/ S.suspend(() => +export const ListMicrosoftTeamsConfiguredTeamsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ MaxResults: S.optional(S.Number), NextToken: S.optional(S.String), @@ -994,9 +995,9 @@ export const ListMicrosoftTeamsConfiguredTeamsRequest = rules, ), ), - ).annotate({ - identifier: "ListMicrosoftTeamsConfiguredTeamsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListMicrosoftTeamsConfiguredTeamsRequest", +}) as any as S.Schema; export interface ConfiguredTeam { TenantId: string; TeamId: string; @@ -1019,22 +1020,22 @@ export interface ListMicrosoftTeamsConfiguredTeamsResult { ConfiguredTeams?: ConfiguredTeam[]; NextToken?: string; } -export const ListMicrosoftTeamsConfiguredTeamsResult = - /*@__PURE__*/ S.suspend(() => +export const ListMicrosoftTeamsConfiguredTeamsResult = /*@__PURE__*/ S.suspend( + () => S.Struct({ ConfiguredTeams: S.optional(ConfiguredTeamsList), NextToken: S.optional(S.String), }).pipe(ns), - ).annotate({ - identifier: "ListMicrosoftTeamsConfiguredTeamsResult", - }) as any as S.Schema; +).annotate({ + identifier: "ListMicrosoftTeamsConfiguredTeamsResult", +}) as any as S.Schema; export interface ListMicrosoftTeamsUserIdentitiesRequest { ChatConfigurationArn?: string; NextToken?: string; MaxResults?: number; } -export const ListMicrosoftTeamsUserIdentitiesRequest = - /*@__PURE__*/ S.suspend(() => +export const ListMicrosoftTeamsUserIdentitiesRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ ChatConfigurationArn: S.optional(S.String), NextToken: S.optional(S.String), @@ -1050,9 +1051,9 @@ export const ListMicrosoftTeamsUserIdentitiesRequest = rules, ), ), - ).annotate({ - identifier: "ListMicrosoftTeamsUserIdentitiesRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListMicrosoftTeamsUserIdentitiesRequest", +}) as any as S.Schema; export interface TeamsUserIdentity { IamRoleArn: string; ChatConfigurationArn: string; @@ -1081,15 +1082,15 @@ export interface ListMicrosoftTeamsUserIdentitiesResult { TeamsUserIdentities?: TeamsUserIdentity[]; NextToken?: string; } -export const ListMicrosoftTeamsUserIdentitiesResult = - /*@__PURE__*/ S.suspend(() => +export const ListMicrosoftTeamsUserIdentitiesResult = /*@__PURE__*/ S.suspend( + () => S.Struct({ TeamsUserIdentities: S.optional(TeamsUserIdentitiesList), NextToken: S.optional(S.String), }).pipe(ns), - ).annotate({ - identifier: "ListMicrosoftTeamsUserIdentitiesResult", - }) as any as S.Schema; +).annotate({ + identifier: "ListMicrosoftTeamsUserIdentitiesResult", +}) as any as S.Schema; export interface ListTagsForResourceRequest { ResourceARN: string; } @@ -1113,12 +1114,11 @@ export const TagList = /*@__PURE__*/ S.Array(Tag); export interface ListTagsForResourceResponse { Tags?: Tag[]; } -export const ListTagsForResourceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Tags: S.optional(TagList) }).pipe(ns), - ).annotate({ - identifier: "ListTagsForResourceResponse", - }) as any as S.Schema; +export const ListTagsForResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Tags: S.optional(TagList) }).pipe(ns), +).annotate({ + identifier: "ListTagsForResourceResponse", +}) as any as S.Schema; export interface TagResourceRequest { ResourceARN: string; Tags: Tag[]; @@ -1175,34 +1175,32 @@ export interface UpdateAccountPreferencesRequest { UserAuthorizationRequired?: boolean; TrainingDataCollectionEnabled?: boolean; } -export const UpdateAccountPreferencesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - UserAuthorizationRequired: S.optional(S.Boolean), - TrainingDataCollectionEnabled: S.optional(S.Boolean), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/update-account-preferences" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateAccountPreferencesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + UserAuthorizationRequired: S.optional(S.Boolean), + TrainingDataCollectionEnabled: S.optional(S.Boolean), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/update-account-preferences" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateAccountPreferencesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateAccountPreferencesRequest", +}) as any as S.Schema; export interface UpdateAccountPreferencesResult { AccountPreferences?: AccountPreferences; } -export const UpdateAccountPreferencesResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ AccountPreferences: S.optional(AccountPreferences) }).pipe(ns), - ).annotate({ - identifier: "UpdateAccountPreferencesResult", - }) as any as S.Schema; +export const UpdateAccountPreferencesResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ AccountPreferences: S.optional(AccountPreferences) }).pipe(ns), +).annotate({ + identifier: "UpdateAccountPreferencesResult", +}) as any as S.Schema; export interface UpdateChimeWebhookConfigurationRequest { ChatConfigurationArn: string; WebhookDescription?: string | redacted.Redacted; @@ -1211,8 +1209,8 @@ export interface UpdateChimeWebhookConfigurationRequest { IamRoleArn?: string; LoggingLevel?: string; } -export const UpdateChimeWebhookConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const UpdateChimeWebhookConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ ChatConfigurationArn: S.String, WebhookDescription: S.optional(SensitiveString), @@ -1231,20 +1229,20 @@ export const UpdateChimeWebhookConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "UpdateChimeWebhookConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateChimeWebhookConfigurationRequest", +}) as any as S.Schema; export interface UpdateChimeWebhookConfigurationResult { WebhookConfiguration?: ChimeWebhookConfiguration; } -export const UpdateChimeWebhookConfigurationResult = - /*@__PURE__*/ S.suspend(() => +export const UpdateChimeWebhookConfigurationResult = /*@__PURE__*/ S.suspend( + () => S.Struct({ WebhookConfiguration: S.optional(ChimeWebhookConfiguration), }).pipe(ns), - ).annotate({ - identifier: "UpdateChimeWebhookConfigurationResult", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateChimeWebhookConfigurationResult", +}) as any as S.Schema; export interface UpdateTeamsChannelConfigurationRequest { ChatConfigurationArn: string; ChannelId: string; @@ -1255,8 +1253,8 @@ export interface UpdateTeamsChannelConfigurationRequest { GuardrailPolicyArns?: string[]; UserAuthorizationRequired?: boolean; } -export const UpdateTeamsChannelConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const UpdateTeamsChannelConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ ChatConfigurationArn: S.String, ChannelId: S.String, @@ -1280,20 +1278,20 @@ export const UpdateTeamsChannelConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "UpdateTeamsChannelConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateTeamsChannelConfigurationRequest", +}) as any as S.Schema; export interface UpdateTeamsChannelConfigurationResult { ChannelConfiguration?: TeamsChannelConfiguration; } -export const UpdateTeamsChannelConfigurationResult = - /*@__PURE__*/ S.suspend(() => +export const UpdateTeamsChannelConfigurationResult = /*@__PURE__*/ S.suspend( + () => S.Struct({ ChannelConfiguration: S.optional(TeamsChannelConfiguration), }).pipe(ns), - ).annotate({ - identifier: "UpdateTeamsChannelConfigurationResult", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateTeamsChannelConfigurationResult", +}) as any as S.Schema; export interface UpdateSlackChannelConfigurationRequest { ChatConfigurationArn: string; SlackChannelId: string; @@ -1304,8 +1302,8 @@ export interface UpdateSlackChannelConfigurationRequest { GuardrailPolicyArns?: string[]; UserAuthorizationRequired?: boolean; } -export const UpdateSlackChannelConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const UpdateSlackChannelConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ ChatConfigurationArn: S.String, SlackChannelId: S.String, @@ -1326,20 +1324,20 @@ export const UpdateSlackChannelConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "UpdateSlackChannelConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateSlackChannelConfigurationRequest", +}) as any as S.Schema; export interface UpdateSlackChannelConfigurationResult { ChannelConfiguration?: SlackChannelConfiguration; } -export const UpdateSlackChannelConfigurationResult = - /*@__PURE__*/ S.suspend(() => +export const UpdateSlackChannelConfigurationResult = /*@__PURE__*/ S.suspend( + () => S.Struct({ ChannelConfiguration: S.optional(SlackChannelConfiguration), }).pipe(ns), - ).annotate({ - identifier: "UpdateSlackChannelConfigurationResult", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateSlackChannelConfigurationResult", +}) as any as S.Schema; export interface CustomActionDefinition { CommandText: string; } @@ -1358,34 +1356,36 @@ export interface CustomActionAttachmentCriteria { VariableName: string; Value?: string; } -export const CustomActionAttachmentCriteria = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Operator: CustomActionAttachmentCriteriaOperator, - VariableName: S.String, - Value: S.optional(S.String), - }), - ).annotate({ - identifier: "CustomActionAttachmentCriteria", - }) as any as S.Schema; +export const CustomActionAttachmentCriteria = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Operator: CustomActionAttachmentCriteriaOperator, + VariableName: S.String, + Value: S.optional(S.String), + }), +).annotate({ + identifier: "CustomActionAttachmentCriteria", +}) as any as S.Schema; export type CustomActionAttachmentCriteriaList = CustomActionAttachmentCriteria[]; -export const CustomActionAttachmentCriteriaList = - /*@__PURE__*/ S.Array(CustomActionAttachmentCriteria); +export const CustomActionAttachmentCriteriaList = /*@__PURE__*/ S.Array( + CustomActionAttachmentCriteria, +); export type CustomActionAttachmentVariables = { [key: string]: string | undefined; }; -export const CustomActionAttachmentVariables = - /*@__PURE__*/ S.Record(S.String, S.String.pipe(S.optional)); +export const CustomActionAttachmentVariables = /*@__PURE__*/ S.Record( + S.String, + S.String.pipe(S.optional), +); export interface CustomActionAttachment { - NotificationType?: string; + NotificationType: string; ButtonText?: string; Criteria?: CustomActionAttachmentCriteria[]; Variables?: { [key: string]: string | undefined }; } export const CustomActionAttachment = /*@__PURE__*/ S.suspend(() => S.Struct({ - NotificationType: S.optional(S.String), + NotificationType: S.String, ButtonText: S.optional(S.String), Criteria: S.optional(CustomActionAttachmentCriteriaList), Variables: S.optional(CustomActionAttachmentVariables), @@ -1576,130 +1576,177 @@ export const ListCustomActionsResult = /*@__PURE__*/ S.suspend(() => export class InternalServiceError extends S.TaggedErrorClass()( "InternalServiceError", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class InvalidRequestException extends S.TaggedErrorClass()( "InvalidRequestException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class UnauthorizedException extends S.TaggedErrorClass()( "UnauthorizedException", { message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} +export class ResourceNotFoundException extends S.TaggedErrorClass()( + "ResourceNotFoundException", + {}, +) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class CreateChimeWebhookConfigurationException extends S.TaggedErrorClass()( "CreateChimeWebhookConfigurationException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class InvalidParameterException extends S.TaggedErrorClass()( "InvalidParameterException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class LimitExceededException extends S.TaggedErrorClass()( "LimitExceededException", { message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class CreateTeamsChannelConfigurationException extends S.TaggedErrorClass()( "CreateTeamsChannelConfigurationException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} +export class MicrosoftTeamsTeamNotConfigured extends S.TaggedErrorClass()( + "MicrosoftTeamsTeamNotConfigured", + { message: S.optional(S.String) }, + T.SyntheticError({ + from: "InvalidRequestException", + message: { includes: "team id you are using is not configured" }, + }), +).pipe(C.withBadRequestError) {} export class CreateSlackChannelConfigurationException extends S.TaggedErrorClass()( "CreateSlackChannelConfigurationException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} +export class SlackWorkspaceNotAuthorized extends S.TaggedErrorClass()( + "SlackWorkspaceNotAuthorized", + { message: S.optional(S.String) }, + T.SyntheticError({ + from: "InvalidRequestException", + message: { includes: "is not authorized with AWS account" }, + }), +).pipe(C.withBadRequestError) {} export class DeleteChimeWebhookConfigurationException extends S.TaggedErrorClass()( "DeleteChimeWebhookConfigurationException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} -export class ResourceNotFoundException extends S.TaggedErrorClass()( - "ResourceNotFoundException", - { Message: S.optional(S.String) }, -).pipe(C.withBadRequestError) {} export class DeleteTeamsChannelConfigurationException extends S.TaggedErrorClass()( "DeleteTeamsChannelConfigurationException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class DeleteTeamsConfiguredTeamException extends S.TaggedErrorClass()( "DeleteTeamsConfiguredTeamException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class DeleteMicrosoftTeamsUserIdentityException extends S.TaggedErrorClass()( "DeleteMicrosoftTeamsUserIdentityException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class DeleteSlackChannelConfigurationException extends S.TaggedErrorClass()( "DeleteSlackChannelConfigurationException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class DeleteSlackUserIdentityException extends S.TaggedErrorClass()( "DeleteSlackUserIdentityException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class DeleteSlackWorkspaceAuthorizationFault extends S.TaggedErrorClass()( "DeleteSlackWorkspaceAuthorizationFault", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class DescribeChimeWebhookConfigurationsException extends S.TaggedErrorClass()( "DescribeChimeWebhookConfigurationsException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class DescribeSlackChannelConfigurationsException extends S.TaggedErrorClass()( "DescribeSlackChannelConfigurationsException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class DescribeSlackUserIdentitiesException extends S.TaggedErrorClass()( "DescribeSlackUserIdentitiesException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class DescribeSlackWorkspacesException extends S.TaggedErrorClass()( "DescribeSlackWorkspacesException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class GetAccountPreferencesException extends S.TaggedErrorClass()( "GetAccountPreferencesException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class GetTeamsChannelConfigurationException extends S.TaggedErrorClass()( "GetTeamsChannelConfigurationException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class ListTeamsChannelConfigurationsException extends S.TaggedErrorClass()( "ListTeamsChannelConfigurationsException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class ListMicrosoftTeamsConfiguredTeamsException extends S.TaggedErrorClass()( "ListMicrosoftTeamsConfiguredTeamsException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class ListMicrosoftTeamsUserIdentitiesException extends S.TaggedErrorClass()( "ListMicrosoftTeamsUserIdentitiesException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class ServiceUnavailableException extends S.TaggedErrorClass()( "ServiceUnavailableException", { message: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError, C.withServerError) {} export class TooManyTagsException extends S.TaggedErrorClass()( "TooManyTagsException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class UpdateAccountPreferencesException extends S.TaggedErrorClass()( "UpdateAccountPreferencesException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class UpdateChimeWebhookConfigurationException extends S.TaggedErrorClass()( "UpdateChimeWebhookConfigurationException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class UpdateTeamsChannelConfigurationException extends S.TaggedErrorClass()( "UpdateTeamsChannelConfigurationException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class UpdateSlackChannelConfigurationException extends S.TaggedErrorClass()( "UpdateSlackChannelConfigurationException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} //# Operations @@ -1707,6 +1754,7 @@ export type AssociateToConfigurationError = | InternalServiceError | InvalidRequestException | UnauthorizedException + | ResourceNotFoundException | CommonErrors; /** * Links a resource (for example, a custom action) to a channel configuration. @@ -1723,6 +1771,7 @@ export const associateToConfiguration: API.OperationMethod< InternalServiceError, InvalidRequestException, UnauthorizedException, + ResourceNotFoundException, ], operationName: "AssociateToConfiguration", })); @@ -1759,6 +1808,7 @@ export type CreateMicrosoftTeamsChannelConfigurationError = | InvalidParameterException | InvalidRequestException | LimitExceededException + | MicrosoftTeamsTeamNotConfigured | CommonErrors; /** * Creates an AWS Chatbot configuration for Microsoft Teams. @@ -1777,6 +1827,7 @@ export const createMicrosoftTeamsChannelConfiguration: API.OperationMethod< InvalidParameterException, InvalidRequestException, LimitExceededException, + MicrosoftTeamsTeamNotConfigured, ], operationName: "CreateMicrosoftTeamsChannelConfiguration", })); @@ -1786,6 +1837,7 @@ export type CreateSlackChannelConfigurationError = | InvalidParameterException | InvalidRequestException | LimitExceededException + | SlackWorkspaceNotAuthorized | CommonErrors; /** * Creates an AWS Chatbot confugration for Slack. @@ -1804,6 +1856,7 @@ export const createSlackChannelConfiguration: API.OperationMethod< InvalidParameterException, InvalidRequestException, LimitExceededException, + SlackWorkspaceNotAuthorized, ], operationName: "CreateSlackChannelConfiguration", })); @@ -1860,6 +1913,7 @@ export const deleteMicrosoftTeamsChannelConfiguration: API.OperationMethod< export type DeleteMicrosoftTeamsConfiguredTeamError = | DeleteTeamsConfiguredTeamException | InvalidParameterException + | ResourceNotFoundException | CommonErrors; /** * Deletes the Microsoft Teams team authorization allowing for channels to be configured in that Microsoft Teams team. Note that the Microsoft Teams team must have no channels configured to remove it. @@ -1872,7 +1926,11 @@ export const deleteMicrosoftTeamsConfiguredTeam: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteTeamsConfiguredTeamRequest, output: DeleteTeamsConfiguredTeamResult, - errors: [DeleteTeamsConfiguredTeamException, InvalidParameterException], + errors: [ + DeleteTeamsConfiguredTeamException, + InvalidParameterException, + ResourceNotFoundException, + ], operationName: "DeleteMicrosoftTeamsConfiguredTeam", })); export type DeleteMicrosoftTeamsUserIdentityError = @@ -2144,6 +2202,7 @@ export type DisassociateFromConfigurationError = | InternalServiceError | InvalidRequestException | UnauthorizedException + | ResourceNotFoundException | CommonErrors; /** * Unlink a resource, for example a custom action, from a channel configuration. @@ -2160,6 +2219,7 @@ export const disassociateFromConfiguration: API.OperationMethod< InternalServiceError, InvalidRequestException, UnauthorizedException, + ResourceNotFoundException, ], operationName: "DisassociateFromConfiguration", })); @@ -2185,6 +2245,7 @@ export type GetMicrosoftTeamsChannelConfigurationError = | GetTeamsChannelConfigurationException | InvalidParameterException | InvalidRequestException + | ResourceNotFoundException | CommonErrors; /** * Returns a Microsoft Teams channel configuration in an AWS account. @@ -2201,10 +2262,11 @@ export const getMicrosoftTeamsChannelConfiguration: API.OperationMethod< GetTeamsChannelConfigurationException, InvalidParameterException, InvalidRequestException, + ResourceNotFoundException, ], operationName: "GetMicrosoftTeamsChannelConfiguration", })); -export type ListAssociationsError = CommonErrors; +export type ListAssociationsError = InvalidRequestException | CommonErrors; /** * Lists resources associated with a channel configuration. */ @@ -2231,7 +2293,7 @@ export const listAssociations: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: ListAssociationsRequest, output: ListAssociationsResult, - errors: [], + errors: [InvalidRequestException], operationName: "ListAssociations", pagination: { inputToken: "NextToken", diff --git a/packages/aws/src/services/cloudformation.ts b/packages/aws/src/services/cloudformation.ts index c6b6a3aa20..db6cda2e4e 100644 --- a/packages/aws/src/services/cloudformation.ts +++ b/packages/aws/src/services/cloudformation.ts @@ -6475,6 +6475,14 @@ export class StackRefactorNotFoundException extends S.TaggedErrorClass()( + "StackNotFound", + {}, + T.SyntheticError({ + from: "ValidationError", + message: { includes: "does not exist" }, + }), +).pipe(C.withNotFoundError) {} export class HookResultNotFoundException extends S.TaggedErrorClass()( "HookResultNotFoundException", { Message: S.optional(S.String) }, @@ -6505,6 +6513,14 @@ export class ResourceScanLimitExceededException extends S.TaggedErrorClass()( + "NoUpdateToPerform", + {}, + T.SyntheticError({ + from: "ValidationError", + message: { includes: "No updates are to be performed" }, + }), +) {} //# Operations export type ActivateOrganizationsAccessError = @@ -7456,7 +7472,7 @@ export const describeStackResources: API.OperationMethod< errors: [], operationName: "DescribeStackResources", })); -export type DescribeStacksError = CommonErrors; +export type DescribeStacksError = StackNotFound | CommonErrors; /** * Returns the description for the specified stack; if no stack name was specified, then it * returns the description for all the stacks created. For more information about a stack's event @@ -7488,7 +7504,7 @@ export const describeStacks: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeStacksInput, output: DescribeStacksOutput, - errors: [], + errors: [StackNotFound], operationName: "DescribeStacks", pagination: { inputToken: "NextToken", @@ -9030,6 +9046,7 @@ export const updateGeneratedTemplate: API.OperationMethod< export type UpdateStackError = | InsufficientCapabilitiesException | TokenAlreadyExistsException + | NoUpdateToPerform | CommonErrors; /** * Updates a stack as specified in the template. After the call completes successfully, the @@ -9050,7 +9067,11 @@ export const updateStack: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: UpdateStackInput, output: UpdateStackOutput, - errors: [InsufficientCapabilitiesException, TokenAlreadyExistsException], + errors: [ + InsufficientCapabilitiesException, + TokenAlreadyExistsException, + NoUpdateToPerform, + ], operationName: "UpdateStack", })); export type UpdateStackInstancesError = diff --git a/packages/aws/src/services/cloudfront.ts b/packages/aws/src/services/cloudfront.ts index dc3482bcc9..7511639932 100644 --- a/packages/aws/src/services/cloudfront.ts +++ b/packages/aws/src/services/cloudfront.ts @@ -10068,610 +10068,762 @@ export const VerifyDnsConfigurationResult = export class AccessDenied extends S.TaggedErrorClass()( "AccessDenied", { Message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class IllegalUpdate extends S.TaggedErrorClass()( "IllegalUpdate", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidArgument extends S.TaggedErrorClass()( "InvalidArgument", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class NoSuchDistribution extends S.TaggedErrorClass()( "NoSuchDistribution", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class TooManyDistributionCNAMEs extends S.TaggedErrorClass()( "TooManyDistributionCNAMEs", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class EntityLimitExceeded extends S.TaggedErrorClass()( "EntityLimitExceeded", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError, C.withThrottlingError) {} export class EntityNotFound extends S.TaggedErrorClass()( "EntityNotFound", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class InvalidIfMatchVersion extends S.TaggedErrorClass()( "InvalidIfMatchVersion", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class PreconditionFailed extends S.TaggedErrorClass()( "PreconditionFailed", { Message: S.optional(S.String) }, + T.HttpError(412), ) {} export class CNAMEAlreadyExists extends S.TaggedErrorClass()( "CNAMEAlreadyExists", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withAlreadyExistsError) {} export class DistributionAlreadyExists extends S.TaggedErrorClass()( "DistributionAlreadyExists", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withAlreadyExistsError) {} export class IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior extends S.TaggedErrorClass()( "IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InconsistentQuantities extends S.TaggedErrorClass()( "InconsistentQuantities", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidDefaultRootObject extends S.TaggedErrorClass()( "InvalidDefaultRootObject", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidErrorCode extends S.TaggedErrorClass()( "InvalidErrorCode", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidForwardCookies extends S.TaggedErrorClass()( "InvalidForwardCookies", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidFunctionAssociation extends S.TaggedErrorClass()( "InvalidFunctionAssociation", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidGeoRestrictionParameter extends S.TaggedErrorClass()( "InvalidGeoRestrictionParameter", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidHeadersForS3Origin extends S.TaggedErrorClass()( "InvalidHeadersForS3Origin", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidLambdaFunctionAssociation extends S.TaggedErrorClass()( "InvalidLambdaFunctionAssociation", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidLocationCode extends S.TaggedErrorClass()( "InvalidLocationCode", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidMinimumProtocolVersion extends S.TaggedErrorClass()( "InvalidMinimumProtocolVersion", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidOrigin extends S.TaggedErrorClass()( "InvalidOrigin", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidOriginAccessControl extends S.TaggedErrorClass()( "InvalidOriginAccessControl", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidOriginAccessIdentity extends S.TaggedErrorClass()( "InvalidOriginAccessIdentity", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidOriginKeepaliveTimeout extends S.TaggedErrorClass()( "InvalidOriginKeepaliveTimeout", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidOriginReadTimeout extends S.TaggedErrorClass()( "InvalidOriginReadTimeout", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidProtocolSettings extends S.TaggedErrorClass()( "InvalidProtocolSettings", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidQueryStringParameters extends S.TaggedErrorClass()( "InvalidQueryStringParameters", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidRelativePath extends S.TaggedErrorClass()( "InvalidRelativePath", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidRequiredProtocol extends S.TaggedErrorClass()( "InvalidRequiredProtocol", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidResponseCode extends S.TaggedErrorClass()( "InvalidResponseCode", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidTTLOrder extends S.TaggedErrorClass()( "InvalidTTLOrder", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidViewerCertificate extends S.TaggedErrorClass()( "InvalidViewerCertificate", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidWebACLId extends S.TaggedErrorClass()( "InvalidWebACLId", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class MissingBody extends S.TaggedErrorClass()( "MissingBody", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class NoSuchCachePolicy extends S.TaggedErrorClass()( "NoSuchCachePolicy", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class NoSuchFieldLevelEncryptionConfig extends S.TaggedErrorClass()( "NoSuchFieldLevelEncryptionConfig", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class NoSuchOrigin extends S.TaggedErrorClass()( "NoSuchOrigin", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class NoSuchOriginRequestPolicy extends S.TaggedErrorClass()( "NoSuchOriginRequestPolicy", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class NoSuchRealtimeLogConfig extends S.TaggedErrorClass()( "NoSuchRealtimeLogConfig", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class NoSuchResponseHeadersPolicy extends S.TaggedErrorClass()( "NoSuchResponseHeadersPolicy", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class RealtimeLogConfigOwnerMismatch extends S.TaggedErrorClass()( "RealtimeLogConfigOwnerMismatch", { Message: S.optional(S.String) }, + T.HttpError(401), ).pipe(C.withAuthError) {} export class TooManyCacheBehaviors extends S.TaggedErrorClass()( "TooManyCacheBehaviors", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyCertificates extends S.TaggedErrorClass()( "TooManyCertificates", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyCookieNamesInWhiteList extends S.TaggedErrorClass()( "TooManyCookieNamesInWhiteList", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyDistributions extends S.TaggedErrorClass()( "TooManyDistributions", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class EntityAlreadyExists extends S.TaggedErrorClass()( "EntityAlreadyExists", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withAlreadyExistsError) {} export class InvalidTagging extends S.TaggedErrorClass()( "InvalidTagging", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class UnsupportedOperation extends S.TaggedErrorClass()( "UnsupportedOperation", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class CachePolicyAlreadyExists extends S.TaggedErrorClass()( "CachePolicyAlreadyExists", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withAlreadyExistsError) {} export class TooManyCachePolicies extends S.TaggedErrorClass()( "TooManyCachePolicies", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyCookiesInCachePolicy extends S.TaggedErrorClass()( "TooManyCookiesInCachePolicy", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyHeadersInCachePolicy extends S.TaggedErrorClass()( "TooManyHeadersInCachePolicy", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyQueryStringsInCachePolicy extends S.TaggedErrorClass()( "TooManyQueryStringsInCachePolicy", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class CloudFrontOriginAccessIdentityAlreadyExists extends S.TaggedErrorClass()( "CloudFrontOriginAccessIdentityAlreadyExists", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withAlreadyExistsError) {} export class TooManyCloudFrontOriginAccessIdentities extends S.TaggedErrorClass()( "TooManyCloudFrontOriginAccessIdentities", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class EntitySizeLimitExceeded extends S.TaggedErrorClass()( "EntitySizeLimitExceeded", { Message: S.optional(S.String) }, + T.HttpError(413), ).pipe(C.withBadRequestError, C.withThrottlingError) {} export class ContinuousDeploymentPolicyAlreadyExists extends S.TaggedErrorClass()( "ContinuousDeploymentPolicyAlreadyExists", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withAlreadyExistsError) {} export class StagingDistributionInUse extends S.TaggedErrorClass()( "StagingDistributionInUse", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withDependencyViolationError) {} export class TooManyContinuousDeploymentPolicies extends S.TaggedErrorClass()( "TooManyContinuousDeploymentPolicies", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ContinuousDeploymentPolicyInUse extends S.TaggedErrorClass()( "ContinuousDeploymentPolicyInUse", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withDependencyViolationError) {} export class IllegalOriginAccessConfiguration extends S.TaggedErrorClass()( "IllegalOriginAccessConfiguration", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidDomainNameForOriginAccessControl extends S.TaggedErrorClass()( "InvalidDomainNameForOriginAccessControl", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class NoSuchContinuousDeploymentPolicy extends S.TaggedErrorClass()( "NoSuchContinuousDeploymentPolicy", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class InvalidAssociation extends S.TaggedErrorClass()( "InvalidAssociation", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class FieldLevelEncryptionConfigAlreadyExists extends S.TaggedErrorClass()( "FieldLevelEncryptionConfigAlreadyExists", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withAlreadyExistsError) {} export class NoSuchFieldLevelEncryptionProfile extends S.TaggedErrorClass()( "NoSuchFieldLevelEncryptionProfile", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class QueryArgProfileEmpty extends S.TaggedErrorClass()( "QueryArgProfileEmpty", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyFieldLevelEncryptionConfigs extends S.TaggedErrorClass()( "TooManyFieldLevelEncryptionConfigs", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyFieldLevelEncryptionContentTypeProfiles extends S.TaggedErrorClass()( "TooManyFieldLevelEncryptionContentTypeProfiles", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyFieldLevelEncryptionQueryArgProfiles extends S.TaggedErrorClass()( "TooManyFieldLevelEncryptionQueryArgProfiles", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class FieldLevelEncryptionProfileAlreadyExists extends S.TaggedErrorClass()( "FieldLevelEncryptionProfileAlreadyExists", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withAlreadyExistsError) {} export class FieldLevelEncryptionProfileSizeExceeded extends S.TaggedErrorClass()( "FieldLevelEncryptionProfileSizeExceeded", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class NoSuchPublicKey extends S.TaggedErrorClass()( "NoSuchPublicKey", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class TooManyFieldLevelEncryptionEncryptionEntities extends S.TaggedErrorClass()( "TooManyFieldLevelEncryptionEncryptionEntities", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyFieldLevelEncryptionFieldPatterns extends S.TaggedErrorClass()( "TooManyFieldLevelEncryptionFieldPatterns", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyFieldLevelEncryptionProfiles extends S.TaggedErrorClass()( "TooManyFieldLevelEncryptionProfiles", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class FunctionAlreadyExists extends S.TaggedErrorClass()( "FunctionAlreadyExists", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withAlreadyExistsError) {} export class FunctionSizeLimitExceeded extends S.TaggedErrorClass()( "FunctionSizeLimitExceeded", { Message: S.optional(S.String) }, + T.HttpError(413), ).pipe(C.withBadRequestError, C.withThrottlingError) {} export class TooManyFunctions extends S.TaggedErrorClass()( "TooManyFunctions", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class BatchTooLarge extends S.TaggedErrorClass()( "BatchTooLarge", { Message: S.optional(S.String) }, + T.HttpError(413), ).pipe(C.withBadRequestError) {} export class TooManyInvalidationsInProgress extends S.TaggedErrorClass()( "TooManyInvalidationsInProgress", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class KeyGroupAlreadyExists extends S.TaggedErrorClass()( "KeyGroupAlreadyExists", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withAlreadyExistsError) {} export class TooManyKeyGroups extends S.TaggedErrorClass()( "TooManyKeyGroups", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyPublicKeysInKeyGroup extends S.TaggedErrorClass()( "TooManyPublicKeysInKeyGroup", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class MonitoringSubscriptionAlreadyExists extends S.TaggedErrorClass()( "MonitoringSubscriptionAlreadyExists", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withAlreadyExistsError) {} export class OriginAccessControlAlreadyExists extends S.TaggedErrorClass()( "OriginAccessControlAlreadyExists", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withAlreadyExistsError) {} export class TooManyOriginAccessControls extends S.TaggedErrorClass()( "TooManyOriginAccessControls", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class OriginRequestPolicyAlreadyExists extends S.TaggedErrorClass()( "OriginRequestPolicyAlreadyExists", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withAlreadyExistsError) {} export class TooManyCookiesInOriginRequestPolicy extends S.TaggedErrorClass()( "TooManyCookiesInOriginRequestPolicy", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyHeadersInOriginRequestPolicy extends S.TaggedErrorClass()( "TooManyHeadersInOriginRequestPolicy", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyOriginRequestPolicies extends S.TaggedErrorClass()( "TooManyOriginRequestPolicies", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyQueryStringsInOriginRequestPolicy extends S.TaggedErrorClass()( "TooManyQueryStringsInOriginRequestPolicy", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class PublicKeyAlreadyExists extends S.TaggedErrorClass()( "PublicKeyAlreadyExists", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withAlreadyExistsError) {} export class TooManyPublicKeys extends S.TaggedErrorClass()( "TooManyPublicKeys", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class RealtimeLogConfigAlreadyExists extends S.TaggedErrorClass()( "RealtimeLogConfigAlreadyExists", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withAlreadyExistsError) {} export class TooManyRealtimeLogConfigs extends S.TaggedErrorClass()( "TooManyRealtimeLogConfigs", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ResponseHeadersPolicyAlreadyExists extends S.TaggedErrorClass()( "ResponseHeadersPolicyAlreadyExists", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withAlreadyExistsError) {} export class TooLongCSPInResponseHeadersPolicy extends S.TaggedErrorClass()( "TooLongCSPInResponseHeadersPolicy", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyCustomHeadersInResponseHeadersPolicy extends S.TaggedErrorClass()( "TooManyCustomHeadersInResponseHeadersPolicy", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyRemoveHeadersInResponseHeadersPolicy extends S.TaggedErrorClass()( "TooManyRemoveHeadersInResponseHeadersPolicy", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyResponseHeadersPolicies extends S.TaggedErrorClass()( "TooManyResponseHeadersPolicies", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class StreamingDistributionAlreadyExists extends S.TaggedErrorClass()( "StreamingDistributionAlreadyExists", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withAlreadyExistsError) {} export class TooManyStreamingDistributionCNAMEs extends S.TaggedErrorClass()( "TooManyStreamingDistributionCNAMEs", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyStreamingDistributions extends S.TaggedErrorClass()( "TooManyStreamingDistributions", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyTrustedSigners extends S.TaggedErrorClass()( "TooManyTrustedSigners", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TrustedSignerDoesNotExist extends S.TaggedErrorClass()( "TrustedSignerDoesNotExist", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class CannotDeleteEntityWhileInUse extends S.TaggedErrorClass()( "CannotDeleteEntityWhileInUse", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withDependencyViolationError) {} export class IllegalDelete extends S.TaggedErrorClass()( "IllegalDelete", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class CachePolicyInUse extends S.TaggedErrorClass()( "CachePolicyInUse", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withDependencyViolationError) {} export class CloudFrontOriginAccessIdentityInUse extends S.TaggedErrorClass()( "CloudFrontOriginAccessIdentityInUse", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withDependencyViolationError) {} export class NoSuchCloudFrontOriginAccessIdentity extends S.TaggedErrorClass()( "NoSuchCloudFrontOriginAccessIdentity", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ResourceNotDisabled extends S.TaggedErrorClass()( "ResourceNotDisabled", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class DistributionNotDisabled extends S.TaggedErrorClass()( "DistributionNotDisabled", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ResourceInUse extends S.TaggedErrorClass()( "ResourceInUse", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withDependencyViolationError) {} export class FieldLevelEncryptionConfigInUse extends S.TaggedErrorClass()( "FieldLevelEncryptionConfigInUse", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withDependencyViolationError) {} export class FieldLevelEncryptionProfileInUse extends S.TaggedErrorClass()( "FieldLevelEncryptionProfileInUse", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withDependencyViolationError) {} export class FunctionInUse extends S.TaggedErrorClass()( "FunctionInUse", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withDependencyViolationError) {} export class NoSuchFunctionExists extends S.TaggedErrorClass()( "NoSuchFunctionExists", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class NoSuchResource extends S.TaggedErrorClass()( "NoSuchResource", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class NoSuchMonitoringSubscription extends S.TaggedErrorClass()( "NoSuchMonitoringSubscription", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class NoSuchOriginAccessControl extends S.TaggedErrorClass()( "NoSuchOriginAccessControl", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class OriginAccessControlInUse extends S.TaggedErrorClass()( "OriginAccessControlInUse", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withDependencyViolationError) {} export class OriginRequestPolicyInUse extends S.TaggedErrorClass()( "OriginRequestPolicyInUse", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withDependencyViolationError) {} export class PublicKeyInUse extends S.TaggedErrorClass()( "PublicKeyInUse", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withDependencyViolationError) {} export class RealtimeLogConfigInUse extends S.TaggedErrorClass()( "RealtimeLogConfigInUse", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError, C.withDependencyViolationError) {} export class ResponseHeadersPolicyInUse extends S.TaggedErrorClass()( "ResponseHeadersPolicyInUse", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withDependencyViolationError) {} export class NoSuchStreamingDistribution extends S.TaggedErrorClass()( "NoSuchStreamingDistribution", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class StreamingDistributionNotDisabled extends S.TaggedErrorClass()( "StreamingDistributionNotDisabled", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class NoSuchInvalidation extends S.TaggedErrorClass()( "NoSuchInvalidation", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class TestFunctionFailed extends S.TaggedErrorClass()( "TestFunctionFailed", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class CannotChangeImmutablePublicKeyFields extends S.TaggedErrorClass()( "CannotChangeImmutablePublicKeyFields", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class CannotUpdateEntityWhileInUse extends S.TaggedErrorClass()( "CannotUpdateEntityWhileInUse", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withDependencyViolationError) {} export class TooManyDistributionsAssociatedToCachePolicy extends S.TaggedErrorClass()( "TooManyDistributionsAssociatedToCachePolicy", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyDistributionsAssociatedToFieldLevelEncryptionConfig extends S.TaggedErrorClass()( "TooManyDistributionsAssociatedToFieldLevelEncryptionConfig", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyDistributionsAssociatedToKeyGroup extends S.TaggedErrorClass()( "TooManyDistributionsAssociatedToKeyGroup", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyDistributionsAssociatedToOriginAccessControl extends S.TaggedErrorClass()( "TooManyDistributionsAssociatedToOriginAccessControl", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyDistributionsAssociatedToOriginRequestPolicy extends S.TaggedErrorClass()( "TooManyDistributionsAssociatedToOriginRequestPolicy", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyDistributionsAssociatedToResponseHeadersPolicy extends S.TaggedErrorClass()( "TooManyDistributionsAssociatedToResponseHeadersPolicy", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyDistributionsWithFunctionAssociations extends S.TaggedErrorClass()( "TooManyDistributionsWithFunctionAssociations", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyDistributionsWithLambdaAssociations extends S.TaggedErrorClass()( "TooManyDistributionsWithLambdaAssociations", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyDistributionsWithSingleFunctionARN extends S.TaggedErrorClass()( "TooManyDistributionsWithSingleFunctionARN", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyFunctionAssociations extends S.TaggedErrorClass()( "TooManyFunctionAssociations", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyHeadersInForwardedValues extends S.TaggedErrorClass()( "TooManyHeadersInForwardedValues", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyKeyGroupsAssociatedToDistribution extends S.TaggedErrorClass()( "TooManyKeyGroupsAssociatedToDistribution", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyLambdaFunctionAssociations extends S.TaggedErrorClass()( "TooManyLambdaFunctionAssociations", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyOriginCustomHeaders extends S.TaggedErrorClass()( "TooManyOriginCustomHeaders", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyOriginGroupsPerDistribution extends S.TaggedErrorClass()( "TooManyOriginGroupsPerDistribution", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyOrigins extends S.TaggedErrorClass()( "TooManyOrigins", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyQueryStringParameters extends S.TaggedErrorClass()( "TooManyQueryStringParameters", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TrustedKeyGroupDoesNotExist extends S.TaggedErrorClass()( "TrustedKeyGroupDoesNotExist", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} //# Operations diff --git a/packages/aws/src/services/cloudtrail.ts b/packages/aws/src/services/cloudtrail.ts index a50f3a749d..b5bf16e129 100644 --- a/packages/aws/src/services/cloudtrail.ts +++ b/packages/aws/src/services/cloudtrail.ts @@ -3526,6 +3526,14 @@ export class ThrottlingException extends S.TaggedErrorClass { Message: S.optional(S.String) }, T.AwsQueryError({ code: "ThrottlingException", httpResponseCode: 429 }), ).pipe(C.withThrottlingError) {} +export class CloudTrailLakeOnboardingClosed extends S.TaggedErrorClass()( + "CloudTrailLakeOnboardingClosed", + { Message: S.optional(S.String) }, + T.SyntheticError({ + from: "InvalidParameterException", + message: { includes: "no longer accepting new customers" }, + }), +).pipe(C.withBadRequestError) {} export class CloudTrailInvalidClientTokenIdException extends S.TaggedErrorClass()( "CloudTrailInvalidClientTokenIdException", { Message: S.optional(S.String) }, @@ -4030,6 +4038,7 @@ export type CreateEventDataStoreError = | OrganizationsNotInUseException | ThrottlingException | UnsupportedOperationException + | CloudTrailLakeOnboardingClosed | CommonErrors; /** * Creates a new event data store. @@ -4062,6 +4071,7 @@ export const createEventDataStore: API.OperationMethod< OrganizationsNotInUseException, ThrottlingException, UnsupportedOperationException, + CloudTrailLakeOnboardingClosed, ], operationName: "CreateEventDataStore", })); diff --git a/packages/aws/src/services/cloudwatch.ts b/packages/aws/src/services/cloudwatch.ts index 559606ed85..5d34496152 100644 --- a/packages/aws/src/services/cloudwatch.ts +++ b/packages/aws/src/services/cloudwatch.ts @@ -3182,6 +3182,10 @@ export class InvalidNextToken extends S.TaggedErrorClass()( { message: S.optional(S.String) }, T.AwsQueryError({ code: "InvalidNextToken", httpResponseCode: 400 }), ).pipe(C.withBadRequestError) {} +export class ValidationException extends S.TaggedErrorClass()( + "ValidationException", + {}, +).pipe(C.withBadRequestError) {} export class LimitExceededException extends S.TaggedErrorClass()( "LimitExceededException", { Message: S.optional(S.String) }, @@ -3471,6 +3475,7 @@ export const deleteMetricStream: API.OperationMethod< export type DescribeAlarmContributorsError = | InvalidNextToken | ResourceNotFoundException + | ValidationException | CommonErrors; /** * Returns the information of the current alarm contributors that are in @@ -3485,7 +3490,7 @@ export const describeAlarmContributors: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeAlarmContributorsInput, output: DescribeAlarmContributorsOutput, - errors: [InvalidNextToken, ResourceNotFoundException], + errors: [InvalidNextToken, ResourceNotFoundException, ValidationException], operationName: "DescribeAlarmContributors", })); export type DescribeAlarmHistoryError = InvalidNextToken | CommonErrors; diff --git a/packages/aws/src/services/codeartifact.ts b/packages/aws/src/services/codeartifact.ts index da279ed8f3..f266a311ce 100644 --- a/packages/aws/src/services/codeartifact.ts +++ b/packages/aws/src/services/codeartifact.ts @@ -1,4 +1,5 @@ import * as HttpClient from "effect/unstable/http/HttpClient"; +import * as redacted from "effect/Redacted"; import * as S from "@distilled.cloud/core/schema"; import * as stream from "effect/Stream"; import * as API from "../client/api.ts"; @@ -7,6 +8,7 @@ import * as C from "../category.ts"; import type { Credentials } from "../credentials.ts"; import type { CommonErrors } from "../errors.ts"; import type { Region } from "../region.ts"; +import { SensitiveString } from "../sensitive.ts"; const svc = T.AwsApiService({ sdkId: "codeartifact", serviceShapeName: "CodeArtifactControlPlaneService", @@ -1300,13 +1302,13 @@ export const GetAuthorizationTokenRequest = identifier: "GetAuthorizationTokenRequest", }) as any as S.Schema; export interface GetAuthorizationTokenResult { - authorizationToken?: string; + authorizationToken?: string | redacted.Redacted; expiration?: Date; } export const GetAuthorizationTokenResult = /*@__PURE__*/ S.suspend(() => S.Struct({ - authorizationToken: S.optional(S.String), + authorizationToken: S.optional(SensitiveString), expiration: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), }), ).annotate({ @@ -2684,6 +2686,7 @@ export const UpdateRepositoryResult = /*@__PURE__*/ S.suspend(() => export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.String }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", @@ -2692,10 +2695,12 @@ export class ConflictException extends S.TaggedErrorClass()( resourceId: S.optional(S.String), resourceType: S.optional(ResourceType), }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { message: S.String }, + T.HttpError(500), ).pipe(C.withServerError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", @@ -2704,6 +2709,7 @@ export class ResourceNotFoundException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", @@ -2712,6 +2718,7 @@ export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ThrottlingException", @@ -2719,10 +2726,12 @@ export class ThrottlingException extends S.TaggedErrorClass message: S.String, retryAfterSeconds: S.optional(S.Number).pipe(T.HttpHeader("Retry-After")), }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", { message: S.String, reason: S.optional(ValidationExceptionReason) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} //# Operations diff --git a/packages/aws/src/services/codepipeline.ts b/packages/aws/src/services/codepipeline.ts index c959a8675d..897719bd18 100644 --- a/packages/aws/src/services/codepipeline.ts +++ b/packages/aws/src/services/codepipeline.ts @@ -243,31 +243,29 @@ export interface AcknowledgeThirdPartyJobInput { nonce: string; clientToken: string; } -export const AcknowledgeThirdPartyJobInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ jobId: S.String, nonce: S.String, clientToken: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const AcknowledgeThirdPartyJobInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ jobId: S.String, nonce: S.String, clientToken: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "AcknowledgeThirdPartyJobInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "AcknowledgeThirdPartyJobInput", +}) as any as S.Schema; export interface AcknowledgeThirdPartyJobOutput { status?: JobStatus; } -export const AcknowledgeThirdPartyJobOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ status: S.optional(JobStatus) }).pipe(ns), - ).annotate({ - identifier: "AcknowledgeThirdPartyJobOutput", - }) as any as S.Schema; +export const AcknowledgeThirdPartyJobOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ status: S.optional(JobStatus) }).pipe(ns), +).annotate({ + identifier: "AcknowledgeThirdPartyJobOutput", +}) as any as S.Schema; export type ActionCategory = | "Source" | "Build" @@ -309,23 +307,23 @@ export interface ActionConfigurationProperty { description?: string; type?: ActionConfigurationPropertyType; } -export const ActionConfigurationProperty = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.String, - required: S.Boolean, - key: S.Boolean, - secret: S.Boolean, - queryable: S.optional(S.Boolean), - description: S.optional(S.String), - type: S.optional(ActionConfigurationPropertyType), - }), - ).annotate({ - identifier: "ActionConfigurationProperty", - }) as any as S.Schema; +export const ActionConfigurationProperty = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.String, + required: S.Boolean, + key: S.Boolean, + secret: S.Boolean, + queryable: S.optional(S.Boolean), + description: S.optional(S.String), + type: S.optional(ActionConfigurationPropertyType), + }), +).annotate({ + identifier: "ActionConfigurationProperty", +}) as any as S.Schema; export type ActionConfigurationPropertyList = ActionConfigurationProperty[]; -export const ActionConfigurationPropertyList = - /*@__PURE__*/ S.Array(ActionConfigurationProperty); +export const ActionConfigurationPropertyList = /*@__PURE__*/ S.Array( + ActionConfigurationProperty, +); export interface ArtifactDetails { minimumCount: number; maximumCount: number; @@ -354,31 +352,30 @@ export interface CreateCustomActionTypeInput { outputArtifactDetails: ArtifactDetails; tags?: Tag[]; } -export const CreateCustomActionTypeInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - category: ActionCategory, - provider: S.String, - version: S.String, - settings: S.optional(ActionTypeSettings), - configurationProperties: S.optional(ActionConfigurationPropertyList), - inputArtifactDetails: ArtifactDetails, - outputArtifactDetails: ArtifactDetails, - tags: S.optional(TagList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateCustomActionTypeInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + category: ActionCategory, + provider: S.String, + version: S.String, + settings: S.optional(ActionTypeSettings), + configurationProperties: S.optional(ActionConfigurationPropertyList), + inputArtifactDetails: ArtifactDetails, + outputArtifactDetails: ArtifactDetails, + tags: S.optional(TagList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateCustomActionTypeInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateCustomActionTypeInput", +}) as any as S.Schema; export type ActionOwner = "AWS" | "ThirdParty" | "Custom" | (string & {}); export const ActionOwner = /*@__PURE__*/ S.String; export interface ActionTypeId { @@ -415,12 +412,11 @@ export interface CreateCustomActionTypeOutput { actionType: ActionType; tags?: Tag[]; } -export const CreateCustomActionTypeOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ actionType: ActionType, tags: S.optional(TagList) }).pipe(ns), - ).annotate({ - identifier: "CreateCustomActionTypeOutput", - }) as any as S.Schema; +export const CreateCustomActionTypeOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ actionType: ActionType, tags: S.optional(TagList) }).pipe(ns), +).annotate({ + identifier: "CreateCustomActionTypeOutput", +}) as any as S.Schema; export type ArtifactStoreType = "S3" | (string & {}); export const ArtifactStoreType = /*@__PURE__*/ S.String; export type EncryptionKeyType = "KMS" | (string & {}); @@ -689,19 +685,19 @@ export interface PipelineVariableDeclaration { defaultValue?: string; description?: string; } -export const PipelineVariableDeclaration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.String, - defaultValue: S.optional(S.String), - description: S.optional(S.String), - }), - ).annotate({ - identifier: "PipelineVariableDeclaration", - }) as any as S.Schema; +export const PipelineVariableDeclaration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.String, + defaultValue: S.optional(S.String), + description: S.optional(S.String), + }), +).annotate({ + identifier: "PipelineVariableDeclaration", +}) as any as S.Schema; export type PipelineVariableDeclarationList = PipelineVariableDeclaration[]; -export const PipelineVariableDeclarationList = - /*@__PURE__*/ S.Array(PipelineVariableDeclaration); +export const PipelineVariableDeclarationList = /*@__PURE__*/ S.Array( + PipelineVariableDeclaration, +); export type PipelineTriggerProviderType = | "CodeStarSourceConnection" | (string & {}); @@ -816,8 +812,9 @@ export const PipelineTriggerDeclaration = /*@__PURE__*/ S.suspend(() => identifier: "PipelineTriggerDeclaration", }) as any as S.Schema; export type PipelineTriggerDeclarationList = PipelineTriggerDeclaration[]; -export const PipelineTriggerDeclarationList = - /*@__PURE__*/ S.Array(PipelineTriggerDeclaration); +export const PipelineTriggerDeclarationList = /*@__PURE__*/ S.Array( + PipelineTriggerDeclaration, +); export interface PipelineDeclaration { name: string; roleArn: string; @@ -882,31 +879,31 @@ export interface DeleteCustomActionTypeInput { provider: string; version: string; } -export const DeleteCustomActionTypeInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - category: ActionCategory, - provider: S.String, - version: S.String, - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteCustomActionTypeInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + category: ActionCategory, + provider: S.String, + version: S.String, + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteCustomActionTypeInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteCustomActionTypeInput", +}) as any as S.Schema; export interface DeleteCustomActionTypeResponse {} -export const DeleteCustomActionTypeResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteCustomActionTypeResponse", - }) as any as S.Schema; +export const DeleteCustomActionTypeResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteCustomActionTypeResponse", +}) as any as S.Schema; export interface DeletePipelineInput { name: string; } @@ -958,8 +955,8 @@ export const DeleteWebhookOutput = /*@__PURE__*/ S.suspend(() => export interface DeregisterWebhookWithThirdPartyInput { webhookName?: string; } -export const DeregisterWebhookWithThirdPartyInput = - /*@__PURE__*/ S.suspend(() => +export const DeregisterWebhookWithThirdPartyInput = /*@__PURE__*/ S.suspend( + () => S.Struct({ webhookName: S.optional(S.String) }).pipe( T.all( ns, @@ -971,14 +968,15 @@ export const DeregisterWebhookWithThirdPartyInput = rules, ), ), - ).annotate({ - identifier: "DeregisterWebhookWithThirdPartyInput", - }) as any as S.Schema; +).annotate({ + identifier: "DeregisterWebhookWithThirdPartyInput", +}) as any as S.Schema; export interface DeregisterWebhookWithThirdPartyOutput {} -export const DeregisterWebhookWithThirdPartyOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeregisterWebhookWithThirdPartyOutput", - }) as any as S.Schema; +export const DeregisterWebhookWithThirdPartyOutput = /*@__PURE__*/ S.suspend( + () => S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeregisterWebhookWithThirdPartyOutput", +}) as any as S.Schema; export type StageTransitionType = "Inbound" | "Outbound" | (string & {}); export const StageTransitionType = /*@__PURE__*/ S.String; export interface DisableStageTransitionInput { @@ -987,32 +985,32 @@ export interface DisableStageTransitionInput { transitionType: StageTransitionType; reason: string; } -export const DisableStageTransitionInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - pipelineName: S.String, - stageName: S.String, - transitionType: StageTransitionType, - reason: S.String, - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DisableStageTransitionInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + pipelineName: S.String, + stageName: S.String, + transitionType: StageTransitionType, + reason: S.String, + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DisableStageTransitionInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DisableStageTransitionInput", +}) as any as S.Schema; export interface DisableStageTransitionResponse {} -export const DisableStageTransitionResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DisableStageTransitionResponse", - }) as any as S.Schema; +export const DisableStageTransitionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DisableStageTransitionResponse", +}) as any as S.Schema; export interface EnableStageTransitionInput { pipelineName: string; stageName: string; @@ -1038,10 +1036,11 @@ export const EnableStageTransitionInput = /*@__PURE__*/ S.suspend(() => identifier: "EnableStageTransitionInput", }) as any as S.Schema; export interface EnableStageTransitionResponse {} -export const EnableStageTransitionResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "EnableStageTransitionResponse", - }) as any as S.Schema; +export const EnableStageTransitionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "EnableStageTransitionResponse", +}) as any as S.Schema; export interface GetActionTypeInput { category: ActionCategory; owner: string; @@ -1071,12 +1070,11 @@ export const GetActionTypeInput = /*@__PURE__*/ S.suspend(() => export interface LambdaExecutorConfiguration { lambdaFunctionArn: string; } -export const LambdaExecutorConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ lambdaFunctionArn: S.String }), - ).annotate({ - identifier: "LambdaExecutorConfiguration", - }) as any as S.Schema; +export const LambdaExecutorConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ lambdaFunctionArn: S.String }), +).annotate({ + identifier: "LambdaExecutorConfiguration", +}) as any as S.Schema; export type PollingAccountList = string[]; export const PollingAccountList = /*@__PURE__*/ S.Array(S.String); export type PollingServicePrincipalList = string[]; @@ -1085,15 +1083,14 @@ export interface JobWorkerExecutorConfiguration { pollingAccounts?: string[]; pollingServicePrincipals?: string[]; } -export const JobWorkerExecutorConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - pollingAccounts: S.optional(PollingAccountList), - pollingServicePrincipals: S.optional(PollingServicePrincipalList), - }), - ).annotate({ - identifier: "JobWorkerExecutorConfiguration", - }) as any as S.Schema; +export const JobWorkerExecutorConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + pollingAccounts: S.optional(PollingAccountList), + pollingServicePrincipals: S.optional(PollingServicePrincipalList), + }), +).annotate({ + identifier: "JobWorkerExecutorConfiguration", +}) as any as S.Schema; export interface ExecutorConfiguration { lambdaExecutorConfiguration?: LambdaExecutorConfiguration; jobWorkerExecutorConfiguration?: JobWorkerExecutorConfiguration; @@ -1485,10 +1482,7 @@ export interface ResolvedPipelineVariable { resolvedValue?: string; } export const ResolvedPipelineVariable = /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.optional(S.String), - resolvedValue: S.optional(S.String), - }), + S.Struct({ name: S.optional(S.String), resolvedValue: S.optional(S.String) }), ).annotate({ identifier: "ResolvedPipelineVariable", }) as any as S.Schema; @@ -1628,14 +1622,14 @@ export const TransitionState = /*@__PURE__*/ S.suspend(() => }) as any as S.Schema; export interface ActionRevision { revisionId: string; - revisionChangeId: string; - created: Date; + revisionChangeId?: string; + created?: Date; } export const ActionRevision = /*@__PURE__*/ S.suspend(() => S.Struct({ revisionId: S.String, - revisionChangeId: S.String, - created: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + revisionChangeId: S.optional(S.String), + created: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), }), ).annotate({ identifier: "ActionRevision" }) as any as S.Schema; export type ActionExecutionStatus = @@ -1742,14 +1736,14 @@ export const ConditionExecution = /*@__PURE__*/ S.suspend(() => }) as any as S.Schema; export interface RuleRevision { revisionId: string; - revisionChangeId: string; - created: Date; + revisionChangeId?: string; + created?: Date; } export const RuleRevision = /*@__PURE__*/ S.suspend(() => S.Struct({ revisionId: S.String, - revisionChangeId: S.String, - created: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + revisionChangeId: S.optional(S.String), + created: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), }), ).annotate({ identifier: "RuleRevision" }) as any as S.Schema; export type RuleExecutionStatus = @@ -1896,22 +1890,21 @@ export interface GetThirdPartyJobDetailsInput { jobId: string; clientToken: string; } -export const GetThirdPartyJobDetailsInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ jobId: S.String, clientToken: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetThirdPartyJobDetailsInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ jobId: S.String, clientToken: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetThirdPartyJobDetailsInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetThirdPartyJobDetailsInput", +}) as any as S.Schema; export interface ThirdPartyJobData { actionTypeId?: ActionTypeId; actionConfiguration?: ActionConfiguration; @@ -1953,24 +1946,22 @@ export const ThirdPartyJobDetails = /*@__PURE__*/ S.suspend(() => export interface GetThirdPartyJobDetailsOutput { jobDetails?: ThirdPartyJobDetails; } -export const GetThirdPartyJobDetailsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ jobDetails: S.optional(ThirdPartyJobDetails) }).pipe(ns), - ).annotate({ - identifier: "GetThirdPartyJobDetailsOutput", - }) as any as S.Schema; +export const GetThirdPartyJobDetailsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ jobDetails: S.optional(ThirdPartyJobDetails) }).pipe(ns), +).annotate({ + identifier: "GetThirdPartyJobDetailsOutput", +}) as any as S.Schema; export type StartTimeRange = "Latest" | "All" | (string & {}); export const StartTimeRange = /*@__PURE__*/ S.String; export interface LatestInPipelineExecutionFilter { pipelineExecutionId: string; startTimeRange: StartTimeRange; } -export const LatestInPipelineExecutionFilter = - /*@__PURE__*/ S.suspend(() => - S.Struct({ pipelineExecutionId: S.String, startTimeRange: StartTimeRange }), - ).annotate({ - identifier: "LatestInPipelineExecutionFilter", - }) as any as S.Schema; +export const LatestInPipelineExecutionFilter = /*@__PURE__*/ S.suspend(() => + S.Struct({ pipelineExecutionId: S.String, startTimeRange: StartTimeRange }), +).annotate({ + identifier: "LatestInPipelineExecutionFilter", +}) as any as S.Schema; export interface ActionExecutionFilter { pipelineExecutionId?: string; latestInPipelineExecution?: LatestInPipelineExecutionFilter; @@ -2012,8 +2003,10 @@ export const ListActionExecutionsInput = /*@__PURE__*/ S.suspend(() => export type ResolvedActionConfigurationMap = { [key: string]: string | undefined; }; -export const ResolvedActionConfigurationMap = - /*@__PURE__*/ S.Record(S.String, S.String.pipe(S.optional)); +export const ResolvedActionConfigurationMap = /*@__PURE__*/ S.Record( + S.String, + S.String.pipe(S.optional), +); export interface S3Location { bucket?: string; key?: string; @@ -2196,8 +2189,8 @@ export interface ListDeployActionExecutionTargetsInput { maxResults?: number; nextToken?: string; } -export const ListDeployActionExecutionTargetsInput = - /*@__PURE__*/ S.suspend(() => +export const ListDeployActionExecutionTargetsInput = /*@__PURE__*/ S.suspend( + () => S.Struct({ pipelineName: S.optional(S.String), actionExecutionId: S.String, @@ -2215,9 +2208,9 @@ export const ListDeployActionExecutionTargetsInput = rules, ), ), - ).annotate({ - identifier: "ListDeployActionExecutionTargetsInput", - }) as any as S.Schema; +).annotate({ + identifier: "ListDeployActionExecutionTargetsInput", +}) as any as S.Schema; export interface DeployTargetEventContext { ssmCommandId?: string; message?: string; @@ -2258,35 +2251,35 @@ export interface DeployActionExecutionTarget { endTime?: Date; events?: DeployTargetEvent[]; } -export const DeployActionExecutionTarget = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - targetId: S.optional(S.String), - targetType: S.optional(S.String), - status: S.optional(S.String), - startTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - endTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - events: S.optional(DeployTargetEventList), - }), - ).annotate({ - identifier: "DeployActionExecutionTarget", - }) as any as S.Schema; +export const DeployActionExecutionTarget = /*@__PURE__*/ S.suspend(() => + S.Struct({ + targetId: S.optional(S.String), + targetType: S.optional(S.String), + status: S.optional(S.String), + startTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + endTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + events: S.optional(DeployTargetEventList), + }), +).annotate({ + identifier: "DeployActionExecutionTarget", +}) as any as S.Schema; export type DeployActionExecutionTargetList = DeployActionExecutionTarget[]; -export const DeployActionExecutionTargetList = - /*@__PURE__*/ S.Array(DeployActionExecutionTarget); +export const DeployActionExecutionTargetList = /*@__PURE__*/ S.Array( + DeployActionExecutionTarget, +); export interface ListDeployActionExecutionTargetsOutput { targets?: DeployActionExecutionTarget[]; nextToken?: string; } -export const ListDeployActionExecutionTargetsOutput = - /*@__PURE__*/ S.suspend(() => +export const ListDeployActionExecutionTargetsOutput = /*@__PURE__*/ S.suspend( + () => S.Struct({ targets: S.optional(DeployActionExecutionTargetList), nextToken: S.optional(S.String), }).pipe(ns), - ).annotate({ - identifier: "ListDeployActionExecutionTargetsOutput", - }) as any as S.Schema; +).annotate({ + identifier: "ListDeployActionExecutionTargetsOutput", +}) as any as S.Schema; export interface SucceededInStageFilter { stageName?: string; } @@ -2309,27 +2302,26 @@ export interface ListPipelineExecutionsInput { filter?: PipelineExecutionFilter; nextToken?: string; } -export const ListPipelineExecutionsInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - pipelineName: S.String, - maxResults: S.optional(S.Number), - filter: S.optional(PipelineExecutionFilter), - nextToken: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListPipelineExecutionsInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + pipelineName: S.String, + maxResults: S.optional(S.Number), + filter: S.optional(PipelineExecutionFilter), + nextToken: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListPipelineExecutionsInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListPipelineExecutionsInput", +}) as any as S.Schema; export interface SourceRevision { actionName: string; revisionId?: string; @@ -2392,15 +2384,14 @@ export interface ListPipelineExecutionsOutput { pipelineExecutionSummaries?: PipelineExecutionSummary[]; nextToken?: string; } -export const ListPipelineExecutionsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - pipelineExecutionSummaries: S.optional(PipelineExecutionSummaryList), - nextToken: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "ListPipelineExecutionsOutput", - }) as any as S.Schema; +export const ListPipelineExecutionsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + pipelineExecutionSummaries: S.optional(PipelineExecutionSummaryList), + nextToken: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "ListPipelineExecutionsOutput", +}) as any as S.Schema; export interface ListPipelinesInput { nextToken?: string; maxResults?: number; @@ -2498,8 +2489,10 @@ export const ListRuleExecutionsInput = /*@__PURE__*/ S.suspend(() => export type ResolvedRuleConfigurationMap = { [key: string]: string | undefined; }; -export const ResolvedRuleConfigurationMap = - /*@__PURE__*/ S.Record(S.String, S.String.pipe(S.optional)); +export const ResolvedRuleConfigurationMap = /*@__PURE__*/ S.Record( + S.String, + S.String.pipe(S.optional), +); export interface RuleExecutionInput { ruleTypeId?: RuleTypeId; configuration?: { [key: string]: string | undefined }; @@ -2656,8 +2649,9 @@ export const RuleConfigurationProperty = /*@__PURE__*/ S.suspend(() => identifier: "RuleConfigurationProperty", }) as any as S.Schema; export type RuleConfigurationPropertyList = RuleConfigurationProperty[]; -export const RuleConfigurationPropertyList = - /*@__PURE__*/ S.Array(RuleConfigurationProperty); +export const RuleConfigurationPropertyList = /*@__PURE__*/ S.Array( + RuleConfigurationProperty, +); export interface RuleType { id: RuleTypeId; settings?: RuleTypeSettings; @@ -2711,10 +2705,9 @@ export interface ListTagsForResourceOutput { nextToken?: string; } export const ListTagsForResourceOutput = /*@__PURE__*/ S.suspend(() => - S.Struct({ - tags: S.optional(TagList), - nextToken: S.optional(S.String), - }).pipe(ns), + S.Struct({ tags: S.optional(TagList), nextToken: S.optional(S.String) }).pipe( + ns, + ), ).annotate({ identifier: "ListTagsForResourceOutput", }) as any as S.Schema; @@ -2759,12 +2752,12 @@ export type WebhookAuthenticationType = export const WebhookAuthenticationType = /*@__PURE__*/ S.String; export interface WebhookAuthConfiguration { AllowedIPRange?: string; - SecretToken?: string; + SecretToken?: string | redacted.Redacted; } export const WebhookAuthConfiguration = /*@__PURE__*/ S.suspend(() => S.Struct({ AllowedIPRange: S.optional(S.String), - SecretToken: S.optional(S.String), + SecretToken: S.optional(SensitiveString), }), ).annotate({ identifier: "WebhookAuthConfiguration", @@ -2833,32 +2826,32 @@ export interface OverrideStageConditionInput { pipelineExecutionId: string; conditionType: ConditionType; } -export const OverrideStageConditionInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - pipelineName: S.String, - stageName: S.String, - pipelineExecutionId: S.String, - conditionType: ConditionType, - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const OverrideStageConditionInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + pipelineName: S.String, + stageName: S.String, + pipelineExecutionId: S.String, + conditionType: ConditionType, + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "OverrideStageConditionInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "OverrideStageConditionInput", +}) as any as S.Schema; export interface OverrideStageConditionResponse {} -export const OverrideStageConditionResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "OverrideStageConditionResponse", - }) as any as S.Schema; +export const OverrideStageConditionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "OverrideStageConditionResponse", +}) as any as S.Schema; export type QueryParamMap = { [key: string]: string | undefined }; export const QueryParamMap = /*@__PURE__*/ S.Record( S.String, @@ -2946,12 +2939,11 @@ export const ThirdPartyJobList = /*@__PURE__*/ S.Array(ThirdPartyJob); export interface PollForThirdPartyJobsOutput { jobs?: ThirdPartyJob[]; } -export const PollForThirdPartyJobsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ jobs: S.optional(ThirdPartyJobList) }).pipe(ns), - ).annotate({ - identifier: "PollForThirdPartyJobsOutput", - }) as any as S.Schema; +export const PollForThirdPartyJobsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ jobs: S.optional(ThirdPartyJobList) }).pipe(ns), +).annotate({ + identifier: "PollForThirdPartyJobsOutput", +}) as any as S.Schema; export interface PutActionRevisionInput { pipelineName: string; stageName: string; @@ -3078,10 +3070,11 @@ export const PutJobFailureResultInput = /*@__PURE__*/ S.suspend(() => identifier: "PutJobFailureResultInput", }) as any as S.Schema; export interface PutJobFailureResultResponse {} -export const PutJobFailureResultResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "PutJobFailureResultResponse", - }) as any as S.Schema; +export const PutJobFailureResultResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "PutJobFailureResultResponse", +}) as any as S.Schema; export interface CurrentRevision { revision: string; changeIdentifier: string; @@ -3141,40 +3134,41 @@ export const PutJobSuccessResultInput = /*@__PURE__*/ S.suspend(() => identifier: "PutJobSuccessResultInput", }) as any as S.Schema; export interface PutJobSuccessResultResponse {} -export const PutJobSuccessResultResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "PutJobSuccessResultResponse", - }) as any as S.Schema; +export const PutJobSuccessResultResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "PutJobSuccessResultResponse", +}) as any as S.Schema; export interface PutThirdPartyJobFailureResultInput { jobId: string; clientToken: string; failureDetails: FailureDetails; } -export const PutThirdPartyJobFailureResultInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - jobId: S.String, - clientToken: S.String, - failureDetails: FailureDetails, - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const PutThirdPartyJobFailureResultInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + jobId: S.String, + clientToken: S.String, + failureDetails: FailureDetails, + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "PutThirdPartyJobFailureResultInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "PutThirdPartyJobFailureResultInput", +}) as any as S.Schema; export interface PutThirdPartyJobFailureResultResponse {} -export const PutThirdPartyJobFailureResultResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "PutThirdPartyJobFailureResultResponse", - }) as any as S.Schema; +export const PutThirdPartyJobFailureResultResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}).pipe(ns), +).annotate({ + identifier: "PutThirdPartyJobFailureResultResponse", +}) as any as S.Schema; export interface PutThirdPartyJobSuccessResultInput { jobId: string; clientToken: string; @@ -3182,33 +3176,33 @@ export interface PutThirdPartyJobSuccessResultInput { continuationToken?: string; executionDetails?: ExecutionDetails; } -export const PutThirdPartyJobSuccessResultInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - jobId: S.String, - clientToken: S.String, - currentRevision: S.optional(CurrentRevision), - continuationToken: S.optional(S.String), - executionDetails: S.optional(ExecutionDetails), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const PutThirdPartyJobSuccessResultInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + jobId: S.String, + clientToken: S.String, + currentRevision: S.optional(CurrentRevision), + continuationToken: S.optional(S.String), + executionDetails: S.optional(ExecutionDetails), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "PutThirdPartyJobSuccessResultInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "PutThirdPartyJobSuccessResultInput", +}) as any as S.Schema; export interface PutThirdPartyJobSuccessResultResponse {} -export const PutThirdPartyJobSuccessResultResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "PutThirdPartyJobSuccessResultResponse", - }) as any as S.Schema; +export const PutThirdPartyJobSuccessResultResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}).pipe(ns), +).annotate({ + identifier: "PutThirdPartyJobSuccessResultResponse", +}) as any as S.Schema; export interface PutWebhookInput { webhook: WebhookDefinition; tags?: Tag[]; @@ -3239,27 +3233,27 @@ export const PutWebhookOutput = /*@__PURE__*/ S.suspend(() => export interface RegisterWebhookWithThirdPartyInput { webhookName?: string; } -export const RegisterWebhookWithThirdPartyInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ webhookName: S.optional(S.String) }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const RegisterWebhookWithThirdPartyInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ webhookName: S.optional(S.String) }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "RegisterWebhookWithThirdPartyInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "RegisterWebhookWithThirdPartyInput", +}) as any as S.Schema; export interface RegisterWebhookWithThirdPartyOutput {} -export const RegisterWebhookWithThirdPartyOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "RegisterWebhookWithThirdPartyOutput", - }) as any as S.Schema; +export const RegisterWebhookWithThirdPartyOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "RegisterWebhookWithThirdPartyOutput", +}) as any as S.Schema; export interface RetryStageExecutionInput { pipelineName: string; stageName: string; @@ -3368,36 +3362,34 @@ export interface StartPipelineExecutionInput { clientRequestToken?: string; sourceRevisions?: SourceRevisionOverride[]; } -export const StartPipelineExecutionInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.String, - variables: S.optional(PipelineVariableList), - clientRequestToken: S.optional(S.String).pipe(T.IdempotencyToken()), - sourceRevisions: S.optional(SourceRevisionOverrideList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const StartPipelineExecutionInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.String, + variables: S.optional(PipelineVariableList), + clientRequestToken: S.optional(S.String).pipe(T.IdempotencyToken()), + sourceRevisions: S.optional(SourceRevisionOverrideList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "StartPipelineExecutionInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "StartPipelineExecutionInput", +}) as any as S.Schema; export interface StartPipelineExecutionOutput { pipelineExecutionId?: string; } -export const StartPipelineExecutionOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ pipelineExecutionId: S.optional(S.String) }).pipe(ns), - ).annotate({ - identifier: "StartPipelineExecutionOutput", - }) as any as S.Schema; +export const StartPipelineExecutionOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ pipelineExecutionId: S.optional(S.String) }).pipe(ns), +).annotate({ + identifier: "StartPipelineExecutionOutput", +}) as any as S.Schema; export interface StopPipelineExecutionInput { pipelineName: string; pipelineExecutionId: string; @@ -3427,12 +3419,11 @@ export const StopPipelineExecutionInput = /*@__PURE__*/ S.suspend(() => export interface StopPipelineExecutionOutput { pipelineExecutionId?: string; } -export const StopPipelineExecutionOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ pipelineExecutionId: S.optional(S.String) }).pipe(ns), - ).annotate({ - identifier: "StopPipelineExecutionOutput", - }) as any as S.Schema; +export const StopPipelineExecutionOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ pipelineExecutionId: S.optional(S.String) }).pipe(ns), +).annotate({ + identifier: "StopPipelineExecutionOutput", +}) as any as S.Schema; export interface TagResourceInput { resourceArn: string; tags: Tag[]; @@ -3644,6 +3635,7 @@ export class ConditionNotOverridableException extends S.TaggedErrorClass()( "ConflictException", { message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class NotLatestPipelineExecutionException extends S.TaggedErrorClass()( "NotLatestPipelineExecutionException", diff --git a/packages/aws/src/services/cognito-identity.ts b/packages/aws/src/services/cognito-identity.ts index abf28443a3..fedace44a8 100644 --- a/packages/aws/src/services/cognito-identity.ts +++ b/packages/aws/src/services/cognito-identity.ts @@ -404,14 +404,14 @@ export const GetCredentialsForIdentityInput = export interface Credentials { AccessKeyId?: string; SecretKey?: string | redacted.Redacted; - SessionToken?: string; + SessionToken?: string | redacted.Redacted; Expiration?: Date; } export const Credentials = /*@__PURE__*/ S.suspend(() => S.Struct({ AccessKeyId: S.optional(S.String), SecretKey: S.optional(SensitiveString), - SessionToken: S.optional(S.String), + SessionToken: S.optional(SensitiveString), Expiration: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), }), ).annotate({ identifier: "Credentials" }) as any as S.Schema; @@ -1059,42 +1059,52 @@ export class InternalErrorException extends S.TaggedErrorClass()( "InvalidParameterException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class LimitExceededException extends S.TaggedErrorClass()( "LimitExceededException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class NotAuthorizedException extends S.TaggedErrorClass()( "NotAuthorizedException", { message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class ResourceConflictException extends S.TaggedErrorClass()( "ResourceConflictException", { message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class TooManyRequestsException extends S.TaggedErrorClass()( "TooManyRequestsException", { message: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ExternalServiceException extends S.TaggedErrorClass()( "ExternalServiceException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidIdentityPoolConfigurationException extends S.TaggedErrorClass()( "InvalidIdentityPoolConfigurationException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class DeveloperUserAlreadyRegisteredException extends S.TaggedErrorClass()( "DeveloperUserAlreadyRegisteredException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ConcurrentModificationException extends S.TaggedErrorClass()( "ConcurrentModificationException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} //# Operations diff --git a/packages/aws/src/services/comprehend.ts b/packages/aws/src/services/comprehend.ts index cd63e2839c..78d9b5ae30 100644 --- a/packages/aws/src/services/comprehend.ts +++ b/packages/aws/src/services/comprehend.ts @@ -128,19 +128,18 @@ export type MaxResultsInteger = number; export type NumberOfTopicsInteger = number; //# Schemas -export type CustomerInputStringList = string | redacted.Redacted[]; +export type CustomerInputStringList = (string | redacted.Redacted)[]; export const CustomerInputStringList = /*@__PURE__*/ S.Array(SensitiveString); export interface BatchDetectDominantLanguageRequest { - TextList: string | redacted.Redacted[]; + TextList: (string | redacted.Redacted)[]; } -export const BatchDetectDominantLanguageRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ TextList: CustomerInputStringList }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "BatchDetectDominantLanguageRequest", - }) as any as S.Schema; +export const BatchDetectDominantLanguageRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ TextList: CustomerInputStringList }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "BatchDetectDominantLanguageRequest", +}) as any as S.Schema; export interface DominantLanguage { LanguageCode?: string; Score?: number; @@ -156,19 +155,20 @@ export interface BatchDetectDominantLanguageItemResult { Index?: number; Languages?: DominantLanguage[]; } -export const BatchDetectDominantLanguageItemResult = - /*@__PURE__*/ S.suspend(() => +export const BatchDetectDominantLanguageItemResult = /*@__PURE__*/ S.suspend( + () => S.Struct({ Index: S.optional(S.Number), Languages: S.optional(ListOfDominantLanguages), }), - ).annotate({ - identifier: "BatchDetectDominantLanguageItemResult", - }) as any as S.Schema; +).annotate({ + identifier: "BatchDetectDominantLanguageItemResult", +}) as any as S.Schema; export type ListOfDetectDominantLanguageResult = BatchDetectDominantLanguageItemResult[]; -export const ListOfDetectDominantLanguageResult = - /*@__PURE__*/ S.Array(BatchDetectDominantLanguageItemResult); +export const ListOfDetectDominantLanguageResult = /*@__PURE__*/ S.Array( + BatchDetectDominantLanguageItemResult, +); export interface BatchItemError { Index?: number; ErrorCode?: string; @@ -187,15 +187,14 @@ export interface BatchDetectDominantLanguageResponse { ResultList: BatchDetectDominantLanguageItemResult[]; ErrorList: BatchItemError[]; } -export const BatchDetectDominantLanguageResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResultList: ListOfDetectDominantLanguageResult, - ErrorList: BatchItemErrorList, - }), - ).annotate({ - identifier: "BatchDetectDominantLanguageResponse", - }) as any as S.Schema; +export const BatchDetectDominantLanguageResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResultList: ListOfDetectDominantLanguageResult, + ErrorList: BatchItemErrorList, + }), +).annotate({ + identifier: "BatchDetectDominantLanguageResponse", +}) as any as S.Schema; export type InvalidRequestReason = "INVALID_DOCUMENT" | (string & {}); export const InvalidRequestReason = /*@__PURE__*/ S.String; export type InvalidRequestDetailReason = @@ -229,7 +228,7 @@ export type LanguageCode = | (string & {}); export const LanguageCode = /*@__PURE__*/ S.String; export interface BatchDetectEntitiesRequest { - TextList: string | redacted.Redacted[]; + TextList: (string | redacted.Redacted)[]; LanguageCode: LanguageCode; } export const BatchDetectEntitiesRequest = /*@__PURE__*/ S.suspend(() => @@ -308,15 +307,14 @@ export interface BatchDetectEntitiesItemResult { Index?: number; Entities?: Entity[]; } -export const BatchDetectEntitiesItemResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Index: S.optional(S.Number), - Entities: S.optional(ListOfEntities), - }), - ).annotate({ - identifier: "BatchDetectEntitiesItemResult", - }) as any as S.Schema; +export const BatchDetectEntitiesItemResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Index: S.optional(S.Number), + Entities: S.optional(ListOfEntities), + }), +).annotate({ + identifier: "BatchDetectEntitiesItemResult", +}) as any as S.Schema; export type ListOfDetectEntitiesResult = BatchDetectEntitiesItemResult[]; export const ListOfDetectEntitiesResult = /*@__PURE__*/ S.Array( BatchDetectEntitiesItemResult, @@ -325,30 +323,28 @@ export interface BatchDetectEntitiesResponse { ResultList: BatchDetectEntitiesItemResult[]; ErrorList: BatchItemError[]; } -export const BatchDetectEntitiesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResultList: ListOfDetectEntitiesResult, - ErrorList: BatchItemErrorList, - }), - ).annotate({ - identifier: "BatchDetectEntitiesResponse", - }) as any as S.Schema; +export const BatchDetectEntitiesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResultList: ListOfDetectEntitiesResult, + ErrorList: BatchItemErrorList, + }), +).annotate({ + identifier: "BatchDetectEntitiesResponse", +}) as any as S.Schema; export interface BatchDetectKeyPhrasesRequest { - TextList: string | redacted.Redacted[]; + TextList: (string | redacted.Redacted)[]; LanguageCode: LanguageCode; } -export const BatchDetectKeyPhrasesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TextList: CustomerInputStringList, - LanguageCode: LanguageCode, - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "BatchDetectKeyPhrasesRequest", - }) as any as S.Schema; +export const BatchDetectKeyPhrasesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TextList: CustomerInputStringList, + LanguageCode: LanguageCode, + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "BatchDetectKeyPhrasesRequest", +}) as any as S.Schema; export interface KeyPhrase { Score?: number; Text?: string; @@ -369,15 +365,14 @@ export interface BatchDetectKeyPhrasesItemResult { Index?: number; KeyPhrases?: KeyPhrase[]; } -export const BatchDetectKeyPhrasesItemResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Index: S.optional(S.Number), - KeyPhrases: S.optional(ListOfKeyPhrases), - }), - ).annotate({ - identifier: "BatchDetectKeyPhrasesItemResult", - }) as any as S.Schema; +export const BatchDetectKeyPhrasesItemResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Index: S.optional(S.Number), + KeyPhrases: S.optional(ListOfKeyPhrases), + }), +).annotate({ + identifier: "BatchDetectKeyPhrasesItemResult", +}) as any as S.Schema; export type ListOfDetectKeyPhrasesResult = BatchDetectKeyPhrasesItemResult[]; export const ListOfDetectKeyPhrasesResult = /*@__PURE__*/ S.Array( BatchDetectKeyPhrasesItemResult, @@ -386,30 +381,28 @@ export interface BatchDetectKeyPhrasesResponse { ResultList: BatchDetectKeyPhrasesItemResult[]; ErrorList: BatchItemError[]; } -export const BatchDetectKeyPhrasesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResultList: ListOfDetectKeyPhrasesResult, - ErrorList: BatchItemErrorList, - }), - ).annotate({ - identifier: "BatchDetectKeyPhrasesResponse", - }) as any as S.Schema; +export const BatchDetectKeyPhrasesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResultList: ListOfDetectKeyPhrasesResult, + ErrorList: BatchItemErrorList, + }), +).annotate({ + identifier: "BatchDetectKeyPhrasesResponse", +}) as any as S.Schema; export interface BatchDetectSentimentRequest { - TextList: string | redacted.Redacted[]; + TextList: (string | redacted.Redacted)[]; LanguageCode: LanguageCode; } -export const BatchDetectSentimentRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TextList: CustomerInputStringList, - LanguageCode: LanguageCode, - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "BatchDetectSentimentRequest", - }) as any as S.Schema; +export const BatchDetectSentimentRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TextList: CustomerInputStringList, + LanguageCode: LanguageCode, + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "BatchDetectSentimentRequest", +}) as any as S.Schema; export type SentimentType = | "POSITIVE" | "NEGATIVE" @@ -436,16 +429,15 @@ export interface BatchDetectSentimentItemResult { Sentiment?: SentimentType; SentimentScore?: SentimentScore; } -export const BatchDetectSentimentItemResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Index: S.optional(S.Number), - Sentiment: S.optional(SentimentType), - SentimentScore: S.optional(SentimentScore), - }), - ).annotate({ - identifier: "BatchDetectSentimentItemResult", - }) as any as S.Schema; +export const BatchDetectSentimentItemResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Index: S.optional(S.Number), + Sentiment: S.optional(SentimentType), + SentimentScore: S.optional(SentimentScore), + }), +).annotate({ + identifier: "BatchDetectSentimentItemResult", +}) as any as S.Schema; export type ListOfDetectSentimentResult = BatchDetectSentimentItemResult[]; export const ListOfDetectSentimentResult = /*@__PURE__*/ S.Array( BatchDetectSentimentItemResult, @@ -454,15 +446,14 @@ export interface BatchDetectSentimentResponse { ResultList: BatchDetectSentimentItemResult[]; ErrorList: BatchItemError[]; } -export const BatchDetectSentimentResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResultList: ListOfDetectSentimentResult, - ErrorList: BatchItemErrorList, - }), - ).annotate({ - identifier: "BatchDetectSentimentResponse", - }) as any as S.Schema; +export const BatchDetectSentimentResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResultList: ListOfDetectSentimentResult, + ErrorList: BatchItemErrorList, + }), +).annotate({ + identifier: "BatchDetectSentimentResponse", +}) as any as S.Schema; export type SyntaxLanguageCode = | "en" | "es" @@ -473,7 +464,7 @@ export type SyntaxLanguageCode = | (string & {}); export const SyntaxLanguageCode = /*@__PURE__*/ S.String; export interface BatchDetectSyntaxRequest { - TextList: string | redacted.Redacted[]; + TextList: (string | redacted.Redacted)[]; LanguageCode: SyntaxLanguageCode; } export const BatchDetectSyntaxRequest = /*@__PURE__*/ S.suspend(() => @@ -541,15 +532,14 @@ export interface BatchDetectSyntaxItemResult { Index?: number; SyntaxTokens?: SyntaxToken[]; } -export const BatchDetectSyntaxItemResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Index: S.optional(S.Number), - SyntaxTokens: S.optional(ListOfSyntaxTokens), - }), - ).annotate({ - identifier: "BatchDetectSyntaxItemResult", - }) as any as S.Schema; +export const BatchDetectSyntaxItemResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Index: S.optional(S.Number), + SyntaxTokens: S.optional(ListOfSyntaxTokens), + }), +).annotate({ + identifier: "BatchDetectSyntaxItemResult", +}) as any as S.Schema; export type ListOfDetectSyntaxResult = BatchDetectSyntaxItemResult[]; export const ListOfDetectSyntaxResult = /*@__PURE__*/ S.Array( BatchDetectSyntaxItemResult, @@ -567,20 +557,19 @@ export const BatchDetectSyntaxResponse = /*@__PURE__*/ S.suspend(() => identifier: "BatchDetectSyntaxResponse", }) as any as S.Schema; export interface BatchDetectTargetedSentimentRequest { - TextList: string | redacted.Redacted[]; + TextList: (string | redacted.Redacted)[]; LanguageCode: LanguageCode; } -export const BatchDetectTargetedSentimentRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TextList: CustomerInputStringList, - LanguageCode: LanguageCode, - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "BatchDetectTargetedSentimentRequest", - }) as any as S.Schema; +export const BatchDetectTargetedSentimentRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TextList: CustomerInputStringList, + LanguageCode: LanguageCode, + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "BatchDetectTargetedSentimentRequest", +}) as any as S.Schema; export type ListOfDescriptiveMentionIndices = number[]; export const ListOfDescriptiveMentionIndices = /*@__PURE__*/ S.Array(S.Number); export type TargetedSentimentEntityType = @@ -652,38 +641,40 @@ export const TargetedSentimentEntity = /*@__PURE__*/ S.suspend(() => identifier: "TargetedSentimentEntity", }) as any as S.Schema; export type ListOfTargetedSentimentEntities = TargetedSentimentEntity[]; -export const ListOfTargetedSentimentEntities = - /*@__PURE__*/ S.Array(TargetedSentimentEntity); +export const ListOfTargetedSentimentEntities = /*@__PURE__*/ S.Array( + TargetedSentimentEntity, +); export interface BatchDetectTargetedSentimentItemResult { Index?: number; Entities?: TargetedSentimentEntity[]; } -export const BatchDetectTargetedSentimentItemResult = - /*@__PURE__*/ S.suspend(() => +export const BatchDetectTargetedSentimentItemResult = /*@__PURE__*/ S.suspend( + () => S.Struct({ Index: S.optional(S.Number), Entities: S.optional(ListOfTargetedSentimentEntities), }), - ).annotate({ - identifier: "BatchDetectTargetedSentimentItemResult", - }) as any as S.Schema; +).annotate({ + identifier: "BatchDetectTargetedSentimentItemResult", +}) as any as S.Schema; export type ListOfDetectTargetedSentimentResult = BatchDetectTargetedSentimentItemResult[]; -export const ListOfDetectTargetedSentimentResult = - /*@__PURE__*/ S.Array(BatchDetectTargetedSentimentItemResult); +export const ListOfDetectTargetedSentimentResult = /*@__PURE__*/ S.Array( + BatchDetectTargetedSentimentItemResult, +); export interface BatchDetectTargetedSentimentResponse { ResultList: BatchDetectTargetedSentimentItemResult[]; ErrorList: BatchItemError[]; } -export const BatchDetectTargetedSentimentResponse = - /*@__PURE__*/ S.suspend(() => +export const BatchDetectTargetedSentimentResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ ResultList: ListOfDetectTargetedSentimentResult, ErrorList: BatchItemErrorList, }), - ).annotate({ - identifier: "BatchDetectTargetedSentimentResponse", - }) as any as S.Schema; +).annotate({ + identifier: "BatchDetectTargetedSentimentResponse", +}) as any as S.Schema; export type DocumentReadAction = | "TEXTRACT_DETECT_DOCUMENT_TEXT" | "TEXTRACT_ANALYZE_DOCUMENT" @@ -697,8 +688,9 @@ export const DocumentReadMode = /*@__PURE__*/ S.String; export type DocumentReadFeatureTypes = "TABLES" | "FORMS" | (string & {}); export const DocumentReadFeatureTypes = /*@__PURE__*/ S.String; export type ListOfDocumentReadFeatureTypes = DocumentReadFeatureTypes[]; -export const ListOfDocumentReadFeatureTypes = - /*@__PURE__*/ S.Array(DocumentReadFeatureTypes); +export const ListOfDocumentReadFeatureTypes = /*@__PURE__*/ S.Array( + DocumentReadFeatureTypes, +); export interface DocumentReaderConfig { DocumentReadAction: DocumentReadAction; DocumentReadMode?: DocumentReadMode; @@ -763,12 +755,11 @@ export interface ExtractedCharactersListItem { Page?: number; Count?: number; } -export const ExtractedCharactersListItem = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Page: S.optional(S.Number), Count: S.optional(S.Number) }), - ).annotate({ - identifier: "ExtractedCharactersListItem", - }) as any as S.Schema; +export const ExtractedCharactersListItem = /*@__PURE__*/ S.suspend(() => + S.Struct({ Page: S.optional(S.Number), Count: S.optional(S.Number) }), +).annotate({ + identifier: "ExtractedCharactersListItem", +}) as any as S.Schema; export type ListOfExtractedCharacters = ExtractedCharactersListItem[]; export const ListOfExtractedCharacters = /*@__PURE__*/ S.Array( ExtractedCharactersListItem, @@ -932,12 +923,11 @@ export const ListOfEntityLabels = /*@__PURE__*/ S.Array(EntityLabel); export interface ContainsPiiEntitiesResponse { Labels?: EntityLabel[]; } -export const ContainsPiiEntitiesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Labels: S.optional(ListOfEntityLabels) }), - ).annotate({ - identifier: "ContainsPiiEntitiesResponse", - }) as any as S.Schema; +export const ContainsPiiEntitiesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Labels: S.optional(ListOfEntityLabels) }), +).annotate({ + identifier: "ContainsPiiEntitiesResponse", +}) as any as S.Schema; export type DatasetType = "TRAIN" | "TEST" | (string & {}); export const DatasetType = /*@__PURE__*/ S.String; export type AttributeNamesList = string[]; @@ -954,21 +944,21 @@ export interface DatasetAugmentedManifestsListItem { SourceDocumentsS3Uri?: string; DocumentType?: AugmentedManifestsDocumentTypeFormat; } -export const DatasetAugmentedManifestsListItem = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AttributeNames: AttributeNamesList, - S3Uri: S.String, - AnnotationDataS3Uri: S.optional(S.String), - SourceDocumentsS3Uri: S.optional(S.String), - DocumentType: S.optional(AugmentedManifestsDocumentTypeFormat), - }), - ).annotate({ - identifier: "DatasetAugmentedManifestsListItem", - }) as any as S.Schema; +export const DatasetAugmentedManifestsListItem = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AttributeNames: AttributeNamesList, + S3Uri: S.String, + AnnotationDataS3Uri: S.optional(S.String), + SourceDocumentsS3Uri: S.optional(S.String), + DocumentType: S.optional(AugmentedManifestsDocumentTypeFormat), + }), +).annotate({ + identifier: "DatasetAugmentedManifestsListItem", +}) as any as S.Schema; export type DatasetAugmentedManifestsList = DatasetAugmentedManifestsListItem[]; -export const DatasetAugmentedManifestsList = - /*@__PURE__*/ S.Array(DatasetAugmentedManifestsListItem); +export const DatasetAugmentedManifestsList = /*@__PURE__*/ S.Array( + DatasetAugmentedManifestsListItem, +); export type DatasetDataFormat = | "COMPREHEND_CSV" | "AUGMENTED_MANIFEST" @@ -978,19 +968,19 @@ export interface DatasetDocumentClassifierInputDataConfig { S3Uri: string; LabelDelimiter?: string; } -export const DatasetDocumentClassifierInputDataConfig = - /*@__PURE__*/ S.suspend(() => - S.Struct({ S3Uri: S.String, LabelDelimiter: S.optional(S.String) }), - ).annotate({ - identifier: "DatasetDocumentClassifierInputDataConfig", - }) as any as S.Schema; +export const DatasetDocumentClassifierInputDataConfig = /*@__PURE__*/ S.suspend( + () => S.Struct({ S3Uri: S.String, LabelDelimiter: S.optional(S.String) }), +).annotate({ + identifier: "DatasetDocumentClassifierInputDataConfig", +}) as any as S.Schema; export interface DatasetEntityRecognizerAnnotations { S3Uri: string; } -export const DatasetEntityRecognizerAnnotations = - /*@__PURE__*/ S.suspend(() => S.Struct({ S3Uri: S.String })).annotate({ - identifier: "DatasetEntityRecognizerAnnotations", - }) as any as S.Schema; +export const DatasetEntityRecognizerAnnotations = /*@__PURE__*/ S.suspend(() => + S.Struct({ S3Uri: S.String }), +).annotate({ + identifier: "DatasetEntityRecognizerAnnotations", +}) as any as S.Schema; export type InputFormat = | "ONE_DOC_PER_FILE" | "ONE_DOC_PER_LINE" @@ -1000,34 +990,34 @@ export interface DatasetEntityRecognizerDocuments { S3Uri: string; InputFormat?: InputFormat; } -export const DatasetEntityRecognizerDocuments = - /*@__PURE__*/ S.suspend(() => - S.Struct({ S3Uri: S.String, InputFormat: S.optional(InputFormat) }), - ).annotate({ - identifier: "DatasetEntityRecognizerDocuments", - }) as any as S.Schema; +export const DatasetEntityRecognizerDocuments = /*@__PURE__*/ S.suspend(() => + S.Struct({ S3Uri: S.String, InputFormat: S.optional(InputFormat) }), +).annotate({ + identifier: "DatasetEntityRecognizerDocuments", +}) as any as S.Schema; export interface DatasetEntityRecognizerEntityList { S3Uri: string; } -export const DatasetEntityRecognizerEntityList = - /*@__PURE__*/ S.suspend(() => S.Struct({ S3Uri: S.String })).annotate({ - identifier: "DatasetEntityRecognizerEntityList", - }) as any as S.Schema; +export const DatasetEntityRecognizerEntityList = /*@__PURE__*/ S.suspend(() => + S.Struct({ S3Uri: S.String }), +).annotate({ + identifier: "DatasetEntityRecognizerEntityList", +}) as any as S.Schema; export interface DatasetEntityRecognizerInputDataConfig { Annotations?: DatasetEntityRecognizerAnnotations; Documents: DatasetEntityRecognizerDocuments; EntityList?: DatasetEntityRecognizerEntityList; } -export const DatasetEntityRecognizerInputDataConfig = - /*@__PURE__*/ S.suspend(() => +export const DatasetEntityRecognizerInputDataConfig = /*@__PURE__*/ S.suspend( + () => S.Struct({ Annotations: S.optional(DatasetEntityRecognizerAnnotations), Documents: DatasetEntityRecognizerDocuments, EntityList: S.optional(DatasetEntityRecognizerEntityList), }), - ).annotate({ - identifier: "DatasetEntityRecognizerInputDataConfig", - }) as any as S.Schema; +).annotate({ + identifier: "DatasetEntityRecognizerInputDataConfig", +}) as any as S.Schema; export interface DatasetInputDataConfig { AugmentedManifests?: DatasetAugmentedManifestsListItem[]; DataFormat?: DatasetDataFormat; @@ -1118,8 +1108,9 @@ export const AugmentedManifestsListItem = /*@__PURE__*/ S.suspend(() => }) as any as S.Schema; export type DocumentClassifierAugmentedManifestsList = AugmentedManifestsListItem[]; -export const DocumentClassifierAugmentedManifestsList = - /*@__PURE__*/ S.Array(AugmentedManifestsListItem); +export const DocumentClassifierAugmentedManifestsList = /*@__PURE__*/ S.Array( + AugmentedManifestsListItem, +); export type DocumentClassifierDocumentTypeFormat = | "PLAIN_TEXT_DOCUMENT" | "SEMI_STRUCTURED_DOCUMENT" @@ -1129,12 +1120,11 @@ export interface DocumentClassifierDocuments { S3Uri: string; TestS3Uri?: string; } -export const DocumentClassifierDocuments = - /*@__PURE__*/ S.suspend(() => - S.Struct({ S3Uri: S.String, TestS3Uri: S.optional(S.String) }), - ).annotate({ - identifier: "DocumentClassifierDocuments", - }) as any as S.Schema; +export const DocumentClassifierDocuments = /*@__PURE__*/ S.suspend(() => + S.Struct({ S3Uri: S.String, TestS3Uri: S.optional(S.String) }), +).annotate({ + identifier: "DocumentClassifierDocuments", +}) as any as S.Schema; export interface DocumentClassifierInputDataConfig { DataFormat?: DocumentClassifierDataFormat; S3Uri?: string; @@ -1145,36 +1135,34 @@ export interface DocumentClassifierInputDataConfig { Documents?: DocumentClassifierDocuments; DocumentReaderConfig?: DocumentReaderConfig; } -export const DocumentClassifierInputDataConfig = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DataFormat: S.optional(DocumentClassifierDataFormat), - S3Uri: S.optional(S.String), - TestS3Uri: S.optional(S.String), - LabelDelimiter: S.optional(S.String), - AugmentedManifests: S.optional(DocumentClassifierAugmentedManifestsList), - DocumentType: S.optional(DocumentClassifierDocumentTypeFormat), - Documents: S.optional(DocumentClassifierDocuments), - DocumentReaderConfig: S.optional(DocumentReaderConfig), - }), - ).annotate({ - identifier: "DocumentClassifierInputDataConfig", - }) as any as S.Schema; +export const DocumentClassifierInputDataConfig = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DataFormat: S.optional(DocumentClassifierDataFormat), + S3Uri: S.optional(S.String), + TestS3Uri: S.optional(S.String), + LabelDelimiter: S.optional(S.String), + AugmentedManifests: S.optional(DocumentClassifierAugmentedManifestsList), + DocumentType: S.optional(DocumentClassifierDocumentTypeFormat), + Documents: S.optional(DocumentClassifierDocuments), + DocumentReaderConfig: S.optional(DocumentReaderConfig), + }), +).annotate({ + identifier: "DocumentClassifierInputDataConfig", +}) as any as S.Schema; export interface DocumentClassifierOutputDataConfig { S3Uri?: string; KmsKeyId?: string; FlywheelStatsS3Prefix?: string; } -export const DocumentClassifierOutputDataConfig = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - S3Uri: S.optional(S.String), - KmsKeyId: S.optional(S.String), - FlywheelStatsS3Prefix: S.optional(S.String), - }), - ).annotate({ - identifier: "DocumentClassifierOutputDataConfig", - }) as any as S.Schema; +export const DocumentClassifierOutputDataConfig = /*@__PURE__*/ S.suspend(() => + S.Struct({ + S3Uri: S.optional(S.String), + KmsKeyId: S.optional(S.String), + FlywheelStatsS3Prefix: S.optional(S.String), + }), +).annotate({ + identifier: "DocumentClassifierOutputDataConfig", +}) as any as S.Schema; export type SecurityGroupIds = string[]; export const SecurityGroupIds = /*@__PURE__*/ S.Array(S.String); export type Subnets = string[]; @@ -1206,37 +1194,35 @@ export interface CreateDocumentClassifierRequest { ModelKmsKeyId?: string; ModelPolicy?: string; } -export const CreateDocumentClassifierRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DocumentClassifierName: S.String, - VersionName: S.optional(S.String), - DataAccessRoleArn: S.String, - Tags: S.optional(TagList), - InputDataConfig: DocumentClassifierInputDataConfig, - OutputDataConfig: S.optional(DocumentClassifierOutputDataConfig), - ClientRequestToken: S.optional(S.String).pipe(T.IdempotencyToken()), - LanguageCode: LanguageCode, - VolumeKmsKeyId: S.optional(S.String), - VpcConfig: S.optional(VpcConfig), - Mode: S.optional(DocumentClassifierMode), - ModelKmsKeyId: S.optional(S.String), - ModelPolicy: S.optional(S.String), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "CreateDocumentClassifierRequest", - }) as any as S.Schema; +export const CreateDocumentClassifierRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DocumentClassifierName: S.String, + VersionName: S.optional(S.String), + DataAccessRoleArn: S.String, + Tags: S.optional(TagList), + InputDataConfig: DocumentClassifierInputDataConfig, + OutputDataConfig: S.optional(DocumentClassifierOutputDataConfig), + ClientRequestToken: S.optional(S.String).pipe(T.IdempotencyToken()), + LanguageCode: LanguageCode, + VolumeKmsKeyId: S.optional(S.String), + VpcConfig: S.optional(VpcConfig), + Mode: S.optional(DocumentClassifierMode), + ModelKmsKeyId: S.optional(S.String), + ModelPolicy: S.optional(S.String), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "CreateDocumentClassifierRequest", +}) as any as S.Schema; export interface CreateDocumentClassifierResponse { DocumentClassifierArn?: string; } -export const CreateDocumentClassifierResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DocumentClassifierArn: S.optional(S.String) }), - ).annotate({ - identifier: "CreateDocumentClassifierResponse", - }) as any as S.Schema; +export const CreateDocumentClassifierResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ DocumentClassifierArn: S.optional(S.String) }), +).annotate({ + identifier: "CreateDocumentClassifierResponse", +}) as any as S.Schema; export interface CreateEndpointRequest { EndpointName: string; ModelArn?: string; @@ -1306,12 +1292,11 @@ export interface EntityRecognizerAnnotations { S3Uri: string; TestS3Uri?: string; } -export const EntityRecognizerAnnotations = - /*@__PURE__*/ S.suspend(() => - S.Struct({ S3Uri: S.String, TestS3Uri: S.optional(S.String) }), - ).annotate({ - identifier: "EntityRecognizerAnnotations", - }) as any as S.Schema; +export const EntityRecognizerAnnotations = /*@__PURE__*/ S.suspend(() => + S.Struct({ S3Uri: S.String, TestS3Uri: S.optional(S.String) }), +).annotate({ + identifier: "EntityRecognizerAnnotations", +}) as any as S.Schema; export interface EntityRecognizerEntityList { S3Uri: string; } @@ -1322,8 +1307,9 @@ export const EntityRecognizerEntityList = /*@__PURE__*/ S.suspend(() => }) as any as S.Schema; export type EntityRecognizerAugmentedManifestsList = AugmentedManifestsListItem[]; -export const EntityRecognizerAugmentedManifestsList = - /*@__PURE__*/ S.Array(AugmentedManifestsListItem); +export const EntityRecognizerAugmentedManifestsList = /*@__PURE__*/ S.Array( + AugmentedManifestsListItem, +); export interface EntityRecognizerInputDataConfig { DataFormat?: EntityRecognizerDataFormat; EntityTypes: EntityTypesListItem[]; @@ -1332,19 +1318,18 @@ export interface EntityRecognizerInputDataConfig { EntityList?: EntityRecognizerEntityList; AugmentedManifests?: AugmentedManifestsListItem[]; } -export const EntityRecognizerInputDataConfig = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DataFormat: S.optional(EntityRecognizerDataFormat), - EntityTypes: EntityTypesList, - Documents: S.optional(EntityRecognizerDocuments), - Annotations: S.optional(EntityRecognizerAnnotations), - EntityList: S.optional(EntityRecognizerEntityList), - AugmentedManifests: S.optional(EntityRecognizerAugmentedManifestsList), - }), - ).annotate({ - identifier: "EntityRecognizerInputDataConfig", - }) as any as S.Schema; +export const EntityRecognizerInputDataConfig = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DataFormat: S.optional(EntityRecognizerDataFormat), + EntityTypes: EntityTypesList, + Documents: S.optional(EntityRecognizerDocuments), + Annotations: S.optional(EntityRecognizerAnnotations), + EntityList: S.optional(EntityRecognizerEntityList), + AugmentedManifests: S.optional(EntityRecognizerAugmentedManifestsList), + }), +).annotate({ + identifier: "EntityRecognizerInputDataConfig", +}) as any as S.Schema; export interface CreateEntityRecognizerRequest { RecognizerName: string; VersionName?: string; @@ -1358,47 +1343,44 @@ export interface CreateEntityRecognizerRequest { ModelKmsKeyId?: string; ModelPolicy?: string; } -export const CreateEntityRecognizerRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RecognizerName: S.String, - VersionName: S.optional(S.String), - DataAccessRoleArn: S.String, - Tags: S.optional(TagList), - InputDataConfig: EntityRecognizerInputDataConfig, - ClientRequestToken: S.optional(S.String).pipe(T.IdempotencyToken()), - LanguageCode: LanguageCode, - VolumeKmsKeyId: S.optional(S.String), - VpcConfig: S.optional(VpcConfig), - ModelKmsKeyId: S.optional(S.String), - ModelPolicy: S.optional(S.String), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "CreateEntityRecognizerRequest", - }) as any as S.Schema; +export const CreateEntityRecognizerRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RecognizerName: S.String, + VersionName: S.optional(S.String), + DataAccessRoleArn: S.String, + Tags: S.optional(TagList), + InputDataConfig: EntityRecognizerInputDataConfig, + ClientRequestToken: S.optional(S.String).pipe(T.IdempotencyToken()), + LanguageCode: LanguageCode, + VolumeKmsKeyId: S.optional(S.String), + VpcConfig: S.optional(VpcConfig), + ModelKmsKeyId: S.optional(S.String), + ModelPolicy: S.optional(S.String), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "CreateEntityRecognizerRequest", +}) as any as S.Schema; export interface CreateEntityRecognizerResponse { EntityRecognizerArn?: string; } -export const CreateEntityRecognizerResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ EntityRecognizerArn: S.optional(S.String) }), - ).annotate({ - identifier: "CreateEntityRecognizerResponse", - }) as any as S.Schema; +export const CreateEntityRecognizerResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ EntityRecognizerArn: S.optional(S.String) }), +).annotate({ + identifier: "CreateEntityRecognizerResponse", +}) as any as S.Schema; export type LabelsList = string[]; export const LabelsList = /*@__PURE__*/ S.Array(S.String); export interface DocumentClassificationConfig { Mode: DocumentClassifierMode; Labels?: string[]; } -export const DocumentClassificationConfig = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Mode: DocumentClassifierMode, Labels: S.optional(LabelsList) }), - ).annotate({ - identifier: "DocumentClassificationConfig", - }) as any as S.Schema; +export const DocumentClassificationConfig = /*@__PURE__*/ S.suspend(() => + S.Struct({ Mode: DocumentClassifierMode, Labels: S.optional(LabelsList) }), +).annotate({ + identifier: "DocumentClassificationConfig", +}) as any as S.Schema; export interface EntityRecognitionConfig { EntityTypes: EntityTypesListItem[]; } @@ -1483,19 +1465,19 @@ export const CreateFlywheelResponse = /*@__PURE__*/ S.suspend(() => export interface DeleteDocumentClassifierRequest { DocumentClassifierArn: string; } -export const DeleteDocumentClassifierRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DocumentClassifierArn: S.String }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "DeleteDocumentClassifierRequest", - }) as any as S.Schema; +export const DeleteDocumentClassifierRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ DocumentClassifierArn: S.String }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "DeleteDocumentClassifierRequest", +}) as any as S.Schema; export interface DeleteDocumentClassifierResponse {} -export const DeleteDocumentClassifierResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteDocumentClassifierResponse", - }) as any as S.Schema; +export const DeleteDocumentClassifierResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteDocumentClassifierResponse", +}) as any as S.Schema; export interface DeleteEndpointRequest { EndpointArn: string; } @@ -1515,19 +1497,19 @@ export const DeleteEndpointResponse = /*@__PURE__*/ S.suspend(() => export interface DeleteEntityRecognizerRequest { EntityRecognizerArn: string; } -export const DeleteEntityRecognizerRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ EntityRecognizerArn: S.String }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "DeleteEntityRecognizerRequest", - }) as any as S.Schema; +export const DeleteEntityRecognizerRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ EntityRecognizerArn: S.String }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "DeleteEntityRecognizerRequest", +}) as any as S.Schema; export interface DeleteEntityRecognizerResponse {} -export const DeleteEntityRecognizerResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteEntityRecognizerResponse", - }) as any as S.Schema; +export const DeleteEntityRecognizerResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteEntityRecognizerResponse", +}) as any as S.Schema; export interface DeleteFlywheelRequest { FlywheelArn: string; } @@ -1548,22 +1530,22 @@ export interface DeleteResourcePolicyRequest { ResourceArn: string; PolicyRevisionId?: string; } -export const DeleteResourcePolicyRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResourceArn: S.String, - PolicyRevisionId: S.optional(S.String), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "DeleteResourcePolicyRequest", - }) as any as S.Schema; +export const DeleteResourcePolicyRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResourceArn: S.String, + PolicyRevisionId: S.optional(S.String), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "DeleteResourcePolicyRequest", +}) as any as S.Schema; export interface DeleteResourcePolicyResponse {} -export const DeleteResourcePolicyResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteResourcePolicyResponse", - }) as any as S.Schema; +export const DeleteResourcePolicyResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteResourcePolicyResponse", +}) as any as S.Schema; export interface DescribeDatasetRequest { DatasetArn: string; } @@ -1615,14 +1597,14 @@ export const DescribeDatasetResponse = /*@__PURE__*/ S.suspend(() => export interface DescribeDocumentClassificationJobRequest { JobId: string; } -export const DescribeDocumentClassificationJobRequest = - /*@__PURE__*/ S.suspend(() => +export const DescribeDocumentClassificationJobRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ JobId: S.String }).pipe( T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), ), - ).annotate({ - identifier: "DescribeDocumentClassificationJobRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeDocumentClassificationJobRequest", +}) as any as S.Schema; export type JobStatus = | "SUBMITTED" | "IN_PROGRESS" @@ -1671,27 +1653,26 @@ export interface DocumentClassificationJobProperties { VpcConfig?: VpcConfig; FlywheelArn?: string; } -export const DocumentClassificationJobProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - JobId: S.optional(S.String), - JobArn: S.optional(S.String), - JobName: S.optional(S.String), - JobStatus: S.optional(JobStatus), - Message: S.optional(S.String), - SubmitTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - EndTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - DocumentClassifierArn: S.optional(S.String), - InputDataConfig: S.optional(InputDataConfig), - OutputDataConfig: S.optional(OutputDataConfig), - DataAccessRoleArn: S.optional(S.String), - VolumeKmsKeyId: S.optional(S.String), - VpcConfig: S.optional(VpcConfig), - FlywheelArn: S.optional(S.String), - }), - ).annotate({ - identifier: "DocumentClassificationJobProperties", - }) as any as S.Schema; +export const DocumentClassificationJobProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + JobId: S.optional(S.String), + JobArn: S.optional(S.String), + JobName: S.optional(S.String), + JobStatus: S.optional(JobStatus), + Message: S.optional(S.String), + SubmitTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + EndTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + DocumentClassifierArn: S.optional(S.String), + InputDataConfig: S.optional(InputDataConfig), + OutputDataConfig: S.optional(OutputDataConfig), + DataAccessRoleArn: S.optional(S.String), + VolumeKmsKeyId: S.optional(S.String), + VpcConfig: S.optional(VpcConfig), + FlywheelArn: S.optional(S.String), + }), +).annotate({ + identifier: "DocumentClassificationJobProperties", +}) as any as S.Schema; export interface DescribeDocumentClassificationJobResponse { DocumentClassificationJobProperties?: DocumentClassificationJobProperties; } @@ -1708,14 +1689,13 @@ export const DescribeDocumentClassificationJobResponse = export interface DescribeDocumentClassifierRequest { DocumentClassifierArn: string; } -export const DescribeDocumentClassifierRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DocumentClassifierArn: S.String }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "DescribeDocumentClassifierRequest", - }) as any as S.Schema; +export const DescribeDocumentClassifierRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ DocumentClassifierArn: S.String }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "DescribeDocumentClassifierRequest", +}) as any as S.Schema; export type ModelStatus = | "SUBMITTED" | "TRAINING" @@ -1737,21 +1717,20 @@ export interface ClassifierEvaluationMetrics { MicroF1Score?: number; HammingLoss?: number; } -export const ClassifierEvaluationMetrics = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Accuracy: S.optional(S.Number), - Precision: S.optional(S.Number), - Recall: S.optional(S.Number), - F1Score: S.optional(S.Number), - MicroPrecision: S.optional(S.Number), - MicroRecall: S.optional(S.Number), - MicroF1Score: S.optional(S.Number), - HammingLoss: S.optional(S.Number), - }), - ).annotate({ - identifier: "ClassifierEvaluationMetrics", - }) as any as S.Schema; +export const ClassifierEvaluationMetrics = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Accuracy: S.optional(S.Number), + Precision: S.optional(S.Number), + Recall: S.optional(S.Number), + F1Score: S.optional(S.Number), + MicroPrecision: S.optional(S.Number), + MicroRecall: S.optional(S.Number), + MicroF1Score: S.optional(S.Number), + HammingLoss: S.optional(S.Number), + }), +).annotate({ + identifier: "ClassifierEvaluationMetrics", +}) as any as S.Schema; export interface ClassifierMetadata { NumberOfLabels?: number; NumberOfTrainedDocuments?: number; @@ -1789,47 +1768,45 @@ export interface DocumentClassifierProperties { SourceModelArn?: string; FlywheelArn?: string; } -export const DocumentClassifierProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DocumentClassifierArn: S.optional(S.String), - LanguageCode: S.optional(LanguageCode), - Status: S.optional(ModelStatus), - Message: S.optional(S.String), - SubmitTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - EndTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - TrainingStartTime: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - TrainingEndTime: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - InputDataConfig: S.optional(DocumentClassifierInputDataConfig), - OutputDataConfig: S.optional(DocumentClassifierOutputDataConfig), - ClassifierMetadata: S.optional(ClassifierMetadata), - DataAccessRoleArn: S.optional(S.String), - VolumeKmsKeyId: S.optional(S.String), - VpcConfig: S.optional(VpcConfig), - Mode: S.optional(DocumentClassifierMode), - ModelKmsKeyId: S.optional(S.String), - VersionName: S.optional(S.String), - SourceModelArn: S.optional(S.String), - FlywheelArn: S.optional(S.String), - }), - ).annotate({ - identifier: "DocumentClassifierProperties", - }) as any as S.Schema; +export const DocumentClassifierProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DocumentClassifierArn: S.optional(S.String), + LanguageCode: S.optional(LanguageCode), + Status: S.optional(ModelStatus), + Message: S.optional(S.String), + SubmitTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + EndTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + TrainingStartTime: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + TrainingEndTime: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + InputDataConfig: S.optional(DocumentClassifierInputDataConfig), + OutputDataConfig: S.optional(DocumentClassifierOutputDataConfig), + ClassifierMetadata: S.optional(ClassifierMetadata), + DataAccessRoleArn: S.optional(S.String), + VolumeKmsKeyId: S.optional(S.String), + VpcConfig: S.optional(VpcConfig), + Mode: S.optional(DocumentClassifierMode), + ModelKmsKeyId: S.optional(S.String), + VersionName: S.optional(S.String), + SourceModelArn: S.optional(S.String), + FlywheelArn: S.optional(S.String), + }), +).annotate({ + identifier: "DocumentClassifierProperties", +}) as any as S.Schema; export interface DescribeDocumentClassifierResponse { DocumentClassifierProperties?: DocumentClassifierProperties; } -export const DescribeDocumentClassifierResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DocumentClassifierProperties: S.optional(DocumentClassifierProperties), - }), - ).annotate({ - identifier: "DescribeDocumentClassifierResponse", - }) as any as S.Schema; +export const DescribeDocumentClassifierResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DocumentClassifierProperties: S.optional(DocumentClassifierProperties), + }), +).annotate({ + identifier: "DescribeDocumentClassifierResponse", +}) as any as S.Schema; export interface DescribeDominantLanguageDetectionJobRequest { JobId: string; } @@ -1855,8 +1832,8 @@ export interface DominantLanguageDetectionJobProperties { VolumeKmsKeyId?: string; VpcConfig?: VpcConfig; } -export const DominantLanguageDetectionJobProperties = - /*@__PURE__*/ S.suspend(() => +export const DominantLanguageDetectionJobProperties = /*@__PURE__*/ S.suspend( + () => S.Struct({ JobId: S.optional(S.String), JobArn: S.optional(S.String), @@ -1871,9 +1848,9 @@ export const DominantLanguageDetectionJobProperties = VolumeKmsKeyId: S.optional(S.String), VpcConfig: S.optional(VpcConfig), }), - ).annotate({ - identifier: "DominantLanguageDetectionJobProperties", - }) as any as S.Schema; +).annotate({ + identifier: "DominantLanguageDetectionJobProperties", +}) as any as S.Schema; export interface DescribeDominantLanguageDetectionJobResponse { DominantLanguageDetectionJobProperties?: DominantLanguageDetectionJobProperties; } @@ -1950,14 +1927,13 @@ export const DescribeEndpointResponse = /*@__PURE__*/ S.suspend(() => export interface DescribeEntitiesDetectionJobRequest { JobId: string; } -export const DescribeEntitiesDetectionJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ JobId: S.String }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "DescribeEntitiesDetectionJobRequest", - }) as any as S.Schema; +export const DescribeEntitiesDetectionJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ JobId: S.String }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "DescribeEntitiesDetectionJobRequest", +}) as any as S.Schema; export interface EntitiesDetectionJobProperties { JobId?: string; JobArn?: string; @@ -1975,82 +1951,78 @@ export interface EntitiesDetectionJobProperties { VpcConfig?: VpcConfig; FlywheelArn?: string; } -export const EntitiesDetectionJobProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - JobId: S.optional(S.String), - JobArn: S.optional(S.String), - JobName: S.optional(S.String), - JobStatus: S.optional(JobStatus), - Message: S.optional(S.String), - SubmitTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - EndTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - EntityRecognizerArn: S.optional(S.String), - InputDataConfig: S.optional(InputDataConfig), - OutputDataConfig: S.optional(OutputDataConfig), - LanguageCode: S.optional(LanguageCode), - DataAccessRoleArn: S.optional(S.String), - VolumeKmsKeyId: S.optional(S.String), - VpcConfig: S.optional(VpcConfig), - FlywheelArn: S.optional(S.String), - }), - ).annotate({ - identifier: "EntitiesDetectionJobProperties", - }) as any as S.Schema; +export const EntitiesDetectionJobProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + JobId: S.optional(S.String), + JobArn: S.optional(S.String), + JobName: S.optional(S.String), + JobStatus: S.optional(JobStatus), + Message: S.optional(S.String), + SubmitTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + EndTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + EntityRecognizerArn: S.optional(S.String), + InputDataConfig: S.optional(InputDataConfig), + OutputDataConfig: S.optional(OutputDataConfig), + LanguageCode: S.optional(LanguageCode), + DataAccessRoleArn: S.optional(S.String), + VolumeKmsKeyId: S.optional(S.String), + VpcConfig: S.optional(VpcConfig), + FlywheelArn: S.optional(S.String), + }), +).annotate({ + identifier: "EntitiesDetectionJobProperties", +}) as any as S.Schema; export interface DescribeEntitiesDetectionJobResponse { EntitiesDetectionJobProperties?: EntitiesDetectionJobProperties; } -export const DescribeEntitiesDetectionJobResponse = - /*@__PURE__*/ S.suspend(() => +export const DescribeEntitiesDetectionJobResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ EntitiesDetectionJobProperties: S.optional( EntitiesDetectionJobProperties, ), }), - ).annotate({ - identifier: "DescribeEntitiesDetectionJobResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeEntitiesDetectionJobResponse", +}) as any as S.Schema; export interface DescribeEntityRecognizerRequest { EntityRecognizerArn: string; } -export const DescribeEntityRecognizerRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ EntityRecognizerArn: S.String }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "DescribeEntityRecognizerRequest", - }) as any as S.Schema; +export const DescribeEntityRecognizerRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ EntityRecognizerArn: S.String }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "DescribeEntityRecognizerRequest", +}) as any as S.Schema; export interface EntityRecognizerEvaluationMetrics { Precision?: number; Recall?: number; F1Score?: number; } -export const EntityRecognizerEvaluationMetrics = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Precision: S.optional(S.Number), - Recall: S.optional(S.Number), - F1Score: S.optional(S.Number), - }), - ).annotate({ - identifier: "EntityRecognizerEvaluationMetrics", - }) as any as S.Schema; +export const EntityRecognizerEvaluationMetrics = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Precision: S.optional(S.Number), + Recall: S.optional(S.Number), + F1Score: S.optional(S.Number), + }), +).annotate({ + identifier: "EntityRecognizerEvaluationMetrics", +}) as any as S.Schema; export interface EntityTypesEvaluationMetrics { Precision?: number; Recall?: number; F1Score?: number; } -export const EntityTypesEvaluationMetrics = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Precision: S.optional(S.Number), - Recall: S.optional(S.Number), - F1Score: S.optional(S.Number), - }), - ).annotate({ - identifier: "EntityTypesEvaluationMetrics", - }) as any as S.Schema; +export const EntityTypesEvaluationMetrics = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Precision: S.optional(S.Number), + Recall: S.optional(S.Number), + F1Score: S.optional(S.Number), + }), +).annotate({ + identifier: "EntityTypesEvaluationMetrics", +}) as any as S.Schema; export interface EntityRecognizerMetadataEntityTypesListItem { Type?: string; EvaluationMetrics?: EntityTypesEvaluationMetrics; @@ -2068,8 +2040,9 @@ export const EntityRecognizerMetadataEntityTypesListItem = }) as any as S.Schema; export type EntityRecognizerMetadataEntityTypesList = EntityRecognizerMetadataEntityTypesListItem[]; -export const EntityRecognizerMetadataEntityTypesList = - /*@__PURE__*/ S.Array(EntityRecognizerMetadataEntityTypesListItem); +export const EntityRecognizerMetadataEntityTypesList = /*@__PURE__*/ S.Array( + EntityRecognizerMetadataEntityTypesListItem, +); export interface EntityRecognizerMetadata { NumberOfTrainedDocuments?: number; NumberOfTestDocuments?: number; @@ -2089,12 +2062,11 @@ export const EntityRecognizerMetadata = /*@__PURE__*/ S.suspend(() => export interface EntityRecognizerOutputDataConfig { FlywheelStatsS3Prefix?: string; } -export const EntityRecognizerOutputDataConfig = - /*@__PURE__*/ S.suspend(() => - S.Struct({ FlywheelStatsS3Prefix: S.optional(S.String) }), - ).annotate({ - identifier: "EntityRecognizerOutputDataConfig", - }) as any as S.Schema; +export const EntityRecognizerOutputDataConfig = /*@__PURE__*/ S.suspend(() => + S.Struct({ FlywheelStatsS3Prefix: S.optional(S.String) }), +).annotate({ + identifier: "EntityRecognizerOutputDataConfig", +}) as any as S.Schema; export interface EntityRecognizerProperties { EntityRecognizerArn?: string; LanguageCode?: LanguageCode; @@ -2146,25 +2118,23 @@ export const EntityRecognizerProperties = /*@__PURE__*/ S.suspend(() => export interface DescribeEntityRecognizerResponse { EntityRecognizerProperties?: EntityRecognizerProperties; } -export const DescribeEntityRecognizerResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - EntityRecognizerProperties: S.optional(EntityRecognizerProperties), - }), - ).annotate({ - identifier: "DescribeEntityRecognizerResponse", - }) as any as S.Schema; +export const DescribeEntityRecognizerResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + EntityRecognizerProperties: S.optional(EntityRecognizerProperties), + }), +).annotate({ + identifier: "DescribeEntityRecognizerResponse", +}) as any as S.Schema; export interface DescribeEventsDetectionJobRequest { JobId: string; } -export const DescribeEventsDetectionJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ JobId: S.String }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "DescribeEventsDetectionJobRequest", - }) as any as S.Schema; +export const DescribeEventsDetectionJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ JobId: S.String }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "DescribeEventsDetectionJobRequest", +}) as any as S.Schema; export type TargetEventTypes = string[]; export const TargetEventTypes = /*@__PURE__*/ S.Array(S.String); export interface EventsDetectionJobProperties { @@ -2181,36 +2151,34 @@ export interface EventsDetectionJobProperties { DataAccessRoleArn?: string; TargetEventTypes?: string[]; } -export const EventsDetectionJobProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - JobId: S.optional(S.String), - JobArn: S.optional(S.String), - JobName: S.optional(S.String), - JobStatus: S.optional(JobStatus), - Message: S.optional(S.String), - SubmitTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - EndTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - InputDataConfig: S.optional(InputDataConfig), - OutputDataConfig: S.optional(OutputDataConfig), - LanguageCode: S.optional(LanguageCode), - DataAccessRoleArn: S.optional(S.String), - TargetEventTypes: S.optional(TargetEventTypes), - }), - ).annotate({ - identifier: "EventsDetectionJobProperties", - }) as any as S.Schema; +export const EventsDetectionJobProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + JobId: S.optional(S.String), + JobArn: S.optional(S.String), + JobName: S.optional(S.String), + JobStatus: S.optional(JobStatus), + Message: S.optional(S.String), + SubmitTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + EndTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + InputDataConfig: S.optional(InputDataConfig), + OutputDataConfig: S.optional(OutputDataConfig), + LanguageCode: S.optional(LanguageCode), + DataAccessRoleArn: S.optional(S.String), + TargetEventTypes: S.optional(TargetEventTypes), + }), +).annotate({ + identifier: "EventsDetectionJobProperties", +}) as any as S.Schema; export interface DescribeEventsDetectionJobResponse { EventsDetectionJobProperties?: EventsDetectionJobProperties; } -export const DescribeEventsDetectionJobResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - EventsDetectionJobProperties: S.optional(EventsDetectionJobProperties), - }), - ).annotate({ - identifier: "DescribeEventsDetectionJobResponse", - }) as any as S.Schema; +export const DescribeEventsDetectionJobResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + EventsDetectionJobProperties: S.optional(EventsDetectionJobProperties), + }), +).annotate({ + identifier: "DescribeEventsDetectionJobResponse", +}) as any as S.Schema; export interface DescribeFlywheelRequest { FlywheelArn: string; } @@ -2275,14 +2243,13 @@ export interface DescribeFlywheelIterationRequest { FlywheelArn: string; FlywheelIterationId: string; } -export const DescribeFlywheelIterationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ FlywheelArn: S.String, FlywheelIterationId: S.String }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "DescribeFlywheelIterationRequest", - }) as any as S.Schema; +export const DescribeFlywheelIterationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ FlywheelArn: S.String, FlywheelIterationId: S.String }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "DescribeFlywheelIterationRequest", +}) as any as S.Schema; export type FlywheelIterationStatus = | "TRAINING" | "EVALUATING" @@ -2298,17 +2265,16 @@ export interface FlywheelModelEvaluationMetrics { AverageRecall?: number; AverageAccuracy?: number; } -export const FlywheelModelEvaluationMetrics = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AverageF1Score: S.optional(S.Number), - AveragePrecision: S.optional(S.Number), - AverageRecall: S.optional(S.Number), - AverageAccuracy: S.optional(S.Number), - }), - ).annotate({ - identifier: "FlywheelModelEvaluationMetrics", - }) as any as S.Schema; +export const FlywheelModelEvaluationMetrics = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AverageF1Score: S.optional(S.Number), + AveragePrecision: S.optional(S.Number), + AverageRecall: S.optional(S.Number), + AverageAccuracy: S.optional(S.Number), + }), +).annotate({ + identifier: "FlywheelModelEvaluationMetrics", +}) as any as S.Schema; export interface FlywheelIterationProperties { FlywheelArn?: string; FlywheelIterationId?: string; @@ -2322,46 +2288,44 @@ export interface FlywheelIterationProperties { TrainedModelMetrics?: FlywheelModelEvaluationMetrics; EvaluationManifestS3Prefix?: string; } -export const FlywheelIterationProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - FlywheelArn: S.optional(S.String), - FlywheelIterationId: S.optional(S.String), - CreationTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - EndTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - Status: S.optional(FlywheelIterationStatus), - Message: S.optional(S.String), - EvaluatedModelArn: S.optional(S.String), - EvaluatedModelMetrics: S.optional(FlywheelModelEvaluationMetrics), - TrainedModelArn: S.optional(S.String), - TrainedModelMetrics: S.optional(FlywheelModelEvaluationMetrics), - EvaluationManifestS3Prefix: S.optional(S.String), - }), - ).annotate({ - identifier: "FlywheelIterationProperties", - }) as any as S.Schema; +export const FlywheelIterationProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + FlywheelArn: S.optional(S.String), + FlywheelIterationId: S.optional(S.String), + CreationTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + EndTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + Status: S.optional(FlywheelIterationStatus), + Message: S.optional(S.String), + EvaluatedModelArn: S.optional(S.String), + EvaluatedModelMetrics: S.optional(FlywheelModelEvaluationMetrics), + TrainedModelArn: S.optional(S.String), + TrainedModelMetrics: S.optional(FlywheelModelEvaluationMetrics), + EvaluationManifestS3Prefix: S.optional(S.String), + }), +).annotate({ + identifier: "FlywheelIterationProperties", +}) as any as S.Schema; export interface DescribeFlywheelIterationResponse { FlywheelIterationProperties?: FlywheelIterationProperties; } -export const DescribeFlywheelIterationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - FlywheelIterationProperties: S.optional(FlywheelIterationProperties), - }), - ).annotate({ - identifier: "DescribeFlywheelIterationResponse", - }) as any as S.Schema; +export const DescribeFlywheelIterationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + FlywheelIterationProperties: S.optional(FlywheelIterationProperties), + }), +).annotate({ + identifier: "DescribeFlywheelIterationResponse", +}) as any as S.Schema; export interface DescribeKeyPhrasesDetectionJobRequest { JobId: string; } -export const DescribeKeyPhrasesDetectionJobRequest = - /*@__PURE__*/ S.suspend(() => +export const DescribeKeyPhrasesDetectionJobRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ JobId: S.String }).pipe( T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), ), - ).annotate({ - identifier: "DescribeKeyPhrasesDetectionJobRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeKeyPhrasesDetectionJobRequest", +}) as any as S.Schema; export interface KeyPhrasesDetectionJobProperties { JobId?: string; JobArn?: string; @@ -2377,50 +2341,49 @@ export interface KeyPhrasesDetectionJobProperties { VolumeKmsKeyId?: string; VpcConfig?: VpcConfig; } -export const KeyPhrasesDetectionJobProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - JobId: S.optional(S.String), - JobArn: S.optional(S.String), - JobName: S.optional(S.String), - JobStatus: S.optional(JobStatus), - Message: S.optional(S.String), - SubmitTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - EndTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - InputDataConfig: S.optional(InputDataConfig), - OutputDataConfig: S.optional(OutputDataConfig), - LanguageCode: S.optional(LanguageCode), - DataAccessRoleArn: S.optional(S.String), - VolumeKmsKeyId: S.optional(S.String), - VpcConfig: S.optional(VpcConfig), - }), - ).annotate({ - identifier: "KeyPhrasesDetectionJobProperties", - }) as any as S.Schema; +export const KeyPhrasesDetectionJobProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + JobId: S.optional(S.String), + JobArn: S.optional(S.String), + JobName: S.optional(S.String), + JobStatus: S.optional(JobStatus), + Message: S.optional(S.String), + SubmitTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + EndTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + InputDataConfig: S.optional(InputDataConfig), + OutputDataConfig: S.optional(OutputDataConfig), + LanguageCode: S.optional(LanguageCode), + DataAccessRoleArn: S.optional(S.String), + VolumeKmsKeyId: S.optional(S.String), + VpcConfig: S.optional(VpcConfig), + }), +).annotate({ + identifier: "KeyPhrasesDetectionJobProperties", +}) as any as S.Schema; export interface DescribeKeyPhrasesDetectionJobResponse { KeyPhrasesDetectionJobProperties?: KeyPhrasesDetectionJobProperties; } -export const DescribeKeyPhrasesDetectionJobResponse = - /*@__PURE__*/ S.suspend(() => +export const DescribeKeyPhrasesDetectionJobResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ KeyPhrasesDetectionJobProperties: S.optional( KeyPhrasesDetectionJobProperties, ), }), - ).annotate({ - identifier: "DescribeKeyPhrasesDetectionJobResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeKeyPhrasesDetectionJobResponse", +}) as any as S.Schema; export interface DescribePiiEntitiesDetectionJobRequest { JobId: string; } -export const DescribePiiEntitiesDetectionJobRequest = - /*@__PURE__*/ S.suspend(() => +export const DescribePiiEntitiesDetectionJobRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ JobId: S.String }).pipe( T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), ), - ).annotate({ - identifier: "DescribePiiEntitiesDetectionJobRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DescribePiiEntitiesDetectionJobRequest", +}) as any as S.Schema; export interface PiiOutputDataConfig { S3Uri: string; KmsKeyId?: string; @@ -2471,80 +2434,77 @@ export interface PiiEntitiesDetectionJobProperties { DataAccessRoleArn?: string; Mode?: PiiEntitiesDetectionMode; } -export const PiiEntitiesDetectionJobProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - JobId: S.optional(S.String), - JobArn: S.optional(S.String), - JobName: S.optional(S.String), - JobStatus: S.optional(JobStatus), - Message: S.optional(S.String), - SubmitTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - EndTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - InputDataConfig: S.optional(InputDataConfig), - OutputDataConfig: S.optional(PiiOutputDataConfig), - RedactionConfig: S.optional(RedactionConfig), - LanguageCode: S.optional(LanguageCode), - DataAccessRoleArn: S.optional(S.String), - Mode: S.optional(PiiEntitiesDetectionMode), - }), - ).annotate({ - identifier: "PiiEntitiesDetectionJobProperties", - }) as any as S.Schema; +export const PiiEntitiesDetectionJobProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + JobId: S.optional(S.String), + JobArn: S.optional(S.String), + JobName: S.optional(S.String), + JobStatus: S.optional(JobStatus), + Message: S.optional(S.String), + SubmitTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + EndTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + InputDataConfig: S.optional(InputDataConfig), + OutputDataConfig: S.optional(PiiOutputDataConfig), + RedactionConfig: S.optional(RedactionConfig), + LanguageCode: S.optional(LanguageCode), + DataAccessRoleArn: S.optional(S.String), + Mode: S.optional(PiiEntitiesDetectionMode), + }), +).annotate({ + identifier: "PiiEntitiesDetectionJobProperties", +}) as any as S.Schema; export interface DescribePiiEntitiesDetectionJobResponse { PiiEntitiesDetectionJobProperties?: PiiEntitiesDetectionJobProperties; } -export const DescribePiiEntitiesDetectionJobResponse = - /*@__PURE__*/ S.suspend(() => +export const DescribePiiEntitiesDetectionJobResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ PiiEntitiesDetectionJobProperties: S.optional( PiiEntitiesDetectionJobProperties, ), }), - ).annotate({ - identifier: "DescribePiiEntitiesDetectionJobResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DescribePiiEntitiesDetectionJobResponse", +}) as any as S.Schema; export interface DescribeResourcePolicyRequest { ResourceArn: string; } -export const DescribeResourcePolicyRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ResourceArn: S.String }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "DescribeResourcePolicyRequest", - }) as any as S.Schema; +export const DescribeResourcePolicyRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ ResourceArn: S.String }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "DescribeResourcePolicyRequest", +}) as any as S.Schema; export interface DescribeResourcePolicyResponse { ResourcePolicy?: string; CreationTime?: Date; LastModifiedTime?: Date; PolicyRevisionId?: string; } -export const DescribeResourcePolicyResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResourcePolicy: S.optional(S.String), - CreationTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - LastModifiedTime: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - PolicyRevisionId: S.optional(S.String), - }), - ).annotate({ - identifier: "DescribeResourcePolicyResponse", - }) as any as S.Schema; +export const DescribeResourcePolicyResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResourcePolicy: S.optional(S.String), + CreationTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + LastModifiedTime: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + PolicyRevisionId: S.optional(S.String), + }), +).annotate({ + identifier: "DescribeResourcePolicyResponse", +}) as any as S.Schema; export interface DescribeSentimentDetectionJobRequest { JobId: string; } -export const DescribeSentimentDetectionJobRequest = - /*@__PURE__*/ S.suspend(() => +export const DescribeSentimentDetectionJobRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ JobId: S.String }).pipe( T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), ), - ).annotate({ - identifier: "DescribeSentimentDetectionJobRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeSentimentDetectionJobRequest", +}) as any as S.Schema; export interface SentimentDetectionJobProperties { JobId?: string; JobArn?: string; @@ -2560,39 +2520,38 @@ export interface SentimentDetectionJobProperties { VolumeKmsKeyId?: string; VpcConfig?: VpcConfig; } -export const SentimentDetectionJobProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - JobId: S.optional(S.String), - JobArn: S.optional(S.String), - JobName: S.optional(S.String), - JobStatus: S.optional(JobStatus), - Message: S.optional(S.String), - SubmitTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - EndTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - InputDataConfig: S.optional(InputDataConfig), - OutputDataConfig: S.optional(OutputDataConfig), - LanguageCode: S.optional(LanguageCode), - DataAccessRoleArn: S.optional(S.String), - VolumeKmsKeyId: S.optional(S.String), - VpcConfig: S.optional(VpcConfig), - }), - ).annotate({ - identifier: "SentimentDetectionJobProperties", - }) as any as S.Schema; +export const SentimentDetectionJobProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + JobId: S.optional(S.String), + JobArn: S.optional(S.String), + JobName: S.optional(S.String), + JobStatus: S.optional(JobStatus), + Message: S.optional(S.String), + SubmitTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + EndTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + InputDataConfig: S.optional(InputDataConfig), + OutputDataConfig: S.optional(OutputDataConfig), + LanguageCode: S.optional(LanguageCode), + DataAccessRoleArn: S.optional(S.String), + VolumeKmsKeyId: S.optional(S.String), + VpcConfig: S.optional(VpcConfig), + }), +).annotate({ + identifier: "SentimentDetectionJobProperties", +}) as any as S.Schema; export interface DescribeSentimentDetectionJobResponse { SentimentDetectionJobProperties?: SentimentDetectionJobProperties; } -export const DescribeSentimentDetectionJobResponse = - /*@__PURE__*/ S.suspend(() => +export const DescribeSentimentDetectionJobResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ SentimentDetectionJobProperties: S.optional( SentimentDetectionJobProperties, ), }), - ).annotate({ - identifier: "DescribeSentimentDetectionJobResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeSentimentDetectionJobResponse", +}) as any as S.Schema; export interface DescribeTargetedSentimentDetectionJobRequest { JobId: string; } @@ -2619,8 +2578,8 @@ export interface TargetedSentimentDetectionJobProperties { VolumeKmsKeyId?: string; VpcConfig?: VpcConfig; } -export const TargetedSentimentDetectionJobProperties = - /*@__PURE__*/ S.suspend(() => +export const TargetedSentimentDetectionJobProperties = /*@__PURE__*/ S.suspend( + () => S.Struct({ JobId: S.optional(S.String), JobArn: S.optional(S.String), @@ -2636,9 +2595,9 @@ export const TargetedSentimentDetectionJobProperties = VolumeKmsKeyId: S.optional(S.String), VpcConfig: S.optional(VpcConfig), }), - ).annotate({ - identifier: "TargetedSentimentDetectionJobProperties", - }) as any as S.Schema; +).annotate({ + identifier: "TargetedSentimentDetectionJobProperties", +}) as any as S.Schema; export interface DescribeTargetedSentimentDetectionJobResponse { TargetedSentimentDetectionJobProperties?: TargetedSentimentDetectionJobProperties; } @@ -2655,14 +2614,13 @@ export const DescribeTargetedSentimentDetectionJobResponse = export interface DescribeTopicsDetectionJobRequest { JobId: string; } -export const DescribeTopicsDetectionJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ JobId: S.String }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "DescribeTopicsDetectionJobRequest", - }) as any as S.Schema; +export const DescribeTopicsDetectionJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ JobId: S.String }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "DescribeTopicsDetectionJobRequest", +}) as any as S.Schema; export interface TopicsDetectionJobProperties { JobId?: string; JobArn?: string; @@ -2678,57 +2636,53 @@ export interface TopicsDetectionJobProperties { VolumeKmsKeyId?: string; VpcConfig?: VpcConfig; } -export const TopicsDetectionJobProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - JobId: S.optional(S.String), - JobArn: S.optional(S.String), - JobName: S.optional(S.String), - JobStatus: S.optional(JobStatus), - Message: S.optional(S.String), - SubmitTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - EndTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - InputDataConfig: S.optional(InputDataConfig), - OutputDataConfig: S.optional(OutputDataConfig), - NumberOfTopics: S.optional(S.Number), - DataAccessRoleArn: S.optional(S.String), - VolumeKmsKeyId: S.optional(S.String), - VpcConfig: S.optional(VpcConfig), - }), - ).annotate({ - identifier: "TopicsDetectionJobProperties", - }) as any as S.Schema; +export const TopicsDetectionJobProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + JobId: S.optional(S.String), + JobArn: S.optional(S.String), + JobName: S.optional(S.String), + JobStatus: S.optional(JobStatus), + Message: S.optional(S.String), + SubmitTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + EndTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + InputDataConfig: S.optional(InputDataConfig), + OutputDataConfig: S.optional(OutputDataConfig), + NumberOfTopics: S.optional(S.Number), + DataAccessRoleArn: S.optional(S.String), + VolumeKmsKeyId: S.optional(S.String), + VpcConfig: S.optional(VpcConfig), + }), +).annotate({ + identifier: "TopicsDetectionJobProperties", +}) as any as S.Schema; export interface DescribeTopicsDetectionJobResponse { TopicsDetectionJobProperties?: TopicsDetectionJobProperties; } -export const DescribeTopicsDetectionJobResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TopicsDetectionJobProperties: S.optional(TopicsDetectionJobProperties), - }), - ).annotate({ - identifier: "DescribeTopicsDetectionJobResponse", - }) as any as S.Schema; +export const DescribeTopicsDetectionJobResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TopicsDetectionJobProperties: S.optional(TopicsDetectionJobProperties), + }), +).annotate({ + identifier: "DescribeTopicsDetectionJobResponse", +}) as any as S.Schema; export interface DetectDominantLanguageRequest { Text: string | redacted.Redacted; } -export const DetectDominantLanguageRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Text: SensitiveString }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "DetectDominantLanguageRequest", - }) as any as S.Schema; +export const DetectDominantLanguageRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Text: SensitiveString }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "DetectDominantLanguageRequest", +}) as any as S.Schema; export interface DetectDominantLanguageResponse { Languages?: DominantLanguage[]; } -export const DetectDominantLanguageResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Languages: S.optional(ListOfDominantLanguages) }), - ).annotate({ - identifier: "DetectDominantLanguageResponse", - }) as any as S.Schema; +export const DetectDominantLanguageResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Languages: S.optional(ListOfDominantLanguages) }), +).annotate({ + identifier: "DetectDominantLanguageResponse", +}) as any as S.Schema; export interface DetectEntitiesRequest { Text?: string | redacted.Redacted; LanguageCode?: LanguageCode; @@ -2937,23 +2891,21 @@ export interface DetectTargetedSentimentRequest { Text: string | redacted.Redacted; LanguageCode: LanguageCode; } -export const DetectTargetedSentimentRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Text: SensitiveString, LanguageCode: LanguageCode }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "DetectTargetedSentimentRequest", - }) as any as S.Schema; +export const DetectTargetedSentimentRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Text: SensitiveString, LanguageCode: LanguageCode }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "DetectTargetedSentimentRequest", +}) as any as S.Schema; export interface DetectTargetedSentimentResponse { Entities?: TargetedSentimentEntity[]; } -export const DetectTargetedSentimentResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Entities: S.optional(ListOfTargetedSentimentEntities) }), - ).annotate({ - identifier: "DetectTargetedSentimentResponse", - }) as any as S.Schema; +export const DetectTargetedSentimentResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Entities: S.optional(ListOfTargetedSentimentEntities) }), +).annotate({ + identifier: "DetectTargetedSentimentResponse", +}) as any as S.Schema; export interface TextSegment { Text: string | redacted.Redacted; } @@ -3101,28 +3053,27 @@ export interface DocumentClassificationJobFilter { SubmitTimeBefore?: Date; SubmitTimeAfter?: Date; } -export const DocumentClassificationJobFilter = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - JobName: S.optional(S.String), - JobStatus: S.optional(JobStatus), - SubmitTimeBefore: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - SubmitTimeAfter: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - }), - ).annotate({ - identifier: "DocumentClassificationJobFilter", - }) as any as S.Schema; +export const DocumentClassificationJobFilter = /*@__PURE__*/ S.suspend(() => + S.Struct({ + JobName: S.optional(S.String), + JobStatus: S.optional(JobStatus), + SubmitTimeBefore: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + SubmitTimeAfter: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + }), +).annotate({ + identifier: "DocumentClassificationJobFilter", +}) as any as S.Schema; export interface ListDocumentClassificationJobsRequest { Filter?: DocumentClassificationJobFilter; NextToken?: string; MaxResults?: number; } -export const ListDocumentClassificationJobsRequest = - /*@__PURE__*/ S.suspend(() => +export const ListDocumentClassificationJobsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Filter: S.optional(DocumentClassificationJobFilter), NextToken: S.optional(S.String), @@ -3130,28 +3081,29 @@ export const ListDocumentClassificationJobsRequest = }).pipe( T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), ), - ).annotate({ - identifier: "ListDocumentClassificationJobsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListDocumentClassificationJobsRequest", +}) as any as S.Schema; export type DocumentClassificationJobPropertiesList = DocumentClassificationJobProperties[]; -export const DocumentClassificationJobPropertiesList = - /*@__PURE__*/ S.Array(DocumentClassificationJobProperties); +export const DocumentClassificationJobPropertiesList = /*@__PURE__*/ S.Array( + DocumentClassificationJobProperties, +); export interface ListDocumentClassificationJobsResponse { DocumentClassificationJobPropertiesList?: DocumentClassificationJobProperties[]; NextToken?: string; } -export const ListDocumentClassificationJobsResponse = - /*@__PURE__*/ S.suspend(() => +export const ListDocumentClassificationJobsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ DocumentClassificationJobPropertiesList: S.optional( DocumentClassificationJobPropertiesList, ), NextToken: S.optional(S.String), }), - ).annotate({ - identifier: "ListDocumentClassificationJobsResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListDocumentClassificationJobsResponse", +}) as any as S.Schema; export interface DocumentClassifierFilter { Status?: ModelStatus; DocumentClassifierName?: string; @@ -3177,51 +3129,50 @@ export interface ListDocumentClassifiersRequest { NextToken?: string; MaxResults?: number; } -export const ListDocumentClassifiersRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Filter: S.optional(DocumentClassifierFilter), - NextToken: S.optional(S.String), - MaxResults: S.optional(S.Number), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "ListDocumentClassifiersRequest", - }) as any as S.Schema; +export const ListDocumentClassifiersRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Filter: S.optional(DocumentClassifierFilter), + NextToken: S.optional(S.String), + MaxResults: S.optional(S.Number), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "ListDocumentClassifiersRequest", +}) as any as S.Schema; export type DocumentClassifierPropertiesList = DocumentClassifierProperties[]; -export const DocumentClassifierPropertiesList = - /*@__PURE__*/ S.Array(DocumentClassifierProperties); +export const DocumentClassifierPropertiesList = /*@__PURE__*/ S.Array( + DocumentClassifierProperties, +); export interface ListDocumentClassifiersResponse { DocumentClassifierPropertiesList?: DocumentClassifierProperties[]; NextToken?: string; } -export const ListDocumentClassifiersResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DocumentClassifierPropertiesList: S.optional( - DocumentClassifierPropertiesList, - ), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListDocumentClassifiersResponse", - }) as any as S.Schema; +export const ListDocumentClassifiersResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DocumentClassifierPropertiesList: S.optional( + DocumentClassifierPropertiesList, + ), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListDocumentClassifiersResponse", +}) as any as S.Schema; export interface ListDocumentClassifierSummariesRequest { NextToken?: string; MaxResults?: number; } -export const ListDocumentClassifierSummariesRequest = - /*@__PURE__*/ S.suspend(() => +export const ListDocumentClassifierSummariesRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ NextToken: S.optional(S.String), MaxResults: S.optional(S.Number), }).pipe( T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), ), - ).annotate({ - identifier: "ListDocumentClassifierSummariesRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListDocumentClassifierSummariesRequest", +}) as any as S.Schema; export interface DocumentClassifierSummary { DocumentClassifierName?: string; NumberOfVersions?: number; @@ -3243,51 +3194,51 @@ export const DocumentClassifierSummary = /*@__PURE__*/ S.suspend(() => identifier: "DocumentClassifierSummary", }) as any as S.Schema; export type DocumentClassifierSummariesList = DocumentClassifierSummary[]; -export const DocumentClassifierSummariesList = - /*@__PURE__*/ S.Array(DocumentClassifierSummary); +export const DocumentClassifierSummariesList = /*@__PURE__*/ S.Array( + DocumentClassifierSummary, +); export interface ListDocumentClassifierSummariesResponse { DocumentClassifierSummariesList?: DocumentClassifierSummary[]; NextToken?: string; } -export const ListDocumentClassifierSummariesResponse = - /*@__PURE__*/ S.suspend(() => +export const ListDocumentClassifierSummariesResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ DocumentClassifierSummariesList: S.optional( DocumentClassifierSummariesList, ), NextToken: S.optional(S.String), }), - ).annotate({ - identifier: "ListDocumentClassifierSummariesResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListDocumentClassifierSummariesResponse", +}) as any as S.Schema; export interface DominantLanguageDetectionJobFilter { JobName?: string; JobStatus?: JobStatus; SubmitTimeBefore?: Date; SubmitTimeAfter?: Date; } -export const DominantLanguageDetectionJobFilter = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - JobName: S.optional(S.String), - JobStatus: S.optional(JobStatus), - SubmitTimeBefore: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - SubmitTimeAfter: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - }), - ).annotate({ - identifier: "DominantLanguageDetectionJobFilter", - }) as any as S.Schema; +export const DominantLanguageDetectionJobFilter = /*@__PURE__*/ S.suspend(() => + S.Struct({ + JobName: S.optional(S.String), + JobStatus: S.optional(JobStatus), + SubmitTimeBefore: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + SubmitTimeAfter: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + }), +).annotate({ + identifier: "DominantLanguageDetectionJobFilter", +}) as any as S.Schema; export interface ListDominantLanguageDetectionJobsRequest { Filter?: DominantLanguageDetectionJobFilter; NextToken?: string; MaxResults?: number; } -export const ListDominantLanguageDetectionJobsRequest = - /*@__PURE__*/ S.suspend(() => +export const ListDominantLanguageDetectionJobsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Filter: S.optional(DominantLanguageDetectionJobFilter), NextToken: S.optional(S.String), @@ -3295,13 +3246,14 @@ export const ListDominantLanguageDetectionJobsRequest = }).pipe( T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), ), - ).annotate({ - identifier: "ListDominantLanguageDetectionJobsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListDominantLanguageDetectionJobsRequest", +}) as any as S.Schema; export type DominantLanguageDetectionJobPropertiesList = DominantLanguageDetectionJobProperties[]; -export const DominantLanguageDetectionJobPropertiesList = - /*@__PURE__*/ S.Array(DominantLanguageDetectionJobProperties); +export const DominantLanguageDetectionJobPropertiesList = /*@__PURE__*/ S.Array( + DominantLanguageDetectionJobProperties, +); export interface ListDominantLanguageDetectionJobsResponse { DominantLanguageDetectionJobPropertiesList?: DominantLanguageDetectionJobProperties[]; NextToken?: string; @@ -3390,37 +3342,36 @@ export interface ListEntitiesDetectionJobsRequest { NextToken?: string; MaxResults?: number; } -export const ListEntitiesDetectionJobsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Filter: S.optional(EntitiesDetectionJobFilter), - NextToken: S.optional(S.String), - MaxResults: S.optional(S.Number), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "ListEntitiesDetectionJobsRequest", - }) as any as S.Schema; +export const ListEntitiesDetectionJobsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Filter: S.optional(EntitiesDetectionJobFilter), + NextToken: S.optional(S.String), + MaxResults: S.optional(S.Number), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "ListEntitiesDetectionJobsRequest", +}) as any as S.Schema; export type EntitiesDetectionJobPropertiesList = EntitiesDetectionJobProperties[]; -export const EntitiesDetectionJobPropertiesList = - /*@__PURE__*/ S.Array(EntitiesDetectionJobProperties); +export const EntitiesDetectionJobPropertiesList = /*@__PURE__*/ S.Array( + EntitiesDetectionJobProperties, +); export interface ListEntitiesDetectionJobsResponse { EntitiesDetectionJobPropertiesList?: EntitiesDetectionJobProperties[]; NextToken?: string; } -export const ListEntitiesDetectionJobsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - EntitiesDetectionJobPropertiesList: S.optional( - EntitiesDetectionJobPropertiesList, - ), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListEntitiesDetectionJobsResponse", - }) as any as S.Schema; +export const ListEntitiesDetectionJobsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + EntitiesDetectionJobPropertiesList: S.optional( + EntitiesDetectionJobPropertiesList, + ), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListEntitiesDetectionJobsResponse", +}) as any as S.Schema; export interface EntityRecognizerFilter { Status?: ModelStatus; RecognizerName?: string; @@ -3446,51 +3397,48 @@ export interface ListEntityRecognizersRequest { NextToken?: string; MaxResults?: number; } -export const ListEntityRecognizersRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Filter: S.optional(EntityRecognizerFilter), - NextToken: S.optional(S.String), - MaxResults: S.optional(S.Number), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "ListEntityRecognizersRequest", - }) as any as S.Schema; +export const ListEntityRecognizersRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Filter: S.optional(EntityRecognizerFilter), + NextToken: S.optional(S.String), + MaxResults: S.optional(S.Number), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "ListEntityRecognizersRequest", +}) as any as S.Schema; export type EntityRecognizerPropertiesList = EntityRecognizerProperties[]; -export const EntityRecognizerPropertiesList = - /*@__PURE__*/ S.Array(EntityRecognizerProperties); +export const EntityRecognizerPropertiesList = /*@__PURE__*/ S.Array( + EntityRecognizerProperties, +); export interface ListEntityRecognizersResponse { EntityRecognizerPropertiesList?: EntityRecognizerProperties[]; NextToken?: string; } -export const ListEntityRecognizersResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - EntityRecognizerPropertiesList: S.optional( - EntityRecognizerPropertiesList, - ), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListEntityRecognizersResponse", - }) as any as S.Schema; +export const ListEntityRecognizersResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + EntityRecognizerPropertiesList: S.optional(EntityRecognizerPropertiesList), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListEntityRecognizersResponse", +}) as any as S.Schema; export interface ListEntityRecognizerSummariesRequest { NextToken?: string; MaxResults?: number; } -export const ListEntityRecognizerSummariesRequest = - /*@__PURE__*/ S.suspend(() => +export const ListEntityRecognizerSummariesRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ NextToken: S.optional(S.String), MaxResults: S.optional(S.Number), }).pipe( T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), ), - ).annotate({ - identifier: "ListEntityRecognizerSummariesRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListEntityRecognizerSummariesRequest", +}) as any as S.Schema; export interface EntityRecognizerSummary { RecognizerName?: string; NumberOfVersions?: number; @@ -3512,21 +3460,22 @@ export const EntityRecognizerSummary = /*@__PURE__*/ S.suspend(() => identifier: "EntityRecognizerSummary", }) as any as S.Schema; export type EntityRecognizerSummariesList = EntityRecognizerSummary[]; -export const EntityRecognizerSummariesList = - /*@__PURE__*/ S.Array(EntityRecognizerSummary); +export const EntityRecognizerSummariesList = /*@__PURE__*/ S.Array( + EntityRecognizerSummary, +); export interface ListEntityRecognizerSummariesResponse { EntityRecognizerSummariesList?: EntityRecognizerSummary[]; NextToken?: string; } -export const ListEntityRecognizerSummariesResponse = - /*@__PURE__*/ S.suspend(() => +export const ListEntityRecognizerSummariesResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ EntityRecognizerSummariesList: S.optional(EntityRecognizerSummariesList), NextToken: S.optional(S.String), }), - ).annotate({ - identifier: "ListEntityRecognizerSummariesResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListEntityRecognizerSummariesResponse", +}) as any as S.Schema; export interface EventsDetectionJobFilter { JobName?: string; JobStatus?: JobStatus; @@ -3552,36 +3501,35 @@ export interface ListEventsDetectionJobsRequest { NextToken?: string; MaxResults?: number; } -export const ListEventsDetectionJobsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Filter: S.optional(EventsDetectionJobFilter), - NextToken: S.optional(S.String), - MaxResults: S.optional(S.Number), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "ListEventsDetectionJobsRequest", - }) as any as S.Schema; +export const ListEventsDetectionJobsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Filter: S.optional(EventsDetectionJobFilter), + NextToken: S.optional(S.String), + MaxResults: S.optional(S.Number), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "ListEventsDetectionJobsRequest", +}) as any as S.Schema; export type EventsDetectionJobPropertiesList = EventsDetectionJobProperties[]; -export const EventsDetectionJobPropertiesList = - /*@__PURE__*/ S.Array(EventsDetectionJobProperties); +export const EventsDetectionJobPropertiesList = /*@__PURE__*/ S.Array( + EventsDetectionJobProperties, +); export interface ListEventsDetectionJobsResponse { EventsDetectionJobPropertiesList?: EventsDetectionJobProperties[]; NextToken?: string; } -export const ListEventsDetectionJobsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - EventsDetectionJobPropertiesList: S.optional( - EventsDetectionJobPropertiesList, - ), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListEventsDetectionJobsResponse", - }) as any as S.Schema; +export const ListEventsDetectionJobsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + EventsDetectionJobPropertiesList: S.optional( + EventsDetectionJobPropertiesList, + ), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListEventsDetectionJobsResponse", +}) as any as S.Schema; export interface FlywheelIterationFilter { CreationTimeAfter?: Date; CreationTimeBefore?: Date; @@ -3604,37 +3552,37 @@ export interface ListFlywheelIterationHistoryRequest { NextToken?: string; MaxResults?: number; } -export const ListFlywheelIterationHistoryRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - FlywheelArn: S.String, - Filter: S.optional(FlywheelIterationFilter), - NextToken: S.optional(S.String), - MaxResults: S.optional(S.Number), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "ListFlywheelIterationHistoryRequest", - }) as any as S.Schema; +export const ListFlywheelIterationHistoryRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + FlywheelArn: S.String, + Filter: S.optional(FlywheelIterationFilter), + NextToken: S.optional(S.String), + MaxResults: S.optional(S.Number), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "ListFlywheelIterationHistoryRequest", +}) as any as S.Schema; export type FlywheelIterationPropertiesList = FlywheelIterationProperties[]; -export const FlywheelIterationPropertiesList = - /*@__PURE__*/ S.Array(FlywheelIterationProperties); +export const FlywheelIterationPropertiesList = /*@__PURE__*/ S.Array( + FlywheelIterationProperties, +); export interface ListFlywheelIterationHistoryResponse { FlywheelIterationPropertiesList?: FlywheelIterationProperties[]; NextToken?: string; } -export const ListFlywheelIterationHistoryResponse = - /*@__PURE__*/ S.suspend(() => +export const ListFlywheelIterationHistoryResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ FlywheelIterationPropertiesList: S.optional( FlywheelIterationPropertiesList, ), NextToken: S.optional(S.String), }), - ).annotate({ - identifier: "ListFlywheelIterationHistoryResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListFlywheelIterationHistoryResponse", +}) as any as S.Schema; export interface FlywheelFilter { Status?: FlywheelStatus; CreationTimeAfter?: Date; @@ -3715,171 +3663,166 @@ export interface KeyPhrasesDetectionJobFilter { SubmitTimeBefore?: Date; SubmitTimeAfter?: Date; } -export const KeyPhrasesDetectionJobFilter = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - JobName: S.optional(S.String), - JobStatus: S.optional(JobStatus), - SubmitTimeBefore: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - SubmitTimeAfter: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - }), - ).annotate({ - identifier: "KeyPhrasesDetectionJobFilter", - }) as any as S.Schema; +export const KeyPhrasesDetectionJobFilter = /*@__PURE__*/ S.suspend(() => + S.Struct({ + JobName: S.optional(S.String), + JobStatus: S.optional(JobStatus), + SubmitTimeBefore: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + SubmitTimeAfter: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + }), +).annotate({ + identifier: "KeyPhrasesDetectionJobFilter", +}) as any as S.Schema; export interface ListKeyPhrasesDetectionJobsRequest { Filter?: KeyPhrasesDetectionJobFilter; NextToken?: string; MaxResults?: number; } -export const ListKeyPhrasesDetectionJobsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Filter: S.optional(KeyPhrasesDetectionJobFilter), - NextToken: S.optional(S.String), - MaxResults: S.optional(S.Number), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "ListKeyPhrasesDetectionJobsRequest", - }) as any as S.Schema; +export const ListKeyPhrasesDetectionJobsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Filter: S.optional(KeyPhrasesDetectionJobFilter), + NextToken: S.optional(S.String), + MaxResults: S.optional(S.Number), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "ListKeyPhrasesDetectionJobsRequest", +}) as any as S.Schema; export type KeyPhrasesDetectionJobPropertiesList = KeyPhrasesDetectionJobProperties[]; -export const KeyPhrasesDetectionJobPropertiesList = - /*@__PURE__*/ S.Array(KeyPhrasesDetectionJobProperties); +export const KeyPhrasesDetectionJobPropertiesList = /*@__PURE__*/ S.Array( + KeyPhrasesDetectionJobProperties, +); export interface ListKeyPhrasesDetectionJobsResponse { KeyPhrasesDetectionJobPropertiesList?: KeyPhrasesDetectionJobProperties[]; NextToken?: string; } -export const ListKeyPhrasesDetectionJobsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - KeyPhrasesDetectionJobPropertiesList: S.optional( - KeyPhrasesDetectionJobPropertiesList, - ), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListKeyPhrasesDetectionJobsResponse", - }) as any as S.Schema; +export const ListKeyPhrasesDetectionJobsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + KeyPhrasesDetectionJobPropertiesList: S.optional( + KeyPhrasesDetectionJobPropertiesList, + ), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListKeyPhrasesDetectionJobsResponse", +}) as any as S.Schema; export interface PiiEntitiesDetectionJobFilter { JobName?: string; JobStatus?: JobStatus; SubmitTimeBefore?: Date; SubmitTimeAfter?: Date; } -export const PiiEntitiesDetectionJobFilter = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - JobName: S.optional(S.String), - JobStatus: S.optional(JobStatus), - SubmitTimeBefore: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - SubmitTimeAfter: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - }), - ).annotate({ - identifier: "PiiEntitiesDetectionJobFilter", - }) as any as S.Schema; +export const PiiEntitiesDetectionJobFilter = /*@__PURE__*/ S.suspend(() => + S.Struct({ + JobName: S.optional(S.String), + JobStatus: S.optional(JobStatus), + SubmitTimeBefore: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + SubmitTimeAfter: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + }), +).annotate({ + identifier: "PiiEntitiesDetectionJobFilter", +}) as any as S.Schema; export interface ListPiiEntitiesDetectionJobsRequest { Filter?: PiiEntitiesDetectionJobFilter; NextToken?: string; MaxResults?: number; } -export const ListPiiEntitiesDetectionJobsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Filter: S.optional(PiiEntitiesDetectionJobFilter), - NextToken: S.optional(S.String), - MaxResults: S.optional(S.Number), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "ListPiiEntitiesDetectionJobsRequest", - }) as any as S.Schema; +export const ListPiiEntitiesDetectionJobsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Filter: S.optional(PiiEntitiesDetectionJobFilter), + NextToken: S.optional(S.String), + MaxResults: S.optional(S.Number), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "ListPiiEntitiesDetectionJobsRequest", +}) as any as S.Schema; export type PiiEntitiesDetectionJobPropertiesList = PiiEntitiesDetectionJobProperties[]; -export const PiiEntitiesDetectionJobPropertiesList = - /*@__PURE__*/ S.Array(PiiEntitiesDetectionJobProperties); +export const PiiEntitiesDetectionJobPropertiesList = /*@__PURE__*/ S.Array( + PiiEntitiesDetectionJobProperties, +); export interface ListPiiEntitiesDetectionJobsResponse { PiiEntitiesDetectionJobPropertiesList?: PiiEntitiesDetectionJobProperties[]; NextToken?: string; } -export const ListPiiEntitiesDetectionJobsResponse = - /*@__PURE__*/ S.suspend(() => +export const ListPiiEntitiesDetectionJobsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ PiiEntitiesDetectionJobPropertiesList: S.optional( PiiEntitiesDetectionJobPropertiesList, ), NextToken: S.optional(S.String), }), - ).annotate({ - identifier: "ListPiiEntitiesDetectionJobsResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListPiiEntitiesDetectionJobsResponse", +}) as any as S.Schema; export interface SentimentDetectionJobFilter { JobName?: string; JobStatus?: JobStatus; SubmitTimeBefore?: Date; SubmitTimeAfter?: Date; } -export const SentimentDetectionJobFilter = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - JobName: S.optional(S.String), - JobStatus: S.optional(JobStatus), - SubmitTimeBefore: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - SubmitTimeAfter: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - }), - ).annotate({ - identifier: "SentimentDetectionJobFilter", - }) as any as S.Schema; +export const SentimentDetectionJobFilter = /*@__PURE__*/ S.suspend(() => + S.Struct({ + JobName: S.optional(S.String), + JobStatus: S.optional(JobStatus), + SubmitTimeBefore: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + SubmitTimeAfter: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + }), +).annotate({ + identifier: "SentimentDetectionJobFilter", +}) as any as S.Schema; export interface ListSentimentDetectionJobsRequest { Filter?: SentimentDetectionJobFilter; NextToken?: string; MaxResults?: number; } -export const ListSentimentDetectionJobsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Filter: S.optional(SentimentDetectionJobFilter), - NextToken: S.optional(S.String), - MaxResults: S.optional(S.Number), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "ListSentimentDetectionJobsRequest", - }) as any as S.Schema; +export const ListSentimentDetectionJobsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Filter: S.optional(SentimentDetectionJobFilter), + NextToken: S.optional(S.String), + MaxResults: S.optional(S.Number), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "ListSentimentDetectionJobsRequest", +}) as any as S.Schema; export type SentimentDetectionJobPropertiesList = SentimentDetectionJobProperties[]; -export const SentimentDetectionJobPropertiesList = - /*@__PURE__*/ S.Array(SentimentDetectionJobProperties); +export const SentimentDetectionJobPropertiesList = /*@__PURE__*/ S.Array( + SentimentDetectionJobProperties, +); export interface ListSentimentDetectionJobsResponse { SentimentDetectionJobPropertiesList?: SentimentDetectionJobProperties[]; NextToken?: string; } -export const ListSentimentDetectionJobsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SentimentDetectionJobPropertiesList: S.optional( - SentimentDetectionJobPropertiesList, - ), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListSentimentDetectionJobsResponse", - }) as any as S.Schema; +export const ListSentimentDetectionJobsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SentimentDetectionJobPropertiesList: S.optional( + SentimentDetectionJobPropertiesList, + ), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListSentimentDetectionJobsResponse", +}) as any as S.Schema; export interface ListTagsForResourceRequest { ResourceArn: string; } @@ -3894,33 +3837,31 @@ export interface ListTagsForResourceResponse { ResourceArn?: string; Tags?: Tag[]; } -export const ListTagsForResourceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ResourceArn: S.optional(S.String), Tags: S.optional(TagList) }), - ).annotate({ - identifier: "ListTagsForResourceResponse", - }) as any as S.Schema; +export const ListTagsForResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ ResourceArn: S.optional(S.String), Tags: S.optional(TagList) }), +).annotate({ + identifier: "ListTagsForResourceResponse", +}) as any as S.Schema; export interface TargetedSentimentDetectionJobFilter { JobName?: string; JobStatus?: JobStatus; SubmitTimeBefore?: Date; SubmitTimeAfter?: Date; } -export const TargetedSentimentDetectionJobFilter = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - JobName: S.optional(S.String), - JobStatus: S.optional(JobStatus), - SubmitTimeBefore: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - SubmitTimeAfter: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - }), - ).annotate({ - identifier: "TargetedSentimentDetectionJobFilter", - }) as any as S.Schema; +export const TargetedSentimentDetectionJobFilter = /*@__PURE__*/ S.suspend(() => + S.Struct({ + JobName: S.optional(S.String), + JobStatus: S.optional(JobStatus), + SubmitTimeBefore: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + SubmitTimeAfter: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + }), +).annotate({ + identifier: "TargetedSentimentDetectionJobFilter", +}) as any as S.Schema; export interface ListTargetedSentimentDetectionJobsRequest { Filter?: TargetedSentimentDetectionJobFilter; NextToken?: string; @@ -3982,36 +3923,35 @@ export interface ListTopicsDetectionJobsRequest { NextToken?: string; MaxResults?: number; } -export const ListTopicsDetectionJobsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Filter: S.optional(TopicsDetectionJobFilter), - NextToken: S.optional(S.String), - MaxResults: S.optional(S.Number), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "ListTopicsDetectionJobsRequest", - }) as any as S.Schema; +export const ListTopicsDetectionJobsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Filter: S.optional(TopicsDetectionJobFilter), + NextToken: S.optional(S.String), + MaxResults: S.optional(S.Number), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "ListTopicsDetectionJobsRequest", +}) as any as S.Schema; export type TopicsDetectionJobPropertiesList = TopicsDetectionJobProperties[]; -export const TopicsDetectionJobPropertiesList = - /*@__PURE__*/ S.Array(TopicsDetectionJobProperties); +export const TopicsDetectionJobPropertiesList = /*@__PURE__*/ S.Array( + TopicsDetectionJobProperties, +); export interface ListTopicsDetectionJobsResponse { TopicsDetectionJobPropertiesList?: TopicsDetectionJobProperties[]; NextToken?: string; } -export const ListTopicsDetectionJobsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TopicsDetectionJobPropertiesList: S.optional( - TopicsDetectionJobPropertiesList, - ), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListTopicsDetectionJobsResponse", - }) as any as S.Schema; +export const ListTopicsDetectionJobsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TopicsDetectionJobPropertiesList: S.optional( + TopicsDetectionJobPropertiesList, + ), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListTopicsDetectionJobsResponse", +}) as any as S.Schema; export interface PutResourcePolicyRequest { ResourceArn: string; ResourcePolicy: string; @@ -4048,8 +3988,8 @@ export interface StartDocumentClassificationJobRequest { Tags?: Tag[]; FlywheelArn?: string; } -export const StartDocumentClassificationJobRequest = - /*@__PURE__*/ S.suspend(() => +export const StartDocumentClassificationJobRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ JobName: S.optional(S.String), DocumentClassifierArn: S.optional(S.String), @@ -4064,26 +4004,26 @@ export const StartDocumentClassificationJobRequest = }).pipe( T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), ), - ).annotate({ - identifier: "StartDocumentClassificationJobRequest", - }) as any as S.Schema; +).annotate({ + identifier: "StartDocumentClassificationJobRequest", +}) as any as S.Schema; export interface StartDocumentClassificationJobResponse { JobId?: string; JobArn?: string; JobStatus?: JobStatus; DocumentClassifierArn?: string; } -export const StartDocumentClassificationJobResponse = - /*@__PURE__*/ S.suspend(() => +export const StartDocumentClassificationJobResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ JobId: S.optional(S.String), JobArn: S.optional(S.String), JobStatus: S.optional(JobStatus), DocumentClassifierArn: S.optional(S.String), }), - ).annotate({ - identifier: "StartDocumentClassificationJobResponse", - }) as any as S.Schema; +).annotate({ + identifier: "StartDocumentClassificationJobResponse", +}) as any as S.Schema; export interface StartDominantLanguageDetectionJobRequest { InputDataConfig: InputDataConfig; OutputDataConfig: OutputDataConfig; @@ -4094,8 +4034,8 @@ export interface StartDominantLanguageDetectionJobRequest { VpcConfig?: VpcConfig; Tags?: Tag[]; } -export const StartDominantLanguageDetectionJobRequest = - /*@__PURE__*/ S.suspend(() => +export const StartDominantLanguageDetectionJobRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ InputDataConfig: InputDataConfig, OutputDataConfig: OutputDataConfig, @@ -4108,9 +4048,9 @@ export const StartDominantLanguageDetectionJobRequest = }).pipe( T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), ), - ).annotate({ - identifier: "StartDominantLanguageDetectionJobRequest", - }) as any as S.Schema; +).annotate({ + identifier: "StartDominantLanguageDetectionJobRequest", +}) as any as S.Schema; export interface StartDominantLanguageDetectionJobResponse { JobId?: string; JobArn?: string; @@ -4139,43 +4079,41 @@ export interface StartEntitiesDetectionJobRequest { Tags?: Tag[]; FlywheelArn?: string; } -export const StartEntitiesDetectionJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - InputDataConfig: InputDataConfig, - OutputDataConfig: OutputDataConfig, - DataAccessRoleArn: S.String, - JobName: S.optional(S.String), - EntityRecognizerArn: S.optional(S.String), - LanguageCode: LanguageCode, - ClientRequestToken: S.optional(S.String).pipe(T.IdempotencyToken()), - VolumeKmsKeyId: S.optional(S.String), - VpcConfig: S.optional(VpcConfig), - Tags: S.optional(TagList), - FlywheelArn: S.optional(S.String), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "StartEntitiesDetectionJobRequest", - }) as any as S.Schema; +export const StartEntitiesDetectionJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + InputDataConfig: InputDataConfig, + OutputDataConfig: OutputDataConfig, + DataAccessRoleArn: S.String, + JobName: S.optional(S.String), + EntityRecognizerArn: S.optional(S.String), + LanguageCode: LanguageCode, + ClientRequestToken: S.optional(S.String).pipe(T.IdempotencyToken()), + VolumeKmsKeyId: S.optional(S.String), + VpcConfig: S.optional(VpcConfig), + Tags: S.optional(TagList), + FlywheelArn: S.optional(S.String), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "StartEntitiesDetectionJobRequest", +}) as any as S.Schema; export interface StartEntitiesDetectionJobResponse { JobId?: string; JobArn?: string; JobStatus?: JobStatus; EntityRecognizerArn?: string; } -export const StartEntitiesDetectionJobResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - JobId: S.optional(S.String), - JobArn: S.optional(S.String), - JobStatus: S.optional(JobStatus), - EntityRecognizerArn: S.optional(S.String), - }), - ).annotate({ - identifier: "StartEntitiesDetectionJobResponse", - }) as any as S.Schema; +export const StartEntitiesDetectionJobResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + JobId: S.optional(S.String), + JobArn: S.optional(S.String), + JobStatus: S.optional(JobStatus), + EntityRecognizerArn: S.optional(S.String), + }), +).annotate({ + identifier: "StartEntitiesDetectionJobResponse", +}) as any as S.Schema; export interface StartEventsDetectionJobRequest { InputDataConfig: InputDataConfig; OutputDataConfig: OutputDataConfig; @@ -4186,66 +4124,62 @@ export interface StartEventsDetectionJobRequest { TargetEventTypes: string[]; Tags?: Tag[]; } -export const StartEventsDetectionJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - InputDataConfig: InputDataConfig, - OutputDataConfig: OutputDataConfig, - DataAccessRoleArn: S.String, - JobName: S.optional(S.String), - LanguageCode: LanguageCode, - ClientRequestToken: S.optional(S.String).pipe(T.IdempotencyToken()), - TargetEventTypes: TargetEventTypes, - Tags: S.optional(TagList), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "StartEventsDetectionJobRequest", - }) as any as S.Schema; +export const StartEventsDetectionJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + InputDataConfig: InputDataConfig, + OutputDataConfig: OutputDataConfig, + DataAccessRoleArn: S.String, + JobName: S.optional(S.String), + LanguageCode: LanguageCode, + ClientRequestToken: S.optional(S.String).pipe(T.IdempotencyToken()), + TargetEventTypes: TargetEventTypes, + Tags: S.optional(TagList), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "StartEventsDetectionJobRequest", +}) as any as S.Schema; export interface StartEventsDetectionJobResponse { JobId?: string; JobArn?: string; JobStatus?: JobStatus; } -export const StartEventsDetectionJobResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - JobId: S.optional(S.String), - JobArn: S.optional(S.String), - JobStatus: S.optional(JobStatus), - }), - ).annotate({ - identifier: "StartEventsDetectionJobResponse", - }) as any as S.Schema; +export const StartEventsDetectionJobResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + JobId: S.optional(S.String), + JobArn: S.optional(S.String), + JobStatus: S.optional(JobStatus), + }), +).annotate({ + identifier: "StartEventsDetectionJobResponse", +}) as any as S.Schema; export interface StartFlywheelIterationRequest { FlywheelArn: string; ClientRequestToken?: string; } -export const StartFlywheelIterationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - FlywheelArn: S.String, - ClientRequestToken: S.optional(S.String), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "StartFlywheelIterationRequest", - }) as any as S.Schema; +export const StartFlywheelIterationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + FlywheelArn: S.String, + ClientRequestToken: S.optional(S.String), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "StartFlywheelIterationRequest", +}) as any as S.Schema; export interface StartFlywheelIterationResponse { FlywheelArn?: string; FlywheelIterationId?: string; } -export const StartFlywheelIterationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - FlywheelArn: S.optional(S.String), - FlywheelIterationId: S.optional(S.String), - }), - ).annotate({ - identifier: "StartFlywheelIterationResponse", - }) as any as S.Schema; +export const StartFlywheelIterationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + FlywheelArn: S.optional(S.String), + FlywheelIterationId: S.optional(S.String), + }), +).annotate({ + identifier: "StartFlywheelIterationResponse", +}) as any as S.Schema; export interface StartKeyPhrasesDetectionJobRequest { InputDataConfig: InputDataConfig; OutputDataConfig: OutputDataConfig; @@ -4257,39 +4191,37 @@ export interface StartKeyPhrasesDetectionJobRequest { VpcConfig?: VpcConfig; Tags?: Tag[]; } -export const StartKeyPhrasesDetectionJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - InputDataConfig: InputDataConfig, - OutputDataConfig: OutputDataConfig, - DataAccessRoleArn: S.String, - JobName: S.optional(S.String), - LanguageCode: LanguageCode, - ClientRequestToken: S.optional(S.String).pipe(T.IdempotencyToken()), - VolumeKmsKeyId: S.optional(S.String), - VpcConfig: S.optional(VpcConfig), - Tags: S.optional(TagList), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "StartKeyPhrasesDetectionJobRequest", - }) as any as S.Schema; +export const StartKeyPhrasesDetectionJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + InputDataConfig: InputDataConfig, + OutputDataConfig: OutputDataConfig, + DataAccessRoleArn: S.String, + JobName: S.optional(S.String), + LanguageCode: LanguageCode, + ClientRequestToken: S.optional(S.String).pipe(T.IdempotencyToken()), + VolumeKmsKeyId: S.optional(S.String), + VpcConfig: S.optional(VpcConfig), + Tags: S.optional(TagList), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "StartKeyPhrasesDetectionJobRequest", +}) as any as S.Schema; export interface StartKeyPhrasesDetectionJobResponse { JobId?: string; JobArn?: string; JobStatus?: JobStatus; } -export const StartKeyPhrasesDetectionJobResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - JobId: S.optional(S.String), - JobArn: S.optional(S.String), - JobStatus: S.optional(JobStatus), - }), - ).annotate({ - identifier: "StartKeyPhrasesDetectionJobResponse", - }) as any as S.Schema; +export const StartKeyPhrasesDetectionJobResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + JobId: S.optional(S.String), + JobArn: S.optional(S.String), + JobStatus: S.optional(JobStatus), + }), +).annotate({ + identifier: "StartKeyPhrasesDetectionJobResponse", +}) as any as S.Schema; export interface StartPiiEntitiesDetectionJobRequest { InputDataConfig: InputDataConfig; OutputDataConfig: OutputDataConfig; @@ -4301,39 +4233,38 @@ export interface StartPiiEntitiesDetectionJobRequest { ClientRequestToken?: string; Tags?: Tag[]; } -export const StartPiiEntitiesDetectionJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - InputDataConfig: InputDataConfig, - OutputDataConfig: OutputDataConfig, - Mode: PiiEntitiesDetectionMode, - RedactionConfig: S.optional(RedactionConfig), - DataAccessRoleArn: S.String, - JobName: S.optional(S.String), - LanguageCode: LanguageCode, - ClientRequestToken: S.optional(S.String).pipe(T.IdempotencyToken()), - Tags: S.optional(TagList), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "StartPiiEntitiesDetectionJobRequest", - }) as any as S.Schema; +export const StartPiiEntitiesDetectionJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + InputDataConfig: InputDataConfig, + OutputDataConfig: OutputDataConfig, + Mode: PiiEntitiesDetectionMode, + RedactionConfig: S.optional(RedactionConfig), + DataAccessRoleArn: S.String, + JobName: S.optional(S.String), + LanguageCode: LanguageCode, + ClientRequestToken: S.optional(S.String).pipe(T.IdempotencyToken()), + Tags: S.optional(TagList), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "StartPiiEntitiesDetectionJobRequest", +}) as any as S.Schema; export interface StartPiiEntitiesDetectionJobResponse { JobId?: string; JobArn?: string; JobStatus?: JobStatus; } -export const StartPiiEntitiesDetectionJobResponse = - /*@__PURE__*/ S.suspend(() => +export const StartPiiEntitiesDetectionJobResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ JobId: S.optional(S.String), JobArn: S.optional(S.String), JobStatus: S.optional(JobStatus), }), - ).annotate({ - identifier: "StartPiiEntitiesDetectionJobResponse", - }) as any as S.Schema; +).annotate({ + identifier: "StartPiiEntitiesDetectionJobResponse", +}) as any as S.Schema; export interface StartSentimentDetectionJobRequest { InputDataConfig: InputDataConfig; OutputDataConfig: OutputDataConfig; @@ -4345,39 +4276,37 @@ export interface StartSentimentDetectionJobRequest { VpcConfig?: VpcConfig; Tags?: Tag[]; } -export const StartSentimentDetectionJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - InputDataConfig: InputDataConfig, - OutputDataConfig: OutputDataConfig, - DataAccessRoleArn: S.String, - JobName: S.optional(S.String), - LanguageCode: LanguageCode, - ClientRequestToken: S.optional(S.String).pipe(T.IdempotencyToken()), - VolumeKmsKeyId: S.optional(S.String), - VpcConfig: S.optional(VpcConfig), - Tags: S.optional(TagList), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "StartSentimentDetectionJobRequest", - }) as any as S.Schema; +export const StartSentimentDetectionJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + InputDataConfig: InputDataConfig, + OutputDataConfig: OutputDataConfig, + DataAccessRoleArn: S.String, + JobName: S.optional(S.String), + LanguageCode: LanguageCode, + ClientRequestToken: S.optional(S.String).pipe(T.IdempotencyToken()), + VolumeKmsKeyId: S.optional(S.String), + VpcConfig: S.optional(VpcConfig), + Tags: S.optional(TagList), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "StartSentimentDetectionJobRequest", +}) as any as S.Schema; export interface StartSentimentDetectionJobResponse { JobId?: string; JobArn?: string; JobStatus?: JobStatus; } -export const StartSentimentDetectionJobResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - JobId: S.optional(S.String), - JobArn: S.optional(S.String), - JobStatus: S.optional(JobStatus), - }), - ).annotate({ - identifier: "StartSentimentDetectionJobResponse", - }) as any as S.Schema; +export const StartSentimentDetectionJobResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + JobId: S.optional(S.String), + JobArn: S.optional(S.String), + JobStatus: S.optional(JobStatus), + }), +).annotate({ + identifier: "StartSentimentDetectionJobResponse", +}) as any as S.Schema; export interface StartTargetedSentimentDetectionJobRequest { InputDataConfig: InputDataConfig; OutputDataConfig: OutputDataConfig; @@ -4433,176 +4362,164 @@ export interface StartTopicsDetectionJobRequest { VpcConfig?: VpcConfig; Tags?: Tag[]; } -export const StartTopicsDetectionJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - InputDataConfig: InputDataConfig, - OutputDataConfig: OutputDataConfig, - DataAccessRoleArn: S.String, - JobName: S.optional(S.String), - NumberOfTopics: S.optional(S.Number), - ClientRequestToken: S.optional(S.String).pipe(T.IdempotencyToken()), - VolumeKmsKeyId: S.optional(S.String), - VpcConfig: S.optional(VpcConfig), - Tags: S.optional(TagList), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "StartTopicsDetectionJobRequest", - }) as any as S.Schema; +export const StartTopicsDetectionJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + InputDataConfig: InputDataConfig, + OutputDataConfig: OutputDataConfig, + DataAccessRoleArn: S.String, + JobName: S.optional(S.String), + NumberOfTopics: S.optional(S.Number), + ClientRequestToken: S.optional(S.String).pipe(T.IdempotencyToken()), + VolumeKmsKeyId: S.optional(S.String), + VpcConfig: S.optional(VpcConfig), + Tags: S.optional(TagList), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "StartTopicsDetectionJobRequest", +}) as any as S.Schema; export interface StartTopicsDetectionJobResponse { JobId?: string; JobArn?: string; JobStatus?: JobStatus; } -export const StartTopicsDetectionJobResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - JobId: S.optional(S.String), - JobArn: S.optional(S.String), - JobStatus: S.optional(JobStatus), - }), - ).annotate({ - identifier: "StartTopicsDetectionJobResponse", - }) as any as S.Schema; +export const StartTopicsDetectionJobResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + JobId: S.optional(S.String), + JobArn: S.optional(S.String), + JobStatus: S.optional(JobStatus), + }), +).annotate({ + identifier: "StartTopicsDetectionJobResponse", +}) as any as S.Schema; export interface StopDominantLanguageDetectionJobRequest { JobId: string; } -export const StopDominantLanguageDetectionJobRequest = - /*@__PURE__*/ S.suspend(() => +export const StopDominantLanguageDetectionJobRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ JobId: S.String }).pipe( T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), ), - ).annotate({ - identifier: "StopDominantLanguageDetectionJobRequest", - }) as any as S.Schema; +).annotate({ + identifier: "StopDominantLanguageDetectionJobRequest", +}) as any as S.Schema; export interface StopDominantLanguageDetectionJobResponse { JobId?: string; JobStatus?: JobStatus; } -export const StopDominantLanguageDetectionJobResponse = - /*@__PURE__*/ S.suspend(() => +export const StopDominantLanguageDetectionJobResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ JobId: S.optional(S.String), JobStatus: S.optional(JobStatus) }), - ).annotate({ - identifier: "StopDominantLanguageDetectionJobResponse", - }) as any as S.Schema; +).annotate({ + identifier: "StopDominantLanguageDetectionJobResponse", +}) as any as S.Schema; export interface StopEntitiesDetectionJobRequest { JobId: string; } -export const StopEntitiesDetectionJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ JobId: S.String }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "StopEntitiesDetectionJobRequest", - }) as any as S.Schema; +export const StopEntitiesDetectionJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ JobId: S.String }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "StopEntitiesDetectionJobRequest", +}) as any as S.Schema; export interface StopEntitiesDetectionJobResponse { JobId?: string; JobStatus?: JobStatus; } -export const StopEntitiesDetectionJobResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ JobId: S.optional(S.String), JobStatus: S.optional(JobStatus) }), - ).annotate({ - identifier: "StopEntitiesDetectionJobResponse", - }) as any as S.Schema; +export const StopEntitiesDetectionJobResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ JobId: S.optional(S.String), JobStatus: S.optional(JobStatus) }), +).annotate({ + identifier: "StopEntitiesDetectionJobResponse", +}) as any as S.Schema; export interface StopEventsDetectionJobRequest { JobId: string; } -export const StopEventsDetectionJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ JobId: S.String }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "StopEventsDetectionJobRequest", - }) as any as S.Schema; +export const StopEventsDetectionJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ JobId: S.String }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "StopEventsDetectionJobRequest", +}) as any as S.Schema; export interface StopEventsDetectionJobResponse { JobId?: string; JobStatus?: JobStatus; } -export const StopEventsDetectionJobResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ JobId: S.optional(S.String), JobStatus: S.optional(JobStatus) }), - ).annotate({ - identifier: "StopEventsDetectionJobResponse", - }) as any as S.Schema; +export const StopEventsDetectionJobResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ JobId: S.optional(S.String), JobStatus: S.optional(JobStatus) }), +).annotate({ + identifier: "StopEventsDetectionJobResponse", +}) as any as S.Schema; export interface StopKeyPhrasesDetectionJobRequest { JobId: string; } -export const StopKeyPhrasesDetectionJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ JobId: S.String }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "StopKeyPhrasesDetectionJobRequest", - }) as any as S.Schema; +export const StopKeyPhrasesDetectionJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ JobId: S.String }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "StopKeyPhrasesDetectionJobRequest", +}) as any as S.Schema; export interface StopKeyPhrasesDetectionJobResponse { JobId?: string; JobStatus?: JobStatus; } -export const StopKeyPhrasesDetectionJobResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ JobId: S.optional(S.String), JobStatus: S.optional(JobStatus) }), - ).annotate({ - identifier: "StopKeyPhrasesDetectionJobResponse", - }) as any as S.Schema; +export const StopKeyPhrasesDetectionJobResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ JobId: S.optional(S.String), JobStatus: S.optional(JobStatus) }), +).annotate({ + identifier: "StopKeyPhrasesDetectionJobResponse", +}) as any as S.Schema; export interface StopPiiEntitiesDetectionJobRequest { JobId: string; } -export const StopPiiEntitiesDetectionJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ JobId: S.String }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "StopPiiEntitiesDetectionJobRequest", - }) as any as S.Schema; +export const StopPiiEntitiesDetectionJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ JobId: S.String }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "StopPiiEntitiesDetectionJobRequest", +}) as any as S.Schema; export interface StopPiiEntitiesDetectionJobResponse { JobId?: string; JobStatus?: JobStatus; } -export const StopPiiEntitiesDetectionJobResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ JobId: S.optional(S.String), JobStatus: S.optional(JobStatus) }), - ).annotate({ - identifier: "StopPiiEntitiesDetectionJobResponse", - }) as any as S.Schema; +export const StopPiiEntitiesDetectionJobResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ JobId: S.optional(S.String), JobStatus: S.optional(JobStatus) }), +).annotate({ + identifier: "StopPiiEntitiesDetectionJobResponse", +}) as any as S.Schema; export interface StopSentimentDetectionJobRequest { JobId: string; } -export const StopSentimentDetectionJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ JobId: S.String }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "StopSentimentDetectionJobRequest", - }) as any as S.Schema; +export const StopSentimentDetectionJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ JobId: S.String }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "StopSentimentDetectionJobRequest", +}) as any as S.Schema; export interface StopSentimentDetectionJobResponse { JobId?: string; JobStatus?: JobStatus; } -export const StopSentimentDetectionJobResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ JobId: S.optional(S.String), JobStatus: S.optional(JobStatus) }), - ).annotate({ - identifier: "StopSentimentDetectionJobResponse", - }) as any as S.Schema; +export const StopSentimentDetectionJobResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ JobId: S.optional(S.String), JobStatus: S.optional(JobStatus) }), +).annotate({ + identifier: "StopSentimentDetectionJobResponse", +}) as any as S.Schema; export interface StopTargetedSentimentDetectionJobRequest { JobId: string; } -export const StopTargetedSentimentDetectionJobRequest = - /*@__PURE__*/ S.suspend(() => +export const StopTargetedSentimentDetectionJobRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ JobId: S.String }).pipe( T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), ), - ).annotate({ - identifier: "StopTargetedSentimentDetectionJobRequest", - }) as any as S.Schema; +).annotate({ + identifier: "StopTargetedSentimentDetectionJobRequest", +}) as any as S.Schema; export interface StopTargetedSentimentDetectionJobResponse { JobId?: string; JobStatus?: JobStatus; @@ -4616,35 +4533,36 @@ export const StopTargetedSentimentDetectionJobResponse = export interface StopTrainingDocumentClassifierRequest { DocumentClassifierArn: string; } -export const StopTrainingDocumentClassifierRequest = - /*@__PURE__*/ S.suspend(() => +export const StopTrainingDocumentClassifierRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ DocumentClassifierArn: S.String }).pipe( T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), ), - ).annotate({ - identifier: "StopTrainingDocumentClassifierRequest", - }) as any as S.Schema; +).annotate({ + identifier: "StopTrainingDocumentClassifierRequest", +}) as any as S.Schema; export interface StopTrainingDocumentClassifierResponse {} -export const StopTrainingDocumentClassifierResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "StopTrainingDocumentClassifierResponse", - }) as any as S.Schema; +export const StopTrainingDocumentClassifierResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}), +).annotate({ + identifier: "StopTrainingDocumentClassifierResponse", +}) as any as S.Schema; export interface StopTrainingEntityRecognizerRequest { EntityRecognizerArn: string; } -export const StopTrainingEntityRecognizerRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ EntityRecognizerArn: S.String }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "StopTrainingEntityRecognizerRequest", - }) as any as S.Schema; +export const StopTrainingEntityRecognizerRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ EntityRecognizerArn: S.String }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "StopTrainingEntityRecognizerRequest", +}) as any as S.Schema; export interface StopTrainingEntityRecognizerResponse {} -export const StopTrainingEntityRecognizerResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "StopTrainingEntityRecognizerResponse", - }) as any as S.Schema; +export const StopTrainingEntityRecognizerResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}), +).annotate({ + identifier: "StopTrainingEntityRecognizerResponse", +}) as any as S.Schema; export interface TagResourceRequest { ResourceArn: string; Tags: Tag[]; @@ -4754,10 +4672,12 @@ export const UpdateFlywheelResponse = /*@__PURE__*/ S.suspend(() => export class BatchSizeLimitExceededException extends S.TaggedErrorClass()( "BatchSizeLimitExceededException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class InvalidRequestException extends S.TaggedErrorClass()( "InvalidRequestException", @@ -4766,58 +4686,76 @@ export class InvalidRequestException extends S.TaggedErrorClass()( "TextSizeLimitExceededException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class UnsupportedLanguageException extends S.TaggedErrorClass()( "UnsupportedLanguageException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ResourceUnavailableException extends S.TaggedErrorClass()( "ResourceUnavailableException", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} +export class NotAuthorizedException extends S.TaggedErrorClass()( + "NotAuthorizedException", + { message: S.optional(S.String) }, +).pipe(C.withAuthError) {} export class ResourceInUseException extends S.TaggedErrorClass()( "ResourceInUseException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ResourceLimitExceededException extends S.TaggedErrorClass()( "ResourceLimitExceededException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class TooManyRequestsException extends S.TaggedErrorClass()( "TooManyRequestsException", { Message: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class TooManyTagsException extends S.TaggedErrorClass()( "TooManyTagsException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class KmsKeyValidationException extends S.TaggedErrorClass()( "KmsKeyValidationException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class JobNotFoundException extends S.TaggedErrorClass()( "JobNotFoundException", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class InvalidFilterException extends S.TaggedErrorClass()( "InvalidFilterException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ConcurrentModificationException extends S.TaggedErrorClass()( "ConcurrentModificationException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyTagKeysException extends S.TaggedErrorClass()( "TooManyTagKeysException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} //# Operations @@ -4996,6 +4934,7 @@ export type ClassifyDocumentError = | InvalidRequestException | ResourceUnavailableException | TextSizeLimitExceededException + | NotAuthorizedException | CommonErrors; /** * Creates a classification request to analyze a single document in real-time. `ClassifyDocument` @@ -5033,6 +4972,7 @@ export const classifyDocument: API.OperationMethod< InvalidRequestException, ResourceUnavailableException, TextSizeLimitExceededException, + NotAuthorizedException, ], operationName: "ClassifyDocument", })); @@ -5601,6 +5541,7 @@ export type DescribeEventsDetectionJobError = | InvalidRequestException | JobNotFoundException | TooManyRequestsException + | NotAuthorizedException | CommonErrors; /** * Gets the status and details of an events detection job. @@ -5618,6 +5559,7 @@ export const describeEventsDetectionJob: API.OperationMethod< InvalidRequestException, JobNotFoundException, TooManyRequestsException, + NotAuthorizedException, ], operationName: "DescribeEventsDetectionJob", })); @@ -6511,6 +6453,7 @@ export type ListEventsDetectionJobsError = | InvalidFilterException | InvalidRequestException | TooManyRequestsException + | NotAuthorizedException | CommonErrors; /** * Gets a list of the events detection jobs that you have submitted. @@ -6543,6 +6486,7 @@ export const listEventsDetectionJobs: API.OperationMethod< InvalidFilterException, InvalidRequestException, TooManyRequestsException, + NotAuthorizedException, ], operationName: "ListEventsDetectionJobs", pagination: { @@ -7030,6 +6974,7 @@ export type StartEventsDetectionJobError = | ResourceInUseException | TooManyRequestsException | TooManyTagsException + | NotAuthorizedException | CommonErrors; /** * Starts an asynchronous event detection job for a collection of documents. @@ -7049,6 +6994,7 @@ export const startEventsDetectionJob: API.OperationMethod< ResourceInUseException, TooManyRequestsException, TooManyTagsException, + NotAuthorizedException, ], operationName: "StartEventsDetectionJob", })); @@ -7307,6 +7253,7 @@ export type StopEventsDetectionJobError = | InternalServerException | InvalidRequestException | JobNotFoundException + | NotAuthorizedException | CommonErrors; /** * Stops an events detection job in progress. @@ -7323,6 +7270,7 @@ export const stopEventsDetectionJob: API.OperationMethod< InternalServerException, InvalidRequestException, JobNotFoundException, + NotAuthorizedException, ], operationName: "StopEventsDetectionJob", })); diff --git a/packages/aws/src/services/controltower.ts b/packages/aws/src/services/controltower.ts index 6058091ed1..a0f636945d 100644 --- a/packages/aws/src/services/controltower.ts +++ b/packages/aws/src/services/controltower.ts @@ -1567,6 +1567,14 @@ export class ValidationException extends S.TaggedErrorClass "ValidationException", { message: S.String }, ).pipe(C.withBadRequestError) {} +export class UnauthorizedException extends S.TaggedErrorClass()( + "UnauthorizedException", + {}, +).pipe(C.withAuthError) {} +export class BadRequestException extends S.TaggedErrorClass()( + "BadRequestException", + {}, +).pipe(C.withBadRequestError) {} //# Operations export type DisableControlError = @@ -1606,6 +1614,7 @@ export type GetBaselineOperationError = | ResourceNotFoundException | ThrottlingException | ValidationException + | UnauthorizedException | CommonErrors; /** * Returns the details of an asynchronous baseline operation, as initiated by any of these APIs: `EnableBaseline`, `DisableBaseline`, `UpdateEnabledBaseline`, `ResetEnabledBaseline`. A status message is displayed in case of operation failure. For usage examples, see *the Amazon Web Services Control Tower User Guide* . @@ -1624,6 +1633,7 @@ export const getBaselineOperation: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + UnauthorizedException, ], operationName: "GetBaselineOperation", })); @@ -1633,6 +1643,7 @@ export type GetBaselineError = | ResourceNotFoundException | ThrottlingException | ValidationException + | UnauthorizedException | CommonErrors; /** * Retrieve details about an existing `Baseline` resource by specifying its identifier. For usage examples, see *the Amazon Web Services Control Tower User Guide* . @@ -1651,6 +1662,7 @@ export const getBaseline: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + UnauthorizedException, ], operationName: "GetBaseline", })); @@ -1659,6 +1671,7 @@ export type ListBaselinesError = | InternalServerException | ThrottlingException | ValidationException + | UnauthorizedException | CommonErrors; /** * Returns a summary list of all available baselines. For usage examples, see *the Amazon Web Services Control Tower User Guide* . @@ -1691,6 +1704,7 @@ export const listBaselines: API.OperationMethod< InternalServerException, ThrottlingException, ValidationException, + UnauthorizedException, ], operationName: "ListBaselines", pagination: { @@ -1781,6 +1795,7 @@ export type EnableBaselineError = | ServiceQuotaExceededException | ThrottlingException | ValidationException + | UnauthorizedException | CommonErrors; /** * Enable (apply) a `Baseline` to a Target. This API starts an asynchronous operation to deploy resources specified by the `Baseline` to the specified Target. For usage examples, see *the Amazon Web Services Control Tower User Guide* . @@ -1801,6 +1816,7 @@ export const enableBaseline: API.OperationMethod< ServiceQuotaExceededException, ThrottlingException, ValidationException, + UnauthorizedException, ], operationName: "EnableBaseline", })); @@ -1810,6 +1826,7 @@ export type GetEnabledBaselineError = | ResourceNotFoundException | ThrottlingException | ValidationException + | UnauthorizedException | CommonErrors; /** * Retrieve details of an `EnabledBaseline` resource by specifying its identifier. @@ -1828,6 +1845,7 @@ export const getEnabledBaseline: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + UnauthorizedException, ], operationName: "GetEnabledBaseline", })); @@ -1839,6 +1857,7 @@ export type UpdateEnabledBaselineError = | ServiceQuotaExceededException | ThrottlingException | ValidationException + | UnauthorizedException | CommonErrors; /** * Updates an `EnabledBaseline` resource's applied parameters or version. For usage examples, see *the Amazon Web Services Control Tower User Guide* . @@ -1859,6 +1878,7 @@ export const updateEnabledBaseline: API.OperationMethod< ServiceQuotaExceededException, ThrottlingException, ValidationException, + UnauthorizedException, ], operationName: "UpdateEnabledBaseline", })); @@ -1870,6 +1890,7 @@ export type DisableBaselineError = | ServiceQuotaExceededException | ThrottlingException | ValidationException + | UnauthorizedException | CommonErrors; /** * Disable an `EnabledBaseline` resource on the specified Target. This API starts an asynchronous operation to remove all resources deployed as part of the baseline enablement. The resource will vary depending on the enabled baseline. For usage examples, see *the Amazon Web Services Control Tower User Guide* . @@ -1890,6 +1911,7 @@ export const disableBaseline: API.OperationMethod< ServiceQuotaExceededException, ThrottlingException, ValidationException, + UnauthorizedException, ], operationName: "DisableBaseline", })); @@ -1898,6 +1920,7 @@ export type ListEnabledBaselinesError = | InternalServerException | ThrottlingException | ValidationException + | UnauthorizedException | CommonErrors; /** * Returns a list of summaries describing `EnabledBaseline` resources. You can filter the list by the corresponding `Baseline` or `Target` of the `EnabledBaseline` resources. For usage examples, see *the Amazon Web Services Control Tower User Guide* . @@ -1930,6 +1953,7 @@ export const listEnabledBaselines: API.OperationMethod< InternalServerException, ThrottlingException, ValidationException, + UnauthorizedException, ], operationName: "ListEnabledBaselines", pagination: { @@ -1947,6 +1971,7 @@ export type ResetEnabledBaselineError = | ServiceQuotaExceededException | ThrottlingException | ValidationException + | UnauthorizedException | CommonErrors; /** * Re-enables an `EnabledBaseline` resource. For example, this API can re-apply the existing `Baseline` after a new member account is moved to the target OU. For usage examples, see *the Amazon Web Services Control Tower User Guide* . @@ -1967,6 +1992,7 @@ export const resetEnabledBaseline: API.OperationMethod< ServiceQuotaExceededException, ThrottlingException, ValidationException, + UnauthorizedException, ], operationName: "ResetEnabledBaseline", })); @@ -2150,6 +2176,7 @@ export type GetLandingZoneOperationError = | ResourceNotFoundException | ThrottlingException | ValidationException + | UnauthorizedException | CommonErrors; /** * Returns the status of the specified landing zone operation. Details for an operation are available for 90 days. @@ -2168,6 +2195,7 @@ export const getLandingZoneOperation: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + UnauthorizedException, ], operationName: "GetLandingZoneOperation", })); @@ -2176,6 +2204,7 @@ export type ListLandingZoneOperationsError = | InternalServerException | ThrottlingException | ValidationException + | UnauthorizedException | CommonErrors; /** * Lists all landing zone operations from the past 90 days. Results are sorted by time, with the most recent operation first. @@ -2208,6 +2237,7 @@ export const listLandingZoneOperations: API.OperationMethod< InternalServerException, ThrottlingException, ValidationException, + UnauthorizedException, ], operationName: "ListLandingZoneOperations", pagination: { @@ -2223,6 +2253,7 @@ export type CreateLandingZoneError = | InternalServerException | ThrottlingException | ValidationException + | UnauthorizedException | CommonErrors; /** * Creates a new landing zone. This API call starts an asynchronous operation that creates and configures a landing zone, based on the parameters specified in the manifest JSON file. @@ -2241,6 +2272,7 @@ export const createLandingZone: API.OperationMethod< InternalServerException, ThrottlingException, ValidationException, + UnauthorizedException, ], operationName: "CreateLandingZone", })); @@ -2250,6 +2282,7 @@ export type GetLandingZoneError = | ResourceNotFoundException | ThrottlingException | ValidationException + | UnauthorizedException | CommonErrors; /** * Returns details about the landing zone. Displays a message in case of error. @@ -2268,6 +2301,7 @@ export const getLandingZone: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + UnauthorizedException, ], operationName: "GetLandingZone", })); @@ -2278,6 +2312,7 @@ export type UpdateLandingZoneError = | ResourceNotFoundException | ThrottlingException | ValidationException + | UnauthorizedException | CommonErrors; /** * This API call updates the landing zone. It starts an asynchronous operation that updates the landing zone based on the new landing zone version, or on the changed parameters specified in the updated manifest file. @@ -2297,6 +2332,7 @@ export const updateLandingZone: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + UnauthorizedException, ], operationName: "UpdateLandingZone", })); @@ -2307,6 +2343,7 @@ export type DeleteLandingZoneError = | ResourceNotFoundException | ThrottlingException | ValidationException + | UnauthorizedException | CommonErrors; /** * Decommissions a landing zone. This API call starts an asynchronous operation that deletes Amazon Web Services Control Tower resources deployed in accounts managed by Amazon Web Services Control Tower. @@ -2328,6 +2365,7 @@ export const deleteLandingZone: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + UnauthorizedException, ], operationName: "DeleteLandingZone", })); @@ -2336,6 +2374,7 @@ export type ListLandingZonesError = | InternalServerException | ThrottlingException | ValidationException + | UnauthorizedException | CommonErrors; /** * Returns the landing zone ARN for the landing zone deployed in your managed account. This API also creates an ARN for existing accounts that do not yet have a landing zone ARN. @@ -2370,6 +2409,7 @@ export const listLandingZones: API.OperationMethod< InternalServerException, ThrottlingException, ValidationException, + UnauthorizedException, ], operationName: "ListLandingZones", pagination: { @@ -2386,6 +2426,7 @@ export type ResetLandingZoneError = | ResourceNotFoundException | ThrottlingException | ValidationException + | UnauthorizedException | CommonErrors; /** * This API call resets a landing zone. It starts an asynchronous operation that resets the landing zone to the parameters specified in the original configuration, which you specified in the manifest file. Nothing in the manifest file's original landing zone configuration is changed during the reset process, by default. This API is not the same as a rollback of a landing zone version, which is not a supported operation. @@ -2405,6 +2446,7 @@ export const resetLandingZone: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + UnauthorizedException, ], operationName: "ResetLandingZone", })); @@ -2412,6 +2454,7 @@ export type ListTagsForResourceError = | InternalServerException | ResourceNotFoundException | ValidationException + | BadRequestException | CommonErrors; /** * Returns a list of tags associated with the resource. For usage examples, see the *Controls Reference Guide* . @@ -2428,6 +2471,7 @@ export const listTagsForResource: API.OperationMethod< InternalServerException, ResourceNotFoundException, ValidationException, + BadRequestException, ], operationName: "ListTagsForResource", })); @@ -2435,6 +2479,7 @@ export type TagResourceError = | InternalServerException | ResourceNotFoundException | ValidationException + | BadRequestException | CommonErrors; /** * Applies tags to a resource. For usage examples, see the *Controls Reference Guide* . @@ -2451,6 +2496,7 @@ export const tagResource: API.OperationMethod< InternalServerException, ResourceNotFoundException, ValidationException, + BadRequestException, ], operationName: "TagResource", })); @@ -2458,6 +2504,7 @@ export type UntagResourceError = | InternalServerException | ResourceNotFoundException | ValidationException + | BadRequestException | CommonErrors; /** * Removes tags from a resource. For usage examples, see the *Controls Reference Guide* . @@ -2474,6 +2521,7 @@ export const untagResource: API.OperationMethod< InternalServerException, ResourceNotFoundException, ValidationException, + BadRequestException, ], operationName: "UntagResource", })); diff --git a/packages/aws/src/services/cost-and-usage-report-service.ts b/packages/aws/src/services/cost-and-usage-report-service.ts index 97993cce96..60ff8d6009 100644 --- a/packages/aws/src/services/cost-and-usage-report-service.ts +++ b/packages/aws/src/services/cost-and-usage-report-service.ts @@ -369,6 +369,14 @@ export class ResourceNotFoundException extends S.TaggedErrorClass()( + "ReportBucketNotVerified", + { Message: S.optional(S.String) }, + T.SyntheticError({ + from: "ValidationException", + message: { matches: "[Bb]ucket" }, + }), +).pipe(C.withRetryableError) {} export class DuplicateReportNameException extends S.TaggedErrorClass()( "DuplicateReportNameException", { Message: S.optional(S.String) }, @@ -461,6 +469,7 @@ export const listTagsForResource: API.OperationMethod< export type ModifyReportDefinitionError = | InternalErrorException | ValidationException + | ReportBucketNotVerified | CommonErrors; /** * Allows you to programmatically update your report preferences. @@ -473,7 +482,11 @@ export const modifyReportDefinition: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyReportDefinitionRequest, output: ModifyReportDefinitionResponse, - errors: [InternalErrorException, ValidationException], + errors: [ + InternalErrorException, + ValidationException, + ReportBucketNotVerified, + ], operationName: "ModifyReportDefinition", })); export type PutReportDefinitionError = @@ -482,6 +495,7 @@ export type PutReportDefinitionError = | ReportLimitReachedException | ResourceNotFoundException | ValidationException + | ReportBucketNotVerified | CommonErrors; /** * Creates a new report using the description that you provide. @@ -500,6 +514,7 @@ export const putReportDefinition: API.OperationMethod< ReportLimitReachedException, ResourceNotFoundException, ValidationException, + ReportBucketNotVerified, ], operationName: "PutReportDefinition", })); diff --git a/packages/aws/src/services/cost-explorer.ts b/packages/aws/src/services/cost-explorer.ts index 3be0821221..ee06e96787 100644 --- a/packages/aws/src/services/cost-explorer.ts +++ b/packages/aws/src/services/cost-explorer.ts @@ -3955,21 +3955,41 @@ export class LimitExceededException extends S.TaggedErrorClass()( + "AnomalyMonitorAlreadyExists", + {}, + T.SyntheticError({ + from: "ValidationException", + message: { includes: "same monitor name as an existing monitor" }, + }), +).pipe(C.withAlreadyExistsError, C.withConflictError) {} export class UnknownMonitorException extends S.TaggedErrorClass()( "UnknownMonitorException", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} +export class AnomalySubscriptionAlreadyExists extends S.TaggedErrorClass()( + "AnomalySubscriptionAlreadyExists", + {}, + T.SyntheticError({ + from: "ValidationException", + message: { includes: "same subscription name as an existing subscription" }, + }), +).pipe(C.withAlreadyExistsError, C.withConflictError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", { Message: S.optional(S.String) }, + T.HttpError(402), ).pipe(C.withQuotaError) {} export class UnknownSubscriptionException extends S.TaggedErrorClass()( "UnknownSubscriptionException", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { Message: S.optional(S.String), ResourceName: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class InvalidNextTokenException extends S.TaggedErrorClass()( "InvalidNextTokenException", @@ -3982,6 +4002,7 @@ export class DataUnavailableException extends S.TaggedErrorClass()( "AnalysisNotFoundException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class BillExpirationException extends S.TaggedErrorClass()( "BillExpirationException", @@ -3995,6 +4016,14 @@ export class RequestChangedException extends S.TaggedErrorClass()( + "RightsizingRecommendationNotEnabled", + {}, + T.SyntheticError({ + from: "AccessDeniedException", + message: { includes: "opt-in only feature" }, + }), +) {} export class UnresolvableUsageUnitException extends S.TaggedErrorClass()( "UnresolvableUsageUnitException", { Message: S.optional(S.String) }, @@ -4002,18 +4031,24 @@ export class UnresolvableUsageUnitException extends S.TaggedErrorClass()( "GenerationExistsException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class BackfillLimitExceededException extends S.TaggedErrorClass()( "BackfillLimitExceededException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyTagsException extends S.TaggedErrorClass()( "TooManyTagsException", { Message: S.optional(S.String), ResourceName: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} //# Operations -export type CreateAnomalyMonitorError = LimitExceededException | CommonErrors; +export type CreateAnomalyMonitorError = + | LimitExceededException + | AnomalyMonitorAlreadyExists + | CommonErrors; /** * Creates a new cost anomaly detection monitor with the requested type and monitor * specification. @@ -4026,12 +4061,13 @@ export const createAnomalyMonitor: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateAnomalyMonitorRequest, output: CreateAnomalyMonitorResponse, - errors: [LimitExceededException], + errors: [LimitExceededException, AnomalyMonitorAlreadyExists], operationName: "CreateAnomalyMonitor", })); export type CreateAnomalySubscriptionError = | LimitExceededException | UnknownMonitorException + | AnomalySubscriptionAlreadyExists | CommonErrors; /** * Adds an alert subscription to a cost anomaly detection monitor. You can use each @@ -4046,7 +4082,11 @@ export const createAnomalySubscription: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateAnomalySubscriptionRequest, output: CreateAnomalySubscriptionResponse, - errors: [LimitExceededException, UnknownMonitorException], + errors: [ + LimitExceededException, + UnknownMonitorException, + AnomalySubscriptionAlreadyExists, + ], operationName: "CreateAnomalySubscription", })); export type CreateCostCategoryDefinitionError = @@ -4739,6 +4779,7 @@ export const getReservationUtilization: API.OperationMethod< export type GetRightsizingRecommendationError = | InvalidNextTokenException | LimitExceededException + | RightsizingRecommendationNotEnabled | CommonErrors; /** * Creates recommendations that help you save cost by identifying idle and underutilized @@ -4771,7 +4812,11 @@ export const getRightsizingRecommendation: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: GetRightsizingRecommendationRequest, output: GetRightsizingRecommendationResponse, - errors: [InvalidNextTokenException, LimitExceededException], + errors: [ + InvalidNextTokenException, + LimitExceededException, + RightsizingRecommendationNotEnabled, + ], operationName: "GetRightsizingRecommendation", pagination: { inputToken: "NextPageToken", diff --git a/packages/aws/src/services/databrew.ts b/packages/aws/src/services/databrew.ts index ed76c42929..a1e334a791 100644 --- a/packages/aws/src/services/databrew.ts +++ b/packages/aws/src/services/databrew.ts @@ -2707,6 +2707,10 @@ export class ValidationException extends S.TaggedErrorClass "ValidationException", { Message: S.optional(S.String) }, ).pipe(C.withBadRequestError) {} +export class TooManyRequestsException extends S.TaggedErrorClass()( + "TooManyRequestsException", + {}, +).pipe(C.withThrottlingError, C.withRetryableError) {} export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { Message: S.optional(S.String) }, @@ -2715,6 +2719,14 @@ export class ServiceQuotaExceededException extends S.TaggedErrorClass()( + "DataBrewRoleNotAssumable", + { Message: S.optional(S.String) }, + T.SyntheticError({ + from: "ValidationException", + message: { includes: "is not a trusted entity for the data access role" }, + }), +).pipe(C.withBadRequestError, C.withRetryableError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { Message: S.optional(S.String) }, @@ -2725,6 +2737,7 @@ export type BatchDeleteRecipeVersionError = | ConflictException | ResourceNotFoundException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Deletes one or more versions of a recipe at a time. @@ -2765,7 +2778,12 @@ export const batchDeleteRecipeVersion: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: BatchDeleteRecipeVersionRequest, output: BatchDeleteRecipeVersionResponse, - errors: [ConflictException, ResourceNotFoundException, ValidationException], + errors: [ + ConflictException, + ResourceNotFoundException, + ValidationException, + TooManyRequestsException, + ], operationName: "BatchDeleteRecipeVersion", })); export type CreateDatasetError = @@ -2773,6 +2791,7 @@ export type CreateDatasetError = | ConflictException | ServiceQuotaExceededException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Creates a new DataBrew dataset. @@ -2790,6 +2809,7 @@ export const createDataset: API.OperationMethod< ConflictException, ServiceQuotaExceededException, ValidationException, + TooManyRequestsException, ], operationName: "CreateDataset", })); @@ -2799,6 +2819,8 @@ export type CreateProfileJobError = | ResourceNotFoundException | ServiceQuotaExceededException | ValidationException + | TooManyRequestsException + | DataBrewRoleNotAssumable | CommonErrors; /** * Creates a new job to analyze a dataset and create its data profile. @@ -2817,6 +2839,8 @@ export const createProfileJob: API.OperationMethod< ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, + TooManyRequestsException, + DataBrewRoleNotAssumable, ], operationName: "CreateProfileJob", })); @@ -2825,6 +2849,8 @@ export type CreateProjectError = | InternalServerException | ServiceQuotaExceededException | ValidationException + | TooManyRequestsException + | DataBrewRoleNotAssumable | CommonErrors; /** * Creates a new DataBrew project. @@ -2842,6 +2868,8 @@ export const createProject: API.OperationMethod< InternalServerException, ServiceQuotaExceededException, ValidationException, + TooManyRequestsException, + DataBrewRoleNotAssumable, ], operationName: "CreateProject", })); @@ -2849,6 +2877,7 @@ export type CreateRecipeError = | ConflictException | ServiceQuotaExceededException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Creates a new DataBrew recipe. @@ -2865,6 +2894,7 @@ export const createRecipe: API.OperationMethod< ConflictException, ServiceQuotaExceededException, ValidationException, + TooManyRequestsException, ], operationName: "CreateRecipe", })); @@ -2874,6 +2904,8 @@ export type CreateRecipeJobError = | ResourceNotFoundException | ServiceQuotaExceededException | ValidationException + | TooManyRequestsException + | DataBrewRoleNotAssumable | CommonErrors; /** * Creates a new job to transform input data, using steps defined in an existing Glue DataBrew recipe @@ -2892,6 +2924,8 @@ export const createRecipeJob: API.OperationMethod< ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, + TooManyRequestsException, + DataBrewRoleNotAssumable, ], operationName: "CreateRecipeJob", })); @@ -2899,6 +2933,7 @@ export type CreateRulesetError = | ConflictException | ServiceQuotaExceededException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Creates a new ruleset that can be used in a profile job to validate @@ -2916,6 +2951,7 @@ export const createRuleset: API.OperationMethod< ConflictException, ServiceQuotaExceededException, ValidationException, + TooManyRequestsException, ], operationName: "CreateRuleset", })); @@ -2923,6 +2959,7 @@ export type CreateScheduleError = | ConflictException | ServiceQuotaExceededException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Creates a new schedule for one or more DataBrew jobs. Jobs can be run at a specific @@ -2940,6 +2977,7 @@ export const createSchedule: API.OperationMethod< ConflictException, ServiceQuotaExceededException, ValidationException, + TooManyRequestsException, ], operationName: "CreateSchedule", })); @@ -2947,6 +2985,7 @@ export type DeleteDatasetError = | ConflictException | ResourceNotFoundException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Deletes a dataset from DataBrew. @@ -2959,13 +2998,19 @@ export const deleteDataset: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteDatasetRequest, output: DeleteDatasetResponse, - errors: [ConflictException, ResourceNotFoundException, ValidationException], + errors: [ + ConflictException, + ResourceNotFoundException, + ValidationException, + TooManyRequestsException, + ], operationName: "DeleteDataset", })); export type DeleteJobError = | ConflictException | ResourceNotFoundException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Deletes the specified DataBrew job. @@ -2978,13 +3023,19 @@ export const deleteJob: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteJobRequest, output: DeleteJobResponse, - errors: [ConflictException, ResourceNotFoundException, ValidationException], + errors: [ + ConflictException, + ResourceNotFoundException, + ValidationException, + TooManyRequestsException, + ], operationName: "DeleteJob", })); export type DeleteProjectError = | ConflictException | ResourceNotFoundException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Deletes an existing DataBrew project. @@ -2997,13 +3048,19 @@ export const deleteProject: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteProjectRequest, output: DeleteProjectResponse, - errors: [ConflictException, ResourceNotFoundException, ValidationException], + errors: [ + ConflictException, + ResourceNotFoundException, + ValidationException, + TooManyRequestsException, + ], operationName: "DeleteProject", })); export type DeleteRecipeVersionError = | ConflictException | ResourceNotFoundException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Deletes a single version of a DataBrew recipe. @@ -3016,13 +3073,19 @@ export const deleteRecipeVersion: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteRecipeVersionRequest, output: DeleteRecipeVersionResponse, - errors: [ConflictException, ResourceNotFoundException, ValidationException], + errors: [ + ConflictException, + ResourceNotFoundException, + ValidationException, + TooManyRequestsException, + ], operationName: "DeleteRecipeVersion", })); export type DeleteRulesetError = | ConflictException | ResourceNotFoundException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Deletes a ruleset. @@ -3035,12 +3098,18 @@ export const deleteRuleset: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteRulesetRequest, output: DeleteRulesetResponse, - errors: [ConflictException, ResourceNotFoundException, ValidationException], + errors: [ + ConflictException, + ResourceNotFoundException, + ValidationException, + TooManyRequestsException, + ], operationName: "DeleteRuleset", })); export type DeleteScheduleError = | ResourceNotFoundException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Deletes the specified DataBrew schedule. @@ -3053,12 +3122,17 @@ export const deleteSchedule: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteScheduleRequest, output: DeleteScheduleResponse, - errors: [ResourceNotFoundException, ValidationException], + errors: [ + ResourceNotFoundException, + ValidationException, + TooManyRequestsException, + ], operationName: "DeleteSchedule", })); export type DescribeDatasetError = | ResourceNotFoundException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Returns the definition of a specific DataBrew dataset. @@ -3071,12 +3145,17 @@ export const describeDataset: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeDatasetRequest, output: DescribeDatasetResponse, - errors: [ResourceNotFoundException, ValidationException], + errors: [ + ResourceNotFoundException, + ValidationException, + TooManyRequestsException, + ], operationName: "DescribeDataset", })); export type DescribeJobError = | ResourceNotFoundException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Returns the definition of a specific DataBrew job. @@ -3089,12 +3168,17 @@ export const describeJob: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeJobRequest, output: DescribeJobResponse, - errors: [ResourceNotFoundException, ValidationException], + errors: [ + ResourceNotFoundException, + ValidationException, + TooManyRequestsException, + ], operationName: "DescribeJob", })); export type DescribeJobRunError = | ResourceNotFoundException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Represents one run of a DataBrew job. @@ -3107,12 +3191,17 @@ export const describeJobRun: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeJobRunRequest, output: DescribeJobRunResponse, - errors: [ResourceNotFoundException, ValidationException], + errors: [ + ResourceNotFoundException, + ValidationException, + TooManyRequestsException, + ], operationName: "DescribeJobRun", })); export type DescribeProjectError = | ResourceNotFoundException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Returns the definition of a specific DataBrew project. @@ -3125,12 +3214,17 @@ export const describeProject: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeProjectRequest, output: DescribeProjectResponse, - errors: [ResourceNotFoundException, ValidationException], + errors: [ + ResourceNotFoundException, + ValidationException, + TooManyRequestsException, + ], operationName: "DescribeProject", })); export type DescribeRecipeError = | ResourceNotFoundException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Returns the definition of a specific DataBrew recipe corresponding to a particular @@ -3144,12 +3238,17 @@ export const describeRecipe: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeRecipeRequest, output: DescribeRecipeResponse, - errors: [ResourceNotFoundException, ValidationException], + errors: [ + ResourceNotFoundException, + ValidationException, + TooManyRequestsException, + ], operationName: "DescribeRecipe", })); export type DescribeRulesetError = | ResourceNotFoundException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Retrieves detailed information about the ruleset. @@ -3162,12 +3261,17 @@ export const describeRuleset: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeRulesetRequest, output: DescribeRulesetResponse, - errors: [ResourceNotFoundException, ValidationException], + errors: [ + ResourceNotFoundException, + ValidationException, + TooManyRequestsException, + ], operationName: "DescribeRuleset", })); export type DescribeScheduleError = | ResourceNotFoundException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Returns the definition of a specific DataBrew schedule. @@ -3180,10 +3284,17 @@ export const describeSchedule: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeScheduleRequest, output: DescribeScheduleResponse, - errors: [ResourceNotFoundException, ValidationException], + errors: [ + ResourceNotFoundException, + ValidationException, + TooManyRequestsException, + ], operationName: "DescribeSchedule", })); -export type ListDatasetsError = ValidationException | CommonErrors; +export type ListDatasetsError = + | ValidationException + | TooManyRequestsException + | CommonErrors; /** * Lists all of the DataBrew datasets. */ @@ -3210,7 +3321,7 @@ export const listDatasets: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: ListDatasetsRequest, output: ListDatasetsResponse, - errors: [ValidationException], + errors: [ValidationException, TooManyRequestsException], operationName: "ListDatasets", pagination: { inputToken: "NextToken", @@ -3222,6 +3333,7 @@ export const listDatasets: API.OperationMethod< export type ListJobRunsError = | ResourceNotFoundException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Lists all of the previous runs of a particular DataBrew job. @@ -3249,7 +3361,11 @@ export const listJobRuns: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: ListJobRunsRequest, output: ListJobRunsResponse, - errors: [ResourceNotFoundException, ValidationException], + errors: [ + ResourceNotFoundException, + ValidationException, + TooManyRequestsException, + ], operationName: "ListJobRuns", pagination: { inputToken: "NextToken", @@ -3258,7 +3374,10 @@ export const listJobRuns: API.OperationMethod< pageSize: "MaxResults", } as const, })); -export type ListJobsError = ValidationException | CommonErrors; +export type ListJobsError = + | ValidationException + | TooManyRequestsException + | CommonErrors; /** * Lists all of the DataBrew jobs that are defined. */ @@ -3285,7 +3404,7 @@ export const listJobs: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: ListJobsRequest, output: ListJobsResponse, - errors: [ValidationException], + errors: [ValidationException, TooManyRequestsException], operationName: "ListJobs", pagination: { inputToken: "NextToken", @@ -3294,7 +3413,10 @@ export const listJobs: API.OperationMethod< pageSize: "MaxResults", } as const, })); -export type ListProjectsError = ValidationException | CommonErrors; +export type ListProjectsError = + | ValidationException + | TooManyRequestsException + | CommonErrors; /** * Lists all of the DataBrew projects that are defined. */ @@ -3321,7 +3443,7 @@ export const listProjects: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: ListProjectsRequest, output: ListProjectsResponse, - errors: [ValidationException], + errors: [ValidationException, TooManyRequestsException], operationName: "ListProjects", pagination: { inputToken: "NextToken", @@ -3330,7 +3452,10 @@ export const listProjects: API.OperationMethod< pageSize: "MaxResults", } as const, })); -export type ListRecipesError = ValidationException | CommonErrors; +export type ListRecipesError = + | ValidationException + | TooManyRequestsException + | CommonErrors; /** * Lists all of the DataBrew recipes that are defined. */ @@ -3357,7 +3482,7 @@ export const listRecipes: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: ListRecipesRequest, output: ListRecipesResponse, - errors: [ValidationException], + errors: [ValidationException, TooManyRequestsException], operationName: "ListRecipes", pagination: { inputToken: "NextToken", @@ -3366,7 +3491,11 @@ export const listRecipes: API.OperationMethod< pageSize: "MaxResults", } as const, })); -export type ListRecipeVersionsError = ValidationException | CommonErrors; +export type ListRecipeVersionsError = + | ValidationException + | TooManyRequestsException + | ResourceNotFoundException + | CommonErrors; /** * Lists the versions of a particular DataBrew recipe, except for * `LATEST_WORKING`. @@ -3394,7 +3523,11 @@ export const listRecipeVersions: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: ListRecipeVersionsRequest, output: ListRecipeVersionsResponse, - errors: [ValidationException], + errors: [ + ValidationException, + TooManyRequestsException, + ResourceNotFoundException, + ], operationName: "ListRecipeVersions", pagination: { inputToken: "NextToken", @@ -3406,6 +3539,7 @@ export const listRecipeVersions: API.OperationMethod< export type ListRulesetsError = | ResourceNotFoundException | ValidationException + | TooManyRequestsException | CommonErrors; /** * List all rulesets available in the current account or rulesets associated @@ -3434,7 +3568,11 @@ export const listRulesets: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: ListRulesetsRequest, output: ListRulesetsResponse, - errors: [ResourceNotFoundException, ValidationException], + errors: [ + ResourceNotFoundException, + ValidationException, + TooManyRequestsException, + ], operationName: "ListRulesets", pagination: { inputToken: "NextToken", @@ -3443,7 +3581,10 @@ export const listRulesets: API.OperationMethod< pageSize: "MaxResults", } as const, })); -export type ListSchedulesError = ValidationException | CommonErrors; +export type ListSchedulesError = + | ValidationException + | TooManyRequestsException + | CommonErrors; /** * Lists the DataBrew schedules that are defined. */ @@ -3470,7 +3611,7 @@ export const listSchedules: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: ListSchedulesRequest, output: ListSchedulesResponse, - errors: [ValidationException], + errors: [ValidationException, TooManyRequestsException], operationName: "ListSchedules", pagination: { inputToken: "NextToken", @@ -3483,6 +3624,7 @@ export type ListTagsForResourceError = | InternalServerException | ResourceNotFoundException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Lists all the tags for a DataBrew resource. @@ -3499,6 +3641,7 @@ export const listTagsForResource: API.OperationMethod< InternalServerException, ResourceNotFoundException, ValidationException, + TooManyRequestsException, ], operationName: "ListTagsForResource", })); @@ -3506,6 +3649,7 @@ export type PublishRecipeError = | ResourceNotFoundException | ServiceQuotaExceededException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Publishes a new version of a DataBrew recipe. @@ -3522,6 +3666,7 @@ export const publishRecipe: API.OperationMethod< ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, + TooManyRequestsException, ], operationName: "PublishRecipe", })); @@ -3550,6 +3695,7 @@ export type StartJobRunError = | ResourceNotFoundException | ServiceQuotaExceededException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Runs a DataBrew job. @@ -3567,6 +3713,7 @@ export const startJobRun: API.OperationMethod< ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, + TooManyRequestsException, ], operationName: "StartJobRun", })); @@ -3599,6 +3746,7 @@ export const startProjectSession: API.OperationMethod< export type StopJobRunError = | ResourceNotFoundException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Stops a particular run of a job. @@ -3611,13 +3759,18 @@ export const stopJobRun: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: StopJobRunRequest, output: StopJobRunResponse, - errors: [ResourceNotFoundException, ValidationException], + errors: [ + ResourceNotFoundException, + ValidationException, + TooManyRequestsException, + ], operationName: "StopJobRun", })); export type TagResourceError = | InternalServerException | ResourceNotFoundException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Adds metadata tags to a DataBrew resource, such as a dataset, project, recipe, job, or @@ -3635,6 +3788,7 @@ export const tagResource: API.OperationMethod< InternalServerException, ResourceNotFoundException, ValidationException, + TooManyRequestsException, ], operationName: "TagResource", })); @@ -3642,6 +3796,7 @@ export type UntagResourceError = | InternalServerException | ResourceNotFoundException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Removes metadata tags from a DataBrew resource. @@ -3658,6 +3813,7 @@ export const untagResource: API.OperationMethod< InternalServerException, ResourceNotFoundException, ValidationException, + TooManyRequestsException, ], operationName: "UntagResource", })); @@ -3665,6 +3821,7 @@ export type UpdateDatasetError = | AccessDeniedException | ResourceNotFoundException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Modifies the definition of an existing DataBrew dataset. @@ -3681,6 +3838,7 @@ export const updateDataset: API.OperationMethod< AccessDeniedException, ResourceNotFoundException, ValidationException, + TooManyRequestsException, ], operationName: "UpdateDataset", })); @@ -3688,6 +3846,8 @@ export type UpdateProfileJobError = | AccessDeniedException | ResourceNotFoundException | ValidationException + | TooManyRequestsException + | DataBrewRoleNotAssumable | CommonErrors; /** * Modifies the definition of an existing profile job. @@ -3704,12 +3864,16 @@ export const updateProfileJob: API.OperationMethod< AccessDeniedException, ResourceNotFoundException, ValidationException, + TooManyRequestsException, + DataBrewRoleNotAssumable, ], operationName: "UpdateProfileJob", })); export type UpdateProjectError = | ResourceNotFoundException | ValidationException + | TooManyRequestsException + | DataBrewRoleNotAssumable | CommonErrors; /** * Modifies the definition of an existing DataBrew project. @@ -3722,12 +3886,18 @@ export const updateProject: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: UpdateProjectRequest, output: UpdateProjectResponse, - errors: [ResourceNotFoundException, ValidationException], + errors: [ + ResourceNotFoundException, + ValidationException, + TooManyRequestsException, + DataBrewRoleNotAssumable, + ], operationName: "UpdateProject", })); export type UpdateRecipeError = | ResourceNotFoundException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Modifies the definition of the `LATEST_WORKING` version of a DataBrew @@ -3741,13 +3911,19 @@ export const updateRecipe: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: UpdateRecipeRequest, output: UpdateRecipeResponse, - errors: [ResourceNotFoundException, ValidationException], + errors: [ + ResourceNotFoundException, + ValidationException, + TooManyRequestsException, + ], operationName: "UpdateRecipe", })); export type UpdateRecipeJobError = | AccessDeniedException | ResourceNotFoundException | ValidationException + | TooManyRequestsException + | DataBrewRoleNotAssumable | CommonErrors; /** * Modifies the definition of an existing DataBrew recipe job. @@ -3764,12 +3940,15 @@ export const updateRecipeJob: API.OperationMethod< AccessDeniedException, ResourceNotFoundException, ValidationException, + TooManyRequestsException, + DataBrewRoleNotAssumable, ], operationName: "UpdateRecipeJob", })); export type UpdateRulesetError = | ResourceNotFoundException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Updates specified ruleset. @@ -3782,13 +3961,18 @@ export const updateRuleset: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: UpdateRulesetRequest, output: UpdateRulesetResponse, - errors: [ResourceNotFoundException, ValidationException], + errors: [ + ResourceNotFoundException, + ValidationException, + TooManyRequestsException, + ], operationName: "UpdateRuleset", })); export type UpdateScheduleError = | ResourceNotFoundException | ServiceQuotaExceededException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Modifies the definition of an existing DataBrew schedule. @@ -3805,6 +3989,7 @@ export const updateSchedule: API.OperationMethod< ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, + TooManyRequestsException, ], operationName: "UpdateSchedule", })); diff --git a/packages/aws/src/services/dataexchange.ts b/packages/aws/src/services/dataexchange.ts index 49ffab6281..2de691ee94 100644 --- a/packages/aws/src/services/dataexchange.ts +++ b/packages/aws/src/services/dataexchange.ts @@ -1,4 +1,5 @@ import * as HttpClient from "effect/unstable/http/HttpClient"; +import * as redacted from "effect/Redacted"; import * as S from "@distilled.cloud/core/schema"; import * as stream from "effect/Stream"; import * as API from "../client/api.ts"; @@ -7,6 +8,7 @@ import * as C from "../category.ts"; import type { Credentials } from "../credentials.ts"; import type { CommonErrors } from "../errors.ts"; import type { Region } from "../region.ts"; +import { SensitiveString } from "../sensitive.ts"; const svc = T.AwsApiService({ sdkId: "DataExchange", serviceShapeName: "DataExchange", @@ -621,7 +623,7 @@ export const ImportAssetsFromRedshiftDataSharesRequestDetails = export interface ImportAssetFromApiGatewayApiRequestDetails { ApiDescription?: string; ApiId: string; - ApiKey?: string; + ApiKey?: string | redacted.Redacted; ApiName: string; ApiSpecificationMd5Hash: string; DataSetId: string; @@ -634,7 +636,7 @@ export const ImportAssetFromApiGatewayApiRequestDetails = S.Struct({ ApiDescription: S.optional(S.String), ApiId: S.String, - ApiKey: S.optional(S.String), + ApiKey: S.optional(SensitiveString), ApiName: S.String, ApiSpecificationMd5Hash: S.String, DataSetId: S.String, @@ -919,7 +921,7 @@ export const ImportAssetsFromRedshiftDataSharesResponseDetails = export interface ImportAssetFromApiGatewayApiResponseDetails { ApiDescription?: string; ApiId: string; - ApiKey?: string; + ApiKey?: string | redacted.Redacted; ApiName: string; ApiSpecificationMd5Hash: string; ApiSpecificationUploadUrl: string; @@ -934,7 +936,7 @@ export const ImportAssetFromApiGatewayApiResponseDetails = S.Struct({ ApiDescription: S.optional(S.String), ApiId: S.String, - ApiKey: S.optional(S.String), + ApiKey: S.optional(SensitiveString), ApiName: S.String, ApiSpecificationMd5Hash: S.String, ApiSpecificationUploadUrl: S.String, @@ -1332,7 +1334,7 @@ export interface ApiGatewayApiAsset { ApiDescription?: string; ApiEndpoint?: string; ApiId?: string; - ApiKey?: string; + ApiKey?: string | redacted.Redacted; ApiName?: string; ApiSpecificationDownloadUrl?: string; ApiSpecificationDownloadUrlExpiresAt?: Date; @@ -1344,7 +1346,7 @@ export const ApiGatewayApiAsset = /*@__PURE__*/ S.suspend(() => ApiDescription: S.optional(S.String), ApiEndpoint: S.optional(S.String), ApiId: S.optional(S.String), - ApiKey: S.optional(S.String), + ApiKey: S.optional(SensitiveString), ApiName: S.optional(S.String), ApiSpecificationDownloadUrl: S.optional(S.String), ApiSpecificationDownloadUrlExpiresAt: S.optional( @@ -2887,6 +2889,7 @@ export const UpdateRevisionResponse = /*@__PURE__*/ S.suspend(() => export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { Message: S.String }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", @@ -2895,10 +2898,12 @@ export class ConflictException extends S.TaggedErrorClass()( ResourceId: S.optional(S.String), ResourceType: S.optional(S.String), }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { Message: S.String }, + T.HttpError(500), ).pipe(C.withServerError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", @@ -2907,14 +2912,17 @@ export class ResourceNotFoundException extends S.TaggedErrorClass()( "ThrottlingException", { Message: S.String }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", { Message: S.String, ExceptionCause: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ServiceLimitExceededException extends S.TaggedErrorClass()( "ServiceLimitExceededException", @@ -2923,6 +2931,7 @@ export class ServiceLimitExceededException extends S.TaggedErrorClass()( + "LocationRoleNotAssumable", + { + message: S.optional(S.String), + errorCode: S.optional(S.String), + datasyncErrorCode: S.optional(S.String), + }, + T.SyntheticError({ + from: "InvalidRequestException", + message: { includes: "Invalid IAM role" }, + }), +).pipe(C.withRetryableError) {} +export class LocationAccessTestFailed extends S.TaggedErrorClass()( + "LocationAccessTestFailed", + { + message: S.optional(S.String), + errorCode: S.optional(S.String), + datasyncErrorCode: S.optional(S.String), + }, + T.SyntheticError({ + from: "InvalidRequestException", + message: { includes: "location access test failed" }, + }), +).pipe(C.withRetryableError) {} +export class LocationNotFound extends S.TaggedErrorClass()( + "LocationNotFound", + { + message: S.optional(S.String), + errorCode: S.optional(S.String), + datasyncErrorCode: S.optional(S.String), + }, + T.SyntheticError({ + from: "InvalidRequestException", + message: { matches: "^Location .* is not found" }, + }), +).pipe(C.withNotFoundError) {} +export class TaskNotFound extends S.TaggedErrorClass()( + "TaskNotFound", + { + message: S.optional(S.String), + errorCode: S.optional(S.String), + datasyncErrorCode: S.optional(S.String), + }, + T.SyntheticError({ + from: "InvalidRequestException", + message: { matches: "^Task .* is not found" }, + }), +).pipe(C.withNotFoundError) {} //# Operations export type CancelTaskExecutionError = @@ -2693,6 +2742,8 @@ export const createLocationAzureBlob: API.OperationMethod< export type CreateLocationEfsError = | InternalException | InvalidRequestException + | LocationRoleNotAssumable + | LocationAccessTestFailed | CommonErrors; /** * Creates a transfer *location* for an Amazon EFS file system. @@ -2711,7 +2762,12 @@ export const createLocationEfs: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateLocationEfsRequest, output: CreateLocationEfsResponse, - errors: [InternalException, InvalidRequestException], + errors: [ + InternalException, + InvalidRequestException, + LocationRoleNotAssumable, + LocationAccessTestFailed, + ], operationName: "CreateLocationEfs", })); export type CreateLocationFsxLustreError = @@ -2884,6 +2940,8 @@ export const createLocationObjectStorage: API.OperationMethod< export type CreateLocationS3Error = | InternalException | InvalidRequestException + | LocationRoleNotAssumable + | LocationAccessTestFailed | CommonErrors; /** * Creates a transfer *location* for an Amazon S3 bucket. @@ -2908,7 +2966,12 @@ export const createLocationS3: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateLocationS3Request, output: CreateLocationS3Response, - errors: [InternalException, InvalidRequestException], + errors: [ + InternalException, + InvalidRequestException, + LocationRoleNotAssumable, + LocationAccessTestFailed, + ], operationName: "CreateLocationS3", })); export type CreateLocationSmbError = @@ -2987,6 +3050,7 @@ export const deleteAgent: API.OperationMethod< export type DeleteLocationError = | InternalException | InvalidRequestException + | LocationNotFound | CommonErrors; /** * Deletes a transfer location resource from DataSync. @@ -2999,12 +3063,13 @@ export const deleteLocation: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteLocationRequest, output: DeleteLocationResponse, - errors: [InternalException, InvalidRequestException], + errors: [InternalException, InvalidRequestException, LocationNotFound], operationName: "DeleteLocation", })); export type DeleteTaskError = | InternalException | InvalidRequestException + | TaskNotFound | CommonErrors; /** * Deletes a transfer task resource from DataSync. @@ -3017,7 +3082,7 @@ export const deleteTask: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteTaskRequest, output: DeleteTaskResponse, - errors: [InternalException, InvalidRequestException], + errors: [InternalException, InvalidRequestException, TaskNotFound], operationName: "DeleteTask", })); export type DescribeAgentError = @@ -3061,6 +3126,7 @@ export const describeLocationAzureBlob: API.OperationMethod< export type DescribeLocationEfsError = | InternalException | InvalidRequestException + | LocationNotFound | CommonErrors; /** * Provides details about how an DataSync transfer location for an Amazon EFS file system is configured. @@ -3073,7 +3139,7 @@ export const describeLocationEfs: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeLocationEfsRequest, output: DescribeLocationEfsResponse, - errors: [InternalException, InvalidRequestException], + errors: [InternalException, InvalidRequestException, LocationNotFound], operationName: "DescribeLocationEfs", })); export type DescribeLocationFsxLustreError = @@ -3214,6 +3280,7 @@ export const describeLocationObjectStorage: API.OperationMethod< export type DescribeLocationS3Error = | InternalException | InvalidRequestException + | LocationNotFound | CommonErrors; /** * Provides details about how an DataSync transfer location for an S3 bucket @@ -3227,7 +3294,7 @@ export const describeLocationS3: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeLocationS3Request, output: DescribeLocationS3Response, - errors: [InternalException, InvalidRequestException], + errors: [InternalException, InvalidRequestException, LocationNotFound], operationName: "DescribeLocationS3", })); export type DescribeLocationSmbError = @@ -3252,6 +3319,7 @@ export const describeLocationSmb: API.OperationMethod< export type DescribeTaskError = | InternalException | InvalidRequestException + | TaskNotFound | CommonErrors; /** * Provides information about a *task*, which defines where and how @@ -3265,7 +3333,7 @@ export const describeTask: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeTaskRequest, output: DescribeTaskResponse, - errors: [InternalException, InvalidRequestException], + errors: [InternalException, InvalidRequestException, TaskNotFound], operationName: "DescribeTask", })); export type DescribeTaskExecutionError = @@ -3505,6 +3573,7 @@ export const listTasks: API.OperationMethod< export type StartTaskExecutionError = | InternalException | InvalidRequestException + | LocationAccessTestFailed | CommonErrors; /** * Starts an DataSync transfer task. For each task, you can only run one task @@ -3525,7 +3594,11 @@ export const startTaskExecution: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: StartTaskExecutionRequest, output: StartTaskExecutionResponse, - errors: [InternalException, InvalidRequestException], + errors: [ + InternalException, + InvalidRequestException, + LocationAccessTestFailed, + ], operationName: "StartTaskExecution", })); export type TagResourceError = @@ -3837,6 +3910,7 @@ export const updateLocationSmb: API.OperationMethod< export type UpdateTaskError = | InternalException | InvalidRequestException + | TaskNotFound | CommonErrors; /** * Updates the configuration of a *task*, which defines where and how @@ -3850,7 +3924,7 @@ export const updateTask: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: UpdateTaskRequest, output: UpdateTaskResponse, - errors: [InternalException, InvalidRequestException], + errors: [InternalException, InvalidRequestException, TaskNotFound], operationName: "UpdateTask", })); export type UpdateTaskExecutionError = diff --git a/packages/aws/src/services/datazone.ts b/packages/aws/src/services/datazone.ts index d78e03646d..1b4546b9c2 100644 --- a/packages/aws/src/services/datazone.ts +++ b/packages/aws/src/services/datazone.ts @@ -333,30 +333,29 @@ export interface AcceptSubscriptionRequestInput { assetScopes?: AcceptedAssetScope[]; assetPermissions?: AssetPermission[]; } -export const AcceptSubscriptionRequestInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - identifier: S.String.pipe(T.HttpLabel("identifier")), - decisionComment: S.optional(SensitiveString), - assetScopes: S.optional(AcceptedAssetScopes), - assetPermissions: S.optional(AssetPermissions), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/v2/domains/{domainIdentifier}/subscription-requests/{identifier}/accept", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const AcceptSubscriptionRequestInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + identifier: S.String.pipe(T.HttpLabel("identifier")), + decisionComment: S.optional(SensitiveString), + assetScopes: S.optional(AcceptedAssetScopes), + assetPermissions: S.optional(AssetPermissions), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/v2/domains/{domainIdentifier}/subscription-requests/{identifier}/accept", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "AcceptSubscriptionRequestInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "AcceptSubscriptionRequestInput", +}) as any as S.Schema; export type SubscriptionRequestStatus = | "PENDING" | "ACCEPTED" @@ -510,19 +509,19 @@ export interface AssetInDataProductListingItem { entityRevision?: string; entityType?: string; } -export const AssetInDataProductListingItem = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - entityId: S.optional(S.String), - entityRevision: S.optional(S.String), - entityType: S.optional(S.String), - }), - ).annotate({ - identifier: "AssetInDataProductListingItem", - }) as any as S.Schema; +export const AssetInDataProductListingItem = /*@__PURE__*/ S.suspend(() => + S.Struct({ + entityId: S.optional(S.String), + entityRevision: S.optional(S.String), + entityType: S.optional(S.String), + }), +).annotate({ + identifier: "AssetInDataProductListingItem", +}) as any as S.Schema; export type AssetInDataProductListingItems = AssetInDataProductListingItem[]; -export const AssetInDataProductListingItems = - /*@__PURE__*/ S.Array(AssetInDataProductListingItem); +export const AssetInDataProductListingItems = /*@__PURE__*/ S.Array( + AssetInDataProductListingItem, +); export interface SubscribedProductListing { entityId?: string; entityRevision?: string; @@ -606,27 +605,26 @@ export interface AcceptSubscriptionRequestOutput { existingSubscriptionId?: string; metadataForms?: FormOutput[]; } -export const AcceptSubscriptionRequestOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String, - createdBy: S.String, - updatedBy: S.optional(S.String), - domainId: S.String, - status: SubscriptionRequestStatus, - createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - updatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - requestReason: SensitiveString, - subscribedPrincipals: SubscribedPrincipals, - subscribedListings: SubscribedListings, - reviewerId: S.optional(S.String), - decisionComment: S.optional(SensitiveString), - existingSubscriptionId: S.optional(S.String), - metadataForms: S.optional(MetadataForms), - }), - ).annotate({ - identifier: "AcceptSubscriptionRequestOutput", - }) as any as S.Schema; +export const AcceptSubscriptionRequestOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + createdBy: S.String, + updatedBy: S.optional(S.String), + domainId: S.String, + status: SubscriptionRequestStatus, + createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + updatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + requestReason: SensitiveString, + subscribedPrincipals: SubscribedPrincipals, + subscribedListings: SubscribedListings, + reviewerId: S.optional(S.String), + decisionComment: S.optional(SensitiveString), + existingSubscriptionId: S.optional(S.String), + metadataForms: S.optional(MetadataForms), + }), +).annotate({ + identifier: "AcceptSubscriptionRequestOutput", +}) as any as S.Schema; export type DataZoneEntityType = "DOMAIN_UNIT" | (string & {}); export const DataZoneEntityType = /*@__PURE__*/ S.String; export interface OwnerUserProperties { @@ -758,16 +756,15 @@ export interface ProjectPolicyGrantPrincipal { projectIdentifier?: string; projectGrantFilter?: ProjectGrantFilter; } -export const ProjectPolicyGrantPrincipal = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - projectDesignation: ProjectDesignation, - projectIdentifier: S.optional(S.String), - projectGrantFilter: S.optional(ProjectGrantFilter), - }), - ).annotate({ - identifier: "ProjectPolicyGrantPrincipal", - }) as any as S.Schema; +export const ProjectPolicyGrantPrincipal = /*@__PURE__*/ S.suspend(() => + S.Struct({ + projectDesignation: ProjectDesignation, + projectIdentifier: S.optional(S.String), + projectGrantFilter: S.optional(ProjectGrantFilter), + }), +).annotate({ + identifier: "ProjectPolicyGrantPrincipal", +}) as any as S.Schema; export type DomainUnitDesignation = "OWNER" | (string & {}); export const DomainUnitDesignation = /*@__PURE__*/ S.String; export interface AllDomainUnitsGrantFilter {} @@ -787,16 +784,15 @@ export interface DomainUnitPolicyGrantPrincipal { domainUnitIdentifier?: string; domainUnitGrantFilter?: DomainUnitGrantFilter; } -export const DomainUnitPolicyGrantPrincipal = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainUnitDesignation: DomainUnitDesignation, - domainUnitIdentifier: S.optional(S.String), - domainUnitGrantFilter: S.optional(DomainUnitGrantFilter), - }), - ).annotate({ - identifier: "DomainUnitPolicyGrantPrincipal", - }) as any as S.Schema; +export const DomainUnitPolicyGrantPrincipal = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainUnitDesignation: DomainUnitDesignation, + domainUnitIdentifier: S.optional(S.String), + domainUnitGrantFilter: S.optional(DomainUnitGrantFilter), + }), +).annotate({ + identifier: "DomainUnitPolicyGrantPrincipal", +}) as any as S.Schema; export type PolicyGrantPrincipal = | { user: UserPolicyGrantPrincipal; @@ -831,12 +827,11 @@ export const PolicyGrantPrincipal = /*@__PURE__*/ S.Union([ export interface CreateDomainUnitPolicyGrantDetail { includeChildDomainUnits?: boolean; } -export const CreateDomainUnitPolicyGrantDetail = - /*@__PURE__*/ S.suspend(() => - S.Struct({ includeChildDomainUnits: S.optional(S.Boolean) }), - ).annotate({ - identifier: "CreateDomainUnitPolicyGrantDetail", - }) as any as S.Schema; +export const CreateDomainUnitPolicyGrantDetail = /*@__PURE__*/ S.suspend(() => + S.Struct({ includeChildDomainUnits: S.optional(S.Boolean) }), +).annotate({ + identifier: "CreateDomainUnitPolicyGrantDetail", +}) as any as S.Schema; export interface OverrideDomainUnitOwnersPolicyGrantDetail { includeChildDomainUnits?: boolean; } @@ -849,57 +844,51 @@ export const OverrideDomainUnitOwnersPolicyGrantDetail = export interface AddToProjectMemberPoolPolicyGrantDetail { includeChildDomainUnits?: boolean; } -export const AddToProjectMemberPoolPolicyGrantDetail = - /*@__PURE__*/ S.suspend(() => - S.Struct({ includeChildDomainUnits: S.optional(S.Boolean) }), - ).annotate({ - identifier: "AddToProjectMemberPoolPolicyGrantDetail", - }) as any as S.Schema; +export const AddToProjectMemberPoolPolicyGrantDetail = /*@__PURE__*/ S.suspend( + () => S.Struct({ includeChildDomainUnits: S.optional(S.Boolean) }), +).annotate({ + identifier: "AddToProjectMemberPoolPolicyGrantDetail", +}) as any as S.Schema; export interface OverrideProjectOwnersPolicyGrantDetail { includeChildDomainUnits?: boolean; } -export const OverrideProjectOwnersPolicyGrantDetail = - /*@__PURE__*/ S.suspend(() => - S.Struct({ includeChildDomainUnits: S.optional(S.Boolean) }), - ).annotate({ - identifier: "OverrideProjectOwnersPolicyGrantDetail", - }) as any as S.Schema; +export const OverrideProjectOwnersPolicyGrantDetail = /*@__PURE__*/ S.suspend( + () => S.Struct({ includeChildDomainUnits: S.optional(S.Boolean) }), +).annotate({ + identifier: "OverrideProjectOwnersPolicyGrantDetail", +}) as any as S.Schema; export interface CreateGlossaryPolicyGrantDetail { includeChildDomainUnits?: boolean; } -export const CreateGlossaryPolicyGrantDetail = - /*@__PURE__*/ S.suspend(() => - S.Struct({ includeChildDomainUnits: S.optional(S.Boolean) }), - ).annotate({ - identifier: "CreateGlossaryPolicyGrantDetail", - }) as any as S.Schema; +export const CreateGlossaryPolicyGrantDetail = /*@__PURE__*/ S.suspend(() => + S.Struct({ includeChildDomainUnits: S.optional(S.Boolean) }), +).annotate({ + identifier: "CreateGlossaryPolicyGrantDetail", +}) as any as S.Schema; export interface CreateFormTypePolicyGrantDetail { includeChildDomainUnits?: boolean; } -export const CreateFormTypePolicyGrantDetail = - /*@__PURE__*/ S.suspend(() => - S.Struct({ includeChildDomainUnits: S.optional(S.Boolean) }), - ).annotate({ - identifier: "CreateFormTypePolicyGrantDetail", - }) as any as S.Schema; +export const CreateFormTypePolicyGrantDetail = /*@__PURE__*/ S.suspend(() => + S.Struct({ includeChildDomainUnits: S.optional(S.Boolean) }), +).annotate({ + identifier: "CreateFormTypePolicyGrantDetail", +}) as any as S.Schema; export interface CreateAssetTypePolicyGrantDetail { includeChildDomainUnits?: boolean; } -export const CreateAssetTypePolicyGrantDetail = - /*@__PURE__*/ S.suspend(() => - S.Struct({ includeChildDomainUnits: S.optional(S.Boolean) }), - ).annotate({ - identifier: "CreateAssetTypePolicyGrantDetail", - }) as any as S.Schema; +export const CreateAssetTypePolicyGrantDetail = /*@__PURE__*/ S.suspend(() => + S.Struct({ includeChildDomainUnits: S.optional(S.Boolean) }), +).annotate({ + identifier: "CreateAssetTypePolicyGrantDetail", +}) as any as S.Schema; export interface CreateProjectPolicyGrantDetail { includeChildDomainUnits?: boolean; } -export const CreateProjectPolicyGrantDetail = - /*@__PURE__*/ S.suspend(() => - S.Struct({ includeChildDomainUnits: S.optional(S.Boolean) }), - ).annotate({ - identifier: "CreateProjectPolicyGrantDetail", - }) as any as S.Schema; +export const CreateProjectPolicyGrantDetail = /*@__PURE__*/ S.suspend(() => + S.Struct({ includeChildDomainUnits: S.optional(S.Boolean) }), +).annotate({ + identifier: "CreateProjectPolicyGrantDetail", +}) as any as S.Schema; export interface CreateEnvironmentProfilePolicyGrantDetail { domainUnitId?: string; } @@ -931,12 +920,11 @@ export const CreateProjectFromProjectProfilePolicyGrantDetail = export interface UseAssetTypePolicyGrantDetail { domainUnitId?: string; } -export const UseAssetTypePolicyGrantDetail = - /*@__PURE__*/ S.suspend(() => - S.Struct({ domainUnitId: S.optional(S.String) }), - ).annotate({ - identifier: "UseAssetTypePolicyGrantDetail", - }) as any as S.Schema; +export const UseAssetTypePolicyGrantDetail = /*@__PURE__*/ S.suspend(() => + S.Struct({ domainUnitId: S.optional(S.String) }), +).annotate({ + identifier: "UseAssetTypePolicyGrantDetail", +}) as any as S.Schema; export type PolicyGrantDetail = | { createDomainUnit: CreateDomainUnitPolicyGrantDetail; @@ -1232,35 +1220,33 @@ export interface AssociateEnvironmentRoleInput { environmentIdentifier: string; environmentRoleArn: string; } -export const AssociateEnvironmentRoleInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - environmentIdentifier: S.String.pipe( - T.HttpLabel("environmentIdentifier"), - ), - environmentRoleArn: S.String.pipe(T.HttpLabel("environmentRoleArn")), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/roles/{environmentRoleArn}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const AssociateEnvironmentRoleInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + environmentIdentifier: S.String.pipe(T.HttpLabel("environmentIdentifier")), + environmentRoleArn: S.String.pipe(T.HttpLabel("environmentRoleArn")), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/roles/{environmentRoleArn}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "AssociateEnvironmentRoleInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "AssociateEnvironmentRoleInput", +}) as any as S.Schema; export interface AssociateEnvironmentRoleOutput {} -export const AssociateEnvironmentRoleOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "AssociateEnvironmentRoleOutput", - }) as any as S.Schema; +export const AssociateEnvironmentRoleOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "AssociateEnvironmentRoleOutput", +}) as any as S.Schema; export type GovernedEntityType = "ASSET" | (string & {}); export const GovernedEntityType = /*@__PURE__*/ S.String; export type GovernedGlossaryTerms = string[]; @@ -1271,34 +1257,34 @@ export interface AssociateGovernedTermsInput { entityType: GovernedEntityType; governedGlossaryTerms: string[]; } -export const AssociateGovernedTermsInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - entityIdentifier: S.String.pipe(T.HttpLabel("entityIdentifier")), - entityType: GovernedEntityType.pipe(T.HttpLabel("entityType")), - governedGlossaryTerms: GovernedGlossaryTerms, - }).pipe( - T.all( - T.Http({ - method: "PATCH", - uri: "/v2/domains/{domainIdentifier}/entities/{entityType}/{entityIdentifier}/associate-governed-terms", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const AssociateGovernedTermsInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + entityIdentifier: S.String.pipe(T.HttpLabel("entityIdentifier")), + entityType: GovernedEntityType.pipe(T.HttpLabel("entityType")), + governedGlossaryTerms: GovernedGlossaryTerms, + }).pipe( + T.all( + T.Http({ + method: "PATCH", + uri: "/v2/domains/{domainIdentifier}/entities/{entityType}/{entityIdentifier}/associate-governed-terms", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "AssociateGovernedTermsInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "AssociateGovernedTermsInput", +}) as any as S.Schema; export interface AssociateGovernedTermsOutput {} -export const AssociateGovernedTermsOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "AssociateGovernedTermsOutput", - }) as any as S.Schema; +export const AssociateGovernedTermsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "AssociateGovernedTermsOutput", +}) as any as S.Schema; export type AttributeEntityType = "ASSET" | "LISTING" | (string & {}); export const AttributeEntityType = /*@__PURE__*/ S.String; export type AttributesList = string[]; @@ -1310,32 +1296,31 @@ export interface BatchGetAttributesMetadataInput { entityRevision?: string; attributeIdentifiers: string[]; } -export const BatchGetAttributesMetadataInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - entityType: AttributeEntityType.pipe(T.HttpLabel("entityType")), - entityIdentifier: S.String.pipe(T.HttpLabel("entityIdentifier")), - entityRevision: S.optional(S.String).pipe(T.HttpQuery("entityRevision")), - attributeIdentifiers: AttributesList.pipe( - T.HttpQuery("attributeIdentifier"), - ), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/v2/domains/{domainIdentifier}/entities/{entityType}/{entityIdentifier}/attributes-metadata", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const BatchGetAttributesMetadataInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + entityType: AttributeEntityType.pipe(T.HttpLabel("entityType")), + entityIdentifier: S.String.pipe(T.HttpLabel("entityIdentifier")), + entityRevision: S.optional(S.String).pipe(T.HttpQuery("entityRevision")), + attributeIdentifiers: AttributesList.pipe( + T.HttpQuery("attributeIdentifier"), ), - ).annotate({ - identifier: "BatchGetAttributesMetadataInput", - }) as any as S.Schema; + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/v2/domains/{domainIdentifier}/entities/{entityType}/{entityIdentifier}/attributes-metadata", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "BatchGetAttributesMetadataInput", +}) as any as S.Schema; export type FormOutputList = FormOutput[]; export const FormOutputList = /*@__PURE__*/ S.Array(FormOutput); export interface BatchGetAttributeOutput { @@ -1372,15 +1357,14 @@ export interface BatchGetAttributesMetadataOutput { attributes?: BatchGetAttributeOutput[]; errors: AttributeError[]; } -export const BatchGetAttributesMetadataOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - attributes: S.optional(BatchGetAttributeItems), - errors: AttributesErrors, - }), - ).annotate({ - identifier: "BatchGetAttributesMetadataOutput", - }) as any as S.Schema; +export const BatchGetAttributesMetadataOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + attributes: S.optional(BatchGetAttributeItems), + errors: AttributesErrors, + }), +).annotate({ + identifier: "BatchGetAttributesMetadataOutput", +}) as any as S.Schema; export interface FormInput { formName: string; typeIdentifier?: string; @@ -1413,30 +1397,29 @@ export interface BatchPutAttributesMetadataInput { clientToken?: string; attributes: AttributeInput[]; } -export const BatchPutAttributesMetadataInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - entityType: AttributeEntityType.pipe(T.HttpLabel("entityType")), - entityIdentifier: S.String.pipe(T.HttpLabel("entityIdentifier")), - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - attributes: Attributes, - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/v2/domains/{domainIdentifier}/entities/{entityType}/{entityIdentifier}/attributes-metadata", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const BatchPutAttributesMetadataInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + entityType: AttributeEntityType.pipe(T.HttpLabel("entityType")), + entityIdentifier: S.String.pipe(T.HttpLabel("entityIdentifier")), + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + attributes: Attributes, + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/v2/domains/{domainIdentifier}/entities/{entityType}/{entityIdentifier}/attributes-metadata", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "BatchPutAttributesMetadataInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "BatchPutAttributesMetadataInput", +}) as any as S.Schema; export interface BatchPutAttributeOutput { attributeIdentifier: string; } @@ -1453,15 +1436,14 @@ export interface BatchPutAttributesMetadataOutput { errors?: AttributeError[]; attributes?: BatchPutAttributeOutput[]; } -export const BatchPutAttributesMetadataOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - errors: S.optional(AttributesErrors), - attributes: S.optional(BatchPutAttributeItems), - }), - ).annotate({ - identifier: "BatchPutAttributesMetadataOutput", - }) as any as S.Schema; +export const BatchPutAttributesMetadataOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + errors: S.optional(AttributesErrors), + attributes: S.optional(BatchPutAttributeItems), + }), +).annotate({ + identifier: "BatchPutAttributesMetadataOutput", +}) as any as S.Schema; export interface CancelSubscriptionInput { domainIdentifier: string; identifier: string; @@ -1673,22 +1655,20 @@ export interface GreaterThanOrEqualToExpression { columnName: string; value: string; } -export const GreaterThanOrEqualToExpression = - /*@__PURE__*/ S.suspend(() => - S.Struct({ columnName: S.String, value: S.String }), - ).annotate({ - identifier: "GreaterThanOrEqualToExpression", - }) as any as S.Schema; -export interface LessThanOrEqualToExpression { +export const GreaterThanOrEqualToExpression = /*@__PURE__*/ S.suspend(() => + S.Struct({ columnName: S.String, value: S.String }), +).annotate({ + identifier: "GreaterThanOrEqualToExpression", +}) as any as S.Schema; +export interface LessThanOrEqualToExpression { columnName: string; value: string; } -export const LessThanOrEqualToExpression = - /*@__PURE__*/ S.suspend(() => - S.Struct({ columnName: S.String, value: S.String }), - ).annotate({ - identifier: "LessThanOrEqualToExpression", - }) as any as S.Schema; +export const LessThanOrEqualToExpression = /*@__PURE__*/ S.suspend(() => + S.Struct({ columnName: S.String, value: S.String }), +).annotate({ + identifier: "LessThanOrEqualToExpression", +}) as any as S.Schema; export interface IsNullExpression { columnName: string; } @@ -2077,17 +2057,16 @@ export interface PhysicalConnectionRequirements { securityGroupIdList?: string[]; availabilityZone?: string; } -export const PhysicalConnectionRequirements = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - subnetId: S.optional(S.String), - subnetIdList: S.optional(SubnetIdList), - securityGroupIdList: S.optional(SecurityGroupIdList), - availabilityZone: S.optional(S.String), - }), - ).annotate({ - identifier: "PhysicalConnectionRequirements", - }) as any as S.Schema; +export const PhysicalConnectionRequirements = /*@__PURE__*/ S.suspend(() => + S.Struct({ + subnetId: S.optional(S.String), + subnetIdList: S.optional(SubnetIdList), + securityGroupIdList: S.optional(SecurityGroupIdList), + availabilityZone: S.optional(S.String), + }), +).annotate({ + identifier: "PhysicalConnectionRequirements", +}) as any as S.Schema; export type GlueConnectionType = | "SNOWFLAKE" | "BIGQUERY" @@ -2138,15 +2117,14 @@ export interface AuthorizationCodeProperties { authorizationCode?: string; redirectUri?: string; } -export const AuthorizationCodeProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - authorizationCode: S.optional(S.String), - redirectUri: S.optional(S.String), - }), - ).annotate({ - identifier: "AuthorizationCodeProperties", - }) as any as S.Schema; +export const AuthorizationCodeProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + authorizationCode: S.optional(S.String), + redirectUri: S.optional(S.String), + }), +).annotate({ + identifier: "AuthorizationCodeProperties", +}) as any as S.Schema; export interface GlueOAuth2Credentials { userManagedClientApplicationClientSecret?: string; accessToken?: string; @@ -2187,15 +2165,11 @@ export interface BasicAuthenticationCredentials { userName?: string; password?: string; } -export const BasicAuthenticationCredentials = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - userName: S.optional(S.String), - password: S.optional(S.String), - }), - ).annotate({ - identifier: "BasicAuthenticationCredentials", - }) as any as S.Schema; +export const BasicAuthenticationCredentials = /*@__PURE__*/ S.suspend(() => + S.Struct({ userName: S.optional(S.String), password: S.optional(S.String) }), +).annotate({ + identifier: "BasicAuthenticationCredentials", +}) as any as S.Schema; export type CredentialMap = { [key: string]: string | undefined }; export const CredentialMap = /*@__PURE__*/ S.Record( S.String, @@ -2209,21 +2183,18 @@ export interface AuthenticationConfigurationInput { basicAuthenticationCredentials?: BasicAuthenticationCredentials; customAuthenticationCredentials?: { [key: string]: string | undefined }; } -export const AuthenticationConfigurationInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - authenticationType: S.optional(AuthenticationType), - oAuth2Properties: S.optional(OAuth2Properties), - secretArn: S.optional(S.String), - kmsKeyArn: S.optional(S.String), - basicAuthenticationCredentials: S.optional( - BasicAuthenticationCredentials, - ), - customAuthenticationCredentials: S.optional(CredentialMap), - }), - ).annotate({ - identifier: "AuthenticationConfigurationInput", - }) as any as S.Schema; +export const AuthenticationConfigurationInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + authenticationType: S.optional(AuthenticationType), + oAuth2Properties: S.optional(OAuth2Properties), + secretArn: S.optional(S.String), + kmsKeyArn: S.optional(S.String), + basicAuthenticationCredentials: S.optional(BasicAuthenticationCredentials), + customAuthenticationCredentials: S.optional(CredentialMap), + }), +).annotate({ + identifier: "AuthenticationConfigurationInput", +}) as any as S.Schema; export interface GlueConnectionInput { connectionProperties?: { [key: string]: string | undefined }; physicalConnectionRequirements?: PhysicalConnectionRequirements; @@ -2315,15 +2286,15 @@ export interface RedshiftLineageSyncConfigurationInput { enabled?: boolean; schedule?: LineageSyncSchedule; } -export const RedshiftLineageSyncConfigurationInput = - /*@__PURE__*/ S.suspend(() => +export const RedshiftLineageSyncConfigurationInput = /*@__PURE__*/ S.suspend( + () => S.Struct({ enabled: S.optional(S.Boolean), schedule: S.optional(LineageSyncSchedule), }), - ).annotate({ - identifier: "RedshiftLineageSyncConfigurationInput", - }) as any as S.Schema; +).annotate({ + identifier: "RedshiftLineageSyncConfigurationInput", +}) as any as S.Schema; export interface RedshiftPropertiesInput { storage?: RedshiftStorageProperties; databaseName?: string; @@ -2441,17 +2412,17 @@ export const MlflowPropertiesInput = /*@__PURE__*/ S.suspend(() => export interface WorkflowsMwaaPropertiesInput { mwaaEnvironmentName?: string; } -export const WorkflowsMwaaPropertiesInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ mwaaEnvironmentName: S.optional(S.String) }), - ).annotate({ - identifier: "WorkflowsMwaaPropertiesInput", - }) as any as S.Schema; +export const WorkflowsMwaaPropertiesInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ mwaaEnvironmentName: S.optional(S.String) }), +).annotate({ + identifier: "WorkflowsMwaaPropertiesInput", +}) as any as S.Schema; export interface WorkflowsServerlessPropertiesInput {} -export const WorkflowsServerlessPropertiesInput = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "WorkflowsServerlessPropertiesInput", - }) as any as S.Schema; +export const WorkflowsServerlessPropertiesInput = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "WorkflowsServerlessPropertiesInput", +}) as any as S.Schema; export interface LakehousePropertiesInput { glueLineageSyncEnabled?: boolean; } @@ -2805,16 +2776,15 @@ export interface AuthenticationConfiguration { secretArn?: string; oAuth2Properties?: OAuth2Properties; } -export const AuthenticationConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - authenticationType: S.optional(AuthenticationType), - secretArn: S.optional(S.String), - oAuth2Properties: S.optional(OAuth2Properties), - }), - ).annotate({ - identifier: "AuthenticationConfiguration", - }) as any as S.Schema; +export const AuthenticationConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + authenticationType: S.optional(AuthenticationType), + secretArn: S.optional(S.String), + oAuth2Properties: S.optional(OAuth2Properties), + }), +).annotate({ + identifier: "AuthenticationConfiguration", +}) as any as S.Schema; export interface GlueConnection { name?: string; description?: string; @@ -2952,16 +2922,16 @@ export interface RedshiftLineageSyncConfigurationOutput { enabled?: boolean; schedule?: LineageSyncSchedule; } -export const RedshiftLineageSyncConfigurationOutput = - /*@__PURE__*/ S.suspend(() => +export const RedshiftLineageSyncConfigurationOutput = /*@__PURE__*/ S.suspend( + () => S.Struct({ lineageJobId: S.optional(S.String), enabled: S.optional(S.Boolean), schedule: S.optional(LineageSyncSchedule), }), - ).annotate({ - identifier: "RedshiftLineageSyncConfigurationOutput", - }) as any as S.Schema; +).annotate({ + identifier: "RedshiftLineageSyncConfigurationOutput", +}) as any as S.Schema; export interface RedshiftPropertiesOutput { storage?: RedshiftStorageProperties; credentials?: RedshiftCredentials; @@ -3106,17 +3076,17 @@ export const MlflowPropertiesOutput = /*@__PURE__*/ S.suspend(() => export interface WorkflowsMwaaPropertiesOutput { mwaaEnvironmentName?: string; } -export const WorkflowsMwaaPropertiesOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ mwaaEnvironmentName: S.optional(S.String) }), - ).annotate({ - identifier: "WorkflowsMwaaPropertiesOutput", - }) as any as S.Schema; +export const WorkflowsMwaaPropertiesOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ mwaaEnvironmentName: S.optional(S.String) }), +).annotate({ + identifier: "WorkflowsMwaaPropertiesOutput", +}) as any as S.Schema; export interface WorkflowsServerlessPropertiesOutput {} -export const WorkflowsServerlessPropertiesOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "WorkflowsServerlessPropertiesOutput", - }) as any as S.Schema; +export const WorkflowsServerlessPropertiesOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "WorkflowsServerlessPropertiesOutput", +}) as any as S.Schema; export interface LakehousePropertiesOutput { glueLineageSyncEnabled?: boolean; } @@ -3519,30 +3489,29 @@ export interface ConfigurableActionParameter { key?: string; value?: string; } -export const ConfigurableActionParameter = - /*@__PURE__*/ S.suspend(() => - S.Struct({ key: S.optional(S.String), value: S.optional(S.String) }), - ).annotate({ - identifier: "ConfigurableActionParameter", - }) as any as S.Schema; +export const ConfigurableActionParameter = /*@__PURE__*/ S.suspend(() => + S.Struct({ key: S.optional(S.String), value: S.optional(S.String) }), +).annotate({ + identifier: "ConfigurableActionParameter", +}) as any as S.Schema; export type ConfigurableActionParameterList = ConfigurableActionParameter[]; -export const ConfigurableActionParameterList = - /*@__PURE__*/ S.Array(ConfigurableActionParameter); +export const ConfigurableActionParameterList = /*@__PURE__*/ S.Array( + ConfigurableActionParameter, +); export interface ConfigurableEnvironmentAction { type: string; auth?: ConfigurableActionTypeAuthorization; parameters: ConfigurableActionParameter[]; } -export const ConfigurableEnvironmentAction = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - type: S.String, - auth: S.optional(ConfigurableActionTypeAuthorization), - parameters: ConfigurableActionParameterList, - }), - ).annotate({ - identifier: "ConfigurableEnvironmentAction", - }) as any as S.Schema; +export const ConfigurableEnvironmentAction = /*@__PURE__*/ S.suspend(() => + S.Struct({ + type: S.String, + auth: S.optional(ConfigurableActionTypeAuthorization), + parameters: ConfigurableActionParameterList, + }), +).annotate({ + identifier: "ConfigurableEnvironmentAction", +}) as any as S.Schema; export type EnvironmentActionList = ConfigurableEnvironmentAction[]; export const EnvironmentActionList = /*@__PURE__*/ S.Array( ConfigurableEnvironmentAction, @@ -3617,11 +3586,12 @@ export const CloudFormationProperties = /*@__PURE__*/ S.suspend(() => ).annotate({ identifier: "CloudFormationProperties", }) as any as S.Schema; -export type ProvisioningProperties = { - cloudFormation: CloudFormationProperties; -}; +export type ProvisioningProperties = + | { cloudFormation: CloudFormationProperties; manual?: never } + | { cloudFormation?: never; manual: Record }; export const ProvisioningProperties = /*@__PURE__*/ S.Union([ S.Struct({ cloudFormation: CloudFormationProperties }), + S.Struct({ manual: S.Struct({}) }), ]); export interface DeploymentProperties { startTimeoutMinutes?: number; @@ -3712,32 +3682,29 @@ export interface CreateEnvironmentActionInput { parameters: ActionParameters; description?: string; } -export const CreateEnvironmentActionInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - environmentIdentifier: S.String.pipe( - T.HttpLabel("environmentIdentifier"), - ), - name: S.String, - parameters: ActionParameters, - description: S.optional(S.String), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/actions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateEnvironmentActionInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + environmentIdentifier: S.String.pipe(T.HttpLabel("environmentIdentifier")), + name: S.String, + parameters: ActionParameters, + description: S.optional(S.String), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/actions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateEnvironmentActionInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateEnvironmentActionInput", +}) as any as S.Schema; export interface CreateEnvironmentActionOutput { domainId: string; environmentId: string; @@ -3746,19 +3713,18 @@ export interface CreateEnvironmentActionOutput { parameters: ActionParameters; description?: string; } -export const CreateEnvironmentActionOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainId: S.String, - environmentId: S.String, - id: S.String, - name: S.String, - parameters: ActionParameters, - description: S.optional(S.String), - }), - ).annotate({ - identifier: "CreateEnvironmentActionOutput", - }) as any as S.Schema; +export const CreateEnvironmentActionOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainId: S.String, + environmentId: S.String, + id: S.String, + name: S.String, + parameters: ActionParameters, + description: S.optional(S.String), + }), +).annotate({ + identifier: "CreateEnvironmentActionOutput", +}) as any as S.Schema; export interface CreateEnvironmentBlueprintInput { domainIdentifier: string; name: string; @@ -3766,30 +3732,29 @@ export interface CreateEnvironmentBlueprintInput { provisioningProperties: ProvisioningProperties; userParameters?: CustomParameter[]; } -export const CreateEnvironmentBlueprintInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - name: S.String, - description: S.optional(SensitiveString), - provisioningProperties: ProvisioningProperties, - userParameters: S.optional(CustomParameterList), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/v2/domains/{domainIdentifier}/environment-blueprints", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateEnvironmentBlueprintInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + name: S.String, + description: S.optional(SensitiveString), + provisioningProperties: ProvisioningProperties, + userParameters: S.optional(CustomParameterList), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/v2/domains/{domainIdentifier}/environment-blueprints", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateEnvironmentBlueprintInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateEnvironmentBlueprintInput", +}) as any as S.Schema; export interface CreateEnvironmentBlueprintOutput { id: string; name: string; @@ -3802,27 +3767,26 @@ export interface CreateEnvironmentBlueprintOutput { createdAt?: Date; updatedAt?: Date; } -export const CreateEnvironmentBlueprintOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String, - name: S.String, - description: S.optional(SensitiveString), - provider: S.String, - provisioningProperties: ProvisioningProperties, - deploymentProperties: S.optional(DeploymentProperties), - userParameters: S.optional(CustomParameterList), - glossaryTerms: S.optional(GlossaryTerms), - createdAt: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - updatedAt: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - }), - ).annotate({ - identifier: "CreateEnvironmentBlueprintOutput", - }) as any as S.Schema; +export const CreateEnvironmentBlueprintOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + name: S.String, + description: S.optional(SensitiveString), + provider: S.String, + provisioningProperties: ProvisioningProperties, + deploymentProperties: S.optional(DeploymentProperties), + userParameters: S.optional(CustomParameterList), + glossaryTerms: S.optional(GlossaryTerms), + createdAt: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + updatedAt: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + }), +).annotate({ + identifier: "CreateEnvironmentBlueprintOutput", +}) as any as S.Schema; export interface CreateEnvironmentProfileInput { domainIdentifier: string; name: string | redacted.Redacted; @@ -3833,33 +3797,32 @@ export interface CreateEnvironmentProfileInput { awsAccountId?: string; awsAccountRegion?: string; } -export const CreateEnvironmentProfileInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - name: SensitiveString, - description: S.optional(SensitiveString), - environmentBlueprintIdentifier: S.String, - projectIdentifier: S.String, - userParameters: S.optional(EnvironmentParametersList), - awsAccountId: S.optional(S.String), - awsAccountRegion: S.optional(S.String), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/v2/domains/{domainIdentifier}/environment-profiles", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateEnvironmentProfileInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + name: SensitiveString, + description: S.optional(SensitiveString), + environmentBlueprintIdentifier: S.String, + projectIdentifier: S.String, + userParameters: S.optional(EnvironmentParametersList), + awsAccountId: S.optional(S.String), + awsAccountRegion: S.optional(S.String), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/v2/domains/{domainIdentifier}/environment-profiles", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateEnvironmentProfileInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateEnvironmentProfileInput", +}) as any as S.Schema; export interface CreateEnvironmentProfileOutput { id: string; domainId: string; @@ -3874,29 +3837,28 @@ export interface CreateEnvironmentProfileOutput { projectId?: string; userParameters?: CustomParameter[]; } -export const CreateEnvironmentProfileOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String, - domainId: S.String, - awsAccountId: S.optional(S.String), - awsAccountRegion: S.optional(S.String), - createdBy: S.String, - createdAt: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - updatedAt: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - name: SensitiveString, - description: S.optional(SensitiveString), - environmentBlueprintId: S.String, - projectId: S.optional(S.String), - userParameters: S.optional(CustomParameterList), - }), - ).annotate({ - identifier: "CreateEnvironmentProfileOutput", - }) as any as S.Schema; +export const CreateEnvironmentProfileOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + domainId: S.String, + awsAccountId: S.optional(S.String), + awsAccountRegion: S.optional(S.String), + createdBy: S.String, + createdAt: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + updatedAt: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + name: SensitiveString, + description: S.optional(SensitiveString), + environmentBlueprintId: S.String, + projectId: S.optional(S.String), + userParameters: S.optional(CustomParameterList), + }), +).annotate({ + identifier: "CreateEnvironmentProfileOutput", +}) as any as S.Schema; export interface CreateGroupProfileInput { domainIdentifier: string; groupIdentifier?: string; @@ -3959,31 +3921,30 @@ export interface CreateListingChangeSetInput { action: ChangeAction; clientToken?: string; } -export const CreateListingChangeSetInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - entityIdentifier: S.String, - entityType: EntityType, - entityRevision: S.optional(S.String), - action: ChangeAction, - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/v2/domains/{domainIdentifier}/listings/change-set", - }), - svc, - auth, - proto, - ver, - rules, - ), - ), - ).annotate({ - identifier: "CreateListingChangeSetInput", - }) as any as S.Schema; +export const CreateListingChangeSetInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + entityIdentifier: S.String, + entityType: EntityType, + entityRevision: S.optional(S.String), + action: ChangeAction, + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/v2/domains/{domainIdentifier}/listings/change-set", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "CreateListingChangeSetInput", +}) as any as S.Schema; export type ListingStatus = "CREATING" | "ACTIVE" | "INACTIVE" | (string & {}); export const ListingStatus = /*@__PURE__*/ S.String; export interface CreateListingChangeSetOutput { @@ -3991,16 +3952,15 @@ export interface CreateListingChangeSetOutput { listingRevision: string; status: ListingStatus; } -export const CreateListingChangeSetOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - listingId: S.String, - listingRevision: S.String, - status: ListingStatus, - }), - ).annotate({ - identifier: "CreateListingChangeSetOutput", - }) as any as S.Schema; +export const CreateListingChangeSetOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + listingId: S.String, + listingRevision: S.String, + status: ListingStatus, + }), +).annotate({ + identifier: "CreateListingChangeSetOutput", +}) as any as S.Schema; export type Tags = { [key: string]: string | undefined }; export const Tags = /*@__PURE__*/ S.Record(S.String, S.String.pipe(S.optional)); export interface EnvironmentResolvedAccount { @@ -4023,21 +3983,22 @@ export interface EnvironmentConfigurationUserParameter { environmentConfigurationName?: string | redacted.Redacted; environmentParameters?: EnvironmentParameter[]; } -export const EnvironmentConfigurationUserParameter = - /*@__PURE__*/ S.suspend(() => +export const EnvironmentConfigurationUserParameter = /*@__PURE__*/ S.suspend( + () => S.Struct({ environmentId: S.optional(S.String), environmentResolvedAccount: S.optional(EnvironmentResolvedAccount), environmentConfigurationName: S.optional(SensitiveString), environmentParameters: S.optional(EnvironmentParametersList), }), - ).annotate({ - identifier: "EnvironmentConfigurationUserParameter", - }) as any as S.Schema; +).annotate({ + identifier: "EnvironmentConfigurationUserParameter", +}) as any as S.Schema; export type EnvironmentConfigurationUserParametersList = EnvironmentConfigurationUserParameter[]; -export const EnvironmentConfigurationUserParametersList = - /*@__PURE__*/ S.Array(EnvironmentConfigurationUserParameter); +export const EnvironmentConfigurationUserParametersList = /*@__PURE__*/ S.Array( + EnvironmentConfigurationUserParameter, +); export type Member = | { userIdentifier: string; groupIdentifier?: never } | { userIdentifier?: never; groupIdentifier: string }; @@ -4057,12 +4018,11 @@ export interface ProjectMembershipAssignment { member: Member; designation: UserDesignation; } -export const ProjectMembershipAssignment = - /*@__PURE__*/ S.suspend(() => - S.Struct({ member: Member, designation: UserDesignation }), - ).annotate({ - identifier: "ProjectMembershipAssignment", - }) as any as S.Schema; +export const ProjectMembershipAssignment = /*@__PURE__*/ S.suspend(() => + S.Struct({ member: Member, designation: UserDesignation }), +).annotate({ + identifier: "ProjectMembershipAssignment", +}) as any as S.Schema; export type ProjectMembershipAssignments = ProjectMembershipAssignment[]; export const ProjectMembershipAssignments = /*@__PURE__*/ S.Array( ProjectMembershipAssignment, @@ -4163,15 +4123,14 @@ export interface EnvironmentDeploymentDetails { overallDeploymentStatus?: OverallDeploymentStatus; environmentFailureReasons?: { [key: string]: EnvironmentError[] | undefined }; } -export const EnvironmentDeploymentDetails = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - overallDeploymentStatus: S.optional(OverallDeploymentStatus), - environmentFailureReasons: S.optional(EnvironmentFailureReasons), - }), - ).annotate({ - identifier: "EnvironmentDeploymentDetails", - }) as any as S.Schema; +export const EnvironmentDeploymentDetails = /*@__PURE__*/ S.suspend(() => + S.Struct({ + overallDeploymentStatus: S.optional(OverallDeploymentStatus), + environmentFailureReasons: S.optional(EnvironmentFailureReasons), + }), +).annotate({ + identifier: "EnvironmentDeploymentDetails", +}) as any as S.Schema; export interface CreateProjectOutput { domainId: string; id: string; @@ -4222,34 +4181,34 @@ export interface CreateProjectMembershipInput { member: Member; designation: UserDesignation; } -export const CreateProjectMembershipInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - projectIdentifier: S.String.pipe(T.HttpLabel("projectIdentifier")), - member: Member, - designation: UserDesignation, - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/v2/domains/{domainIdentifier}/projects/{projectIdentifier}/createMembership", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateProjectMembershipInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + projectIdentifier: S.String.pipe(T.HttpLabel("projectIdentifier")), + member: Member, + designation: UserDesignation, + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/v2/domains/{domainIdentifier}/projects/{projectIdentifier}/createMembership", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateProjectMembershipInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateProjectMembershipInput", +}) as any as S.Schema; export interface CreateProjectMembershipOutput {} -export const CreateProjectMembershipOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "CreateProjectMembershipOutput", - }) as any as S.Schema; +export const CreateProjectMembershipOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "CreateProjectMembershipOutput", +}) as any as S.Schema; export type Status = "ENABLED" | "DISABLED" | (string & {}); export const Status = /*@__PURE__*/ S.String; export interface ResourceTagParameter { @@ -4272,20 +4231,20 @@ export interface EnvironmentConfigurationParameter { value?: string; isEditable?: boolean; } -export const EnvironmentConfigurationParameter = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.optional(S.String), - value: S.optional(S.String), - isEditable: S.optional(S.Boolean), - }), - ).annotate({ - identifier: "EnvironmentConfigurationParameter", - }) as any as S.Schema; +export const EnvironmentConfigurationParameter = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.optional(S.String), + value: S.optional(S.String), + isEditable: S.optional(S.Boolean), + }), +).annotate({ + identifier: "EnvironmentConfigurationParameter", +}) as any as S.Schema; export type EnvironmentConfigurationParametersList = EnvironmentConfigurationParameter[]; -export const EnvironmentConfigurationParametersList = - /*@__PURE__*/ S.Array(EnvironmentConfigurationParameter); +export const EnvironmentConfigurationParametersList = /*@__PURE__*/ S.Array( + EnvironmentConfigurationParameter, +); export interface EnvironmentConfigurationParametersDetails { ssmPath?: string; parameterOverrides?: EnvironmentConfigurationParameter[]; @@ -4348,8 +4307,9 @@ export const EnvironmentConfiguration = /*@__PURE__*/ S.suspend(() => identifier: "EnvironmentConfiguration", }) as any as S.Schema; export type EnvironmentConfigurationsList = EnvironmentConfiguration[]; -export const EnvironmentConfigurationsList = - /*@__PURE__*/ S.Array(EnvironmentConfiguration); +export const EnvironmentConfigurationsList = /*@__PURE__*/ S.Array( + EnvironmentConfiguration, +); export interface CreateProjectProfileInput { domainIdentifier: string; name: string | redacted.Redacted; @@ -4458,31 +4418,30 @@ export interface CreateSubscriptionGrantInput { assetTargetNames?: AssetTargetNameMap[]; clientToken?: string; } -export const CreateSubscriptionGrantInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - environmentIdentifier: S.String, - subscriptionTargetIdentifier: S.optional(S.String), - grantedEntity: GrantedEntityInput, - assetTargetNames: S.optional(AssetTargetNames), - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/v2/domains/{domainIdentifier}/subscription-grants", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateSubscriptionGrantInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + environmentIdentifier: S.String, + subscriptionTargetIdentifier: S.optional(S.String), + grantedEntity: GrantedEntityInput, + assetTargetNames: S.optional(AssetTargetNames), + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/v2/domains/{domainIdentifier}/subscription-grants", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateSubscriptionGrantInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateSubscriptionGrantInput", +}) as any as S.Schema; export interface ListingRevision { id: string; revision: string; @@ -4569,25 +4528,24 @@ export interface CreateSubscriptionGrantOutput { assets?: SubscribedAsset[]; subscriptionId?: string; } -export const CreateSubscriptionGrantOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String, - createdBy: S.String, - updatedBy: S.optional(S.String), - domainId: S.String, - createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - updatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - environmentId: S.optional(S.String), - subscriptionTargetId: S.String, - grantedEntity: GrantedEntity, - status: SubscriptionGrantOverallStatus, - assets: S.optional(SubscribedAssets), - subscriptionId: S.optional(S.String), - }), - ).annotate({ - identifier: "CreateSubscriptionGrantOutput", - }) as any as S.Schema; +export const CreateSubscriptionGrantOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + createdBy: S.String, + updatedBy: S.optional(S.String), + domainId: S.String, + createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + updatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + environmentId: S.optional(S.String), + subscriptionTargetId: S.String, + grantedEntity: GrantedEntity, + status: SubscriptionGrantOverallStatus, + assets: S.optional(SubscribedAssets), + subscriptionId: S.optional(S.String), + }), +).annotate({ + identifier: "CreateSubscriptionGrantOutput", +}) as any as S.Schema; export interface SubscribedProjectInput { identifier?: string; } @@ -4615,12 +4573,11 @@ export const SubscribedGroupInput = /*@__PURE__*/ S.suspend(() => export interface SubscribedIamPrincipalInput { identifier?: string; } -export const SubscribedIamPrincipalInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ identifier: S.optional(S.String) }), - ).annotate({ - identifier: "SubscribedIamPrincipalInput", - }) as any as S.Schema; +export const SubscribedIamPrincipalInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ identifier: S.optional(S.String) }), +).annotate({ + identifier: "SubscribedIamPrincipalInput", +}) as any as S.Schema; export type SubscribedPrincipalInput = | { project: SubscribedProjectInput; @@ -4670,33 +4627,32 @@ export interface CreateSubscriptionRequestInput { assetPermissions?: AssetPermission[]; assetScopes?: AcceptedAssetScope[]; } -export const CreateSubscriptionRequestInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - subscribedPrincipals: SubscribedPrincipalInputs, - subscribedListings: SubscribedListingInputs, - requestReason: SensitiveString, - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - metadataForms: S.optional(MetadataFormInputs), - assetPermissions: S.optional(AssetPermissions), - assetScopes: S.optional(AcceptedAssetScopes), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/v2/domains/{domainIdentifier}/subscription-requests", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateSubscriptionRequestInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + subscribedPrincipals: SubscribedPrincipalInputs, + subscribedListings: SubscribedListingInputs, + requestReason: SensitiveString, + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + metadataForms: S.optional(MetadataFormInputs), + assetPermissions: S.optional(AssetPermissions), + assetScopes: S.optional(AcceptedAssetScopes), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/v2/domains/{domainIdentifier}/subscription-requests", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateSubscriptionRequestInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateSubscriptionRequestInput", +}) as any as S.Schema; export interface CreateSubscriptionRequestOutput { id: string; createdBy: string; @@ -4713,27 +4669,26 @@ export interface CreateSubscriptionRequestOutput { existingSubscriptionId?: string; metadataForms?: FormOutput[]; } -export const CreateSubscriptionRequestOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String, - createdBy: S.String, - updatedBy: S.optional(S.String), - domainId: S.String, - status: SubscriptionRequestStatus, - createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - updatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - requestReason: SensitiveString, - subscribedPrincipals: SubscribedPrincipals, - subscribedListings: SubscribedListings, - reviewerId: S.optional(S.String), - decisionComment: S.optional(SensitiveString), - existingSubscriptionId: S.optional(S.String), - metadataForms: S.optional(MetadataForms), - }), - ).annotate({ - identifier: "CreateSubscriptionRequestOutput", - }) as any as S.Schema; +export const CreateSubscriptionRequestOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + createdBy: S.String, + updatedBy: S.optional(S.String), + domainId: S.String, + status: SubscriptionRequestStatus, + createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + updatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + requestReason: SensitiveString, + subscribedPrincipals: SubscribedPrincipals, + subscribedListings: SubscribedListings, + reviewerId: S.optional(S.String), + decisionComment: S.optional(SensitiveString), + existingSubscriptionId: S.optional(S.String), + metadataForms: S.optional(MetadataForms), + }), +).annotate({ + identifier: "CreateSubscriptionRequestOutput", +}) as any as S.Schema; export interface SubscriptionTargetForm { formName: string; content: string; @@ -4769,38 +4724,35 @@ export interface CreateSubscriptionTargetInput { clientToken?: string; subscriptionGrantCreationMode?: SubscriptionGrantCreationMode; } -export const CreateSubscriptionTargetInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - environmentIdentifier: S.String.pipe( - T.HttpLabel("environmentIdentifier"), - ), - name: SensitiveString, - type: S.String, - subscriptionTargetConfig: SubscriptionTargetForms, - authorizedPrincipals: AuthorizedPrincipalIdentifiers, - manageAccessRole: S.String, - applicableAssetTypes: ApplicableAssetTypes, - provider: S.optional(S.String), - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - subscriptionGrantCreationMode: S.optional(SubscriptionGrantCreationMode), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateSubscriptionTargetInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + environmentIdentifier: S.String.pipe(T.HttpLabel("environmentIdentifier")), + name: SensitiveString, + type: S.String, + subscriptionTargetConfig: SubscriptionTargetForms, + authorizedPrincipals: AuthorizedPrincipalIdentifiers, + manageAccessRole: S.String, + applicableAssetTypes: ApplicableAssetTypes, + provider: S.optional(S.String), + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + subscriptionGrantCreationMode: S.optional(SubscriptionGrantCreationMode), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateSubscriptionTargetInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateSubscriptionTargetInput", +}) as any as S.Schema; export interface CreateSubscriptionTargetOutput { id: string; authorizedPrincipals: string[]; @@ -4819,29 +4771,28 @@ export interface CreateSubscriptionTargetOutput { provider: string; subscriptionGrantCreationMode?: SubscriptionGrantCreationMode; } -export const CreateSubscriptionTargetOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String, - authorizedPrincipals: AuthorizedPrincipalIdentifiers, - domainId: S.String, - projectId: S.String, - environmentId: S.String, - name: SensitiveString, - type: S.String, - createdBy: S.String, - updatedBy: S.optional(S.String), - createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - updatedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - manageAccessRole: S.optional(S.String), - applicableAssetTypes: ApplicableAssetTypes, - subscriptionTargetConfig: SubscriptionTargetForms, - provider: S.String, - subscriptionGrantCreationMode: S.optional(SubscriptionGrantCreationMode), - }), - ).annotate({ - identifier: "CreateSubscriptionTargetOutput", - }) as any as S.Schema; +export const CreateSubscriptionTargetOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + authorizedPrincipals: AuthorizedPrincipalIdentifiers, + domainId: S.String, + projectId: S.String, + environmentId: S.String, + name: SensitiveString, + type: S.String, + createdBy: S.String, + updatedBy: S.optional(S.String), + createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + updatedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + manageAccessRole: S.optional(S.String), + applicableAssetTypes: ApplicableAssetTypes, + subscriptionTargetConfig: SubscriptionTargetForms, + provider: S.String, + subscriptionGrantCreationMode: S.optional(SubscriptionGrantCreationMode), + }), +).annotate({ + identifier: "CreateSubscriptionTargetOutput", +}) as any as S.Schema; export type UserType = | "IAM_USER" | "IAM_ROLE" @@ -5003,31 +4954,31 @@ export const DeleteConnectionOutput = /*@__PURE__*/ S.suspend(() => export interface DeleteDataExportConfigurationInput { domainIdentifier: string; } -export const DeleteDataExportConfigurationInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/v2/domains/{domainIdentifier}/data-export-configuration", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteDataExportConfigurationInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/v2/domains/{domainIdentifier}/data-export-configuration", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteDataExportConfigurationInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteDataExportConfigurationInput", +}) as any as S.Schema; export interface DeleteDataExportConfigurationOutput {} -export const DeleteDataExportConfigurationOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteDataExportConfigurationOutput", - }) as any as S.Schema; +export const DeleteDataExportConfigurationOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteDataExportConfigurationOutput", +}) as any as S.Schema; export interface DeleteEnvironmentInput { domainIdentifier: string; identifier: string; @@ -5063,95 +5014,93 @@ export interface DeleteEnvironmentActionInput { environmentIdentifier: string; identifier: string; } -export const DeleteEnvironmentActionInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - environmentIdentifier: S.String.pipe( - T.HttpLabel("environmentIdentifier"), - ), - identifier: S.String.pipe(T.HttpLabel("identifier")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/actions/{identifier}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteEnvironmentActionInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + environmentIdentifier: S.String.pipe(T.HttpLabel("environmentIdentifier")), + identifier: S.String.pipe(T.HttpLabel("identifier")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/actions/{identifier}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteEnvironmentActionInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteEnvironmentActionInput", +}) as any as S.Schema; export interface DeleteEnvironmentActionResponse {} -export const DeleteEnvironmentActionResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteEnvironmentActionResponse", - }) as any as S.Schema; +export const DeleteEnvironmentActionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteEnvironmentActionResponse", +}) as any as S.Schema; export interface DeleteEnvironmentBlueprintInput { domainIdentifier: string; identifier: string; } -export const DeleteEnvironmentBlueprintInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - identifier: S.String.pipe(T.HttpLabel("identifier")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/v2/domains/{domainIdentifier}/environment-blueprints/{identifier}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteEnvironmentBlueprintInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + identifier: S.String.pipe(T.HttpLabel("identifier")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/v2/domains/{domainIdentifier}/environment-blueprints/{identifier}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteEnvironmentBlueprintInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteEnvironmentBlueprintInput", +}) as any as S.Schema; export interface DeleteEnvironmentBlueprintResponse {} -export const DeleteEnvironmentBlueprintResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteEnvironmentBlueprintResponse", - }) as any as S.Schema; +export const DeleteEnvironmentBlueprintResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteEnvironmentBlueprintResponse", +}) as any as S.Schema; export interface DeleteEnvironmentProfileInput { domainIdentifier: string; identifier: string; } -export const DeleteEnvironmentProfileInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - identifier: S.String.pipe(T.HttpLabel("identifier")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/v2/domains/{domainIdentifier}/environment-profiles/{identifier}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteEnvironmentProfileInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + identifier: S.String.pipe(T.HttpLabel("identifier")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/v2/domains/{domainIdentifier}/environment-profiles/{identifier}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteEnvironmentProfileInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteEnvironmentProfileInput", +}) as any as S.Schema; export interface DeleteEnvironmentProfileResponse {} -export const DeleteEnvironmentProfileResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteEnvironmentProfileResponse", - }) as any as S.Schema; +export const DeleteEnvironmentProfileResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteEnvironmentProfileResponse", +}) as any as S.Schema; export interface DeleteLineageEventInput { domainIdentifier: string; identifier: string; @@ -5236,33 +5185,33 @@ export interface DeleteProjectMembershipInput { projectIdentifier: string; member: Member; } -export const DeleteProjectMembershipInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - projectIdentifier: S.String.pipe(T.HttpLabel("projectIdentifier")), - member: Member, - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/v2/domains/{domainIdentifier}/projects/{projectIdentifier}/deleteMembership", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteProjectMembershipInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + projectIdentifier: S.String.pipe(T.HttpLabel("projectIdentifier")), + member: Member, + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/v2/domains/{domainIdentifier}/projects/{projectIdentifier}/deleteMembership", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteProjectMembershipInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteProjectMembershipInput", +}) as any as S.Schema; export interface DeleteProjectMembershipOutput {} -export const DeleteProjectMembershipOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteProjectMembershipOutput", - }) as any as S.Schema; +export const DeleteProjectMembershipOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteProjectMembershipOutput", +}) as any as S.Schema; export interface DeleteProjectProfileInput { domainIdentifier: string; identifier: string; @@ -5297,27 +5246,26 @@ export interface DeleteSubscriptionGrantInput { domainIdentifier: string; identifier: string; } -export const DeleteSubscriptionGrantInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - identifier: S.String.pipe(T.HttpLabel("identifier")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/v2/domains/{domainIdentifier}/subscription-grants/{identifier}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteSubscriptionGrantInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + identifier: S.String.pipe(T.HttpLabel("identifier")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/v2/domains/{domainIdentifier}/subscription-grants/{identifier}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteSubscriptionGrantInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteSubscriptionGrantInput", +}) as any as S.Schema; export interface DeleteSubscriptionGrantOutput { id: string; createdBy: string; @@ -5332,89 +5280,86 @@ export interface DeleteSubscriptionGrantOutput { assets?: SubscribedAsset[]; subscriptionId?: string; } -export const DeleteSubscriptionGrantOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String, - createdBy: S.String, - updatedBy: S.optional(S.String), - domainId: S.String, - createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - updatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - environmentId: S.optional(S.String), - subscriptionTargetId: S.String, - grantedEntity: GrantedEntity, - status: SubscriptionGrantOverallStatus, - assets: S.optional(SubscribedAssets), - subscriptionId: S.optional(S.String), - }), - ).annotate({ - identifier: "DeleteSubscriptionGrantOutput", - }) as any as S.Schema; +export const DeleteSubscriptionGrantOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + createdBy: S.String, + updatedBy: S.optional(S.String), + domainId: S.String, + createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + updatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + environmentId: S.optional(S.String), + subscriptionTargetId: S.String, + grantedEntity: GrantedEntity, + status: SubscriptionGrantOverallStatus, + assets: S.optional(SubscribedAssets), + subscriptionId: S.optional(S.String), + }), +).annotate({ + identifier: "DeleteSubscriptionGrantOutput", +}) as any as S.Schema; export interface DeleteSubscriptionRequestInput { domainIdentifier: string; identifier: string; } -export const DeleteSubscriptionRequestInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - identifier: S.String.pipe(T.HttpLabel("identifier")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/v2/domains/{domainIdentifier}/subscription-requests/{identifier}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteSubscriptionRequestInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + identifier: S.String.pipe(T.HttpLabel("identifier")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/v2/domains/{domainIdentifier}/subscription-requests/{identifier}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteSubscriptionRequestInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteSubscriptionRequestInput", +}) as any as S.Schema; export interface DeleteSubscriptionRequestResponse {} -export const DeleteSubscriptionRequestResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteSubscriptionRequestResponse", - }) as any as S.Schema; +export const DeleteSubscriptionRequestResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteSubscriptionRequestResponse", +}) as any as S.Schema; export interface DeleteSubscriptionTargetInput { domainIdentifier: string; environmentIdentifier: string; identifier: string; } -export const DeleteSubscriptionTargetInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - environmentIdentifier: S.String.pipe( - T.HttpLabel("environmentIdentifier"), - ), - identifier: S.String.pipe(T.HttpLabel("identifier")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets/{identifier}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteSubscriptionTargetInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + environmentIdentifier: S.String.pipe(T.HttpLabel("environmentIdentifier")), + identifier: S.String.pipe(T.HttpLabel("identifier")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets/{identifier}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteSubscriptionTargetInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteSubscriptionTargetInput", +}) as any as S.Schema; export interface DeleteSubscriptionTargetResponse {} -export const DeleteSubscriptionTargetResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteSubscriptionTargetResponse", - }) as any as S.Schema; +export const DeleteSubscriptionTargetResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteSubscriptionTargetResponse", +}) as any as S.Schema; export type TimeSeriesEntityType = "ASSET" | "LISTING" | (string & {}); export const TimeSeriesEntityType = /*@__PURE__*/ S.String; export interface DeleteTimeSeriesDataPointsInput { @@ -5424,106 +5369,104 @@ export interface DeleteTimeSeriesDataPointsInput { formName: string; clientToken?: string; } -export const DeleteTimeSeriesDataPointsInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - entityIdentifier: S.String.pipe(T.HttpLabel("entityIdentifier")), - entityType: TimeSeriesEntityType.pipe(T.HttpLabel("entityType")), - formName: S.String.pipe(T.HttpQuery("formName")), - clientToken: S.optional(S.String).pipe( - T.HttpQuery("clientToken"), - T.IdempotencyToken(), - ), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/v2/domains/{domainIdentifier}/entities/{entityType}/{entityIdentifier}/time-series-data-points", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteTimeSeriesDataPointsInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + entityIdentifier: S.String.pipe(T.HttpLabel("entityIdentifier")), + entityType: TimeSeriesEntityType.pipe(T.HttpLabel("entityType")), + formName: S.String.pipe(T.HttpQuery("formName")), + clientToken: S.optional(S.String).pipe( + T.HttpQuery("clientToken"), + T.IdempotencyToken(), ), - ).annotate({ - identifier: "DeleteTimeSeriesDataPointsInput", - }) as any as S.Schema; + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/v2/domains/{domainIdentifier}/entities/{entityType}/{entityIdentifier}/time-series-data-points", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "DeleteTimeSeriesDataPointsInput", +}) as any as S.Schema; export interface DeleteTimeSeriesDataPointsOutput {} -export const DeleteTimeSeriesDataPointsOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteTimeSeriesDataPointsOutput", - }) as any as S.Schema; +export const DeleteTimeSeriesDataPointsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteTimeSeriesDataPointsOutput", +}) as any as S.Schema; export interface DisassociateEnvironmentRoleInput { domainIdentifier: string; environmentIdentifier: string; environmentRoleArn: string; } -export const DisassociateEnvironmentRoleInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - environmentIdentifier: S.String.pipe( - T.HttpLabel("environmentIdentifier"), - ), - environmentRoleArn: S.String.pipe(T.HttpLabel("environmentRoleArn")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/roles/{environmentRoleArn}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DisassociateEnvironmentRoleInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + environmentIdentifier: S.String.pipe(T.HttpLabel("environmentIdentifier")), + environmentRoleArn: S.String.pipe(T.HttpLabel("environmentRoleArn")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/roles/{environmentRoleArn}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DisassociateEnvironmentRoleInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DisassociateEnvironmentRoleInput", +}) as any as S.Schema; export interface DisassociateEnvironmentRoleOutput {} -export const DisassociateEnvironmentRoleOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DisassociateEnvironmentRoleOutput", - }) as any as S.Schema; +export const DisassociateEnvironmentRoleOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DisassociateEnvironmentRoleOutput", +}) as any as S.Schema; export interface DisassociateGovernedTermsInput { domainIdentifier: string; entityIdentifier: string; entityType: GovernedEntityType; governedGlossaryTerms: string[]; } -export const DisassociateGovernedTermsInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - entityIdentifier: S.String.pipe(T.HttpLabel("entityIdentifier")), - entityType: GovernedEntityType.pipe(T.HttpLabel("entityType")), - governedGlossaryTerms: GovernedGlossaryTerms, - }).pipe( - T.all( - T.Http({ - method: "PATCH", - uri: "/v2/domains/{domainIdentifier}/entities/{entityType}/{entityIdentifier}/disassociate-governed-terms", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DisassociateGovernedTermsInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + entityIdentifier: S.String.pipe(T.HttpLabel("entityIdentifier")), + entityType: GovernedEntityType.pipe(T.HttpLabel("entityType")), + governedGlossaryTerms: GovernedGlossaryTerms, + }).pipe( + T.all( + T.Http({ + method: "PATCH", + uri: "/v2/domains/{domainIdentifier}/entities/{entityType}/{entityIdentifier}/disassociate-governed-terms", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DisassociateGovernedTermsInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DisassociateGovernedTermsInput", +}) as any as S.Schema; export interface DisassociateGovernedTermsOutput {} -export const DisassociateGovernedTermsOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DisassociateGovernedTermsOutput", - }) as any as S.Schema; +export const DisassociateGovernedTermsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DisassociateGovernedTermsOutput", +}) as any as S.Schema; export interface GetAccountPoolInput { domainIdentifier: string; identifier: string; @@ -5666,15 +5609,15 @@ export const GetConnectionInput = /*@__PURE__*/ S.suspend(() => }) as any as S.Schema; export interface ConnectionCredentials { accessKeyId?: string; - secretAccessKey?: string; - sessionToken?: string; + secretAccessKey?: string | redacted.Redacted; + sessionToken?: string | redacted.Redacted; expiration?: Date; } export const ConnectionCredentials = /*@__PURE__*/ S.suspend(() => S.Struct({ accessKeyId: S.optional(S.String), - secretAccessKey: S.optional(S.String), - sessionToken: S.optional(S.String), + secretAccessKey: S.optional(SensitiveString), + sessionToken: S.optional(SensitiveString), expiration: S.optional( T.DateFromString.pipe(T.TimestampFormat("date-time")), ), @@ -5721,26 +5664,25 @@ export const GetConnectionOutput = /*@__PURE__*/ S.suspend(() => export interface GetDataExportConfigurationInput { domainIdentifier: string; } -export const GetDataExportConfigurationInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/v2/domains/{domainIdentifier}/data-export-configuration", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetDataExportConfigurationInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/v2/domains/{domainIdentifier}/data-export-configuration", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetDataExportConfigurationInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetDataExportConfigurationInput", +}) as any as S.Schema; export type ConfigurationStatus = "COMPLETED" | "FAILED" | (string & {}); export const ConfigurationStatus = /*@__PURE__*/ S.String; export interface EncryptionConfiguration { @@ -5763,19 +5705,18 @@ export interface GetDataExportConfigurationOutput { createdAt?: Date; updatedAt?: Date; } -export const GetDataExportConfigurationOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - isExportEnabled: S.optional(S.Boolean), - status: S.optional(ConfigurationStatus), - encryptionConfiguration: S.optional(EncryptionConfiguration), - s3TableBucketArn: S.optional(S.String), - createdAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - updatedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - }), - ).annotate({ - identifier: "GetDataExportConfigurationOutput", - }) as any as S.Schema; +export const GetDataExportConfigurationOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + isExportEnabled: S.optional(S.Boolean), + status: S.optional(ConfigurationStatus), + encryptionConfiguration: S.optional(EncryptionConfiguration), + s3TableBucketArn: S.optional(S.String), + createdAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + updatedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + }), +).annotate({ + identifier: "GetDataExportConfigurationOutput", +}) as any as S.Schema; export interface GetEnvironmentInput { domainIdentifier: string; identifier: string; @@ -5900,35 +5841,34 @@ export const GetEnvironmentActionOutput = /*@__PURE__*/ S.suspend(() => name: S.String, parameters: ActionParameters, description: S.optional(S.String), - }), -).annotate({ - identifier: "GetEnvironmentActionOutput", -}) as any as S.Schema; -export interface GetEnvironmentBlueprintInput { - domainIdentifier: string; - identifier: string; -} -export const GetEnvironmentBlueprintInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - identifier: S.String.pipe(T.HttpLabel("identifier")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/v2/domains/{domainIdentifier}/environment-blueprints/{identifier}", - }), - svc, - auth, - proto, - ver, - rules, - ), + }), +).annotate({ + identifier: "GetEnvironmentActionOutput", +}) as any as S.Schema; +export interface GetEnvironmentBlueprintInput { + domainIdentifier: string; + identifier: string; +} +export const GetEnvironmentBlueprintInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + identifier: S.String.pipe(T.HttpLabel("identifier")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/v2/domains/{domainIdentifier}/environment-blueprints/{identifier}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetEnvironmentBlueprintInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetEnvironmentBlueprintInput", +}) as any as S.Schema; export interface GetEnvironmentBlueprintOutput { id: string; name: string; @@ -5941,73 +5881,68 @@ export interface GetEnvironmentBlueprintOutput { createdAt?: Date; updatedAt?: Date; } -export const GetEnvironmentBlueprintOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String, - name: S.String, - description: S.optional(SensitiveString), - provider: S.String, - provisioningProperties: ProvisioningProperties, - deploymentProperties: S.optional(DeploymentProperties), - userParameters: S.optional(CustomParameterList), - glossaryTerms: S.optional(GlossaryTerms), - createdAt: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - updatedAt: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - }), - ).annotate({ - identifier: "GetEnvironmentBlueprintOutput", - }) as any as S.Schema; +export const GetEnvironmentBlueprintOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + name: S.String, + description: S.optional(SensitiveString), + provider: S.String, + provisioningProperties: ProvisioningProperties, + deploymentProperties: S.optional(DeploymentProperties), + userParameters: S.optional(CustomParameterList), + glossaryTerms: S.optional(GlossaryTerms), + createdAt: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + updatedAt: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + }), +).annotate({ + identifier: "GetEnvironmentBlueprintOutput", +}) as any as S.Schema; export interface GetEnvironmentCredentialsInput { domainIdentifier: string; environmentIdentifier: string; } -export const GetEnvironmentCredentialsInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - environmentIdentifier: S.String.pipe( - T.HttpLabel("environmentIdentifier"), - ), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/credentials", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetEnvironmentCredentialsInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + environmentIdentifier: S.String.pipe(T.HttpLabel("environmentIdentifier")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/credentials", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetEnvironmentCredentialsInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetEnvironmentCredentialsInput", +}) as any as S.Schema; export interface GetEnvironmentCredentialsOutput { accessKeyId?: string; - secretAccessKey?: string; - sessionToken?: string; + secretAccessKey?: string | redacted.Redacted; + sessionToken?: string | redacted.Redacted; expiration?: Date; } -export const GetEnvironmentCredentialsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - accessKeyId: S.optional(S.String), - secretAccessKey: S.optional(S.String), - sessionToken: S.optional(S.String), - expiration: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - }), - ).annotate({ - identifier: "GetEnvironmentCredentialsOutput", - }) as any as S.Schema; +export const GetEnvironmentCredentialsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + accessKeyId: S.optional(S.String), + secretAccessKey: S.optional(SensitiveString), + sessionToken: S.optional(SensitiveString), + expiration: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + }), +).annotate({ + identifier: "GetEnvironmentCredentialsOutput", +}) as any as S.Schema; export interface GetEnvironmentProfileInput { domainIdentifier: string; identifier: string; @@ -6046,29 +5981,28 @@ export interface GetEnvironmentProfileOutput { projectId?: string; userParameters?: CustomParameter[]; } -export const GetEnvironmentProfileOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String, - domainId: S.String, - awsAccountId: S.optional(S.String), - awsAccountRegion: S.optional(S.String), - createdBy: S.String, - createdAt: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - updatedAt: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - name: SensitiveString, - description: S.optional(SensitiveString), - environmentBlueprintId: S.String, - projectId: S.optional(S.String), - userParameters: S.optional(CustomParameterList), - }), - ).annotate({ - identifier: "GetEnvironmentProfileOutput", - }) as any as S.Schema; +export const GetEnvironmentProfileOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + domainId: S.String, + awsAccountId: S.optional(S.String), + awsAccountRegion: S.optional(S.String), + createdBy: S.String, + createdAt: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + updatedAt: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + name: SensitiveString, + description: S.optional(SensitiveString), + environmentBlueprintId: S.String, + projectId: S.optional(S.String), + userParameters: S.optional(CustomParameterList), + }), +).annotate({ + identifier: "GetEnvironmentProfileOutput", +}) as any as S.Schema; export interface GetGroupProfileInput { domainIdentifier: string; groupIdentifier: string; @@ -6171,8 +6105,9 @@ export const JobType = /*@__PURE__*/ S.String; export type JobRunMode = "SCHEDULED" | "ON_DEMAND" | (string & {}); export const JobRunMode = /*@__PURE__*/ S.String; export type FailedQueryProcessingErrorMessages = string[]; -export const FailedQueryProcessingErrorMessages = - /*@__PURE__*/ S.Array(S.String); +export const FailedQueryProcessingErrorMessages = /*@__PURE__*/ S.Array( + S.String, +); export interface LineageSqlQueryRunDetails { queryStartTime?: Date; queryEndTime?: Date; @@ -6629,27 +6564,26 @@ export interface GetSubscriptionRequestDetailsInput { domainIdentifier: string; identifier: string; } -export const GetSubscriptionRequestDetailsInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - identifier: S.String.pipe(T.HttpLabel("identifier")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/v2/domains/{domainIdentifier}/subscription-requests/{identifier}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetSubscriptionRequestDetailsInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + identifier: S.String.pipe(T.HttpLabel("identifier")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/v2/domains/{domainIdentifier}/subscription-requests/{identifier}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetSubscriptionRequestDetailsInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetSubscriptionRequestDetailsInput", +}) as any as S.Schema; export interface GetSubscriptionRequestDetailsOutput { id: string; createdBy: string; @@ -6666,27 +6600,26 @@ export interface GetSubscriptionRequestDetailsOutput { existingSubscriptionId?: string; metadataForms?: FormOutput[]; } -export const GetSubscriptionRequestDetailsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String, - createdBy: S.String, - updatedBy: S.optional(S.String), - domainId: S.String, - status: SubscriptionRequestStatus, - createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - updatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - requestReason: SensitiveString, - subscribedPrincipals: SubscribedPrincipals, - subscribedListings: SubscribedListings, - reviewerId: S.optional(S.String), - decisionComment: S.optional(SensitiveString), - existingSubscriptionId: S.optional(S.String), - metadataForms: S.optional(MetadataForms), - }), - ).annotate({ - identifier: "GetSubscriptionRequestDetailsOutput", - }) as any as S.Schema; +export const GetSubscriptionRequestDetailsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + createdBy: S.String, + updatedBy: S.optional(S.String), + domainId: S.String, + status: SubscriptionRequestStatus, + createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + updatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + requestReason: SensitiveString, + subscribedPrincipals: SubscribedPrincipals, + subscribedListings: SubscribedListings, + reviewerId: S.optional(S.String), + decisionComment: S.optional(SensitiveString), + existingSubscriptionId: S.optional(S.String), + metadataForms: S.optional(MetadataForms), + }), +).annotate({ + identifier: "GetSubscriptionRequestDetailsOutput", +}) as any as S.Schema; export interface GetSubscriptionTargetInput { domainIdentifier: string; environmentIdentifier: string; @@ -6731,29 +6664,28 @@ export interface GetSubscriptionTargetOutput { provider: string; subscriptionGrantCreationMode?: SubscriptionGrantCreationMode; } -export const GetSubscriptionTargetOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String, - authorizedPrincipals: AuthorizedPrincipalIdentifiers, - domainId: S.String, - projectId: S.String, - environmentId: S.String, - name: SensitiveString, - type: S.String, - createdBy: S.String, - updatedBy: S.optional(S.String), - createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - updatedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - manageAccessRole: S.optional(S.String), - applicableAssetTypes: ApplicableAssetTypes, - subscriptionTargetConfig: SubscriptionTargetForms, - provider: S.String, - subscriptionGrantCreationMode: S.optional(SubscriptionGrantCreationMode), - }), - ).annotate({ - identifier: "GetSubscriptionTargetOutput", - }) as any as S.Schema; +export const GetSubscriptionTargetOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + authorizedPrincipals: AuthorizedPrincipalIdentifiers, + domainId: S.String, + projectId: S.String, + environmentId: S.String, + name: SensitiveString, + type: S.String, + createdBy: S.String, + updatedBy: S.optional(S.String), + createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + updatedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + manageAccessRole: S.optional(S.String), + applicableAssetTypes: ApplicableAssetTypes, + subscriptionTargetConfig: SubscriptionTargetForms, + provider: S.String, + subscriptionGrantCreationMode: S.optional(SubscriptionGrantCreationMode), + }), +).annotate({ + identifier: "GetSubscriptionTargetOutput", +}) as any as S.Schema; export interface GetTimeSeriesDataPointInput { domainIdentifier: string; entityIdentifier: string; @@ -6761,30 +6693,29 @@ export interface GetTimeSeriesDataPointInput { identifier: string; formName: string; } -export const GetTimeSeriesDataPointInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - entityIdentifier: S.String.pipe(T.HttpLabel("entityIdentifier")), - entityType: TimeSeriesEntityType.pipe(T.HttpLabel("entityType")), - identifier: S.String.pipe(T.HttpLabel("identifier")), - formName: S.String.pipe(T.HttpQuery("formName")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/v2/domains/{domainIdentifier}/entities/{entityType}/{entityIdentifier}/time-series-data-points/{identifier}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetTimeSeriesDataPointInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + entityIdentifier: S.String.pipe(T.HttpLabel("entityIdentifier")), + entityType: TimeSeriesEntityType.pipe(T.HttpLabel("entityType")), + identifier: S.String.pipe(T.HttpLabel("identifier")), + formName: S.String.pipe(T.HttpQuery("formName")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/v2/domains/{domainIdentifier}/entities/{entityType}/{entityIdentifier}/time-series-data-points/{identifier}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetTimeSeriesDataPointInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetTimeSeriesDataPointInput", +}) as any as S.Schema; export interface TimeSeriesDataPointFormOutput { formName: string; typeIdentifier: string; @@ -6793,19 +6724,18 @@ export interface TimeSeriesDataPointFormOutput { content?: string; id?: string; } -export const TimeSeriesDataPointFormOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - formName: S.String, - typeIdentifier: S.String, - typeRevision: S.optional(S.String), - timestamp: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - content: S.optional(S.String), - id: S.optional(S.String), - }), - ).annotate({ - identifier: "TimeSeriesDataPointFormOutput", - }) as any as S.Schema; +export const TimeSeriesDataPointFormOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + formName: S.String, + typeIdentifier: S.String, + typeRevision: S.optional(S.String), + timestamp: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + content: S.optional(S.String), + id: S.optional(S.String), + }), +).annotate({ + identifier: "TimeSeriesDataPointFormOutput", +}) as any as S.Schema; export interface GetTimeSeriesDataPointOutput { domainId?: string; entityId?: string; @@ -6813,18 +6743,17 @@ export interface GetTimeSeriesDataPointOutput { formName?: string; form?: TimeSeriesDataPointFormOutput; } -export const GetTimeSeriesDataPointOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainId: S.optional(S.String), - entityId: S.optional(S.String), - entityType: S.optional(TimeSeriesEntityType), - formName: S.optional(S.String), - form: S.optional(TimeSeriesDataPointFormOutput), - }), - ).annotate({ - identifier: "GetTimeSeriesDataPointOutput", - }) as any as S.Schema; +export const GetTimeSeriesDataPointOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainId: S.optional(S.String), + entityId: S.optional(S.String), + entityType: S.optional(TimeSeriesEntityType), + formName: S.optional(S.String), + form: S.optional(TimeSeriesDataPointFormOutput), + }), +).annotate({ + identifier: "GetTimeSeriesDataPointOutput", +}) as any as S.Schema; export interface GetUserProfileInput { domainIdentifier: string; userIdentifier: string; @@ -6949,42 +6878,40 @@ export interface ListAccountsInAccountPoolInput { nextToken?: string; maxResults?: number; } -export const ListAccountsInAccountPoolInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - identifier: S.String.pipe(T.HttpLabel("identifier")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/v2/domains/{domainIdentifier}/account-pools/{identifier}/accounts", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListAccountsInAccountPoolInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + identifier: S.String.pipe(T.HttpLabel("identifier")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/v2/domains/{domainIdentifier}/account-pools/{identifier}/accounts", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListAccountsInAccountPoolInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListAccountsInAccountPoolInput", +}) as any as S.Schema; export interface ListAccountsInAccountPoolOutput { items?: AccountInfo[]; nextToken?: string; } -export const ListAccountsInAccountPoolOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - items: S.optional(AccountInfoList), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListAccountsInAccountPoolOutput", - }) as any as S.Schema; +export const ListAccountsInAccountPoolOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + items: S.optional(AccountInfoList), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListAccountsInAccountPoolOutput", +}) as any as S.Schema; export interface ListAssetFiltersInput { domainIdentifier: string; assetIdentifier: string; @@ -7205,29 +7132,28 @@ export interface ListDataProductRevisionsInput { maxResults?: number; nextToken?: string; } -export const ListDataProductRevisionsInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - identifier: S.String.pipe(T.HttpLabel("identifier")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/v2/domains/{domainIdentifier}/data-products/{identifier}/revisions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListDataProductRevisionsInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + identifier: S.String.pipe(T.HttpLabel("identifier")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/v2/domains/{domainIdentifier}/data-products/{identifier}/revisions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListDataProductRevisionsInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListDataProductRevisionsInput", +}) as any as S.Schema; export interface DataProductRevision { domainId?: string; id?: string; @@ -7252,12 +7178,11 @@ export interface ListDataProductRevisionsOutput { items: DataProductRevision[]; nextToken?: string; } -export const ListDataProductRevisionsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ items: DataProductRevisions, nextToken: S.optional(S.String) }), - ).annotate({ - identifier: "ListDataProductRevisionsOutput", - }) as any as S.Schema; +export const ListDataProductRevisionsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ items: DataProductRevisions, nextToken: S.optional(S.String) }), +).annotate({ + identifier: "ListDataProductRevisionsOutput", +}) as any as S.Schema; export type DataAssetActivityStatus = | "FAILED" | "PUBLISHING_FAILED" @@ -7276,30 +7201,29 @@ export interface ListDataSourceRunActivitiesInput { nextToken?: string; maxResults?: number; } -export const ListDataSourceRunActivitiesInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - identifier: S.String.pipe(T.HttpLabel("identifier")), - status: S.optional(DataAssetActivityStatus).pipe(T.HttpQuery("status")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/v2/domains/{domainIdentifier}/data-source-runs/{identifier}/activities", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListDataSourceRunActivitiesInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + identifier: S.String.pipe(T.HttpLabel("identifier")), + status: S.optional(DataAssetActivityStatus).pipe(T.HttpQuery("status")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/v2/domains/{domainIdentifier}/data-source-runs/{identifier}/activities", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListDataSourceRunActivitiesInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListDataSourceRunActivitiesInput", +}) as any as S.Schema; export type DataSourceErrorType = | "ACCESS_DENIED_EXCEPTION" | "CONFLICT_EXCEPTION" @@ -7372,15 +7296,11 @@ export interface ListDataSourceRunActivitiesOutput { items: DataSourceRunActivity[]; nextToken?: string; } -export const ListDataSourceRunActivitiesOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - items: DataSourceRunActivities, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListDataSourceRunActivitiesOutput", - }) as any as S.Schema; +export const ListDataSourceRunActivitiesOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ items: DataSourceRunActivities, nextToken: S.optional(S.String) }), +).annotate({ + identifier: "ListDataSourceRunActivitiesOutput", +}) as any as S.Schema; export interface ListEntityOwnersInput { domainIdentifier: string; entityType: DataZoneEntityType; @@ -7451,31 +7371,28 @@ export interface ListEnvironmentActionsInput { nextToken?: string; maxResults?: number; } -export const ListEnvironmentActionsInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - environmentIdentifier: S.String.pipe( - T.HttpLabel("environmentIdentifier"), - ), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/actions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListEnvironmentActionsInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + environmentIdentifier: S.String.pipe(T.HttpLabel("environmentIdentifier")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/actions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListEnvironmentActionsInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListEnvironmentActionsInput", +}) as any as S.Schema; export interface EnvironmentActionSummary { domainId: string; environmentId: string; @@ -7497,21 +7414,21 @@ export const EnvironmentActionSummary = /*@__PURE__*/ S.suspend(() => identifier: "EnvironmentActionSummary", }) as any as S.Schema; export type ListEnvironmentActionSummaries = EnvironmentActionSummary[]; -export const ListEnvironmentActionSummaries = - /*@__PURE__*/ S.Array(EnvironmentActionSummary); +export const ListEnvironmentActionSummaries = /*@__PURE__*/ S.Array( + EnvironmentActionSummary, +); export interface ListEnvironmentActionsOutput { items?: EnvironmentActionSummary[]; nextToken?: string; } -export const ListEnvironmentActionsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - items: S.optional(ListEnvironmentActionSummaries), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListEnvironmentActionsOutput", - }) as any as S.Schema; +export const ListEnvironmentActionsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + items: S.optional(ListEnvironmentActionSummaries), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListEnvironmentActionsOutput", +}) as any as S.Schema; export interface ListEnvironmentBlueprintsInput { domainIdentifier: string; maxResults?: number; @@ -7519,30 +7436,29 @@ export interface ListEnvironmentBlueprintsInput { name?: string; managed?: boolean; } -export const ListEnvironmentBlueprintsInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - name: S.optional(S.String).pipe(T.HttpQuery("name")), - managed: S.optional(S.Boolean).pipe(T.HttpQuery("managed")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/v2/domains/{domainIdentifier}/environment-blueprints", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListEnvironmentBlueprintsInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + name: S.optional(S.String).pipe(T.HttpQuery("name")), + managed: S.optional(S.Boolean).pipe(T.HttpQuery("managed")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/v2/domains/{domainIdentifier}/environment-blueprints", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListEnvironmentBlueprintsInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListEnvironmentBlueprintsInput", +}) as any as S.Schema; export interface EnvironmentBlueprintSummary { id: string; name: string; @@ -7552,40 +7468,39 @@ export interface EnvironmentBlueprintSummary { createdAt?: Date; updatedAt?: Date; } -export const EnvironmentBlueprintSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String, - name: S.String, - description: S.optional(SensitiveString), - provider: S.String, - provisioningProperties: ProvisioningProperties, - createdAt: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - updatedAt: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - }), - ).annotate({ - identifier: "EnvironmentBlueprintSummary", - }) as any as S.Schema; +export const EnvironmentBlueprintSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + name: S.String, + description: S.optional(SensitiveString), + provider: S.String, + provisioningProperties: ProvisioningProperties, + createdAt: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + updatedAt: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + }), +).annotate({ + identifier: "EnvironmentBlueprintSummary", +}) as any as S.Schema; export type EnvironmentBlueprintSummaries = EnvironmentBlueprintSummary[]; -export const EnvironmentBlueprintSummaries = - /*@__PURE__*/ S.Array(EnvironmentBlueprintSummary); +export const EnvironmentBlueprintSummaries = /*@__PURE__*/ S.Array( + EnvironmentBlueprintSummary, +); export interface ListEnvironmentBlueprintsOutput { items: EnvironmentBlueprintSummary[]; nextToken?: string; } -export const ListEnvironmentBlueprintsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - items: EnvironmentBlueprintSummaries, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListEnvironmentBlueprintsOutput", - }) as any as S.Schema; +export const ListEnvironmentBlueprintsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + items: EnvironmentBlueprintSummaries, + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListEnvironmentBlueprintsOutput", +}) as any as S.Schema; export interface ListEnvironmentProfilesInput { domainIdentifier: string; awsAccountId?: string; @@ -7595,40 +7510,39 @@ export interface ListEnvironmentProfilesInput { name?: string | redacted.Redacted; nextToken?: string; maxResults?: number; -} -export const ListEnvironmentProfilesInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - awsAccountId: S.optional(S.String).pipe(T.HttpQuery("awsAccountId")), - awsAccountRegion: S.optional(S.String).pipe( - T.HttpQuery("awsAccountRegion"), - ), - environmentBlueprintIdentifier: S.optional(S.String).pipe( - T.HttpQuery("environmentBlueprintIdentifier"), - ), - projectIdentifier: S.optional(S.String).pipe( - T.HttpQuery("projectIdentifier"), - ), - name: S.optional(SensitiveString).pipe(T.HttpQuery("name")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/v2/domains/{domainIdentifier}/environment-profiles", - }), - svc, - auth, - proto, - ver, - rules, - ), +} +export const ListEnvironmentProfilesInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + awsAccountId: S.optional(S.String).pipe(T.HttpQuery("awsAccountId")), + awsAccountRegion: S.optional(S.String).pipe( + T.HttpQuery("awsAccountRegion"), ), - ).annotate({ - identifier: "ListEnvironmentProfilesInput", - }) as any as S.Schema; + environmentBlueprintIdentifier: S.optional(S.String).pipe( + T.HttpQuery("environmentBlueprintIdentifier"), + ), + projectIdentifier: S.optional(S.String).pipe( + T.HttpQuery("projectIdentifier"), + ), + name: S.optional(SensitiveString).pipe(T.HttpQuery("name")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/v2/domains/{domainIdentifier}/environment-profiles", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "ListEnvironmentProfilesInput", +}) as any as S.Schema; export interface EnvironmentProfileSummary { id: string; domainId: string; @@ -7671,15 +7585,14 @@ export interface ListEnvironmentProfilesOutput { items: EnvironmentProfileSummary[]; nextToken?: string; } -export const ListEnvironmentProfilesOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - items: EnvironmentProfileSummaries, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListEnvironmentProfilesOutput", - }) as any as S.Schema; +export const ListEnvironmentProfilesOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + items: EnvironmentProfileSummaries, + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListEnvironmentProfilesOutput", +}) as any as S.Schema; export interface ListEnvironmentsInput { domainIdentifier: string; awsAccountId?: string; @@ -7985,37 +7898,36 @@ export interface ListLineageNodeHistoryInput { eventTimestampLTE?: Date; sortOrder?: SortOrder; } -export const ListLineageNodeHistoryInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - identifier: S.String.pipe(T.HttpLabel("identifier")), - direction: S.optional(EdgeDirection).pipe(T.HttpQuery("direction")), - eventTimestampGTE: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ).pipe(T.HttpQuery("timestampGTE")), - eventTimestampLTE: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ).pipe(T.HttpQuery("timestampLTE")), - sortOrder: S.optional(SortOrder).pipe(T.HttpQuery("sortOrder")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/v2/domains/{domainIdentifier}/lineage/nodes/{identifier}/history", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListLineageNodeHistoryInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + identifier: S.String.pipe(T.HttpLabel("identifier")), + direction: S.optional(EdgeDirection).pipe(T.HttpQuery("direction")), + eventTimestampGTE: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ).pipe(T.HttpQuery("timestampGTE")), + eventTimestampLTE: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ).pipe(T.HttpQuery("timestampLTE")), + sortOrder: S.optional(SortOrder).pipe(T.HttpQuery("sortOrder")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/v2/domains/{domainIdentifier}/lineage/nodes/{identifier}/history", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListLineageNodeHistoryInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListLineageNodeHistoryInput", +}) as any as S.Schema; export interface LineageNodeSummary { domainId: string; name?: string; @@ -8054,15 +7966,14 @@ export interface ListLineageNodeHistoryOutput { nodes?: LineageNodeSummary[]; nextToken?: string; } -export const ListLineageNodeHistoryOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - nodes: S.optional(LineageNodeSummaries), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListLineageNodeHistoryOutput", - }) as any as S.Schema; +export const ListLineageNodeHistoryOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + nodes: S.optional(LineageNodeSummaries), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListLineageNodeHistoryOutput", +}) as any as S.Schema; export type NotificationType = "TASK" | "EVENT" | (string & {}); export const NotificationType = /*@__PURE__*/ S.String; export type NotificationSubjects = string[]; @@ -8265,31 +8176,30 @@ export interface ListProjectMembershipsInput { nextToken?: string; maxResults?: number; } -export const ListProjectMembershipsInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - projectIdentifier: S.String.pipe(T.HttpLabel("projectIdentifier")), - sortBy: S.optional(SortFieldProject).pipe(T.HttpQuery("sortBy")), - sortOrder: S.optional(SortOrder).pipe(T.HttpQuery("sortOrder")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/v2/domains/{domainIdentifier}/projects/{projectIdentifier}/memberships", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListProjectMembershipsInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + projectIdentifier: S.String.pipe(T.HttpLabel("projectIdentifier")), + sortBy: S.optional(SortFieldProject).pipe(T.HttpQuery("sortBy")), + sortOrder: S.optional(SortOrder).pipe(T.HttpQuery("sortOrder")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/v2/domains/{domainIdentifier}/projects/{projectIdentifier}/memberships", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListProjectMembershipsInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListProjectMembershipsInput", +}) as any as S.Schema; export interface UserDetails { userId: string; } @@ -8322,12 +8232,11 @@ export interface ListProjectMembershipsOutput { members: ProjectMember[]; nextToken?: string; } -export const ListProjectMembershipsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ members: ProjectMembers, nextToken: S.optional(S.String) }), - ).annotate({ - identifier: "ListProjectMembershipsOutput", - }) as any as S.Schema; +export const ListProjectMembershipsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ members: ProjectMembers, nextToken: S.optional(S.String) }), +).annotate({ + identifier: "ListProjectMembershipsOutput", +}) as any as S.Schema; export interface ListProjectProfilesInput { domainIdentifier: string; name?: string | redacted.Redacted; @@ -8500,46 +8409,43 @@ export interface ListSubscriptionGrantsInput { maxResults?: number; nextToken?: string; } -export const ListSubscriptionGrantsInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - environmentId: S.optional(S.String).pipe(T.HttpQuery("environmentId")), - subscriptionTargetId: S.optional(S.String).pipe( - T.HttpQuery("subscriptionTargetId"), - ), - subscribedListingId: S.optional(S.String).pipe( - T.HttpQuery("subscribedListingId"), - ), - subscriptionId: S.optional(S.String).pipe(T.HttpQuery("subscriptionId")), - owningProjectId: S.optional(S.String).pipe( - T.HttpQuery("owningProjectId"), - ), - owningIamPrincipalArn: S.optional(S.String).pipe( - T.HttpQuery("owningIamPrincipalArn"), - ), - owningUserId: S.optional(S.String).pipe(T.HttpQuery("owningUserId")), - owningGroupId: S.optional(S.String).pipe(T.HttpQuery("owningGroupId")), - sortBy: S.optional(SortKey).pipe(T.HttpQuery("sortBy")), - sortOrder: S.optional(SortOrder).pipe(T.HttpQuery("sortOrder")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/v2/domains/{domainIdentifier}/subscription-grants", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListSubscriptionGrantsInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + environmentId: S.optional(S.String).pipe(T.HttpQuery("environmentId")), + subscriptionTargetId: S.optional(S.String).pipe( + T.HttpQuery("subscriptionTargetId"), ), - ).annotate({ - identifier: "ListSubscriptionGrantsInput", - }) as any as S.Schema; + subscribedListingId: S.optional(S.String).pipe( + T.HttpQuery("subscribedListingId"), + ), + subscriptionId: S.optional(S.String).pipe(T.HttpQuery("subscriptionId")), + owningProjectId: S.optional(S.String).pipe(T.HttpQuery("owningProjectId")), + owningIamPrincipalArn: S.optional(S.String).pipe( + T.HttpQuery("owningIamPrincipalArn"), + ), + owningUserId: S.optional(S.String).pipe(T.HttpQuery("owningUserId")), + owningGroupId: S.optional(S.String).pipe(T.HttpQuery("owningGroupId")), + sortBy: S.optional(SortKey).pipe(T.HttpQuery("sortBy")), + sortOrder: S.optional(SortOrder).pipe(T.HttpQuery("sortOrder")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/v2/domains/{domainIdentifier}/subscription-grants", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "ListSubscriptionGrantsInput", +}) as any as S.Schema; export interface SubscriptionGrantSummary { id: string; createdBy: string; @@ -8580,12 +8486,11 @@ export interface ListSubscriptionGrantsOutput { items: SubscriptionGrantSummary[]; nextToken?: string; } -export const ListSubscriptionGrantsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ items: SubscriptionGrants, nextToken: S.optional(S.String) }), - ).annotate({ - identifier: "ListSubscriptionGrantsOutput", - }) as any as S.Schema; +export const ListSubscriptionGrantsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ items: SubscriptionGrants, nextToken: S.optional(S.String) }), +).annotate({ + identifier: "ListSubscriptionGrantsOutput", +}) as any as S.Schema; export interface ListSubscriptionRequestsInput { domainIdentifier: string; status?: SubscriptionRequestStatus; @@ -8600,45 +8505,42 @@ export interface ListSubscriptionRequestsInput { maxResults?: number; nextToken?: string; } -export const ListSubscriptionRequestsInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - status: S.optional(SubscriptionRequestStatus).pipe(T.HttpQuery("status")), - subscribedListingId: S.optional(S.String).pipe( - T.HttpQuery("subscribedListingId"), - ), - owningProjectId: S.optional(S.String).pipe( - T.HttpQuery("owningProjectId"), - ), - owningIamPrincipalArn: S.optional(S.String).pipe( - T.HttpQuery("owningIamPrincipalArn"), - ), - approverProjectId: S.optional(S.String).pipe( - T.HttpQuery("approverProjectId"), - ), - owningUserId: S.optional(S.String).pipe(T.HttpQuery("owningUserId")), - owningGroupId: S.optional(S.String).pipe(T.HttpQuery("owningGroupId")), - sortBy: S.optional(SortKey).pipe(T.HttpQuery("sortBy")), - sortOrder: S.optional(SortOrder).pipe(T.HttpQuery("sortOrder")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/v2/domains/{domainIdentifier}/subscription-requests", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListSubscriptionRequestsInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + status: S.optional(SubscriptionRequestStatus).pipe(T.HttpQuery("status")), + subscribedListingId: S.optional(S.String).pipe( + T.HttpQuery("subscribedListingId"), ), - ).annotate({ - identifier: "ListSubscriptionRequestsInput", - }) as any as S.Schema; + owningProjectId: S.optional(S.String).pipe(T.HttpQuery("owningProjectId")), + owningIamPrincipalArn: S.optional(S.String).pipe( + T.HttpQuery("owningIamPrincipalArn"), + ), + approverProjectId: S.optional(S.String).pipe( + T.HttpQuery("approverProjectId"), + ), + owningUserId: S.optional(S.String).pipe(T.HttpQuery("owningUserId")), + owningGroupId: S.optional(S.String).pipe(T.HttpQuery("owningGroupId")), + sortBy: S.optional(SortKey).pipe(T.HttpQuery("sortBy")), + sortOrder: S.optional(SortOrder).pipe(T.HttpQuery("sortOrder")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/v2/domains/{domainIdentifier}/subscription-requests", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "ListSubscriptionRequestsInput", +}) as any as S.Schema; export interface MetadataFormSummary { formName?: string; typeName: string | redacted.Redacted; @@ -8699,12 +8601,11 @@ export interface ListSubscriptionRequestsOutput { items: SubscriptionRequestSummary[]; nextToken?: string; } -export const ListSubscriptionRequestsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ items: SubscriptionRequests, nextToken: S.optional(S.String) }), - ).annotate({ - identifier: "ListSubscriptionRequestsOutput", - }) as any as S.Schema; +export const ListSubscriptionRequestsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ items: SubscriptionRequests, nextToken: S.optional(S.String) }), +).annotate({ + identifier: "ListSubscriptionRequestsOutput", +}) as any as S.Schema; export interface ListSubscriptionsInput { domainIdentifier: string; subscriptionRequestIdentifier?: string; @@ -8797,44 +8698,41 @@ export interface ListSubscriptionsOutput { } export const ListSubscriptionsOutput = /*@__PURE__*/ S.suspend(() => S.Struct({ items: Subscriptions, nextToken: S.optional(S.String) }), -).annotate({ - identifier: "ListSubscriptionsOutput", -}) as any as S.Schema; -export interface ListSubscriptionTargetsInput { - domainIdentifier: string; - environmentIdentifier: string; - sortBy?: SortKey; - sortOrder?: SortOrder; - maxResults?: number; - nextToken?: string; -} -export const ListSubscriptionTargetsInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - environmentIdentifier: S.String.pipe( - T.HttpLabel("environmentIdentifier"), - ), - sortBy: S.optional(SortKey).pipe(T.HttpQuery("sortBy")), - sortOrder: S.optional(SortOrder).pipe(T.HttpQuery("sortOrder")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets", - }), - svc, - auth, - proto, - ver, - rules, - ), +).annotate({ + identifier: "ListSubscriptionsOutput", +}) as any as S.Schema; +export interface ListSubscriptionTargetsInput { + domainIdentifier: string; + environmentIdentifier: string; + sortBy?: SortKey; + sortOrder?: SortOrder; + maxResults?: number; + nextToken?: string; +} +export const ListSubscriptionTargetsInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + environmentIdentifier: S.String.pipe(T.HttpLabel("environmentIdentifier")), + sortBy: S.optional(SortKey).pipe(T.HttpQuery("sortBy")), + sortOrder: S.optional(SortOrder).pipe(T.HttpQuery("sortOrder")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListSubscriptionTargetsInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListSubscriptionTargetsInput", +}) as any as S.Schema; export interface SubscriptionTargetSummary { id: string; authorizedPrincipals: string[]; @@ -8883,12 +8781,11 @@ export interface ListSubscriptionTargetsOutput { items: SubscriptionTargetSummary[]; nextToken?: string; } -export const ListSubscriptionTargetsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ items: SubscriptionTargets, nextToken: S.optional(S.String) }), - ).annotate({ - identifier: "ListSubscriptionTargetsOutput", - }) as any as S.Schema; +export const ListSubscriptionTargetsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ items: SubscriptionTargets, nextToken: S.optional(S.String) }), +).annotate({ + identifier: "ListSubscriptionTargetsOutput", +}) as any as S.Schema; export interface ListTagsForResourceRequest { resourceArn: string; } @@ -8909,10 +8806,11 @@ export const ListTagsForResourceRequest = /*@__PURE__*/ S.suspend(() => export interface ListTagsForResourceResponse { tags?: { [key: string]: string | undefined }; } -export const ListTagsForResourceResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({ tags: S.optional(Tags) })).annotate({ - identifier: "ListTagsForResourceResponse", - }) as any as S.Schema; +export const ListTagsForResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ tags: S.optional(Tags) }), +).annotate({ + identifier: "ListTagsForResourceResponse", +}) as any as S.Schema; export interface ListTimeSeriesDataPointsInput { domainIdentifier: string; entityIdentifier: string; @@ -8923,37 +8821,36 @@ export interface ListTimeSeriesDataPointsInput { nextToken?: string; maxResults?: number; } -export const ListTimeSeriesDataPointsInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - entityIdentifier: S.String.pipe(T.HttpLabel("entityIdentifier")), - entityType: TimeSeriesEntityType.pipe(T.HttpLabel("entityType")), - formName: S.String.pipe(T.HttpQuery("formName")), - startedAt: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ).pipe(T.HttpQuery("startedAt")), - endedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))).pipe( - T.HttpQuery("endedAt"), - ), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/v2/domains/{domainIdentifier}/entities/{entityType}/{entityIdentifier}/time-series-data-points", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListTimeSeriesDataPointsInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + entityIdentifier: S.String.pipe(T.HttpLabel("entityIdentifier")), + entityType: TimeSeriesEntityType.pipe(T.HttpLabel("entityType")), + formName: S.String.pipe(T.HttpQuery("formName")), + startedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))).pipe( + T.HttpQuery("startedAt"), ), - ).annotate({ - identifier: "ListTimeSeriesDataPointsInput", - }) as any as S.Schema; + endedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))).pipe( + T.HttpQuery("endedAt"), + ), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/v2/domains/{domainIdentifier}/entities/{entityType}/{entityIdentifier}/time-series-data-points", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "ListTimeSeriesDataPointsInput", +}) as any as S.Schema; export interface TimeSeriesDataPointSummaryFormOutput { formName: string; typeIdentifier: string; @@ -8962,8 +8859,8 @@ export interface TimeSeriesDataPointSummaryFormOutput { contentSummary?: string; id?: string; } -export const TimeSeriesDataPointSummaryFormOutput = - /*@__PURE__*/ S.suspend(() => +export const TimeSeriesDataPointSummaryFormOutput = /*@__PURE__*/ S.suspend( + () => S.Struct({ formName: S.String, typeIdentifier: S.String, @@ -8972,26 +8869,26 @@ export const TimeSeriesDataPointSummaryFormOutput = contentSummary: S.optional(S.String), id: S.optional(S.String), }), - ).annotate({ - identifier: "TimeSeriesDataPointSummaryFormOutput", - }) as any as S.Schema; +).annotate({ + identifier: "TimeSeriesDataPointSummaryFormOutput", +}) as any as S.Schema; export type TimeSeriesDataPointSummaryFormOutputList = TimeSeriesDataPointSummaryFormOutput[]; -export const TimeSeriesDataPointSummaryFormOutputList = - /*@__PURE__*/ S.Array(TimeSeriesDataPointSummaryFormOutput); +export const TimeSeriesDataPointSummaryFormOutputList = /*@__PURE__*/ S.Array( + TimeSeriesDataPointSummaryFormOutput, +); export interface ListTimeSeriesDataPointsOutput { items?: TimeSeriesDataPointSummaryFormOutput[]; nextToken?: string; } -export const ListTimeSeriesDataPointsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - items: S.optional(TimeSeriesDataPointSummaryFormOutputList), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListTimeSeriesDataPointsOutput", - }) as any as S.Schema; +export const ListTimeSeriesDataPointsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + items: S.optional(TimeSeriesDataPointSummaryFormOutputList), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListTimeSeriesDataPointsOutput", +}) as any as S.Schema; export interface PostLineageEventInput { domainIdentifier: string; event: T.StreamingInputBody; @@ -9037,21 +8934,21 @@ export interface TimeSeriesDataPointFormInput { timestamp: Date; content?: string; } -export const TimeSeriesDataPointFormInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - formName: S.String, - typeIdentifier: S.String, - typeRevision: S.optional(S.String), - timestamp: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - content: S.optional(S.String), - }), - ).annotate({ - identifier: "TimeSeriesDataPointFormInput", - }) as any as S.Schema; +export const TimeSeriesDataPointFormInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + formName: S.String, + typeIdentifier: S.String, + typeRevision: S.optional(S.String), + timestamp: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + content: S.optional(S.String), + }), +).annotate({ + identifier: "TimeSeriesDataPointFormInput", +}) as any as S.Schema; export type TimeSeriesDataPointFormInputList = TimeSeriesDataPointFormInput[]; -export const TimeSeriesDataPointFormInputList = - /*@__PURE__*/ S.Array(TimeSeriesDataPointFormInput); +export const TimeSeriesDataPointFormInputList = /*@__PURE__*/ S.Array( + TimeSeriesDataPointFormInput, +); export interface PostTimeSeriesDataPointsInput { domainIdentifier: string; entityIdentifier: string; @@ -9059,84 +8956,83 @@ export interface PostTimeSeriesDataPointsInput { forms: TimeSeriesDataPointFormInput[]; clientToken?: string; } -export const PostTimeSeriesDataPointsInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - entityIdentifier: S.String.pipe(T.HttpLabel("entityIdentifier")), - entityType: TimeSeriesEntityType.pipe(T.HttpLabel("entityType")), - forms: TimeSeriesDataPointFormInputList, - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/v2/domains/{domainIdentifier}/entities/{entityType}/{entityIdentifier}/time-series-data-points", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const PostTimeSeriesDataPointsInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + entityIdentifier: S.String.pipe(T.HttpLabel("entityIdentifier")), + entityType: TimeSeriesEntityType.pipe(T.HttpLabel("entityType")), + forms: TimeSeriesDataPointFormInputList, + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/v2/domains/{domainIdentifier}/entities/{entityType}/{entityIdentifier}/time-series-data-points", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "PostTimeSeriesDataPointsInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "PostTimeSeriesDataPointsInput", +}) as any as S.Schema; export type TimeSeriesDataPointFormOutputList = TimeSeriesDataPointFormOutput[]; -export const TimeSeriesDataPointFormOutputList = - /*@__PURE__*/ S.Array(TimeSeriesDataPointFormOutput); +export const TimeSeriesDataPointFormOutputList = /*@__PURE__*/ S.Array( + TimeSeriesDataPointFormOutput, +); export interface PostTimeSeriesDataPointsOutput { domainId?: string; entityId?: string; entityType?: TimeSeriesEntityType; forms?: TimeSeriesDataPointFormOutput[]; } -export const PostTimeSeriesDataPointsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainId: S.optional(S.String), - entityId: S.optional(S.String), - entityType: S.optional(TimeSeriesEntityType), - forms: S.optional(TimeSeriesDataPointFormOutputList), - }), - ).annotate({ - identifier: "PostTimeSeriesDataPointsOutput", - }) as any as S.Schema; +export const PostTimeSeriesDataPointsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainId: S.optional(S.String), + entityId: S.optional(S.String), + entityType: S.optional(TimeSeriesEntityType), + forms: S.optional(TimeSeriesDataPointFormOutputList), + }), +).annotate({ + identifier: "PostTimeSeriesDataPointsOutput", +}) as any as S.Schema; export interface PutDataExportConfigurationInput { domainIdentifier: string; enableExport: boolean; encryptionConfiguration?: EncryptionConfiguration; clientToken?: string; } -export const PutDataExportConfigurationInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - enableExport: S.Boolean, - encryptionConfiguration: S.optional(EncryptionConfiguration), - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/v2/domains/{domainIdentifier}/data-export-configuration", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const PutDataExportConfigurationInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + enableExport: S.Boolean, + encryptionConfiguration: S.optional(EncryptionConfiguration), + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/v2/domains/{domainIdentifier}/data-export-configuration", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "PutDataExportConfigurationInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "PutDataExportConfigurationInput", +}) as any as S.Schema; export interface PutDataExportConfigurationOutput {} -export const PutDataExportConfigurationOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "PutDataExportConfigurationOutput", - }) as any as S.Schema; +export const PutDataExportConfigurationOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "PutDataExportConfigurationOutput", +}) as any as S.Schema; export type RelationType = "LINEAGE" | (string & {}); export const RelationType = /*@__PURE__*/ S.String; export type RelationDirection = "IN" | "OUT" | (string & {}); @@ -9380,11 +9276,7 @@ export interface RejectPredictionsOutput { assetRevision: string; } export const RejectPredictionsOutput = /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainId: S.String, - assetId: S.String, - assetRevision: S.String, - }), + S.Struct({ domainId: S.String, assetId: S.String, assetRevision: S.String }), ).annotate({ identifier: "RejectPredictionsOutput", }) as any as S.Schema; @@ -9393,28 +9285,27 @@ export interface RejectSubscriptionRequestInput { identifier: string; decisionComment?: string | redacted.Redacted; } -export const RejectSubscriptionRequestInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - identifier: S.String.pipe(T.HttpLabel("identifier")), - decisionComment: S.optional(SensitiveString), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/v2/domains/{domainIdentifier}/subscription-requests/{identifier}/reject", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const RejectSubscriptionRequestInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + identifier: S.String.pipe(T.HttpLabel("identifier")), + decisionComment: S.optional(SensitiveString), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/v2/domains/{domainIdentifier}/subscription-requests/{identifier}/reject", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "RejectSubscriptionRequestInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "RejectSubscriptionRequestInput", +}) as any as S.Schema; export interface RejectSubscriptionRequestOutput { id: string; createdBy: string; @@ -9431,27 +9322,26 @@ export interface RejectSubscriptionRequestOutput { existingSubscriptionId?: string; metadataForms?: FormOutput[]; } -export const RejectSubscriptionRequestOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String, - createdBy: S.String, - updatedBy: S.optional(S.String), - domainId: S.String, - status: SubscriptionRequestStatus, - createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - updatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - requestReason: SensitiveString, - subscribedPrincipals: SubscribedPrincipals, - subscribedListings: SubscribedListings, - reviewerId: S.optional(S.String), - decisionComment: S.optional(SensitiveString), - existingSubscriptionId: S.optional(S.String), - metadataForms: S.optional(MetadataForms), - }), - ).annotate({ - identifier: "RejectSubscriptionRequestOutput", - }) as any as S.Schema; +export const RejectSubscriptionRequestOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + createdBy: S.String, + updatedBy: S.optional(S.String), + domainId: S.String, + status: SubscriptionRequestStatus, + createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + updatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + requestReason: SensitiveString, + subscribedPrincipals: SubscribedPrincipals, + subscribedListings: SubscribedListings, + reviewerId: S.optional(S.String), + decisionComment: S.optional(SensitiveString), + existingSubscriptionId: S.optional(S.String), + metadataForms: S.optional(MetadataForms), + }), +).annotate({ + identifier: "RejectSubscriptionRequestOutput", +}) as any as S.Schema; export interface RemoveEntityOwnerInput { domainIdentifier: string; entityType: DataZoneEntityType; @@ -9614,8 +9504,9 @@ export type SearchOutputAdditionalAttribute = export const SearchOutputAdditionalAttribute = /*@__PURE__*/ S.String; export type SearchOutputAdditionalAttributes = SearchOutputAdditionalAttribute[]; -export const SearchOutputAdditionalAttributes = - /*@__PURE__*/ S.Array(SearchOutputAdditionalAttribute); +export const SearchOutputAdditionalAttributes = /*@__PURE__*/ S.Array( + SearchOutputAdditionalAttribute, +); export interface SearchInput { domainIdentifier: string; owningProjectIdentifier?: string; @@ -9694,12 +9585,11 @@ export const MatchRationale = /*@__PURE__*/ S.Array(MatchRationaleItem); export interface GlossaryItemAdditionalAttributes { matchRationale?: MatchRationaleItem[]; } -export const GlossaryItemAdditionalAttributes = - /*@__PURE__*/ S.suspend(() => - S.Struct({ matchRationale: S.optional(MatchRationale) }), - ).annotate({ - identifier: "GlossaryItemAdditionalAttributes", - }) as any as S.Schema; +export const GlossaryItemAdditionalAttributes = /*@__PURE__*/ S.suspend(() => + S.Struct({ matchRationale: S.optional(MatchRationale) }), +).annotate({ + identifier: "GlossaryItemAdditionalAttributes", +}) as any as S.Schema; export interface GlossaryItem { domainId: string; id: string; @@ -9745,12 +9635,11 @@ export const GlossaryTermStatus = /*@__PURE__*/ S.String; export interface GlossaryTermItemAdditionalAttributes { matchRationale?: MatchRationaleItem[]; } -export const GlossaryTermItemAdditionalAttributes = - /*@__PURE__*/ S.suspend(() => - S.Struct({ matchRationale: S.optional(MatchRationale) }), - ).annotate({ - identifier: "GlossaryTermItemAdditionalAttributes", - }) as any as S.Schema; +export const GlossaryTermItemAdditionalAttributes = /*@__PURE__*/ S.suspend( + () => S.Struct({ matchRationale: S.optional(MatchRationale) }), +).annotate({ + identifier: "GlossaryTermItemAdditionalAttributes", +}) as any as S.Schema; export interface GlossaryTermItem { domainId: string; glossaryId: string; @@ -9793,19 +9682,18 @@ export interface AssetItemAdditionalAttributes { latestTimeSeriesDataPointFormsOutput?: TimeSeriesDataPointSummaryFormOutput[]; matchRationale?: MatchRationaleItem[]; } -export const AssetItemAdditionalAttributes = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - formsOutput: S.optional(FormOutputList), - readOnlyFormsOutput: S.optional(FormOutputList), - latestTimeSeriesDataPointFormsOutput: S.optional( - TimeSeriesDataPointSummaryFormOutputList, - ), - matchRationale: S.optional(MatchRationale), - }), - ).annotate({ - identifier: "AssetItemAdditionalAttributes", - }) as any as S.Schema; +export const AssetItemAdditionalAttributes = /*@__PURE__*/ S.suspend(() => + S.Struct({ + formsOutput: S.optional(FormOutputList), + readOnlyFormsOutput: S.optional(FormOutputList), + latestTimeSeriesDataPointFormsOutput: S.optional( + TimeSeriesDataPointSummaryFormOutputList, + ), + matchRationale: S.optional(MatchRationale), + }), +).annotate({ + identifier: "AssetItemAdditionalAttributes", +}) as any as S.Schema; export interface AssetItem { domainId: string; identifier: string; @@ -9847,12 +9735,11 @@ export const AssetItem = /*@__PURE__*/ S.suspend(() => export interface DataProductItemAdditionalAttributes { matchRationale?: MatchRationaleItem[]; } -export const DataProductItemAdditionalAttributes = - /*@__PURE__*/ S.suspend(() => - S.Struct({ matchRationale: S.optional(MatchRationale) }), - ).annotate({ - identifier: "DataProductItemAdditionalAttributes", - }) as any as S.Schema; +export const DataProductItemAdditionalAttributes = /*@__PURE__*/ S.suspend(() => + S.Struct({ matchRationale: S.optional(MatchRationale) }), +).annotate({ + identifier: "DataProductItemAdditionalAttributes", +}) as any as S.Schema; export interface DataProductResultItem { domainId: string; id: string; @@ -10056,8 +9943,8 @@ export interface AssetListingItemAdditionalAttributes { matchRationale?: MatchRationaleItem[]; latestTimeSeriesDataPointForms?: TimeSeriesDataPointSummaryFormOutput[]; } -export const AssetListingItemAdditionalAttributes = - /*@__PURE__*/ S.suspend(() => +export const AssetListingItemAdditionalAttributes = /*@__PURE__*/ S.suspend( + () => S.Struct({ forms: S.optional(S.String), matchRationale: S.optional(MatchRationale), @@ -10065,9 +9952,9 @@ export const AssetListingItemAdditionalAttributes = TimeSeriesDataPointSummaryFormOutputList, ), }), - ).annotate({ - identifier: "AssetListingItemAdditionalAttributes", - }) as any as S.Schema; +).annotate({ + identifier: "AssetListingItemAdditionalAttributes", +}) as any as S.Schema; export interface AssetListingItem { listingId?: string; listingRevision?: string; @@ -10758,17 +10645,14 @@ export interface AuthenticationConfigurationPatch { secretArn?: string; basicAuthenticationCredentials?: BasicAuthenticationCredentials; } -export const AuthenticationConfigurationPatch = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - secretArn: S.optional(S.String), - basicAuthenticationCredentials: S.optional( - BasicAuthenticationCredentials, - ), - }), - ).annotate({ - identifier: "AuthenticationConfigurationPatch", - }) as any as S.Schema; +export const AuthenticationConfigurationPatch = /*@__PURE__*/ S.suspend(() => + S.Struct({ + secretArn: S.optional(S.String), + basicAuthenticationCredentials: S.optional(BasicAuthenticationCredentials), + }), +).annotate({ + identifier: "AuthenticationConfigurationPatch", +}) as any as S.Schema; export interface GlueConnectionPatch { description?: string; connectionProperties?: { [key: string]: string | undefined }; @@ -11200,33 +11084,30 @@ export interface UpdateEnvironmentActionInput { name?: string; description?: string; } -export const UpdateEnvironmentActionInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - environmentIdentifier: S.String.pipe( - T.HttpLabel("environmentIdentifier"), - ), - identifier: S.String.pipe(T.HttpLabel("identifier")), - parameters: S.optional(ActionParameters), - name: S.optional(S.String), - description: S.optional(S.String), - }).pipe( - T.all( - T.Http({ - method: "PATCH", - uri: "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/actions/{identifier}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateEnvironmentActionInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + environmentIdentifier: S.String.pipe(T.HttpLabel("environmentIdentifier")), + identifier: S.String.pipe(T.HttpLabel("identifier")), + parameters: S.optional(ActionParameters), + name: S.optional(S.String), + description: S.optional(S.String), + }).pipe( + T.all( + T.Http({ + method: "PATCH", + uri: "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/actions/{identifier}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateEnvironmentActionInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateEnvironmentActionInput", +}) as any as S.Schema; export interface UpdateEnvironmentActionOutput { domainId: string; environmentId: string; @@ -11235,19 +11116,18 @@ export interface UpdateEnvironmentActionOutput { parameters: ActionParameters; description?: string; } -export const UpdateEnvironmentActionOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainId: S.String, - environmentId: S.String, - id: S.String, - name: S.String, - parameters: ActionParameters, - description: S.optional(S.String), - }), - ).annotate({ - identifier: "UpdateEnvironmentActionOutput", - }) as any as S.Schema; +export const UpdateEnvironmentActionOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainId: S.String, + environmentId: S.String, + id: S.String, + name: S.String, + parameters: ActionParameters, + description: S.optional(S.String), + }), +).annotate({ + identifier: "UpdateEnvironmentActionOutput", +}) as any as S.Schema; export interface UpdateEnvironmentBlueprintInput { domainIdentifier: string; identifier: string; @@ -11255,30 +11135,29 @@ export interface UpdateEnvironmentBlueprintInput { provisioningProperties?: ProvisioningProperties; userParameters?: CustomParameter[]; } -export const UpdateEnvironmentBlueprintInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - identifier: S.String.pipe(T.HttpLabel("identifier")), - description: S.optional(S.String), - provisioningProperties: S.optional(ProvisioningProperties), - userParameters: S.optional(CustomParameterList), - }).pipe( - T.all( - T.Http({ - method: "PATCH", - uri: "/v2/domains/{domainIdentifier}/environment-blueprints/{identifier}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateEnvironmentBlueprintInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + identifier: S.String.pipe(T.HttpLabel("identifier")), + description: S.optional(S.String), + provisioningProperties: S.optional(ProvisioningProperties), + userParameters: S.optional(CustomParameterList), + }).pipe( + T.all( + T.Http({ + method: "PATCH", + uri: "/v2/domains/{domainIdentifier}/environment-blueprints/{identifier}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateEnvironmentBlueprintInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateEnvironmentBlueprintInput", +}) as any as S.Schema; export interface UpdateEnvironmentBlueprintOutput { id: string; name: string; @@ -11291,27 +11170,26 @@ export interface UpdateEnvironmentBlueprintOutput { createdAt?: Date; updatedAt?: Date; } -export const UpdateEnvironmentBlueprintOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String, - name: S.String, - description: S.optional(SensitiveString), - provider: S.String, - provisioningProperties: ProvisioningProperties, - deploymentProperties: S.optional(DeploymentProperties), - userParameters: S.optional(CustomParameterList), - glossaryTerms: S.optional(GlossaryTerms), - createdAt: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - updatedAt: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - }), - ).annotate({ - identifier: "UpdateEnvironmentBlueprintOutput", - }) as any as S.Schema; +export const UpdateEnvironmentBlueprintOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + name: S.String, + description: S.optional(SensitiveString), + provider: S.String, + provisioningProperties: ProvisioningProperties, + deploymentProperties: S.optional(DeploymentProperties), + userParameters: S.optional(CustomParameterList), + glossaryTerms: S.optional(GlossaryTerms), + createdAt: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + updatedAt: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + }), +).annotate({ + identifier: "UpdateEnvironmentBlueprintOutput", +}) as any as S.Schema; export interface UpdateEnvironmentProfileInput { domainIdentifier: string; identifier: string; @@ -11321,32 +11199,31 @@ export interface UpdateEnvironmentProfileInput { awsAccountId?: string; awsAccountRegion?: string; } -export const UpdateEnvironmentProfileInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - identifier: S.String.pipe(T.HttpLabel("identifier")), - name: S.optional(SensitiveString), - description: S.optional(S.String), - userParameters: S.optional(EnvironmentParametersList), - awsAccountId: S.optional(S.String), - awsAccountRegion: S.optional(S.String), - }).pipe( - T.all( - T.Http({ - method: "PATCH", - uri: "/v2/domains/{domainIdentifier}/environment-profiles/{identifier}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateEnvironmentProfileInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + identifier: S.String.pipe(T.HttpLabel("identifier")), + name: S.optional(SensitiveString), + description: S.optional(S.String), + userParameters: S.optional(EnvironmentParametersList), + awsAccountId: S.optional(S.String), + awsAccountRegion: S.optional(S.String), + }).pipe( + T.all( + T.Http({ + method: "PATCH", + uri: "/v2/domains/{domainIdentifier}/environment-profiles/{identifier}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateEnvironmentProfileInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateEnvironmentProfileInput", +}) as any as S.Schema; export interface UpdateEnvironmentProfileOutput { id: string; domainId: string; @@ -11361,29 +11238,28 @@ export interface UpdateEnvironmentProfileOutput { projectId?: string; userParameters?: CustomParameter[]; } -export const UpdateEnvironmentProfileOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String, - domainId: S.String, - awsAccountId: S.optional(S.String), - awsAccountRegion: S.optional(S.String), - createdBy: S.String, - createdAt: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - updatedAt: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - name: SensitiveString, - description: S.optional(SensitiveString), - environmentBlueprintId: S.String, - projectId: S.optional(S.String), - userParameters: S.optional(CustomParameterList), - }), - ).annotate({ - identifier: "UpdateEnvironmentProfileOutput", - }) as any as S.Schema; +export const UpdateEnvironmentProfileOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + domainId: S.String, + awsAccountId: S.optional(S.String), + awsAccountRegion: S.optional(S.String), + createdBy: S.String, + createdAt: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + updatedAt: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + name: SensitiveString, + description: S.optional(SensitiveString), + environmentBlueprintId: S.String, + projectId: S.optional(S.String), + userParameters: S.optional(CustomParameterList), + }), +).annotate({ + identifier: "UpdateEnvironmentProfileOutput", +}) as any as S.Schema; export interface UpdateGroupProfileInput { domainIdentifier: string; groupIdentifier: string; @@ -11598,34 +11474,34 @@ export interface UpdateRootDomainUnitOwnerInput { newOwner: string; clientToken?: string; } -export const UpdateRootDomainUnitOwnerInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - currentOwner: S.String, - newOwner: S.String, - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ - method: "PATCH", - uri: "/v2/domains/{domainIdentifier}/root-domain-unit-owner", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateRootDomainUnitOwnerInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + currentOwner: S.String, + newOwner: S.String, + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ + method: "PATCH", + uri: "/v2/domains/{domainIdentifier}/root-domain-unit-owner", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateRootDomainUnitOwnerInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateRootDomainUnitOwnerInput", +}) as any as S.Schema; export interface UpdateRootDomainUnitOwnerOutput {} -export const UpdateRootDomainUnitOwnerOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateRootDomainUnitOwnerOutput", - }) as any as S.Schema; +export const UpdateRootDomainUnitOwnerOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "UpdateRootDomainUnitOwnerOutput", +}) as any as S.Schema; export interface UpdateSubscriptionGrantStatusInput { domainIdentifier: string; identifier: string; @@ -11634,31 +11510,30 @@ export interface UpdateSubscriptionGrantStatusInput { failureCause?: FailureCause; targetName?: string; } -export const UpdateSubscriptionGrantStatusInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - identifier: S.String.pipe(T.HttpLabel("identifier")), - assetIdentifier: S.String.pipe(T.HttpLabel("assetIdentifier")), - status: SubscriptionGrantStatus, - failureCause: S.optional(FailureCause), - targetName: S.optional(S.String), - }).pipe( - T.all( - T.Http({ - method: "PATCH", - uri: "/v2/domains/{domainIdentifier}/subscription-grants/{identifier}/status/{assetIdentifier}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateSubscriptionGrantStatusInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + identifier: S.String.pipe(T.HttpLabel("identifier")), + assetIdentifier: S.String.pipe(T.HttpLabel("assetIdentifier")), + status: SubscriptionGrantStatus, + failureCause: S.optional(FailureCause), + targetName: S.optional(S.String), + }).pipe( + T.all( + T.Http({ + method: "PATCH", + uri: "/v2/domains/{domainIdentifier}/subscription-grants/{identifier}/status/{assetIdentifier}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateSubscriptionGrantStatusInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateSubscriptionGrantStatusInput", +}) as any as S.Schema; export interface UpdateSubscriptionGrantStatusOutput { id: string; createdBy: string; @@ -11671,54 +11546,52 @@ export interface UpdateSubscriptionGrantStatusOutput { grantedEntity: GrantedEntity; status: SubscriptionGrantOverallStatus; assets?: SubscribedAsset[]; - subscriptionId?: string; -} -export const UpdateSubscriptionGrantStatusOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String, - createdBy: S.String, - updatedBy: S.optional(S.String), - domainId: S.String, - createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - updatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - environmentId: S.optional(S.String), - subscriptionTargetId: S.String, - grantedEntity: GrantedEntity, - status: SubscriptionGrantOverallStatus, - assets: S.optional(SubscribedAssets), - subscriptionId: S.optional(S.String), - }), - ).annotate({ - identifier: "UpdateSubscriptionGrantStatusOutput", - }) as any as S.Schema; + subscriptionId?: string; +} +export const UpdateSubscriptionGrantStatusOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + createdBy: S.String, + updatedBy: S.optional(S.String), + domainId: S.String, + createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + updatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + environmentId: S.optional(S.String), + subscriptionTargetId: S.String, + grantedEntity: GrantedEntity, + status: SubscriptionGrantOverallStatus, + assets: S.optional(SubscribedAssets), + subscriptionId: S.optional(S.String), + }), +).annotate({ + identifier: "UpdateSubscriptionGrantStatusOutput", +}) as any as S.Schema; export interface UpdateSubscriptionRequestInput { domainIdentifier: string; identifier: string; requestReason: string | redacted.Redacted; } -export const UpdateSubscriptionRequestInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - identifier: S.String.pipe(T.HttpLabel("identifier")), - requestReason: SensitiveString, - }).pipe( - T.all( - T.Http({ - method: "PATCH", - uri: "/v2/domains/{domainIdentifier}/subscription-requests/{identifier}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateSubscriptionRequestInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + identifier: S.String.pipe(T.HttpLabel("identifier")), + requestReason: SensitiveString, + }).pipe( + T.all( + T.Http({ + method: "PATCH", + uri: "/v2/domains/{domainIdentifier}/subscription-requests/{identifier}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateSubscriptionRequestInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateSubscriptionRequestInput", +}) as any as S.Schema; export interface UpdateSubscriptionRequestOutput { id: string; createdBy: string; @@ -11735,27 +11608,26 @@ export interface UpdateSubscriptionRequestOutput { existingSubscriptionId?: string; metadataForms?: FormOutput[]; } -export const UpdateSubscriptionRequestOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String, - createdBy: S.String, - updatedBy: S.optional(S.String), - domainId: S.String, - status: SubscriptionRequestStatus, - createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - updatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - requestReason: SensitiveString, - subscribedPrincipals: SubscribedPrincipals, - subscribedListings: SubscribedListings, - reviewerId: S.optional(S.String), - decisionComment: S.optional(SensitiveString), - existingSubscriptionId: S.optional(S.String), - metadataForms: S.optional(MetadataForms), - }), - ).annotate({ - identifier: "UpdateSubscriptionRequestOutput", - }) as any as S.Schema; +export const UpdateSubscriptionRequestOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + createdBy: S.String, + updatedBy: S.optional(S.String), + domainId: S.String, + status: SubscriptionRequestStatus, + createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + updatedAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + requestReason: SensitiveString, + subscribedPrincipals: SubscribedPrincipals, + subscribedListings: SubscribedListings, + reviewerId: S.optional(S.String), + decisionComment: S.optional(SensitiveString), + existingSubscriptionId: S.optional(S.String), + metadataForms: S.optional(MetadataForms), + }), +).annotate({ + identifier: "UpdateSubscriptionRequestOutput", +}) as any as S.Schema; export interface UpdateSubscriptionTargetInput { domainIdentifier: string; environmentIdentifier: string; @@ -11768,37 +11640,34 @@ export interface UpdateSubscriptionTargetInput { provider?: string; subscriptionGrantCreationMode?: SubscriptionGrantCreationMode; } -export const UpdateSubscriptionTargetInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - environmentIdentifier: S.String.pipe( - T.HttpLabel("environmentIdentifier"), - ), - identifier: S.String.pipe(T.HttpLabel("identifier")), - name: S.optional(SensitiveString), - authorizedPrincipals: S.optional(AuthorizedPrincipalIdentifiers), - applicableAssetTypes: S.optional(ApplicableAssetTypes), - subscriptionTargetConfig: S.optional(SubscriptionTargetForms), - manageAccessRole: S.optional(S.String), - provider: S.optional(S.String), - subscriptionGrantCreationMode: S.optional(SubscriptionGrantCreationMode), - }).pipe( - T.all( - T.Http({ - method: "PATCH", - uri: "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets/{identifier}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateSubscriptionTargetInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + environmentIdentifier: S.String.pipe(T.HttpLabel("environmentIdentifier")), + identifier: S.String.pipe(T.HttpLabel("identifier")), + name: S.optional(SensitiveString), + authorizedPrincipals: S.optional(AuthorizedPrincipalIdentifiers), + applicableAssetTypes: S.optional(ApplicableAssetTypes), + subscriptionTargetConfig: S.optional(SubscriptionTargetForms), + manageAccessRole: S.optional(S.String), + provider: S.optional(S.String), + subscriptionGrantCreationMode: S.optional(SubscriptionGrantCreationMode), + }).pipe( + T.all( + T.Http({ + method: "PATCH", + uri: "/v2/domains/{domainIdentifier}/environments/{environmentIdentifier}/subscription-targets/{identifier}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateSubscriptionTargetInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateSubscriptionTargetInput", +}) as any as S.Schema; export interface UpdateSubscriptionTargetOutput { id: string; authorizedPrincipals: string[]; @@ -11817,29 +11686,28 @@ export interface UpdateSubscriptionTargetOutput { provider: string; subscriptionGrantCreationMode?: SubscriptionGrantCreationMode; } -export const UpdateSubscriptionTargetOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String, - authorizedPrincipals: AuthorizedPrincipalIdentifiers, - domainId: S.String, - projectId: S.String, - environmentId: S.String, - name: SensitiveString, - type: S.String, - createdBy: S.String, - updatedBy: S.optional(S.String), - createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - updatedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - manageAccessRole: S.optional(S.String), - applicableAssetTypes: ApplicableAssetTypes, - subscriptionTargetConfig: SubscriptionTargetForms, - provider: S.String, - subscriptionGrantCreationMode: S.optional(SubscriptionGrantCreationMode), - }), - ).annotate({ - identifier: "UpdateSubscriptionTargetOutput", - }) as any as S.Schema; +export const UpdateSubscriptionTargetOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + authorizedPrincipals: AuthorizedPrincipalIdentifiers, + domainId: S.String, + projectId: S.String, + environmentId: S.String, + name: SensitiveString, + type: S.String, + createdBy: S.String, + updatedBy: S.optional(S.String), + createdAt: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + updatedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + manageAccessRole: S.optional(S.String), + applicableAssetTypes: ApplicableAssetTypes, + subscriptionTargetConfig: SubscriptionTargetForms, + provider: S.String, + subscriptionGrantCreationMode: S.optional(SubscriptionGrantCreationMode), + }), +).annotate({ + identifier: "UpdateSubscriptionTargetOutput", +}) as any as S.Schema; export interface UpdateUserProfileInput { domainIdentifier: string; userIdentifier: string; @@ -11891,12 +11759,11 @@ export const UpdateUserProfileOutput = /*@__PURE__*/ S.suspend(() => export interface BusinessNameGenerationConfiguration { enabled?: boolean; } -export const BusinessNameGenerationConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ enabled: S.optional(S.Boolean) }), - ).annotate({ - identifier: "BusinessNameGenerationConfiguration", - }) as any as S.Schema; +export const BusinessNameGenerationConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ enabled: S.optional(S.Boolean) }), +).annotate({ + identifier: "BusinessNameGenerationConfiguration", +}) as any as S.Schema; export interface PredictionConfiguration { businessNameGeneration?: BusinessNameGenerationConfiguration; } @@ -12572,33 +12439,32 @@ export interface CreateDataProductRevisionInput { formsInput?: FormInput[]; clientToken?: string; } -export const CreateDataProductRevisionInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - identifier: S.String.pipe(T.HttpLabel("identifier")), - name: SensitiveString, - description: S.optional(SensitiveString), - glossaryTerms: S.optional(GlossaryTerms), - items: S.optional(DataProductItems), - formsInput: S.optional(FormInputList), - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/v2/domains/{domainIdentifier}/data-products/{identifier}/revisions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateDataProductRevisionInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + identifier: S.String.pipe(T.HttpLabel("identifier")), + name: SensitiveString, + description: S.optional(SensitiveString), + glossaryTerms: S.optional(GlossaryTerms), + items: S.optional(DataProductItems), + formsInput: S.optional(FormInputList), + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/v2/domains/{domainIdentifier}/data-products/{identifier}/revisions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateDataProductRevisionInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateDataProductRevisionInput", +}) as any as S.Schema; export interface CreateDataProductRevisionOutput { domainId: string; id: string; @@ -12615,29 +12481,28 @@ export interface CreateDataProductRevisionOutput { firstRevisionCreatedAt?: Date; firstRevisionCreatedBy?: string; } -export const CreateDataProductRevisionOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainId: S.String, - id: S.String, - revision: S.String, - owningProjectId: S.String, - name: SensitiveString, - status: DataProductStatus, - description: S.optional(SensitiveString), - glossaryTerms: S.optional(GlossaryTerms), - items: S.optional(DataProductItems), - formsOutput: S.optional(FormOutputList), - createdAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - createdBy: S.optional(S.String), - firstRevisionCreatedAt: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - firstRevisionCreatedBy: S.optional(S.String), - }), - ).annotate({ - identifier: "CreateDataProductRevisionOutput", - }) as any as S.Schema; +export const CreateDataProductRevisionOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainId: S.String, + id: S.String, + revision: S.String, + owningProjectId: S.String, + name: SensitiveString, + status: DataProductStatus, + description: S.optional(SensitiveString), + glossaryTerms: S.optional(GlossaryTerms), + items: S.optional(DataProductItems), + formsOutput: S.optional(FormOutputList), + createdAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + createdBy: S.optional(S.String), + firstRevisionCreatedAt: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + firstRevisionCreatedBy: S.optional(S.String), + }), +).annotate({ + identifier: "CreateDataProductRevisionOutput", +}) as any as S.Schema; export type FilterExpressionType = "INCLUDE" | "EXCLUDE" | (string & {}); export const FilterExpressionType = /*@__PURE__*/ S.String; export interface FilterExpression { @@ -12656,19 +12521,19 @@ export interface RelationalFilterConfiguration { schemaName?: string; filterExpressions?: FilterExpression[]; } -export const RelationalFilterConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - databaseName: S.String, - schemaName: S.optional(S.String), - filterExpressions: S.optional(FilterExpressions), - }), - ).annotate({ - identifier: "RelationalFilterConfiguration", - }) as any as S.Schema; +export const RelationalFilterConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + databaseName: S.String, + schemaName: S.optional(S.String), + filterExpressions: S.optional(FilterExpressions), + }), +).annotate({ + identifier: "RelationalFilterConfiguration", +}) as any as S.Schema; export type RelationalFilterConfigurations = RelationalFilterConfiguration[]; -export const RelationalFilterConfigurations = - /*@__PURE__*/ S.Array(RelationalFilterConfiguration); +export const RelationalFilterConfigurations = /*@__PURE__*/ S.Array( + RelationalFilterConfiguration, +); export interface GlueRunConfigurationInput { dataAccessRole?: string; relationalFilterConfigurations: RelationalFilterConfiguration[]; @@ -12688,12 +12553,11 @@ export const GlueRunConfigurationInput = /*@__PURE__*/ S.suspend(() => export interface RedshiftCredentialConfiguration { secretManagerArn: string; } -export const RedshiftCredentialConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ secretManagerArn: S.String }), - ).annotate({ - identifier: "RedshiftCredentialConfiguration", - }) as any as S.Schema; +export const RedshiftCredentialConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ secretManagerArn: S.String }), +).annotate({ + identifier: "RedshiftCredentialConfiguration", +}) as any as S.Schema; export interface RedshiftClusterStorage { clusterName: string; } @@ -12729,19 +12593,18 @@ export interface RedshiftRunConfigurationInput { redshiftCredentialConfiguration?: RedshiftCredentialConfiguration; redshiftStorage?: RedshiftStorage; } -export const RedshiftRunConfigurationInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - dataAccessRole: S.optional(S.String), - relationalFilterConfigurations: RelationalFilterConfigurations, - redshiftCredentialConfiguration: S.optional( - RedshiftCredentialConfiguration, - ), - redshiftStorage: S.optional(RedshiftStorage), - }), - ).annotate({ - identifier: "RedshiftRunConfigurationInput", - }) as any as S.Schema; +export const RedshiftRunConfigurationInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + dataAccessRole: S.optional(S.String), + relationalFilterConfigurations: RelationalFilterConfigurations, + redshiftCredentialConfiguration: S.optional( + RedshiftCredentialConfiguration, + ), + redshiftStorage: S.optional(RedshiftStorage), + }), +).annotate({ + identifier: "RedshiftRunConfigurationInput", +}) as any as S.Schema; export type TrackingAssetArns = string[]; export const TrackingAssetArns = /*@__PURE__*/ S.Array(S.String); export type TrackingAssets = { [key: string]: string[] | undefined }; @@ -12752,12 +12615,11 @@ export const TrackingAssets = /*@__PURE__*/ S.Record( export interface SageMakerRunConfigurationInput { trackingAssets: { [key: string]: string[] | undefined }; } -export const SageMakerRunConfigurationInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ trackingAssets: TrackingAssets }), - ).annotate({ - identifier: "SageMakerRunConfigurationInput", - }) as any as S.Schema; +export const SageMakerRunConfigurationInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ trackingAssets: TrackingAssets }), +).annotate({ + identifier: "SageMakerRunConfigurationInput", +}) as any as S.Schema; export type DataSourceConfigurationInput = | { glueRunConfiguration: GlueRunConfigurationInput; @@ -12782,12 +12644,11 @@ export const DataSourceConfigurationInput = /*@__PURE__*/ S.Union([ export interface RecommendationConfiguration { enableBusinessNameGeneration?: boolean; } -export const RecommendationConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ enableBusinessNameGeneration: S.optional(S.Boolean) }), - ).annotate({ - identifier: "RecommendationConfiguration", - }) as any as S.Schema; +export const RecommendationConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ enableBusinessNameGeneration: S.optional(S.Boolean) }), +).annotate({ + identifier: "RecommendationConfiguration", +}) as any as S.Schema; export type EnableSetting = "ENABLED" | "DISABLED" | (string & {}); export const EnableSetting = /*@__PURE__*/ S.String; export type Timezone = @@ -12953,36 +12814,34 @@ export interface RedshiftRunConfigurationOutput { redshiftCredentialConfiguration?: RedshiftCredentialConfiguration; redshiftStorage: RedshiftStorage; } -export const RedshiftRunConfigurationOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - accountId: S.optional(S.String), - region: S.optional(S.String), - dataAccessRole: S.optional(S.String), - relationalFilterConfigurations: RelationalFilterConfigurations, - redshiftCredentialConfiguration: S.optional( - RedshiftCredentialConfiguration, - ), - redshiftStorage: RedshiftStorage, - }), - ).annotate({ - identifier: "RedshiftRunConfigurationOutput", - }) as any as S.Schema; +export const RedshiftRunConfigurationOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + accountId: S.optional(S.String), + region: S.optional(S.String), + dataAccessRole: S.optional(S.String), + relationalFilterConfigurations: RelationalFilterConfigurations, + redshiftCredentialConfiguration: S.optional( + RedshiftCredentialConfiguration, + ), + redshiftStorage: RedshiftStorage, + }), +).annotate({ + identifier: "RedshiftRunConfigurationOutput", +}) as any as S.Schema; export interface SageMakerRunConfigurationOutput { accountId?: string; region?: string; trackingAssets: { [key: string]: string[] | undefined }; } -export const SageMakerRunConfigurationOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - accountId: S.optional(S.String), - region: S.optional(S.String), - trackingAssets: TrackingAssets, - }), - ).annotate({ - identifier: "SageMakerRunConfigurationOutput", - }) as any as S.Schema; +export const SageMakerRunConfigurationOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + accountId: S.optional(S.String), + region: S.optional(S.String), + trackingAssets: TrackingAssets, + }), +).annotate({ + identifier: "SageMakerRunConfigurationOutput", +}) as any as S.Schema; export type DataSourceConfigurationOutput = | { glueRunConfiguration: GlueRunConfigurationOutput; @@ -12999,12 +12858,11 @@ export type DataSourceConfigurationOutput = redshiftRunConfiguration?: never; sageMakerRunConfiguration: SageMakerRunConfigurationOutput; }; -export const DataSourceConfigurationOutput = - /*@__PURE__*/ S.Union([ - S.Struct({ glueRunConfiguration: GlueRunConfigurationOutput }), - S.Struct({ redshiftRunConfiguration: RedshiftRunConfigurationOutput }), - S.Struct({ sageMakerRunConfiguration: SageMakerRunConfigurationOutput }), - ]); +export const DataSourceConfigurationOutput = /*@__PURE__*/ S.Union([ + S.Struct({ glueRunConfiguration: GlueRunConfigurationOutput }), + S.Struct({ redshiftRunConfiguration: RedshiftRunConfigurationOutput }), + S.Struct({ sageMakerRunConfiguration: SageMakerRunConfigurationOutput }), +]); export type DataSourceRunStatus = | "REQUESTED" | "RUNNING" @@ -13134,12 +12992,11 @@ export const GlueSelfGrantStatusOutput = /*@__PURE__*/ S.suspend(() => export interface RedshiftSelfGrantStatusOutput { selfGrantStatusDetails: SelfGrantStatusDetail[]; } -export const RedshiftSelfGrantStatusOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ selfGrantStatusDetails: SelfGrantStatusDetails }), - ).annotate({ - identifier: "RedshiftSelfGrantStatusOutput", - }) as any as S.Schema; +export const RedshiftSelfGrantStatusOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ selfGrantStatusDetails: SelfGrantStatusDetails }), +).annotate({ + identifier: "RedshiftSelfGrantStatusOutput", +}) as any as S.Schema; export type SelfGrantStatusOutput = | { glueSelfGrantStatus: GlueSelfGrantStatusOutput; @@ -13623,12 +13480,11 @@ export const LineageImportStatus = /*@__PURE__*/ S.String; export interface DataSourceRunLineageSummary { importStatus?: LineageImportStatus; } -export const DataSourceRunLineageSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ importStatus: S.optional(LineageImportStatus) }), - ).annotate({ - identifier: "DataSourceRunLineageSummary", - }) as any as S.Schema; +export const DataSourceRunLineageSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ importStatus: S.optional(LineageImportStatus) }), +).annotate({ + identifier: "DataSourceRunLineageSummary", +}) as any as S.Schema; export interface GetDataSourceRunOutput { domainId: string; dataSourceId: string; @@ -13741,12 +13597,9 @@ export const DataSourceRunSummaries = export interface ListDataSourceRunsOutput { items: DataSourceRunSummary[]; nextToken?: string; -} -export const ListDataSourceRunsOutput = /*@__PURE__*/ S.suspend(() => - S.Struct({ - items: DataSourceRunSummaries, - nextToken: S.optional(S.String), - }), +} +export const ListDataSourceRunsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ items: DataSourceRunSummaries, nextToken: S.optional(S.String) }), ).annotate({ identifier: "ListDataSourceRunsOutput", }) as any as S.Schema; @@ -14282,31 +14135,30 @@ export interface ListDomainUnitsForParentInput { maxResults?: number; nextToken?: string; } -export const ListDomainUnitsForParentInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - parentDomainUnitIdentifier: S.String.pipe( - T.HttpQuery("parentDomainUnitIdentifier"), - ), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/v2/domains/{domainIdentifier}/domain-units", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListDomainUnitsForParentInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + parentDomainUnitIdentifier: S.String.pipe( + T.HttpQuery("parentDomainUnitIdentifier"), ), - ).annotate({ - identifier: "ListDomainUnitsForParentInput", - }) as any as S.Schema; + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/v2/domains/{domainIdentifier}/domain-units", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "ListDomainUnitsForParentInput", +}) as any as S.Schema; export interface DomainUnitSummary { name: string; id: string; @@ -14322,12 +14174,11 @@ export interface ListDomainUnitsForParentOutput { items: DomainUnitSummary[]; nextToken?: string; } -export const ListDomainUnitsForParentOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ items: DomainUnitSummaries, nextToken: S.optional(S.String) }), - ).annotate({ - identifier: "ListDomainUnitsForParentOutput", - }) as any as S.Schema; +export const ListDomainUnitsForParentOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ items: DomainUnitSummaries, nextToken: S.optional(S.String) }), +).annotate({ + identifier: "ListDomainUnitsForParentOutput", +}) as any as S.Schema; export type EnabledRegionList = string[]; export const EnabledRegionList = /*@__PURE__*/ S.Array(S.String); export type RegionalParameter = { [key: string]: string | undefined }; @@ -14345,8 +14196,10 @@ export const RegionalParameterMap = /*@__PURE__*/ S.Record( export type ResourceConfigurationParameterMap = { [key: string]: string | undefined; }; -export const ResourceConfigurationParameterMap = - /*@__PURE__*/ S.Record(S.String, S.String.pipe(S.optional)); +export const ResourceConfigurationParameterMap = /*@__PURE__*/ S.Record( + S.String, + S.String.pipe(S.optional), +); export interface PutResourceConfiguration { name: string; description?: string; @@ -14393,8 +14246,9 @@ export const ProvisioningConfiguration = /*@__PURE__*/ S.Union([ S.Struct({ lakeFormationConfiguration: LakeFormationConfiguration }), ]); export type ProvisioningConfigurationList = ProvisioningConfiguration[]; -export const ProvisioningConfigurationList = - /*@__PURE__*/ S.Array(ProvisioningConfiguration); +export const ProvisioningConfigurationList = /*@__PURE__*/ S.Array( + ProvisioningConfiguration, +); export interface PutEnvironmentBlueprintConfigurationInput { domainIdentifier: string; environmentBlueprintIdentifier: string; @@ -14644,8 +14498,8 @@ export interface EnvironmentBlueprintConfigurationItem { resourceConfigurations?: ResourceConfiguration[]; provisioningConfigurations?: ProvisioningConfiguration[]; } -export const EnvironmentBlueprintConfigurationItem = - /*@__PURE__*/ S.suspend(() => +export const EnvironmentBlueprintConfigurationItem = /*@__PURE__*/ S.suspend( + () => S.Struct({ domainId: S.String, environmentBlueprintId: S.String, @@ -14664,13 +14518,14 @@ export const EnvironmentBlueprintConfigurationItem = resourceConfigurations: S.optional(ResourceConfigurations), provisioningConfigurations: S.optional(ProvisioningConfigurationList), }), - ).annotate({ - identifier: "EnvironmentBlueprintConfigurationItem", - }) as any as S.Schema; +).annotate({ + identifier: "EnvironmentBlueprintConfigurationItem", +}) as any as S.Schema; export type EnvironmentBlueprintConfigurations = EnvironmentBlueprintConfigurationItem[]; -export const EnvironmentBlueprintConfigurations = - /*@__PURE__*/ S.Array(EnvironmentBlueprintConfigurationItem); +export const EnvironmentBlueprintConfigurations = /*@__PURE__*/ S.Array( + EnvironmentBlueprintConfigurationItem, +); export interface ListEnvironmentBlueprintConfigurationsOutput { items?: EnvironmentBlueprintConfigurationItem[]; nextToken?: string; @@ -15404,16 +15259,15 @@ export interface MetadataGenerationRunTarget { identifier: string; revision?: string; } -export const MetadataGenerationRunTarget = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - type: MetadataGenerationTargetType, - identifier: S.String, - revision: S.optional(S.String), - }), - ).annotate({ - identifier: "MetadataGenerationRunTarget", - }) as any as S.Schema; +export const MetadataGenerationRunTarget = /*@__PURE__*/ S.suspend(() => + S.Struct({ + type: MetadataGenerationTargetType, + identifier: S.String, + revision: S.optional(S.String), + }), +).annotate({ + identifier: "MetadataGenerationRunTarget", +}) as any as S.Schema; export interface StartMetadataGenerationRunInput { domainIdentifier: string; type?: MetadataGenerationRunType; @@ -15422,31 +15276,30 @@ export interface StartMetadataGenerationRunInput { clientToken?: string; owningProjectIdentifier: string; } -export const StartMetadataGenerationRunInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - type: S.optional(MetadataGenerationRunType), - types: S.optional(MetadataGenerationRunTypes), - target: MetadataGenerationRunTarget, - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - owningProjectIdentifier: S.String, - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/v2/domains/{domainIdentifier}/metadata-generation-runs", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const StartMetadataGenerationRunInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + type: S.optional(MetadataGenerationRunType), + types: S.optional(MetadataGenerationRunTypes), + target: MetadataGenerationRunTarget, + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + owningProjectIdentifier: S.String, + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/v2/domains/{domainIdentifier}/metadata-generation-runs", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "StartMetadataGenerationRunInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "StartMetadataGenerationRunInput", +}) as any as S.Schema; export type MetadataGenerationRunStatus = | "SUBMITTED" | "IN_PROGRESS" @@ -15466,66 +15319,64 @@ export interface StartMetadataGenerationRunOutput { createdBy?: string; owningProjectId?: string; } -export const StartMetadataGenerationRunOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainId: S.String, - id: S.String, - status: S.optional(MetadataGenerationRunStatus), - type: S.optional(MetadataGenerationRunType), - types: S.optional(MetadataGenerationRunTypes), - createdAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - createdBy: S.optional(S.String), - owningProjectId: S.optional(S.String), - }), - ).annotate({ - identifier: "StartMetadataGenerationRunOutput", - }) as any as S.Schema; +export const StartMetadataGenerationRunOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainId: S.String, + id: S.String, + status: S.optional(MetadataGenerationRunStatus), + type: S.optional(MetadataGenerationRunType), + types: S.optional(MetadataGenerationRunTypes), + createdAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + createdBy: S.optional(S.String), + owningProjectId: S.optional(S.String), + }), +).annotate({ + identifier: "StartMetadataGenerationRunOutput", +}) as any as S.Schema; export interface GetMetadataGenerationRunInput { domainIdentifier: string; identifier: string; type?: MetadataGenerationRunType; } -export const GetMetadataGenerationRunInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - identifier: S.String.pipe(T.HttpLabel("identifier")), - type: S.optional(MetadataGenerationRunType).pipe(T.HttpQuery("type")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/v2/domains/{domainIdentifier}/metadata-generation-runs/{identifier}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetMetadataGenerationRunInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + identifier: S.String.pipe(T.HttpLabel("identifier")), + type: S.optional(MetadataGenerationRunType).pipe(T.HttpQuery("type")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/v2/domains/{domainIdentifier}/metadata-generation-runs/{identifier}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetMetadataGenerationRunInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetMetadataGenerationRunInput", +}) as any as S.Schema; export interface MetadataGenerationRunTypeStat { type: MetadataGenerationRunType; status: MetadataGenerationRunStatus; errorMessage?: string; } -export const MetadataGenerationRunTypeStat = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - type: MetadataGenerationRunType, - status: MetadataGenerationRunStatus, - errorMessage: S.optional(S.String), - }), - ).annotate({ - identifier: "MetadataGenerationRunTypeStat", - }) as any as S.Schema; +export const MetadataGenerationRunTypeStat = /*@__PURE__*/ S.suspend(() => + S.Struct({ + type: MetadataGenerationRunType, + status: MetadataGenerationRunStatus, + errorMessage: S.optional(S.String), + }), +).annotate({ + identifier: "MetadataGenerationRunTypeStat", +}) as any as S.Schema; export type MetadataGenerationRunTypeStats = MetadataGenerationRunTypeStat[]; -export const MetadataGenerationRunTypeStats = - /*@__PURE__*/ S.Array(MetadataGenerationRunTypeStat); +export const MetadataGenerationRunTypeStats = /*@__PURE__*/ S.Array( + MetadataGenerationRunTypeStat, +); export interface GetMetadataGenerationRunOutput { domainId: string; id: string; @@ -15538,53 +15389,52 @@ export interface GetMetadataGenerationRunOutput { owningProjectId: string; typeStats?: MetadataGenerationRunTypeStat[]; } -export const GetMetadataGenerationRunOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainId: S.String, - id: S.String, - target: S.optional(MetadataGenerationRunTarget), - status: S.optional(MetadataGenerationRunStatus), - type: S.optional(MetadataGenerationRunType), - types: S.optional(MetadataGenerationRunTypes), - createdAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - createdBy: S.optional(S.String), - owningProjectId: S.String, - typeStats: S.optional(MetadataGenerationRunTypeStats), - }), - ).annotate({ - identifier: "GetMetadataGenerationRunOutput", - }) as any as S.Schema; +export const GetMetadataGenerationRunOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainId: S.String, + id: S.String, + target: S.optional(MetadataGenerationRunTarget), + status: S.optional(MetadataGenerationRunStatus), + type: S.optional(MetadataGenerationRunType), + types: S.optional(MetadataGenerationRunTypes), + createdAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + createdBy: S.optional(S.String), + owningProjectId: S.String, + typeStats: S.optional(MetadataGenerationRunTypeStats), + }), +).annotate({ + identifier: "GetMetadataGenerationRunOutput", +}) as any as S.Schema; export interface CancelMetadataGenerationRunInput { domainIdentifier: string; identifier: string; } -export const CancelMetadataGenerationRunInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - identifier: S.String.pipe(T.HttpLabel("identifier")), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/v2/domains/{domainIdentifier}/metadata-generation-runs/{identifier}/cancel", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const CancelMetadataGenerationRunInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + identifier: S.String.pipe(T.HttpLabel("identifier")), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/v2/domains/{domainIdentifier}/metadata-generation-runs/{identifier}/cancel", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CancelMetadataGenerationRunInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CancelMetadataGenerationRunInput", +}) as any as S.Schema; export interface CancelMetadataGenerationRunOutput {} -export const CancelMetadataGenerationRunOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "CancelMetadataGenerationRunOutput", - }) as any as S.Schema; +export const CancelMetadataGenerationRunOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "CancelMetadataGenerationRunOutput", +}) as any as S.Schema; export interface ListMetadataGenerationRunsInput { domainIdentifier: string; status?: MetadataGenerationRunStatus; @@ -15593,35 +15443,32 @@ export interface ListMetadataGenerationRunsInput { maxResults?: number; targetIdentifier?: string; } -export const ListMetadataGenerationRunsInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), - status: S.optional(MetadataGenerationRunStatus).pipe( - T.HttpQuery("status"), - ), - type: S.optional(MetadataGenerationRunType).pipe(T.HttpQuery("type")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - targetIdentifier: S.optional(S.String).pipe( - T.HttpQuery("targetIdentifier"), - ), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/v2/domains/{domainIdentifier}/metadata-generation-runs", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListMetadataGenerationRunsInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + domainIdentifier: S.String.pipe(T.HttpLabel("domainIdentifier")), + status: S.optional(MetadataGenerationRunStatus).pipe(T.HttpQuery("status")), + type: S.optional(MetadataGenerationRunType).pipe(T.HttpQuery("type")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + targetIdentifier: S.optional(S.String).pipe( + T.HttpQuery("targetIdentifier"), ), - ).annotate({ - identifier: "ListMetadataGenerationRunsInput", - }) as any as S.Schema; + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/v2/domains/{domainIdentifier}/metadata-generation-runs", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "ListMetadataGenerationRunsInput", +}) as any as S.Schema; export interface MetadataGenerationRunItem { domainId: string; id: string; @@ -15656,15 +15503,14 @@ export interface ListMetadataGenerationRunsOutput { items?: MetadataGenerationRunItem[]; nextToken?: string; } -export const ListMetadataGenerationRunsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - items: S.optional(MetadataGenerationRuns), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListMetadataGenerationRunsOutput", - }) as any as S.Schema; +export const ListMetadataGenerationRunsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + items: S.optional(MetadataGenerationRuns), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListMetadataGenerationRunsOutput", +}) as any as S.Schema; export type Metadata = { [key: string]: string | redacted.Redacted | undefined; }; @@ -16654,23 +16500,21 @@ export const RequiredMetadataFormList = /*@__PURE__*/ S.Array( export interface MetadataFormEnforcementDetail { requiredMetadataForms?: MetadataFormReference[]; } -export const MetadataFormEnforcementDetail = - /*@__PURE__*/ S.suspend(() => - S.Struct({ requiredMetadataForms: S.optional(RequiredMetadataFormList) }), - ).annotate({ - identifier: "MetadataFormEnforcementDetail", - }) as any as S.Schema; +export const MetadataFormEnforcementDetail = /*@__PURE__*/ S.suspend(() => + S.Struct({ requiredMetadataForms: S.optional(RequiredMetadataFormList) }), +).annotate({ + identifier: "MetadataFormEnforcementDetail", +}) as any as S.Schema; export type GlossaryTermIdentifiers = string[]; export const GlossaryTermIdentifiers = /*@__PURE__*/ S.Array(S.String); export interface GlossaryTermEnforcementDetail { requiredGlossaryTermIds?: string[]; } -export const GlossaryTermEnforcementDetail = - /*@__PURE__*/ S.suspend(() => - S.Struct({ requiredGlossaryTermIds: S.optional(GlossaryTermIdentifiers) }), - ).annotate({ - identifier: "GlossaryTermEnforcementDetail", - }) as any as S.Schema; +export const GlossaryTermEnforcementDetail = /*@__PURE__*/ S.suspend(() => + S.Struct({ requiredGlossaryTermIds: S.optional(GlossaryTermIdentifiers) }), +).annotate({ + identifier: "GlossaryTermEnforcementDetail", +}) as any as S.Schema; export type RuleDetail = | { metadataFormEnforcementDetail: MetadataFormEnforcementDetail; @@ -16998,32 +16842,37 @@ export const ListRulesOutput = /*@__PURE__*/ S.suspend(() => export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.String }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { message: S.String }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { message: S.String }, - T.Retryable(), + T.all(T.HttpError(500), T.Retryable()), ).pipe(C.withServerError, C.withRetryableError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.String }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", { message: S.String }, - T.Retryable(), + T.all(T.HttpError(429), T.Retryable()), ).pipe(C.withThrottlingError, C.withRetryableError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", { message: S.String }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", { message: S.String }, + T.HttpError(402), ).pipe(C.withQuotaError) {} //# Operations @@ -19440,6 +19289,7 @@ export type ListEnvironmentsError = | InternalServerException | ThrottlingException | ValidationException + | ResourceNotFoundException | CommonErrors; /** * Lists Amazon DataZone environments. @@ -19472,6 +19322,7 @@ export const listEnvironments: API.OperationMethod< InternalServerException, ThrottlingException, ValidationException, + ResourceNotFoundException, ], operationName: "ListEnvironments", pagination: { @@ -19814,6 +19665,7 @@ export type ListProjectsError = | InternalServerException | ThrottlingException | ValidationException + | ResourceNotFoundException | CommonErrors; /** * Lists Amazon DataZone projects. @@ -19846,6 +19698,7 @@ export const listProjects: API.OperationMethod< InternalServerException, ThrottlingException, ValidationException, + ResourceNotFoundException, ], operationName: "ListProjects", pagination: { @@ -22322,6 +22175,7 @@ export type DeleteEnvironmentBlueprintConfigurationError = | AccessDeniedException | InternalServerException | ValidationException + | ResourceNotFoundException | CommonErrors; /** * Deletes the blueprint configuration in Amazon DataZone. @@ -22334,7 +22188,12 @@ export const deleteEnvironmentBlueprintConfiguration: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteEnvironmentBlueprintConfigurationInput, output: DeleteEnvironmentBlueprintConfigurationOutput, - errors: [AccessDeniedException, InternalServerException, ValidationException], + errors: [ + AccessDeniedException, + InternalServerException, + ValidationException, + ResourceNotFoundException, + ], operationName: "DeleteEnvironmentBlueprintConfiguration", })); export type ListEnvironmentBlueprintConfigurationsError = diff --git a/packages/aws/src/services/deadline.ts b/packages/aws/src/services/deadline.ts index fe6d0b20cd..d3f7bd683c 100644 --- a/packages/aws/src/services/deadline.ts +++ b/packages/aws/src/services/deadline.ts @@ -659,39 +659,38 @@ export interface BatchGetSessionActionIdentifier { jobId: string; sessionActionId: string; } -export const BatchGetSessionActionIdentifier = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String, - queueId: S.String, - jobId: S.String, - sessionActionId: S.String, - }), - ).annotate({ - identifier: "BatchGetSessionActionIdentifier", - }) as any as S.Schema; +export const BatchGetSessionActionIdentifier = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String, + queueId: S.String, + jobId: S.String, + sessionActionId: S.String, + }), +).annotate({ + identifier: "BatchGetSessionActionIdentifier", +}) as any as S.Schema; export type BatchGetSessionActionIdentifiers = BatchGetSessionActionIdentifier[]; -export const BatchGetSessionActionIdentifiers = - /*@__PURE__*/ S.Array(BatchGetSessionActionIdentifier); +export const BatchGetSessionActionIdentifiers = /*@__PURE__*/ S.Array( + BatchGetSessionActionIdentifier, +); export interface BatchGetSessionActionRequest { identifiers: BatchGetSessionActionIdentifier[]; } -export const BatchGetSessionActionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ identifiers: BatchGetSessionActionIdentifiers }).pipe( - T.all( - T.Http({ method: "POST", uri: "/2023-10-12/batch-get-session-action" }), - svc, - auth, - proto, - ver, - rules, - ), +export const BatchGetSessionActionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ identifiers: BatchGetSessionActionIdentifiers }).pipe( + T.all( + T.Http({ method: "POST", uri: "/2023-10-12/batch-get-session-action" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "BatchGetSessionActionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "BatchGetSessionActionRequest", +}) as any as S.Schema; export type SessionActionStatus = | "ASSIGNED" | "RUNNING" @@ -710,19 +709,19 @@ export interface TaskRunManifestPropertiesResponse { outputManifestPath?: string; outputManifestHash?: string; } -export const TaskRunManifestPropertiesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - outputManifestPath: S.optional(S.String), - outputManifestHash: S.optional(S.String), - }), - ).annotate({ - identifier: "TaskRunManifestPropertiesResponse", - }) as any as S.Schema; +export const TaskRunManifestPropertiesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + outputManifestPath: S.optional(S.String), + outputManifestHash: S.optional(S.String), + }), +).annotate({ + identifier: "TaskRunManifestPropertiesResponse", +}) as any as S.Schema; export type TaskRunManifestPropertiesListResponse = TaskRunManifestPropertiesResponse[]; -export const TaskRunManifestPropertiesListResponse = - /*@__PURE__*/ S.Array(TaskRunManifestPropertiesResponse); +export const TaskRunManifestPropertiesListResponse = /*@__PURE__*/ S.Array( + TaskRunManifestPropertiesResponse, +); export interface AcquiredLimit { limitId: string; count: number; @@ -735,21 +734,19 @@ export const AcquiredLimits = /*@__PURE__*/ S.Array(AcquiredLimit); export interface EnvironmentEnterSessionActionDefinition { environmentId: string; } -export const EnvironmentEnterSessionActionDefinition = - /*@__PURE__*/ S.suspend(() => S.Struct({ environmentId: S.String })).annotate( - { - identifier: "EnvironmentEnterSessionActionDefinition", - }, - ) as any as S.Schema; +export const EnvironmentEnterSessionActionDefinition = /*@__PURE__*/ S.suspend( + () => S.Struct({ environmentId: S.String }), +).annotate({ + identifier: "EnvironmentEnterSessionActionDefinition", +}) as any as S.Schema; export interface EnvironmentExitSessionActionDefinition { environmentId: string; } -export const EnvironmentExitSessionActionDefinition = - /*@__PURE__*/ S.suspend(() => S.Struct({ environmentId: S.String })).annotate( - { - identifier: "EnvironmentExitSessionActionDefinition", - }, - ) as any as S.Schema; +export const EnvironmentExitSessionActionDefinition = /*@__PURE__*/ S.suspend( + () => S.Struct({ environmentId: S.String }), +).annotate({ + identifier: "EnvironmentExitSessionActionDefinition", +}) as any as S.Schema; export type TaskParameterValue = | { int: string; @@ -803,16 +800,15 @@ export interface TaskRunSessionActionDefinition { stepId: string; parameters: { [key: string]: TaskParameterValue | undefined }; } -export const TaskRunSessionActionDefinition = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - taskId: S.optional(S.String), - stepId: S.String, - parameters: TaskParameters, - }), - ).annotate({ - identifier: "TaskRunSessionActionDefinition", - }) as any as S.Schema; +export const TaskRunSessionActionDefinition = /*@__PURE__*/ S.suspend(() => + S.Struct({ + taskId: S.optional(S.String), + stepId: S.String, + parameters: TaskParameters, + }), +).annotate({ + identifier: "TaskRunSessionActionDefinition", +}) as any as S.Schema; export interface SyncInputJobAttachmentsSessionActionDefinition { stepId?: string; } @@ -915,19 +911,18 @@ export interface BatchGetSessionActionError_ { code: BatchGetSessionActionErrorCode; message: string; } -export const BatchGetSessionActionError_ = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String, - queueId: S.String, - jobId: S.String, - sessionActionId: S.String, - code: BatchGetSessionActionErrorCode, - message: S.String, - }), - ).annotate({ - identifier: "BatchGetSessionActionError", - }) as any as S.Schema; +export const BatchGetSessionActionError_ = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String, + queueId: S.String, + jobId: S.String, + sessionActionId: S.String, + code: BatchGetSessionActionErrorCode, + message: S.String, + }), +).annotate({ + identifier: "BatchGetSessionActionError", +}) as any as S.Schema; export type BatchGetSessionActionErrors = BatchGetSessionActionError_[]; export const BatchGetSessionActionErrors = /*@__PURE__*/ S.Array( BatchGetSessionActionError_, @@ -936,15 +931,14 @@ export interface BatchGetSessionActionResponse { sessionActions: BatchGetSessionActionItem[]; errors: BatchGetSessionActionError_[]; } -export const BatchGetSessionActionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - sessionActions: BatchGetSessionActionItems, - errors: BatchGetSessionActionErrors, - }), - ).annotate({ - identifier: "BatchGetSessionActionResponse", - }) as any as S.Schema; +export const BatchGetSessionActionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + sessionActions: BatchGetSessionActionItems, + errors: BatchGetSessionActionErrors, + }), +).annotate({ + identifier: "BatchGetSessionActionResponse", +}) as any as S.Schema; export interface BatchGetStepIdentifier { farmId: string; queueId: string; @@ -1641,97 +1635,97 @@ export interface CreateQueueFleetAssociationRequest { queueId: string; fleetId: string; } -export const CreateQueueFleetAssociationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - queueId: S.String, - fleetId: S.String, - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/2023-10-12/farms/{farmId}/queue-fleet-associations", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateQueueFleetAssociationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + queueId: S.String, + fleetId: S.String, + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/2023-10-12/farms/{farmId}/queue-fleet-associations", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateQueueFleetAssociationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateQueueFleetAssociationRequest", +}) as any as S.Schema; export interface CreateQueueFleetAssociationResponse {} -export const CreateQueueFleetAssociationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "CreateQueueFleetAssociationResponse", - }) as any as S.Schema; +export const CreateQueueFleetAssociationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "CreateQueueFleetAssociationResponse", +}) as any as S.Schema; export interface CreateQueueLimitAssociationRequest { farmId: string; queueId: string; limitId: string; } -export const CreateQueueLimitAssociationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - queueId: S.String, - limitId: S.String, - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/2023-10-12/farms/{farmId}/queue-limit-associations", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateQueueLimitAssociationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + queueId: S.String, + limitId: S.String, + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/2023-10-12/farms/{farmId}/queue-limit-associations", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateQueueLimitAssociationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateQueueLimitAssociationRequest", +}) as any as S.Schema; export interface CreateQueueLimitAssociationResponse {} -export const CreateQueueLimitAssociationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "CreateQueueLimitAssociationResponse", - }) as any as S.Schema; +export const CreateQueueLimitAssociationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "CreateQueueLimitAssociationResponse", +}) as any as S.Schema; export interface DeleteQueueFleetAssociationRequest { farmId: string; queueId: string; fleetId: string; } -export const DeleteQueueFleetAssociationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - queueId: S.String.pipe(T.HttpLabel("queueId")), - fleetId: S.String.pipe(T.HttpLabel("fleetId")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/2023-10-12/farms/{farmId}/queue-fleet-associations/{queueId}/{fleetId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteQueueFleetAssociationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + queueId: S.String.pipe(T.HttpLabel("queueId")), + fleetId: S.String.pipe(T.HttpLabel("fleetId")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/2023-10-12/farms/{farmId}/queue-fleet-associations/{queueId}/{fleetId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteQueueFleetAssociationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteQueueFleetAssociationRequest", +}) as any as S.Schema; export interface DeleteQueueFleetAssociationResponse {} -export const DeleteQueueFleetAssociationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteQueueFleetAssociationResponse", - }) as any as S.Schema; +export const DeleteQueueFleetAssociationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteQueueFleetAssociationResponse", +}) as any as S.Schema; export type ConflictExceptionReason = | "CONFLICT_EXCEPTION" | "CONCURRENT_MODIFICATION" @@ -1745,60 +1739,59 @@ export interface DeleteQueueLimitAssociationRequest { queueId: string; limitId: string; } -export const DeleteQueueLimitAssociationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - queueId: S.String.pipe(T.HttpLabel("queueId")), - limitId: S.String.pipe(T.HttpLabel("limitId")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/2023-10-12/farms/{farmId}/queue-limit-associations/{queueId}/{limitId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteQueueLimitAssociationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + queueId: S.String.pipe(T.HttpLabel("queueId")), + limitId: S.String.pipe(T.HttpLabel("limitId")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/2023-10-12/farms/{farmId}/queue-limit-associations/{queueId}/{limitId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteQueueLimitAssociationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteQueueLimitAssociationRequest", +}) as any as S.Schema; export interface DeleteQueueLimitAssociationResponse {} -export const DeleteQueueLimitAssociationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteQueueLimitAssociationResponse", - }) as any as S.Schema; +export const DeleteQueueLimitAssociationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteQueueLimitAssociationResponse", +}) as any as S.Schema; export interface GetQueueFleetAssociationRequest { farmId: string; queueId: string; fleetId: string; } -export const GetQueueFleetAssociationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - queueId: S.String.pipe(T.HttpLabel("queueId")), - fleetId: S.String.pipe(T.HttpLabel("fleetId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/2023-10-12/farms/{farmId}/queue-fleet-associations/{queueId}/{fleetId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetQueueFleetAssociationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + queueId: S.String.pipe(T.HttpLabel("queueId")), + fleetId: S.String.pipe(T.HttpLabel("fleetId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/2023-10-12/farms/{farmId}/queue-fleet-associations/{queueId}/{fleetId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetQueueFleetAssociationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetQueueFleetAssociationRequest", +}) as any as S.Schema; export type QueueFleetAssociationStatus = | "ACTIVE" | "STOP_SCHEDULING_AND_COMPLETE_TASKS" @@ -1815,49 +1808,47 @@ export interface GetQueueFleetAssociationResponse { updatedAt?: Date; updatedBy?: string; } -export const GetQueueFleetAssociationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - queueId: S.String, - fleetId: S.String, - status: QueueFleetAssociationStatus, - createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - createdBy: S.String, - updatedAt: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - updatedBy: S.optional(S.String), - }), - ).annotate({ - identifier: "GetQueueFleetAssociationResponse", - }) as any as S.Schema; +export const GetQueueFleetAssociationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + queueId: S.String, + fleetId: S.String, + status: QueueFleetAssociationStatus, + createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + createdBy: S.String, + updatedAt: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + updatedBy: S.optional(S.String), + }), +).annotate({ + identifier: "GetQueueFleetAssociationResponse", +}) as any as S.Schema; export interface GetQueueLimitAssociationRequest { farmId: string; queueId: string; limitId: string; } -export const GetQueueLimitAssociationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - queueId: S.String.pipe(T.HttpLabel("queueId")), - limitId: S.String.pipe(T.HttpLabel("limitId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/2023-10-12/farms/{farmId}/queue-limit-associations/{queueId}/{limitId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetQueueLimitAssociationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + queueId: S.String.pipe(T.HttpLabel("queueId")), + limitId: S.String.pipe(T.HttpLabel("limitId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/2023-10-12/farms/{farmId}/queue-limit-associations/{queueId}/{limitId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetQueueLimitAssociationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetQueueLimitAssociationRequest", +}) as any as S.Schema; export type QueueLimitAssociationStatus = | "ACTIVE" | "STOP_LIMIT_USAGE_AND_COMPLETE_TASKS" @@ -1874,30 +1865,29 @@ export interface GetQueueLimitAssociationResponse { updatedAt?: Date; updatedBy?: string; } -export const GetQueueLimitAssociationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - queueId: S.String, - limitId: S.String, - status: QueueLimitAssociationStatus, - createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - createdBy: S.String, - updatedAt: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - updatedBy: S.optional(S.String), - }), - ).annotate({ - identifier: "GetQueueLimitAssociationResponse", - }) as any as S.Schema; +export const GetQueueLimitAssociationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + queueId: S.String, + limitId: S.String, + status: QueueLimitAssociationStatus, + createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + createdBy: S.String, + updatedAt: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + updatedBy: S.optional(S.String), + }), +).annotate({ + identifier: "GetQueueLimitAssociationResponse", +}) as any as S.Schema; export interface GetSessionsStatisticsAggregationRequest { farmId: string; nextToken?: string; maxResults?: number; aggregationId: string; } -export const GetSessionsStatisticsAggregationRequest = - /*@__PURE__*/ S.suspend(() => +export const GetSessionsStatisticsAggregationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ farmId: S.String.pipe(T.HttpLabel("farmId")), nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), @@ -1916,9 +1906,9 @@ export const GetSessionsStatisticsAggregationRequest = rules, ), ), - ).annotate({ - identifier: "GetSessionsStatisticsAggregationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "GetSessionsStatisticsAggregationRequest", +}) as any as S.Schema; export type UsageType = "COMPUTE" | "LICENSE" | (string & {}); export const UsageType = /*@__PURE__*/ S.String; export interface Stats { @@ -1986,39 +1976,38 @@ export interface GetSessionsStatisticsAggregationResponse { statusMessage?: string; nextToken?: string; } -export const GetSessionsStatisticsAggregationResponse = - /*@__PURE__*/ S.suspend(() => +export const GetSessionsStatisticsAggregationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ statistics: S.optional(StatisticsList), status: SessionsStatisticsAggregationStatus, statusMessage: S.optional(S.String), nextToken: S.optional(S.String), }), - ).annotate({ - identifier: "GetSessionsStatisticsAggregationResponse", - }) as any as S.Schema; +).annotate({ + identifier: "GetSessionsStatisticsAggregationResponse", +}) as any as S.Schema; export interface ListAvailableMeteredProductsRequest { nextToken?: string; maxResults?: number; } -export const ListAvailableMeteredProductsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/2023-10-12/metered-products" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListAvailableMeteredProductsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/2023-10-12/metered-products" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListAvailableMeteredProductsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListAvailableMeteredProductsRequest", +}) as any as S.Schema; export interface MeteredProductSummary { productId: string; family: string; @@ -2043,15 +2032,15 @@ export interface ListAvailableMeteredProductsResponse { meteredProducts: MeteredProductSummary[]; nextToken?: string; } -export const ListAvailableMeteredProductsResponse = - /*@__PURE__*/ S.suspend(() => +export const ListAvailableMeteredProductsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ meteredProducts: MeteredProductSummaryList, nextToken: S.optional(S.String), }), - ).annotate({ - identifier: "ListAvailableMeteredProductsResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListAvailableMeteredProductsResponse", +}) as any as S.Schema; export interface ListQueueFleetAssociationsRequest { farmId: string; nextToken?: string; @@ -2059,30 +2048,29 @@ export interface ListQueueFleetAssociationsRequest { queueId?: string; fleetId?: string; } -export const ListQueueFleetAssociationsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - queueId: S.optional(S.String).pipe(T.HttpQuery("queueId")), - fleetId: S.optional(S.String).pipe(T.HttpQuery("fleetId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/2023-10-12/farms/{farmId}/queue-fleet-associations", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListQueueFleetAssociationsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + queueId: S.optional(S.String).pipe(T.HttpQuery("queueId")), + fleetId: S.optional(S.String).pipe(T.HttpQuery("fleetId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/2023-10-12/farms/{farmId}/queue-fleet-associations", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListQueueFleetAssociationsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListQueueFleetAssociationsRequest", +}) as any as S.Schema; export interface QueueFleetAssociationSummary { queueId: string; fleetId: string; @@ -2092,38 +2080,37 @@ export interface QueueFleetAssociationSummary { updatedAt?: Date; updatedBy?: string; } -export const QueueFleetAssociationSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - queueId: S.String, - fleetId: S.String, - status: QueueFleetAssociationStatus, - createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - createdBy: S.String, - updatedAt: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - updatedBy: S.optional(S.String), - }), - ).annotate({ - identifier: "QueueFleetAssociationSummary", - }) as any as S.Schema; +export const QueueFleetAssociationSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + queueId: S.String, + fleetId: S.String, + status: QueueFleetAssociationStatus, + createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + createdBy: S.String, + updatedAt: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + updatedBy: S.optional(S.String), + }), +).annotate({ + identifier: "QueueFleetAssociationSummary", +}) as any as S.Schema; export type QueueFleetAssociationSummaries = QueueFleetAssociationSummary[]; -export const QueueFleetAssociationSummaries = - /*@__PURE__*/ S.Array(QueueFleetAssociationSummary); +export const QueueFleetAssociationSummaries = /*@__PURE__*/ S.Array( + QueueFleetAssociationSummary, +); export interface ListQueueFleetAssociationsResponse { queueFleetAssociations: QueueFleetAssociationSummary[]; nextToken?: string; } -export const ListQueueFleetAssociationsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - queueFleetAssociations: QueueFleetAssociationSummaries, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListQueueFleetAssociationsResponse", - }) as any as S.Schema; +export const ListQueueFleetAssociationsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + queueFleetAssociations: QueueFleetAssociationSummaries, + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListQueueFleetAssociationsResponse", +}) as any as S.Schema; export interface ListQueueLimitAssociationsRequest { farmId: string; nextToken?: string; @@ -2131,30 +2118,29 @@ export interface ListQueueLimitAssociationsRequest { queueId?: string; limitId?: string; } -export const ListQueueLimitAssociationsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - queueId: S.optional(S.String).pipe(T.HttpQuery("queueId")), - limitId: S.optional(S.String).pipe(T.HttpQuery("limitId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/2023-10-12/farms/{farmId}/queue-limit-associations", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListQueueLimitAssociationsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + queueId: S.optional(S.String).pipe(T.HttpQuery("queueId")), + limitId: S.optional(S.String).pipe(T.HttpQuery("limitId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/2023-10-12/farms/{farmId}/queue-limit-associations", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListQueueLimitAssociationsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListQueueLimitAssociationsRequest", +}) as any as S.Schema; export interface QueueLimitAssociationSummary { queueId: string; limitId: string; @@ -2164,38 +2150,37 @@ export interface QueueLimitAssociationSummary { updatedAt?: Date; updatedBy?: string; } -export const QueueLimitAssociationSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - queueId: S.String, - limitId: S.String, - status: QueueLimitAssociationStatus, - createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - createdBy: S.String, - updatedAt: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - updatedBy: S.optional(S.String), - }), - ).annotate({ - identifier: "QueueLimitAssociationSummary", - }) as any as S.Schema; +export const QueueLimitAssociationSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + queueId: S.String, + limitId: S.String, + status: QueueLimitAssociationStatus, + createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + createdBy: S.String, + updatedAt: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + updatedBy: S.optional(S.String), + }), +).annotate({ + identifier: "QueueLimitAssociationSummary", +}) as any as S.Schema; export type QueueLimitAssociationSummaries = QueueLimitAssociationSummary[]; -export const QueueLimitAssociationSummaries = - /*@__PURE__*/ S.Array(QueueLimitAssociationSummary); +export const QueueLimitAssociationSummaries = /*@__PURE__*/ S.Array( + QueueLimitAssociationSummary, +); export interface ListQueueLimitAssociationsResponse { queueLimitAssociations: QueueLimitAssociationSummary[]; nextToken?: string; } -export const ListQueueLimitAssociationsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - queueLimitAssociations: QueueLimitAssociationSummaries, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListQueueLimitAssociationsResponse", - }) as any as S.Schema; +export const ListQueueLimitAssociationsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + queueLimitAssociations: QueueLimitAssociationSummaries, + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListQueueLimitAssociationsResponse", +}) as any as S.Schema; export interface ListTagsForResourceRequest { resourceArn: string; } @@ -2218,10 +2203,11 @@ export const Tags = /*@__PURE__*/ S.Record(S.String, S.String.pipe(S.optional)); export interface ListTagsForResourceResponse { tags?: { [key: string]: string | undefined }; } -export const ListTagsForResourceResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({ tags: S.optional(Tags) })).annotate({ - identifier: "ListTagsForResourceResponse", - }) as any as S.Schema; +export const ListTagsForResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ tags: S.optional(Tags) }), +).annotate({ + identifier: "ListTagsForResourceResponse", +}) as any as S.Schema; export type ComparisonOperator = | "EQUAL" | "NOT_EQUAL" @@ -2371,17 +2357,16 @@ export interface SearchGroupedFilterExpressions { filters: SearchFilterExpression[]; operator: LogicalOperator; } -export const SearchGroupedFilterExpressions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - filters: S.suspend(() => SearchFilterExpressions).annotate({ - identifier: "SearchFilterExpressions", - }), - operator: LogicalOperator, +export const SearchGroupedFilterExpressions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + filters: S.suspend(() => SearchFilterExpressions).annotate({ + identifier: "SearchFilterExpressions", }), - ).annotate({ - identifier: "SearchGroupedFilterExpressions", - }) as any as S.Schema; + operator: LogicalOperator, + }), +).annotate({ + identifier: "SearchGroupedFilterExpressions", +}) as any as S.Schema; export interface UserJobsFirst { userIdentityId: string; } @@ -2862,9 +2847,7 @@ export interface StartSessionsStatisticsAggregationResponse { } export const StartSessionsStatisticsAggregationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ aggregationId: S.String })).annotate( - { - identifier: "StartSessionsStatisticsAggregationResponse", - }, + { identifier: "StartSessionsStatisticsAggregationResponse" }, ) as any as S.Schema; export interface TagResourceRequest { resourceArn: string; @@ -2934,34 +2917,34 @@ export interface UpdateQueueFleetAssociationRequest { fleetId: string; status: UpdateQueueFleetAssociationStatus; } -export const UpdateQueueFleetAssociationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - queueId: S.String.pipe(T.HttpLabel("queueId")), - fleetId: S.String.pipe(T.HttpLabel("fleetId")), - status: UpdateQueueFleetAssociationStatus, - }).pipe( - T.all( - T.Http({ - method: "PATCH", - uri: "/2023-10-12/farms/{farmId}/queue-fleet-associations/{queueId}/{fleetId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateQueueFleetAssociationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + queueId: S.String.pipe(T.HttpLabel("queueId")), + fleetId: S.String.pipe(T.HttpLabel("fleetId")), + status: UpdateQueueFleetAssociationStatus, + }).pipe( + T.all( + T.Http({ + method: "PATCH", + uri: "/2023-10-12/farms/{farmId}/queue-fleet-associations/{queueId}/{fleetId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateQueueFleetAssociationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateQueueFleetAssociationRequest", +}) as any as S.Schema; export interface UpdateQueueFleetAssociationResponse {} -export const UpdateQueueFleetAssociationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateQueueFleetAssociationResponse", - }) as any as S.Schema; +export const UpdateQueueFleetAssociationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "UpdateQueueFleetAssociationResponse", +}) as any as S.Schema; export type UpdateQueueLimitAssociationStatus = | "ACTIVE" | "STOP_LIMIT_USAGE_AND_COMPLETE_TASKS" @@ -2974,35 +2957,35 @@ export interface UpdateQueueLimitAssociationRequest { limitId: string; status: UpdateQueueLimitAssociationStatus; } -export const UpdateQueueLimitAssociationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - queueId: S.String.pipe(T.HttpLabel("queueId")), - limitId: S.String.pipe(T.HttpLabel("limitId")), - status: UpdateQueueLimitAssociationStatus, - }).pipe( - T.all( - T.Http({ - method: "PATCH", - uri: "/2023-10-12/farms/{farmId}/queue-limit-associations/{queueId}/{limitId}", - }), - svc, - auth, - proto, - ver, - rules, - ), - ), - ).annotate({ - identifier: "UpdateQueueLimitAssociationRequest", - }) as any as S.Schema; -export interface UpdateQueueLimitAssociationResponse {} -export const UpdateQueueLimitAssociationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateQueueLimitAssociationResponse", - }) as any as S.Schema; -export interface CreateFarmRequest { +export const UpdateQueueLimitAssociationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + queueId: S.String.pipe(T.HttpLabel("queueId")), + limitId: S.String.pipe(T.HttpLabel("limitId")), + status: UpdateQueueLimitAssociationStatus, + }).pipe( + T.all( + T.Http({ + method: "PATCH", + uri: "/2023-10-12/farms/{farmId}/queue-limit-associations/{queueId}/{limitId}", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "UpdateQueueLimitAssociationRequest", +}) as any as S.Schema; +export interface UpdateQueueLimitAssociationResponse {} +export const UpdateQueueLimitAssociationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "UpdateQueueLimitAssociationResponse", +}) as any as S.Schema; +export interface CreateFarmRequest { clientToken?: string; displayName: string; description?: string | redacted.Redacted; @@ -3218,36 +3201,36 @@ export interface AssociateMemberToFarmRequest { principalId: string; identityCenterRegion?: string; } -export const AssociateMemberToFarmRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - principalType: DeadlinePrincipalType, - identityStoreId: S.String, - membershipLevel: MembershipLevel, - principalId: S.String.pipe(T.HttpLabel("principalId")), - identityCenterRegion: S.optional(S.String), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/2023-10-12/farms/{farmId}/members/{principalId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const AssociateMemberToFarmRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + principalType: DeadlinePrincipalType, + identityStoreId: S.String, + membershipLevel: MembershipLevel, + principalId: S.String.pipe(T.HttpLabel("principalId")), + identityCenterRegion: S.optional(S.String), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/2023-10-12/farms/{farmId}/members/{principalId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "AssociateMemberToFarmRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "AssociateMemberToFarmRequest", +}) as any as S.Schema; export interface AssociateMemberToFarmResponse {} -export const AssociateMemberToFarmResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "AssociateMemberToFarmResponse", - }) as any as S.Schema; +export const AssociateMemberToFarmResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "AssociateMemberToFarmResponse", +}) as any as S.Schema; export interface CreateLimitRequest { farmId: string; clientToken?: string; @@ -3316,42 +3299,40 @@ export interface CreateStorageProfileRequest { osFamily: StorageProfileOperatingSystemFamily; fileSystemLocations?: FileSystemLocation[]; } -export const CreateStorageProfileRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - clientToken: S.optional(S.String).pipe( - T.HttpHeader("X-Amz-Client-Token"), - T.IdempotencyToken(), - ), - displayName: S.String, - osFamily: StorageProfileOperatingSystemFamily, - fileSystemLocations: S.optional(FileSystemLocationsList), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/2023-10-12/farms/{farmId}/storage-profiles", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateStorageProfileRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + clientToken: S.optional(S.String).pipe( + T.HttpHeader("X-Amz-Client-Token"), + T.IdempotencyToken(), ), - ).annotate({ - identifier: "CreateStorageProfileRequest", - }) as any as S.Schema; + displayName: S.String, + osFamily: StorageProfileOperatingSystemFamily, + fileSystemLocations: S.optional(FileSystemLocationsList), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/2023-10-12/farms/{farmId}/storage-profiles", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "CreateStorageProfileRequest", +}) as any as S.Schema; export interface CreateStorageProfileResponse { storageProfileId: string; } -export const CreateStorageProfileResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ storageProfileId: S.String }), - ).annotate({ - identifier: "CreateStorageProfileResponse", - }) as any as S.Schema; +export const CreateStorageProfileResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ storageProfileId: S.String }), +).annotate({ + identifier: "CreateStorageProfileResponse", +}) as any as S.Schema; export interface DeleteLimitRequest { farmId: string; limitId: string; @@ -3386,62 +3367,62 @@ export interface DeleteStorageProfileRequest { farmId: string; storageProfileId: string; } -export const DeleteStorageProfileRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - storageProfileId: S.String.pipe(T.HttpLabel("storageProfileId")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/2023-10-12/farms/{farmId}/storage-profiles/{storageProfileId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteStorageProfileRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + storageProfileId: S.String.pipe(T.HttpLabel("storageProfileId")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/2023-10-12/farms/{farmId}/storage-profiles/{storageProfileId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteStorageProfileRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteStorageProfileRequest", +}) as any as S.Schema; export interface DeleteStorageProfileResponse {} -export const DeleteStorageProfileResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteStorageProfileResponse", - }) as any as S.Schema; +export const DeleteStorageProfileResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteStorageProfileResponse", +}) as any as S.Schema; export interface DisassociateMemberFromFarmRequest { farmId: string; principalId: string; } -export const DisassociateMemberFromFarmRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - principalId: S.String.pipe(T.HttpLabel("principalId")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/2023-10-12/farms/{farmId}/members/{principalId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DisassociateMemberFromFarmRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + principalId: S.String.pipe(T.HttpLabel("principalId")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/2023-10-12/farms/{farmId}/members/{principalId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DisassociateMemberFromFarmRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DisassociateMemberFromFarmRequest", +}) as any as S.Schema; export interface DisassociateMemberFromFarmResponse {} -export const DisassociateMemberFromFarmResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DisassociateMemberFromFarmResponse", - }) as any as S.Schema; +export const DisassociateMemberFromFarmResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DisassociateMemberFromFarmResponse", +}) as any as S.Schema; export interface GetLimitRequest { farmId: string; limitId: string; @@ -3708,15 +3689,14 @@ export interface ListStorageProfilesResponse { storageProfiles: StorageProfileSummary[]; nextToken?: string; } -export const ListStorageProfilesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - storageProfiles: StorageProfileSummaries, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListStorageProfilesResponse", - }) as any as S.Schema; +export const ListStorageProfilesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + storageProfiles: StorageProfileSummaries, + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListStorageProfilesResponse", +}) as any as S.Schema; export interface UpdateLimitRequest { farmId: string; limitId: string; @@ -3762,40 +3742,40 @@ export interface UpdateStorageProfileRequest { fileSystemLocationsToAdd?: FileSystemLocation[]; fileSystemLocationsToRemove?: FileSystemLocation[]; } -export const UpdateStorageProfileRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - storageProfileId: S.String.pipe(T.HttpLabel("storageProfileId")), - clientToken: S.optional(S.String).pipe( - T.HttpHeader("X-Amz-Client-Token"), - T.IdempotencyToken(), - ), - displayName: S.optional(S.String), - osFamily: S.optional(StorageProfileOperatingSystemFamily), - fileSystemLocationsToAdd: S.optional(FileSystemLocationsList), - fileSystemLocationsToRemove: S.optional(FileSystemLocationsList), - }).pipe( - T.all( - T.Http({ - method: "PATCH", - uri: "/2023-10-12/farms/{farmId}/storage-profiles/{storageProfileId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateStorageProfileRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + storageProfileId: S.String.pipe(T.HttpLabel("storageProfileId")), + clientToken: S.optional(S.String).pipe( + T.HttpHeader("X-Amz-Client-Token"), + T.IdempotencyToken(), ), - ).annotate({ - identifier: "UpdateStorageProfileRequest", - }) as any as S.Schema; + displayName: S.optional(S.String), + osFamily: S.optional(StorageProfileOperatingSystemFamily), + fileSystemLocationsToAdd: S.optional(FileSystemLocationsList), + fileSystemLocationsToRemove: S.optional(FileSystemLocationsList), + }).pipe( + T.all( + T.Http({ + method: "PATCH", + uri: "/2023-10-12/farms/{farmId}/storage-profiles/{storageProfileId}", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "UpdateStorageProfileRequest", +}) as any as S.Schema; export interface UpdateStorageProfileResponse {} -export const UpdateStorageProfileResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateStorageProfileResponse", - }) as any as S.Schema; +export const UpdateStorageProfileResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "UpdateStorageProfileResponse", +}) as any as S.Schema; export type UsageTrackingResource = { queueId: string }; export const UsageTrackingResource = /*@__PURE__*/ S.Union([ S.Struct({ queueId: S.String }), @@ -4139,16 +4119,16 @@ export interface CustomerManagedAutoScalingConfiguration { workerIdleDurationSeconds?: number; scaleOutWorkersPerMinute?: number; } -export const CustomerManagedAutoScalingConfiguration = - /*@__PURE__*/ S.suspend(() => +export const CustomerManagedAutoScalingConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ standbyWorkerCount: S.optional(S.Number), workerIdleDurationSeconds: S.optional(S.Number), scaleOutWorkersPerMinute: S.optional(S.Number), }), - ).annotate({ - identifier: "CustomerManagedAutoScalingConfiguration", - }) as any as S.Schema; +).annotate({ + identifier: "CustomerManagedAutoScalingConfiguration", +}) as any as S.Schema; export interface VCpuCountRange { min: number; max?: number; @@ -4180,12 +4160,11 @@ export interface AcceleratorTotalMemoryMiBRange { min: number; max?: number; } -export const AcceleratorTotalMemoryMiBRange = - /*@__PURE__*/ S.suspend(() => - S.Struct({ min: S.Number, max: S.optional(S.Number) }), - ).annotate({ - identifier: "AcceleratorTotalMemoryMiBRange", - }) as any as S.Schema; +export const AcceleratorTotalMemoryMiBRange = /*@__PURE__*/ S.suspend(() => + S.Struct({ min: S.Number, max: S.optional(S.Number) }), +).annotate({ + identifier: "AcceleratorTotalMemoryMiBRange", +}) as any as S.Schema; export type CustomerManagedFleetOperatingSystemFamily = | "WINDOWS" | "LINUX" @@ -4205,8 +4184,9 @@ export const FleetAmountCapability = /*@__PURE__*/ S.suspend(() => identifier: "FleetAmountCapability", }) as any as S.Schema; export type CustomFleetAmountCapabilities = FleetAmountCapability[]; -export const CustomFleetAmountCapabilities = - /*@__PURE__*/ S.Array(FleetAmountCapability); +export const CustomFleetAmountCapabilities = /*@__PURE__*/ S.Array( + FleetAmountCapability, +); export type AttributeCapabilityValuesList = string[]; export const AttributeCapabilityValuesList = /*@__PURE__*/ S.Array(S.String); export interface FleetAttributeCapability { @@ -4219,8 +4199,9 @@ export const FleetAttributeCapability = /*@__PURE__*/ S.suspend(() => identifier: "FleetAttributeCapability", }) as any as S.Schema; export type CustomFleetAttributeCapabilities = FleetAttributeCapability[]; -export const CustomFleetAttributeCapabilities = - /*@__PURE__*/ S.Array(FleetAttributeCapability); +export const CustomFleetAttributeCapabilities = /*@__PURE__*/ S.Array( + FleetAttributeCapability, +); export interface CustomerManagedWorkerCapabilities { vCpuCount: VCpuCountRange; memoryMiB: MemoryMiBRange; @@ -4232,22 +4213,21 @@ export interface CustomerManagedWorkerCapabilities { customAmounts?: FleetAmountCapability[]; customAttributes?: FleetAttributeCapability[]; } -export const CustomerManagedWorkerCapabilities = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - vCpuCount: VCpuCountRange, - memoryMiB: MemoryMiBRange, - acceleratorTypes: S.optional(AcceleratorTypes), - acceleratorCount: S.optional(AcceleratorCountRange), - acceleratorTotalMemoryMiB: S.optional(AcceleratorTotalMemoryMiBRange), - osFamily: CustomerManagedFleetOperatingSystemFamily, - cpuArchitectureType: CpuArchitectureType, - customAmounts: S.optional(CustomFleetAmountCapabilities), - customAttributes: S.optional(CustomFleetAttributeCapabilities), - }), - ).annotate({ - identifier: "CustomerManagedWorkerCapabilities", - }) as any as S.Schema; +export const CustomerManagedWorkerCapabilities = /*@__PURE__*/ S.suspend(() => + S.Struct({ + vCpuCount: VCpuCountRange, + memoryMiB: MemoryMiBRange, + acceleratorTypes: S.optional(AcceleratorTypes), + acceleratorCount: S.optional(AcceleratorCountRange), + acceleratorTotalMemoryMiB: S.optional(AcceleratorTotalMemoryMiBRange), + osFamily: CustomerManagedFleetOperatingSystemFamily, + cpuArchitectureType: CpuArchitectureType, + customAmounts: S.optional(CustomFleetAmountCapabilities), + customAttributes: S.optional(CustomFleetAttributeCapabilities), + }), +).annotate({ + identifier: "CustomerManagedWorkerCapabilities", +}) as any as S.Schema; export type TagPropagationMode = | "NO_PROPAGATION" | "PROPAGATE_TAGS_TO_WORKERS_AT_LAUNCH" @@ -4260,20 +4240,19 @@ export interface CustomerManagedFleetConfiguration { storageProfileId?: string; tagPropagationMode?: TagPropagationMode; } -export const CustomerManagedFleetConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - mode: AutoScalingMode, - autoScalingConfiguration: S.optional( - CustomerManagedAutoScalingConfiguration, - ), - workerCapabilities: CustomerManagedWorkerCapabilities, - storageProfileId: S.optional(S.String), - tagPropagationMode: S.optional(TagPropagationMode), - }), - ).annotate({ - identifier: "CustomerManagedFleetConfiguration", - }) as any as S.Schema; +export const CustomerManagedFleetConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + mode: AutoScalingMode, + autoScalingConfiguration: S.optional( + CustomerManagedAutoScalingConfiguration, + ), + workerCapabilities: CustomerManagedWorkerCapabilities, + storageProfileId: S.optional(S.String), + tagPropagationMode: S.optional(TagPropagationMode), + }), +).annotate({ + identifier: "CustomerManagedFleetConfiguration", +}) as any as S.Schema; export type ServiceManagedFleetOperatingSystemFamily = | "WINDOWS" | "LINUX" @@ -4337,8 +4316,8 @@ export interface ServiceManagedEc2InstanceCapabilities { customAmounts?: FleetAmountCapability[]; customAttributes?: FleetAttributeCapability[]; } -export const ServiceManagedEc2InstanceCapabilities = - /*@__PURE__*/ S.suspend(() => +export const ServiceManagedEc2InstanceCapabilities = /*@__PURE__*/ S.suspend( + () => S.Struct({ vCpuCount: VCpuCountRange, memoryMiB: MemoryMiBRange, @@ -4351,9 +4330,9 @@ export const ServiceManagedEc2InstanceCapabilities = customAmounts: S.optional(CustomFleetAmountCapabilities), customAttributes: S.optional(CustomFleetAttributeCapabilities), }), - ).annotate({ - identifier: "ServiceManagedEc2InstanceCapabilities", - }) as any as S.Schema; +).annotate({ + identifier: "ServiceManagedEc2InstanceCapabilities", +}) as any as S.Schema; export type Ec2MarketType = | "on-demand" | "spot" @@ -4363,10 +4342,11 @@ export const Ec2MarketType = /*@__PURE__*/ S.String; export interface ServiceManagedEc2InstanceMarketOptions { type: Ec2MarketType; } -export const ServiceManagedEc2InstanceMarketOptions = - /*@__PURE__*/ S.suspend(() => S.Struct({ type: Ec2MarketType })).annotate({ - identifier: "ServiceManagedEc2InstanceMarketOptions", - }) as any as S.Schema; +export const ServiceManagedEc2InstanceMarketOptions = /*@__PURE__*/ S.suspend( + () => S.Struct({ type: Ec2MarketType }), +).annotate({ + identifier: "ServiceManagedEc2InstanceMarketOptions", +}) as any as S.Schema; export type VpcResourceConfigurationArns = string[]; export const VpcResourceConfigurationArns = /*@__PURE__*/ S.Array(S.String); export interface VpcConfiguration { @@ -4386,18 +4366,17 @@ export interface PersistentVolumeConfiguration { mountPath: string; lastUsedTtlHours?: number; } -export const PersistentVolumeConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - sizeGiB: S.optional(S.Number), - iops: S.optional(S.Number), - throughputMiB: S.optional(S.Number), - mountPath: S.String, - lastUsedTtlHours: S.optional(S.Number), - }), - ).annotate({ - identifier: "PersistentVolumeConfiguration", - }) as any as S.Schema; +export const PersistentVolumeConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + sizeGiB: S.optional(S.Number), + iops: S.optional(S.Number), + throughputMiB: S.optional(S.Number), + mountPath: S.String, + lastUsedTtlHours: S.optional(S.Number), + }), +).annotate({ + identifier: "PersistentVolumeConfiguration", +}) as any as S.Schema; export interface ServiceManagedEc2AutoScalingConfiguration { standbyWorkerCount?: number; workerIdleDurationSeconds?: number; @@ -4421,21 +4400,20 @@ export interface ServiceManagedEc2FleetConfiguration { persistentVolumeConfiguration?: PersistentVolumeConfiguration; autoScalingConfiguration?: ServiceManagedEc2AutoScalingConfiguration; } -export const ServiceManagedEc2FleetConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - instanceCapabilities: ServiceManagedEc2InstanceCapabilities, - instanceMarketOptions: ServiceManagedEc2InstanceMarketOptions, - vpcConfiguration: S.optional(VpcConfiguration), - storageProfileId: S.optional(S.String), - persistentVolumeConfiguration: S.optional(PersistentVolumeConfiguration), - autoScalingConfiguration: S.optional( - ServiceManagedEc2AutoScalingConfiguration, - ), - }), - ).annotate({ - identifier: "ServiceManagedEc2FleetConfiguration", - }) as any as S.Schema; +export const ServiceManagedEc2FleetConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + instanceCapabilities: ServiceManagedEc2InstanceCapabilities, + instanceMarketOptions: ServiceManagedEc2InstanceMarketOptions, + vpcConfiguration: S.optional(VpcConfiguration), + storageProfileId: S.optional(S.String), + persistentVolumeConfiguration: S.optional(PersistentVolumeConfiguration), + autoScalingConfiguration: S.optional( + ServiceManagedEc2AutoScalingConfiguration, + ), + }), +).annotate({ + identifier: "ServiceManagedEc2FleetConfiguration", +}) as any as S.Schema; export type FleetConfiguration = | { customerManaged: CustomerManagedFleetConfiguration; @@ -4787,62 +4765,61 @@ export interface AssociateMemberToFleetRequest { principalId: string; identityCenterRegion?: string; } -export const AssociateMemberToFleetRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - fleetId: S.String.pipe(T.HttpLabel("fleetId")), - principalType: DeadlinePrincipalType, - identityStoreId: S.String, - membershipLevel: MembershipLevel, - principalId: S.String.pipe(T.HttpLabel("principalId")), - identityCenterRegion: S.optional(S.String), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/2023-10-12/farms/{farmId}/fleets/{fleetId}/members/{principalId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const AssociateMemberToFleetRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + fleetId: S.String.pipe(T.HttpLabel("fleetId")), + principalType: DeadlinePrincipalType, + identityStoreId: S.String, + membershipLevel: MembershipLevel, + principalId: S.String.pipe(T.HttpLabel("principalId")), + identityCenterRegion: S.optional(S.String), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/2023-10-12/farms/{farmId}/fleets/{fleetId}/members/{principalId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "AssociateMemberToFleetRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "AssociateMemberToFleetRequest", +}) as any as S.Schema; export interface AssociateMemberToFleetResponse {} -export const AssociateMemberToFleetResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "AssociateMemberToFleetResponse", - }) as any as S.Schema; +export const AssociateMemberToFleetResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "AssociateMemberToFleetResponse", +}) as any as S.Schema; export interface AssumeFleetRoleForReadRequest { farmId: string; fleetId: string; } -export const AssumeFleetRoleForReadRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - fleetId: S.String.pipe(T.HttpLabel("fleetId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/2023-10-12/farms/{farmId}/fleets/{fleetId}/read-roles", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const AssumeFleetRoleForReadRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + fleetId: S.String.pipe(T.HttpLabel("fleetId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/2023-10-12/farms/{farmId}/fleets/{fleetId}/read-roles", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "AssumeFleetRoleForReadRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "AssumeFleetRoleForReadRequest", +}) as any as S.Schema; export interface AwsCredentials { accessKeyId: string | redacted.Redacted; secretAccessKey: string | redacted.Redacted; @@ -4860,44 +4837,43 @@ export const AwsCredentials = /*@__PURE__*/ S.suspend(() => export interface AssumeFleetRoleForReadResponse { credentials: AwsCredentials; } -export const AssumeFleetRoleForReadResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ credentials: AwsCredentials }), - ).annotate({ - identifier: "AssumeFleetRoleForReadResponse", - }) as any as S.Schema; +export const AssumeFleetRoleForReadResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ credentials: AwsCredentials }), +).annotate({ + identifier: "AssumeFleetRoleForReadResponse", +}) as any as S.Schema; export interface DisassociateMemberFromFleetRequest { farmId: string; fleetId: string; principalId: string; } -export const DisassociateMemberFromFleetRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - fleetId: S.String.pipe(T.HttpLabel("fleetId")), - principalId: S.String.pipe(T.HttpLabel("principalId")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/2023-10-12/farms/{farmId}/fleets/{fleetId}/members/{principalId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DisassociateMemberFromFleetRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + fleetId: S.String.pipe(T.HttpLabel("fleetId")), + principalId: S.String.pipe(T.HttpLabel("principalId")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/2023-10-12/farms/{farmId}/fleets/{fleetId}/members/{principalId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DisassociateMemberFromFleetRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DisassociateMemberFromFleetRequest", +}) as any as S.Schema; export interface DisassociateMemberFromFleetResponse {} -export const DisassociateMemberFromFleetResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DisassociateMemberFromFleetResponse", - }) as any as S.Schema; +export const DisassociateMemberFromFleetResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DisassociateMemberFromFleetResponse", +}) as any as S.Schema; export interface ListFleetMembersRequest { farmId: string; fleetId: string; @@ -5262,8 +5238,9 @@ export const WorkerAttributeCapability = /*@__PURE__*/ S.suspend(() => identifier: "WorkerAttributeCapability", }) as any as S.Schema; export type WorkerAttributeCapabilityList = WorkerAttributeCapability[]; -export const WorkerAttributeCapabilityList = - /*@__PURE__*/ S.Array(WorkerAttributeCapability); +export const WorkerAttributeCapabilityList = /*@__PURE__*/ S.Array( + WorkerAttributeCapability, +); export interface WorkerCapabilities { amounts: WorkerAmountCapability[]; attributes: WorkerAttributeCapability[]; @@ -5424,75 +5401,71 @@ export interface AssumeFleetRoleForWorkerRequest { fleetId: string; workerId: string; } -export const AssumeFleetRoleForWorkerRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - fleetId: S.String.pipe(T.HttpLabel("fleetId")), - workerId: S.String.pipe(T.HttpLabel("workerId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/2023-10-12/farms/{farmId}/fleets/{fleetId}/workers/{workerId}/fleet-roles", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const AssumeFleetRoleForWorkerRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + fleetId: S.String.pipe(T.HttpLabel("fleetId")), + workerId: S.String.pipe(T.HttpLabel("workerId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/2023-10-12/farms/{farmId}/fleets/{fleetId}/workers/{workerId}/fleet-roles", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "AssumeFleetRoleForWorkerRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "AssumeFleetRoleForWorkerRequest", +}) as any as S.Schema; export interface AssumeFleetRoleForWorkerResponse { credentials: AwsCredentials; } -export const AssumeFleetRoleForWorkerResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ credentials: AwsCredentials }), - ).annotate({ - identifier: "AssumeFleetRoleForWorkerResponse", - }) as any as S.Schema; +export const AssumeFleetRoleForWorkerResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ credentials: AwsCredentials }), +).annotate({ + identifier: "AssumeFleetRoleForWorkerResponse", +}) as any as S.Schema; export interface AssumeQueueRoleForWorkerRequest { farmId: string; fleetId: string; workerId: string; queueId: string; } -export const AssumeQueueRoleForWorkerRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - fleetId: S.String.pipe(T.HttpLabel("fleetId")), - workerId: S.String.pipe(T.HttpLabel("workerId")), - queueId: S.String.pipe(T.HttpQuery("queueId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/2023-10-12/farms/{farmId}/fleets/{fleetId}/workers/{workerId}/queue-roles", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const AssumeQueueRoleForWorkerRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + fleetId: S.String.pipe(T.HttpLabel("fleetId")), + workerId: S.String.pipe(T.HttpLabel("workerId")), + queueId: S.String.pipe(T.HttpQuery("queueId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/2023-10-12/farms/{farmId}/fleets/{fleetId}/workers/{workerId}/queue-roles", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "AssumeQueueRoleForWorkerRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "AssumeQueueRoleForWorkerRequest", +}) as any as S.Schema; export interface AssumeQueueRoleForWorkerResponse { credentials?: AwsCredentials; } -export const AssumeQueueRoleForWorkerResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ credentials: S.optional(AwsCredentials) }), - ).annotate({ - identifier: "AssumeQueueRoleForWorkerResponse", - }) as any as S.Schema; +export const AssumeQueueRoleForWorkerResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ credentials: S.optional(AwsCredentials) }), +).annotate({ + identifier: "AssumeQueueRoleForWorkerResponse", +}) as any as S.Schema; export interface JobDetailsIdentifiers { jobId: string; } @@ -5504,10 +5477,11 @@ export const JobDetailsIdentifiers = /*@__PURE__*/ S.suspend(() => export interface JobAttachmentDetailsIdentifiers { jobId: string; } -export const JobAttachmentDetailsIdentifiers = - /*@__PURE__*/ S.suspend(() => S.Struct({ jobId: S.String })).annotate({ - identifier: "JobAttachmentDetailsIdentifiers", - }) as any as S.Schema; +export const JobAttachmentDetailsIdentifiers = /*@__PURE__*/ S.suspend(() => + S.Struct({ jobId: S.String }), +).annotate({ + identifier: "JobAttachmentDetailsIdentifiers", +}) as any as S.Schema; export interface StepDetailsIdentifiers { jobId: string; stepId: string; @@ -5521,12 +5495,11 @@ export interface EnvironmentDetailsIdentifiers { jobId: string; environmentId: string; } -export const EnvironmentDetailsIdentifiers = - /*@__PURE__*/ S.suspend(() => - S.Struct({ jobId: S.String, environmentId: S.String }), - ).annotate({ - identifier: "EnvironmentDetailsIdentifiers", - }) as any as S.Schema; +export const EnvironmentDetailsIdentifiers = /*@__PURE__*/ S.suspend(() => + S.Struct({ jobId: S.String, environmentId: S.String }), +).annotate({ + identifier: "EnvironmentDetailsIdentifiers", +}) as any as S.Schema; export type JobEntityIdentifiersUnion = | { jobDetails: JobDetailsIdentifiers; @@ -5861,30 +5834,29 @@ export interface ListSessionsForWorkerRequest { nextToken?: string; maxResults?: number; } -export const ListSessionsForWorkerRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - fleetId: S.String.pipe(T.HttpLabel("fleetId")), - workerId: S.String.pipe(T.HttpLabel("workerId")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/2023-10-12/farms/{farmId}/fleets/{fleetId}/workers/{workerId}/sessions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListSessionsForWorkerRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + fleetId: S.String.pipe(T.HttpLabel("fleetId")), + workerId: S.String.pipe(T.HttpLabel("workerId")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/2023-10-12/farms/{farmId}/fleets/{fleetId}/workers/{workerId}/sessions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListSessionsForWorkerRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListSessionsForWorkerRequest", +}) as any as S.Schema; export interface WorkerSessionSummary { sessionId: string; queueId: string; @@ -5914,15 +5886,14 @@ export interface ListSessionsForWorkerResponse { sessions: WorkerSessionSummary[]; nextToken?: string; } -export const ListSessionsForWorkerResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - sessions: ListSessionsForWorkerSummaries, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListSessionsForWorkerResponse", - }) as any as S.Schema; +export const ListSessionsForWorkerResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + sessions: ListSessionsForWorkerSummaries, + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListSessionsForWorkerResponse", +}) as any as S.Schema; export type CompletedStatus = | "SUCCEEDED" | "FAILED" @@ -5935,19 +5906,19 @@ export interface TaskRunManifestPropertiesRequest { outputManifestPath?: string; outputManifestHash?: string; } -export const TaskRunManifestPropertiesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - outputManifestPath: S.optional(S.String), - outputManifestHash: S.optional(S.String), - }), - ).annotate({ - identifier: "TaskRunManifestPropertiesRequest", - }) as any as S.Schema; +export const TaskRunManifestPropertiesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + outputManifestPath: S.optional(S.String), + outputManifestHash: S.optional(S.String), + }), +).annotate({ + identifier: "TaskRunManifestPropertiesRequest", +}) as any as S.Schema; export type TaskRunManifestPropertiesListRequest = TaskRunManifestPropertiesRequest[]; -export const TaskRunManifestPropertiesListRequest = - /*@__PURE__*/ S.Array(TaskRunManifestPropertiesRequest); +export const TaskRunManifestPropertiesListRequest = /*@__PURE__*/ S.Array( + TaskRunManifestPropertiesRequest, +); export interface UpdatedSessionActionInfo { completedStatus?: CompletedStatus; processExitCode?: number; @@ -5991,62 +5962,57 @@ export interface UpdateWorkerScheduleRequest { [key: string]: UpdatedSessionActionInfo | undefined; }; } -export const UpdateWorkerScheduleRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - fleetId: S.String.pipe(T.HttpLabel("fleetId")), - workerId: S.String.pipe(T.HttpLabel("workerId")), - updatedSessionActions: S.optional(UpdatedSessionActions), - }).pipe( - T.all( - T.Http({ - method: "PATCH", - uri: "/2023-10-12/farms/{farmId}/fleets/{fleetId}/workers/{workerId}/schedule", - }), - svc, - auth, - proto, - ver, - rules, - ), - ), - ).annotate({ - identifier: "UpdateWorkerScheduleRequest", - }) as any as S.Schema; -export interface AssignedEnvironmentEnterSessionActionDefinition { - environmentId: string; -} -export const AssignedEnvironmentEnterSessionActionDefinition = - /*@__PURE__*/ S.suspend(() => S.Struct({ environmentId: S.String })).annotate( - { - identifier: "AssignedEnvironmentEnterSessionActionDefinition", - }, +export const UpdateWorkerScheduleRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + fleetId: S.String.pipe(T.HttpLabel("fleetId")), + workerId: S.String.pipe(T.HttpLabel("workerId")), + updatedSessionActions: S.optional(UpdatedSessionActions), + }).pipe( + T.all( + T.Http({ + method: "PATCH", + uri: "/2023-10-12/farms/{farmId}/fleets/{fleetId}/workers/{workerId}/schedule", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "UpdateWorkerScheduleRequest", +}) as any as S.Schema; +export interface AssignedEnvironmentEnterSessionActionDefinition { + environmentId: string; +} +export const AssignedEnvironmentEnterSessionActionDefinition = + /*@__PURE__*/ S.suspend(() => S.Struct({ environmentId: S.String })).annotate( + { identifier: "AssignedEnvironmentEnterSessionActionDefinition" }, ) as any as S.Schema; export interface AssignedEnvironmentExitSessionActionDefinition { environmentId: string; } export const AssignedEnvironmentExitSessionActionDefinition = /*@__PURE__*/ S.suspend(() => S.Struct({ environmentId: S.String })).annotate( - { - identifier: "AssignedEnvironmentExitSessionActionDefinition", - }, + { identifier: "AssignedEnvironmentExitSessionActionDefinition" }, ) as any as S.Schema; export interface AssignedTaskRunSessionActionDefinition { taskId?: string; stepId: string; parameters: { [key: string]: TaskParameterValue | undefined }; } -export const AssignedTaskRunSessionActionDefinition = - /*@__PURE__*/ S.suspend(() => +export const AssignedTaskRunSessionActionDefinition = /*@__PURE__*/ S.suspend( + () => S.Struct({ taskId: S.optional(S.String), stepId: S.String, parameters: TaskParameters, }), - ).annotate({ - identifier: "AssignedTaskRunSessionActionDefinition", - }) as any as S.Schema; +).annotate({ + identifier: "AssignedTaskRunSessionActionDefinition", +}) as any as S.Schema; export interface AssignedSyncInputJobAttachmentsSessionActionDefinition { stepId?: string; } @@ -6081,16 +6047,15 @@ export type AssignedSessionActionDefinition = taskRun?: never; syncInputJobAttachments: AssignedSyncInputJobAttachmentsSessionActionDefinition; }; -export const AssignedSessionActionDefinition = - /*@__PURE__*/ S.Union([ - S.Struct({ envEnter: AssignedEnvironmentEnterSessionActionDefinition }), - S.Struct({ envExit: AssignedEnvironmentExitSessionActionDefinition }), - S.Struct({ taskRun: AssignedTaskRunSessionActionDefinition }), - S.Struct({ - syncInputJobAttachments: - AssignedSyncInputJobAttachmentsSessionActionDefinition, - }), - ]); +export const AssignedSessionActionDefinition = /*@__PURE__*/ S.Union([ + S.Struct({ envEnter: AssignedEnvironmentEnterSessionActionDefinition }), + S.Struct({ envExit: AssignedEnvironmentExitSessionActionDefinition }), + S.Struct({ taskRun: AssignedTaskRunSessionActionDefinition }), + S.Struct({ + syncInputJobAttachments: + AssignedSyncInputJobAttachmentsSessionActionDefinition, + }), +]); export interface AssignedSessionAction { sessionActionId: string; definition: AssignedSessionActionDefinition; @@ -6143,17 +6108,16 @@ export interface UpdateWorkerScheduleResponse { desiredWorkerStatus?: DesiredWorkerStatus; updateIntervalSeconds: number; } -export const UpdateWorkerScheduleResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - assignedSessions: AssignedSessions, - cancelSessionActions: CancelSessionActions, - desiredWorkerStatus: S.optional(DesiredWorkerStatus), - updateIntervalSeconds: S.Number, - }), - ).annotate({ - identifier: "UpdateWorkerScheduleResponse", - }) as any as S.Schema; +export const UpdateWorkerScheduleResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + assignedSessions: AssignedSessions, + cancelSessionActions: CancelSessionActions, + desiredWorkerStatus: S.optional(DesiredWorkerStatus), + updateIntervalSeconds: S.Number, + }), +).annotate({ + identifier: "UpdateWorkerScheduleResponse", +}) as any as S.Schema; export type DefaultQueueBudgetAction = | "NONE" | "STOP_SCHEDULING_AND_COMPLETE_TASKS" @@ -6165,19 +6129,19 @@ export const RequiredFileSystemLocationNames = /*@__PURE__*/ S.Array(S.String); export type AllowedStorageProfileIds = string[]; export const AllowedStorageProfileIds = /*@__PURE__*/ S.Array(S.String); export interface PriorityFifoSchedulingConfiguration {} -export const PriorityFifoSchedulingConfiguration = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "PriorityFifoSchedulingConfiguration", - }) as any as S.Schema; +export const PriorityFifoSchedulingConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "PriorityFifoSchedulingConfiguration", +}) as any as S.Schema; export interface PriorityBalancedSchedulingConfiguration { renderingTaskBuffer?: number; } -export const PriorityBalancedSchedulingConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ renderingTaskBuffer: S.optional(S.Number) }), - ).annotate({ - identifier: "PriorityBalancedSchedulingConfiguration", - }) as any as S.Schema; +export const PriorityBalancedSchedulingConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ renderingTaskBuffer: S.optional(S.Number) }), +).annotate({ + identifier: "PriorityBalancedSchedulingConfiguration", +}) as any as S.Schema; export interface SchedulingMaxPriorityOverrideAlwaysScheduleFirst {} export const SchedulingMaxPriorityOverrideAlwaysScheduleFirst = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ @@ -6186,12 +6150,11 @@ export const SchedulingMaxPriorityOverrideAlwaysScheduleFirst = export type SchedulingMaxPriorityOverride = { alwaysScheduleFirst: SchedulingMaxPriorityOverrideAlwaysScheduleFirst; }; -export const SchedulingMaxPriorityOverride = - /*@__PURE__*/ S.Union([ - S.Struct({ - alwaysScheduleFirst: SchedulingMaxPriorityOverrideAlwaysScheduleFirst, - }), - ]); +export const SchedulingMaxPriorityOverride = /*@__PURE__*/ S.Union([ + S.Struct({ + alwaysScheduleFirst: SchedulingMaxPriorityOverrideAlwaysScheduleFirst, + }), +]); export interface SchedulingMinPriorityOverrideAlwaysScheduleLast {} export const SchedulingMinPriorityOverrideAlwaysScheduleLast = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ @@ -6200,12 +6163,11 @@ export const SchedulingMinPriorityOverrideAlwaysScheduleLast = export type SchedulingMinPriorityOverride = { alwaysScheduleLast: SchedulingMinPriorityOverrideAlwaysScheduleLast; }; -export const SchedulingMinPriorityOverride = - /*@__PURE__*/ S.Union([ - S.Struct({ - alwaysScheduleLast: SchedulingMinPriorityOverrideAlwaysScheduleLast, - }), - ]); +export const SchedulingMinPriorityOverride = /*@__PURE__*/ S.Union([ + S.Struct({ + alwaysScheduleLast: SchedulingMinPriorityOverrideAlwaysScheduleLast, + }), +]); export interface WeightedBalancedSchedulingConfiguration { priorityWeight?: number; errorWeight?: number; @@ -6215,8 +6177,8 @@ export interface WeightedBalancedSchedulingConfiguration { maxPriorityOverride?: SchedulingMaxPriorityOverride; minPriorityOverride?: SchedulingMinPriorityOverride; } -export const WeightedBalancedSchedulingConfiguration = - /*@__PURE__*/ S.suspend(() => +export const WeightedBalancedSchedulingConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ priorityWeight: S.optional(S.Number), errorWeight: S.optional(S.Number), @@ -6226,9 +6188,9 @@ export const WeightedBalancedSchedulingConfiguration = maxPriorityOverride: S.optional(SchedulingMaxPriorityOverride), minPriorityOverride: S.optional(SchedulingMinPriorityOverride), }), - ).annotate({ - identifier: "WeightedBalancedSchedulingConfiguration", - }) as any as S.Schema; +).annotate({ + identifier: "WeightedBalancedSchedulingConfiguration", +}) as any as S.Schema; export type SchedulingConfiguration = | { priorityFifo: PriorityFifoSchedulingConfiguration; @@ -6551,105 +6513,101 @@ export interface AssociateMemberToQueueRequest { principalId: string; identityCenterRegion?: string; } -export const AssociateMemberToQueueRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - queueId: S.String.pipe(T.HttpLabel("queueId")), - principalType: DeadlinePrincipalType, - identityStoreId: S.String, - membershipLevel: MembershipLevel, - principalId: S.String.pipe(T.HttpLabel("principalId")), - identityCenterRegion: S.optional(S.String), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/2023-10-12/farms/{farmId}/queues/{queueId}/members/{principalId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const AssociateMemberToQueueRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + queueId: S.String.pipe(T.HttpLabel("queueId")), + principalType: DeadlinePrincipalType, + identityStoreId: S.String, + membershipLevel: MembershipLevel, + principalId: S.String.pipe(T.HttpLabel("principalId")), + identityCenterRegion: S.optional(S.String), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/2023-10-12/farms/{farmId}/queues/{queueId}/members/{principalId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "AssociateMemberToQueueRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "AssociateMemberToQueueRequest", +}) as any as S.Schema; export interface AssociateMemberToQueueResponse {} -export const AssociateMemberToQueueResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "AssociateMemberToQueueResponse", - }) as any as S.Schema; +export const AssociateMemberToQueueResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "AssociateMemberToQueueResponse", +}) as any as S.Schema; export interface AssumeQueueRoleForReadRequest { farmId: string; queueId: string; } -export const AssumeQueueRoleForReadRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - queueId: S.String.pipe(T.HttpLabel("queueId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/2023-10-12/farms/{farmId}/queues/{queueId}/read-roles", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const AssumeQueueRoleForReadRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + queueId: S.String.pipe(T.HttpLabel("queueId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/2023-10-12/farms/{farmId}/queues/{queueId}/read-roles", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "AssumeQueueRoleForReadRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "AssumeQueueRoleForReadRequest", +}) as any as S.Schema; export interface AssumeQueueRoleForReadResponse { credentials: AwsCredentials; } -export const AssumeQueueRoleForReadResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ credentials: AwsCredentials }), - ).annotate({ - identifier: "AssumeQueueRoleForReadResponse", - }) as any as S.Schema; +export const AssumeQueueRoleForReadResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ credentials: AwsCredentials }), +).annotate({ + identifier: "AssumeQueueRoleForReadResponse", +}) as any as S.Schema; export interface AssumeQueueRoleForUserRequest { farmId: string; queueId: string; } -export const AssumeQueueRoleForUserRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - queueId: S.String.pipe(T.HttpLabel("queueId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/2023-10-12/farms/{farmId}/queues/{queueId}/user-roles", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const AssumeQueueRoleForUserRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + queueId: S.String.pipe(T.HttpLabel("queueId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/2023-10-12/farms/{farmId}/queues/{queueId}/user-roles", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "AssumeQueueRoleForUserRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "AssumeQueueRoleForUserRequest", +}) as any as S.Schema; export interface AssumeQueueRoleForUserResponse { credentials: AwsCredentials; } -export const AssumeQueueRoleForUserResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ credentials: AwsCredentials }), - ).annotate({ - identifier: "AssumeQueueRoleForUserResponse", - }) as any as S.Schema; +export const AssumeQueueRoleForUserResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ credentials: AwsCredentials }), +).annotate({ + identifier: "AssumeQueueRoleForUserResponse", +}) as any as S.Schema; export type EnvironmentTemplateType = "JSON" | "YAML" | (string & {}); export const EnvironmentTemplateType = /*@__PURE__*/ S.String; export interface CreateQueueEnvironmentRequest { @@ -6660,107 +6618,105 @@ export interface CreateQueueEnvironmentRequest { templateType: EnvironmentTemplateType; template: string | redacted.Redacted; } -export const CreateQueueEnvironmentRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - queueId: S.String.pipe(T.HttpLabel("queueId")), - clientToken: S.optional(S.String).pipe( - T.HttpHeader("X-Amz-Client-Token"), - T.IdempotencyToken(), - ), - priority: S.Number, - templateType: EnvironmentTemplateType, - template: SensitiveString, - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/2023-10-12/farms/{farmId}/queues/{queueId}/environments", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateQueueEnvironmentRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + queueId: S.String.pipe(T.HttpLabel("queueId")), + clientToken: S.optional(S.String).pipe( + T.HttpHeader("X-Amz-Client-Token"), + T.IdempotencyToken(), ), - ).annotate({ - identifier: "CreateQueueEnvironmentRequest", - }) as any as S.Schema; + priority: S.Number, + templateType: EnvironmentTemplateType, + template: SensitiveString, + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/2023-10-12/farms/{farmId}/queues/{queueId}/environments", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "CreateQueueEnvironmentRequest", +}) as any as S.Schema; export interface CreateQueueEnvironmentResponse { queueEnvironmentId: string; } -export const CreateQueueEnvironmentResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ queueEnvironmentId: S.String }), - ).annotate({ - identifier: "CreateQueueEnvironmentResponse", - }) as any as S.Schema; +export const CreateQueueEnvironmentResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ queueEnvironmentId: S.String }), +).annotate({ + identifier: "CreateQueueEnvironmentResponse", +}) as any as S.Schema; export interface DeleteQueueEnvironmentRequest { farmId: string; queueId: string; queueEnvironmentId: string; } -export const DeleteQueueEnvironmentRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - queueId: S.String.pipe(T.HttpLabel("queueId")), - queueEnvironmentId: S.String.pipe(T.HttpLabel("queueEnvironmentId")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/2023-10-12/farms/{farmId}/queues/{queueId}/environments/{queueEnvironmentId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteQueueEnvironmentRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + queueId: S.String.pipe(T.HttpLabel("queueId")), + queueEnvironmentId: S.String.pipe(T.HttpLabel("queueEnvironmentId")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/2023-10-12/farms/{farmId}/queues/{queueId}/environments/{queueEnvironmentId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteQueueEnvironmentRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteQueueEnvironmentRequest", +}) as any as S.Schema; export interface DeleteQueueEnvironmentResponse {} -export const DeleteQueueEnvironmentResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteQueueEnvironmentResponse", - }) as any as S.Schema; +export const DeleteQueueEnvironmentResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteQueueEnvironmentResponse", +}) as any as S.Schema; export interface DisassociateMemberFromQueueRequest { farmId: string; queueId: string; principalId: string; } -export const DisassociateMemberFromQueueRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - queueId: S.String.pipe(T.HttpLabel("queueId")), - principalId: S.String.pipe(T.HttpLabel("principalId")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/2023-10-12/farms/{farmId}/queues/{queueId}/members/{principalId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DisassociateMemberFromQueueRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + queueId: S.String.pipe(T.HttpLabel("queueId")), + principalId: S.String.pipe(T.HttpLabel("principalId")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/2023-10-12/farms/{farmId}/queues/{queueId}/members/{principalId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DisassociateMemberFromQueueRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DisassociateMemberFromQueueRequest", +}) as any as S.Schema; export interface DisassociateMemberFromQueueResponse {} -export const DisassociateMemberFromQueueResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DisassociateMemberFromQueueResponse", - }) as any as S.Schema; +export const DisassociateMemberFromQueueResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DisassociateMemberFromQueueResponse", +}) as any as S.Schema; export interface GetQueueEnvironmentRequest { farmId: string; queueId: string; @@ -6798,97 +6754,93 @@ export interface GetQueueEnvironmentResponse { updatedAt?: Date; updatedBy?: string; } -export const GetQueueEnvironmentResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - queueEnvironmentId: S.String, - name: S.String, - priority: S.Number, - templateType: EnvironmentTemplateType, - template: SensitiveString, - createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - createdBy: S.String, - updatedAt: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - updatedBy: S.optional(S.String), - }), - ).annotate({ - identifier: "GetQueueEnvironmentResponse", - }) as any as S.Schema; +export const GetQueueEnvironmentResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + queueEnvironmentId: S.String, + name: S.String, + priority: S.Number, + templateType: EnvironmentTemplateType, + template: SensitiveString, + createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + createdBy: S.String, + updatedAt: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + updatedBy: S.optional(S.String), + }), +).annotate({ + identifier: "GetQueueEnvironmentResponse", +}) as any as S.Schema; export interface GetStorageProfileForQueueRequest { farmId: string; queueId: string; storageProfileId: string; } -export const GetStorageProfileForQueueRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - queueId: S.String.pipe(T.HttpLabel("queueId")), - storageProfileId: S.String.pipe(T.HttpLabel("storageProfileId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/2023-10-12/farms/{farmId}/queues/{queueId}/storage-profiles/{storageProfileId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetStorageProfileForQueueRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + queueId: S.String.pipe(T.HttpLabel("queueId")), + storageProfileId: S.String.pipe(T.HttpLabel("storageProfileId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/2023-10-12/farms/{farmId}/queues/{queueId}/storage-profiles/{storageProfileId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetStorageProfileForQueueRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetStorageProfileForQueueRequest", +}) as any as S.Schema; export interface GetStorageProfileForQueueResponse { storageProfileId: string; displayName: string; osFamily: StorageProfileOperatingSystemFamily; fileSystemLocations?: FileSystemLocation[]; } -export const GetStorageProfileForQueueResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - storageProfileId: S.String, - displayName: S.String, - osFamily: StorageProfileOperatingSystemFamily, - fileSystemLocations: S.optional(FileSystemLocationsList), - }), - ).annotate({ - identifier: "GetStorageProfileForQueueResponse", - }) as any as S.Schema; +export const GetStorageProfileForQueueResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + storageProfileId: S.String, + displayName: S.String, + osFamily: StorageProfileOperatingSystemFamily, + fileSystemLocations: S.optional(FileSystemLocationsList), + }), +).annotate({ + identifier: "GetStorageProfileForQueueResponse", +}) as any as S.Schema; export interface ListQueueEnvironmentsRequest { farmId: string; queueId: string; nextToken?: string; maxResults?: number; } -export const ListQueueEnvironmentsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - queueId: S.String.pipe(T.HttpLabel("queueId")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/2023-10-12/farms/{farmId}/queues/{queueId}/environments", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListQueueEnvironmentsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + queueId: S.String.pipe(T.HttpLabel("queueId")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/2023-10-12/farms/{farmId}/queues/{queueId}/environments", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListQueueEnvironmentsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListQueueEnvironmentsRequest", +}) as any as S.Schema; export interface QueueEnvironmentSummary { queueEnvironmentId: string; name: string; @@ -6911,15 +6863,14 @@ export interface ListQueueEnvironmentsResponse { environments: QueueEnvironmentSummary[]; nextToken?: string; } -export const ListQueueEnvironmentsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - environments: QueueEnvironmentSummaries, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListQueueEnvironmentsResponse", - }) as any as S.Schema; +export const ListQueueEnvironmentsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + environments: QueueEnvironmentSummaries, + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListQueueEnvironmentsResponse", +}) as any as S.Schema; export interface ListQueueMembersRequest { farmId: string; queueId: string; @@ -6983,42 +6934,40 @@ export interface ListStorageProfilesForQueueRequest { nextToken?: string; maxResults?: number; } -export const ListStorageProfilesForQueueRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - queueId: S.String.pipe(T.HttpLabel("queueId")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/2023-10-12/farms/{farmId}/queues/{queueId}/storage-profiles", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListStorageProfilesForQueueRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + queueId: S.String.pipe(T.HttpLabel("queueId")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/2023-10-12/farms/{farmId}/queues/{queueId}/storage-profiles", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListStorageProfilesForQueueRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListStorageProfilesForQueueRequest", +}) as any as S.Schema; export interface ListStorageProfilesForQueueResponse { storageProfiles: StorageProfileSummary[]; nextToken?: string; } -export const ListStorageProfilesForQueueResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - storageProfiles: StorageProfileSummaries, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListStorageProfilesForQueueResponse", - }) as any as S.Schema; +export const ListStorageProfilesForQueueResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + storageProfiles: StorageProfileSummaries, + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListStorageProfilesForQueueResponse", +}) as any as S.Schema; export interface UpdateQueueEnvironmentRequest { farmId: string; queueId: string; @@ -7028,40 +6977,40 @@ export interface UpdateQueueEnvironmentRequest { templateType?: EnvironmentTemplateType; template?: string | redacted.Redacted; } -export const UpdateQueueEnvironmentRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - queueId: S.String.pipe(T.HttpLabel("queueId")), - queueEnvironmentId: S.String.pipe(T.HttpLabel("queueEnvironmentId")), - clientToken: S.optional(S.String).pipe( - T.HttpHeader("X-Amz-Client-Token"), - T.IdempotencyToken(), - ), - priority: S.optional(S.Number), - templateType: S.optional(EnvironmentTemplateType), - template: S.optional(SensitiveString), - }).pipe( - T.all( - T.Http({ - method: "PATCH", - uri: "/2023-10-12/farms/{farmId}/queues/{queueId}/environments/{queueEnvironmentId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateQueueEnvironmentRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + queueId: S.String.pipe(T.HttpLabel("queueId")), + queueEnvironmentId: S.String.pipe(T.HttpLabel("queueEnvironmentId")), + clientToken: S.optional(S.String).pipe( + T.HttpHeader("X-Amz-Client-Token"), + T.IdempotencyToken(), ), - ).annotate({ - identifier: "UpdateQueueEnvironmentRequest", - }) as any as S.Schema; + priority: S.optional(S.Number), + templateType: S.optional(EnvironmentTemplateType), + template: S.optional(SensitiveString), + }).pipe( + T.all( + T.Http({ + method: "PATCH", + uri: "/2023-10-12/farms/{farmId}/queues/{queueId}/environments/{queueEnvironmentId}", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "UpdateQueueEnvironmentRequest", +}) as any as S.Schema; export interface UpdateQueueEnvironmentResponse {} -export const UpdateQueueEnvironmentResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateQueueEnvironmentResponse", - }) as any as S.Schema; +export const UpdateQueueEnvironmentResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "UpdateQueueEnvironmentResponse", +}) as any as S.Schema; export type JobTemplateType = "JSON" | "YAML" | (string & {}); export const JobTemplateType = /*@__PURE__*/ S.String; export type CreateJobTargetTaskRunStatus = @@ -7366,38 +7315,38 @@ export interface AssociateMemberToJobRequest { principalId: string; identityCenterRegion?: string; } -export const AssociateMemberToJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - queueId: S.String.pipe(T.HttpLabel("queueId")), - jobId: S.String.pipe(T.HttpLabel("jobId")), - principalType: DeadlinePrincipalType, - identityStoreId: S.String, - membershipLevel: MembershipLevel, - principalId: S.String.pipe(T.HttpLabel("principalId")), - identityCenterRegion: S.optional(S.String), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/2023-10-12/farms/{farmId}/queues/{queueId}/jobs/{jobId}/members/{principalId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const AssociateMemberToJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + queueId: S.String.pipe(T.HttpLabel("queueId")), + jobId: S.String.pipe(T.HttpLabel("jobId")), + principalType: DeadlinePrincipalType, + identityStoreId: S.String, + membershipLevel: MembershipLevel, + principalId: S.String.pipe(T.HttpLabel("principalId")), + identityCenterRegion: S.optional(S.String), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/2023-10-12/farms/{farmId}/queues/{queueId}/jobs/{jobId}/members/{principalId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "AssociateMemberToJobRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "AssociateMemberToJobRequest", +}) as any as S.Schema; export interface AssociateMemberToJobResponse {} -export const AssociateMemberToJobResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "AssociateMemberToJobResponse", - }) as any as S.Schema; +export const AssociateMemberToJobResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "AssociateMemberToJobResponse", +}) as any as S.Schema; export interface S3Location { bucketName: string; key: string; @@ -7447,34 +7396,34 @@ export interface DisassociateMemberFromJobRequest { jobId: string; principalId: string; } -export const DisassociateMemberFromJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - queueId: S.String.pipe(T.HttpLabel("queueId")), - jobId: S.String.pipe(T.HttpLabel("jobId")), - principalId: S.String.pipe(T.HttpLabel("principalId")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/2023-10-12/farms/{farmId}/queues/{queueId}/jobs/{jobId}/members/{principalId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DisassociateMemberFromJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + queueId: S.String.pipe(T.HttpLabel("queueId")), + jobId: S.String.pipe(T.HttpLabel("jobId")), + principalId: S.String.pipe(T.HttpLabel("principalId")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/2023-10-12/farms/{farmId}/queues/{queueId}/jobs/{jobId}/members/{principalId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DisassociateMemberFromJobRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DisassociateMemberFromJobRequest", +}) as any as S.Schema; export interface DisassociateMemberFromJobResponse {} -export const DisassociateMemberFromJobResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DisassociateMemberFromJobResponse", - }) as any as S.Schema; +export const DisassociateMemberFromJobResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DisassociateMemberFromJobResponse", +}) as any as S.Schema; export interface GetSessionRequest { farmId: string; queueId: string; @@ -7807,45 +7756,43 @@ export interface ListJobParameterDefinitionsRequest { nextToken?: string; maxResults?: number; } -export const ListJobParameterDefinitionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - queueId: S.String.pipe(T.HttpLabel("queueId")), - jobId: S.String.pipe(T.HttpLabel("jobId")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/2023-10-12/farms/{farmId}/queues/{queueId}/jobs/{jobId}/parameter-definitions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListJobParameterDefinitionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + queueId: S.String.pipe(T.HttpLabel("queueId")), + jobId: S.String.pipe(T.HttpLabel("jobId")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/2023-10-12/farms/{farmId}/queues/{queueId}/jobs/{jobId}/parameter-definitions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListJobParameterDefinitionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListJobParameterDefinitionsRequest", +}) as any as S.Schema; export type JobParameterDefinitions = any[]; export const JobParameterDefinitions = /*@__PURE__*/ S.Array(S.Any); export interface ListJobParameterDefinitionsResponse { - jobParameterDefinitions: any[]; - nextToken?: string; -} -export const ListJobParameterDefinitionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - jobParameterDefinitions: JobParameterDefinitions, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListJobParameterDefinitionsResponse", - }) as any as S.Schema; + jobParameterDefinitions: any[]; + nextToken?: string; +} +export const ListJobParameterDefinitionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + jobParameterDefinitions: JobParameterDefinitions, + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListJobParameterDefinitionsResponse", +}) as any as S.Schema; export interface ListSessionActionsRequest { farmId: string; queueId: string; @@ -7885,34 +7832,30 @@ export interface EnvironmentEnterSessionActionDefinitionSummary { } export const EnvironmentEnterSessionActionDefinitionSummary = /*@__PURE__*/ S.suspend(() => S.Struct({ environmentId: S.String })).annotate( - { - identifier: "EnvironmentEnterSessionActionDefinitionSummary", - }, + { identifier: "EnvironmentEnterSessionActionDefinitionSummary" }, ) as any as S.Schema; export interface EnvironmentExitSessionActionDefinitionSummary { environmentId: string; } export const EnvironmentExitSessionActionDefinitionSummary = /*@__PURE__*/ S.suspend(() => S.Struct({ environmentId: S.String })).annotate( - { - identifier: "EnvironmentExitSessionActionDefinitionSummary", - }, + { identifier: "EnvironmentExitSessionActionDefinitionSummary" }, ) as any as S.Schema; export interface TaskRunSessionActionDefinitionSummary { taskId?: string; stepId: string; parameters?: { [key: string]: TaskParameterValue | undefined }; } -export const TaskRunSessionActionDefinitionSummary = - /*@__PURE__*/ S.suspend(() => +export const TaskRunSessionActionDefinitionSummary = /*@__PURE__*/ S.suspend( + () => S.Struct({ taskId: S.optional(S.String), stepId: S.String, parameters: S.optional(TaskParameters), }), - ).annotate({ - identifier: "TaskRunSessionActionDefinitionSummary", - }) as any as S.Schema; +).annotate({ + identifier: "TaskRunSessionActionDefinitionSummary", +}) as any as S.Schema; export interface SyncInputJobAttachmentsSessionActionDefinitionSummary { stepId?: string; } @@ -7947,16 +7890,15 @@ export type SessionActionDefinitionSummary = taskRun?: never; syncInputJobAttachments: SyncInputJobAttachmentsSessionActionDefinitionSummary; }; -export const SessionActionDefinitionSummary = - /*@__PURE__*/ S.Union([ - S.Struct({ envEnter: EnvironmentEnterSessionActionDefinitionSummary }), - S.Struct({ envExit: EnvironmentExitSessionActionDefinitionSummary }), - S.Struct({ taskRun: TaskRunSessionActionDefinitionSummary }), - S.Struct({ - syncInputJobAttachments: - SyncInputJobAttachmentsSessionActionDefinitionSummary, - }), - ]); +export const SessionActionDefinitionSummary = /*@__PURE__*/ S.Union([ + S.Struct({ envEnter: EnvironmentEnterSessionActionDefinitionSummary }), + S.Struct({ envExit: EnvironmentExitSessionActionDefinitionSummary }), + S.Struct({ taskRun: TaskRunSessionActionDefinitionSummary }), + S.Struct({ + syncInputJobAttachments: + SyncInputJobAttachmentsSessionActionDefinitionSummary, + }), +]); export interface SessionActionSummary { sessionActionId: string; status: SessionActionStatus; @@ -8130,31 +8072,30 @@ export interface ListStepDependenciesRequest { nextToken?: string; maxResults?: number; } -export const ListStepDependenciesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - farmId: S.String.pipe(T.HttpLabel("farmId")), - queueId: S.String.pipe(T.HttpLabel("queueId")), - jobId: S.String.pipe(T.HttpLabel("jobId")), - stepId: S.String.pipe(T.HttpLabel("stepId")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/2023-10-12/farms/{farmId}/queues/{queueId}/jobs/{jobId}/steps/{stepId}/dependencies", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListStepDependenciesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + farmId: S.String.pipe(T.HttpLabel("farmId")), + queueId: S.String.pipe(T.HttpLabel("queueId")), + jobId: S.String.pipe(T.HttpLabel("jobId")), + stepId: S.String.pipe(T.HttpLabel("stepId")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/2023-10-12/farms/{farmId}/queues/{queueId}/jobs/{jobId}/steps/{stepId}/dependencies", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListStepDependenciesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListStepDependenciesRequest", +}) as any as S.Schema; export interface StepDependency { stepId: string; status: DependencyConsumerResolutionStatus; @@ -8168,15 +8109,11 @@ export interface ListStepDependenciesResponse { dependencies: StepDependency[]; nextToken?: string; } -export const ListStepDependenciesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - dependencies: StepDependencies, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListStepDependenciesResponse", - }) as any as S.Schema; +export const ListStepDependenciesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ dependencies: StepDependencies, nextToken: S.optional(S.String) }), +).annotate({ + identifier: "ListStepDependenciesResponse", +}) as any as S.Schema; export interface ListStepsRequest { farmId: string; queueId: string; @@ -8471,39 +8408,37 @@ export interface CreateLicenseEndpointRequest { securityGroupIds: string[]; tags?: { [key: string]: string | undefined }; } -export const CreateLicenseEndpointRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - clientToken: S.optional(S.String).pipe( - T.HttpHeader("X-Amz-Client-Token"), - T.IdempotencyToken(), - ), - vpcId: S.String, - subnetIds: SubnetIdList, - securityGroupIds: SecurityGroupIdList, - tags: S.optional(Tags), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/2023-10-12/license-endpoints" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateLicenseEndpointRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + clientToken: S.optional(S.String).pipe( + T.HttpHeader("X-Amz-Client-Token"), + T.IdempotencyToken(), ), - ).annotate({ - identifier: "CreateLicenseEndpointRequest", - }) as any as S.Schema; + vpcId: S.String, + subnetIds: SubnetIdList, + securityGroupIds: SecurityGroupIdList, + tags: S.optional(Tags), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/2023-10-12/license-endpoints" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "CreateLicenseEndpointRequest", +}) as any as S.Schema; export interface CreateLicenseEndpointResponse { licenseEndpointId: string; } -export const CreateLicenseEndpointResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ licenseEndpointId: S.String }), - ).annotate({ - identifier: "CreateLicenseEndpointResponse", - }) as any as S.Schema; +export const CreateLicenseEndpointResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ licenseEndpointId: S.String }), +).annotate({ + identifier: "CreateLicenseEndpointResponse", +}) as any as S.Schema; export interface GetLicenseEndpointRequest { licenseEndpointId: string; } @@ -8558,53 +8493,52 @@ export const GetLicenseEndpointResponse = /*@__PURE__*/ S.suspend(() => export interface DeleteLicenseEndpointRequest { licenseEndpointId: string; } -export const DeleteLicenseEndpointRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - licenseEndpointId: S.String.pipe(T.HttpLabel("licenseEndpointId")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/2023-10-12/license-endpoints/{licenseEndpointId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteLicenseEndpointRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + licenseEndpointId: S.String.pipe(T.HttpLabel("licenseEndpointId")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/2023-10-12/license-endpoints/{licenseEndpointId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteLicenseEndpointRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteLicenseEndpointRequest", +}) as any as S.Schema; export interface DeleteLicenseEndpointResponse {} -export const DeleteLicenseEndpointResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteLicenseEndpointResponse", - }) as any as S.Schema; +export const DeleteLicenseEndpointResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteLicenseEndpointResponse", +}) as any as S.Schema; export interface ListLicenseEndpointsRequest { nextToken?: string; maxResults?: number; } -export const ListLicenseEndpointsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/2023-10-12/license-endpoints" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListLicenseEndpointsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/2023-10-12/license-endpoints" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListLicenseEndpointsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListLicenseEndpointsRequest", +}) as any as S.Schema; export interface LicenseEndpointSummary { licenseEndpointId?: string; status?: LicenseEndpointStatus; @@ -8629,45 +8563,44 @@ export interface ListLicenseEndpointsResponse { licenseEndpoints: LicenseEndpointSummary[]; nextToken?: string; } -export const ListLicenseEndpointsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - licenseEndpoints: LicenseEndpointSummaries, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListLicenseEndpointsResponse", - }) as any as S.Schema; +export const ListLicenseEndpointsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + licenseEndpoints: LicenseEndpointSummaries, + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListLicenseEndpointsResponse", +}) as any as S.Schema; export interface DeleteMeteredProductRequest { licenseEndpointId: string; productId: string; } -export const DeleteMeteredProductRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - licenseEndpointId: S.String.pipe(T.HttpLabel("licenseEndpointId")), - productId: S.String.pipe(T.HttpLabel("productId")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/2023-10-12/license-endpoints/{licenseEndpointId}/metered-products/{productId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteMeteredProductRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + licenseEndpointId: S.String.pipe(T.HttpLabel("licenseEndpointId")), + productId: S.String.pipe(T.HttpLabel("productId")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/2023-10-12/license-endpoints/{licenseEndpointId}/metered-products/{productId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteMeteredProductRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteMeteredProductRequest", +}) as any as S.Schema; export interface DeleteMeteredProductResponse {} -export const DeleteMeteredProductResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteMeteredProductResponse", - }) as any as S.Schema; +export const DeleteMeteredProductResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteMeteredProductResponse", +}) as any as S.Schema; export interface ListMeteredProductsRequest { licenseEndpointId: string; nextToken?: string; @@ -8698,15 +8631,14 @@ export interface ListMeteredProductsResponse { meteredProducts: MeteredProductSummary[]; nextToken?: string; } -export const ListMeteredProductsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - meteredProducts: MeteredProductSummaryList, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListMeteredProductsResponse", - }) as any as S.Schema; +export const ListMeteredProductsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + meteredProducts: MeteredProductSummaryList, + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListMeteredProductsResponse", +}) as any as S.Schema; export interface PutMeteredProductRequest { licenseEndpointId: string; productId: string; @@ -8986,37 +8918,38 @@ export interface UpdateMonitorSettingsRequest { monitorId: string; settings: { [key: string]: string | undefined }; } -export const UpdateMonitorSettingsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - monitorId: S.String.pipe(T.HttpLabel("monitorId")), - settings: SettingsMap, - }).pipe( - T.all( - T.Http({ - method: "PATCH", - uri: "/2023-10-12/monitors/{monitorId}/settings", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateMonitorSettingsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + monitorId: S.String.pipe(T.HttpLabel("monitorId")), + settings: SettingsMap, + }).pipe( + T.all( + T.Http({ + method: "PATCH", + uri: "/2023-10-12/monitors/{monitorId}/settings", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateMonitorSettingsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateMonitorSettingsRequest", +}) as any as S.Schema; export interface UpdateMonitorSettingsResponse {} -export const UpdateMonitorSettingsResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateMonitorSettingsResponse", - }) as any as S.Schema; +export const UpdateMonitorSettingsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "UpdateMonitorSettingsResponse", +}) as any as S.Schema; //# Errors export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.String, context: S.optional(ExceptionContext) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class InternalServerErrorException extends S.TaggedErrorClass()( "InternalServerErrorException", @@ -9024,7 +8957,7 @@ export class InternalServerErrorException extends S.TaggedErrorClass()( "ThrottlingException", @@ -9035,7 +8968,7 @@ export class ThrottlingException extends S.TaggedErrorClass retryAfterSeconds: S.optional(S.Number).pipe(T.HttpHeader("Retry-After")), context: S.optional(ExceptionContext), }, - T.Retryable({ throttling: true }), + T.all(T.HttpError(429), T.Retryable({ throttling: true })), ).pipe(C.withThrottlingError, C.withRetryableError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", @@ -9045,6 +8978,7 @@ export class ValidationException extends S.TaggedErrorClass fieldList: S.optional(ValidationExceptionFieldList), context: S.optional(ExceptionContext), }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", @@ -9054,6 +8988,7 @@ export class ResourceNotFoundException extends S.TaggedErrorClass()( "ConflictException", @@ -9064,6 +8999,7 @@ export class ConflictException extends S.TaggedErrorClass()( resourceType: S.String, context: S.optional(ExceptionContext), }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", @@ -9076,7 +9012,12 @@ export class ServiceQuotaExceededException extends S.TaggedErrorClass()( + "InternalServerException", + {}, +).pipe(C.withServerError, C.withRetryableError) {} //# Operations export type BatchGetJobError = @@ -9105,6 +9046,7 @@ export const batchGetJob: API.OperationMethod< ValidationException, ], operationName: "BatchGetJob", + endpointHostPrefix: "management.", })); export type BatchGetSessionError = | AccessDeniedException @@ -9132,6 +9074,7 @@ export const batchGetSession: API.OperationMethod< ValidationException, ], operationName: "BatchGetSession", + endpointHostPrefix: "management.", })); export type BatchGetSessionActionError = | AccessDeniedException @@ -9159,6 +9102,7 @@ export const batchGetSessionAction: API.OperationMethod< ValidationException, ], operationName: "BatchGetSessionAction", + endpointHostPrefix: "management.", })); export type BatchGetStepError = | AccessDeniedException @@ -9186,6 +9130,7 @@ export const batchGetStep: API.OperationMethod< ValidationException, ], operationName: "BatchGetStep", + endpointHostPrefix: "management.", })); export type BatchGetTaskError = | AccessDeniedException @@ -9213,6 +9158,7 @@ export const batchGetTask: API.OperationMethod< ValidationException, ], operationName: "BatchGetTask", + endpointHostPrefix: "management.", })); export type BatchGetWorkerError = | AccessDeniedException @@ -9240,6 +9186,7 @@ export const batchGetWorker: API.OperationMethod< ValidationException, ], operationName: "BatchGetWorker", + endpointHostPrefix: "management.", })); export type BatchUpdateJobError = | AccessDeniedException @@ -9271,6 +9218,7 @@ export const batchUpdateJob: API.OperationMethod< ValidationException, ], operationName: "BatchUpdateJob", + endpointHostPrefix: "management.", })); export type BatchUpdateTaskError = | AccessDeniedException @@ -9298,6 +9246,7 @@ export const batchUpdateTask: API.OperationMethod< ValidationException, ], operationName: "BatchUpdateTask", + endpointHostPrefix: "management.", })); export type CreateQueueFleetAssociationError = | AccessDeniedException @@ -9325,6 +9274,7 @@ export const createQueueFleetAssociation: API.OperationMethod< ValidationException, ], operationName: "CreateQueueFleetAssociation", + endpointHostPrefix: "management.", })); export type CreateQueueLimitAssociationError = | AccessDeniedException @@ -9352,6 +9302,7 @@ export const createQueueLimitAssociation: API.OperationMethod< ValidationException, ], operationName: "CreateQueueLimitAssociation", + endpointHostPrefix: "management.", })); export type DeleteQueueFleetAssociationError = | AccessDeniedException @@ -9381,6 +9332,7 @@ export const deleteQueueFleetAssociation: API.OperationMethod< ValidationException, ], operationName: "DeleteQueueFleetAssociation", + endpointHostPrefix: "management.", })); export type DeleteQueueLimitAssociationError = | AccessDeniedException @@ -9410,6 +9362,7 @@ export const deleteQueueLimitAssociation: API.OperationMethod< ValidationException, ], operationName: "DeleteQueueLimitAssociation", + endpointHostPrefix: "management.", })); export type GetQueueFleetAssociationError = | AccessDeniedException @@ -9437,6 +9390,7 @@ export const getQueueFleetAssociation: API.OperationMethod< ValidationException, ], operationName: "GetQueueFleetAssociation", + endpointHostPrefix: "management.", })); export type GetQueueLimitAssociationError = | AccessDeniedException @@ -9464,6 +9418,7 @@ export const getQueueLimitAssociation: API.OperationMethod< ValidationException, ], operationName: "GetQueueLimitAssociation", + endpointHostPrefix: "management.", })); export type GetSessionsStatisticsAggregationError = | AccessDeniedException @@ -9506,6 +9461,7 @@ export const getSessionsStatisticsAggregation: API.OperationMethod< ValidationException, ], operationName: "GetSessionsStatisticsAggregation", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9545,6 +9501,7 @@ export const listAvailableMeteredProducts: API.OperationMethod< output: ListAvailableMeteredProductsResponse, errors: [InternalServerErrorException, ThrottlingException], operationName: "ListAvailableMeteredProducts", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9591,6 +9548,7 @@ export const listQueueFleetAssociations: API.OperationMethod< ThrottlingException, ], operationName: "ListQueueFleetAssociations", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9637,6 +9595,7 @@ export const listQueueLimitAssociations: API.OperationMethod< ThrottlingException, ], operationName: "ListQueueLimitAssociations", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9670,6 +9629,7 @@ export const listTagsForResource: API.OperationMethod< ValidationException, ], operationName: "ListTagsForResource", + endpointHostPrefix: "management.", })); export type SearchJobsError = | AccessDeniedException @@ -9697,6 +9657,7 @@ export const searchJobs: API.OperationMethod< ValidationException, ], operationName: "SearchJobs", + endpointHostPrefix: "management.", })); export type SearchStepsError = | AccessDeniedException @@ -9724,6 +9685,7 @@ export const searchSteps: API.OperationMethod< ValidationException, ], operationName: "SearchSteps", + endpointHostPrefix: "management.", })); export type SearchTasksError = | AccessDeniedException @@ -9751,6 +9713,7 @@ export const searchTasks: API.OperationMethod< ValidationException, ], operationName: "SearchTasks", + endpointHostPrefix: "management.", })); export type SearchWorkersError = | AccessDeniedException @@ -9778,6 +9741,7 @@ export const searchWorkers: API.OperationMethod< ValidationException, ], operationName: "SearchWorkers", + endpointHostPrefix: "management.", })); export type StartSessionsStatisticsAggregationError = | AccessDeniedException @@ -9805,6 +9769,7 @@ export const startSessionsStatisticsAggregation: API.OperationMethod< ValidationException, ], operationName: "StartSessionsStatisticsAggregation", + endpointHostPrefix: "management.", })); export type TagResourceError = | AccessDeniedException @@ -9834,6 +9799,7 @@ export const tagResource: API.OperationMethod< ValidationException, ], operationName: "TagResource", + endpointHostPrefix: "management.", })); export type UntagResourceError = | AccessDeniedException @@ -9863,6 +9829,7 @@ export const untagResource: API.OperationMethod< ValidationException, ], operationName: "UntagResource", + endpointHostPrefix: "management.", })); export type UpdateQueueFleetAssociationError = | AccessDeniedException @@ -9890,6 +9857,7 @@ export const updateQueueFleetAssociation: API.OperationMethod< ValidationException, ], operationName: "UpdateQueueFleetAssociation", + endpointHostPrefix: "management.", })); export type UpdateQueueLimitAssociationError = | AccessDeniedException @@ -9917,6 +9885,7 @@ export const updateQueueLimitAssociation: API.OperationMethod< ValidationException, ], operationName: "UpdateQueueLimitAssociation", + endpointHostPrefix: "management.", })); export type CreateFarmError = | AccessDeniedException @@ -9946,6 +9915,7 @@ export const createFarm: API.OperationMethod< ValidationException, ], operationName: "CreateFarm", + endpointHostPrefix: "management.", })); export type GetFarmError = | AccessDeniedException @@ -9973,6 +9943,7 @@ export const getFarm: API.OperationMethod< ValidationException, ], operationName: "GetFarm", + endpointHostPrefix: "management.", })); export type UpdateFarmError = | AccessDeniedException @@ -9980,6 +9951,7 @@ export type UpdateFarmError = | ResourceNotFoundException | ThrottlingException | ValidationException + | ConflictException | CommonErrors; /** * Updates a farm. @@ -9998,8 +9970,10 @@ export const updateFarm: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + ConflictException, ], operationName: "UpdateFarm", + endpointHostPrefix: "management.", })); export type DeleteFarmError = | AccessDeniedException @@ -10007,6 +9981,7 @@ export type DeleteFarmError = | ResourceNotFoundException | ThrottlingException | ValidationException + | ConflictException | CommonErrors; /** * Deletes a farm. @@ -10025,8 +10000,10 @@ export const deleteFarm: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + ConflictException, ], operationName: "DeleteFarm", + endpointHostPrefix: "management.", })); export type ListFarmsError = | AccessDeniedException @@ -10067,6 +10044,7 @@ export const listFarms: API.OperationMethod< ValidationException, ], operationName: "ListFarms", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -10102,6 +10080,7 @@ export const associateMemberToFarm: API.OperationMethod< ValidationException, ], operationName: "AssociateMemberToFarm", + endpointHostPrefix: "management.", })); export type CreateLimitError = | AccessDeniedException @@ -10133,6 +10112,7 @@ export const createLimit: API.OperationMethod< ValidationException, ], operationName: "CreateLimit", + endpointHostPrefix: "management.", })); export type CreateStorageProfileError = | AccessDeniedException @@ -10141,6 +10121,7 @@ export type CreateStorageProfileError = | ServiceQuotaExceededException | ThrottlingException | ValidationException + | ConflictException | CommonErrors; /** * Creates a storage profile that specifies the operating system, file type, and file location of resources used on a farm. @@ -10160,8 +10141,10 @@ export const createStorageProfile: API.OperationMethod< ServiceQuotaExceededException, ThrottlingException, ValidationException, + ConflictException, ], operationName: "CreateStorageProfile", + endpointHostPrefix: "management.", })); export type DeleteLimitError = | AccessDeniedException @@ -10187,12 +10170,15 @@ export const deleteLimit: API.OperationMethod< ValidationException, ], operationName: "DeleteLimit", + endpointHostPrefix: "management.", })); export type DeleteStorageProfileError = | AccessDeniedException | InternalServerErrorException | ThrottlingException | ValidationException + | ConflictException + | ResourceNotFoundException | CommonErrors; /** * Deletes a storage profile. @@ -10210,8 +10196,11 @@ export const deleteStorageProfile: API.OperationMethod< InternalServerErrorException, ThrottlingException, ValidationException, + ConflictException, + ResourceNotFoundException, ], operationName: "DeleteStorageProfile", + endpointHostPrefix: "management.", })); export type DisassociateMemberFromFarmError = | AccessDeniedException @@ -10239,6 +10228,7 @@ export const disassociateMemberFromFarm: API.OperationMethod< ValidationException, ], operationName: "DisassociateMemberFromFarm", + endpointHostPrefix: "management.", })); export type GetLimitError = | AccessDeniedException @@ -10266,6 +10256,7 @@ export const getLimit: API.OperationMethod< ValidationException, ], operationName: "GetLimit", + endpointHostPrefix: "management.", })); export type GetStorageProfileError = | AccessDeniedException @@ -10293,6 +10284,7 @@ export const getStorageProfile: API.OperationMethod< ValidationException, ], operationName: "GetStorageProfile", + endpointHostPrefix: "management.", })); export type ListFarmMembersError = | AccessDeniedException @@ -10335,6 +10327,7 @@ export const listFarmMembers: API.OperationMethod< ValidationException, ], operationName: "ListFarmMembers", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -10383,6 +10376,7 @@ export const listLimits: API.OperationMethod< ValidationException, ], operationName: "ListLimits", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -10431,6 +10425,7 @@ export const listStorageProfiles: API.OperationMethod< ValidationException, ], operationName: "ListStorageProfiles", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -10464,6 +10459,7 @@ export const updateLimit: API.OperationMethod< ValidationException, ], operationName: "UpdateLimit", + endpointHostPrefix: "management.", })); export type UpdateStorageProfileError = | AccessDeniedException @@ -10471,6 +10467,7 @@ export type UpdateStorageProfileError = | ResourceNotFoundException | ThrottlingException | ValidationException + | ConflictException | CommonErrors; /** * Updates a storage profile. @@ -10489,8 +10486,10 @@ export const updateStorageProfile: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + ConflictException, ], operationName: "UpdateStorageProfile", + endpointHostPrefix: "management.", })); export type CreateBudgetError = | AccessDeniedException @@ -10499,6 +10498,7 @@ export type CreateBudgetError = | ServiceQuotaExceededException | ThrottlingException | ValidationException + | ConflictException | CommonErrors; /** * Creates a budget to set spending thresholds for your rendering activity. @@ -10518,8 +10518,10 @@ export const createBudget: API.OperationMethod< ServiceQuotaExceededException, ThrottlingException, ValidationException, + ConflictException, ], operationName: "CreateBudget", + endpointHostPrefix: "management.", })); export type GetBudgetError = | AccessDeniedException @@ -10547,6 +10549,7 @@ export const getBudget: API.OperationMethod< ValidationException, ], operationName: "GetBudget", + endpointHostPrefix: "management.", })); export type UpdateBudgetError = | AccessDeniedException @@ -10554,6 +10557,8 @@ export type UpdateBudgetError = | ResourceNotFoundException | ThrottlingException | ValidationException + | ConflictException + | InternalServerException | CommonErrors; /** * Updates a budget that sets spending thresholds for rendering activity. @@ -10572,8 +10577,11 @@ export const updateBudget: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + ConflictException, + InternalServerException, ], operationName: "UpdateBudget", + endpointHostPrefix: "management.", })); export type DeleteBudgetError = | AccessDeniedException @@ -10581,6 +10589,7 @@ export type DeleteBudgetError = | ResourceNotFoundException | ThrottlingException | ValidationException + | ConflictException | CommonErrors; /** * Deletes a budget. @@ -10599,8 +10608,10 @@ export const deleteBudget: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + ConflictException, ], operationName: "DeleteBudget", + endpointHostPrefix: "management.", })); export type ListBudgetsError = | AccessDeniedException @@ -10643,6 +10654,7 @@ export const listBudgets: API.OperationMethod< ValidationException, ], operationName: "ListBudgets", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -10657,6 +10669,7 @@ export type CreateFleetError = | ServiceQuotaExceededException | ThrottlingException | ValidationException + | ConflictException | CommonErrors; /** * Creates a fleet. Fleets gather information relating to compute, or capacity, for renders within your farms. You can choose to manage your own capacity or opt to have fleets fully managed by Deadline Cloud. @@ -10676,8 +10689,10 @@ export const createFleet: API.OperationMethod< ServiceQuotaExceededException, ThrottlingException, ValidationException, + ConflictException, ], operationName: "CreateFleet", + endpointHostPrefix: "management.", })); export type GetFleetError = | AccessDeniedException @@ -10705,6 +10720,7 @@ export const getFleet: API.OperationMethod< ValidationException, ], operationName: "GetFleet", + endpointHostPrefix: "management.", })); export type UpdateFleetError = | AccessDeniedException @@ -10734,6 +10750,7 @@ export const updateFleet: API.OperationMethod< ValidationException, ], operationName: "UpdateFleet", + endpointHostPrefix: "management.", })); export type DeleteFleetError = | AccessDeniedException @@ -10763,6 +10780,7 @@ export const deleteFleet: API.OperationMethod< ValidationException, ], operationName: "DeleteFleet", + endpointHostPrefix: "management.", })); export type ListFleetsError = | AccessDeniedException @@ -10805,6 +10823,7 @@ export const listFleets: API.OperationMethod< ValidationException, ], operationName: "ListFleets", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -10840,6 +10859,7 @@ export const associateMemberToFleet: API.OperationMethod< ValidationException, ], operationName: "AssociateMemberToFleet", + endpointHostPrefix: "management.", })); export type AssumeFleetRoleForReadError = | AccessDeniedException @@ -10867,6 +10887,7 @@ export const assumeFleetRoleForRead: API.OperationMethod< ValidationException, ], operationName: "AssumeFleetRoleForRead", + endpointHostPrefix: "management.", })); export type DisassociateMemberFromFleetError = | AccessDeniedException @@ -10896,6 +10917,7 @@ export const disassociateMemberFromFleet: API.OperationMethod< ValidationException, ], operationName: "DisassociateMemberFromFleet", + endpointHostPrefix: "management.", })); export type ListFleetMembersError = | AccessDeniedException @@ -10938,6 +10960,7 @@ export const listFleetMembers: API.OperationMethod< ValidationException, ], operationName: "ListFleetMembers", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -10971,6 +10994,7 @@ export const getVolume: API.OperationMethod< ValidationException, ], operationName: "GetVolume", + endpointHostPrefix: "management.", })); export type DeleteVolumeError = | AccessDeniedException @@ -11000,6 +11024,7 @@ export const deleteVolume: API.OperationMethod< ValidationException, ], operationName: "DeleteVolume", + endpointHostPrefix: "management.", })); export type ListVolumesError = | AccessDeniedException @@ -11042,6 +11067,7 @@ export const listVolumes: API.OperationMethod< ValidationException, ], operationName: "ListVolumes", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -11079,6 +11105,7 @@ export const createWorker: API.OperationMethod< ValidationException, ], operationName: "CreateWorker", + endpointHostPrefix: "scheduling.", })); export type GetWorkerError = | AccessDeniedException @@ -11106,6 +11133,7 @@ export const getWorker: API.OperationMethod< ValidationException, ], operationName: "GetWorker", + endpointHostPrefix: "management.", })); export type UpdateWorkerError = | AccessDeniedException @@ -11135,6 +11163,7 @@ export const updateWorker: API.OperationMethod< ValidationException, ], operationName: "UpdateWorker", + endpointHostPrefix: "scheduling.", })); export type DeleteWorkerError = | AccessDeniedException @@ -11164,6 +11193,7 @@ export const deleteWorker: API.OperationMethod< ValidationException, ], operationName: "DeleteWorker", + endpointHostPrefix: "management.", })); export type ListWorkersError = | AccessDeniedException @@ -11206,6 +11236,7 @@ export const listWorkers: API.OperationMethod< ValidationException, ], operationName: "ListWorkers", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -11241,6 +11272,7 @@ export const assumeFleetRoleForWorker: API.OperationMethod< ValidationException, ], operationName: "AssumeFleetRoleForWorker", + endpointHostPrefix: "scheduling.", })); export type AssumeQueueRoleForWorkerError = | AccessDeniedException @@ -11270,6 +11302,7 @@ export const assumeQueueRoleForWorker: API.OperationMethod< ValidationException, ], operationName: "AssumeQueueRoleForWorker", + endpointHostPrefix: "scheduling.", })); export type BatchGetJobEntityError = | AccessDeniedException @@ -11297,6 +11330,7 @@ export const batchGetJobEntity: API.OperationMethod< ValidationException, ], operationName: "BatchGetJobEntity", + endpointHostPrefix: "scheduling.", })); export type ListSessionsForWorkerError = | AccessDeniedException @@ -11339,6 +11373,7 @@ export const listSessionsForWorker: API.OperationMethod< ValidationException, ], operationName: "ListSessionsForWorker", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -11374,6 +11409,7 @@ export const updateWorkerSchedule: API.OperationMethod< ValidationException, ], operationName: "UpdateWorkerSchedule", + endpointHostPrefix: "scheduling.", })); export type CreateQueueError = | AccessDeniedException @@ -11382,6 +11418,7 @@ export type CreateQueueError = | ServiceQuotaExceededException | ThrottlingException | ValidationException + | ConflictException | CommonErrors; /** * Creates a queue to coordinate the order in which jobs run on a farm. A queue can also specify where to pull resources and indicate where to output completed jobs. @@ -11401,8 +11438,10 @@ export const createQueue: API.OperationMethod< ServiceQuotaExceededException, ThrottlingException, ValidationException, + ConflictException, ], operationName: "CreateQueue", + endpointHostPrefix: "management.", })); export type GetQueueError = | AccessDeniedException @@ -11430,6 +11469,7 @@ export const getQueue: API.OperationMethod< ValidationException, ], operationName: "GetQueue", + endpointHostPrefix: "management.", })); export type UpdateQueueError = | AccessDeniedException @@ -11457,6 +11497,7 @@ export const updateQueue: API.OperationMethod< ValidationException, ], operationName: "UpdateQueue", + endpointHostPrefix: "management.", })); export type DeleteQueueError = | AccessDeniedException @@ -11488,6 +11529,7 @@ export const deleteQueue: API.OperationMethod< ValidationException, ], operationName: "DeleteQueue", + endpointHostPrefix: "management.", })); export type ListQueuesError = | AccessDeniedException @@ -11530,6 +11572,7 @@ export const listQueues: API.OperationMethod< ValidationException, ], operationName: "ListQueues", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -11565,6 +11608,7 @@ export const associateMemberToQueue: API.OperationMethod< ValidationException, ], operationName: "AssociateMemberToQueue", + endpointHostPrefix: "management.", })); export type AssumeQueueRoleForReadError = | AccessDeniedException @@ -11592,6 +11636,7 @@ export const assumeQueueRoleForRead: API.OperationMethod< ValidationException, ], operationName: "AssumeQueueRoleForRead", + endpointHostPrefix: "management.", })); export type AssumeQueueRoleForUserError = | AccessDeniedException @@ -11619,6 +11664,7 @@ export const assumeQueueRoleForUser: API.OperationMethod< ValidationException, ], operationName: "AssumeQueueRoleForUser", + endpointHostPrefix: "management.", })); export type CreateQueueEnvironmentError = | AccessDeniedException @@ -11648,6 +11694,7 @@ export const createQueueEnvironment: API.OperationMethod< ValidationException, ], operationName: "CreateQueueEnvironment", + endpointHostPrefix: "management.", })); export type DeleteQueueEnvironmentError = | AccessDeniedException @@ -11673,6 +11720,7 @@ export const deleteQueueEnvironment: API.OperationMethod< ValidationException, ], operationName: "DeleteQueueEnvironment", + endpointHostPrefix: "management.", })); export type DisassociateMemberFromQueueError = | AccessDeniedException @@ -11702,6 +11750,7 @@ export const disassociateMemberFromQueue: API.OperationMethod< ValidationException, ], operationName: "DisassociateMemberFromQueue", + endpointHostPrefix: "management.", })); export type GetQueueEnvironmentError = | AccessDeniedException @@ -11729,6 +11778,7 @@ export const getQueueEnvironment: API.OperationMethod< ValidationException, ], operationName: "GetQueueEnvironment", + endpointHostPrefix: "management.", })); export type GetStorageProfileForQueueError = | AccessDeniedException @@ -11756,6 +11806,7 @@ export const getStorageProfileForQueue: API.OperationMethod< ValidationException, ], operationName: "GetStorageProfileForQueue", + endpointHostPrefix: "management.", })); export type ListQueueEnvironmentsError = | AccessDeniedException @@ -11798,6 +11849,7 @@ export const listQueueEnvironments: API.OperationMethod< ValidationException, ], operationName: "ListQueueEnvironments", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -11846,6 +11898,7 @@ export const listQueueMembers: API.OperationMethod< ValidationException, ], operationName: "ListQueueMembers", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -11894,6 +11947,7 @@ export const listStorageProfilesForQueue: API.OperationMethod< ValidationException, ], operationName: "ListStorageProfilesForQueue", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -11927,6 +11981,7 @@ export const updateQueueEnvironment: API.OperationMethod< ValidationException, ], operationName: "UpdateQueueEnvironment", + endpointHostPrefix: "management.", })); export type CreateJobError = | AccessDeniedException @@ -11956,6 +12011,7 @@ export const createJob: API.OperationMethod< ValidationException, ], operationName: "CreateJob", + endpointHostPrefix: "management.", })); export type GetJobError = | AccessDeniedException @@ -11983,6 +12039,7 @@ export const getJob: API.OperationMethod< ValidationException, ], operationName: "GetJob", + endpointHostPrefix: "management.", })); export type UpdateJobError = | AccessDeniedException @@ -12016,6 +12073,7 @@ export const updateJob: API.OperationMethod< ValidationException, ], operationName: "UpdateJob", + endpointHostPrefix: "management.", })); export type ListJobsError = | AccessDeniedException @@ -12058,6 +12116,7 @@ export const listJobs: API.OperationMethod< ValidationException, ], operationName: "ListJobs", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -12093,6 +12152,7 @@ export const associateMemberToJob: API.OperationMethod< ValidationException, ], operationName: "AssociateMemberToJob", + endpointHostPrefix: "management.", })); export type CopyJobTemplateError = | AccessDeniedException @@ -12120,6 +12180,7 @@ export const copyJobTemplate: API.OperationMethod< ValidationException, ], operationName: "CopyJobTemplate", + endpointHostPrefix: "management.", })); export type DisassociateMemberFromJobError = | AccessDeniedException @@ -12147,6 +12208,7 @@ export const disassociateMemberFromJob: API.OperationMethod< ValidationException, ], operationName: "DisassociateMemberFromJob", + endpointHostPrefix: "management.", })); export type GetSessionError = | AccessDeniedException @@ -12174,6 +12236,7 @@ export const getSession: API.OperationMethod< ValidationException, ], operationName: "GetSession", + endpointHostPrefix: "management.", })); export type GetSessionActionError = | AccessDeniedException @@ -12201,6 +12264,7 @@ export const getSessionAction: API.OperationMethod< ValidationException, ], operationName: "GetSessionAction", + endpointHostPrefix: "management.", })); export type GetStepError = | AccessDeniedException @@ -12228,6 +12292,7 @@ export const getStep: API.OperationMethod< ValidationException, ], operationName: "GetStep", + endpointHostPrefix: "management.", })); export type GetTaskError = | AccessDeniedException @@ -12255,6 +12320,7 @@ export const getTask: API.OperationMethod< ValidationException, ], operationName: "GetTask", + endpointHostPrefix: "management.", })); export type ListJobMembersError = | AccessDeniedException @@ -12297,6 +12363,7 @@ export const listJobMembers: API.OperationMethod< ValidationException, ], operationName: "ListJobMembers", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -12345,6 +12412,7 @@ export const listJobParameterDefinitions: API.OperationMethod< ValidationException, ], operationName: "ListJobParameterDefinitions", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -12393,6 +12461,7 @@ export const listSessionActions: API.OperationMethod< ValidationException, ], operationName: "ListSessionActions", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -12441,6 +12510,7 @@ export const listSessions: API.OperationMethod< ValidationException, ], operationName: "ListSessions", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -12489,6 +12559,7 @@ export const listStepConsumers: API.OperationMethod< ValidationException, ], operationName: "ListStepConsumers", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -12537,6 +12608,7 @@ export const listStepDependencies: API.OperationMethod< ValidationException, ], operationName: "ListStepDependencies", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -12585,6 +12657,7 @@ export const listSteps: API.OperationMethod< ValidationException, ], operationName: "ListSteps", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -12633,6 +12706,7 @@ export const listTasks: API.OperationMethod< ValidationException, ], operationName: "ListTasks", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -12668,6 +12742,7 @@ export const updateSession: API.OperationMethod< ValidationException, ], operationName: "UpdateSession", + endpointHostPrefix: "management.", })); export type UpdateStepError = | AccessDeniedException @@ -12697,6 +12772,7 @@ export const updateStep: API.OperationMethod< ValidationException, ], operationName: "UpdateStep", + endpointHostPrefix: "management.", })); export type UpdateTaskError = | AccessDeniedException @@ -12726,6 +12802,7 @@ export const updateTask: API.OperationMethod< ValidationException, ], operationName: "UpdateTask", + endpointHostPrefix: "management.", })); export type CreateLicenseEndpointError = | AccessDeniedException @@ -12755,6 +12832,7 @@ export const createLicenseEndpoint: API.OperationMethod< ValidationException, ], operationName: "CreateLicenseEndpoint", + endpointHostPrefix: "management.", })); export type GetLicenseEndpointError = | AccessDeniedException @@ -12782,6 +12860,7 @@ export const getLicenseEndpoint: API.OperationMethod< ValidationException, ], operationName: "GetLicenseEndpoint", + endpointHostPrefix: "management.", })); export type DeleteLicenseEndpointError = | AccessDeniedException @@ -12811,6 +12890,7 @@ export const deleteLicenseEndpoint: API.OperationMethod< ValidationException, ], operationName: "DeleteLicenseEndpoint", + endpointHostPrefix: "management.", })); export type ListLicenseEndpointsError = | AccessDeniedException @@ -12853,6 +12933,7 @@ export const listLicenseEndpoints: API.OperationMethod< ValidationException, ], operationName: "ListLicenseEndpoints", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -12886,6 +12967,7 @@ export const deleteMeteredProduct: API.OperationMethod< ValidationException, ], operationName: "DeleteMeteredProduct", + endpointHostPrefix: "management.", })); export type ListMeteredProductsError = | AccessDeniedException @@ -12928,6 +13010,7 @@ export const listMeteredProducts: API.OperationMethod< ValidationException, ], operationName: "ListMeteredProducts", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -12961,6 +13044,7 @@ export const putMeteredProduct: API.OperationMethod< ValidationException, ], operationName: "PutMeteredProduct", + endpointHostPrefix: "management.", })); export type CreateMonitorError = | AccessDeniedException @@ -12968,6 +13052,7 @@ export type CreateMonitorError = | ServiceQuotaExceededException | ThrottlingException | ValidationException + | ConflictException | CommonErrors; /** * Creates an Amazon Web Services Deadline Cloud monitor that you can use to view your farms, queues, and fleets. After you submit a job, you can track the progress of the tasks and steps that make up the job, and then download the job's results. @@ -12986,8 +13071,10 @@ export const createMonitor: API.OperationMethod< ServiceQuotaExceededException, ThrottlingException, ValidationException, + ConflictException, ], operationName: "CreateMonitor", + endpointHostPrefix: "management.", })); export type GetMonitorError = | AccessDeniedException @@ -13015,6 +13102,7 @@ export const getMonitor: API.OperationMethod< ValidationException, ], operationName: "GetMonitor", + endpointHostPrefix: "management.", })); export type UpdateMonitorError = | AccessDeniedException @@ -13022,6 +13110,7 @@ export type UpdateMonitorError = | ResourceNotFoundException | ThrottlingException | ValidationException + | ConflictException | CommonErrors; /** * Modifies the settings for a Deadline Cloud monitor. You can modify one or all of the settings when you call `UpdateMonitor`. @@ -13040,8 +13129,10 @@ export const updateMonitor: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + ConflictException, ], operationName: "UpdateMonitor", + endpointHostPrefix: "management.", })); export type DeleteMonitorError = | AccessDeniedException @@ -13049,6 +13140,7 @@ export type DeleteMonitorError = | ResourceNotFoundException | ThrottlingException | ValidationException + | ConflictException | CommonErrors; /** * Removes a Deadline Cloud monitor. After you delete a monitor, you can create a new one and attach farms to the monitor. @@ -13067,8 +13159,10 @@ export const deleteMonitor: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + ConflictException, ], operationName: "DeleteMonitor", + endpointHostPrefix: "management.", })); export type ListMonitorsError = | AccessDeniedException @@ -13109,6 +13203,7 @@ export const listMonitors: API.OperationMethod< ValidationException, ], operationName: "ListMonitors", + endpointHostPrefix: "management.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -13142,6 +13237,7 @@ export const getMonitorSettings: API.OperationMethod< ValidationException, ], operationName: "GetMonitorSettings", + endpointHostPrefix: "management.", })); export type UpdateMonitorSettingsError = | AccessDeniedException @@ -13169,4 +13265,5 @@ export const updateMonitorSettings: API.OperationMethod< ValidationException, ], operationName: "UpdateMonitorSettings", + endpointHostPrefix: "management.", })); diff --git a/packages/aws/src/services/docdb-elastic.ts b/packages/aws/src/services/docdb-elastic.ts index 6a813ac724..ec92e44974 100644 --- a/packages/aws/src/services/docdb-elastic.ts +++ b/packages/aws/src/services/docdb-elastic.ts @@ -322,7 +322,7 @@ export interface Cluster { clusterName: string; clusterArn: string; status: string; - clusterEndpoint: string; + clusterEndpoint?: string; createTime: string; adminUserName: string; authType: string; @@ -342,7 +342,7 @@ export const Cluster = /*@__PURE__*/ S.suspend(() => clusterName: S.String, clusterArn: S.String, status: S.String, - clusterEndpoint: S.String, + clusterEndpoint: S.optional(S.String), createTime: S.String, adminUserName: S.String, authType: S.String, diff --git a/packages/aws/src/services/docdb.ts b/packages/aws/src/services/docdb.ts index 9c445c1076..bc0959cead 100644 --- a/packages/aws/src/services/docdb.ts +++ b/packages/aws/src/services/docdb.ts @@ -1,4 +1,5 @@ import * as HttpClient from "effect/unstable/http/HttpClient"; +import * as redacted from "effect/Redacted"; import * as S from "@distilled.cloud/core/schema"; import * as stream from "effect/Stream"; import * as API from "../client/api.ts"; @@ -7,6 +8,7 @@ import * as C from "../category.ts"; import type { Credentials } from "../credentials.ts"; import type { CommonErrors } from "../errors.ts"; import type { Region } from "../region.ts"; +import { SensitiveString } from "../sensitive.ts"; const ns = T.XmlNamespace("http://rds.amazonaws.com/doc/2014-10-31/"); const svc = T.AwsApiService({ sdkId: "DocDB", @@ -97,8 +99,8 @@ export interface AddSourceIdentifierToSubscriptionMessage { SubscriptionName?: string; SourceIdentifier?: string; } -export const AddSourceIdentifierToSubscriptionMessage = - /*@__PURE__*/ S.suspend(() => +export const AddSourceIdentifierToSubscriptionMessage = /*@__PURE__*/ S.suspend( + () => S.Struct({ SubscriptionName: S.optional(S.String), SourceIdentifier: S.optional(S.String), @@ -113,9 +115,9 @@ export const AddSourceIdentifierToSubscriptionMessage = rules, ), ), - ).annotate({ - identifier: "AddSourceIdentifierToSubscriptionMessage", - }) as any as S.Schema; +).annotate({ + identifier: "AddSourceIdentifierToSubscriptionMessage", +}) as any as S.Schema; export type SourceIdsList = string[]; export const SourceIdsList = /*@__PURE__*/ S.Array( S.String.pipe(T.XmlName("SourceId")), @@ -155,12 +157,11 @@ export const EventSubscription = /*@__PURE__*/ S.suspend(() => export interface AddSourceIdentifierToSubscriptionResult { EventSubscription?: EventSubscription; } -export const AddSourceIdentifierToSubscriptionResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ EventSubscription: S.optional(EventSubscription) }).pipe(ns), - ).annotate({ - identifier: "AddSourceIdentifierToSubscriptionResult", - }) as any as S.Schema; +export const AddSourceIdentifierToSubscriptionResult = /*@__PURE__*/ S.suspend( + () => S.Struct({ EventSubscription: S.optional(EventSubscription) }).pipe(ns), +).annotate({ + identifier: "AddSourceIdentifierToSubscriptionResult", +}) as any as S.Schema; export interface Tag { Key?: string; Value?: string; @@ -205,8 +206,8 @@ export interface ApplyPendingMaintenanceActionMessage { ApplyAction?: string; OptInType?: string; } -export const ApplyPendingMaintenanceActionMessage = - /*@__PURE__*/ S.suspend(() => +export const ApplyPendingMaintenanceActionMessage = /*@__PURE__*/ S.suspend( + () => S.Struct({ ResourceIdentifier: S.optional(S.String), ApplyAction: S.optional(S.String), @@ -222,9 +223,9 @@ export const ApplyPendingMaintenanceActionMessage = rules, ), ), - ).annotate({ - identifier: "ApplyPendingMaintenanceActionMessage", - }) as any as S.Schema; +).annotate({ + identifier: "ApplyPendingMaintenanceActionMessage", +}) as any as S.Schema; export interface PendingMaintenanceAction { Action?: string; AutoAppliedAfterDate?: Date; @@ -252,67 +253,63 @@ export const PendingMaintenanceAction = /*@__PURE__*/ S.suspend(() => identifier: "PendingMaintenanceAction", }) as any as S.Schema; export type PendingMaintenanceActionDetails = PendingMaintenanceAction[]; -export const PendingMaintenanceActionDetails = - /*@__PURE__*/ S.Array( - PendingMaintenanceAction.pipe( - T.XmlName("PendingMaintenanceAction"), - ).annotate({ identifier: "PendingMaintenanceAction" }), - ); +export const PendingMaintenanceActionDetails = /*@__PURE__*/ S.Array( + PendingMaintenanceAction.pipe(T.XmlName("PendingMaintenanceAction")).annotate( + { identifier: "PendingMaintenanceAction" }, + ), +); export interface ResourcePendingMaintenanceActions { ResourceIdentifier?: string; PendingMaintenanceActionDetails?: PendingMaintenanceAction[]; } -export const ResourcePendingMaintenanceActions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResourceIdentifier: S.optional(S.String), - PendingMaintenanceActionDetails: S.optional( - PendingMaintenanceActionDetails, - ), - }), - ).annotate({ - identifier: "ResourcePendingMaintenanceActions", - }) as any as S.Schema; +export const ResourcePendingMaintenanceActions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResourceIdentifier: S.optional(S.String), + PendingMaintenanceActionDetails: S.optional( + PendingMaintenanceActionDetails, + ), + }), +).annotate({ + identifier: "ResourcePendingMaintenanceActions", +}) as any as S.Schema; export interface ApplyPendingMaintenanceActionResult { ResourcePendingMaintenanceActions?: ResourcePendingMaintenanceActions; } -export const ApplyPendingMaintenanceActionResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResourcePendingMaintenanceActions: S.optional( - ResourcePendingMaintenanceActions, - ), - }).pipe(ns), - ).annotate({ - identifier: "ApplyPendingMaintenanceActionResult", - }) as any as S.Schema; +export const ApplyPendingMaintenanceActionResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResourcePendingMaintenanceActions: S.optional( + ResourcePendingMaintenanceActions, + ), + }).pipe(ns), +).annotate({ + identifier: "ApplyPendingMaintenanceActionResult", +}) as any as S.Schema; export interface CopyDBClusterParameterGroupMessage { SourceDBClusterParameterGroupIdentifier?: string; TargetDBClusterParameterGroupIdentifier?: string; TargetDBClusterParameterGroupDescription?: string; Tags?: Tag[]; } -export const CopyDBClusterParameterGroupMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SourceDBClusterParameterGroupIdentifier: S.optional(S.String), - TargetDBClusterParameterGroupIdentifier: S.optional(S.String), - TargetDBClusterParameterGroupDescription: S.optional(S.String), - Tags: S.optional(TagList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CopyDBClusterParameterGroupMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SourceDBClusterParameterGroupIdentifier: S.optional(S.String), + TargetDBClusterParameterGroupIdentifier: S.optional(S.String), + TargetDBClusterParameterGroupDescription: S.optional(S.String), + Tags: S.optional(TagList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CopyDBClusterParameterGroupMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CopyDBClusterParameterGroupMessage", +}) as any as S.Schema; export interface DBClusterParameterGroup { DBClusterParameterGroupName?: string; DBParameterGroupFamily?: string; @@ -332,14 +329,13 @@ export const DBClusterParameterGroup = /*@__PURE__*/ S.suspend(() => export interface CopyDBClusterParameterGroupResult { DBClusterParameterGroup?: DBClusterParameterGroup; } -export const CopyDBClusterParameterGroupResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DBClusterParameterGroup: S.optional(DBClusterParameterGroup), - }).pipe(ns), - ).annotate({ - identifier: "CopyDBClusterParameterGroupResult", - }) as any as S.Schema; +export const CopyDBClusterParameterGroupResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DBClusterParameterGroup: S.optional(DBClusterParameterGroup), + }).pipe(ns), +).annotate({ + identifier: "CopyDBClusterParameterGroupResult", +}) as any as S.Schema; export interface CopyDBClusterSnapshotMessage { SourceDBClusterSnapshotIdentifier?: string; TargetDBClusterSnapshotIdentifier?: string; @@ -348,29 +344,28 @@ export interface CopyDBClusterSnapshotMessage { CopyTags?: boolean; Tags?: Tag[]; } -export const CopyDBClusterSnapshotMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SourceDBClusterSnapshotIdentifier: S.optional(S.String), - TargetDBClusterSnapshotIdentifier: S.optional(S.String), - KmsKeyId: S.optional(S.String), - PreSignedUrl: S.optional(S.String), - CopyTags: S.optional(S.Boolean), - Tags: S.optional(TagList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CopyDBClusterSnapshotMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SourceDBClusterSnapshotIdentifier: S.optional(S.String), + TargetDBClusterSnapshotIdentifier: S.optional(S.String), + KmsKeyId: S.optional(S.String), + PreSignedUrl: S.optional(S.String), + CopyTags: S.optional(S.Boolean), + Tags: S.optional(TagList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CopyDBClusterSnapshotMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CopyDBClusterSnapshotMessage", +}) as any as S.Schema; export type AvailabilityZones = string[]; export const AvailabilityZones = /*@__PURE__*/ S.Array( S.String.pipe(T.XmlName("AvailabilityZone")), @@ -426,12 +421,11 @@ export const DBClusterSnapshot = /*@__PURE__*/ S.suspend(() => export interface CopyDBClusterSnapshotResult { DBClusterSnapshot?: DBClusterSnapshot; } -export const CopyDBClusterSnapshotResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DBClusterSnapshot: S.optional(DBClusterSnapshot) }).pipe(ns), - ).annotate({ - identifier: "CopyDBClusterSnapshotResult", - }) as any as S.Schema; +export const CopyDBClusterSnapshotResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ DBClusterSnapshot: S.optional(DBClusterSnapshot) }).pipe(ns), +).annotate({ + identifier: "CopyDBClusterSnapshotResult", +}) as any as S.Schema; export type VpcSecurityGroupIdList = string[]; export const VpcSecurityGroupIdList = /*@__PURE__*/ S.Array( S.String.pipe(T.XmlName("VpcSecurityGroupId")), @@ -442,15 +436,14 @@ export interface ServerlessV2ScalingConfiguration { MinCapacity?: number; MaxCapacity?: number; } -export const ServerlessV2ScalingConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - MinCapacity: S.optional(S.Number), - MaxCapacity: S.optional(S.Number), - }), - ).annotate({ - identifier: "ServerlessV2ScalingConfiguration", - }) as any as S.Schema; +export const ServerlessV2ScalingConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + MinCapacity: S.optional(S.Number), + MaxCapacity: S.optional(S.Number), + }), +).annotate({ + identifier: "ServerlessV2ScalingConfiguration", +}) as any as S.Schema; export interface CreateDBClusterMessage { AvailabilityZones?: string[]; BackupRetentionPeriod?: number; @@ -462,7 +455,7 @@ export interface CreateDBClusterMessage { EngineVersion?: string; Port?: number; MasterUsername?: string; - MasterUserPassword?: string; + MasterUserPassword?: string | redacted.Redacted; PreferredBackupWindow?: string; PreferredMaintenanceWindow?: string; Tags?: Tag[]; @@ -490,7 +483,7 @@ export const CreateDBClusterMessage = /*@__PURE__*/ S.suspend(() => EngineVersion: S.optional(S.String), Port: S.optional(S.Number), MasterUsername: S.optional(S.String), - MasterUserPassword: S.optional(S.String), + MasterUserPassword: S.optional(SensitiveString), PreferredBackupWindow: S.optional(S.String), PreferredMaintenanceWindow: S.optional(S.String), Tags: S.optional(TagList), @@ -560,12 +553,11 @@ export const VpcSecurityGroupMembership = /*@__PURE__*/ S.suspend(() => identifier: "VpcSecurityGroupMembership", }) as any as S.Schema; export type VpcSecurityGroupMembershipList = VpcSecurityGroupMembership[]; -export const VpcSecurityGroupMembershipList = - /*@__PURE__*/ S.Array( - VpcSecurityGroupMembership.pipe( - T.XmlName("VpcSecurityGroupMembership"), - ).annotate({ identifier: "VpcSecurityGroupMembership" }), - ); +export const VpcSecurityGroupMembershipList = /*@__PURE__*/ S.Array( + VpcSecurityGroupMembership.pipe( + T.XmlName("VpcSecurityGroupMembership"), + ).annotate({ identifier: "VpcSecurityGroupMembership" }), +); export interface DBClusterRole { RoleArn?: string; Status?: string; @@ -583,15 +575,15 @@ export interface ServerlessV2ScalingConfigurationInfo { MinCapacity?: number; MaxCapacity?: number; } -export const ServerlessV2ScalingConfigurationInfo = - /*@__PURE__*/ S.suspend(() => +export const ServerlessV2ScalingConfigurationInfo = /*@__PURE__*/ S.suspend( + () => S.Struct({ MinCapacity: S.optional(S.Number), MaxCapacity: S.optional(S.Number), }), - ).annotate({ - identifier: "ServerlessV2ScalingConfigurationInfo", - }) as any as S.Schema; +).annotate({ + identifier: "ServerlessV2ScalingConfigurationInfo", +}) as any as S.Schema; export interface ClusterMasterUserSecret { SecretArn?: string; SecretStatus?: string; @@ -710,8 +702,8 @@ export interface CreateDBClusterParameterGroupMessage { Description?: string; Tags?: Tag[]; } -export const CreateDBClusterParameterGroupMessage = - /*@__PURE__*/ S.suspend(() => +export const CreateDBClusterParameterGroupMessage = /*@__PURE__*/ S.suspend( + () => S.Struct({ DBClusterParameterGroupName: S.optional(S.String), DBParameterGroupFamily: S.optional(S.String), @@ -728,54 +720,51 @@ export const CreateDBClusterParameterGroupMessage = rules, ), ), - ).annotate({ - identifier: "CreateDBClusterParameterGroupMessage", - }) as any as S.Schema; +).annotate({ + identifier: "CreateDBClusterParameterGroupMessage", +}) as any as S.Schema; export interface CreateDBClusterParameterGroupResult { DBClusterParameterGroup?: DBClusterParameterGroup; } -export const CreateDBClusterParameterGroupResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DBClusterParameterGroup: S.optional(DBClusterParameterGroup), - }).pipe(ns), - ).annotate({ - identifier: "CreateDBClusterParameterGroupResult", - }) as any as S.Schema; +export const CreateDBClusterParameterGroupResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DBClusterParameterGroup: S.optional(DBClusterParameterGroup), + }).pipe(ns), +).annotate({ + identifier: "CreateDBClusterParameterGroupResult", +}) as any as S.Schema; export interface CreateDBClusterSnapshotMessage { DBClusterSnapshotIdentifier?: string; DBClusterIdentifier?: string; Tags?: Tag[]; } -export const CreateDBClusterSnapshotMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DBClusterSnapshotIdentifier: S.optional(S.String), - DBClusterIdentifier: S.optional(S.String), - Tags: S.optional(TagList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateDBClusterSnapshotMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DBClusterSnapshotIdentifier: S.optional(S.String), + DBClusterIdentifier: S.optional(S.String), + Tags: S.optional(TagList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateDBClusterSnapshotMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateDBClusterSnapshotMessage", +}) as any as S.Schema; export interface CreateDBClusterSnapshotResult { DBClusterSnapshot?: DBClusterSnapshot; } -export const CreateDBClusterSnapshotResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DBClusterSnapshot: S.optional(DBClusterSnapshot) }).pipe(ns), - ).annotate({ - identifier: "CreateDBClusterSnapshotResult", - }) as any as S.Schema; +export const CreateDBClusterSnapshotResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ DBClusterSnapshot: S.optional(DBClusterSnapshot) }).pipe(ns), +).annotate({ + identifier: "CreateDBClusterSnapshotResult", +}) as any as S.Schema; export interface CreateDBInstanceMessage { DBInstanceIdentifier?: string; DBInstanceClass?: string; @@ -882,19 +871,18 @@ export interface PendingCloudwatchLogsExports { LogTypesToEnable?: string[]; LogTypesToDisable?: string[]; } -export const PendingCloudwatchLogsExports = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - LogTypesToEnable: S.optional(LogTypeList), - LogTypesToDisable: S.optional(LogTypeList), - }), - ).annotate({ - identifier: "PendingCloudwatchLogsExports", - }) as any as S.Schema; +export const PendingCloudwatchLogsExports = /*@__PURE__*/ S.suspend(() => + S.Struct({ + LogTypesToEnable: S.optional(LogTypeList), + LogTypesToDisable: S.optional(LogTypeList), + }), +).annotate({ + identifier: "PendingCloudwatchLogsExports", +}) as any as S.Schema; export interface PendingModifiedValues { DBInstanceClass?: string; AllocatedStorage?: number; - MasterUserPassword?: string; + MasterUserPassword?: string | redacted.Redacted; Port?: number; BackupRetentionPeriod?: number; MultiAZ?: boolean; @@ -911,7 +899,7 @@ export const PendingModifiedValues = /*@__PURE__*/ S.suspend(() => S.Struct({ DBInstanceClass: S.optional(S.String), AllocatedStorage: S.optional(S.Number), - MasterUserPassword: S.optional(S.String), + MasterUserPassword: S.optional(SensitiveString), Port: S.optional(S.Number), BackupRetentionPeriod: S.optional(S.Number), MultiAZ: S.optional(S.Boolean), @@ -1088,39 +1076,37 @@ export interface CreateEventSubscriptionMessage { Enabled?: boolean; Tags?: Tag[]; } -export const CreateEventSubscriptionMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SubscriptionName: S.optional(S.String), - SnsTopicArn: S.optional(S.String), - SourceType: S.optional(S.String), - EventCategories: S.optional(EventCategoriesList), - SourceIds: S.optional(SourceIdsList), - Enabled: S.optional(S.Boolean), - Tags: S.optional(TagList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateEventSubscriptionMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SubscriptionName: S.optional(S.String), + SnsTopicArn: S.optional(S.String), + SourceType: S.optional(S.String), + EventCategories: S.optional(EventCategoriesList), + SourceIds: S.optional(SourceIdsList), + Enabled: S.optional(S.Boolean), + Tags: S.optional(TagList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateEventSubscriptionMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateEventSubscriptionMessage", +}) as any as S.Schema; export interface CreateEventSubscriptionResult { EventSubscription?: EventSubscription; } -export const CreateEventSubscriptionResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ EventSubscription: S.optional(EventSubscription) }).pipe(ns), - ).annotate({ - identifier: "CreateEventSubscriptionResult", - }) as any as S.Schema; +export const CreateEventSubscriptionResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ EventSubscription: S.optional(EventSubscription) }).pipe(ns), +).annotate({ + identifier: "CreateEventSubscriptionResult", +}) as any as S.Schema; export interface CreateGlobalClusterMessage { GlobalClusterIdentifier?: string; SourceDBClusterIdentifier?: string; @@ -1275,8 +1261,8 @@ export const DeleteDBClusterResult = /*@__PURE__*/ S.suspend(() => export interface DeleteDBClusterParameterGroupMessage { DBClusterParameterGroupName?: string; } -export const DeleteDBClusterParameterGroupMessage = - /*@__PURE__*/ S.suspend(() => +export const DeleteDBClusterParameterGroupMessage = /*@__PURE__*/ S.suspend( + () => S.Struct({ DBClusterParameterGroupName: S.optional(S.String) }).pipe( T.all( ns, @@ -1288,42 +1274,41 @@ export const DeleteDBClusterParameterGroupMessage = rules, ), ), - ).annotate({ - identifier: "DeleteDBClusterParameterGroupMessage", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteDBClusterParameterGroupMessage", +}) as any as S.Schema; export interface DeleteDBClusterParameterGroupResponse {} -export const DeleteDBClusterParameterGroupResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteDBClusterParameterGroupResponse", - }) as any as S.Schema; +export const DeleteDBClusterParameterGroupResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteDBClusterParameterGroupResponse", +}) as any as S.Schema; export interface DeleteDBClusterSnapshotMessage { DBClusterSnapshotIdentifier?: string; } -export const DeleteDBClusterSnapshotMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DBClusterSnapshotIdentifier: S.optional(S.String) }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteDBClusterSnapshotMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ DBClusterSnapshotIdentifier: S.optional(S.String) }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteDBClusterSnapshotMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteDBClusterSnapshotMessage", +}) as any as S.Schema; export interface DeleteDBClusterSnapshotResult { DBClusterSnapshot?: DBClusterSnapshot; } -export const DeleteDBClusterSnapshotResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DBClusterSnapshot: S.optional(DBClusterSnapshot) }).pipe(ns), - ).annotate({ - identifier: "DeleteDBClusterSnapshotResult", - }) as any as S.Schema; +export const DeleteDBClusterSnapshotResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ DBClusterSnapshot: S.optional(DBClusterSnapshot) }).pipe(ns), +).annotate({ + identifier: "DeleteDBClusterSnapshotResult", +}) as any as S.Schema; export interface DeleteDBInstanceMessage { DBInstanceIdentifier?: string; } @@ -1369,38 +1354,37 @@ export const DeleteDBSubnetGroupMessage = /*@__PURE__*/ S.suspend(() => identifier: "DeleteDBSubnetGroupMessage", }) as any as S.Schema; export interface DeleteDBSubnetGroupResponse {} -export const DeleteDBSubnetGroupResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteDBSubnetGroupResponse", - }) as any as S.Schema; +export const DeleteDBSubnetGroupResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteDBSubnetGroupResponse", +}) as any as S.Schema; export interface DeleteEventSubscriptionMessage { SubscriptionName?: string; } -export const DeleteEventSubscriptionMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ SubscriptionName: S.optional(S.String) }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteEventSubscriptionMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ SubscriptionName: S.optional(S.String) }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteEventSubscriptionMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteEventSubscriptionMessage", +}) as any as S.Schema; export interface DeleteEventSubscriptionResult { EventSubscription?: EventSubscription; } -export const DeleteEventSubscriptionResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ EventSubscription: S.optional(EventSubscription) }).pipe(ns), - ).annotate({ - identifier: "DeleteEventSubscriptionResult", - }) as any as S.Schema; +export const DeleteEventSubscriptionResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ EventSubscription: S.optional(EventSubscription) }).pipe(ns), +).annotate({ + identifier: "DeleteEventSubscriptionResult", +}) as any as S.Schema; export interface DeleteGlobalClusterMessage { GlobalClusterIdentifier?: string; } @@ -1448,27 +1432,26 @@ export interface DescribeCertificatesMessage { MaxRecords?: number; Marker?: string; } -export const DescribeCertificatesMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CertificateIdentifier: S.optional(S.String), - Filters: S.optional(FilterList), - MaxRecords: S.optional(S.Number), - Marker: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeCertificatesMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CertificateIdentifier: S.optional(S.String), + Filters: S.optional(FilterList), + MaxRecords: S.optional(S.Number), + Marker: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeCertificatesMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeCertificatesMessage", +}) as any as S.Schema; export interface Certificate { CertificateIdentifier?: string; CertificateType?: string; @@ -1515,8 +1498,8 @@ export interface DescribeDBClusterParameterGroupsMessage { MaxRecords?: number; Marker?: string; } -export const DescribeDBClusterParameterGroupsMessage = - /*@__PURE__*/ S.suspend(() => +export const DescribeDBClusterParameterGroupsMessage = /*@__PURE__*/ S.suspend( + () => S.Struct({ DBClusterParameterGroupName: S.optional(S.String), Filters: S.optional(FilterList), @@ -1533,9 +1516,9 @@ export const DescribeDBClusterParameterGroupsMessage = rules, ), ), - ).annotate({ - identifier: "DescribeDBClusterParameterGroupsMessage", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeDBClusterParameterGroupsMessage", +}) as any as S.Schema; export type DBClusterParameterGroupList = DBClusterParameterGroup[]; export const DBClusterParameterGroupList = /*@__PURE__*/ S.Array( DBClusterParameterGroup.pipe(T.XmlName("DBClusterParameterGroup")).annotate({ @@ -1546,15 +1529,14 @@ export interface DBClusterParameterGroupsMessage { Marker?: string; DBClusterParameterGroups?: DBClusterParameterGroup[]; } -export const DBClusterParameterGroupsMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Marker: S.optional(S.String), - DBClusterParameterGroups: S.optional(DBClusterParameterGroupList), - }).pipe(ns), - ).annotate({ - identifier: "DBClusterParameterGroupsMessage", - }) as any as S.Schema; +export const DBClusterParameterGroupsMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Marker: S.optional(S.String), + DBClusterParameterGroups: S.optional(DBClusterParameterGroupList), + }).pipe(ns), +).annotate({ + identifier: "DBClusterParameterGroupsMessage", +}) as any as S.Schema; export interface DescribeDBClusterParametersMessage { DBClusterParameterGroupName?: string; Source?: string; @@ -1562,28 +1544,27 @@ export interface DescribeDBClusterParametersMessage { MaxRecords?: number; Marker?: string; } -export const DescribeDBClusterParametersMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DBClusterParameterGroupName: S.optional(S.String), - Source: S.optional(S.String), - Filters: S.optional(FilterList), - MaxRecords: S.optional(S.Number), - Marker: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeDBClusterParametersMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DBClusterParameterGroupName: S.optional(S.String), + Source: S.optional(S.String), + Filters: S.optional(FilterList), + MaxRecords: S.optional(S.Number), + Marker: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeDBClusterParametersMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeDBClusterParametersMessage", +}) as any as S.Schema; export type ApplyMethod = "immediate" | "pending-reboot" | (string & {}); export const ApplyMethod = /*@__PURE__*/ S.String; export interface Parameter { @@ -1620,15 +1601,14 @@ export interface DBClusterParameterGroupDetails { Parameters?: Parameter[]; Marker?: string; } -export const DBClusterParameterGroupDetails = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Parameters: S.optional(ParametersList), - Marker: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "DBClusterParameterGroupDetails", - }) as any as S.Schema; +export const DBClusterParameterGroupDetails = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Parameters: S.optional(ParametersList), + Marker: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "DBClusterParameterGroupDetails", +}) as any as S.Schema; export interface DescribeDBClustersMessage { DBClusterIdentifier?: string; Filters?: Filter[]; @@ -1707,25 +1687,23 @@ export const DBClusterSnapshotAttribute = /*@__PURE__*/ S.suspend(() => identifier: "DBClusterSnapshotAttribute", }) as any as S.Schema; export type DBClusterSnapshotAttributeList = DBClusterSnapshotAttribute[]; -export const DBClusterSnapshotAttributeList = - /*@__PURE__*/ S.Array( - DBClusterSnapshotAttribute.pipe( - T.XmlName("DBClusterSnapshotAttribute"), - ).annotate({ identifier: "DBClusterSnapshotAttribute" }), - ); +export const DBClusterSnapshotAttributeList = /*@__PURE__*/ S.Array( + DBClusterSnapshotAttribute.pipe( + T.XmlName("DBClusterSnapshotAttribute"), + ).annotate({ identifier: "DBClusterSnapshotAttribute" }), +); export interface DBClusterSnapshotAttributesResult { DBClusterSnapshotIdentifier?: string; DBClusterSnapshotAttributes?: DBClusterSnapshotAttribute[]; } -export const DBClusterSnapshotAttributesResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DBClusterSnapshotIdentifier: S.optional(S.String), - DBClusterSnapshotAttributes: S.optional(DBClusterSnapshotAttributeList), - }), - ).annotate({ - identifier: "DBClusterSnapshotAttributesResult", - }) as any as S.Schema; +export const DBClusterSnapshotAttributesResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DBClusterSnapshotIdentifier: S.optional(S.String), + DBClusterSnapshotAttributes: S.optional(DBClusterSnapshotAttributeList), + }), +).annotate({ + identifier: "DBClusterSnapshotAttributesResult", +}) as any as S.Schema; export interface DescribeDBClusterSnapshotAttributesResult { DBClusterSnapshotAttributesResult?: DBClusterSnapshotAttributesResult; } @@ -1749,31 +1727,30 @@ export interface DescribeDBClusterSnapshotsMessage { IncludeShared?: boolean; IncludePublic?: boolean; } -export const DescribeDBClusterSnapshotsMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DBClusterIdentifier: S.optional(S.String), - DBClusterSnapshotIdentifier: S.optional(S.String), - SnapshotType: S.optional(S.String), - Filters: S.optional(FilterList), - MaxRecords: S.optional(S.Number), - Marker: S.optional(S.String), - IncludeShared: S.optional(S.Boolean), - IncludePublic: S.optional(S.Boolean), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeDBClusterSnapshotsMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DBClusterIdentifier: S.optional(S.String), + DBClusterSnapshotIdentifier: S.optional(S.String), + SnapshotType: S.optional(S.String), + Filters: S.optional(FilterList), + MaxRecords: S.optional(S.Number), + Marker: S.optional(S.String), + IncludeShared: S.optional(S.Boolean), + IncludePublic: S.optional(S.Boolean), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeDBClusterSnapshotsMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeDBClusterSnapshotsMessage", +}) as any as S.Schema; export type DBClusterSnapshotList = DBClusterSnapshot[]; export const DBClusterSnapshotList = /*@__PURE__*/ S.Array( DBClusterSnapshot.pipe(T.XmlName("DBClusterSnapshot")).annotate({ @@ -1803,32 +1780,31 @@ export interface DescribeDBEngineVersionsMessage { ListSupportedCharacterSets?: boolean; ListSupportedTimezones?: boolean; } -export const DescribeDBEngineVersionsMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Engine: S.optional(S.String), - EngineVersion: S.optional(S.String), - DBParameterGroupFamily: S.optional(S.String), - Filters: S.optional(FilterList), - MaxRecords: S.optional(S.Number), - Marker: S.optional(S.String), - DefaultOnly: S.optional(S.Boolean), - ListSupportedCharacterSets: S.optional(S.Boolean), - ListSupportedTimezones: S.optional(S.Boolean), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeDBEngineVersionsMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Engine: S.optional(S.String), + EngineVersion: S.optional(S.String), + DBParameterGroupFamily: S.optional(S.String), + Filters: S.optional(FilterList), + MaxRecords: S.optional(S.Number), + Marker: S.optional(S.String), + DefaultOnly: S.optional(S.Boolean), + ListSupportedCharacterSets: S.optional(S.Boolean), + ListSupportedTimezones: S.optional(S.Boolean), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeDBEngineVersionsMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeDBEngineVersionsMessage", +}) as any as S.Schema; export interface UpgradeTarget { Engine?: string; EngineVersion?: string; @@ -1857,15 +1833,14 @@ export interface ServerlessV2FeaturesSupport { MinCapacity?: number; MaxCapacity?: number; } -export const ServerlessV2FeaturesSupport = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - MinCapacity: S.optional(S.Number), - MaxCapacity: S.optional(S.Number), - }), - ).annotate({ - identifier: "ServerlessV2FeaturesSupport", - }) as any as S.Schema; +export const ServerlessV2FeaturesSupport = /*@__PURE__*/ S.suspend(() => + S.Struct({ + MinCapacity: S.optional(S.Number), + MaxCapacity: S.optional(S.Number), + }), +).annotate({ + identifier: "ServerlessV2FeaturesSupport", +}) as any as S.Schema; export interface DBEngineVersion { Engine?: string; EngineVersion?: string; @@ -1964,27 +1939,26 @@ export interface DescribeDBSubnetGroupsMessage { MaxRecords?: number; Marker?: string; } -export const DescribeDBSubnetGroupsMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DBSubnetGroupName: S.optional(S.String), - Filters: S.optional(FilterList), - MaxRecords: S.optional(S.Number), - Marker: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeDBSubnetGroupsMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DBSubnetGroupName: S.optional(S.String), + Filters: S.optional(FilterList), + MaxRecords: S.optional(S.Number), + Marker: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeDBSubnetGroupsMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeDBSubnetGroupsMessage", +}) as any as S.Schema; export type DBSubnetGroups = DBSubnetGroup[]; export const DBSubnetGroups = /*@__PURE__*/ S.Array( DBSubnetGroup.pipe(T.XmlName("DBSubnetGroup")).annotate({ @@ -2055,25 +2029,24 @@ export interface DescribeEventCategoriesMessage { SourceType?: string; Filters?: Filter[]; } -export const DescribeEventCategoriesMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SourceType: S.optional(S.String), - Filters: S.optional(FilterList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeEventCategoriesMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SourceType: S.optional(S.String), + Filters: S.optional(FilterList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeEventCategoriesMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeEventCategoriesMessage", +}) as any as S.Schema; export interface EventCategoriesMap { SourceType?: string; EventCategories?: string[]; @@ -2096,9 +2069,9 @@ export interface EventCategoriesMessage { EventCategoriesMapList?: EventCategoriesMap[]; } export const EventCategoriesMessage = /*@__PURE__*/ S.suspend(() => - S.Struct({ - EventCategoriesMapList: S.optional(EventCategoriesMapList), - }).pipe(ns), + S.Struct({ EventCategoriesMapList: S.optional(EventCategoriesMapList) }).pipe( + ns, + ), ).annotate({ identifier: "EventCategoriesMessage", }) as any as S.Schema; @@ -2187,27 +2160,26 @@ export interface DescribeEventSubscriptionsMessage { MaxRecords?: number; Marker?: string; } -export const DescribeEventSubscriptionsMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SubscriptionName: S.optional(S.String), - Filters: S.optional(FilterList), - MaxRecords: S.optional(S.Number), - Marker: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeEventSubscriptionsMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SubscriptionName: S.optional(S.String), + Filters: S.optional(FilterList), + MaxRecords: S.optional(S.Number), + Marker: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeEventSubscriptionsMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeEventSubscriptionsMessage", +}) as any as S.Schema; export type EventSubscriptionsList = EventSubscription[]; export const EventSubscriptionsList = /*@__PURE__*/ S.Array( EventSubscription.pipe(T.XmlName("EventSubscription")).annotate({ @@ -2232,27 +2204,26 @@ export interface DescribeGlobalClustersMessage { MaxRecords?: number; Marker?: string; } -export const DescribeGlobalClustersMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - GlobalClusterIdentifier: S.optional(S.String), - Filters: S.optional(FilterList), - MaxRecords: S.optional(S.Number), - Marker: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeGlobalClustersMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + GlobalClusterIdentifier: S.optional(S.String), + Filters: S.optional(FilterList), + MaxRecords: S.optional(S.Number), + Marker: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeGlobalClustersMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeGlobalClustersMessage", +}) as any as S.Schema; export type GlobalClusterList = GlobalCluster[]; export const GlobalClusterList = /*@__PURE__*/ S.Array( GlobalCluster.pipe(T.XmlName("GlobalClusterMember")).annotate({ @@ -2335,33 +2306,31 @@ export const OrderableDBInstanceOption = /*@__PURE__*/ S.suspend(() => identifier: "OrderableDBInstanceOption", }) as any as S.Schema; export type OrderableDBInstanceOptionsList = OrderableDBInstanceOption[]; -export const OrderableDBInstanceOptionsList = - /*@__PURE__*/ S.Array( - OrderableDBInstanceOption.pipe( - T.XmlName("OrderableDBInstanceOption"), - ).annotate({ identifier: "OrderableDBInstanceOption" }), - ); +export const OrderableDBInstanceOptionsList = /*@__PURE__*/ S.Array( + OrderableDBInstanceOption.pipe( + T.XmlName("OrderableDBInstanceOption"), + ).annotate({ identifier: "OrderableDBInstanceOption" }), +); export interface OrderableDBInstanceOptionsMessage { OrderableDBInstanceOptions?: OrderableDBInstanceOption[]; Marker?: string; } -export const OrderableDBInstanceOptionsMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - OrderableDBInstanceOptions: S.optional(OrderableDBInstanceOptionsList), - Marker: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "OrderableDBInstanceOptionsMessage", - }) as any as S.Schema; +export const OrderableDBInstanceOptionsMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + OrderableDBInstanceOptions: S.optional(OrderableDBInstanceOptionsList), + Marker: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "OrderableDBInstanceOptionsMessage", +}) as any as S.Schema; export interface DescribePendingMaintenanceActionsMessage { ResourceIdentifier?: string; Filters?: Filter[]; Marker?: string; MaxRecords?: number; } -export const DescribePendingMaintenanceActionsMessage = - /*@__PURE__*/ S.suspend(() => +export const DescribePendingMaintenanceActionsMessage = /*@__PURE__*/ S.suspend( + () => S.Struct({ ResourceIdentifier: S.optional(S.String), Filters: S.optional(FilterList), @@ -2378,9 +2347,9 @@ export const DescribePendingMaintenanceActionsMessage = rules, ), ), - ).annotate({ - identifier: "DescribePendingMaintenanceActionsMessage", - }) as any as S.Schema; +).annotate({ + identifier: "DescribePendingMaintenanceActionsMessage", +}) as any as S.Schema; export type PendingMaintenanceActions = ResourcePendingMaintenanceActions[]; export const PendingMaintenanceActions = /*@__PURE__*/ S.Array( ResourcePendingMaintenanceActions.pipe( @@ -2391,15 +2360,14 @@ export interface PendingMaintenanceActionsMessage { PendingMaintenanceActions?: ResourcePendingMaintenanceActions[]; Marker?: string; } -export const PendingMaintenanceActionsMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - PendingMaintenanceActions: S.optional(PendingMaintenanceActions), - Marker: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "PendingMaintenanceActionsMessage", - }) as any as S.Schema; +export const PendingMaintenanceActionsMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + PendingMaintenanceActions: S.optional(PendingMaintenanceActions), + Marker: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "PendingMaintenanceActionsMessage", +}) as any as S.Schema; export interface FailoverDBClusterMessage { DBClusterIdentifier?: string; TargetDBInstanceIdentifier?: string; @@ -2436,36 +2404,34 @@ export interface FailoverGlobalClusterMessage { AllowDataLoss?: boolean; Switchover?: boolean; } -export const FailoverGlobalClusterMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - GlobalClusterIdentifier: S.optional(S.String), - TargetDbClusterIdentifier: S.optional(S.String), - AllowDataLoss: S.optional(S.Boolean), - Switchover: S.optional(S.Boolean), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const FailoverGlobalClusterMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + GlobalClusterIdentifier: S.optional(S.String), + TargetDbClusterIdentifier: S.optional(S.String), + AllowDataLoss: S.optional(S.Boolean), + Switchover: S.optional(S.Boolean), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "FailoverGlobalClusterMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "FailoverGlobalClusterMessage", +}) as any as S.Schema; export interface FailoverGlobalClusterResult { GlobalCluster?: GlobalCluster; } -export const FailoverGlobalClusterResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ GlobalCluster: S.optional(GlobalCluster) }).pipe(ns), - ).annotate({ - identifier: "FailoverGlobalClusterResult", - }) as any as S.Schema; +export const FailoverGlobalClusterResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ GlobalCluster: S.optional(GlobalCluster) }).pipe(ns), +).annotate({ + identifier: "FailoverGlobalClusterResult", +}) as any as S.Schema; export interface ListTagsForResourceMessage { ResourceName?: string; Filters?: Filter[]; @@ -2498,15 +2464,14 @@ export interface CloudwatchLogsExportConfiguration { EnableLogTypes?: string[]; DisableLogTypes?: string[]; } -export const CloudwatchLogsExportConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - EnableLogTypes: S.optional(LogTypeList), - DisableLogTypes: S.optional(LogTypeList), - }), - ).annotate({ - identifier: "CloudwatchLogsExportConfiguration", - }) as any as S.Schema; +export const CloudwatchLogsExportConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + EnableLogTypes: S.optional(LogTypeList), + DisableLogTypes: S.optional(LogTypeList), + }), +).annotate({ + identifier: "CloudwatchLogsExportConfiguration", +}) as any as S.Schema; export interface ModifyDBClusterMessage { DBClusterIdentifier?: string; NewDBClusterIdentifier?: string; @@ -2515,7 +2480,7 @@ export interface ModifyDBClusterMessage { DBClusterParameterGroupName?: string; VpcSecurityGroupIds?: string[]; Port?: number; - MasterUserPassword?: string; + MasterUserPassword?: string | redacted.Redacted; PreferredBackupWindow?: string; PreferredMaintenanceWindow?: string; CloudwatchLogsExportConfiguration?: CloudwatchLogsExportConfiguration; @@ -2538,7 +2503,7 @@ export const ModifyDBClusterMessage = /*@__PURE__*/ S.suspend(() => DBClusterParameterGroupName: S.optional(S.String), VpcSecurityGroupIds: S.optional(VpcSecurityGroupIdList), Port: S.optional(S.Number), - MasterUserPassword: S.optional(S.String), + MasterUserPassword: S.optional(SensitiveString), PreferredBackupWindow: S.optional(S.String), PreferredMaintenanceWindow: S.optional(S.String), CloudwatchLogsExportConfiguration: S.optional( @@ -2581,8 +2546,8 @@ export interface ModifyDBClusterParameterGroupMessage { DBClusterParameterGroupName?: string; Parameters?: Parameter[]; } -export const ModifyDBClusterParameterGroupMessage = - /*@__PURE__*/ S.suspend(() => +export const ModifyDBClusterParameterGroupMessage = /*@__PURE__*/ S.suspend( + () => S.Struct({ DBClusterParameterGroupName: S.optional(S.String), Parameters: S.optional(ParametersList), @@ -2597,26 +2562,25 @@ export const ModifyDBClusterParameterGroupMessage = rules, ), ), - ).annotate({ - identifier: "ModifyDBClusterParameterGroupMessage", - }) as any as S.Schema; +).annotate({ + identifier: "ModifyDBClusterParameterGroupMessage", +}) as any as S.Schema; export interface DBClusterParameterGroupNameMessage { DBClusterParameterGroupName?: string; } -export const DBClusterParameterGroupNameMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DBClusterParameterGroupName: S.optional(S.String) }).pipe(ns), - ).annotate({ - identifier: "DBClusterParameterGroupNameMessage", - }) as any as S.Schema; +export const DBClusterParameterGroupNameMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ DBClusterParameterGroupName: S.optional(S.String) }).pipe(ns), +).annotate({ + identifier: "DBClusterParameterGroupNameMessage", +}) as any as S.Schema; export interface ModifyDBClusterSnapshotAttributeMessage { DBClusterSnapshotIdentifier?: string; AttributeName?: string; ValuesToAdd?: string[]; ValuesToRemove?: string[]; } -export const ModifyDBClusterSnapshotAttributeMessage = - /*@__PURE__*/ S.suspend(() => +export const ModifyDBClusterSnapshotAttributeMessage = /*@__PURE__*/ S.suspend( + () => S.Struct({ DBClusterSnapshotIdentifier: S.optional(S.String), AttributeName: S.optional(S.String), @@ -2633,22 +2597,22 @@ export const ModifyDBClusterSnapshotAttributeMessage = rules, ), ), - ).annotate({ - identifier: "ModifyDBClusterSnapshotAttributeMessage", - }) as any as S.Schema; +).annotate({ + identifier: "ModifyDBClusterSnapshotAttributeMessage", +}) as any as S.Schema; export interface ModifyDBClusterSnapshotAttributeResult { DBClusterSnapshotAttributesResult?: DBClusterSnapshotAttributesResult; } -export const ModifyDBClusterSnapshotAttributeResult = - /*@__PURE__*/ S.suspend(() => +export const ModifyDBClusterSnapshotAttributeResult = /*@__PURE__*/ S.suspend( + () => S.Struct({ DBClusterSnapshotAttributesResult: S.optional( DBClusterSnapshotAttributesResult, ), }).pipe(ns), - ).annotate({ - identifier: "ModifyDBClusterSnapshotAttributeResult", - }) as any as S.Schema; +).annotate({ + identifier: "ModifyDBClusterSnapshotAttributeResult", +}) as any as S.Schema; export interface ModifyDBInstanceMessage { DBInstanceIdentifier?: string; DBInstanceClass?: string; @@ -2738,37 +2702,35 @@ export interface ModifyEventSubscriptionMessage { EventCategories?: string[]; Enabled?: boolean; } -export const ModifyEventSubscriptionMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SubscriptionName: S.optional(S.String), - SnsTopicArn: S.optional(S.String), - SourceType: S.optional(S.String), - EventCategories: S.optional(EventCategoriesList), - Enabled: S.optional(S.Boolean), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ModifyEventSubscriptionMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SubscriptionName: S.optional(S.String), + SnsTopicArn: S.optional(S.String), + SourceType: S.optional(S.String), + EventCategories: S.optional(EventCategoriesList), + Enabled: S.optional(S.Boolean), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ModifyEventSubscriptionMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ModifyEventSubscriptionMessage", +}) as any as S.Schema; export interface ModifyEventSubscriptionResult { EventSubscription?: EventSubscription; } -export const ModifyEventSubscriptionResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ EventSubscription: S.optional(EventSubscription) }).pipe(ns), - ).annotate({ - identifier: "ModifyEventSubscriptionResult", - }) as any as S.Schema; +export const ModifyEventSubscriptionResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ EventSubscription: S.optional(EventSubscription) }).pipe(ns), +).annotate({ + identifier: "ModifyEventSubscriptionResult", +}) as any as S.Schema; export interface ModifyGlobalClusterMessage { GlobalClusterIdentifier?: string; NewGlobalClusterIdentifier?: string; @@ -2835,34 +2797,32 @@ export interface RemoveFromGlobalClusterMessage { GlobalClusterIdentifier?: string; DbClusterIdentifier?: string; } -export const RemoveFromGlobalClusterMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - GlobalClusterIdentifier: S.optional(S.String), - DbClusterIdentifier: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const RemoveFromGlobalClusterMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + GlobalClusterIdentifier: S.optional(S.String), + DbClusterIdentifier: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "RemoveFromGlobalClusterMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "RemoveFromGlobalClusterMessage", +}) as any as S.Schema; export interface RemoveFromGlobalClusterResult { GlobalCluster?: GlobalCluster; } -export const RemoveFromGlobalClusterResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ GlobalCluster: S.optional(GlobalCluster) }).pipe(ns), - ).annotate({ - identifier: "RemoveFromGlobalClusterResult", - }) as any as S.Schema; +export const RemoveFromGlobalClusterResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ GlobalCluster: S.optional(GlobalCluster) }).pipe(ns), +).annotate({ + identifier: "RemoveFromGlobalClusterResult", +}) as any as S.Schema; export interface RemoveSourceIdentifierFromSubscriptionMessage { SubscriptionName?: string; SourceIdentifier?: string; @@ -2901,55 +2861,54 @@ export interface RemoveTagsFromResourceMessage { ResourceName?: string; TagKeys?: string[]; } -export const RemoveTagsFromResourceMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResourceName: S.optional(S.String), - TagKeys: S.optional(KeyList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const RemoveTagsFromResourceMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResourceName: S.optional(S.String), + TagKeys: S.optional(KeyList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "RemoveTagsFromResourceMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "RemoveTagsFromResourceMessage", +}) as any as S.Schema; export interface RemoveTagsFromResourceResponse {} -export const RemoveTagsFromResourceResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "RemoveTagsFromResourceResponse", - }) as any as S.Schema; +export const RemoveTagsFromResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "RemoveTagsFromResourceResponse", +}) as any as S.Schema; export interface ResetDBClusterParameterGroupMessage { DBClusterParameterGroupName?: string; ResetAllParameters?: boolean; Parameters?: Parameter[]; } -export const ResetDBClusterParameterGroupMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DBClusterParameterGroupName: S.optional(S.String), - ResetAllParameters: S.optional(S.Boolean), - Parameters: S.optional(ParametersList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ResetDBClusterParameterGroupMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DBClusterParameterGroupName: S.optional(S.String), + ResetAllParameters: S.optional(S.Boolean), + Parameters: S.optional(ParametersList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ResetDBClusterParameterGroupMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ResetDBClusterParameterGroupMessage", +}) as any as S.Schema; export interface RestoreDBClusterFromSnapshotMessage { AvailabilityZones?: string[]; DBClusterIdentifier?: string; @@ -2968,50 +2927,48 @@ export interface RestoreDBClusterFromSnapshotMessage { StorageType?: string; NetworkType?: string; } -export const RestoreDBClusterFromSnapshotMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AvailabilityZones: S.optional(AvailabilityZones), - DBClusterIdentifier: S.optional(S.String), - SnapshotIdentifier: S.optional(S.String), - Engine: S.optional(S.String), - EngineVersion: S.optional(S.String), - Port: S.optional(S.Number), - DBSubnetGroupName: S.optional(S.String), - VpcSecurityGroupIds: S.optional(VpcSecurityGroupIdList), - Tags: S.optional(TagList), - KmsKeyId: S.optional(S.String), - EnableCloudwatchLogsExports: S.optional(LogTypeList), - DeletionProtection: S.optional(S.Boolean), - DBClusterParameterGroupName: S.optional(S.String), - ServerlessV2ScalingConfiguration: S.optional( - ServerlessV2ScalingConfiguration, - ), - StorageType: S.optional(S.String), - NetworkType: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const RestoreDBClusterFromSnapshotMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AvailabilityZones: S.optional(AvailabilityZones), + DBClusterIdentifier: S.optional(S.String), + SnapshotIdentifier: S.optional(S.String), + Engine: S.optional(S.String), + EngineVersion: S.optional(S.String), + Port: S.optional(S.Number), + DBSubnetGroupName: S.optional(S.String), + VpcSecurityGroupIds: S.optional(VpcSecurityGroupIdList), + Tags: S.optional(TagList), + KmsKeyId: S.optional(S.String), + EnableCloudwatchLogsExports: S.optional(LogTypeList), + DeletionProtection: S.optional(S.Boolean), + DBClusterParameterGroupName: S.optional(S.String), + ServerlessV2ScalingConfiguration: S.optional( + ServerlessV2ScalingConfiguration, ), - ).annotate({ - identifier: "RestoreDBClusterFromSnapshotMessage", - }) as any as S.Schema; + StorageType: S.optional(S.String), + NetworkType: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "RestoreDBClusterFromSnapshotMessage", +}) as any as S.Schema; export interface RestoreDBClusterFromSnapshotResult { DBCluster?: DBCluster; } -export const RestoreDBClusterFromSnapshotResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DBCluster: S.optional(DBCluster) }).pipe(ns), - ).annotate({ - identifier: "RestoreDBClusterFromSnapshotResult", - }) as any as S.Schema; +export const RestoreDBClusterFromSnapshotResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ DBCluster: S.optional(DBCluster) }).pipe(ns), +).annotate({ + identifier: "RestoreDBClusterFromSnapshotResult", +}) as any as S.Schema; export interface RestoreDBClusterToPointInTimeMessage { DBClusterIdentifier?: string; RestoreType?: string; @@ -3029,8 +2986,8 @@ export interface RestoreDBClusterToPointInTimeMessage { StorageType?: string; NetworkType?: string; } -export const RestoreDBClusterToPointInTimeMessage = - /*@__PURE__*/ S.suspend(() => +export const RestoreDBClusterToPointInTimeMessage = /*@__PURE__*/ S.suspend( + () => S.Struct({ DBClusterIdentifier: S.optional(S.String), RestoreType: S.optional(S.String), @@ -3062,18 +3019,17 @@ export const RestoreDBClusterToPointInTimeMessage = rules, ), ), - ).annotate({ - identifier: "RestoreDBClusterToPointInTimeMessage", - }) as any as S.Schema; +).annotate({ + identifier: "RestoreDBClusterToPointInTimeMessage", +}) as any as S.Schema; export interface RestoreDBClusterToPointInTimeResult { DBCluster?: DBCluster; } -export const RestoreDBClusterToPointInTimeResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DBCluster: S.optional(DBCluster) }).pipe(ns), - ).annotate({ - identifier: "RestoreDBClusterToPointInTimeResult", - }) as any as S.Schema; +export const RestoreDBClusterToPointInTimeResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ DBCluster: S.optional(DBCluster) }).pipe(ns), +).annotate({ + identifier: "RestoreDBClusterToPointInTimeResult", +}) as any as S.Schema; export interface StartDBClusterMessage { DBClusterIdentifier?: string; } @@ -3130,415 +3086,599 @@ export interface SwitchoverGlobalClusterMessage { GlobalClusterIdentifier?: string; TargetDbClusterIdentifier?: string; } -export const SwitchoverGlobalClusterMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - GlobalClusterIdentifier: S.optional(S.String), - TargetDbClusterIdentifier: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const SwitchoverGlobalClusterMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + GlobalClusterIdentifier: S.optional(S.String), + TargetDbClusterIdentifier: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "SwitchoverGlobalClusterMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "SwitchoverGlobalClusterMessage", +}) as any as S.Schema; export interface SwitchoverGlobalClusterResult { GlobalCluster?: GlobalCluster; } -export const SwitchoverGlobalClusterResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ GlobalCluster: S.optional(GlobalCluster) }).pipe(ns), - ).annotate({ - identifier: "SwitchoverGlobalClusterResult", - }) as any as S.Schema; +export const SwitchoverGlobalClusterResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ GlobalCluster: S.optional(GlobalCluster) }).pipe(ns), +).annotate({ + identifier: "SwitchoverGlobalClusterResult", +}) as any as S.Schema; //# Errors export class SourceNotFoundFault extends S.TaggedErrorClass()( "SourceNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SourceNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "SourceNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class SubscriptionNotFoundFault extends S.TaggedErrorClass()( "SubscriptionNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SubscriptionNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "SubscriptionNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class DBClusterNotFoundFault extends S.TaggedErrorClass()( "DBClusterNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBClusterNotFoundFault", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "DBClusterNotFoundFault", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class DBInstanceNotFoundFault extends S.TaggedErrorClass()( "DBInstanceNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBInstanceNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "DBInstanceNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class DBSnapshotNotFoundFault extends S.TaggedErrorClass()( "DBSnapshotNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBSnapshotNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "DBSnapshotNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class InvalidDBClusterStateFault extends S.TaggedErrorClass()( "InvalidDBClusterStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidDBClusterStateFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidDBClusterStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidDBInstanceStateFault extends S.TaggedErrorClass()( "InvalidDBInstanceStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidDBInstanceState", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidDBInstanceState", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ResourceNotFoundFault extends S.TaggedErrorClass()( "ResourceNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "ResourceNotFoundFault", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "ResourceNotFoundFault", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class DBParameterGroupAlreadyExistsFault extends S.TaggedErrorClass()( "DBParameterGroupAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBParameterGroupAlreadyExists", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBParameterGroupAlreadyExists", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class DBParameterGroupNotFoundFault extends S.TaggedErrorClass()( "DBParameterGroupNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBParameterGroupNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ + code: "DBParameterGroupNotFound", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class DBParameterGroupQuotaExceededFault extends S.TaggedErrorClass()( "DBParameterGroupQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBParameterGroupQuotaExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBParameterGroupQuotaExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBClusterSnapshotAlreadyExistsFault extends S.TaggedErrorClass()( "DBClusterSnapshotAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBClusterSnapshotAlreadyExistsFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBClusterSnapshotAlreadyExistsFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class DBClusterSnapshotNotFoundFault extends S.TaggedErrorClass()( "DBClusterSnapshotNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBClusterSnapshotNotFoundFault", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "DBClusterSnapshotNotFoundFault", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class InvalidDBClusterSnapshotStateFault extends S.TaggedErrorClass()( "InvalidDBClusterSnapshotStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidDBClusterSnapshotStateFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidDBClusterSnapshotStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class KMSKeyNotAccessibleFault extends S.TaggedErrorClass()( "KMSKeyNotAccessibleFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "KMSKeyNotAccessibleFault", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "KMSKeyNotAccessibleFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SnapshotQuotaExceededFault extends S.TaggedErrorClass()( "SnapshotQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SnapshotQuotaExceeded", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "SnapshotQuotaExceeded", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBClusterAlreadyExistsFault extends S.TaggedErrorClass()( "DBClusterAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBClusterAlreadyExistsFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBClusterAlreadyExistsFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class DBClusterParameterGroupNotFoundFault extends S.TaggedErrorClass()( "DBClusterParameterGroupNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBClusterParameterGroupNotFound", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "DBClusterParameterGroupNotFound", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class DBClusterQuotaExceededFault extends S.TaggedErrorClass()( "DBClusterQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBClusterQuotaExceededFault", - httpResponseCode: 403, - }), + T.all( + T.AwsQueryError({ + code: "DBClusterQuotaExceededFault", + httpResponseCode: 403, + }), + T.HttpError(403), + ), ).pipe(C.withAuthError) {} export class DBSubnetGroupDoesNotCoverEnoughAZs extends S.TaggedErrorClass()( "DBSubnetGroupDoesNotCoverEnoughAZs", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBSubnetGroupDoesNotCoverEnoughAZs", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBSubnetGroupDoesNotCoverEnoughAZs", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBSubnetGroupNotFoundFault extends S.TaggedErrorClass()( "DBSubnetGroupNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBSubnetGroupNotFoundFault", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "DBSubnetGroupNotFoundFault", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class GlobalClusterNotFoundFault extends S.TaggedErrorClass()( "GlobalClusterNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "GlobalClusterNotFoundFault", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "GlobalClusterNotFoundFault", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class InsufficientStorageClusterCapacityFault extends S.TaggedErrorClass()( "InsufficientStorageClusterCapacityFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InsufficientStorageClusterCapacity", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InsufficientStorageClusterCapacity", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidDBSubnetGroupStateFault extends S.TaggedErrorClass()( "InvalidDBSubnetGroupStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidDBSubnetGroupStateFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidDBSubnetGroupStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidGlobalClusterStateFault extends S.TaggedErrorClass()( "InvalidGlobalClusterStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidGlobalClusterStateFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidGlobalClusterStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidSubnet extends S.TaggedErrorClass()( "InvalidSubnet", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidSubnet", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidSubnet", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidVPCNetworkStateFault extends S.TaggedErrorClass()( "InvalidVPCNetworkStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidVPCNetworkStateFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidVPCNetworkStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class NetworkTypeNotSupported extends S.TaggedErrorClass()( "NetworkTypeNotSupported", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "NetworkTypeNotSupported", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "NetworkTypeNotSupported", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class StorageQuotaExceededFault extends S.TaggedErrorClass()( "StorageQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "StorageQuotaExceeded", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "StorageQuotaExceeded", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class AuthorizationNotFoundFault extends S.TaggedErrorClass()( "AuthorizationNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "AuthorizationNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "AuthorizationNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class DBInstanceAlreadyExistsFault extends S.TaggedErrorClass()( "DBInstanceAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBInstanceAlreadyExists", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "DBInstanceAlreadyExists", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class DBSecurityGroupNotFoundFault extends S.TaggedErrorClass()( "DBSecurityGroupNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBSecurityGroupNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "DBSecurityGroupNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class InstanceQuotaExceededFault extends S.TaggedErrorClass()( "InstanceQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InstanceQuotaExceeded", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InstanceQuotaExceeded", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InsufficientDBInstanceCapacityFault extends S.TaggedErrorClass()( "InsufficientDBInstanceCapacityFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InsufficientDBInstanceCapacity", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InsufficientDBInstanceCapacity", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class StorageTypeNotSupportedFault extends S.TaggedErrorClass()( "StorageTypeNotSupportedFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "StorageTypeNotSupported", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "StorageTypeNotSupported", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBSubnetGroupAlreadyExistsFault extends S.TaggedErrorClass()( "DBSubnetGroupAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBSubnetGroupAlreadyExists", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBSubnetGroupAlreadyExists", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class DBSubnetGroupQuotaExceededFault extends S.TaggedErrorClass()( "DBSubnetGroupQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBSubnetGroupQuotaExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBSubnetGroupQuotaExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBSubnetQuotaExceededFault extends S.TaggedErrorClass()( "DBSubnetQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBSubnetQuotaExceededFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBSubnetQuotaExceededFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class EventSubscriptionQuotaExceededFault extends S.TaggedErrorClass()( "EventSubscriptionQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "EventSubscriptionQuotaExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "EventSubscriptionQuotaExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SNSInvalidTopicFault extends S.TaggedErrorClass()( "SNSInvalidTopicFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SNSInvalidTopic", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "SNSInvalidTopic", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SNSNoAuthorizationFault extends S.TaggedErrorClass()( "SNSNoAuthorizationFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SNSNoAuthorization", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "SNSNoAuthorization", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SNSTopicArnNotFoundFault extends S.TaggedErrorClass()( "SNSTopicArnNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SNSTopicArnNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "SNSTopicArnNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class SubscriptionAlreadyExistFault extends S.TaggedErrorClass()( "SubscriptionAlreadyExistFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SubscriptionAlreadyExist", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "SubscriptionAlreadyExist", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SubscriptionCategoryNotFoundFault extends S.TaggedErrorClass()( "SubscriptionCategoryNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "SubscriptionCategoryNotFound", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "SubscriptionCategoryNotFound", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class GlobalClusterAlreadyExistsFault extends S.TaggedErrorClass()( "GlobalClusterAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "GlobalClusterAlreadyExistsFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "GlobalClusterAlreadyExistsFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class GlobalClusterQuotaExceededFault extends S.TaggedErrorClass()( "GlobalClusterQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "GlobalClusterQuotaExceededFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "GlobalClusterQuotaExceededFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidDBParameterGroupStateFault extends S.TaggedErrorClass()( "InvalidDBParameterGroupStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidDBParameterGroupState", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidDBParameterGroupState", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBSnapshotAlreadyExistsFault extends S.TaggedErrorClass()( "DBSnapshotAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBSnapshotAlreadyExists", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "DBSnapshotAlreadyExists", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class InvalidDBSubnetStateFault extends S.TaggedErrorClass()( "InvalidDBSubnetStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidDBSubnetStateFault", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "InvalidDBSubnetStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidEventSubscriptionStateFault extends S.TaggedErrorClass()( "InvalidEventSubscriptionStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidEventSubscriptionState", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidEventSubscriptionState", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class CertificateNotFoundFault extends S.TaggedErrorClass()( "CertificateNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "CertificateNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "CertificateNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class InvalidDBSecurityGroupStateFault extends S.TaggedErrorClass()( "InvalidDBSecurityGroupStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidDBSecurityGroupState", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidDBSecurityGroupState", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SharedSnapshotQuotaExceededFault extends S.TaggedErrorClass()( "SharedSnapshotQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "SharedSnapshotQuotaExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "SharedSnapshotQuotaExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBUpgradeDependencyFailureFault extends S.TaggedErrorClass()( "DBUpgradeDependencyFailureFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBUpgradeDependencyFailure", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBUpgradeDependencyFailure", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SubnetAlreadyInUse extends S.TaggedErrorClass()( "SubnetAlreadyInUse", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SubnetAlreadyInUse", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "SubnetAlreadyInUse", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withDependencyViolationError) {} export class InsufficientDBClusterCapacityFault extends S.TaggedErrorClass()( "InsufficientDBClusterCapacityFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InsufficientDBClusterCapacityFault", - httpResponseCode: 403, - }), + T.all( + T.AwsQueryError({ + code: "InsufficientDBClusterCapacityFault", + httpResponseCode: 403, + }), + T.HttpError(403), + ), ).pipe(C.withAuthError) {} export class InvalidDBSnapshotStateFault extends S.TaggedErrorClass()( "InvalidDBSnapshotStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidDBSnapshotState", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidDBSnapshotState", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidRestoreFault extends S.TaggedErrorClass()( "InvalidRestoreFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidRestoreFault", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidRestoreFault", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} //# Operations diff --git a/packages/aws/src/services/ec2.ts b/packages/aws/src/services/ec2.ts index ea7d69d5d9..25093d2f7a 100644 --- a/packages/aws/src/services/ec2.ts +++ b/packages/aws/src/services/ec2.ts @@ -73890,6 +73890,10 @@ export class InvalidAddressNotFound extends S.TaggedErrorClass()( + "UnauthorizedOperation", + {}, +).pipe(C.withAuthError) {} export class InvalidCapacityReservationIdMalformed extends S.TaggedErrorClass()( "InvalidCapacityReservationId.Malformed", {}, @@ -74078,6 +74082,14 @@ export class InvalidVolumeNotFound extends S.TaggedErrorClass()( + "VolumeInUse", + {}, +).pipe( + C.withConflictError, + C.withRetryableError, + C.withDependencyViolationError, +) {} export class InvalidVpnGatewayIDNotFound extends S.TaggedErrorClass()( "InvalidVpnGatewayID.NotFound", {}, @@ -74734,10 +74746,6 @@ export class InvalidVpcCidrBlockAssociationIdErrorNotFound extends S.TaggedError "InvalidVpcCidrBlockAssociationIdError.NotFound", {}, ) {} -export class UnauthorizedOperation extends S.TaggedErrorClass()( - "UnauthorizedOperation", - {}, -).pipe(C.withAuthError) {} export class InvalidIpv6PoolIDMalformed extends S.TaggedErrorClass()( "InvalidIpv6PoolID.Malformed", {}, @@ -74808,6 +74816,7 @@ export type AcceptAddressTransferError = | RequestLimitExceeded | InvalidAddressMalformed | InvalidAddressNotFound + | UnauthorizedOperation | CommonErrors; /** * Accepts an Elastic IP address transfer. For more information, see Accept a transferred Elastic IP address in the *Amazon VPC User Guide*. @@ -74824,12 +74833,14 @@ export const acceptAddressTransfer: API.OperationMethod< RequestLimitExceeded, InvalidAddressMalformed, InvalidAddressNotFound, + UnauthorizedOperation, ], operationName: "AcceptAddressTransfer", })); export type AcceptCapacityReservationBillingOwnershipError = | RequestLimitExceeded | InvalidCapacityReservationIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Accepts a request to assign billing of the available capacity of a shared Capacity @@ -74844,12 +74855,17 @@ export const acceptCapacityReservationBillingOwnership: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: AcceptCapacityReservationBillingOwnershipRequest, output: AcceptCapacityReservationBillingOwnershipResult, - errors: [RequestLimitExceeded, InvalidCapacityReservationIdMalformed], + errors: [ + RequestLimitExceeded, + InvalidCapacityReservationIdMalformed, + UnauthorizedOperation, + ], operationName: "AcceptCapacityReservationBillingOwnership", })); export type AcceptReservedInstancesExchangeQuoteError = | RequestLimitExceeded | InvalidReservedInstancesIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Accepts the Convertible Reserved Instance exchange quote described in the GetReservedInstancesExchangeQuote call. @@ -74862,7 +74878,11 @@ export const acceptReservedInstancesExchangeQuote: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: AcceptReservedInstancesExchangeQuoteRequest, output: AcceptReservedInstancesExchangeQuoteResult, - errors: [RequestLimitExceeded, InvalidReservedInstancesIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidReservedInstancesIDNotFound, + UnauthorizedOperation, + ], operationName: "AcceptReservedInstancesExchangeQuote", })); export type AcceptTransitGatewayClientVpnAttachmentError = CommonErrors; @@ -74883,6 +74903,7 @@ export const acceptTransitGatewayClientVpnAttachment: API.OperationMethod< export type AcceptTransitGatewayMulticastDomainAssociationsError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Accepts a request to associate subnets with a transit gateway multicast domain. @@ -74895,12 +74916,13 @@ export const acceptTransitGatewayMulticastDomainAssociations: API.OperationMetho > = /*@__PURE__*/ API.make(() => ({ input: AcceptTransitGatewayMulticastDomainAssociationsRequest, output: AcceptTransitGatewayMulticastDomainAssociationsResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "AcceptTransitGatewayMulticastDomainAssociations", })); export type AcceptTransitGatewayPeeringAttachmentError = | RequestLimitExceeded | InvalidTransitGatewayAttachmentIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Accepts a transit gateway peering attachment request. The peering attachment must be @@ -74914,12 +74936,17 @@ export const acceptTransitGatewayPeeringAttachment: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: AcceptTransitGatewayPeeringAttachmentRequest, output: AcceptTransitGatewayPeeringAttachmentResult, - errors: [RequestLimitExceeded, InvalidTransitGatewayAttachmentIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidTransitGatewayAttachmentIDNotFound, + UnauthorizedOperation, + ], operationName: "AcceptTransitGatewayPeeringAttachment", })); export type AcceptTransitGatewayVpcAttachmentError = | RequestLimitExceeded | InvalidTransitGatewayAttachmentIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Accepts a request to attach a VPC to a transit gateway. @@ -74936,13 +74963,18 @@ export const acceptTransitGatewayVpcAttachment: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: AcceptTransitGatewayVpcAttachmentRequest, output: AcceptTransitGatewayVpcAttachmentResult, - errors: [RequestLimitExceeded, InvalidTransitGatewayAttachmentIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidTransitGatewayAttachmentIDNotFound, + UnauthorizedOperation, + ], operationName: "AcceptTransitGatewayVpcAttachment", })); export type AcceptVpcEndpointConnectionsError = | RequestLimitExceeded | InvalidParameter | InvalidVpcEndpointServiceIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Accepts connection requests to your VPC endpoint service. @@ -74959,6 +74991,7 @@ export const acceptVpcEndpointConnections: API.OperationMethod< RequestLimitExceeded, InvalidParameter, InvalidVpcEndpointServiceIdNotFound, + UnauthorizedOperation, ], operationName: "AcceptVpcEndpointConnections", })); @@ -74966,6 +74999,7 @@ export type AcceptVpcPeeringConnectionError = | RequestLimitExceeded | InvalidVpcPeeringConnectionIDNotFound | InvalidVpcPeeringConnectionIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Accept a VPC peering connection request. To accept a request, the VPC peering connection must @@ -74988,10 +75022,14 @@ export const acceptVpcPeeringConnection: API.OperationMethod< RequestLimitExceeded, InvalidVpcPeeringConnectionIDNotFound, InvalidVpcPeeringConnectionIdNotFound, + UnauthorizedOperation, ], operationName: "AcceptVpcPeeringConnection", })); -export type AdvertiseByoipCidrError = RequestLimitExceeded | CommonErrors; +export type AdvertiseByoipCidrError = + | RequestLimitExceeded + | UnauthorizedOperation + | CommonErrors; /** * Advertises an IPv4 or IPv6 address range that is provisioned for use with your Amazon Web Services resources through * bring your own IP addresses (BYOIP). @@ -75015,12 +75053,13 @@ export const advertiseByoipCidr: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: AdvertiseByoipCidrRequest, output: AdvertiseByoipCidrResult, - errors: [RequestLimitExceeded], + errors: [RequestLimitExceeded, UnauthorizedOperation], operationName: "AdvertiseByoipCidr", })); export type AllocateAddressError = | RequestLimitExceeded | AddressLimitExceeded + | UnauthorizedOperation | CommonErrors; /** * Allocates an Elastic IP address to your Amazon Web Services account. After you allocate the Elastic IP address you can associate @@ -75057,13 +75096,14 @@ export const allocateAddress: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: AllocateAddressRequest, output: AllocateAddressResult, - errors: [RequestLimitExceeded, AddressLimitExceeded], + errors: [RequestLimitExceeded, AddressLimitExceeded, UnauthorizedOperation], operationName: "AllocateAddress", })); export type AllocateHostsError = | RequestLimitExceeded | InvalidHostConfiguration | InvalidRequest + | UnauthorizedOperation | CommonErrors; /** * Allocates a Dedicated Host to your account. At a minimum, specify the supported @@ -75078,12 +75118,18 @@ export const allocateHosts: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: AllocateHostsRequest, output: AllocateHostsResult, - errors: [RequestLimitExceeded, InvalidHostConfiguration, InvalidRequest], + errors: [ + RequestLimitExceeded, + InvalidHostConfiguration, + InvalidRequest, + UnauthorizedOperation, + ], operationName: "AllocateHosts", })); export type AllocateIpamPoolCidrError = | RequestLimitExceeded | InvalidIpamPoolIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Allocate a CIDR from an IPAM pool. The Region you use should be the IPAM pool locale. The locale is the Amazon Web Services Region where this IPAM pool is available for allocations. @@ -75100,12 +75146,17 @@ export const allocateIpamPoolCidr: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: AllocateIpamPoolCidrRequest, output: AllocateIpamPoolCidrResult, - errors: [RequestLimitExceeded, InvalidIpamPoolIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidIpamPoolIdNotFound, + UnauthorizedOperation, + ], operationName: "AllocateIpamPoolCidr", })); export type ApplySecurityGroupsToClientVpnTargetNetworkError = | RequestLimitExceeded | InvalidVpcIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Applies a security group to the association between the target network and the Client VPN endpoint. This action replaces the existing @@ -75119,13 +75170,14 @@ export const applySecurityGroupsToClientVpnTargetNetwork: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ApplySecurityGroupsToClientVpnTargetNetworkRequest, output: ApplySecurityGroupsToClientVpnTargetNetworkResult, - errors: [RequestLimitExceeded, InvalidVpcIdMalformed], + errors: [RequestLimitExceeded, InvalidVpcIdMalformed, UnauthorizedOperation], operationName: "ApplySecurityGroupsToClientVpnTargetNetwork", })); export type AssignIpv6AddressesError = | RequestLimitExceeded | InvalidNetworkInterfaceIDNotFound | InvalidParameterCombination + | UnauthorizedOperation | CommonErrors; /** * Assigns the specified IPv6 addresses to the specified network interface. You can @@ -75153,6 +75205,7 @@ export const assignIpv6Addresses: API.OperationMethod< RequestLimitExceeded, InvalidNetworkInterfaceIDNotFound, InvalidParameterCombination, + UnauthorizedOperation, ], operationName: "AssignIpv6Addresses", })); @@ -75161,6 +75214,7 @@ export type AssignPrivateIpAddressesError = | InvalidNetworkInterfaceIDNotFound | InvalidNetworkInterfaceIdMalformed | InvalidParameter + | UnauthorizedOperation | CommonErrors; /** * Assigns the specified secondary private IP addresses to the specified network @@ -75201,12 +75255,14 @@ export const assignPrivateIpAddresses: API.OperationMethod< InvalidNetworkInterfaceIDNotFound, InvalidNetworkInterfaceIdMalformed, InvalidParameter, + UnauthorizedOperation, ], operationName: "AssignPrivateIpAddresses", })); export type AssignPrivateNatGatewayAddressError = | RequestLimitExceeded | NatGatewayNotFound + | UnauthorizedOperation | CommonErrors; /** * Assigns private IPv4 addresses to a private NAT gateway. For more information, see @@ -75220,7 +75276,7 @@ export const assignPrivateNatGatewayAddress: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: AssignPrivateNatGatewayAddressRequest, output: AssignPrivateNatGatewayAddressResult, - errors: [RequestLimitExceeded, NatGatewayNotFound], + errors: [RequestLimitExceeded, NatGatewayNotFound, UnauthorizedOperation], operationName: "AssignPrivateNatGatewayAddress", })); export type AssociateAddressError = @@ -75229,6 +75285,7 @@ export type AssociateAddressError = | InvalidAllocationIDNotFound | InvalidInstanceIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Associates an Elastic IP address, or carrier IP address (for instances that are in @@ -75266,6 +75323,7 @@ export const associateAddress: API.OperationMethod< InvalidAllocationIDNotFound, InvalidInstanceIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "AssociateAddress", })); @@ -75273,6 +75331,7 @@ export type AssociateCapacityReservationBillingOwnerError = | RequestLimitExceeded | InvalidCapacityReservationIdMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Initiates a request to assign billing of the unused capacity of a shared Capacity @@ -75292,6 +75351,7 @@ export const associateCapacityReservationBillingOwner: API.OperationMethod< RequestLimitExceeded, InvalidCapacityReservationIdMalformed, MissingParameter, + UnauthorizedOperation, ], operationName: "AssociateCapacityReservationBillingOwner", })); @@ -75299,6 +75359,7 @@ export type AssociateClientVpnTargetNetworkError = | RequestLimitExceeded | InvalidSubnetIDMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Associates a target network with a Client VPN endpoint. A target network is a subnet in a VPC. You can associate multiple subnets from the same VPC with a Client VPN endpoint. You can associate only one subnet in each Availability Zone. We recommend that you associate at least two subnets to provide Availability Zone redundancy. @@ -75313,7 +75374,12 @@ export const associateClientVpnTargetNetwork: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: AssociateClientVpnTargetNetworkRequest, output: AssociateClientVpnTargetNetworkResult, - errors: [RequestLimitExceeded, InvalidSubnetIDMalformed, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidSubnetIDMalformed, + MissingParameter, + UnauthorizedOperation, + ], operationName: "AssociateClientVpnTargetNetwork", })); export type AssociateDhcpOptionsError = @@ -75321,6 +75387,7 @@ export type AssociateDhcpOptionsError = | InvalidDhcpOptionsIdMalformed | InvalidVpcIDNotFound | InvalidVpcIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Associates a set of DHCP options (that you've previously created) with the specified VPC, or associates no DHCP options with the VPC. @@ -75343,6 +75410,7 @@ export const associateDhcpOptions: API.OperationMethod< InvalidDhcpOptionsIdMalformed, InvalidVpcIDNotFound, InvalidVpcIdMalformed, + UnauthorizedOperation, ], operationName: "AssociateDhcpOptions", })); @@ -75350,6 +75418,7 @@ export type AssociateEnclaveCertificateIamRoleError = | RequestLimitExceeded | InvalidCertificateArnMalformed | InvalidRoleArnMalformed + | UnauthorizedOperation | CommonErrors; /** * Associates an Identity and Access Management (IAM) role with an Certificate Manager (ACM) certificate. @@ -75380,12 +75449,14 @@ export const associateEnclaveCertificateIamRole: API.OperationMethod< RequestLimitExceeded, InvalidCertificateArnMalformed, InvalidRoleArnMalformed, + UnauthorizedOperation, ], operationName: "AssociateEnclaveCertificateIamRole", })); export type AssociateIamInstanceProfileError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Associates an IAM instance profile with a running or stopped instance. You cannot @@ -75399,12 +75470,13 @@ export const associateIamInstanceProfile: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: AssociateIamInstanceProfileRequest, output: AssociateIamInstanceProfileResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "AssociateIamInstanceProfile", })); export type AssociateInstanceEventWindowError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Associates one or more targets with an event window. Only one type of target (instance @@ -75421,12 +75493,13 @@ export const associateInstanceEventWindow: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: AssociateInstanceEventWindowRequest, output: AssociateInstanceEventWindowResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "AssociateInstanceEventWindow", })); export type AssociateIpamByoasnError = | RequestLimitExceeded | InvalidCidrNotFound + | UnauthorizedOperation | CommonErrors; /** * Associates your Autonomous System Number (ASN) with a BYOIP CIDR that you own in the same Amazon Web Services Region. @@ -75443,13 +75516,14 @@ export const associateIpamByoasn: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: AssociateIpamByoasnRequest, output: AssociateIpamByoasnResult, - errors: [RequestLimitExceeded, InvalidCidrNotFound], + errors: [RequestLimitExceeded, InvalidCidrNotFound, UnauthorizedOperation], operationName: "AssociateIpamByoasn", })); export type AssociateIpamResourceDiscoveryError = | RequestLimitExceeded | InvalidIpamResourceDiscoveryIdMalformed | InvalidIpamResourceDiscoveryIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Associates an IPAM resource discovery with an Amazon VPC IPAM. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account. @@ -75466,6 +75540,7 @@ export const associateIpamResourceDiscovery: API.OperationMethod< RequestLimitExceeded, InvalidIpamResourceDiscoveryIdMalformed, InvalidIpamResourceDiscoveryIdNotFound, + UnauthorizedOperation, ], operationName: "AssociateIpamResourceDiscovery", })); @@ -75474,6 +75549,7 @@ export type AssociateNatGatewayAddressError = | MissingParameter | NatGatewayMalformed | NatGatewayNotFound + | UnauthorizedOperation | CommonErrors; /** * Associates Elastic IP addresses (EIPs) and private IPv4 addresses with a public NAT gateway. For more information, @@ -75501,12 +75577,14 @@ export const associateNatGatewayAddress: API.OperationMethod< MissingParameter, NatGatewayMalformed, NatGatewayNotFound, + UnauthorizedOperation, ], operationName: "AssociateNatGatewayAddress", })); export type AssociateRouteServerError = | RequestLimitExceeded | InvalidRouteServerIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Associates a route server with a VPC to enable dynamic route updates. @@ -75523,7 +75601,11 @@ export const associateRouteServer: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: AssociateRouteServerRequest, output: AssociateRouteServerResult, - errors: [RequestLimitExceeded, InvalidRouteServerIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidRouteServerIdNotFound, + UnauthorizedOperation, + ], operationName: "AssociateRouteServer", })); export type AssociateRouteTableError = @@ -75536,6 +75618,7 @@ export type AssociateRouteTableError = | InvalidRouteTableIDNotFound | InvalidSubnetIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Associates a subnet in your VPC or an internet gateway or virtual private gateway @@ -75565,6 +75648,7 @@ export const associateRouteTable: API.OperationMethod< InvalidRouteTableIDNotFound, InvalidSubnetIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "AssociateRouteTable", })); @@ -75572,6 +75656,7 @@ export type AssociateSecurityGroupVpcError = | RequestLimitExceeded | InvalidGroupIdMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Associates a security group with another VPC in the same Region. This enables you to use the same security group with network interfaces and instances in the specified VPC. @@ -75594,13 +75679,19 @@ export const associateSecurityGroupVpc: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: AssociateSecurityGroupVpcRequest, output: AssociateSecurityGroupVpcResult, - errors: [RequestLimitExceeded, InvalidGroupIdMalformed, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidGroupIdMalformed, + MissingParameter, + UnauthorizedOperation, + ], operationName: "AssociateSecurityGroupVpc", })); export type AssociateSubnetCidrBlockError = | RequestLimitExceeded | InvalidSubnetIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Associates a CIDR block with your subnet. You can only associate a single IPv6 CIDR @@ -75614,12 +75705,18 @@ export const associateSubnetCidrBlock: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: AssociateSubnetCidrBlockRequest, output: AssociateSubnetCidrBlockResult, - errors: [RequestLimitExceeded, InvalidSubnetIDNotFound, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidSubnetIDNotFound, + MissingParameter, + UnauthorizedOperation, + ], operationName: "AssociateSubnetCidrBlock", })); export type AssociateTransitGatewayMulticastDomainError = | RequestLimitExceeded | InvalidTransitGatewayMulticastDomainIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Associates the specified subnets and transit gateway attachments with the specified transit gateway multicast domain. @@ -75638,6 +75735,7 @@ export const associateTransitGatewayMulticastDomain: API.OperationMethod< errors: [ RequestLimitExceeded, InvalidTransitGatewayMulticastDomainIdNotFound, + UnauthorizedOperation, ], operationName: "AssociateTransitGatewayMulticastDomain", })); @@ -75645,6 +75743,7 @@ export type AssociateTransitGatewayPolicyTableError = | RequestLimitExceeded | InvalidTransitGatewayPolicyTableIdMalformed | InvalidTransitGatewayPolicyTableIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Associates the specified transit gateway attachment with a transit gateway policy table. @@ -75661,12 +75760,14 @@ export const associateTransitGatewayPolicyTable: API.OperationMethod< RequestLimitExceeded, InvalidTransitGatewayPolicyTableIdMalformed, InvalidTransitGatewayPolicyTableIdNotFound, + UnauthorizedOperation, ], operationName: "AssociateTransitGatewayPolicyTable", })); export type AssociateTransitGatewayRouteTableError = | RequestLimitExceeded | InvalidRouteTableIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Associates the specified attachment with the specified transit gateway route table. You can @@ -75680,12 +75781,17 @@ export const associateTransitGatewayRouteTable: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: AssociateTransitGatewayRouteTableRequest, output: AssociateTransitGatewayRouteTableResult, - errors: [RequestLimitExceeded, InvalidRouteTableIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidRouteTableIDNotFound, + UnauthorizedOperation, + ], operationName: "AssociateTransitGatewayRouteTable", })); export type AssociateTrunkInterfaceError = | RequestLimitExceeded | OperationNotPermitted + | UnauthorizedOperation | CommonErrors; /** * Associates a branch network interface with a trunk network interface. @@ -75703,7 +75809,7 @@ export const associateTrunkInterface: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: AssociateTrunkInterfaceRequest, output: AssociateTrunkInterfaceResult, - errors: [RequestLimitExceeded, OperationNotPermitted], + errors: [RequestLimitExceeded, OperationNotPermitted, UnauthorizedOperation], operationName: "AssociateTrunkInterface", })); export type AssociateVpcCidrBlockError = @@ -75713,6 +75819,7 @@ export type AssociateVpcCidrBlockError = | InvalidVpcIDNotFound | InvalidVpcIdMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Associates a CIDR block with your VPC. You can associate a secondary IPv4 CIDR block, @@ -75741,6 +75848,7 @@ export const associateVpcCidrBlock: API.OperationMethod< InvalidVpcIDNotFound, InvalidVpcIdMalformed, MissingParameter, + UnauthorizedOperation, ], operationName: "AssociateVpcCidrBlock", })); @@ -75748,6 +75856,7 @@ export type AttachClassicLinkVpcError = | RequestLimitExceeded | InvalidInstanceIDMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * This action is deprecated. @@ -75770,7 +75879,12 @@ export const attachClassicLinkVpc: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: AttachClassicLinkVpcRequest, output: AttachClassicLinkVpcResult, - errors: [RequestLimitExceeded, InvalidInstanceIDMalformed, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidInstanceIDMalformed, + MissingParameter, + UnauthorizedOperation, + ], operationName: "AttachClassicLinkVpc", })); export type AttachImageWatermarkError = CommonErrors; @@ -75800,6 +75914,7 @@ export type AttachInternetGatewayError = | InvalidInternetGatewayIDNotFound | InvalidInternetGatewayIdMalformed | InvalidVpcIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Attaches an internet gateway or a virtual private gateway to a VPC, enabling connectivity @@ -75820,6 +75935,7 @@ export const attachInternetGateway: API.OperationMethod< InvalidInternetGatewayIDNotFound, InvalidInternetGatewayIdMalformed, InvalidVpcIdMalformed, + UnauthorizedOperation, ], operationName: "AttachInternetGateway", })); @@ -75828,6 +75944,7 @@ export type AttachNetworkInterfaceError = | InvalidInstanceIDMalformed | InvalidInstanceIDNotFound | InvalidNetworkInterfaceIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Attaches a network interface to an instance. @@ -75845,12 +75962,14 @@ export const attachNetworkInterface: API.OperationMethod< InvalidInstanceIDMalformed, InvalidInstanceIDNotFound, InvalidNetworkInterfaceIDNotFound, + UnauthorizedOperation, ], operationName: "AttachNetworkInterface", })); export type AttachVerifiedAccessTrustProviderError = | RequestLimitExceeded | InvalidVerifiedAccessInstanceIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Attaches the specified Amazon Web Services Verified Access trust provider to the specified Amazon Web Services Verified Access instance. @@ -75863,7 +75982,11 @@ export const attachVerifiedAccessTrustProvider: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: AttachVerifiedAccessTrustProviderRequest, output: AttachVerifiedAccessTrustProviderResult, - errors: [RequestLimitExceeded, InvalidVerifiedAccessInstanceIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidVerifiedAccessInstanceIdNotFound, + UnauthorizedOperation, + ], operationName: "AttachVerifiedAccessTrustProvider", })); export type AttachVolumeError = @@ -75871,6 +75994,8 @@ export type AttachVolumeError = | InvalidInstanceIDNotFound | InvalidParameterValue | InvalidVolumeNotFound + | VolumeInUse + | UnauthorizedOperation | CommonErrors; /** * Attaches an Amazon EBS volume to a `running` or `stopped` @@ -75914,6 +76039,8 @@ export const attachVolume: API.OperationMethod< InvalidInstanceIDNotFound, InvalidParameterValue, InvalidVolumeNotFound, + VolumeInUse, + UnauthorizedOperation, ], operationName: "AttachVolume", })); @@ -75921,6 +76048,7 @@ export type AttachVpnGatewayError = | RequestLimitExceeded | InvalidVpcIDNotFound | InvalidVpnGatewayIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Attaches an available virtual private gateway to a VPC. You can attach one virtual private @@ -75941,12 +76069,14 @@ export const attachVpnGateway: API.OperationMethod< RequestLimitExceeded, InvalidVpcIDNotFound, InvalidVpnGatewayIDNotFound, + UnauthorizedOperation, ], operationName: "AttachVpnGateway", })); export type AuthorizeClientVpnIngressError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Adds an ingress authorization rule to a Client VPN endpoint. Ingress authorization rules act as @@ -75961,7 +76091,7 @@ export const authorizeClientVpnIngress: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: AuthorizeClientVpnIngressRequest, output: AuthorizeClientVpnIngressResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "AuthorizeClientVpnIngress", })); export type AuthorizeSecurityGroupEgressError = @@ -75969,6 +76099,7 @@ export type AuthorizeSecurityGroupEgressError = | InvalidGroupNotFound | InvalidGroupIdMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Adds the specified outbound (egress) rules to a security group. @@ -76003,6 +76134,7 @@ export const authorizeSecurityGroupEgress: API.OperationMethod< InvalidGroupNotFound, InvalidGroupIdMalformed, MissingParameter, + UnauthorizedOperation, ], operationName: "AuthorizeSecurityGroupEgress", })); @@ -76011,6 +76143,7 @@ export type AuthorizeSecurityGroupIngressError = | InvalidGroupNotFound | InvalidGroupIdMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Adds the specified inbound (ingress) rules to a security group. @@ -76045,12 +76178,14 @@ export const authorizeSecurityGroupIngress: API.OperationMethod< InvalidGroupNotFound, InvalidGroupIdMalformed, MissingParameter, + UnauthorizedOperation, ], operationName: "AuthorizeSecurityGroupIngress", })); export type BundleInstanceError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Bundles an Amazon instance store-backed Windows instance. @@ -76071,13 +76206,14 @@ export const bundleInstance: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: BundleInstanceRequest, output: BundleInstanceResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "BundleInstance", })); export type CancelBundleTaskError = | RequestLimitExceeded | InvalidBundleIDNotFound | InvalidInstanceIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Cancels a bundling operation for an instance store-backed Windows instance. @@ -76094,6 +76230,7 @@ export const cancelBundleTask: API.OperationMethod< RequestLimitExceeded, InvalidBundleIDNotFound, InvalidInstanceIDMalformed, + UnauthorizedOperation, ], operationName: "CancelBundleTask", })); @@ -76101,6 +76238,7 @@ export type CancelCapacityReservationError = | RequestLimitExceeded | InvalidCapacityReservationIdMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Cancels the specified Capacity Reservation, releases the reserved capacity, and @@ -76145,12 +76283,14 @@ export const cancelCapacityReservation: API.OperationMethod< RequestLimitExceeded, InvalidCapacityReservationIdMalformed, MissingParameter, + UnauthorizedOperation, ], operationName: "CancelCapacityReservation", })); export type CancelCapacityReservationFleetsError = | RequestLimitExceeded | InvalidCapacityReservationFleetIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Cancels one or more Capacity Reservation Fleets. When you cancel a Capacity @@ -76173,12 +76313,17 @@ export const cancelCapacityReservationFleets: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CancelCapacityReservationFleetsRequest, output: CancelCapacityReservationFleetsResult, - errors: [RequestLimitExceeded, InvalidCapacityReservationFleetIdMalformed], + errors: [ + RequestLimitExceeded, + InvalidCapacityReservationFleetIdMalformed, + UnauthorizedOperation, + ], operationName: "CancelCapacityReservationFleets", })); export type CancelConversionTaskError = | RequestLimitExceeded | InvalidAction + | UnauthorizedOperation | CommonErrors; /** * Cancels an active conversion task. The task can be the import of an instance or volume. The action removes all @@ -76193,12 +76338,13 @@ export const cancelConversionTask: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CancelConversionRequest, output: CancelConversionTaskResponse, - errors: [RequestLimitExceeded, InvalidAction], + errors: [RequestLimitExceeded, InvalidAction, UnauthorizedOperation], operationName: "CancelConversionTask", })); export type CancelDeclarativePoliciesReportError = | RequestLimitExceeded | InvalidDeclarativePoliciesReportIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Cancels the generation of an account status report. @@ -76218,12 +76364,17 @@ export const cancelDeclarativePoliciesReport: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CancelDeclarativePoliciesReportRequest, output: CancelDeclarativePoliciesReportResult, - errors: [RequestLimitExceeded, InvalidDeclarativePoliciesReportIdMalformed], + errors: [ + RequestLimitExceeded, + InvalidDeclarativePoliciesReportIdMalformed, + UnauthorizedOperation, + ], operationName: "CancelDeclarativePoliciesReport", })); export type CancelExportTaskError = | RequestLimitExceeded | InvalidID + | UnauthorizedOperation | CommonErrors; /** * Cancels an active export task. The request removes all artifacts of the export, including any partially-created @@ -76238,12 +76389,13 @@ export const cancelExportTask: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CancelExportTaskRequest, output: CancelExportTaskResponse, - errors: [RequestLimitExceeded, InvalidID], + errors: [RequestLimitExceeded, InvalidID, UnauthorizedOperation], operationName: "CancelExportTask", })); export type CancelImageLaunchPermissionError = | RequestLimitExceeded | InvalidAMIIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Removes your Amazon Web Services account from the launch permissions for the specified AMI. @@ -76258,12 +76410,13 @@ export const cancelImageLaunchPermission: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CancelImageLaunchPermissionRequest, output: CancelImageLaunchPermissionResult, - errors: [RequestLimitExceeded, InvalidAMIIDMalformed], + errors: [RequestLimitExceeded, InvalidAMIIDMalformed, UnauthorizedOperation], operationName: "CancelImageLaunchPermission", })); export type CancelImportTaskError = | RequestLimitExceeded | InvalidConversionTaskIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Cancels an in-process import virtual machine or import snapshot task. @@ -76276,12 +76429,17 @@ export const cancelImportTask: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CancelImportTaskRequest, output: CancelImportTaskResult, - errors: [RequestLimitExceeded, InvalidConversionTaskIdMalformed], + errors: [ + RequestLimitExceeded, + InvalidConversionTaskIdMalformed, + UnauthorizedOperation, + ], operationName: "CancelImportTask", })); export type CancelReservedInstancesListingError = | RequestLimitExceeded | InvalidInput + | UnauthorizedOperation | CommonErrors; /** * Cancels the specified Reserved Instance listing in the Reserved Instance @@ -76298,13 +76456,14 @@ export const cancelReservedInstancesListing: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CancelReservedInstancesListingRequest, output: CancelReservedInstancesListingResult, - errors: [RequestLimitExceeded, InvalidInput], + errors: [RequestLimitExceeded, InvalidInput, UnauthorizedOperation], operationName: "CancelReservedInstancesListing", })); export type CancelSpotFleetRequestsError = | RequestLimitExceeded | InvalidParameterValue | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Cancels the specified Spot Fleet requests. @@ -76341,13 +76500,19 @@ export const cancelSpotFleetRequests: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CancelSpotFleetRequestsRequest, output: CancelSpotFleetRequestsResponse, - errors: [RequestLimitExceeded, InvalidParameterValue, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidParameterValue, + MissingParameter, + UnauthorizedOperation, + ], operationName: "CancelSpotFleetRequests", })); export type CancelSpotInstanceRequestsError = | RequestLimitExceeded | InvalidParameterCombination | InvalidSpotInstanceRequestIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Cancels one or more Spot Instance requests. @@ -76367,12 +76532,14 @@ export const cancelSpotInstanceRequests: API.OperationMethod< RequestLimitExceeded, InvalidParameterCombination, InvalidSpotInstanceRequestIDMalformed, + UnauthorizedOperation, ], operationName: "CancelSpotInstanceRequests", })); export type ConfirmProductInstanceError = | RequestLimitExceeded | AuthFailure + | UnauthorizedOperation | CommonErrors; /** * Determines whether a product code is associated with an instance. This action can only @@ -76387,12 +76554,13 @@ export const confirmProductInstance: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ConfirmProductInstanceRequest, output: ConfirmProductInstanceResult, - errors: [RequestLimitExceeded, AuthFailure], + errors: [RequestLimitExceeded, AuthFailure, UnauthorizedOperation], operationName: "ConfirmProductInstance", })); export type CopyFpgaImageError = | RequestLimitExceeded | InvalidFpgaImageIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Copies the specified Amazon FPGA Image (AFI) to the current Region. @@ -76405,7 +76573,11 @@ export const copyFpgaImage: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CopyFpgaImageRequest, output: CopyFpgaImageResult, - errors: [RequestLimitExceeded, InvalidFpgaImageIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidFpgaImageIDMalformed, + UnauthorizedOperation, + ], operationName: "CopyFpgaImage", })); export type CopyImageError = @@ -76414,6 +76586,7 @@ export type CopyImageError = | InvalidAMIIDNotFound | InvalidRegion | InvalidRequest + | UnauthorizedOperation | CommonErrors; /** * Initiates an AMI copy operation. You must specify the source AMI ID and both the source @@ -76493,6 +76666,7 @@ export const copyImage: API.OperationMethod< InvalidAMIIDNotFound, InvalidRegion, InvalidRequest, + UnauthorizedOperation, ], operationName: "CopyImage", })); @@ -76501,6 +76675,7 @@ export type CopySnapshotError = | InvalidParameterValue | InvalidRegion | InvalidSnapshotNotFound + | UnauthorizedOperation | CommonErrors; /** * Creates an exact copy of an Amazon EBS snapshot. @@ -76546,12 +76721,14 @@ export const copySnapshot: API.OperationMethod< InvalidParameterValue, InvalidRegion, InvalidSnapshotNotFound, + UnauthorizedOperation, ], operationName: "CopySnapshot", })); export type CopyVolumesError = | RequestLimitExceeded | InvalidVolumeIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Creates a crash-consistent, point-in-time copy of an existing Amazon EBS volume within the same @@ -76566,12 +76743,17 @@ export const copyVolumes: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CopyVolumesRequest, output: CopyVolumesResult, - errors: [RequestLimitExceeded, InvalidVolumeIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidVolumeIDMalformed, + UnauthorizedOperation, + ], operationName: "CopyVolumes", })); export type CreateCapacityManagerDataExportError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a new data export configuration for EC2 Capacity Manager. This allows you to automatically export capacity usage data to an S3 bucket on a scheduled basis. @@ -76585,12 +76767,13 @@ export const createCapacityManagerDataExport: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateCapacityManagerDataExportRequest, output: CreateCapacityManagerDataExportResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "CreateCapacityManagerDataExport", })); export type CreateCapacityReservationError = | RequestLimitExceeded | Unsupported + | UnauthorizedOperation | CommonErrors; /** * Creates a new Capacity Reservation with the specified attributes. Capacity @@ -76626,13 +76809,14 @@ export const createCapacityReservation: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateCapacityReservationRequest, output: CreateCapacityReservationResult, - errors: [RequestLimitExceeded, Unsupported], + errors: [RequestLimitExceeded, Unsupported, UnauthorizedOperation], operationName: "CreateCapacityReservation", })); export type CreateCapacityReservationBySplittingError = | RequestLimitExceeded | InvalidCapacityReservationIdMalformed | InvalidCapacityReservationIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Create a new Capacity Reservation by splitting the capacity of the source Capacity @@ -76652,6 +76836,7 @@ export const createCapacityReservationBySplitting: API.OperationMethod< RequestLimitExceeded, InvalidCapacityReservationIdMalformed, InvalidCapacityReservationIdNotFound, + UnauthorizedOperation, ], operationName: "CreateCapacityReservationBySplitting", })); @@ -76676,6 +76861,7 @@ export const createCapacityReservationCancellationQuote: API.OperationMethod< export type CreateCapacityReservationFleetError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a Capacity Reservation Fleet. For more information, see Create a @@ -76690,7 +76876,7 @@ export const createCapacityReservationFleet: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateCapacityReservationFleetRequest, output: CreateCapacityReservationFleetResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "CreateCapacityReservationFleet", })); export type CreateCarrierGatewayError = @@ -76699,6 +76885,7 @@ export type CreateCarrierGatewayError = | InvalidVpcIdMalformed | MissingParameter | ParseError + | UnauthorizedOperation | CommonErrors; /** * Creates a carrier gateway. For more information about carrier gateways, see Carrier gateways in the *Amazon Web Services Wavelength Developer Guide*. @@ -76717,12 +76904,14 @@ export const createCarrierGateway: API.OperationMethod< InvalidVpcIdMalformed, MissingParameter, ParseError, + UnauthorizedOperation, ], operationName: "CreateCarrierGateway", })); export type CreateClientVpnEndpointError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a Client VPN endpoint. A Client VPN endpoint is the resource you create and configure to @@ -76737,12 +76926,13 @@ export const createClientVpnEndpoint: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateClientVpnEndpointRequest, output: CreateClientVpnEndpointResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "CreateClientVpnEndpoint", })); export type CreateClientVpnRouteError = | RequestLimitExceeded | InvalidClientVpnEndpointIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Adds a route to a network to a Client VPN endpoint. Each Client VPN endpoint has a route table that describes the @@ -76756,7 +76946,11 @@ export const createClientVpnRoute: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateClientVpnRouteRequest, output: CreateClientVpnRouteResult, - errors: [RequestLimitExceeded, InvalidClientVpnEndpointIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidClientVpnEndpointIdNotFound, + UnauthorizedOperation, + ], operationName: "CreateClientVpnRoute", })); export type CreateCoipCidrError = @@ -76764,6 +76958,7 @@ export type CreateCoipCidrError = | InvalidPoolIDMalformed | InvalidPoolIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a range of customer-owned IP addresses. @@ -76781,6 +76976,7 @@ export const createCoipCidr: API.OperationMethod< InvalidPoolIDMalformed, InvalidPoolIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "CreateCoipCidr", })); @@ -76789,6 +76985,7 @@ export type CreateCoipPoolError = | InvalidLocalGatewayRouteTableIDMalformed | InvalidLocalGatewayRouteTableIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a pool of customer-owned IP (CoIP) addresses. @@ -76806,6 +77003,7 @@ export const createCoipPool: API.OperationMethod< InvalidLocalGatewayRouteTableIDMalformed, InvalidLocalGatewayRouteTableIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "CreateCoipPool", })); @@ -76813,6 +77011,7 @@ export type CreateCustomerGatewayError = | RequestLimitExceeded | MissingParameter | ParseError + | UnauthorizedOperation | CommonErrors; /** * Provides information to Amazon Web Services about your customer gateway device. The @@ -76840,13 +77039,19 @@ export const createCustomerGateway: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateCustomerGatewayRequest, output: CreateCustomerGatewayResult, - errors: [RequestLimitExceeded, MissingParameter, ParseError], + errors: [ + RequestLimitExceeded, + MissingParameter, + ParseError, + UnauthorizedOperation, + ], operationName: "CreateCustomerGateway", })); export type CreateDefaultSubnetError = | RequestLimitExceeded | DefaultSubnetAlreadyExistsInAvailabilityZone | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a default subnet with a size `/20` IPv4 CIDR block in the @@ -76866,12 +77071,14 @@ export const createDefaultSubnet: API.OperationMethod< RequestLimitExceeded, DefaultSubnetAlreadyExistsInAvailabilityZone, MissingParameter, + UnauthorizedOperation, ], operationName: "CreateDefaultSubnet", })); export type CreateDefaultVpcError = | RequestLimitExceeded | DefaultVpcAlreadyExists + | UnauthorizedOperation | CommonErrors; /** * Creates a default VPC with a size `/16` IPv4 CIDR block and a default subnet @@ -76891,12 +77098,17 @@ export const createDefaultVpc: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateDefaultVpcRequest, output: CreateDefaultVpcResult, - errors: [RequestLimitExceeded, DefaultVpcAlreadyExists], + errors: [ + RequestLimitExceeded, + DefaultVpcAlreadyExists, + UnauthorizedOperation, + ], operationName: "CreateDefaultVpc", })); export type CreateDelegateMacVolumeOwnershipTaskError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Delegates ownership of the Amazon EBS root volume for an Apple silicon @@ -76910,13 +77122,14 @@ export const createDelegateMacVolumeOwnershipTask: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateDelegateMacVolumeOwnershipTaskRequest, output: CreateDelegateMacVolumeOwnershipTaskResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "CreateDelegateMacVolumeOwnershipTask", })); export type CreateDhcpOptionsError = | RequestLimitExceeded | MissingParameter | ParseError + | UnauthorizedOperation | CommonErrors; /** * Creates a custom set of DHCP options. After you create a DHCP option set, you associate @@ -76966,7 +77179,12 @@ export const createDhcpOptions: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateDhcpOptionsRequest, output: CreateDhcpOptionsResult, - errors: [RequestLimitExceeded, MissingParameter, ParseError], + errors: [ + RequestLimitExceeded, + MissingParameter, + ParseError, + UnauthorizedOperation, + ], operationName: "CreateDhcpOptions", })); export type CreateEgressOnlyInternetGatewayError = @@ -76975,6 +77193,7 @@ export type CreateEgressOnlyInternetGatewayError = | InvalidVpcIdMalformed | MissingParameter | ParseError + | UnauthorizedOperation | CommonErrors; /** * [IPv6 only] Creates an egress-only internet gateway for your VPC. An egress-only @@ -76996,12 +77215,14 @@ export const createEgressOnlyInternetGateway: API.OperationMethod< InvalidVpcIdMalformed, MissingParameter, ParseError, + UnauthorizedOperation, ], operationName: "CreateEgressOnlyInternetGateway", })); export type CreateFleetError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates an EC2 Fleet that contains the configuration information for On-Demand Instances and Spot Instances. @@ -77020,7 +77241,7 @@ export const createFleet: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateFleetRequest, output: CreateFleetResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "CreateFleet", })); export type CreateFlowLogsError = @@ -77028,6 +77249,7 @@ export type CreateFlowLogsError = | InvalidID | InvalidParameterValue | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates one or more flow logs to capture information about IP traffic for a specific network interface, @@ -77059,12 +77281,14 @@ export const createFlowLogs: API.OperationMethod< InvalidID, InvalidParameterValue, MissingParameter, + UnauthorizedOperation, ], operationName: "CreateFlowLogs", })); export type CreateFpgaImageError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Creates an Amazon FPGA Image (AFI) from the specified design checkpoint (DCP). @@ -77084,13 +77308,14 @@ export const createFpgaImage: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateFpgaImageRequest, output: CreateFpgaImageResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "CreateFpgaImage", })); export type CreateImageError = | RequestLimitExceeded | InvalidInstanceIDNotFound | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that is either running or @@ -77125,12 +77350,14 @@ export const createImage: API.OperationMethod< RequestLimitExceeded, InvalidInstanceIDNotFound, InvalidParameterValue, + UnauthorizedOperation, ], operationName: "CreateImage", })); export type CreateImageUsageReportError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a report that shows how your image is used across other Amazon Web Services accounts. The report @@ -77148,7 +77375,7 @@ export const createImageUsageReport: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateImageUsageReportRequest, output: CreateImageUsageReportResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "CreateImageUsageReport", })); export type CreateInstanceConnectEndpointError = @@ -77156,6 +77383,7 @@ export type CreateInstanceConnectEndpointError = | InvalidGroupNotFound | InvalidSubnetIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates an EC2 Instance Connect Endpoint. @@ -77178,12 +77406,14 @@ export const createInstanceConnectEndpoint: API.OperationMethod< InvalidGroupNotFound, InvalidSubnetIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "CreateInstanceConnectEndpoint", })); export type CreateInstanceEventWindowError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Creates an event window in which scheduled events for the associated Amazon EC2 instances can @@ -77218,12 +77448,13 @@ export const createInstanceEventWindow: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateInstanceEventWindowRequest, output: CreateInstanceEventWindowResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "CreateInstanceEventWindow", })); export type CreateInstanceExportTaskError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Exports a running or stopped instance to an Amazon S3 bucket. @@ -77240,13 +77471,14 @@ export const createInstanceExportTask: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateInstanceExportTaskRequest, output: CreateInstanceExportTaskResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "CreateInstanceExportTask", })); export type CreateInternetGatewayError = | RequestLimitExceeded | InternetGatewayLimitExceeded | ParseError + | UnauthorizedOperation | CommonErrors; /** * Creates an internet gateway for use with a VPC. After creating the internet gateway, @@ -77263,12 +77495,18 @@ export const createInternetGateway: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateInternetGatewayRequest, output: CreateInternetGatewayResult, - errors: [RequestLimitExceeded, InternetGatewayLimitExceeded, ParseError], + errors: [ + RequestLimitExceeded, + InternetGatewayLimitExceeded, + ParseError, + UnauthorizedOperation, + ], operationName: "CreateInternetGateway", })); export type CreateInterruptibleCapacityReservationAllocationError = | RequestLimitExceeded | InvalidCapacityReservationIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Creates an interruptible Capacity Reservation by specifying the number of unused instances you want to allocate from your source reservation. This helps you make unused capacity available for other workloads within your account while maintaining control to reclaim it. @@ -77281,14 +77519,19 @@ export const createInterruptibleCapacityReservationAllocation: API.OperationMeth > = /*@__PURE__*/ API.make(() => ({ input: CreateInterruptibleCapacityReservationAllocationRequest, output: CreateInterruptibleCapacityReservationAllocationResult, - errors: [RequestLimitExceeded, InvalidCapacityReservationIdNotFound], - operationName: "CreateInterruptibleCapacityReservationAllocation", + errors: [ + RequestLimitExceeded, + InvalidCapacityReservationIdNotFound, + UnauthorizedOperation, + ], + operationName: "CreateInterruptibleCapacityReservationAllocation", })); export type CreateIpamError = | RequestLimitExceeded | InvalidParameterValue | ParseError | ResourceLimitExceeded + | UnauthorizedOperation | CommonErrors; /** * Create an IPAM. Amazon VPC IP Address Manager (IPAM) is a VPC feature that you can use @@ -77311,6 +77554,7 @@ export const createIpam: API.OperationMethod< InvalidParameterValue, ParseError, ResourceLimitExceeded, + UnauthorizedOperation, ], operationName: "CreateIpam", })); @@ -77318,6 +77562,7 @@ export type CreateIpamExternalResourceVerificationTokenError = | RequestLimitExceeded | InvalidIpamIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Create a verification token. @@ -77332,13 +77577,19 @@ export const createIpamExternalResourceVerificationToken: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateIpamExternalResourceVerificationTokenRequest, output: CreateIpamExternalResourceVerificationTokenResult, - errors: [RequestLimitExceeded, InvalidIpamIdNotFound, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidIpamIdNotFound, + MissingParameter, + UnauthorizedOperation, + ], operationName: "CreateIpamExternalResourceVerificationToken", })); export type CreateIpamPolicyError = | RequestLimitExceeded | InvalidIpamIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates an IPAM policy. @@ -77355,13 +77606,19 @@ export const createIpamPolicy: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateIpamPolicyRequest, output: CreateIpamPolicyResult, - errors: [RequestLimitExceeded, InvalidIpamIdNotFound, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidIpamIdNotFound, + MissingParameter, + UnauthorizedOperation, + ], operationName: "CreateIpamPolicy", })); export type CreateIpamPoolError = | RequestLimitExceeded | InvalidIpamScopeIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Create an IP address pool for Amazon VPC IP Address Manager (IPAM). In IPAM, a pool is a collection of contiguous IP addresses CIDRs. Pools enable you to organize your IP addresses according to your routing and security needs. For example, if you have separate routing and security needs for development and production applications, you can create a pool for each. @@ -77376,12 +77633,18 @@ export const createIpamPool: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateIpamPoolRequest, output: CreateIpamPoolResult, - errors: [RequestLimitExceeded, InvalidIpamScopeIdNotFound, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidIpamScopeIdNotFound, + MissingParameter, + UnauthorizedOperation, + ], operationName: "CreateIpamPool", })); export type CreateIpamPrefixListResolverError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates an IPAM prefix list resolver. @@ -77398,7 +77661,7 @@ export const createIpamPrefixListResolver: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateIpamPrefixListResolverRequest, output: CreateIpamPrefixListResolverResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "CreateIpamPrefixListResolver", })); export type CreateIpamPrefixListResolverTargetError = @@ -77406,6 +77669,7 @@ export type CreateIpamPrefixListResolverTargetError = | InvalidIpamPrefixListResolverIdMalformed | InvalidIpamPrefixListResolverIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates an IPAM prefix list resolver target. @@ -77427,12 +77691,14 @@ export const createIpamPrefixListResolverTarget: API.OperationMethod< InvalidIpamPrefixListResolverIdMalformed, InvalidIpamPrefixListResolverIdNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "CreateIpamPrefixListResolverTarget", })); export type CreateIpamResourceDiscoveryError = | RequestLimitExceeded | ResourceLimitExceeded + | UnauthorizedOperation | CommonErrors; /** * Creates an IPAM resource discovery. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account. @@ -77445,13 +77711,14 @@ export const createIpamResourceDiscovery: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateIpamResourceDiscoveryRequest, output: CreateIpamResourceDiscoveryResult, - errors: [RequestLimitExceeded, ResourceLimitExceeded], + errors: [RequestLimitExceeded, ResourceLimitExceeded, UnauthorizedOperation], operationName: "CreateIpamResourceDiscovery", })); export type CreateIpamScopeError = | RequestLimitExceeded | InvalidIpamIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Create an IPAM scope. In IPAM, a scope is the highest-level container within IPAM. An IPAM contains two default scopes. Each scope represents the IP space for a single network. The private scope is intended for all private IP address space. The public scope is intended for all public IP address space. Scopes enable you to reuse IP addresses across multiple unconnected networks without causing IP address overlap or conflict. @@ -77466,12 +77733,18 @@ export const createIpamScope: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateIpamScopeRequest, output: CreateIpamScopeResult, - errors: [RequestLimitExceeded, InvalidIpamIdNotFound, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidIpamIdNotFound, + MissingParameter, + UnauthorizedOperation, + ], operationName: "CreateIpamScope", })); export type CreateKeyPairError = | RequestLimitExceeded | InvalidKeyPairDuplicate + | UnauthorizedOperation | CommonErrors; /** * Creates an ED25519 or 2048-bit RSA key pair with the specified name and in the @@ -77497,12 +77770,17 @@ export const createKeyPair: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateKeyPairRequest, output: KeyPair, - errors: [RequestLimitExceeded, InvalidKeyPairDuplicate], + errors: [ + RequestLimitExceeded, + InvalidKeyPairDuplicate, + UnauthorizedOperation, + ], operationName: "CreateKeyPair", })); export type CreateLaunchTemplateError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a launch template. @@ -77526,7 +77804,7 @@ export const createLaunchTemplate: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateLaunchTemplateRequest, output: CreateLaunchTemplateResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "CreateLaunchTemplate", })); export type CreateLaunchTemplateVersionError = CommonErrors; @@ -77561,6 +77839,7 @@ export type CreateLocalGatewayRouteError = | RequestLimitExceeded | InvalidParameterValue | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a static route for the specified local gateway route table. You must specify one of the @@ -77578,7 +77857,12 @@ export const createLocalGatewayRoute: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateLocalGatewayRouteRequest, output: CreateLocalGatewayRouteResult, - errors: [RequestLimitExceeded, InvalidParameterValue, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidParameterValue, + MissingParameter, + UnauthorizedOperation, + ], operationName: "CreateLocalGatewayRoute", })); export type CreateLocalGatewayRouteTableError = @@ -77586,6 +77870,7 @@ export type CreateLocalGatewayRouteTableError = | InvalidLocalGatewayIDMalformed | InvalidLocalGatewayIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a local gateway route table. @@ -77603,6 +77888,7 @@ export const createLocalGatewayRouteTable: API.OperationMethod< InvalidLocalGatewayIDMalformed, InvalidLocalGatewayIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "CreateLocalGatewayRouteTable", })); @@ -77611,6 +77897,7 @@ export type CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationError = | InvalidLocalGatewayRouteTableIDNotFound | InvalidLocalGatewayVirtualInterfaceGroupIDMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a local gateway route table virtual interface group association. @@ -77628,6 +77915,7 @@ export const createLocalGatewayRouteTableVirtualInterfaceGroupAssociation: API.O InvalidLocalGatewayRouteTableIDNotFound, InvalidLocalGatewayVirtualInterfaceGroupIDMalformed, MissingParameter, + UnauthorizedOperation, ], operationName: "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation", })); @@ -77637,6 +77925,7 @@ export type CreateLocalGatewayRouteTableVpcAssociationError = | InvalidLocalGatewayRouteTableIDNotFound | InvalidVpcIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Associates the specified VPC with the specified local gateway route table. @@ -77655,6 +77944,7 @@ export const createLocalGatewayRouteTableVpcAssociation: API.OperationMethod< InvalidLocalGatewayRouteTableIDNotFound, InvalidVpcIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "CreateLocalGatewayRouteTableVpcAssociation", })); @@ -77663,6 +77953,7 @@ export type CreateLocalGatewayVirtualInterfaceError = | InvalidLocalGatewayVirtualInterfaceGroupIDMalformed | InvalidLocalGatewayVirtualInterfaceGroupIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Create a virtual interface for a local gateway. @@ -77680,6 +77971,7 @@ export const createLocalGatewayVirtualInterface: API.OperationMethod< InvalidLocalGatewayVirtualInterfaceGroupIDMalformed, InvalidLocalGatewayVirtualInterfaceGroupIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "CreateLocalGatewayVirtualInterface", })); @@ -77687,6 +77979,7 @@ export type CreateLocalGatewayVirtualInterfaceGroupError = | RequestLimitExceeded | InvalidLocalGatewayIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Create a local gateway virtual interface group. @@ -77703,6 +77996,7 @@ export const createLocalGatewayVirtualInterfaceGroup: API.OperationMethod< RequestLimitExceeded, InvalidLocalGatewayIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "CreateLocalGatewayVirtualInterfaceGroup", })); @@ -77759,6 +78053,7 @@ export type CreateManagedPrefixListError = | RequestLimitExceeded | InvalidParameterValue | ParseError + | UnauthorizedOperation | CommonErrors; /** * Creates a managed prefix list. You can specify entries for the prefix list. @@ -77772,7 +78067,12 @@ export const createManagedPrefixList: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateManagedPrefixListRequest, output: CreateManagedPrefixListResult, - errors: [RequestLimitExceeded, InvalidParameterValue, ParseError], + errors: [ + RequestLimitExceeded, + InvalidParameterValue, + ParseError, + UnauthorizedOperation, + ], operationName: "CreateManagedPrefixList", })); export type CreateNatGatewayError = @@ -77782,6 +78082,7 @@ export type CreateNatGatewayError = | InvalidSubnetIDNotFound | MissingParameter | ParseError + | UnauthorizedOperation | CommonErrors; /** * Creates a NAT gateway in the specified subnet. This action creates a network interface @@ -77821,6 +78122,7 @@ export const createNatGateway: API.OperationMethod< InvalidSubnetIDNotFound, MissingParameter, ParseError, + UnauthorizedOperation, ], operationName: "CreateNatGateway", })); @@ -77829,6 +78131,7 @@ export type CreateNetworkAclError = | InvalidVpcIDNotFound | MissingParameter | ParseError + | UnauthorizedOperation | CommonErrors; /** * Creates a network ACL in a VPC. Network ACLs provide an optional layer of security (in addition to security groups) for the instances in your VPC. @@ -77849,6 +78152,7 @@ export const createNetworkAcl: API.OperationMethod< InvalidVpcIDNotFound, MissingParameter, ParseError, + UnauthorizedOperation, ], operationName: "CreateNetworkAcl", })); @@ -77856,6 +78160,7 @@ export type CreateNetworkAclEntryError = | RequestLimitExceeded | InvalidNetworkAclIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates an entry (a rule) in a network ACL with the specified rule number. Each network ACL has a set of numbered ingress rules @@ -77879,7 +78184,12 @@ export const createNetworkAclEntry: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateNetworkAclEntryRequest, output: CreateNetworkAclEntryResponse, - errors: [RequestLimitExceeded, InvalidNetworkAclIDNotFound, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidNetworkAclIDNotFound, + MissingParameter, + UnauthorizedOperation, + ], operationName: "CreateNetworkAclEntry", })); export type CreateNetworkInsightsAccessScopeError = CommonErrors; @@ -77905,6 +78215,7 @@ export type CreateNetworkInsightsPathError = | RequestLimitExceeded | InvalidParameterValue | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a path to analyze for reachability. @@ -77921,7 +78232,12 @@ export const createNetworkInsightsPath: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateNetworkInsightsPathRequest, output: CreateNetworkInsightsPathResult, - errors: [RequestLimitExceeded, InvalidParameterValue, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidParameterValue, + MissingParameter, + UnauthorizedOperation, + ], operationName: "CreateNetworkInsightsPath", })); export type CreateNetworkInterfaceError = @@ -77929,6 +78245,7 @@ export type CreateNetworkInterfaceError = | InvalidSubnetIDNotFound | MissingParameter | ParseError + | UnauthorizedOperation | CommonErrors; /** * Creates a network interface in the specified subnet. @@ -77952,12 +78269,14 @@ export const createNetworkInterface: API.OperationMethod< InvalidSubnetIDNotFound, MissingParameter, ParseError, + UnauthorizedOperation, ], operationName: "CreateNetworkInterface", })); export type CreateNetworkInterfacePermissionError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Grants an Amazon Web Services-authorized account permission to attach the specified @@ -77974,13 +78293,14 @@ export const createNetworkInterfacePermission: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateNetworkInterfacePermissionRequest, output: CreateNetworkInterfacePermissionResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "CreateNetworkInterfacePermission", })); export type CreatePlacementGroupError = | RequestLimitExceeded | InvalidParameterValue | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a placement group in which to launch instances. The strategy of the placement @@ -78006,7 +78326,12 @@ export const createPlacementGroup: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreatePlacementGroupRequest, output: CreatePlacementGroupResult, - errors: [RequestLimitExceeded, InvalidParameterValue, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidParameterValue, + MissingParameter, + UnauthorizedOperation, + ], operationName: "CreatePlacementGroup", })); export type CreatePublicIpv4PoolError = CommonErrors; @@ -78027,6 +78352,7 @@ export const createPublicIpv4Pool: API.OperationMethod< export type CreateReplaceRootVolumeTaskError = | RequestLimitExceeded | InvalidInstanceIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Replaces the EBS-backed root volume for a `running` instance with a new @@ -78044,12 +78370,17 @@ export const createReplaceRootVolumeTask: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateReplaceRootVolumeTaskRequest, output: CreateReplaceRootVolumeTaskResult, - errors: [RequestLimitExceeded, InvalidInstanceIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidInstanceIDMalformed, + UnauthorizedOperation, + ], operationName: "CreateReplaceRootVolumeTask", })); export type CreateReservedInstancesListingError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a listing for Amazon EC2 Standard Reserved Instances to be sold in the Reserved @@ -78082,12 +78413,13 @@ export const createReservedInstancesListing: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateReservedInstancesListingRequest, output: CreateReservedInstancesListingResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "CreateReservedInstancesListing", })); export type CreateRestoreImageTaskError = | RequestLimitExceeded | InvalidRequest + | UnauthorizedOperation | CommonErrors; /** * Starts a task that restores an AMI from an Amazon S3 object that was previously created by @@ -78107,7 +78439,7 @@ export const createRestoreImageTask: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateRestoreImageTaskRequest, output: CreateRestoreImageTaskResult, - errors: [RequestLimitExceeded, InvalidRequest], + errors: [RequestLimitExceeded, InvalidRequest, UnauthorizedOperation], operationName: "CreateRestoreImageTask", })); export type CreateRouteError = @@ -78121,6 +78453,7 @@ export type CreateRouteError = | InvalidVpcEndpointIdNotFound | MissingParameter | RouteAlreadyExists + | UnauthorizedOperation | CommonErrors; /** * Creates a route in a route table within a VPC. @@ -78162,12 +78495,14 @@ export const createRoute: API.OperationMethod< InvalidVpcEndpointIdNotFound, MissingParameter, RouteAlreadyExists, + UnauthorizedOperation, ], operationName: "CreateRoute", })); export type CreateRouteServerError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a new route server to manage dynamic routing in a VPC. @@ -78195,7 +78530,7 @@ export const createRouteServer: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateRouteServerRequest, output: CreateRouteServerResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "CreateRouteServer", })); export type CreateRouteServerEndpointError = @@ -78204,6 +78539,7 @@ export type CreateRouteServerEndpointError = | InvalidRouteServerIdNotFound | InvalidSubnetIDMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a new endpoint for a route server in a specified subnet. @@ -78226,12 +78562,14 @@ export const createRouteServerEndpoint: API.OperationMethod< InvalidRouteServerIdNotFound, InvalidSubnetIDMalformed, MissingParameter, + UnauthorizedOperation, ], operationName: "CreateRouteServerEndpoint", })); export type CreateRouteServerPeerError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a new BGP peer for a specified route server endpoint. @@ -78254,7 +78592,7 @@ export const createRouteServerPeer: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateRouteServerPeerRequest, output: CreateRouteServerPeerResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "CreateRouteServerPeer", })); export type CreateRouteTableError = @@ -78262,6 +78600,7 @@ export type CreateRouteTableError = | InvalidVpcIDNotFound | MissingParameter | ParseError + | UnauthorizedOperation | CommonErrors; /** * Creates a route table for the specified VPC. After you create a route table, you can add routes and associate the table with a subnet. @@ -78282,6 +78621,7 @@ export const createRouteTable: API.OperationMethod< InvalidVpcIDNotFound, MissingParameter, ParseError, + UnauthorizedOperation, ], operationName: "CreateRouteTable", })); @@ -78329,6 +78669,7 @@ export type CreateSecurityGroupError = | InvalidVpcIdMalformed | MissingParameter | VPCIdNotSpecified + | UnauthorizedOperation | CommonErrors; /** * Creates a security group. @@ -78372,6 +78713,7 @@ export const createSecurityGroup: API.OperationMethod< InvalidVpcIdMalformed, MissingParameter, VPCIdNotSpecified, + UnauthorizedOperation, ], operationName: "CreateSecurityGroup", })); @@ -78380,6 +78722,7 @@ export type CreateSnapshotError = | InvalidParameterValue | InvalidVolumeNotFound | InvalidVolumeIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Creates a snapshot of an EBS volume and stores it in Amazon S3. You can use snapshots for @@ -78430,12 +78773,14 @@ export const createSnapshot: API.OperationMethod< InvalidParameterValue, InvalidVolumeNotFound, InvalidVolumeIDMalformed, + UnauthorizedOperation, ], operationName: "CreateSnapshot", })); export type CreateSnapshotsError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates crash-consistent snapshots of multiple EBS volumes attached to an Amazon EC2 instance. @@ -78463,12 +78808,13 @@ export const createSnapshots: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateSnapshotsRequest, output: CreateSnapshotsResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "CreateSnapshots", })); export type CreateSpotDatafeedSubscriptionError = | RequestLimitExceeded | InaccessibleStorageLocation + | UnauthorizedOperation | CommonErrors; /** * Creates a data feed for Spot Instances, enabling you to view Spot Instance usage logs. @@ -78484,12 +78830,17 @@ export const createSpotDatafeedSubscription: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateSpotDatafeedSubscriptionRequest, output: CreateSpotDatafeedSubscriptionResult, - errors: [RequestLimitExceeded, InaccessibleStorageLocation], + errors: [ + RequestLimitExceeded, + InaccessibleStorageLocation, + UnauthorizedOperation, + ], operationName: "CreateSpotDatafeedSubscription", })); export type CreateStoreImageTaskError = | RequestLimitExceeded | InvalidAMIIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Stores an AMI as a single object in an Amazon S3 bucket. @@ -78508,7 +78859,7 @@ export const createStoreImageTask: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateStoreImageTaskRequest, output: CreateStoreImageTaskResult, - errors: [RequestLimitExceeded, InvalidAMIIDMalformed], + errors: [RequestLimitExceeded, InvalidAMIIDMalformed, UnauthorizedOperation], operationName: "CreateStoreImageTask", })); export type CreateSubnetError = @@ -78518,6 +78869,7 @@ export type CreateSubnetError = | MissingParameter | ParseError | InvalidSubnetConflict + | UnauthorizedOperation | CommonErrors; /** * Creates a subnet in the specified VPC. For an IPv4 only subnet, specify an IPv4 CIDR block. @@ -78559,6 +78911,7 @@ export const createSubnet: API.OperationMethod< MissingParameter, ParseError, InvalidSubnetConflict, + UnauthorizedOperation, ], operationName: "CreateSubnet", })); @@ -78567,6 +78920,7 @@ export type CreateSubnetCidrReservationError = | InvalidParameterValue | InvalidSubnetIDMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a subnet CIDR reservation. For more information, see Subnet CIDR reservations @@ -78586,6 +78940,7 @@ export const createSubnetCidrReservation: API.OperationMethod< InvalidParameterValue, InvalidSubnetIDMalformed, MissingParameter, + UnauthorizedOperation, ], operationName: "CreateSubnetCidrReservation", })); @@ -78593,6 +78948,7 @@ export type CreateTagsError = | RequestLimitExceeded | InvalidID | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Adds or overwrites only the specified tags for the specified Amazon EC2 resource or @@ -78614,12 +78970,18 @@ export const createTags: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateTagsRequest, output: CreateTagsResponse, - errors: [RequestLimitExceeded, InvalidID, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidID, + MissingParameter, + UnauthorizedOperation, + ], operationName: "CreateTags", })); export type CreateTrafficMirrorFilterError = | RequestLimitExceeded | ParseError + | UnauthorizedOperation | CommonErrors; /** * Creates a Traffic Mirror filter. @@ -78638,12 +79000,13 @@ export const createTrafficMirrorFilter: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateTrafficMirrorFilterRequest, output: CreateTrafficMirrorFilterResult, - errors: [RequestLimitExceeded, ParseError], + errors: [RequestLimitExceeded, ParseError, UnauthorizedOperation], operationName: "CreateTrafficMirrorFilter", })); export type CreateTrafficMirrorFilterRuleError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a Traffic Mirror filter rule. @@ -78660,7 +79023,7 @@ export const createTrafficMirrorFilterRule: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateTrafficMirrorFilterRuleRequest, output: CreateTrafficMirrorFilterRuleResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "CreateTrafficMirrorFilterRule", })); export type CreateTrafficMirrorSessionError = @@ -78668,6 +79031,7 @@ export type CreateTrafficMirrorSessionError = | InvalidNetworkInterfaceIDNotFound | InvalidParameterValue | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a Traffic Mirror session. @@ -78694,12 +79058,14 @@ export const createTrafficMirrorSession: API.OperationMethod< InvalidNetworkInterfaceIDNotFound, InvalidParameterValue, MissingParameter, + UnauthorizedOperation, ], operationName: "CreateTrafficMirrorSession", })); export type CreateTrafficMirrorTargetError = | RequestLimitExceeded | InvalidParameterCombination + | UnauthorizedOperation | CommonErrors; /** * Creates a target for your Traffic Mirror session. @@ -78720,13 +79086,18 @@ export const createTrafficMirrorTarget: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateTrafficMirrorTargetRequest, output: CreateTrafficMirrorTargetResult, - errors: [RequestLimitExceeded, InvalidParameterCombination], + errors: [ + RequestLimitExceeded, + InvalidParameterCombination, + UnauthorizedOperation, + ], operationName: "CreateTrafficMirrorTarget", })); export type CreateTransitGatewayError = | RequestLimitExceeded | ParseError | TransitGatewayLimitExceeded + | UnauthorizedOperation | CommonErrors; /** * Creates a transit gateway. @@ -78755,12 +79126,18 @@ export const createTransitGateway: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateTransitGatewayRequest, output: CreateTransitGatewayResult, - errors: [RequestLimitExceeded, ParseError, TransitGatewayLimitExceeded], + errors: [ + RequestLimitExceeded, + ParseError, + TransitGatewayLimitExceeded, + UnauthorizedOperation, + ], operationName: "CreateTransitGateway", })); export type CreateTransitGatewayConnectError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a Connect attachment from a specified transit gateway attachment. A Connect attachment is a GRE-based tunnel attachment that you can use to establish a connection between a transit gateway and an appliance. @@ -78775,12 +79152,13 @@ export const createTransitGatewayConnect: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateTransitGatewayConnectRequest, output: CreateTransitGatewayConnectResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "CreateTransitGatewayConnect", })); export type CreateTransitGatewayConnectPeerError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a Connect peer for a specified transit gateway Connect attachment between a @@ -78799,7 +79177,7 @@ export const createTransitGatewayConnectPeer: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateTransitGatewayConnectPeerRequest, output: CreateTransitGatewayConnectPeerResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "CreateTransitGatewayConnectPeer", })); export type CreateTransitGatewayMeteringPolicyError = @@ -78807,6 +79185,7 @@ export type CreateTransitGatewayMeteringPolicyError = | IncorrectState | InvalidTransitGatewayIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a metering policy for a transit gateway to track and measure network traffic. @@ -78824,12 +79203,14 @@ export const createTransitGatewayMeteringPolicy: API.OperationMethod< IncorrectState, InvalidTransitGatewayIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "CreateTransitGatewayMeteringPolicy", })); export type CreateTransitGatewayMeteringPolicyEntryError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates an entry in a transit gateway metering policy to define traffic measurement rules. @@ -78842,7 +79223,7 @@ export const createTransitGatewayMeteringPolicyEntry: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateTransitGatewayMeteringPolicyEntryRequest, output: CreateTransitGatewayMeteringPolicyEntryResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "CreateTransitGatewayMeteringPolicyEntry", })); export type CreateTransitGatewayMulticastDomainError = @@ -78851,6 +79232,7 @@ export type CreateTransitGatewayMulticastDomainError = | InvalidTransitGatewayIDMalformed | InvalidTransitGatewayIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a multicast domain using the specified transit gateway. @@ -78871,6 +79253,7 @@ export const createTransitGatewayMulticastDomain: API.OperationMethod< InvalidTransitGatewayIDMalformed, InvalidTransitGatewayIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "CreateTransitGatewayMulticastDomain", })); @@ -78879,6 +79262,7 @@ export type CreateTransitGatewayPeeringAttachmentError = | InvalidParameterValue | InvalidTransitGatewayIDMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Requests a transit gateway peering attachment between the specified transit gateway @@ -78901,6 +79285,7 @@ export const createTransitGatewayPeeringAttachment: API.OperationMethod< InvalidParameterValue, InvalidTransitGatewayIDMalformed, MissingParameter, + UnauthorizedOperation, ], operationName: "CreateTransitGatewayPeeringAttachment", })); @@ -78909,6 +79294,7 @@ export type CreateTransitGatewayPolicyTableError = | IncorrectState | InvalidTransitGatewayIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a transit gateway policy table. @@ -78926,12 +79312,14 @@ export const createTransitGatewayPolicyTable: API.OperationMethod< IncorrectState, InvalidTransitGatewayIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "CreateTransitGatewayPolicyTable", })); export type CreateTransitGatewayPrefixListReferenceError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a reference (route) to a prefix list in a specified transit gateway route table. @@ -78944,13 +79332,14 @@ export const createTransitGatewayPrefixListReference: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateTransitGatewayPrefixListReferenceRequest, output: CreateTransitGatewayPrefixListReferenceResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "CreateTransitGatewayPrefixListReference", })); export type CreateTransitGatewayRouteError = | RequestLimitExceeded | InvalidRouteTableIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a static route for the specified transit gateway route table. @@ -78963,7 +79352,12 @@ export const createTransitGatewayRoute: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateTransitGatewayRouteRequest, output: CreateTransitGatewayRouteResult, - errors: [RequestLimitExceeded, InvalidRouteTableIDNotFound, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidRouteTableIDNotFound, + MissingParameter, + UnauthorizedOperation, + ], operationName: "CreateTransitGatewayRoute", })); export type CreateTransitGatewayRouteTableError = @@ -78972,6 +79366,7 @@ export type CreateTransitGatewayRouteTableError = | InvalidTransitGatewayIDNotFound | MissingParameter | ParseError + | UnauthorizedOperation | CommonErrors; /** * Creates a route table for the specified transit gateway. @@ -78990,6 +79385,7 @@ export const createTransitGatewayRouteTable: API.OperationMethod< InvalidTransitGatewayIDNotFound, MissingParameter, ParseError, + UnauthorizedOperation, ], operationName: "CreateTransitGatewayRouteTable", })); @@ -78998,6 +79394,7 @@ export type CreateTransitGatewayRouteTableAnnouncementError = | InvalidRouteTableIDNotFound | InvalidTransitGatewayAttachmentIDMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Advertises a new transit gateway route table. @@ -79015,6 +79412,7 @@ export const createTransitGatewayRouteTableAnnouncement: API.OperationMethod< InvalidRouteTableIDNotFound, InvalidTransitGatewayAttachmentIDMalformed, MissingParameter, + UnauthorizedOperation, ], operationName: "CreateTransitGatewayRouteTableAnnouncement", })); @@ -79023,6 +79421,7 @@ export type CreateTransitGatewayVpcAttachmentError = | InvalidSubnetIDNotFound | InvalidTransitGatewayIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Attaches the specified VPC to the specified transit gateway. @@ -79045,12 +79444,14 @@ export const createTransitGatewayVpcAttachment: API.OperationMethod< InvalidSubnetIDNotFound, InvalidTransitGatewayIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "CreateTransitGatewayVpcAttachment", })); export type CreateVerifiedAccessEndpointError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * An Amazon Web Services Verified Access endpoint is where you define your application along with an optional endpoint-level access policy. @@ -79063,7 +79464,7 @@ export const createVerifiedAccessEndpoint: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateVerifiedAccessEndpointRequest, output: CreateVerifiedAccessEndpointResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "CreateVerifiedAccessEndpoint", })); export type CreateVerifiedAccessGroupError = @@ -79071,6 +79472,7 @@ export type CreateVerifiedAccessGroupError = | InvalidParameterValue | InvalidVerifiedAccessInstanceIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * An Amazon Web Services Verified Access group is a collection of Amazon Web Services Verified Access endpoints who's associated applications have @@ -79091,6 +79493,7 @@ export const createVerifiedAccessGroup: API.OperationMethod< InvalidParameterValue, InvalidVerifiedAccessInstanceIdNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "CreateVerifiedAccessGroup", })); @@ -79098,6 +79501,7 @@ export type CreateVerifiedAccessInstanceError = | RequestLimitExceeded | ParseError | VerifiedAccessInstanceLimitExceeded + | UnauthorizedOperation | CommonErrors; /** * An Amazon Web Services Verified Access instance is a regional entity that evaluates application requests and grants @@ -79115,12 +79519,14 @@ export const createVerifiedAccessInstance: API.OperationMethod< RequestLimitExceeded, ParseError, VerifiedAccessInstanceLimitExceeded, + UnauthorizedOperation, ], operationName: "CreateVerifiedAccessInstance", })); export type CreateVerifiedAccessTrustProviderError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * A trust provider is a third-party entity that creates, maintains, and manages identity @@ -79136,13 +79542,14 @@ export const createVerifiedAccessTrustProvider: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateVerifiedAccessTrustProviderRequest, output: CreateVerifiedAccessTrustProviderResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "CreateVerifiedAccessTrustProvider", })); export type CreateVolumeError = | RequestLimitExceeded | InvalidZoneNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates an EBS volume that can be attached to an instance in the same Availability Zone. @@ -79169,7 +79576,12 @@ export const createVolume: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateVolumeRequest, output: Volume, - errors: [RequestLimitExceeded, InvalidZoneNotFound, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidZoneNotFound, + MissingParameter, + UnauthorizedOperation, + ], operationName: "CreateVolume", })); export type CreateVpcError = @@ -79178,6 +79590,7 @@ export type CreateVpcError = | MissingParameter | ParseError | VpcLimitExceeded + | UnauthorizedOperation | CommonErrors; /** * Creates a VPC with the specified CIDR blocks. @@ -79211,6 +79624,7 @@ export const createVpc: API.OperationMethod< MissingParameter, ParseError, VpcLimitExceeded, + UnauthorizedOperation, ], operationName: "CreateVpc", })); @@ -79218,6 +79632,7 @@ export type CreateVpcBlockPublicAccessExclusionError = | RequestLimitExceeded | InvalidVpcIdMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Create a VPC Block Public Access (BPA) exclusion. A VPC BPA exclusion is a mode that can be applied to a single VPC or subnet that exempts it from the account’s BPA mode and will allow bidirectional or egress-only access. You can create BPA exclusions for VPCs and subnets even when BPA is not enabled on the account to ensure that there is no traffic disruption to the exclusions when VPC BPA is turned on. To learn more about VPC BPA, see Block public access to VPCs and subnets in the *Amazon VPC User Guide*. @@ -79230,13 +79645,19 @@ export const createVpcBlockPublicAccessExclusion: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateVpcBlockPublicAccessExclusionRequest, output: CreateVpcBlockPublicAccessExclusionResult, - errors: [RequestLimitExceeded, InvalidVpcIdMalformed, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidVpcIdMalformed, + MissingParameter, + UnauthorizedOperation, + ], operationName: "CreateVpcBlockPublicAccessExclusion", })); export type CreateVpcEncryptionControlError = | RequestLimitExceeded | InvalidVpcIdMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a VPC Encryption Control configuration for a specified VPC. VPC Encryption Control enables you to enforce encryption for all data in transit within and between VPCs to meet compliance requirements for standards like HIPAA, FedRAMP, and PCI DSS. @@ -79251,7 +79672,12 @@ export const createVpcEncryptionControl: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateVpcEncryptionControlRequest, output: CreateVpcEncryptionControlResult, - errors: [RequestLimitExceeded, InvalidVpcIdMalformed, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidVpcIdMalformed, + MissingParameter, + UnauthorizedOperation, + ], operationName: "CreateVpcEncryptionControl", })); export type CreateVpcEndpointError = @@ -79261,6 +79687,7 @@ export type CreateVpcEndpointError = | InvalidVpcIDNotFound | InvalidVpcIdNotFound | ParseError + | UnauthorizedOperation | CommonErrors; /** * Creates a VPC endpoint. A VPC endpoint provides a private connection between the @@ -79283,12 +79710,14 @@ export const createVpcEndpoint: API.OperationMethod< InvalidVpcIDNotFound, InvalidVpcIdNotFound, ParseError, + UnauthorizedOperation, ], operationName: "CreateVpcEndpoint", })); export type CreateVpcEndpointConnectionNotificationError = | RequestLimitExceeded | InvalidParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a connection notification for a specified VPC endpoint or VPC endpoint @@ -79306,12 +79735,13 @@ export const createVpcEndpointConnectionNotification: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateVpcEndpointConnectionNotificationRequest, output: CreateVpcEndpointConnectionNotificationResult, - errors: [RequestLimitExceeded, InvalidParameter], + errors: [RequestLimitExceeded, InvalidParameter, UnauthorizedOperation], operationName: "CreateVpcEndpointConnectionNotification", })); export type CreateVpcEndpointServiceConfigurationError = | RequestLimitExceeded | InvalidParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a VPC endpoint service to which service consumers (Amazon Web Services accounts, @@ -79339,7 +79769,7 @@ export const createVpcEndpointServiceConfiguration: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateVpcEndpointServiceConfigurationRequest, output: CreateVpcEndpointServiceConfigurationResult, - errors: [RequestLimitExceeded, InvalidParameter], + errors: [RequestLimitExceeded, InvalidParameter, UnauthorizedOperation], operationName: "CreateVpcEndpointServiceConfiguration", })); export type CreateVpcPeeringConnectionError = @@ -79348,6 +79778,7 @@ export type CreateVpcPeeringConnectionError = | InvalidVpcIdMalformed | MissingParameter | ParseError + | UnauthorizedOperation | CommonErrors; /** * Requests a VPC peering connection between two VPCs: a requester VPC that you own and @@ -79379,12 +79810,14 @@ export const createVpcPeeringConnection: API.OperationMethod< InvalidVpcIdMalformed, MissingParameter, ParseError, + UnauthorizedOperation, ], operationName: "CreateVpcPeeringConnection", })); export type CreateVpnConcentratorError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a VPN concentrator that aggregates multiple VPN connections to a transit gateway. @@ -79397,7 +79830,7 @@ export const createVpnConcentrator: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateVpnConcentratorRequest, output: CreateVpnConcentratorResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "CreateVpnConcentrator", })); export type CreateVpnConnectionError = @@ -79406,6 +79839,7 @@ export type CreateVpnConnectionError = | InvalidParameterValue | MissingParameter | ParseError + | UnauthorizedOperation | CommonErrors; /** * Creates a VPN connection between an existing virtual private gateway or transit @@ -79443,6 +79877,7 @@ export const createVpnConnection: API.OperationMethod< InvalidParameterValue, MissingParameter, ParseError, + UnauthorizedOperation, ], operationName: "CreateVpnConnection", })); @@ -79450,6 +79885,7 @@ export type CreateVpnConnectionRouteError = | RequestLimitExceeded | InvalidParameter | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a static route associated with a VPN connection between an existing virtual @@ -79467,13 +79903,19 @@ export const createVpnConnectionRoute: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateVpnConnectionRouteRequest, output: CreateVpnConnectionRouteResponse, - errors: [RequestLimitExceeded, InvalidParameter, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidParameter, + MissingParameter, + UnauthorizedOperation, + ], operationName: "CreateVpnConnectionRoute", })); export type CreateVpnGatewayError = | RequestLimitExceeded | MissingParameter | ParseError + | UnauthorizedOperation | CommonErrors; /** * Creates a virtual private gateway. A virtual private gateway is the endpoint on the @@ -79491,13 +79933,19 @@ export const createVpnGateway: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateVpnGatewayRequest, output: CreateVpnGatewayResult, - errors: [RequestLimitExceeded, MissingParameter, ParseError], + errors: [ + RequestLimitExceeded, + MissingParameter, + ParseError, + UnauthorizedOperation, + ], operationName: "CreateVpnGateway", })); export type DeleteCapacityManagerDataExportError = | RequestLimitExceeded | InvalidCapacityManagerDataExportIdMalformed | InvalidCapacityManagerDataExportIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Deletes an existing Capacity Manager data export configuration. This stops future scheduled exports but does not delete previously exported files from S3. @@ -79514,6 +79962,7 @@ export const deleteCapacityManagerDataExport: API.OperationMethod< RequestLimitExceeded, InvalidCapacityManagerDataExportIdMalformed, InvalidCapacityManagerDataExportIdNotFound, + UnauthorizedOperation, ], operationName: "DeleteCapacityManagerDataExport", })); @@ -79522,6 +79971,7 @@ export type DeleteCarrierGatewayError = | InvalidCarrierGatewayIDMalformed | InvalidCarrierGatewayIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes a carrier gateway. @@ -79543,12 +79993,14 @@ export const deleteCarrierGateway: API.OperationMethod< InvalidCarrierGatewayIDMalformed, InvalidCarrierGatewayIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteCarrierGateway", })); export type DeleteClientVpnEndpointError = | RequestLimitExceeded | InvalidClientVpnEndpointIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified Client VPN endpoint. You must disassociate all target networks before you @@ -79562,12 +80014,17 @@ export const deleteClientVpnEndpoint: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteClientVpnEndpointRequest, output: DeleteClientVpnEndpointResult, - errors: [RequestLimitExceeded, InvalidClientVpnEndpointIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidClientVpnEndpointIdNotFound, + UnauthorizedOperation, + ], operationName: "DeleteClientVpnEndpoint", })); export type DeleteClientVpnRouteError = | RequestLimitExceeded | InvalidClientVpnEndpointIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Deletes a route from a Client VPN endpoint. You can only delete routes that you manually added using @@ -79583,7 +80040,11 @@ export const deleteClientVpnRoute: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteClientVpnRouteRequest, output: DeleteClientVpnRouteResult, - errors: [RequestLimitExceeded, InvalidClientVpnEndpointIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidClientVpnEndpointIdNotFound, + UnauthorizedOperation, + ], operationName: "DeleteClientVpnRoute", })); export type DeleteCoipCidrError = @@ -79591,6 +80052,7 @@ export type DeleteCoipCidrError = | InvalidCidrBlockMalformed | InvalidIpv4PoolCoipIdMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes a range of customer-owned IP addresses. @@ -79608,6 +80070,7 @@ export const deleteCoipCidr: API.OperationMethod< InvalidCidrBlockMalformed, InvalidIpv4PoolCoipIdMalformed, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteCoipCidr", })); @@ -79616,6 +80079,7 @@ export type DeleteCoipPoolError = | InvalidIpv4PoolCoipIdMalformed | InvalidParameterValue | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes a pool of customer-owned IP (CoIP) addresses. @@ -79633,6 +80097,7 @@ export const deleteCoipPool: API.OperationMethod< InvalidIpv4PoolCoipIdMalformed, InvalidParameterValue, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteCoipPool", })); @@ -79641,6 +80106,7 @@ export type DeleteCustomerGatewayError = | InvalidCustomerGatewayIDNotFound | InvalidCustomerGatewayIdMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified customer gateway. You must delete the VPN connection before you @@ -79659,6 +80125,7 @@ export const deleteCustomerGateway: API.OperationMethod< InvalidCustomerGatewayIDNotFound, InvalidCustomerGatewayIdMalformed, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteCustomerGateway", })); @@ -79668,6 +80135,7 @@ export type DeleteDhcpOptionsError = | InvalidDhcpOptionIDNotFound | InvalidDhcpOptionsIDNotFound | InvalidDhcpOptionsIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified set of DHCP options. You must disassociate the set of DHCP options before you can delete it. You can disassociate the set of DHCP options by associating either a new set of options or the default set of options with the VPC. @@ -79686,6 +80154,7 @@ export const deleteDhcpOptions: API.OperationMethod< InvalidDhcpOptionIDNotFound, InvalidDhcpOptionsIDNotFound, InvalidDhcpOptionsIdMalformed, + UnauthorizedOperation, ], operationName: "DeleteDhcpOptions", })); @@ -79697,6 +80166,7 @@ export type DeleteEgressOnlyInternetGatewayError = | MalformedGatewayIDNotFound | MissingParameter | RequestLimitExceeded + | UnauthorizedOperation | CommonErrors; /** * Deletes an egress-only internet gateway. @@ -79717,12 +80187,14 @@ export const deleteEgressOnlyInternetGateway: API.OperationMethod< MalformedGatewayIDNotFound, MissingParameter, RequestLimitExceeded, + UnauthorizedOperation, ], operationName: "DeleteEgressOnlyInternetGateway", })); export type DeleteFleetsError = | RequestLimitExceeded | InvalidFleetIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified EC2 Fleet request. @@ -79777,12 +80249,17 @@ export const deleteFleets: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteFleetsRequest, output: DeleteFleetsResult, - errors: [RequestLimitExceeded, InvalidFleetIdMalformed], - operationName: "DeleteFleets", + errors: [ + RequestLimitExceeded, + InvalidFleetIdMalformed, + UnauthorizedOperation, + ], + operationName: "DeleteFleets", })); export type DeleteFlowLogsError = | RequestLimitExceeded | InvalidFlowLogIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Deletes one or more flow logs. @@ -79795,12 +80272,17 @@ export const deleteFlowLogs: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteFlowLogsRequest, output: DeleteFlowLogsResult, - errors: [RequestLimitExceeded, InvalidFlowLogIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidFlowLogIdNotFound, + UnauthorizedOperation, + ], operationName: "DeleteFlowLogs", })); export type DeleteFpgaImageError = | RequestLimitExceeded | InvalidFpgaImageIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified Amazon FPGA Image (AFI). @@ -79813,13 +80295,18 @@ export const deleteFpgaImage: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteFpgaImageRequest, output: DeleteFpgaImageResult, - errors: [RequestLimitExceeded, InvalidFpgaImageIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidFpgaImageIDMalformed, + UnauthorizedOperation, + ], operationName: "DeleteFpgaImage", })); export type DeleteImageUsageReportError = | RequestLimitExceeded | InvalidImageUsageReportIdMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified image usage report. @@ -79839,6 +80326,7 @@ export const deleteImageUsageReport: API.OperationMethod< RequestLimitExceeded, InvalidImageUsageReportIdMalformed, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteImageUsageReport", })); @@ -79848,6 +80336,7 @@ export type DeleteInstanceConnectEndpointError = | InvalidInstanceConnectEndpointIdNotFound | InvalidState | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified EC2 Instance Connect Endpoint. @@ -79866,6 +80355,7 @@ export const deleteInstanceConnectEndpoint: API.OperationMethod< InvalidInstanceConnectEndpointIdNotFound, InvalidState, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteInstanceConnectEndpoint", })); @@ -79873,6 +80363,7 @@ export type DeleteInstanceEventWindowError = | RequestLimitExceeded | InvalidInstanceEventWindowIDNotFound | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified event window. @@ -79892,6 +80383,7 @@ export const deleteInstanceEventWindow: API.OperationMethod< RequestLimitExceeded, InvalidInstanceEventWindowIDNotFound, InvalidParameterValue, + UnauthorizedOperation, ], operationName: "DeleteInstanceEventWindow", })); @@ -79900,6 +80392,7 @@ export type DeleteInternetGatewayError = | DependencyViolation | InvalidInternetGatewayIDNotFound | InvalidInternetGatewayIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified internet gateway. You must detach the internet gateway from the @@ -79918,6 +80411,7 @@ export const deleteInternetGateway: API.OperationMethod< DependencyViolation, InvalidInternetGatewayIDNotFound, InvalidInternetGatewayIdMalformed, + UnauthorizedOperation, ], operationName: "DeleteInternetGateway", })); @@ -79926,6 +80420,7 @@ export type DeleteIpamError = | DependencyViolation | InvalidIpamIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Delete an IPAM. Deleting an IPAM removes all monitored data associated with the IPAM including the historical data for CIDRs. @@ -79945,6 +80440,7 @@ export const deleteIpam: API.OperationMethod< DependencyViolation, InvalidIpamIdNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteIpam", })); @@ -79953,6 +80449,7 @@ export type DeleteIpamExternalResourceVerificationTokenError = | InvalidIpamExternalResourceVerificationTokenIdMalformed | InvalidIpamExternalResourceVerificationTokenIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Delete a verification token. @@ -79972,6 +80469,7 @@ export const deleteIpamExternalResourceVerificationToken: API.OperationMethod< InvalidIpamExternalResourceVerificationTokenIdMalformed, InvalidIpamExternalResourceVerificationTokenIdNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteIpamExternalResourceVerificationToken", })); @@ -79980,6 +80478,7 @@ export type DeleteIpamPolicyError = | InvalidIpamPolicyIdMalformed | InvalidIpamPolicyIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes an IPAM policy. @@ -79999,6 +80498,7 @@ export const deleteIpamPolicy: API.OperationMethod< InvalidIpamPolicyIdMalformed, InvalidIpamPolicyIdNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteIpamPolicy", })); @@ -80007,6 +80507,7 @@ export type DeleteIpamPoolError = | IncorrectState | InvalidIpamPoolIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Delete an IPAM pool. @@ -80030,6 +80531,7 @@ export const deleteIpamPool: API.OperationMethod< IncorrectState, InvalidIpamPoolIdNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteIpamPool", })); @@ -80038,6 +80540,7 @@ export type DeleteIpamPrefixListResolverError = | InvalidIpamPrefixListResolverIdMalformed | InvalidIpamPrefixListResolverIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes an IPAM prefix list resolver. Before deleting a resolver, you must first delete all resolver targets associated with it. @@ -80055,6 +80558,7 @@ export const deleteIpamPrefixListResolver: API.OperationMethod< InvalidIpamPrefixListResolverIdMalformed, InvalidIpamPrefixListResolverIdNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteIpamPrefixListResolver", })); @@ -80062,6 +80566,7 @@ export type DeleteIpamPrefixListResolverTargetError = | RequestLimitExceeded | InvalidIpamPrefixListResolverTargetIdMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes an IPAM prefix list resolver target. This removes the association between the resolver and the managed prefix list, stopping automatic CIDR synchronization. @@ -80080,6 +80585,7 @@ export const deleteIpamPrefixListResolverTarget: API.OperationMethod< RequestLimitExceeded, InvalidIpamPrefixListResolverTargetIdMalformed, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteIpamPrefixListResolverTarget", })); @@ -80087,6 +80593,7 @@ export type DeleteIpamResourceDiscoveryError = | RequestLimitExceeded | InvalidIpamResourceDiscoveryIdMalformed | InvalidIpamResourceDiscoveryIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Deletes an IPAM resource discovery. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account. @@ -80103,6 +80610,7 @@ export const deleteIpamResourceDiscovery: API.OperationMethod< RequestLimitExceeded, InvalidIpamResourceDiscoveryIdMalformed, InvalidIpamResourceDiscoveryIdNotFound, + UnauthorizedOperation, ], operationName: "DeleteIpamResourceDiscovery", })); @@ -80112,6 +80620,7 @@ export type DeleteIpamScopeError = | IncorrectState | InvalidIpamScopeIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Delete the scope for an IPAM. You cannot delete the default scopes. @@ -80132,12 +80641,14 @@ export const deleteIpamScope: API.OperationMethod< IncorrectState, InvalidIpamScopeIdNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteIpamScope", })); export type DeleteKeyPairError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified key pair, by removing the public key from Amazon EC2. @@ -80150,13 +80661,14 @@ export const deleteKeyPair: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteKeyPairRequest, output: DeleteKeyPairResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "DeleteKeyPair", })); export type DeleteLaunchTemplateError = | RequestLimitExceeded | InvalidLaunchTemplateNameNotFoundException | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes a launch template. Deleting a launch template deletes all of its @@ -80174,12 +80686,14 @@ export const deleteLaunchTemplate: API.OperationMethod< RequestLimitExceeded, InvalidLaunchTemplateNameNotFoundException, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteLaunchTemplate", })); export type DeleteLaunchTemplateVersionsError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes one or more versions of a launch template. @@ -80203,12 +80717,13 @@ export const deleteLaunchTemplateVersions: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteLaunchTemplateVersionsRequest, output: DeleteLaunchTemplateVersionsResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "DeleteLaunchTemplateVersions", })); export type DeleteLocalGatewayRouteError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified route from the specified local gateway route table. @@ -80221,13 +80736,14 @@ export const deleteLocalGatewayRoute: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteLocalGatewayRouteRequest, output: DeleteLocalGatewayRouteResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "DeleteLocalGatewayRoute", })); export type DeleteLocalGatewayRouteTableError = | RequestLimitExceeded | InvalidLocalGatewayRouteTableIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes a local gateway route table. @@ -80244,6 +80760,7 @@ export const deleteLocalGatewayRouteTable: API.OperationMethod< RequestLimitExceeded, InvalidLocalGatewayRouteTableIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteLocalGatewayRouteTable", })); @@ -80252,6 +80769,7 @@ export type DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationError = | InvalidLocalGatewayRouteTableVirtualInterfaceGroupAssociationIDMalformed | InvalidLocalGatewayRouteTableVirtualInterfaceGroupAssociationIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes a local gateway route table virtual interface group association. @@ -80269,6 +80787,7 @@ export const deleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation: API.O InvalidLocalGatewayRouteTableVirtualInterfaceGroupAssociationIDMalformed, InvalidLocalGatewayRouteTableVirtualInterfaceGroupAssociationIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation", })); @@ -80277,6 +80796,7 @@ export type DeleteLocalGatewayRouteTableVpcAssociationError = | InvalidLocalGatewayRouteTableVpcAssociationIDMalformed | InvalidLocalGatewayRouteTableVpcAssociationIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified association between a VPC and local gateway route table. @@ -80294,6 +80814,7 @@ export const deleteLocalGatewayRouteTableVpcAssociation: API.OperationMethod< InvalidLocalGatewayRouteTableVpcAssociationIDMalformed, InvalidLocalGatewayRouteTableVpcAssociationIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteLocalGatewayRouteTableVpcAssociation", })); @@ -80302,6 +80823,7 @@ export type DeleteLocalGatewayVirtualInterfaceError = | InvalidLocalGatewayVirtualInterfaceIDMalformed | InvalidLocalGatewayVirtualInterfaceIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified local gateway virtual interface. @@ -80319,6 +80841,7 @@ export const deleteLocalGatewayVirtualInterface: API.OperationMethod< InvalidLocalGatewayVirtualInterfaceIDMalformed, InvalidLocalGatewayVirtualInterfaceIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteLocalGatewayVirtualInterface", })); @@ -80327,6 +80850,7 @@ export type DeleteLocalGatewayVirtualInterfaceGroupError = | InvalidLocalGatewayVirtualInterfaceGroupIDMalformed | InvalidLocalGatewayVirtualInterfaceGroupIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Delete the specified local gateway interface group. @@ -80344,6 +80868,7 @@ export const deleteLocalGatewayVirtualInterfaceGroup: API.OperationMethod< InvalidLocalGatewayVirtualInterfaceGroupIDMalformed, InvalidLocalGatewayVirtualInterfaceGroupIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteLocalGatewayVirtualInterfaceGroup", })); @@ -80352,6 +80877,7 @@ export type DeleteManagedPrefixListError = | InvalidPrefixListIDNotFound | InvalidPrefixListIdMalformed | ParseError + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified managed prefix list. You must first remove all references to the prefix list in your resources. @@ -80369,6 +80895,7 @@ export const deleteManagedPrefixList: API.OperationMethod< InvalidPrefixListIDNotFound, InvalidPrefixListIdMalformed, ParseError, + UnauthorizedOperation, ], operationName: "DeleteManagedPrefixList", })); @@ -80380,6 +80907,7 @@ export type DeleteNatGatewayError = | MissingParameter | NatGatewayMalformed | NatGatewayNotFound + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified NAT gateway. Deleting a public NAT gateway disassociates its Elastic IP address, @@ -80402,6 +80930,7 @@ export const deleteNatGateway: API.OperationMethod< MissingParameter, NatGatewayMalformed, NatGatewayNotFound, + UnauthorizedOperation, ], operationName: "DeleteNatGateway", })); @@ -80413,6 +80942,7 @@ export type DeleteNetworkAclError = | InvalidNetworkAclIdMalformed | InvalidParameterValue | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified network ACL. You can't delete the ACL if it's associated with any subnets. You can't delete the default network ACL. @@ -80433,6 +80963,7 @@ export const deleteNetworkAcl: API.OperationMethod< InvalidNetworkAclIdMalformed, InvalidParameterValue, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteNetworkAcl", })); @@ -80442,6 +80973,7 @@ export type DeleteNetworkAclEntryError = | InvalidNetworkAclIDNotFound | InvalidNetworkAclIdMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified ingress or egress entry (rule) from the specified network ACL. @@ -80460,6 +80992,7 @@ export const deleteNetworkAclEntry: API.OperationMethod< InvalidNetworkAclIDNotFound, InvalidNetworkAclIdMalformed, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteNetworkAclEntry", })); @@ -80467,6 +81000,7 @@ export type DeleteNetworkInsightsAccessScopeError = | RequestLimitExceeded | InvalidNetworkInsightsAccessScopeIdNotFound | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified Network Access Scope. @@ -80483,6 +81017,7 @@ export const deleteNetworkInsightsAccessScope: API.OperationMethod< RequestLimitExceeded, InvalidNetworkInsightsAccessScopeIdNotFound, InvalidParameterValue, + UnauthorizedOperation, ], operationName: "DeleteNetworkInsightsAccessScope", })); @@ -80490,6 +81025,7 @@ export type DeleteNetworkInsightsAccessScopeAnalysisError = | RequestLimitExceeded | InvalidParameterValue | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified Network Access Scope analysis. @@ -80502,13 +81038,19 @@ export const deleteNetworkInsightsAccessScopeAnalysis: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteNetworkInsightsAccessScopeAnalysisRequest, output: DeleteNetworkInsightsAccessScopeAnalysisResult, - errors: [RequestLimitExceeded, InvalidParameterValue, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidParameterValue, + MissingParameter, + UnauthorizedOperation, + ], operationName: "DeleteNetworkInsightsAccessScopeAnalysis", })); export type DeleteNetworkInsightsAnalysisError = | RequestLimitExceeded | InvalidParameterValue | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified network insights analysis. @@ -80521,13 +81063,19 @@ export const deleteNetworkInsightsAnalysis: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteNetworkInsightsAnalysisRequest, output: DeleteNetworkInsightsAnalysisResult, - errors: [RequestLimitExceeded, InvalidParameterValue, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidParameterValue, + MissingParameter, + UnauthorizedOperation, + ], operationName: "DeleteNetworkInsightsAnalysis", })); export type DeleteNetworkInsightsPathError = | RequestLimitExceeded | InvalidParameterValue | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified path. @@ -80540,7 +81088,12 @@ export const deleteNetworkInsightsPath: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteNetworkInsightsPathRequest, output: DeleteNetworkInsightsPathResult, - errors: [RequestLimitExceeded, InvalidParameterValue, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidParameterValue, + MissingParameter, + UnauthorizedOperation, + ], operationName: "DeleteNetworkInsightsPath", })); export type DeleteNetworkInterfaceError = @@ -80550,6 +81103,7 @@ export type DeleteNetworkInterfaceError = | InvalidNetworkInterfaceIdMalformed | InvalidParameterValue | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified network interface. You must detach the network interface before @@ -80570,6 +81124,7 @@ export const deleteNetworkInterface: API.OperationMethod< InvalidNetworkInterfaceIdMalformed, InvalidParameterValue, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteNetworkInterface", })); @@ -80578,6 +81133,7 @@ export type DeleteNetworkInterfacePermissionError = | InvalidPermissionIDMalformed | InvalidPermissionIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes a permission for a network interface. By default, you cannot delete the @@ -80598,12 +81154,14 @@ export const deleteNetworkInterfacePermission: API.OperationMethod< InvalidPermissionIDMalformed, InvalidPermissionIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteNetworkInterfacePermission", })); export type DeletePlacementGroupError = | RequestLimitExceeded | InvalidPlacementGroupUnknown + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified placement group. You must terminate all instances in the @@ -80620,13 +81178,18 @@ export const deletePlacementGroup: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeletePlacementGroupRequest, output: DeletePlacementGroupResponse, - errors: [RequestLimitExceeded, InvalidPlacementGroupUnknown], + errors: [ + RequestLimitExceeded, + InvalidPlacementGroupUnknown, + UnauthorizedOperation, + ], operationName: "DeletePlacementGroup", })); export type DeletePublicIpv4PoolError = | RequestLimitExceeded | InvalidPublicIpv4PoolNotFound | InvalidPublicIpv4PoolIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Delete a public IPv4 pool. A public IPv4 pool is an EC2 IP address pool required for the public IPv4 CIDRs that you own and bring to Amazon Web Services to manage with IPAM. IPv6 addresses you bring to Amazon Web Services, however, use IPAM pools only. @@ -80643,12 +81206,14 @@ export const deletePublicIpv4Pool: API.OperationMethod< RequestLimitExceeded, InvalidPublicIpv4PoolNotFound, InvalidPublicIpv4PoolIDMalformed, + UnauthorizedOperation, ], operationName: "DeletePublicIpv4Pool", })); export type DeleteQueuedReservedInstancesError = | RequestLimitExceeded | InvalidReservedInstancesIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Deletes the queued purchases for the specified Reserved Instances. @@ -80661,7 +81226,11 @@ export const deleteQueuedReservedInstances: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteQueuedReservedInstancesRequest, output: DeleteQueuedReservedInstancesResult, - errors: [RequestLimitExceeded, InvalidReservedInstancesIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidReservedInstancesIDNotFound, + UnauthorizedOperation, + ], operationName: "DeleteQueuedReservedInstances", })); export type DeleteRouteError = @@ -80672,6 +81241,7 @@ export type DeleteRouteError = | InvalidRouteTableIDNotFound | InvalidRouteTableIdMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified route from the specified route table. @@ -80692,6 +81262,7 @@ export const deleteRoute: API.OperationMethod< InvalidRouteTableIDNotFound, InvalidRouteTableIdMalformed, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteRoute", })); @@ -80699,6 +81270,7 @@ export type DeleteRouteServerError = | RequestLimitExceeded | IncorrectState | InvalidRouteServerIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified route server. @@ -80726,13 +81298,19 @@ export const deleteRouteServer: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteRouteServerRequest, output: DeleteRouteServerResult, - errors: [RequestLimitExceeded, IncorrectState, InvalidRouteServerIdNotFound], + errors: [ + RequestLimitExceeded, + IncorrectState, + InvalidRouteServerIdNotFound, + UnauthorizedOperation, + ], operationName: "DeleteRouteServer", })); export type DeleteRouteServerEndpointError = | RequestLimitExceeded | InvalidRouteServerEndpointIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified route server endpoint. @@ -80751,6 +81329,7 @@ export const deleteRouteServerEndpoint: API.OperationMethod< RequestLimitExceeded, InvalidRouteServerEndpointIdNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteRouteServerEndpoint", })); @@ -80759,6 +81338,7 @@ export type DeleteRouteServerPeerError = | InvalidRouteServerPeerIdMalformed | InvalidRouteServerPeerIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified BGP peer from a route server. @@ -80784,6 +81364,7 @@ export const deleteRouteServerPeer: API.OperationMethod< InvalidRouteServerPeerIdMalformed, InvalidRouteServerPeerIdNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteRouteServerPeer", })); @@ -80792,6 +81373,7 @@ export type DeleteRouteTableError = | DependencyViolation | InvalidRouteTableIDNotFound | InvalidRouteTableIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified route table. You must disassociate the route table from any subnets before you can delete it. You can't delete the main route table. @@ -80809,6 +81391,7 @@ export const deleteRouteTable: API.OperationMethod< DependencyViolation, InvalidRouteTableIDNotFound, InvalidRouteTableIdMalformed, + UnauthorizedOperation, ], operationName: "DeleteRouteTable", })); @@ -80850,6 +81433,7 @@ export type DeleteSecurityGroupError = | InvalidGroupIdMalformed | MissingParameter | VPCIdNotSpecified + | UnauthorizedOperation | CommonErrors; /** * Deletes a security group. @@ -80874,6 +81458,7 @@ export const deleteSecurityGroup: API.OperationMethod< InvalidGroupIdMalformed, MissingParameter, VPCIdNotSpecified, + UnauthorizedOperation, ], operationName: "DeleteSecurityGroup", })); @@ -80882,6 +81467,7 @@ export type DeleteSnapshotError = | InvalidParameterValue | InvalidSnapshotNotFound | InvalidSnapshotIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified snapshot. @@ -80911,6 +81497,7 @@ export const deleteSnapshot: API.OperationMethod< InvalidParameterValue, InvalidSnapshotNotFound, InvalidSnapshotIDMalformed, + UnauthorizedOperation, ], operationName: "DeleteSnapshot", })); @@ -80935,6 +81522,7 @@ export type DeleteSubnetError = | InvalidSubnetIDNotFound | InvalidSubnetIdMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified subnet. You must terminate all running instances in the subnet before you can delete the subnet. @@ -80953,6 +81541,7 @@ export const deleteSubnet: API.OperationMethod< InvalidSubnetIDNotFound, InvalidSubnetIdMalformed, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteSubnet", })); @@ -80961,6 +81550,7 @@ export type DeleteSubnetCidrReservationError = | InvalidSubnetCidrReservationIDMalformed | InvalidSubnetCidrReservationIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes a subnet CIDR reservation. @@ -80978,6 +81568,7 @@ export const deleteSubnetCidrReservation: API.OperationMethod< InvalidSubnetCidrReservationIDMalformed, InvalidSubnetCidrReservationIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteSubnetCidrReservation", })); @@ -80985,6 +81576,7 @@ export type DeleteTagsError = | RequestLimitExceeded | InvalidID | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified set of tags from the specified set of resources. @@ -81002,13 +81594,19 @@ export const deleteTags: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteTagsRequest, output: DeleteTagsResponse, - errors: [RequestLimitExceeded, InvalidID, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidID, + MissingParameter, + UnauthorizedOperation, + ], operationName: "DeleteTags", })); export type DeleteTrafficMirrorFilterError = | RequestLimitExceeded | InvalidParameterValue | InvalidTrafficMirrorFilterIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified Traffic Mirror filter. @@ -81027,6 +81625,7 @@ export const deleteTrafficMirrorFilter: API.OperationMethod< RequestLimitExceeded, InvalidParameterValue, InvalidTrafficMirrorFilterIdNotFound, + UnauthorizedOperation, ], operationName: "DeleteTrafficMirrorFilter", })); @@ -81035,6 +81634,7 @@ export type DeleteTrafficMirrorFilterRuleError = | InvalidParameterValue | InvalidTrafficMirrorFilterRuleIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified Traffic Mirror rule. @@ -81052,6 +81652,7 @@ export const deleteTrafficMirrorFilterRule: API.OperationMethod< InvalidParameterValue, InvalidTrafficMirrorFilterRuleIdNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteTrafficMirrorFilterRule", })); @@ -81060,6 +81661,7 @@ export type DeleteTrafficMirrorSessionError = | InvalidParameterValue | InvalidTrafficMirrorSessionIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified Traffic Mirror session. @@ -81077,6 +81679,7 @@ export const deleteTrafficMirrorSession: API.OperationMethod< InvalidParameterValue, InvalidTrafficMirrorSessionIdNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteTrafficMirrorSession", })); @@ -81085,6 +81688,7 @@ export type DeleteTrafficMirrorTargetError = | InvalidParameterValue | InvalidTrafficMirrorTargetIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified Traffic Mirror target. @@ -81104,6 +81708,7 @@ export const deleteTrafficMirrorTarget: API.OperationMethod< InvalidParameterValue, InvalidTrafficMirrorTargetIdNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteTrafficMirrorTarget", })); @@ -81114,6 +81719,7 @@ export type DeleteTransitGatewayError = | InvalidTransitGatewayIDNotFound | MissingParameter | ParseError + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified transit gateway. @@ -81133,6 +81739,7 @@ export const deleteTransitGateway: API.OperationMethod< InvalidTransitGatewayIDNotFound, MissingParameter, ParseError, + UnauthorizedOperation, ], operationName: "DeleteTransitGateway", })); @@ -81154,6 +81761,7 @@ export const deleteTransitGatewayClientVpnAttachment: API.OperationMethod< export type DeleteTransitGatewayConnectError = | RequestLimitExceeded | InvalidTransitGatewayAttachmentIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified Connect attachment. You must first delete any Connect peers for @@ -81167,13 +81775,18 @@ export const deleteTransitGatewayConnect: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteTransitGatewayConnectRequest, output: DeleteTransitGatewayConnectResult, - errors: [RequestLimitExceeded, InvalidTransitGatewayAttachmentIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidTransitGatewayAttachmentIDNotFound, + UnauthorizedOperation, + ], operationName: "DeleteTransitGatewayConnect", })); export type DeleteTransitGatewayConnectPeerError = | RequestLimitExceeded | InvalidTransitGatewayConnectPeerIDMalformed | InvalidTransitGatewayConnectPeerIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified Connect peer. @@ -81190,6 +81803,7 @@ export const deleteTransitGatewayConnectPeer: API.OperationMethod< RequestLimitExceeded, InvalidTransitGatewayConnectPeerIDMalformed, InvalidTransitGatewayConnectPeerIDNotFound, + UnauthorizedOperation, ], operationName: "DeleteTransitGatewayConnectPeer", })); @@ -81198,6 +81812,7 @@ export type DeleteTransitGatewayMeteringPolicyError = | InvalidTransitGatewayMeteringPolicyIdNotFound | InvalidTransitGatewayMeteringPolicyIdMalformedException | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes a transit gateway metering policy. @@ -81215,6 +81830,7 @@ export const deleteTransitGatewayMeteringPolicy: API.OperationMethod< InvalidTransitGatewayMeteringPolicyIdNotFound, InvalidTransitGatewayMeteringPolicyIdMalformedException, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteTransitGatewayMeteringPolicy", })); @@ -81223,6 +81839,7 @@ export type DeleteTransitGatewayMeteringPolicyEntryError = | InvalidTransitGatewayMeteringPolicyIdNotFound | InvalidTransitGatewayMeteringPolicyIdMalformedException | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes an entry from a transit gateway metering policy. @@ -81240,6 +81857,7 @@ export const deleteTransitGatewayMeteringPolicyEntry: API.OperationMethod< InvalidTransitGatewayMeteringPolicyIdNotFound, InvalidTransitGatewayMeteringPolicyIdMalformedException, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteTransitGatewayMeteringPolicyEntry", })); @@ -81247,6 +81865,7 @@ export type DeleteTransitGatewayMulticastDomainError = | RequestLimitExceeded | InvalidTransitGatewayMulticastDomainIdMalformed | InvalidTransitGatewayMulticastDomainIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified transit gateway multicast domain. @@ -81263,12 +81882,14 @@ export const deleteTransitGatewayMulticastDomain: API.OperationMethod< RequestLimitExceeded, InvalidTransitGatewayMulticastDomainIdMalformed, InvalidTransitGatewayMulticastDomainIdNotFound, + UnauthorizedOperation, ], operationName: "DeleteTransitGatewayMulticastDomain", })); export type DeleteTransitGatewayPeeringAttachmentError = | RequestLimitExceeded | InvalidTransitGatewayAttachmentIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Deletes a transit gateway peering attachment. @@ -81281,7 +81902,11 @@ export const deleteTransitGatewayPeeringAttachment: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteTransitGatewayPeeringAttachmentRequest, output: DeleteTransitGatewayPeeringAttachmentResult, - errors: [RequestLimitExceeded, InvalidTransitGatewayAttachmentIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidTransitGatewayAttachmentIDNotFound, + UnauthorizedOperation, + ], operationName: "DeleteTransitGatewayPeeringAttachment", })); export type DeleteTransitGatewayPolicyTableError = @@ -81289,6 +81914,7 @@ export type DeleteTransitGatewayPolicyTableError = | InvalidTransitGatewayPolicyTableIdMalformed | InvalidTransitGatewayPolicyTableIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified transit gateway policy table. @@ -81306,6 +81932,7 @@ export const deleteTransitGatewayPolicyTable: API.OperationMethod< InvalidTransitGatewayPolicyTableIdMalformed, InvalidTransitGatewayPolicyTableIdNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteTransitGatewayPolicyTable", })); @@ -81313,6 +81940,7 @@ export type DeleteTransitGatewayPrefixListReferenceError = | RequestLimitExceeded | InvalidRouteTableIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes a reference (route) to a prefix list in a specified transit gateway route table. @@ -81325,13 +81953,19 @@ export const deleteTransitGatewayPrefixListReference: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteTransitGatewayPrefixListReferenceRequest, output: DeleteTransitGatewayPrefixListReferenceResult, - errors: [RequestLimitExceeded, InvalidRouteTableIDNotFound, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidRouteTableIDNotFound, + MissingParameter, + UnauthorizedOperation, + ], operationName: "DeleteTransitGatewayPrefixListReference", })); export type DeleteTransitGatewayRouteError = | RequestLimitExceeded | InvalidParameterValue | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified route from the specified transit gateway route table. @@ -81344,7 +81978,12 @@ export const deleteTransitGatewayRoute: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteTransitGatewayRouteRequest, output: DeleteTransitGatewayRouteResult, - errors: [RequestLimitExceeded, InvalidParameterValue, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidParameterValue, + MissingParameter, + UnauthorizedOperation, + ], operationName: "DeleteTransitGatewayRoute", })); export type DeleteTransitGatewayRouteTableError = @@ -81354,6 +81993,7 @@ export type DeleteTransitGatewayRouteTableError = | InvalidRouteTableIdMalformed | MissingParameter | ParseError + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified transit gateway route table. If there are any route tables associated with @@ -81374,6 +82014,7 @@ export const deleteTransitGatewayRouteTable: API.OperationMethod< InvalidRouteTableIdMalformed, MissingParameter, ParseError, + UnauthorizedOperation, ], operationName: "DeleteTransitGatewayRouteTable", })); @@ -81381,6 +82022,7 @@ export type DeleteTransitGatewayRouteTableAnnouncementError = | RequestLimitExceeded | InvalidTransitGatewayRouteTableAnnouncementIdMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Advertises to the transit gateway that a transit gateway route table is deleted. @@ -81397,6 +82039,7 @@ export const deleteTransitGatewayRouteTableAnnouncement: API.OperationMethod< RequestLimitExceeded, InvalidTransitGatewayRouteTableAnnouncementIdMalformed, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteTransitGatewayRouteTableAnnouncement", })); @@ -81404,6 +82047,7 @@ export type DeleteTransitGatewayVpcAttachmentError = | RequestLimitExceeded | InvalidTransitGatewayAttachmentIDMalformed | InvalidTransitGatewayAttachmentIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified VPC attachment. @@ -81420,6 +82064,7 @@ export const deleteTransitGatewayVpcAttachment: API.OperationMethod< RequestLimitExceeded, InvalidTransitGatewayAttachmentIDMalformed, InvalidTransitGatewayAttachmentIDNotFound, + UnauthorizedOperation, ], operationName: "DeleteTransitGatewayVpcAttachment", })); @@ -81428,6 +82073,7 @@ export type DeleteVerifiedAccessEndpointError = | InvalidParameterValue | InvalidVerifiedAccessEndpointIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Delete an Amazon Web Services Verified Access endpoint. @@ -81445,6 +82091,7 @@ export const deleteVerifiedAccessEndpoint: API.OperationMethod< InvalidParameterValue, InvalidVerifiedAccessEndpointIdNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteVerifiedAccessEndpoint", })); @@ -81452,6 +82099,7 @@ export type DeleteVerifiedAccessGroupError = | RequestLimitExceeded | InvalidVerifiedAccessGroupIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Delete an Amazon Web Services Verified Access group. @@ -81468,12 +82116,14 @@ export const deleteVerifiedAccessGroup: API.OperationMethod< RequestLimitExceeded, InvalidVerifiedAccessGroupIdNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteVerifiedAccessGroup", })); export type DeleteVerifiedAccessInstanceError = | RequestLimitExceeded | InvalidVerifiedAccessInstanceIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Delete an Amazon Web Services Verified Access instance. @@ -81486,12 +82136,17 @@ export const deleteVerifiedAccessInstance: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteVerifiedAccessInstanceRequest, output: DeleteVerifiedAccessInstanceResult, - errors: [RequestLimitExceeded, InvalidVerifiedAccessInstanceIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidVerifiedAccessInstanceIdNotFound, + UnauthorizedOperation, + ], operationName: "DeleteVerifiedAccessInstance", })); export type DeleteVerifiedAccessTrustProviderError = | RequestLimitExceeded | InvalidVerifiedAccessTrustProviderIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Delete an Amazon Web Services Verified Access trust provider. @@ -81504,13 +82159,19 @@ export const deleteVerifiedAccessTrustProvider: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteVerifiedAccessTrustProviderRequest, output: DeleteVerifiedAccessTrustProviderResult, - errors: [RequestLimitExceeded, InvalidVerifiedAccessTrustProviderIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidVerifiedAccessTrustProviderIdNotFound, + UnauthorizedOperation, + ], operationName: "DeleteVerifiedAccessTrustProvider", })); export type DeleteVolumeError = | RequestLimitExceeded | InvalidParameterValue | InvalidVolumeNotFound + | VolumeInUse + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified EBS volume. The volume must be in the `available` state @@ -81529,7 +82190,13 @@ export const deleteVolume: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteVolumeRequest, output: DeleteVolumeResponse, - errors: [RequestLimitExceeded, InvalidParameterValue, InvalidVolumeNotFound], + errors: [ + RequestLimitExceeded, + InvalidParameterValue, + InvalidVolumeNotFound, + VolumeInUse, + UnauthorizedOperation, + ], operationName: "DeleteVolume", })); export type DeleteVpcError = @@ -81539,6 +82206,7 @@ export type DeleteVpcError = | InvalidVpcIdMalformed | MissingParameter | RequestError + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified VPC. You must detach or delete all gateways and resources that are associated @@ -81565,6 +82233,7 @@ export const deleteVpc: API.OperationMethod< InvalidVpcIdMalformed, MissingParameter, RequestError, + UnauthorizedOperation, ], operationName: "DeleteVpc", })); @@ -81572,6 +82241,7 @@ export type DeleteVpcBlockPublicAccessExclusionError = | RequestLimitExceeded | MissingParameter | VpcBlockPublicAccessExclusionIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Delete a VPC Block Public Access (BPA) exclusion. A VPC BPA exclusion is a mode that can be applied to a single VPC or subnet that exempts it from the account’s BPA mode and will allow bidirectional or egress-only access. You can create BPA exclusions for VPCs and subnets even when BPA is not enabled on the account to ensure that there is no traffic disruption to the exclusions when VPC BPA is turned on. To learn more about VPC BPA, see Block public access to VPCs and subnets in the *Amazon VPC User Guide*. @@ -81588,6 +82258,7 @@ export const deleteVpcBlockPublicAccessExclusion: API.OperationMethod< RequestLimitExceeded, MissingParameter, VpcBlockPublicAccessExclusionIdMalformed, + UnauthorizedOperation, ], operationName: "DeleteVpcBlockPublicAccessExclusion", })); @@ -81596,6 +82267,7 @@ export type DeleteVpcEncryptionControlError = | InvalidVpcEncryptionControlIdMalformed | InvalidVpcEncryptionControlIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes a VPC Encryption Control configuration. This removes the encryption policy enforcement from the specified VPC. @@ -81615,6 +82287,7 @@ export const deleteVpcEncryptionControl: API.OperationMethod< InvalidVpcEncryptionControlIdMalformed, InvalidVpcEncryptionControlIdNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteVpcEncryptionControl", })); @@ -81637,6 +82310,7 @@ export type DeleteVpcEndpointsError = | RequestLimitExceeded | InvalidVpcEndpointIdNotFound | ParseError + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified VPC endpoints. @@ -81656,7 +82330,12 @@ export const deleteVpcEndpoints: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteVpcEndpointsRequest, output: DeleteVpcEndpointsResult, - errors: [RequestLimitExceeded, InvalidVpcEndpointIdNotFound, ParseError], + errors: [ + RequestLimitExceeded, + InvalidVpcEndpointIdNotFound, + ParseError, + UnauthorizedOperation, + ], operationName: "DeleteVpcEndpoints", })); export type DeleteVpcEndpointServiceConfigurationsError = CommonErrors; @@ -81682,6 +82361,7 @@ export type DeleteVpcPeeringConnectionError = | InvalidVpcPeeringConnectionIDNotFound | InvalidVpcPeeringConnectionIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes a VPC peering connection. Either the owner of the requester VPC or the owner @@ -81703,12 +82383,14 @@ export const deleteVpcPeeringConnection: API.OperationMethod< InvalidVpcPeeringConnectionIDNotFound, InvalidVpcPeeringConnectionIdNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteVpcPeeringConnection", })); export type DeleteVpnConcentratorError = | RequestLimitExceeded | InvalidVpnConcentratorIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified VPN concentrator. @@ -81721,13 +82403,18 @@ export const deleteVpnConcentrator: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteVpnConcentratorRequest, output: DeleteVpnConcentratorResult, - errors: [RequestLimitExceeded, InvalidVpnConcentratorIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidVpnConcentratorIDMalformed, + UnauthorizedOperation, + ], operationName: "DeleteVpnConcentrator", })); export type DeleteVpnConnectionError = | RequestLimitExceeded | InvalidVpnConnectionIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified VPN connection. @@ -81756,6 +82443,7 @@ export const deleteVpnConnection: API.OperationMethod< RequestLimitExceeded, InvalidVpnConnectionIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DeleteVpnConnection", })); @@ -81763,6 +82451,7 @@ export type DeleteVpnConnectionRouteError = | RequestLimitExceeded | InvalidRouteMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified static route associated with a VPN connection between an @@ -81778,13 +82467,19 @@ export const deleteVpnConnectionRoute: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteVpnConnectionRouteRequest, output: DeleteVpnConnectionRouteResponse, - errors: [RequestLimitExceeded, InvalidRouteMalformed, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidRouteMalformed, + MissingParameter, + UnauthorizedOperation, + ], operationName: "DeleteVpnConnectionRoute", })); export type DeleteVpnGatewayError = | RequestLimitExceeded | IncorrectState | InvalidVpnGatewayIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Deletes the specified virtual private gateway. You must first detach the virtual @@ -81800,10 +82495,18 @@ export const deleteVpnGateway: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteVpnGatewayRequest, output: DeleteVpnGatewayResponse, - errors: [RequestLimitExceeded, IncorrectState, InvalidVpnGatewayIDNotFound], + errors: [ + RequestLimitExceeded, + IncorrectState, + InvalidVpnGatewayIDNotFound, + UnauthorizedOperation, + ], operationName: "DeleteVpnGateway", })); -export type DeprovisionByoipCidrError = RequestLimitExceeded | CommonErrors; +export type DeprovisionByoipCidrError = + | RequestLimitExceeded + | UnauthorizedOperation + | CommonErrors; /** * Releases the specified address range that you provisioned for use with your Amazon Web Services resources * through bring your own IP addresses (BYOIP) and deletes the corresponding address pool. @@ -81819,13 +82522,14 @@ export const deprovisionByoipCidr: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeprovisionByoipCidrRequest, output: DeprovisionByoipCidrResult, - errors: [RequestLimitExceeded], + errors: [RequestLimitExceeded, UnauthorizedOperation], operationName: "DeprovisionByoipCidr", })); export type DeprovisionIpamByoasnError = | RequestLimitExceeded | InvalidIpamIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deprovisions your Autonomous System Number (ASN) from your Amazon Web Services account. This action can only be called after any BYOIP CIDR associations are removed from your Amazon Web Services account with DisassociateIpamByoasn. @@ -81839,13 +82543,19 @@ export const deprovisionIpamByoasn: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeprovisionIpamByoasnRequest, output: DeprovisionIpamByoasnResult, - errors: [RequestLimitExceeded, InvalidIpamIdNotFound, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidIpamIdNotFound, + MissingParameter, + UnauthorizedOperation, + ], operationName: "DeprovisionIpamByoasn", })); export type DeprovisionIpamPoolCidrError = | RequestLimitExceeded | InvalidIpamPoolIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deprovision a CIDR provisioned from an IPAM pool. If you deprovision a CIDR from a pool that has a source pool, the CIDR is recycled back into the source pool. For more information, see Deprovision pool CIDRs in the *Amazon VPC IPAM User Guide*. @@ -81858,7 +82568,12 @@ export const deprovisionIpamPoolCidr: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeprovisionIpamPoolCidrRequest, output: DeprovisionIpamPoolCidrResult, - errors: [RequestLimitExceeded, InvalidIpamPoolIdNotFound, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidIpamPoolIdNotFound, + MissingParameter, + UnauthorizedOperation, + ], operationName: "DeprovisionIpamPoolCidr", })); export type DeprovisionPublicIpv4PoolCidrError = @@ -81866,6 +82581,7 @@ export type DeprovisionPublicIpv4PoolCidrError = | InvalidPublicIpv4PoolNotFound | InvalidPublicIpv4PoolIDMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deprovision a CIDR from a public IPv4 pool. @@ -81883,6 +82599,7 @@ export const deprovisionPublicIpv4PoolCidr: API.OperationMethod< InvalidPublicIpv4PoolNotFound, InvalidPublicIpv4PoolIDMalformed, MissingParameter, + UnauthorizedOperation, ], operationName: "DeprovisionPublicIpv4PoolCidr", })); @@ -81891,6 +82608,7 @@ export type DeregisterImageError = | InvalidAMIIDMalformed | InvalidAMIIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deregisters the specified AMI. A deregistered AMI can't be used to launch new @@ -81934,12 +82652,14 @@ export const deregisterImage: API.OperationMethod< InvalidAMIIDMalformed, InvalidAMIIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DeregisterImage", })); export type DeregisterInstanceEventNotificationAttributesError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deregisters tag keys to prevent tags that have the specified tag keys from being @@ -81953,12 +82673,13 @@ export const deregisterInstanceEventNotificationAttributes: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeregisterInstanceEventNotificationAttributesRequest, output: DeregisterInstanceEventNotificationAttributesResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "DeregisterInstanceEventNotificationAttributes", })); export type DeregisterTransitGatewayMulticastGroupMembersError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deregisters the specified members (network interfaces) from the transit gateway multicast group. @@ -81971,12 +82692,13 @@ export const deregisterTransitGatewayMulticastGroupMembers: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeregisterTransitGatewayMulticastGroupMembersRequest, output: DeregisterTransitGatewayMulticastGroupMembersResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "DeregisterTransitGatewayMulticastGroupMembers", })); export type DeregisterTransitGatewayMulticastGroupSourcesError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Deregisters the specified sources (network interfaces) from the transit gateway multicast group. @@ -81989,7 +82711,7 @@ export const deregisterTransitGatewayMulticastGroupSources: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeregisterTransitGatewayMulticastGroupSourcesRequest, output: DeregisterTransitGatewayMulticastGroupSourcesResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "DeregisterTransitGatewayMulticastGroupSources", })); export type DescribeAccountAttributesError = CommonErrors; @@ -82030,6 +82752,7 @@ export const describeAccountAttributes: API.OperationMethod< export type DescribeAddressesError = | RequestLimitExceeded | InvalidAllocationIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes the specified Elastic IP addresses or all of your Elastic IP addresses. @@ -82042,12 +82765,17 @@ export const describeAddresses: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeAddressesRequest, output: DescribeAddressesResult, - errors: [RequestLimitExceeded, InvalidAllocationIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidAllocationIDNotFound, + UnauthorizedOperation, + ], operationName: "DescribeAddresses", })); export type DescribeAddressesAttributeError = | RequestLimitExceeded | InvalidAllocationIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes the attributes of the specified Elastic IP addresses. For requirements, see Using reverse DNS for email applications. @@ -82075,7 +82803,11 @@ export const describeAddressesAttribute: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeAddressesAttributeRequest, output: DescribeAddressesAttributeResult, - errors: [RequestLimitExceeded, InvalidAllocationIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidAllocationIDNotFound, + UnauthorizedOperation, + ], operationName: "DescribeAddressesAttribute", pagination: { inputToken: "NextToken", @@ -82167,6 +82899,7 @@ export type DescribeAvailabilityZonesError = | RequestLimitExceeded | InvalidParameterValue | ParseError + | UnauthorizedOperation | CommonErrors; /** * Describes the Availability Zones, Local Zones, and Wavelength Zones that are available to @@ -82188,7 +82921,12 @@ export const describeAvailabilityZones: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeAvailabilityZonesRequest, output: DescribeAvailabilityZonesResult, - errors: [RequestLimitExceeded, InvalidParameterValue, ParseError], + errors: [ + RequestLimitExceeded, + InvalidParameterValue, + ParseError, + UnauthorizedOperation, + ], operationName: "DescribeAvailabilityZones", })); export type DescribeAwsNetworkPerformanceMetricSubscriptionsError = @@ -82232,6 +82970,7 @@ export type DescribeBundleTasksError = | RequestLimitExceeded | InvalidBundleIDNotFound | InvalidInstanceIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Describes the specified bundle tasks or all of your bundle tasks. @@ -82256,12 +82995,14 @@ export const describeBundleTasks: API.OperationMethod< RequestLimitExceeded, InvalidBundleIDNotFound, InvalidInstanceIDMalformed, + UnauthorizedOperation, ], operationName: "DescribeBundleTasks", })); export type DescribeByoipCidrsError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Describes the IP address ranges that were provisioned for use with Amazon Web Services resources @@ -82290,7 +83031,7 @@ export const describeByoipCidrs: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeByoipCidrsRequest, output: DescribeByoipCidrsResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "DescribeByoipCidrs", pagination: { inputToken: "NextToken", @@ -82302,6 +83043,7 @@ export const describeByoipCidrs: API.OperationMethod< export type DescribeCapacityBlockExtensionHistoryError = | RequestLimitExceeded | InvalidCapacityReservationIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Describes the events for the specified Capacity Block extension during the specified @@ -82330,7 +83072,11 @@ export const describeCapacityBlockExtensionHistory: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeCapacityBlockExtensionHistoryRequest, output: DescribeCapacityBlockExtensionHistoryResult, - errors: [RequestLimitExceeded, InvalidCapacityReservationIdMalformed], + errors: [ + RequestLimitExceeded, + InvalidCapacityReservationIdMalformed, + UnauthorizedOperation, + ], operationName: "DescribeCapacityBlockExtensionHistory", pagination: { inputToken: "NextToken", @@ -82342,6 +83088,7 @@ export const describeCapacityBlockExtensionHistory: API.OperationMethod< export type DescribeCapacityBlockExtensionOfferingsError = | RequestLimitExceeded | InvalidCapacityReservationIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes Capacity Block extension offerings available for purchase in the Amazon Web Services @@ -82370,7 +83117,11 @@ export const describeCapacityBlockExtensionOfferings: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeCapacityBlockExtensionOfferingsRequest, output: DescribeCapacityBlockExtensionOfferingsResult, - errors: [RequestLimitExceeded, InvalidCapacityReservationIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidCapacityReservationIdNotFound, + UnauthorizedOperation, + ], operationName: "DescribeCapacityBlockExtensionOfferings", pagination: { inputToken: "NextToken", @@ -82382,6 +83133,7 @@ export const describeCapacityBlockExtensionOfferings: API.OperationMethod< export type DescribeCapacityBlockOfferingsError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Describes Capacity Block offerings available for purchase in the Amazon Web Services Region that you're currently using. With Capacity Blocks, you can @@ -82413,7 +83165,7 @@ export const describeCapacityBlockOfferings: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeCapacityBlockOfferingsRequest, output: DescribeCapacityBlockOfferingsResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "DescribeCapacityBlockOfferings", pagination: { inputToken: "NextToken", @@ -82425,6 +83177,7 @@ export const describeCapacityBlockOfferings: API.OperationMethod< export type DescribeCapacityBlocksError = | RequestLimitExceeded | InvalidCapacityBlockIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Describes details about Capacity Blocks in the Amazon Web Services Region that you're currently using. @@ -82452,7 +83205,11 @@ export const describeCapacityBlocks: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeCapacityBlocksRequest, output: DescribeCapacityBlocksResult, - errors: [RequestLimitExceeded, InvalidCapacityBlockIdMalformed], + errors: [ + RequestLimitExceeded, + InvalidCapacityBlockIdMalformed, + UnauthorizedOperation, + ], operationName: "DescribeCapacityBlocks", pagination: { inputToken: "NextToken", @@ -82464,6 +83221,7 @@ export const describeCapacityBlocks: API.OperationMethod< export type DescribeCapacityBlockStatusError = | RequestLimitExceeded | InvalidCapacityBlockIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Describes the availability of capacity for the specified Capacity blocks, or all of your Capacity Blocks. @@ -82491,7 +83249,11 @@ export const describeCapacityBlockStatus: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeCapacityBlockStatusRequest, output: DescribeCapacityBlockStatusResult, - errors: [RequestLimitExceeded, InvalidCapacityBlockIdMalformed], + errors: [ + RequestLimitExceeded, + InvalidCapacityBlockIdMalformed, + UnauthorizedOperation, + ], operationName: "DescribeCapacityBlockStatus", pagination: { inputToken: "NextToken", @@ -82503,6 +83265,7 @@ export const describeCapacityBlockStatus: API.OperationMethod< export type DescribeCapacityManagerDataExportsError = | RequestLimitExceeded | InvalidCapacityManagerDataExportIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes one or more Capacity Manager data export configurations. Returns information about export settings, delivery status, and recent export activity. @@ -82530,7 +83293,11 @@ export const describeCapacityManagerDataExports: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeCapacityManagerDataExportsRequest, output: DescribeCapacityManagerDataExportsResult, - errors: [RequestLimitExceeded, InvalidCapacityManagerDataExportIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidCapacityManagerDataExportIdNotFound, + UnauthorizedOperation, + ], operationName: "DescribeCapacityManagerDataExports", pagination: { inputToken: "NextToken", @@ -82542,6 +83309,7 @@ export const describeCapacityManagerDataExports: API.OperationMethod< export type DescribeCapacityReservationBillingRequestsError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Describes a request to assign the billing of the unused capacity of a Capacity @@ -82571,7 +83339,7 @@ export const describeCapacityReservationBillingRequests: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeCapacityReservationBillingRequestsRequest, output: DescribeCapacityReservationBillingRequestsResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "DescribeCapacityReservationBillingRequests", pagination: { inputToken: "NextToken", @@ -82600,6 +83368,7 @@ export const describeCapacityReservationCancellationQuotes: API.OperationMethod< export type DescribeCapacityReservationFleetsError = | RequestLimitExceeded | InvalidCapacityReservationFleetIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Describes one or more Capacity Reservation Fleets. @@ -82627,7 +83396,11 @@ export const describeCapacityReservationFleets: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeCapacityReservationFleetsRequest, output: DescribeCapacityReservationFleetsResult, - errors: [RequestLimitExceeded, InvalidCapacityReservationFleetIdMalformed], + errors: [ + RequestLimitExceeded, + InvalidCapacityReservationFleetIdMalformed, + UnauthorizedOperation, + ], operationName: "DescribeCapacityReservationFleets", pagination: { inputToken: "NextToken", @@ -82639,6 +83412,7 @@ export const describeCapacityReservationFleets: API.OperationMethod< export type DescribeCapacityReservationsError = | RequestLimitExceeded | InvalidCapacityReservationIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Describes one or more of your Capacity Reservations. The results describe only the @@ -82668,7 +83442,11 @@ export const describeCapacityReservations: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeCapacityReservationsRequest, output: DescribeCapacityReservationsResult, - errors: [RequestLimitExceeded, InvalidCapacityReservationIdMalformed], + errors: [ + RequestLimitExceeded, + InvalidCapacityReservationIdMalformed, + UnauthorizedOperation, + ], operationName: "DescribeCapacityReservations", pagination: { inputToken: "NextToken", @@ -82718,6 +83496,7 @@ export type DescribeCarrierGatewaysError = | InvalidCarrierGatewayIDMalformed | InvalidCarrierGatewayIDNotFound | ParseError + | UnauthorizedOperation | CommonErrors; /** * Describes one or more of your carrier gateways. @@ -82750,6 +83529,7 @@ export const describeCarrierGateways: API.OperationMethod< InvalidCarrierGatewayIDMalformed, InvalidCarrierGatewayIDNotFound, ParseError, + UnauthorizedOperation, ], operationName: "DescribeCarrierGateways", pagination: { @@ -82762,6 +83542,7 @@ export const describeCarrierGateways: API.OperationMethod< export type DescribeClassicLinkInstancesError = | RequestLimitExceeded | InvalidInstanceIDMalformed + | UnauthorizedOperation | CommonErrors; /** * This action is deprecated. @@ -82793,7 +83574,11 @@ export const describeClassicLinkInstances: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeClassicLinkInstancesRequest, output: DescribeClassicLinkInstancesResult, - errors: [RequestLimitExceeded, InvalidInstanceIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidInstanceIDMalformed, + UnauthorizedOperation, + ], operationName: "DescribeClassicLinkInstances", pagination: { inputToken: "NextToken", @@ -82805,6 +83590,7 @@ export const describeClassicLinkInstances: API.OperationMethod< export type DescribeClientVpnAuthorizationRulesError = | RequestLimitExceeded | InvalidClientVpnEndpointIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes the authorization rules for a specified Client VPN endpoint. @@ -82832,7 +83618,11 @@ export const describeClientVpnAuthorizationRules: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeClientVpnAuthorizationRulesRequest, output: DescribeClientVpnAuthorizationRulesResult, - errors: [RequestLimitExceeded, InvalidClientVpnEndpointIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidClientVpnEndpointIdNotFound, + UnauthorizedOperation, + ], operationName: "DescribeClientVpnAuthorizationRules", pagination: { inputToken: "NextToken", @@ -82845,6 +83635,7 @@ export type DescribeClientVpnConnectionsError = | RequestLimitExceeded | InvalidClientVpnEndpointIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Describes active client connections and connections that have been terminated within the last 60 @@ -82877,6 +83668,7 @@ export const describeClientVpnConnections: API.OperationMethod< RequestLimitExceeded, InvalidClientVpnEndpointIdNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DescribeClientVpnConnections", pagination: { @@ -82889,6 +83681,7 @@ export const describeClientVpnConnections: API.OperationMethod< export type DescribeClientVpnEndpointsError = | RequestLimitExceeded | InvalidClientVpnEndpointIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes one or more Client VPN endpoints in the account. @@ -82916,7 +83709,11 @@ export const describeClientVpnEndpoints: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeClientVpnEndpointsRequest, output: DescribeClientVpnEndpointsResult, - errors: [RequestLimitExceeded, InvalidClientVpnEndpointIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidClientVpnEndpointIdNotFound, + UnauthorizedOperation, + ], operationName: "DescribeClientVpnEndpoints", pagination: { inputToken: "NextToken", @@ -82929,6 +83726,7 @@ export type DescribeClientVpnRoutesError = | RequestLimitExceeded | InvalidClientVpnEndpointIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Describes the routes for the specified Client VPN endpoint. @@ -82960,6 +83758,7 @@ export const describeClientVpnRoutes: API.OperationMethod< RequestLimitExceeded, InvalidClientVpnEndpointIdNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DescribeClientVpnRoutes", pagination: { @@ -82973,6 +83772,7 @@ export type DescribeClientVpnTargetNetworksError = | RequestLimitExceeded | InvalidClientVpnEndpointIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Describes the target networks associated with the specified Client VPN endpoint. @@ -83004,6 +83804,7 @@ export const describeClientVpnTargetNetworks: API.OperationMethod< RequestLimitExceeded, InvalidClientVpnEndpointIdNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DescribeClientVpnTargetNetworks", pagination: { @@ -83016,6 +83817,7 @@ export const describeClientVpnTargetNetworks: API.OperationMethod< export type DescribeCoipPoolsError = | RequestLimitExceeded | InvalidPoolIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Describes the specified customer-owned address pools or all of your customer-owned address pools. @@ -83043,7 +83845,7 @@ export const describeCoipPools: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeCoipPoolsRequest, output: DescribeCoipPoolsResult, - errors: [RequestLimitExceeded, InvalidPoolIDMalformed], + errors: [RequestLimitExceeded, InvalidPoolIDMalformed, UnauthorizedOperation], operationName: "DescribeCoipPools", pagination: { inputToken: "NextToken", @@ -83074,6 +83876,7 @@ export type DescribeCustomerGatewaysError = | RequestLimitExceeded | InvalidCustomerGatewayIDNotFound | ParseError + | UnauthorizedOperation | CommonErrors; /** * Describes one or more of your VPN customer gateways. @@ -83089,12 +83892,18 @@ export const describeCustomerGateways: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeCustomerGatewaysRequest, output: DescribeCustomerGatewaysResult, - errors: [RequestLimitExceeded, InvalidCustomerGatewayIDNotFound, ParseError], + errors: [ + RequestLimitExceeded, + InvalidCustomerGatewayIDNotFound, + ParseError, + UnauthorizedOperation, + ], operationName: "DescribeCustomerGateways", })); export type DescribeDeclarativePoliciesReportsError = | RequestLimitExceeded | InvalidParameter + | UnauthorizedOperation | CommonErrors; /** * Describes the metadata of an account status report, including the status of the @@ -83118,14 +83927,16 @@ export const describeDeclarativePoliciesReports: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeDeclarativePoliciesReportsRequest, output: DescribeDeclarativePoliciesReportsResult, - errors: [RequestLimitExceeded, InvalidParameter], + errors: [RequestLimitExceeded, InvalidParameter, UnauthorizedOperation], operationName: "DescribeDeclarativePoliciesReports", })); export type DescribeDhcpOptionsError = | RequestLimitExceeded | InvalidDhcpOptionIDNotFound + | InvalidDhcpOptionsIDNotFound | InvalidParameterValue | ParseError + | UnauthorizedOperation | CommonErrors; /** * Describes your DHCP option sets. The default is to describe all your DHCP option sets. @@ -83161,8 +83972,10 @@ export const describeDhcpOptions: API.OperationMethod< errors: [ RequestLimitExceeded, InvalidDhcpOptionIDNotFound, + InvalidDhcpOptionsIDNotFound, InvalidParameterValue, ParseError, + UnauthorizedOperation, ], operationName: "DescribeDhcpOptions", pagination: { @@ -83177,6 +83990,7 @@ export type DescribeEgressOnlyInternetGatewaysError = | InvalidEgressOnlyInternetGatewayIdMalformed | InvalidEgressOnlyInternetGatewayIdNotFound | ParseError + | UnauthorizedOperation | CommonErrors; /** * Describes your egress-only internet gateways. The default is to describe all your egress-only internet gateways. @@ -83211,6 +84025,7 @@ export const describeEgressOnlyInternetGateways: API.OperationMethod< InvalidEgressOnlyInternetGatewayIdMalformed, InvalidEgressOnlyInternetGatewayIdNotFound, ParseError, + UnauthorizedOperation, ], operationName: "DescribeEgressOnlyInternetGateways", pagination: { @@ -83223,6 +84038,7 @@ export const describeEgressOnlyInternetGateways: API.OperationMethod< export type DescribeElasticGpusError = | RequestLimitExceeded | UnsupportedOperation + | UnauthorizedOperation | CommonErrors; /** * Amazon Elastic Graphics reached end of life on January 8, 2024. @@ -83237,12 +84053,13 @@ export const describeElasticGpus: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeElasticGpusRequest, output: DescribeElasticGpusResult, - errors: [RequestLimitExceeded, UnsupportedOperation], + errors: [RequestLimitExceeded, UnsupportedOperation, UnauthorizedOperation], operationName: "DescribeElasticGpus", })); export type DescribeExportImageTasksError = | RequestLimitExceeded | InvalidExportTaskIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Describes the specified export image tasks or all of your export image tasks. @@ -83270,7 +84087,11 @@ export const describeExportImageTasks: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeExportImageTasksRequest, output: DescribeExportImageTasksResult, - errors: [RequestLimitExceeded, InvalidExportTaskIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidExportTaskIDMalformed, + UnauthorizedOperation, + ], operationName: "DescribeExportImageTasks", pagination: { inputToken: "NextToken", @@ -83282,6 +84103,7 @@ export const describeExportImageTasks: API.OperationMethod< export type DescribeExportTasksError = | RequestLimitExceeded | InvalidExportTaskIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Describes the specified export instance tasks or all of your export instance tasks. @@ -83294,12 +84116,17 @@ export const describeExportTasks: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeExportTasksRequest, output: DescribeExportTasksResult, - errors: [RequestLimitExceeded, InvalidExportTaskIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidExportTaskIDMalformed, + UnauthorizedOperation, + ], operationName: "DescribeExportTasks", })); export type DescribeFastLaunchImagesError = | RequestLimitExceeded | InvalidRequest + | UnauthorizedOperation | CommonErrors; /** * Describe details for Windows AMIs that are configured for Windows fast launch. @@ -83327,7 +84154,7 @@ export const describeFastLaunchImages: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeFastLaunchImagesRequest, output: DescribeFastLaunchImagesResult, - errors: [RequestLimitExceeded, InvalidRequest], + errors: [RequestLimitExceeded, InvalidRequest, UnauthorizedOperation], operationName: "DescribeFastLaunchImages", pagination: { inputToken: "NextToken", @@ -83375,6 +84202,7 @@ export const describeFastSnapshotRestores: API.OperationMethod< export type DescribeFleetHistoryError = | RequestLimitExceeded | InvalidFleetIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Describes the events for the specified EC2 Fleet during the specified time. @@ -83394,12 +84222,17 @@ export const describeFleetHistory: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeFleetHistoryRequest, output: DescribeFleetHistoryResult, - errors: [RequestLimitExceeded, InvalidFleetIdMalformed], + errors: [ + RequestLimitExceeded, + InvalidFleetIdMalformed, + UnauthorizedOperation, + ], operationName: "DescribeFleetHistory", })); export type DescribeFleetInstancesError = | RequestLimitExceeded | InvalidFleetIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Describes the running instances for the specified EC2 Fleet. @@ -83419,12 +84252,17 @@ export const describeFleetInstances: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeFleetInstancesRequest, output: DescribeFleetInstancesResult, - errors: [RequestLimitExceeded, InvalidFleetIdMalformed], + errors: [ + RequestLimitExceeded, + InvalidFleetIdMalformed, + UnauthorizedOperation, + ], operationName: "DescribeFleetInstances", })); export type DescribeFleetsError = | RequestLimitExceeded | InvalidFleetIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Describes the specified EC2 Fleet or all of your EC2 Fleets. @@ -83458,7 +84296,11 @@ export const describeFleets: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeFleetsRequest, output: DescribeFleetsResult, - errors: [RequestLimitExceeded, InvalidFleetIdMalformed], + errors: [ + RequestLimitExceeded, + InvalidFleetIdMalformed, + UnauthorizedOperation, + ], operationName: "DescribeFleets", pagination: { inputToken: "NextToken", @@ -83469,7 +84311,9 @@ export const describeFleets: API.OperationMethod< })); export type DescribeFlowLogsError = | RequestLimitExceeded + | InvalidFlowLogIdNotFound | ParseError + | UnauthorizedOperation | CommonErrors; /** * Describes one or more flow logs. @@ -83500,7 +84344,12 @@ export const describeFlowLogs: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeFlowLogsRequest, output: DescribeFlowLogsResult, - errors: [RequestLimitExceeded, ParseError], + errors: [ + RequestLimitExceeded, + InvalidFlowLogIdNotFound, + ParseError, + UnauthorizedOperation, + ], operationName: "DescribeFlowLogs", pagination: { inputToken: "NextToken", @@ -83513,6 +84362,7 @@ export type DescribeFpgaImageAttributeError = | RequestLimitExceeded | InvalidFpgaImageIDMalformed | InvalidFpgaImageIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes the specified attribute of the specified Amazon FPGA Image (AFI). @@ -83529,12 +84379,14 @@ export const describeFpgaImageAttribute: API.OperationMethod< RequestLimitExceeded, InvalidFpgaImageIDMalformed, InvalidFpgaImageIDNotFound, + UnauthorizedOperation, ], operationName: "DescribeFpgaImageAttribute", })); export type DescribeFpgaImagesError = | RequestLimitExceeded | InvalidFpgaImageIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Describes the Amazon FPGA Images (AFIs) available to you. These include public AFIs, @@ -83564,7 +84416,11 @@ export const describeFpgaImages: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeFpgaImagesRequest, output: DescribeFpgaImagesResult, - errors: [RequestLimitExceeded, InvalidFpgaImageIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidFpgaImageIDMalformed, + UnauthorizedOperation, + ], operationName: "DescribeFpgaImages", pagination: { inputToken: "NextToken", @@ -83576,6 +84432,7 @@ export const describeFpgaImages: API.OperationMethod< export type DescribeHostReservationOfferingsError = | RequestLimitExceeded | InvalidHostReservationOfferingIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Describes the Dedicated Host reservations that are available to purchase. @@ -83610,7 +84467,11 @@ export const describeHostReservationOfferings: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeHostReservationOfferingsRequest, output: DescribeHostReservationOfferingsResult, - errors: [RequestLimitExceeded, InvalidHostReservationOfferingIdMalformed], + errors: [ + RequestLimitExceeded, + InvalidHostReservationOfferingIdMalformed, + UnauthorizedOperation, + ], operationName: "DescribeHostReservationOfferings", pagination: { inputToken: "NextToken", @@ -83659,6 +84520,7 @@ export const describeHostReservations: API.OperationMethod< export type DescribeHostsError = | RequestLimitExceeded | InvalidHostIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Describes the specified Dedicated Hosts or all your Dedicated Hosts. @@ -83690,7 +84552,7 @@ export const describeHosts: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeHostsRequest, output: DescribeHostsResult, - errors: [RequestLimitExceeded, InvalidHostIDMalformed], + errors: [RequestLimitExceeded, InvalidHostIDMalformed, UnauthorizedOperation], operationName: "DescribeHosts", pagination: { inputToken: "NextToken", @@ -83702,6 +84564,7 @@ export const describeHosts: API.OperationMethod< export type DescribeIamInstanceProfileAssociationsError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Describes your IAM instance profile associations. @@ -83729,7 +84592,7 @@ export const describeIamInstanceProfileAssociations: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeIamInstanceProfileAssociationsRequest, output: DescribeIamInstanceProfileAssociationsResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "DescribeIamInstanceProfileAssociations", pagination: { inputToken: "NextToken", @@ -83741,6 +84604,7 @@ export const describeIamInstanceProfileAssociations: API.OperationMethod< export type DescribeIdentityIdFormatError = | RequestLimitExceeded | InvalidTargetArnUnknown + | UnauthorizedOperation | CommonErrors; /** * Describes the ID format settings for resources for the specified IAM user, IAM role, or root @@ -83773,7 +84637,11 @@ export const describeIdentityIdFormat: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeIdentityIdFormatRequest, output: DescribeIdentityIdFormatResult, - errors: [RequestLimitExceeded, InvalidTargetArnUnknown], + errors: [ + RequestLimitExceeded, + InvalidTargetArnUnknown, + UnauthorizedOperation, + ], operationName: "DescribeIdentityIdFormat", })); export type DescribeIdFormatError = CommonErrors; @@ -83816,6 +84684,7 @@ export type DescribeImageAttributeError = | RequestLimitExceeded | InvalidAMIIDMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Describes the specified attribute of the specified AMI. You can specify only one attribute @@ -83832,12 +84701,18 @@ export const describeImageAttribute: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeImageAttributeRequest, output: ImageAttribute, - errors: [RequestLimitExceeded, InvalidAMIIDMalformed, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidAMIIDMalformed, + MissingParameter, + UnauthorizedOperation, + ], operationName: "DescribeImageAttribute", })); export type DescribeImageReferencesError = | RequestLimitExceeded | InvalidAMIIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Describes your Amazon Web Services resources that are referencing the specified images. @@ -83868,7 +84743,7 @@ export const describeImageReferences: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeImageReferencesRequest, output: DescribeImageReferencesResult, - errors: [RequestLimitExceeded, InvalidAMIIDMalformed], + errors: [RequestLimitExceeded, InvalidAMIIDMalformed, UnauthorizedOperation], operationName: "DescribeImageReferences", pagination: { inputToken: "NextToken", @@ -83881,6 +84756,7 @@ export type DescribeImagesError = | RequestLimitExceeded | InvalidAMIIDMalformed | InvalidAMIIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes the specified images (AMIs, AKIs, and ARIs) available to you or all of the @@ -83936,7 +84812,12 @@ export const describeImages: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeImagesRequest, output: DescribeImagesResult, - errors: [RequestLimitExceeded, InvalidAMIIDMalformed, InvalidAMIIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidAMIIDMalformed, + InvalidAMIIDNotFound, + UnauthorizedOperation, + ], operationName: "DescribeImages", pagination: { inputToken: "NextToken", @@ -83948,6 +84829,7 @@ export const describeImages: API.OperationMethod< export type DescribeImageUsageReportEntriesError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Describes the entries in image usage reports, showing how your images are used across @@ -83979,7 +84861,7 @@ export const describeImageUsageReportEntries: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeImageUsageReportEntriesRequest, output: DescribeImageUsageReportEntriesResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "DescribeImageUsageReportEntries", pagination: { inputToken: "NextToken", @@ -83991,6 +84873,7 @@ export const describeImageUsageReportEntries: API.OperationMethod< export type DescribeImageUsageReportsError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Describes the configuration and status of image usage reports, filtered by report IDs or @@ -84022,7 +84905,7 @@ export const describeImageUsageReports: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeImageUsageReportsRequest, output: DescribeImageUsageReportsResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "DescribeImageUsageReports", pagination: { inputToken: "NextToken", @@ -84034,6 +84917,7 @@ export const describeImageUsageReports: API.OperationMethod< export type DescribeImportImageTasksError = | RequestLimitExceeded | InvalidParameter + | UnauthorizedOperation | CommonErrors; /** * Displays details about an import virtual machine or import snapshot tasks that are already created. @@ -84061,7 +84945,7 @@ export const describeImportImageTasks: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeImportImageTasksRequest, output: DescribeImportImageTasksResult, - errors: [RequestLimitExceeded, InvalidParameter], + errors: [RequestLimitExceeded, InvalidParameter, UnauthorizedOperation], operationName: "DescribeImportImageTasks", pagination: { inputToken: "NextToken", @@ -84073,6 +84957,7 @@ export const describeImportImageTasks: API.OperationMethod< export type DescribeImportSnapshotTasksError = | RequestLimitExceeded | InvalidParameter + | UnauthorizedOperation | CommonErrors; /** * Describes your import snapshot tasks. @@ -84100,7 +84985,7 @@ export const describeImportSnapshotTasks: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeImportSnapshotTasksRequest, output: DescribeImportSnapshotTasksResult, - errors: [RequestLimitExceeded, InvalidParameter], + errors: [RequestLimitExceeded, InvalidParameter, UnauthorizedOperation], operationName: "DescribeImportSnapshotTasks", pagination: { inputToken: "NextToken", @@ -84113,6 +84998,7 @@ export type DescribeInstanceAttributeError = | RequestLimitExceeded | InvalidInstanceIDNotFound | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Describes the specified attribute of the specified instance. You can specify only one @@ -84131,12 +85017,14 @@ export const describeInstanceAttribute: API.OperationMethod< RequestLimitExceeded, InvalidInstanceIDNotFound, InvalidParameterValue, + UnauthorizedOperation, ], operationName: "DescribeInstanceAttribute", })); export type DescribeInstanceConnectEndpointsError = | RequestLimitExceeded | InvalidInstanceConnectEndpointIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes the specified EC2 Instance Connect Endpoints or all EC2 Instance Connect Endpoints. @@ -84164,7 +85052,11 @@ export const describeInstanceConnectEndpoints: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeInstanceConnectEndpointsRequest, output: DescribeInstanceConnectEndpointsResult, - errors: [RequestLimitExceeded, InvalidInstanceConnectEndpointIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidInstanceConnectEndpointIdNotFound, + UnauthorizedOperation, + ], operationName: "DescribeInstanceConnectEndpoints", pagination: { inputToken: "NextToken", @@ -84176,6 +85068,7 @@ export const describeInstanceConnectEndpoints: API.OperationMethod< export type DescribeInstanceCreditSpecificationsError = | RequestLimitExceeded | InvalidInstanceIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Describes the credit option for CPU usage of the specified burstable performance @@ -84227,7 +85120,11 @@ export const describeInstanceCreditSpecifications: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeInstanceCreditSpecificationsRequest, output: DescribeInstanceCreditSpecificationsResult, - errors: [RequestLimitExceeded, InvalidInstanceIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidInstanceIDMalformed, + UnauthorizedOperation, + ], operationName: "DescribeInstanceCreditSpecifications", pagination: { inputToken: "NextToken", @@ -84255,6 +85152,7 @@ export const describeInstanceEventNotificationAttributes: API.OperationMethod< export type DescribeInstanceEventWindowsError = | RequestLimitExceeded | InvalidInstanceEventWindowIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes the specified event windows or all event windows. @@ -84292,7 +85190,11 @@ export const describeInstanceEventWindows: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeInstanceEventWindowsRequest, output: DescribeInstanceEventWindowsResult, - errors: [RequestLimitExceeded, InvalidInstanceEventWindowIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidInstanceEventWindowIDNotFound, + UnauthorizedOperation, + ], operationName: "DescribeInstanceEventWindows", pagination: { inputToken: "NextToken", @@ -84304,6 +85206,7 @@ export const describeInstanceEventWindows: API.OperationMethod< export type DescribeInstanceImageMetadataError = | RequestLimitExceeded | InvalidInstanceIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Describes the AMI that was used to launch an instance, even if the AMI is deprecated, @@ -84353,7 +85256,11 @@ export const describeInstanceImageMetadata: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeInstanceImageMetadataRequest, output: DescribeInstanceImageMetadataResult, - errors: [RequestLimitExceeded, InvalidInstanceIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidInstanceIDMalformed, + UnauthorizedOperation, + ], operationName: "DescribeInstanceImageMetadata", pagination: { inputToken: "NextToken", @@ -84367,6 +85274,7 @@ export type DescribeInstancesError = | InvalidInstanceIDMalformed | InvalidInstanceIDNotFound | ParseError + | UnauthorizedOperation | CommonErrors; /** * Describes the specified instances or all instances. @@ -84435,6 +85343,7 @@ export const describeInstances: API.OperationMethod< InvalidInstanceIDMalformed, InvalidInstanceIDNotFound, ParseError, + UnauthorizedOperation, ], operationName: "DescribeInstances", pagination: { @@ -84447,6 +85356,7 @@ export const describeInstances: API.OperationMethod< export type DescribeInstanceSqlHaHistoryStatesError = | RequestLimitExceeded | InvalidInstanceIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes the historical SQL Server High Availability states for Amazon EC2 @@ -84460,12 +85370,17 @@ export const describeInstanceSqlHaHistoryStates: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeInstanceSqlHaHistoryStatesRequest, output: DescribeInstanceSqlHaHistoryStatesResult, - errors: [RequestLimitExceeded, InvalidInstanceIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidInstanceIDNotFound, + UnauthorizedOperation, + ], operationName: "DescribeInstanceSqlHaHistoryStates", })); export type DescribeInstanceSqlHaStatesError = | RequestLimitExceeded | InvalidInstanceIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes the SQL Server High Availability states for Amazon EC2 instances that are @@ -84479,13 +85394,18 @@ export const describeInstanceSqlHaStates: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeInstanceSqlHaStatesRequest, output: DescribeInstanceSqlHaStatesResult, - errors: [RequestLimitExceeded, InvalidInstanceIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidInstanceIDNotFound, + UnauthorizedOperation, + ], operationName: "DescribeInstanceSqlHaStates", })); export type DescribeInstanceStatusError = | RequestLimitExceeded | InvalidInstanceIDMalformed | InvalidInstanceIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes the status of the specified instances or all of your instances. By default, @@ -84549,6 +85469,7 @@ export const describeInstanceStatus: API.OperationMethod< RequestLimitExceeded, InvalidInstanceIDMalformed, InvalidInstanceIDNotFound, + UnauthorizedOperation, ], operationName: "DescribeInstanceStatus", pagination: { @@ -84695,6 +85616,7 @@ export type DescribeInternetGatewaysError = | RequestLimitExceeded | InvalidInternetGatewayIDNotFound | ParseError + | UnauthorizedOperation | CommonErrors; /** * Describes your internet gateways. The default is to describe all your internet gateways. @@ -84724,7 +85646,12 @@ export const describeInternetGateways: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeInternetGatewaysRequest, output: DescribeInternetGatewaysResult, - errors: [RequestLimitExceeded, InvalidInternetGatewayIDNotFound, ParseError], + errors: [ + RequestLimitExceeded, + InvalidInternetGatewayIDNotFound, + ParseError, + UnauthorizedOperation, + ], operationName: "DescribeInternetGateways", pagination: { inputToken: "NextToken", @@ -84751,6 +85678,7 @@ export const describeIpamByoasn: API.OperationMethod< export type DescribeIpamExternalResourceVerificationTokensError = | RequestLimitExceeded | InvalidIpamExternalResourceVerificationTokenIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Describe verification tokens. @@ -84768,12 +85696,14 @@ export const describeIpamExternalResourceVerificationTokens: API.OperationMethod errors: [ RequestLimitExceeded, InvalidIpamExternalResourceVerificationTokenIdNotFound, + UnauthorizedOperation, ], operationName: "DescribeIpamExternalResourceVerificationTokens", })); export type DescribeIpamPoliciesError = | RequestLimitExceeded | InvalidIpamPolicyIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes one or more IPAM policies. @@ -84788,7 +85718,11 @@ export const describeIpamPolicies: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeIpamPoliciesRequest, output: DescribeIpamPoliciesResult, - errors: [RequestLimitExceeded, InvalidIpamPolicyIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidIpamPolicyIdNotFound, + UnauthorizedOperation, + ], operationName: "DescribeIpamPolicies", })); export type DescribeIpamPoolAllocationsError = CommonErrors; @@ -84834,6 +85768,7 @@ export const describeIpamPoolAllocations: API.OperationMethod< export type DescribeIpamPoolsError = | RequestLimitExceeded | InvalidIpamPoolIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Get information about your IPAM pools. @@ -84861,7 +85796,11 @@ export const describeIpamPools: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeIpamPoolsRequest, output: DescribeIpamPoolsResult, - errors: [RequestLimitExceeded, InvalidIpamPoolIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidIpamPoolIdNotFound, + UnauthorizedOperation, + ], operationName: "DescribeIpamPools", pagination: { inputToken: "NextToken", @@ -84873,6 +85812,7 @@ export const describeIpamPools: API.OperationMethod< export type DescribeIpamPrefixListResolversError = | RequestLimitExceeded | InvalidIpamPrefixListResolverIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes one or more IPAM prefix list resolvers. Use this operation to view the configuration, status, and properties of your resolvers. @@ -84900,7 +85840,11 @@ export const describeIpamPrefixListResolvers: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeIpamPrefixListResolversRequest, output: DescribeIpamPrefixListResolversResult, - errors: [RequestLimitExceeded, InvalidIpamPrefixListResolverIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidIpamPrefixListResolverIdNotFound, + UnauthorizedOperation, + ], operationName: "DescribeIpamPrefixListResolvers", pagination: { inputToken: "NextToken", @@ -84912,6 +85856,7 @@ export const describeIpamPrefixListResolvers: API.OperationMethod< export type DescribeIpamPrefixListResolverTargetsError = | RequestLimitExceeded | InvalidIpamPrefixListResolverTargetIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Describes one or more IPAM prefix list resolver Targets. Use this operation to view the configuration and status of resolver targets. @@ -84942,6 +85887,7 @@ export const describeIpamPrefixListResolverTargets: API.OperationMethod< errors: [ RequestLimitExceeded, InvalidIpamPrefixListResolverTargetIdMalformed, + UnauthorizedOperation, ], operationName: "DescribeIpamPrefixListResolverTargets", pagination: { @@ -84954,6 +85900,7 @@ export const describeIpamPrefixListResolverTargets: API.OperationMethod< export type DescribeIpamResourceDiscoveriesError = | RequestLimitExceeded | InvalidIpamResourceDiscoveryIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes IPAM resource discoveries. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account. @@ -84981,7 +85928,11 @@ export const describeIpamResourceDiscoveries: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeIpamResourceDiscoveriesRequest, output: DescribeIpamResourceDiscoveriesResult, - errors: [RequestLimitExceeded, InvalidIpamResourceDiscoveryIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidIpamResourceDiscoveryIdNotFound, + UnauthorizedOperation, + ], operationName: "DescribeIpamResourceDiscoveries", pagination: { inputToken: "NextToken", @@ -84993,6 +85944,7 @@ export const describeIpamResourceDiscoveries: API.OperationMethod< export type DescribeIpamResourceDiscoveryAssociationsError = | RequestLimitExceeded | InvalidIpamResourceDiscoveryAssociationIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes resource discovery association with an Amazon VPC IPAM. An associated resource discovery is a resource discovery that has been associated with an IPAM.. @@ -85023,6 +85975,7 @@ export const describeIpamResourceDiscoveryAssociations: API.OperationMethod< errors: [ RequestLimitExceeded, InvalidIpamResourceDiscoveryAssociationIdNotFound, + UnauthorizedOperation, ], operationName: "DescribeIpamResourceDiscoveryAssociations", pagination: { @@ -85035,6 +85988,7 @@ export const describeIpamResourceDiscoveryAssociations: API.OperationMethod< export type DescribeIpamsError = | RequestLimitExceeded | InvalidIpamIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Get information about your IPAM pools. @@ -85064,7 +86018,7 @@ export const describeIpams: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeIpamsRequest, output: DescribeIpamsResult, - errors: [RequestLimitExceeded, InvalidIpamIdNotFound], + errors: [RequestLimitExceeded, InvalidIpamIdNotFound, UnauthorizedOperation], operationName: "DescribeIpams", pagination: { inputToken: "NextToken", @@ -85076,6 +86030,7 @@ export const describeIpams: API.OperationMethod< export type DescribeIpamScopesError = | RequestLimitExceeded | InvalidIpamScopeIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Get information about your IPAM scopes. @@ -85103,7 +86058,11 @@ export const describeIpamScopes: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeIpamScopesRequest, output: DescribeIpamScopesResult, - errors: [RequestLimitExceeded, InvalidIpamScopeIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidIpamScopeIdNotFound, + UnauthorizedOperation, + ], operationName: "DescribeIpamScopes", pagination: { inputToken: "NextToken", @@ -85115,6 +86074,7 @@ export const describeIpamScopes: API.OperationMethod< export type DescribeIpv6PoolsError = | RequestLimitExceeded | InvalidIpv6PoolIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes your IPv6 address pools. @@ -85142,7 +86102,11 @@ export const describeIpv6Pools: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeIpv6PoolsRequest, output: DescribeIpv6PoolsResult, - errors: [RequestLimitExceeded, InvalidIpv6PoolIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidIpv6PoolIDNotFound, + UnauthorizedOperation, + ], operationName: "DescribeIpv6Pools", pagination: { inputToken: "NextToken", @@ -85155,6 +86119,7 @@ export type DescribeKeyPairsError = | RequestLimitExceeded | InvalidKeyPairNotFound | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Describes the specified key pairs or all of your key pairs. @@ -85170,7 +86135,12 @@ export const describeKeyPairs: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeKeyPairsRequest, output: DescribeKeyPairsResult, - errors: [RequestLimitExceeded, InvalidKeyPairNotFound, InvalidParameterValue], + errors: [ + RequestLimitExceeded, + InvalidKeyPairNotFound, + InvalidParameterValue, + UnauthorizedOperation, + ], operationName: "DescribeKeyPairs", })); export type DescribeLaunchTemplatesError = @@ -85179,6 +86149,7 @@ export type DescribeLaunchTemplatesError = | ParseError | InvalidLaunchTemplateIdNotFound | InvalidLaunchTemplateNameNotFoundException + | UnauthorizedOperation | CommonErrors; /** * Describes one or more launch templates. @@ -85212,6 +86183,7 @@ export const describeLaunchTemplates: API.OperationMethod< ParseError, InvalidLaunchTemplateIdNotFound, InvalidLaunchTemplateNameNotFoundException, + UnauthorizedOperation, ], operationName: "DescribeLaunchTemplates", pagination: { @@ -85225,6 +86197,7 @@ export type DescribeLaunchTemplateVersionsError = | RequestLimitExceeded | InvalidLaunchTemplateIdMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Describes one or more versions of a specified launch template. You can describe all @@ -85259,6 +86232,7 @@ export const describeLaunchTemplateVersions: API.OperationMethod< RequestLimitExceeded, InvalidLaunchTemplateIdMalformed, MissingParameter, + UnauthorizedOperation, ], operationName: "DescribeLaunchTemplateVersions", pagination: { @@ -85491,6 +86465,7 @@ export const describeLocalGatewayVirtualInterfaces: API.OperationMethod< export type DescribeLockedSnapshotsError = | RequestLimitExceeded | InvalidRequest + | UnauthorizedOperation | CommonErrors; /** * Describes the lock status for a snapshot. @@ -85503,12 +86478,13 @@ export const describeLockedSnapshots: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeLockedSnapshotsRequest, output: DescribeLockedSnapshotsResult, - errors: [RequestLimitExceeded, InvalidRequest], + errors: [RequestLimitExceeded, InvalidRequest, UnauthorizedOperation], operationName: "DescribeLockedSnapshots", })); export type DescribeMacHostsError = | RequestLimitExceeded | InvalidHostIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Describes the specified EC2 Mac Dedicated Host or all of your EC2 Mac Dedicated Hosts. @@ -85536,7 +86512,7 @@ export const describeMacHosts: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeMacHostsRequest, output: DescribeMacHostsResult, - errors: [RequestLimitExceeded, InvalidHostIDMalformed], + errors: [RequestLimitExceeded, InvalidHostIDMalformed, UnauthorizedOperation], operationName: "DescribeMacHosts", pagination: { inputToken: "NextToken", @@ -85548,6 +86524,7 @@ export const describeMacHosts: API.OperationMethod< export type DescribeMacModificationTasksError = | RequestLimitExceeded | InvalidParameter + | UnauthorizedOperation | CommonErrors; /** * Describes a System Integrity Protection (SIP) modification task or volume ownership delegation @@ -85577,7 +86554,7 @@ export const describeMacModificationTasks: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeMacModificationTasksRequest, output: DescribeMacModificationTasksResult, - errors: [RequestLimitExceeded, InvalidParameter], + errors: [RequestLimitExceeded, InvalidParameter, UnauthorizedOperation], operationName: "DescribeMacModificationTasks", pagination: { inputToken: "NextToken", @@ -85590,6 +86567,7 @@ export type DescribeManagedPrefixListsError = | RequestLimitExceeded | InvalidPrefixListIDNotFound | ParseError + | UnauthorizedOperation | CommonErrors; /** * Describes your managed prefix lists and any Amazon Web Services-managed prefix lists. @@ -85617,7 +86595,12 @@ export const describeManagedPrefixLists: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeManagedPrefixListsRequest, output: DescribeManagedPrefixListsResult, - errors: [RequestLimitExceeded, InvalidPrefixListIDNotFound, ParseError], + errors: [ + RequestLimitExceeded, + InvalidPrefixListIDNotFound, + ParseError, + UnauthorizedOperation, + ], operationName: "DescribeManagedPrefixLists", pagination: { inputToken: "NextToken", @@ -85629,6 +86612,7 @@ export const describeManagedPrefixLists: API.OperationMethod< export type DescribeMovingAddressesError = | RequestLimitExceeded | UnsupportedOperation + | UnauthorizedOperation | CommonErrors; /** * This action is deprecated. @@ -85659,7 +86643,7 @@ export const describeMovingAddresses: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeMovingAddressesRequest, output: DescribeMovingAddressesResult, - errors: [RequestLimitExceeded, UnsupportedOperation], + errors: [RequestLimitExceeded, UnsupportedOperation, UnauthorizedOperation], operationName: "DescribeMovingAddresses", pagination: { inputToken: "NextToken", @@ -85676,6 +86660,7 @@ export type DescribeNatGatewaysError = | NatGatewayMalformed | NatGatewayNotFound | ParseError + | UnauthorizedOperation | CommonErrors; /** * Describes your NAT gateways. The default is to describe all your NAT gateways. @@ -85713,6 +86698,7 @@ export const describeNatGateways: API.OperationMethod< NatGatewayMalformed, NatGatewayNotFound, ParseError, + UnauthorizedOperation, ], operationName: "DescribeNatGateways", pagination: { @@ -85727,6 +86713,7 @@ export type DescribeNetworkAclsError = | InvalidNetworkAclIDNotFound | InvalidRouteTableIDNotFound | ParseError + | UnauthorizedOperation | CommonErrors; /** * Describes your network ACLs. The default is to describe all your network ACLs. @@ -85764,6 +86751,7 @@ export const describeNetworkAcls: API.OperationMethod< InvalidNetworkAclIDNotFound, InvalidRouteTableIDNotFound, ParseError, + UnauthorizedOperation, ], operationName: "DescribeNetworkAcls", pagination: { @@ -85776,6 +86764,7 @@ export const describeNetworkAcls: API.OperationMethod< export type DescribeNetworkInsightsAccessScopeAnalysesError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Describes the specified Network Access Scope analyses. @@ -85803,7 +86792,7 @@ export const describeNetworkInsightsAccessScopeAnalyses: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeNetworkInsightsAccessScopeAnalysesRequest, output: DescribeNetworkInsightsAccessScopeAnalysesResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "DescribeNetworkInsightsAccessScopeAnalyses", pagination: { inputToken: "NextToken", @@ -85815,6 +86804,7 @@ export const describeNetworkInsightsAccessScopeAnalyses: API.OperationMethod< export type DescribeNetworkInsightsAccessScopesError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Describes the specified Network Access Scopes. @@ -85842,7 +86832,7 @@ export const describeNetworkInsightsAccessScopes: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeNetworkInsightsAccessScopesRequest, output: DescribeNetworkInsightsAccessScopesResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "DescribeNetworkInsightsAccessScopes", pagination: { inputToken: "NextToken", @@ -85854,6 +86844,7 @@ export const describeNetworkInsightsAccessScopes: API.OperationMethod< export type DescribeNetworkInsightsAnalysesError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Describes one or more of your network insights analyses. @@ -85881,7 +86872,7 @@ export const describeNetworkInsightsAnalyses: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeNetworkInsightsAnalysesRequest, output: DescribeNetworkInsightsAnalysesResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "DescribeNetworkInsightsAnalyses", pagination: { inputToken: "NextToken", @@ -85893,6 +86884,7 @@ export const describeNetworkInsightsAnalyses: API.OperationMethod< export type DescribeNetworkInsightsPathsError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Describes one or more of your paths. @@ -85920,7 +86912,7 @@ export const describeNetworkInsightsPaths: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeNetworkInsightsPathsRequest, output: DescribeNetworkInsightsPathsResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "DescribeNetworkInsightsPaths", pagination: { inputToken: "NextToken", @@ -85934,6 +86926,7 @@ export type DescribeNetworkInterfaceAttributeError = | InvalidNetworkInterfaceIDNotFound | InvalidNetworkInterfaceIdMalformed | InvalidParameterCombination + | UnauthorizedOperation | CommonErrors; /** * Describes a network interface attribute. You can specify only one attribute at a @@ -85952,12 +86945,14 @@ export const describeNetworkInterfaceAttribute: API.OperationMethod< InvalidNetworkInterfaceIDNotFound, InvalidNetworkInterfaceIdMalformed, InvalidParameterCombination, + UnauthorizedOperation, ], operationName: "DescribeNetworkInterfaceAttribute", })); export type DescribeNetworkInterfacePermissionsError = | RequestLimitExceeded | InvalidPermissionIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes the permissions for your network interfaces. @@ -85985,7 +86980,11 @@ export const describeNetworkInterfacePermissions: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeNetworkInterfacePermissionsRequest, output: DescribeNetworkInterfacePermissionsResult, - errors: [RequestLimitExceeded, InvalidPermissionIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidPermissionIDNotFound, + UnauthorizedOperation, + ], operationName: "DescribeNetworkInterfacePermissions", pagination: { inputToken: "NextToken", @@ -85999,6 +86998,7 @@ export type DescribeNetworkInterfacesError = | InvalidNetworkInterfaceIDNotFound | InvalidNetworkInterfaceIdMalformed | ParseError + | UnauthorizedOperation | CommonErrors; /** * Describes the specified network interfaces or all your network interfaces. @@ -86040,6 +87040,7 @@ export const describeNetworkInterfaces: API.OperationMethod< InvalidNetworkInterfaceIDNotFound, InvalidNetworkInterfaceIdMalformed, ParseError, + UnauthorizedOperation, ], operationName: "DescribeNetworkInterfaces", pagination: { @@ -86052,6 +87053,7 @@ export const describeNetworkInterfaces: API.OperationMethod< export type DescribeOutpostLagsError = | RequestLimitExceeded | InvalidOutpostLagIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Describes the Outposts link aggregation groups (LAGs). @@ -86066,13 +87068,18 @@ export const describeOutpostLags: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeOutpostLagsRequest, output: DescribeOutpostLagsResult, - errors: [RequestLimitExceeded, InvalidOutpostLagIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidOutpostLagIDMalformed, + UnauthorizedOperation, + ], operationName: "DescribeOutpostLags", })); export type DescribePlacementGroupsError = | RequestLimitExceeded | InvalidParameterValue | InvalidPlacementGroupUnknown + | UnauthorizedOperation | CommonErrors; /** * Describes the specified placement groups or all of your placement groups. @@ -86098,12 +87105,14 @@ export const describePlacementGroups: API.OperationMethod< RequestLimitExceeded, InvalidParameterValue, InvalidPlacementGroupUnknown, + UnauthorizedOperation, ], operationName: "DescribePlacementGroups", })); export type DescribePrefixListsError = | RequestLimitExceeded | InvalidPrefixListIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes available Amazon Web Services services in a prefix list format, which includes the prefix list @@ -86132,7 +87141,11 @@ export const describePrefixLists: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribePrefixListsRequest, output: DescribePrefixListsResult, - errors: [RequestLimitExceeded, InvalidPrefixListIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidPrefixListIdNotFound, + UnauthorizedOperation, + ], operationName: "DescribePrefixLists", pagination: { inputToken: "NextToken", @@ -86199,6 +87212,7 @@ export const describePrincipalIdFormat: API.OperationMethod< export type DescribePublicIpv4PoolsError = | RequestLimitExceeded | InvalidPublicIpv4PoolIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes the specified IPv4 address pools. @@ -86226,7 +87240,11 @@ export const describePublicIpv4Pools: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribePublicIpv4PoolsRequest, output: DescribePublicIpv4PoolsResult, - errors: [RequestLimitExceeded, InvalidPublicIpv4PoolIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidPublicIpv4PoolIDNotFound, + UnauthorizedOperation, + ], operationName: "DescribePublicIpv4Pools", pagination: { inputToken: "NextToken", @@ -86238,6 +87256,7 @@ export const describePublicIpv4Pools: API.OperationMethod< export type DescribeRegionsError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Describes the Regions that are enabled for your account, or all Regions. @@ -86258,12 +87277,13 @@ export const describeRegions: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeRegionsRequest, output: DescribeRegionsResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "DescribeRegions", })); export type DescribeReplaceRootVolumeTasksError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Describes a root volume replacement task. For more information, see @@ -86292,7 +87312,7 @@ export const describeReplaceRootVolumeTasks: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeReplaceRootVolumeTasksRequest, output: DescribeReplaceRootVolumeTasksResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "DescribeReplaceRootVolumeTasks", pagination: { inputToken: "NextToken", @@ -86304,6 +87324,7 @@ export const describeReplaceRootVolumeTasks: API.OperationMethod< export type DescribeReservedInstancesError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Describes one or more of the Reserved Instances that you purchased. @@ -86322,7 +87343,7 @@ export const describeReservedInstances: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeReservedInstancesRequest, output: DescribeReservedInstancesResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "DescribeReservedInstances", })); export type DescribeReservedInstancesListingsError = CommonErrors; @@ -86365,6 +87386,7 @@ export const describeReservedInstancesListings: API.OperationMethod< export type DescribeReservedInstancesModificationsError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Describes the modifications made to your Reserved Instances. If no parameter is specified, @@ -86401,7 +87423,7 @@ export const describeReservedInstancesModifications: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeReservedInstancesModificationsRequest, output: DescribeReservedInstancesModificationsResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "DescribeReservedInstancesModifications", pagination: { inputToken: "NextToken", @@ -86412,6 +87434,7 @@ export const describeReservedInstancesModifications: API.OperationMethod< export type DescribeReservedInstancesOfferingsError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Describes Reserved Instance offerings that are available for purchase. With Reserved @@ -86452,7 +87475,7 @@ export const describeReservedInstancesOfferings: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeReservedInstancesOfferingsRequest, output: DescribeReservedInstancesOfferingsResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "DescribeReservedInstancesOfferings", pagination: { inputToken: "NextToken", @@ -86464,6 +87487,7 @@ export const describeReservedInstancesOfferings: API.OperationMethod< export type DescribeRouteServerEndpointsError = | RequestLimitExceeded | InvalidRouteServerEndpointIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes one or more route server endpoints. @@ -86495,7 +87519,11 @@ export const describeRouteServerEndpoints: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeRouteServerEndpointsRequest, output: DescribeRouteServerEndpointsResult, - errors: [RequestLimitExceeded, InvalidRouteServerEndpointIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidRouteServerEndpointIdNotFound, + UnauthorizedOperation, + ], operationName: "DescribeRouteServerEndpoints", pagination: { inputToken: "NextToken", @@ -86507,6 +87535,7 @@ export const describeRouteServerEndpoints: API.OperationMethod< export type DescribeRouteServerPeersError = | RequestLimitExceeded | InvalidRouteServerPeerIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes one or more route server peers. @@ -86544,7 +87573,11 @@ export const describeRouteServerPeers: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeRouteServerPeersRequest, output: DescribeRouteServerPeersResult, - errors: [RequestLimitExceeded, InvalidRouteServerPeerIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidRouteServerPeerIdNotFound, + UnauthorizedOperation, + ], operationName: "DescribeRouteServerPeers", pagination: { inputToken: "NextToken", @@ -86556,6 +87589,7 @@ export const describeRouteServerPeers: API.OperationMethod< export type DescribeRouteServersError = | RequestLimitExceeded | InvalidRouteServerIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes one or more route servers. @@ -86598,7 +87632,11 @@ export const describeRouteServers: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeRouteServersRequest, output: DescribeRouteServersResult, - errors: [RequestLimitExceeded, InvalidRouteServerIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidRouteServerIdNotFound, + UnauthorizedOperation, + ], operationName: "DescribeRouteServers", pagination: { inputToken: "NextToken", @@ -86611,6 +87649,7 @@ export type DescribeRouteTablesError = | RequestLimitExceeded | InvalidRouteTableIDNotFound | ParseError + | UnauthorizedOperation | CommonErrors; /** * Describes your route tables. The default is to describe all your route tables. @@ -86645,7 +87684,12 @@ export const describeRouteTables: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeRouteTablesRequest, output: DescribeRouteTablesResult, - errors: [RequestLimitExceeded, InvalidRouteTableIDNotFound, ParseError], + errors: [ + RequestLimitExceeded, + InvalidRouteTableIDNotFound, + ParseError, + UnauthorizedOperation, + ], operationName: "DescribeRouteTables", pagination: { inputToken: "NextToken", @@ -86857,6 +87901,7 @@ export const describeSecurityGroupReferences: API.OperationMethod< export type DescribeSecurityGroupRulesError = | RequestLimitExceeded | InvalidSecurityGroupRuleIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes one or more of your security group rules. @@ -86884,7 +87929,11 @@ export const describeSecurityGroupRules: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeSecurityGroupRulesRequest, output: DescribeSecurityGroupRulesResult, - errors: [RequestLimitExceeded, InvalidSecurityGroupRuleIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidSecurityGroupRuleIdNotFound, + UnauthorizedOperation, + ], operationName: "DescribeSecurityGroupRules", pagination: { inputToken: "NextToken", @@ -86899,6 +87948,7 @@ export type DescribeSecurityGroupsError = | InvalidGroupIdMalformed | ParseError | VPCIdNotSpecified + | UnauthorizedOperation | CommonErrors; /** * Describes the specified security groups or all of your security groups. @@ -86932,6 +87982,7 @@ export const describeSecurityGroups: API.OperationMethod< InvalidGroupIdMalformed, ParseError, VPCIdNotSpecified, + UnauthorizedOperation, ], operationName: "DescribeSecurityGroups", pagination: { @@ -86980,6 +88031,7 @@ export const describeSecurityGroupVpcAssociations: API.OperationMethod< export type DescribeServiceLinkVirtualInterfacesError = | RequestLimitExceeded | InvalidServiceLinkVirtualInterfaceIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Describes the Outpost service link virtual interfaces. @@ -86992,7 +88044,11 @@ export const describeServiceLinkVirtualInterfaces: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeServiceLinkVirtualInterfacesRequest, output: DescribeServiceLinkVirtualInterfacesResult, - errors: [RequestLimitExceeded, InvalidServiceLinkVirtualInterfaceIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidServiceLinkVirtualInterfaceIDMalformed, + UnauthorizedOperation, + ], operationName: "DescribeServiceLinkVirtualInterfaces", })); export type DescribeSnapshotAttributeError = @@ -87000,6 +88056,7 @@ export type DescribeSnapshotAttributeError = | InvalidParameterValue | InvalidSnapshotNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Describes the specified attribute of the specified snapshot. You can specify only one @@ -87020,6 +88077,7 @@ export const describeSnapshotAttribute: API.OperationMethod< InvalidParameterValue, InvalidSnapshotNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DescribeSnapshotAttribute", })); @@ -87027,6 +88085,7 @@ export type DescribeSnapshotsError = | RequestLimitExceeded | InvalidSnapshotNotFound | InvalidUserIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Describes the specified EBS snapshots available to you or all of the EBS snapshots @@ -87102,6 +88161,7 @@ export const describeSnapshots: API.OperationMethod< RequestLimitExceeded, InvalidSnapshotNotFound, InvalidUserIDMalformed, + UnauthorizedOperation, ], operationName: "DescribeSnapshots", pagination: { @@ -87150,6 +88210,7 @@ export const describeSnapshotTierStatus: API.OperationMethod< export type DescribeSpotDatafeedSubscriptionError = | RequestLimitExceeded | InvalidSpotDatafeedNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes the data feed for Spot Instances. For more information, see Spot @@ -87163,12 +88224,17 @@ export const describeSpotDatafeedSubscription: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeSpotDatafeedSubscriptionRequest, output: DescribeSpotDatafeedSubscriptionResult, - errors: [RequestLimitExceeded, InvalidSpotDatafeedNotFound], + errors: [ + RequestLimitExceeded, + InvalidSpotDatafeedNotFound, + UnauthorizedOperation, + ], operationName: "DescribeSpotDatafeedSubscription", })); export type DescribeSpotFleetInstancesError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Describes the running instances for the specified Spot Fleet. @@ -87181,12 +88247,13 @@ export const describeSpotFleetInstances: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeSpotFleetInstancesRequest, output: DescribeSpotFleetInstancesResponse, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "DescribeSpotFleetInstances", })); export type DescribeSpotFleetRequestHistoryError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Describes the events for the specified Spot Fleet request during the specified @@ -87207,13 +88274,14 @@ export const describeSpotFleetRequestHistory: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeSpotFleetRequestHistoryRequest, output: DescribeSpotFleetRequestHistoryResponse, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "DescribeSpotFleetRequestHistory", })); export type DescribeSpotFleetRequestsError = | RequestLimitExceeded | InvalidParameterValue | ParseError + | UnauthorizedOperation | CommonErrors; /** * Describes your Spot Fleet requests. @@ -87244,7 +88312,12 @@ export const describeSpotFleetRequests: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeSpotFleetRequestsRequest, output: DescribeSpotFleetRequestsResponse, - errors: [RequestLimitExceeded, InvalidParameterValue, ParseError], + errors: [ + RequestLimitExceeded, + InvalidParameterValue, + ParseError, + UnauthorizedOperation, + ], operationName: "DescribeSpotFleetRequests", pagination: { inputToken: "NextToken", @@ -87257,6 +88330,7 @@ export type DescribeSpotInstanceRequestsError = | RequestLimitExceeded | InvalidSpotInstanceRequestIDMalformed | ParseError + | UnauthorizedOperation | CommonErrors; /** * Describes the specified Spot Instance requests. @@ -87306,6 +88380,7 @@ export const describeSpotInstanceRequests: API.OperationMethod< RequestLimitExceeded, InvalidSpotInstanceRequestIDMalformed, ParseError, + UnauthorizedOperation, ], operationName: "DescribeSpotInstanceRequests", pagination: { @@ -87359,6 +88434,7 @@ export const describeSpotPriceHistory: API.OperationMethod< export type DescribeStaleSecurityGroupsError = | RequestLimitExceeded | InvalidVpcIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes the stale security group rules for security groups referenced across a VPC @@ -87393,7 +88469,7 @@ export const describeStaleSecurityGroups: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeStaleSecurityGroupsRequest, output: DescribeStaleSecurityGroupsResult, - errors: [RequestLimitExceeded, InvalidVpcIDNotFound], + errors: [RequestLimitExceeded, InvalidVpcIDNotFound, UnauthorizedOperation], operationName: "DescribeStaleSecurityGroups", pagination: { inputToken: "NextToken", @@ -87457,6 +88533,7 @@ export type DescribeSubnetsError = | RequestLimitExceeded | InvalidSubnetIDNotFound | ParseError + | UnauthorizedOperation | CommonErrors; /** * Describes your subnets. The default is to describe all your subnets. @@ -87489,7 +88566,12 @@ export const describeSubnets: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeSubnetsRequest, output: DescribeSubnetsResult, - errors: [RequestLimitExceeded, InvalidSubnetIDNotFound, ParseError], + errors: [ + RequestLimitExceeded, + InvalidSubnetIDNotFound, + ParseError, + UnauthorizedOperation, + ], operationName: "DescribeSubnets", pagination: { inputToken: "NextToken", @@ -87501,6 +88583,7 @@ export const describeSubnets: API.OperationMethod< export type DescribeTagsError = | RequestLimitExceeded | ParseError + | UnauthorizedOperation | CommonErrors; /** * Describes the specified tags for your EC2 resources. @@ -87538,7 +88621,7 @@ export const describeTags: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeTagsRequest, output: DescribeTagsResult, - errors: [RequestLimitExceeded, ParseError], + errors: [RequestLimitExceeded, ParseError, UnauthorizedOperation], operationName: "DescribeTags", pagination: { inputToken: "NextToken", @@ -87565,6 +88648,7 @@ export const describeTrafficMirrorFilterRules: API.OperationMethod< export type DescribeTrafficMirrorFiltersError = | RequestLimitExceeded | InvalidTrafficMirrorFilterIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes one or more Traffic Mirror filters. @@ -87592,7 +88676,11 @@ export const describeTrafficMirrorFilters: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeTrafficMirrorFiltersRequest, output: DescribeTrafficMirrorFiltersResult, - errors: [RequestLimitExceeded, InvalidTrafficMirrorFilterIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidTrafficMirrorFilterIdNotFound, + UnauthorizedOperation, + ], operationName: "DescribeTrafficMirrorFilters", pagination: { inputToken: "NextToken", @@ -87604,6 +88692,7 @@ export const describeTrafficMirrorFilters: API.OperationMethod< export type DescribeTrafficMirrorSessionsError = | RequestLimitExceeded | InvalidTrafficMirrorSessionIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes one or more Traffic Mirror sessions. By default, all Traffic Mirror sessions are described. Alternatively, you can filter the results. @@ -87631,7 +88720,11 @@ export const describeTrafficMirrorSessions: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeTrafficMirrorSessionsRequest, output: DescribeTrafficMirrorSessionsResult, - errors: [RequestLimitExceeded, InvalidTrafficMirrorSessionIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidTrafficMirrorSessionIdNotFound, + UnauthorizedOperation, + ], operationName: "DescribeTrafficMirrorSessions", pagination: { inputToken: "NextToken", @@ -87643,6 +88736,7 @@ export const describeTrafficMirrorSessions: API.OperationMethod< export type DescribeTrafficMirrorTargetsError = | RequestLimitExceeded | InvalidTrafficMirrorTargetIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Information about one or more Traffic Mirror targets. @@ -87670,7 +88764,11 @@ export const describeTrafficMirrorTargets: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeTrafficMirrorTargetsRequest, output: DescribeTrafficMirrorTargetsResult, - errors: [RequestLimitExceeded, InvalidTrafficMirrorTargetIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidTrafficMirrorTargetIdNotFound, + UnauthorizedOperation, + ], operationName: "DescribeTrafficMirrorTargets", pagination: { inputToken: "NextToken", @@ -87683,6 +88781,7 @@ export type DescribeTransitGatewayAttachmentsError = | RequestLimitExceeded | InvalidTransitGatewayAttachmentIDNotFound | ParseError + | UnauthorizedOperation | CommonErrors; /** * Describes one or more attachments between resources and transit gateways. By default, all attachments are described. @@ -87715,6 +88814,7 @@ export const describeTransitGatewayAttachments: API.OperationMethod< RequestLimitExceeded, InvalidTransitGatewayAttachmentIDNotFound, ParseError, + UnauthorizedOperation, ], operationName: "DescribeTransitGatewayAttachments", pagination: { @@ -87727,6 +88827,7 @@ export const describeTransitGatewayAttachments: API.OperationMethod< export type DescribeTransitGatewayConnectPeersError = | RequestLimitExceeded | InvalidTransitGatewayConnectPeerIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes one or more Connect peers. @@ -87754,7 +88855,11 @@ export const describeTransitGatewayConnectPeers: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeTransitGatewayConnectPeersRequest, output: DescribeTransitGatewayConnectPeersResult, - errors: [RequestLimitExceeded, InvalidTransitGatewayConnectPeerIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidTransitGatewayConnectPeerIDNotFound, + UnauthorizedOperation, + ], operationName: "DescribeTransitGatewayConnectPeers", pagination: { inputToken: "NextToken", @@ -87766,6 +88871,7 @@ export const describeTransitGatewayConnectPeers: API.OperationMethod< export type DescribeTransitGatewayConnectsError = | RequestLimitExceeded | InvalidTransitGatewayAttachmentIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes one or more Connect attachments. @@ -87793,7 +88899,11 @@ export const describeTransitGatewayConnects: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeTransitGatewayConnectsRequest, output: DescribeTransitGatewayConnectsResult, - errors: [RequestLimitExceeded, InvalidTransitGatewayAttachmentIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidTransitGatewayAttachmentIDNotFound, + UnauthorizedOperation, + ], operationName: "DescribeTransitGatewayConnects", pagination: { inputToken: "NextToken", @@ -87805,6 +88915,7 @@ export const describeTransitGatewayConnects: API.OperationMethod< export type DescribeTransitGatewayMeteringPoliciesError = | RequestLimitExceeded | InvalidTransitGatewayMeteringPolicyIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes one or more transit gateway metering policies. @@ -87817,12 +88928,17 @@ export const describeTransitGatewayMeteringPolicies: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeTransitGatewayMeteringPoliciesRequest, output: DescribeTransitGatewayMeteringPoliciesResult, - errors: [RequestLimitExceeded, InvalidTransitGatewayMeteringPolicyIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidTransitGatewayMeteringPolicyIdNotFound, + UnauthorizedOperation, + ], operationName: "DescribeTransitGatewayMeteringPolicies", })); export type DescribeTransitGatewayMulticastDomainsError = | RequestLimitExceeded | InvalidTransitGatewayMulticastDomainIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes one or more transit gateway multicast domains. @@ -87853,6 +88969,7 @@ export const describeTransitGatewayMulticastDomains: API.OperationMethod< errors: [ RequestLimitExceeded, InvalidTransitGatewayMulticastDomainIdNotFound, + UnauthorizedOperation, ], operationName: "DescribeTransitGatewayMulticastDomains", pagination: { @@ -87865,6 +88982,7 @@ export const describeTransitGatewayMulticastDomains: API.OperationMethod< export type DescribeTransitGatewayPeeringAttachmentsError = | RequestLimitExceeded | InvalidTransitGatewayAttachmentIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes your transit gateway peering attachments. @@ -87892,7 +89010,11 @@ export const describeTransitGatewayPeeringAttachments: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeTransitGatewayPeeringAttachmentsRequest, output: DescribeTransitGatewayPeeringAttachmentsResult, - errors: [RequestLimitExceeded, InvalidTransitGatewayAttachmentIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidTransitGatewayAttachmentIDNotFound, + UnauthorizedOperation, + ], operationName: "DescribeTransitGatewayPeeringAttachments", pagination: { inputToken: "NextToken", @@ -87904,6 +89026,7 @@ export const describeTransitGatewayPeeringAttachments: API.OperationMethod< export type DescribeTransitGatewayPolicyTablesError = | RequestLimitExceeded | InvalidTransitGatewayPolicyTableIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes one or more transit gateway route policy tables. @@ -87931,7 +89054,11 @@ export const describeTransitGatewayPolicyTables: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeTransitGatewayPolicyTablesRequest, output: DescribeTransitGatewayPolicyTablesResult, - errors: [RequestLimitExceeded, InvalidTransitGatewayPolicyTableIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidTransitGatewayPolicyTableIdNotFound, + UnauthorizedOperation, + ], operationName: "DescribeTransitGatewayPolicyTables", pagination: { inputToken: "NextToken", @@ -87943,6 +89070,7 @@ export const describeTransitGatewayPolicyTables: API.OperationMethod< export type DescribeTransitGatewayRouteTableAnnouncementsError = | RequestLimitExceeded | InvalidTransitGatewayRouteTableAnnouncementIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Describes one or more transit gateway route table advertisements. @@ -87973,6 +89101,7 @@ export const describeTransitGatewayRouteTableAnnouncements: API.OperationMethod< errors: [ RequestLimitExceeded, InvalidTransitGatewayRouteTableAnnouncementIdMalformed, + UnauthorizedOperation, ], operationName: "DescribeTransitGatewayRouteTableAnnouncements", pagination: { @@ -87986,6 +89115,7 @@ export type DescribeTransitGatewayRouteTablesError = | RequestLimitExceeded | InvalidRouteTableIDNotFound | ParseError + | UnauthorizedOperation | CommonErrors; /** * Describes one or more transit gateway route tables. By default, all transit gateway route tables are described. @@ -88014,7 +89144,12 @@ export const describeTransitGatewayRouteTables: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeTransitGatewayRouteTablesRequest, output: DescribeTransitGatewayRouteTablesResult, - errors: [RequestLimitExceeded, InvalidRouteTableIDNotFound, ParseError], + errors: [ + RequestLimitExceeded, + InvalidRouteTableIDNotFound, + ParseError, + UnauthorizedOperation, + ], operationName: "DescribeTransitGatewayRouteTables", pagination: { inputToken: "NextToken", @@ -88027,6 +89162,7 @@ export type DescribeTransitGatewaysError = | RequestLimitExceeded | InvalidTransitGatewayIDNotFound | ParseError + | UnauthorizedOperation | CommonErrors; /** * Describes one or more transit gateways. By default, all transit gateways are described. Alternatively, you can @@ -88055,7 +89191,12 @@ export const describeTransitGateways: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeTransitGatewaysRequest, output: DescribeTransitGatewaysResult, - errors: [RequestLimitExceeded, InvalidTransitGatewayIDNotFound, ParseError], + errors: [ + RequestLimitExceeded, + InvalidTransitGatewayIDNotFound, + ParseError, + UnauthorizedOperation, + ], operationName: "DescribeTransitGateways", pagination: { inputToken: "NextToken", @@ -88067,6 +89208,7 @@ export const describeTransitGateways: API.OperationMethod< export type DescribeTransitGatewayVpcAttachmentsError = | RequestLimitExceeded | InvalidTransitGatewayAttachmentIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes one or more VPC attachments. By default, all VPC attachments are described. @@ -88095,7 +89237,11 @@ export const describeTransitGatewayVpcAttachments: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeTransitGatewayVpcAttachmentsRequest, output: DescribeTransitGatewayVpcAttachmentsResult, - errors: [RequestLimitExceeded, InvalidTransitGatewayAttachmentIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidTransitGatewayAttachmentIDNotFound, + UnauthorizedOperation, + ], operationName: "DescribeTransitGatewayVpcAttachments", pagination: { inputToken: "NextToken", @@ -88107,6 +89253,7 @@ export const describeTransitGatewayVpcAttachments: API.OperationMethod< export type DescribeTrunkInterfaceAssociationsError = | RequestLimitExceeded | OperationNotPermitted + | UnauthorizedOperation | CommonErrors; /** * Describes one or more network interface trunk associations. @@ -88134,7 +89281,7 @@ export const describeTrunkInterfaceAssociations: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeTrunkInterfaceAssociationsRequest, output: DescribeTrunkInterfaceAssociationsResult, - errors: [RequestLimitExceeded, OperationNotPermitted], + errors: [RequestLimitExceeded, OperationNotPermitted, UnauthorizedOperation], operationName: "DescribeTrunkInterfaceAssociations", pagination: { inputToken: "NextToken", @@ -88146,6 +89293,7 @@ export const describeTrunkInterfaceAssociations: API.OperationMethod< export type DescribeVerifiedAccessEndpointsError = | RequestLimitExceeded | InvalidParameterCombination + | UnauthorizedOperation | CommonErrors; /** * Describes the specified Amazon Web Services Verified Access endpoints. @@ -88173,7 +89321,11 @@ export const describeVerifiedAccessEndpoints: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeVerifiedAccessEndpointsRequest, output: DescribeVerifiedAccessEndpointsResult, - errors: [RequestLimitExceeded, InvalidParameterCombination], + errors: [ + RequestLimitExceeded, + InvalidParameterCombination, + UnauthorizedOperation, + ], operationName: "DescribeVerifiedAccessEndpoints", pagination: { inputToken: "NextToken", @@ -88185,6 +89337,7 @@ export const describeVerifiedAccessEndpoints: API.OperationMethod< export type DescribeVerifiedAccessGroupsError = | RequestLimitExceeded | InvalidVerifiedAccessGroupIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes the specified Verified Access groups. @@ -88212,7 +89365,11 @@ export const describeVerifiedAccessGroups: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeVerifiedAccessGroupsRequest, output: DescribeVerifiedAccessGroupsResult, - errors: [RequestLimitExceeded, InvalidVerifiedAccessGroupIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidVerifiedAccessGroupIdNotFound, + UnauthorizedOperation, + ], operationName: "DescribeVerifiedAccessGroups", pagination: { inputToken: "NextToken", @@ -88224,6 +89381,7 @@ export const describeVerifiedAccessGroups: API.OperationMethod< export type DescribeVerifiedAccessInstanceLoggingConfigurationsError = | RequestLimitExceeded | InvalidVerifiedAccessInstanceIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes the specified Amazon Web Services Verified Access instances. @@ -88251,7 +89409,11 @@ export const describeVerifiedAccessInstanceLoggingConfigurations: API.OperationM } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeVerifiedAccessInstanceLoggingConfigurationsRequest, output: DescribeVerifiedAccessInstanceLoggingConfigurationsResult, - errors: [RequestLimitExceeded, InvalidVerifiedAccessInstanceIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidVerifiedAccessInstanceIdNotFound, + UnauthorizedOperation, + ], operationName: "DescribeVerifiedAccessInstanceLoggingConfigurations", pagination: { inputToken: "NextToken", @@ -88263,6 +89425,7 @@ export const describeVerifiedAccessInstanceLoggingConfigurations: API.OperationM export type DescribeVerifiedAccessInstancesError = | RequestLimitExceeded | InvalidVerifiedAccessInstanceIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes the specified Amazon Web Services Verified Access instances. @@ -88290,7 +89453,11 @@ export const describeVerifiedAccessInstances: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeVerifiedAccessInstancesRequest, output: DescribeVerifiedAccessInstancesResult, - errors: [RequestLimitExceeded, InvalidVerifiedAccessInstanceIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidVerifiedAccessInstanceIdNotFound, + UnauthorizedOperation, + ], operationName: "DescribeVerifiedAccessInstances", pagination: { inputToken: "NextToken", @@ -88302,6 +89469,7 @@ export const describeVerifiedAccessInstances: API.OperationMethod< export type DescribeVerifiedAccessTrustProvidersError = | RequestLimitExceeded | InvalidVerifiedAccessTrustProviderIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes the specified Amazon Web Services Verified Access trust providers. @@ -88329,7 +89497,11 @@ export const describeVerifiedAccessTrustProviders: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeVerifiedAccessTrustProvidersRequest, output: DescribeVerifiedAccessTrustProvidersResult, - errors: [RequestLimitExceeded, InvalidVerifiedAccessTrustProviderIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidVerifiedAccessTrustProviderIdNotFound, + UnauthorizedOperation, + ], operationName: "DescribeVerifiedAccessTrustProviders", pagination: { inputToken: "NextToken", @@ -88343,6 +89515,7 @@ export type DescribeVolumeAttributeError = | InvalidParameterCombination | InvalidParameterValue | InvalidVolumeNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes the specified attribute of the specified volume. You can specify only one @@ -88363,6 +89536,7 @@ export const describeVolumeAttribute: API.OperationMethod< InvalidParameterCombination, InvalidParameterValue, InvalidVolumeNotFound, + UnauthorizedOperation, ], operationName: "DescribeVolumeAttribute", })); @@ -88371,6 +89545,7 @@ export type DescribeVolumesError = | InvalidParameterValue | InvalidVolumeNotFound | ParseError + | UnauthorizedOperation | CommonErrors; /** * Describes the specified EBS volumes or all of your EBS volumes. @@ -88415,6 +89590,7 @@ export const describeVolumes: API.OperationMethod< InvalidParameterValue, InvalidVolumeNotFound, ParseError, + UnauthorizedOperation, ], operationName: "DescribeVolumes", pagination: { @@ -88427,6 +89603,7 @@ export const describeVolumes: API.OperationMethod< export type DescribeVolumesModificationsError = | RequestLimitExceeded | InvalidVolumeIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Describes the most recent volume modification request for the specified EBS volumes. @@ -88457,7 +89634,11 @@ export const describeVolumesModifications: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeVolumesModificationsRequest, output: DescribeVolumesModificationsResult, - errors: [RequestLimitExceeded, InvalidVolumeIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidVolumeIDMalformed, + UnauthorizedOperation, + ], operationName: "DescribeVolumesModifications", pagination: { inputToken: "NextToken", @@ -88469,6 +89650,7 @@ export const describeVolumesModifications: API.OperationMethod< export type DescribeVolumeStatusError = | RequestLimitExceeded | InvalidVolumeIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Describes the status of the specified volumes. Volume status provides the result of the @@ -88535,7 +89717,11 @@ export const describeVolumeStatus: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeVolumeStatusRequest, output: DescribeVolumeStatusResult, - errors: [RequestLimitExceeded, InvalidVolumeIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidVolumeIDMalformed, + UnauthorizedOperation, + ], operationName: "DescribeVolumeStatus", pagination: { inputToken: "NextToken", @@ -88548,6 +89734,7 @@ export type DescribeVpcAttributeError = | RequestLimitExceeded | InvalidParameterCombination | InvalidVpcIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes the specified attribute of the specified VPC. You can specify only one attribute at a time. @@ -88564,6 +89751,7 @@ export const describeVpcAttribute: API.OperationMethod< RequestLimitExceeded, InvalidParameterCombination, InvalidVpcIDNotFound, + UnauthorizedOperation, ], operationName: "DescribeVpcAttribute", })); @@ -88571,6 +89759,7 @@ export type DescribeVpcBlockPublicAccessExclusionsError = | RequestLimitExceeded | MissingParameter | VpcBlockPublicAccessExclusionIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Describe VPC Block Public Access (BPA) exclusions. A VPC BPA exclusion is a mode that can be applied to a single VPC or subnet that exempts it from the account’s BPA mode and will allow bidirectional or egress-only access. You can create BPA exclusions for VPCs and subnets even when BPA is not enabled on the account to ensure that there is no traffic disruption to the exclusions when VPC BPA is turned on. To learn more about VPC BPA, see Block public access to VPCs and subnets in the *Amazon VPC User Guide*. @@ -88587,6 +89776,7 @@ export const describeVpcBlockPublicAccessExclusions: API.OperationMethod< RequestLimitExceeded, MissingParameter, VpcBlockPublicAccessExclusionIdMalformed, + UnauthorizedOperation, ], operationName: "DescribeVpcBlockPublicAccessExclusions", })); @@ -88609,6 +89799,7 @@ export type DescribeVpcClassicLinkError = | RequestLimitExceeded | InvalidVpcIDNotFound | InvalidVpcIdMalformed + | UnauthorizedOperation | CommonErrors; /** * This action is deprecated. @@ -88623,12 +89814,18 @@ export const describeVpcClassicLink: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeVpcClassicLinkRequest, output: DescribeVpcClassicLinkResult, - errors: [RequestLimitExceeded, InvalidVpcIDNotFound, InvalidVpcIdMalformed], + errors: [ + RequestLimitExceeded, + InvalidVpcIDNotFound, + InvalidVpcIdMalformed, + UnauthorizedOperation, + ], operationName: "DescribeVpcClassicLink", })); export type DescribeVpcClassicLinkDnsSupportError = | RequestLimitExceeded | InvalidVpcIDNotFound + | UnauthorizedOperation | CommonErrors; /** * This action is deprecated. @@ -88662,7 +89859,7 @@ export const describeVpcClassicLinkDnsSupport: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeVpcClassicLinkDnsSupportRequest, output: DescribeVpcClassicLinkDnsSupportResult, - errors: [RequestLimitExceeded, InvalidVpcIDNotFound], + errors: [RequestLimitExceeded, InvalidVpcIDNotFound, UnauthorizedOperation], operationName: "DescribeVpcClassicLinkDnsSupport", pagination: { inputToken: "NextToken", @@ -88674,6 +89871,7 @@ export const describeVpcClassicLinkDnsSupport: API.OperationMethod< export type DescribeVpcEncryptionControlsError = | RequestLimitExceeded | InvalidParameterCombination + | UnauthorizedOperation | CommonErrors; /** * Describes one or more VPC Encryption Control configurations. VPC Encryption Control enables you to enforce encryption for all data in transit within and between VPCs to meet compliance requirements You can filter the results to return information about specific encryption controls or VPCs. @@ -88688,7 +89886,11 @@ export const describeVpcEncryptionControls: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeVpcEncryptionControlsRequest, output: DescribeVpcEncryptionControlsResult, - errors: [RequestLimitExceeded, InvalidParameterCombination], + errors: [ + RequestLimitExceeded, + InvalidParameterCombination, + UnauthorizedOperation, + ], operationName: "DescribeVpcEncryptionControls", })); export type DescribeVpcEndpointAssociationsError = CommonErrors; @@ -88710,6 +89912,7 @@ export const describeVpcEndpointAssociations: API.OperationMethod< export type DescribeVpcEndpointConnectionNotificationsError = | RequestLimitExceeded | InvalidConnectionNotification + | UnauthorizedOperation | CommonErrors; /** * Describes the connection notifications for VPC endpoints and VPC endpoint @@ -88738,7 +89941,11 @@ export const describeVpcEndpointConnectionNotifications: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeVpcEndpointConnectionNotificationsRequest, output: DescribeVpcEndpointConnectionNotificationsResult, - errors: [RequestLimitExceeded, InvalidConnectionNotification], + errors: [ + RequestLimitExceeded, + InvalidConnectionNotification, + UnauthorizedOperation, + ], operationName: "DescribeVpcEndpointConnectionNotifications", pagination: { inputToken: "NextToken", @@ -88788,6 +89995,7 @@ export type DescribeVpcEndpointsError = | RequestLimitExceeded | InvalidVpcEndpointIdNotFound | ParseError + | UnauthorizedOperation | CommonErrors; /** * Describes your VPC endpoints. The default is to describe all your VPC endpoints. @@ -88817,7 +90025,12 @@ export const describeVpcEndpoints: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeVpcEndpointsRequest, output: DescribeVpcEndpointsResult, - errors: [RequestLimitExceeded, InvalidVpcEndpointIdNotFound, ParseError], + errors: [ + RequestLimitExceeded, + InvalidVpcEndpointIdNotFound, + ParseError, + UnauthorizedOperation, + ], operationName: "DescribeVpcEndpoints", pagination: { inputToken: "NextToken", @@ -88829,6 +90042,7 @@ export const describeVpcEndpoints: API.OperationMethod< export type DescribeVpcEndpointServiceConfigurationsError = | RequestLimitExceeded | InvalidVpcEndpointServiceIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes the VPC endpoint service configurations in your account (your services). @@ -88856,7 +90070,11 @@ export const describeVpcEndpointServiceConfigurations: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeVpcEndpointServiceConfigurationsRequest, output: DescribeVpcEndpointServiceConfigurationsResult, - errors: [RequestLimitExceeded, InvalidVpcEndpointServiceIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidVpcEndpointServiceIdNotFound, + UnauthorizedOperation, + ], operationName: "DescribeVpcEndpointServiceConfigurations", pagination: { inputToken: "NextToken", @@ -88869,6 +90087,7 @@ export type DescribeVpcEndpointServicePermissionsError = | RequestLimitExceeded | InvalidVpcEndpointServiceIdMalformed | InvalidVpcEndpointServiceIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes the principals (service consumers) that are permitted to discover your VPC @@ -88901,6 +90120,7 @@ export const describeVpcEndpointServicePermissions: API.OperationMethod< RequestLimitExceeded, InvalidVpcEndpointServiceIdMalformed, InvalidVpcEndpointServiceIdNotFound, + UnauthorizedOperation, ], operationName: "DescribeVpcEndpointServicePermissions", pagination: { @@ -88913,6 +90133,7 @@ export const describeVpcEndpointServicePermissions: API.OperationMethod< export type DescribeVpcEndpointServicesError = | RequestLimitExceeded | ParseError + | UnauthorizedOperation | CommonErrors; /** * Describes available services to which you can create a VPC endpoint. @@ -88933,13 +90154,15 @@ export const describeVpcEndpointServices: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeVpcEndpointServicesRequest, output: DescribeVpcEndpointServicesResult, - errors: [RequestLimitExceeded, ParseError], + errors: [RequestLimitExceeded, ParseError, UnauthorizedOperation], operationName: "DescribeVpcEndpointServices", })); export type DescribeVpcPeeringConnectionsError = | RequestLimitExceeded | InvalidVpcPeeringConnectionIDNotFound + | InvalidVpcPeeringConnectionIdNotFound | ParseError + | UnauthorizedOperation | CommonErrors; /** * Describes your VPC peering connections. The default is to describe all your VPC peering connections. @@ -88972,7 +90195,9 @@ export const describeVpcPeeringConnections: API.OperationMethod< errors: [ RequestLimitExceeded, InvalidVpcPeeringConnectionIDNotFound, + InvalidVpcPeeringConnectionIdNotFound, ParseError, + UnauthorizedOperation, ], operationName: "DescribeVpcPeeringConnections", pagination: { @@ -88987,6 +90212,7 @@ export type DescribeVpcsError = | InvalidVpcIDNotFound | ParseError | RequestError + | UnauthorizedOperation | CommonErrors; /** * Describes your VPCs. The default is to describe all your VPCs. @@ -89021,6 +90247,7 @@ export const describeVpcs: API.OperationMethod< InvalidVpcIDNotFound, ParseError, RequestError, + UnauthorizedOperation, ], operationName: "DescribeVpcs", pagination: { @@ -89033,6 +90260,7 @@ export const describeVpcs: API.OperationMethod< export type DescribeVpnConcentratorsError = | RequestLimitExceeded | InvalidVpnConcentratorIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Describes one or more of your VPN concentrators. @@ -89060,7 +90288,11 @@ export const describeVpnConcentrators: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: DescribeVpnConcentratorsRequest, output: DescribeVpnConcentratorsResult, - errors: [RequestLimitExceeded, InvalidVpnConcentratorIdMalformed], + errors: [ + RequestLimitExceeded, + InvalidVpnConcentratorIdMalformed, + UnauthorizedOperation, + ], operationName: "DescribeVpnConcentrators", pagination: { inputToken: "NextToken", @@ -89072,6 +90304,7 @@ export const describeVpnConcentrators: API.OperationMethod< export type DescribeVpnConnectionsError = | RequestLimitExceeded | InvalidVpnConnectionIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Describes one or more of your VPN connections. @@ -89087,13 +90320,18 @@ export const describeVpnConnections: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeVpnConnectionsRequest, output: DescribeVpnConnectionsResult, - errors: [RequestLimitExceeded, InvalidVpnConnectionIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidVpnConnectionIDNotFound, + UnauthorizedOperation, + ], operationName: "DescribeVpnConnections", })); export type DescribeVpnGatewaysError = | RequestLimitExceeded | InvalidVpnGatewayIDNotFound | ParseError + | UnauthorizedOperation | CommonErrors; /** * Describes one or more of your virtual private gateways. @@ -89109,7 +90347,12 @@ export const describeVpnGateways: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeVpnGatewaysRequest, output: DescribeVpnGatewaysResult, - errors: [RequestLimitExceeded, InvalidVpnGatewayIDNotFound, ParseError], + errors: [ + RequestLimitExceeded, + InvalidVpnGatewayIDNotFound, + ParseError, + UnauthorizedOperation, + ], operationName: "DescribeVpnGateways", })); export type DetachClassicLinkVpcError = @@ -89118,6 +90361,7 @@ export type DetachClassicLinkVpcError = | InvalidInstanceIDMalformed | InvalidVpcIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * This action is deprecated. @@ -89140,6 +90384,7 @@ export const detachClassicLinkVpc: API.OperationMethod< InvalidInstanceIDMalformed, InvalidVpcIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DetachClassicLinkVpc", })); @@ -89171,6 +90416,7 @@ export type DetachInternetGatewayError = | InvalidInternetGatewayIDNotFound | InvalidInternetGatewayIdMalformed | InvalidVpcIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Detaches an internet gateway from a VPC, disabling connectivity between the internet @@ -89192,6 +90438,7 @@ export const detachInternetGateway: API.OperationMethod< InvalidInternetGatewayIDNotFound, InvalidInternetGatewayIdMalformed, InvalidVpcIdMalformed, + UnauthorizedOperation, ], operationName: "DetachInternetGateway", })); @@ -89200,6 +90447,7 @@ export type DetachNetworkInterfaceError = | DependencyViolation | InvalidAttachmentIDNotFound | InvalidNetworkInterfaceAttachmentIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Detaches a network interface from an instance. @@ -89217,6 +90465,7 @@ export const detachNetworkInterface: API.OperationMethod< DependencyViolation, InvalidAttachmentIDNotFound, InvalidNetworkInterfaceAttachmentIdMalformed, + UnauthorizedOperation, ], operationName: "DetachNetworkInterface", })); @@ -89224,6 +90473,7 @@ export type DetachVerifiedAccessTrustProviderError = | RequestLimitExceeded | DependencyViolation | InvalidVerifiedAccessInstanceIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Detaches the specified Amazon Web Services Verified Access trust provider from the specified Amazon Web Services Verified Access instance. @@ -89240,6 +90490,7 @@ export const detachVerifiedAccessTrustProvider: API.OperationMethod< RequestLimitExceeded, DependencyViolation, InvalidVerifiedAccessInstanceIdNotFound, + UnauthorizedOperation, ], operationName: "DetachVerifiedAccessTrustProvider", })); @@ -89249,6 +90500,7 @@ export type DetachVolumeError = | IncorrectState | InvalidParameterValue | InvalidVolumeNotFound + | UnauthorizedOperation | CommonErrors; /** * Detaches an EBS volume from an instance. Make sure to unmount any file systems on the @@ -89283,6 +90535,7 @@ export const detachVolume: API.OperationMethod< IncorrectState, InvalidParameterValue, InvalidVolumeNotFound, + UnauthorizedOperation, ], operationName: "DetachVolume", })); @@ -89292,6 +90545,7 @@ export type DetachVpnGatewayError = | IncorrectState | InvalidVpnGatewayIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Detaches a virtual private gateway from a VPC. You do this if you're planning to turn @@ -89316,12 +90570,14 @@ export const detachVpnGateway: API.OperationMethod< IncorrectState, InvalidVpnGatewayIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DetachVpnGateway", })); export type DisableAddressTransferError = | RequestLimitExceeded | InvalidElasticIpIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Disables Elastic IP address transfer. For more information, see Transfer Elastic IP addresses in the *Amazon VPC User Guide*. @@ -89334,7 +90590,11 @@ export const disableAddressTransfer: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DisableAddressTransferRequest, output: DisableAddressTransferResult, - errors: [RequestLimitExceeded, InvalidElasticIpIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidElasticIpIDNotFound, + UnauthorizedOperation, + ], operationName: "DisableAddressTransfer", })); export type DisableAllowedImagesSettingsError = CommonErrors; @@ -89366,6 +90626,7 @@ export const disableAllowedImagesSettings: API.OperationMethod< export type DisableAwsNetworkPerformanceMetricSubscriptionError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Disables Infrastructure Performance metric subscriptions. @@ -89378,12 +90639,13 @@ export const disableAwsNetworkPerformanceMetricSubscription: API.OperationMethod > = /*@__PURE__*/ API.make(() => ({ input: DisableAwsNetworkPerformanceMetricSubscriptionRequest, output: DisableAwsNetworkPerformanceMetricSubscriptionResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "DisableAwsNetworkPerformanceMetricSubscription", })); export type DisableCapacityManagerError = | RequestLimitExceeded | CapacityManagerDisabled + | UnauthorizedOperation | CommonErrors; /** * Disables EC2 Capacity Manager for your account. This stops data ingestion and removes access to capacity analytics and optimization recommendations. @@ -89397,7 +90659,11 @@ export const disableCapacityManager: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DisableCapacityManagerRequest, output: DisableCapacityManagerResult, - errors: [RequestLimitExceeded, CapacityManagerDisabled], + errors: [ + RequestLimitExceeded, + CapacityManagerDisabled, + UnauthorizedOperation, + ], operationName: "DisableCapacityManager", })); export type DisableEbsEncryptionByDefaultError = CommonErrors; @@ -89427,6 +90693,7 @@ export const disableEbsEncryptionByDefault: API.OperationMethod< export type DisableFastLaunchError = | RequestLimitExceeded | InvalidRequest + | UnauthorizedOperation | CommonErrors; /** * Discontinue Windows fast launch for a Windows AMI, and clean up existing pre-provisioned @@ -89445,12 +90712,13 @@ export const disableFastLaunch: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DisableFastLaunchRequest, output: DisableFastLaunchResult, - errors: [RequestLimitExceeded, InvalidRequest], + errors: [RequestLimitExceeded, InvalidRequest, UnauthorizedOperation], operationName: "DisableFastLaunch", })); export type DisableFastSnapshotRestoresError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Disables fast snapshot restores for the specified snapshots in the specified Availability Zones. @@ -89463,12 +90731,13 @@ export const disableFastSnapshotRestores: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DisableFastSnapshotRestoresRequest, output: DisableFastSnapshotRestoresResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "DisableFastSnapshotRestores", })); export type DisableImageError = | RequestLimitExceeded | InvalidAMIIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Sets the AMI state to `disabled` and removes all launch permissions from the @@ -89496,7 +90765,7 @@ export const disableImage: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DisableImageRequest, output: DisableImageResult, - errors: [RequestLimitExceeded, InvalidAMIIDMalformed], + errors: [RequestLimitExceeded, InvalidAMIIDMalformed, UnauthorizedOperation], operationName: "DisableImage", })); export type DisableImageBlockPublicAccessError = CommonErrors; @@ -89523,6 +90792,7 @@ export const disableImageBlockPublicAccess: API.OperationMethod< export type DisableImageDeprecationError = | RequestLimitExceeded | InvalidAMIIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Cancels the deprecation of the specified AMI. @@ -89538,12 +90808,13 @@ export const disableImageDeprecation: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DisableImageDeprecationRequest, output: DisableImageDeprecationResult, - errors: [RequestLimitExceeded, InvalidAMIIDMalformed], + errors: [RequestLimitExceeded, InvalidAMIIDMalformed, UnauthorizedOperation], operationName: "DisableImageDeprecation", })); export type DisableImageDeregistrationProtectionError = | RequestLimitExceeded | InvalidAMIIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Disables deregistration protection for an AMI. When deregistration protection is disabled, @@ -89564,12 +90835,13 @@ export const disableImageDeregistrationProtection: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DisableImageDeregistrationProtectionRequest, output: DisableImageDeregistrationProtectionResult, - errors: [RequestLimitExceeded, InvalidAMIIDMalformed], + errors: [RequestLimitExceeded, InvalidAMIIDMalformed, UnauthorizedOperation], operationName: "DisableImageDeregistrationProtection", })); export type DisableInstanceSqlHaStandbyDetectionsError = | RequestLimitExceeded | InvalidInstanceIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Disable Amazon EC2 instances running in an SQL Server High Availability cluster from SQL Server High Availability @@ -89585,12 +90857,17 @@ export const disableInstanceSqlHaStandbyDetections: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DisableInstanceSqlHaStandbyDetectionsRequest, output: DisableInstanceSqlHaStandbyDetectionsResult, - errors: [RequestLimitExceeded, InvalidInstanceIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidInstanceIDMalformed, + UnauthorizedOperation, + ], operationName: "DisableInstanceSqlHaStandbyDetections", })); export type DisableIpamOrganizationAdminAccountError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Disable the IPAM account. For more information, see Enable integration with Organizations in the *Amazon VPC IPAM User Guide*. @@ -89603,13 +90880,14 @@ export const disableIpamOrganizationAdminAccount: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DisableIpamOrganizationAdminAccountRequest, output: DisableIpamOrganizationAdminAccountResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "DisableIpamOrganizationAdminAccount", })); export type DisableIpamPolicyError = | RequestLimitExceeded | InvalidIpamPolicyIdMalformed | InvalidIpamPolicyIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Disables an IPAM policy. @@ -89628,12 +90906,14 @@ export const disableIpamPolicy: API.OperationMethod< RequestLimitExceeded, InvalidIpamPolicyIdMalformed, InvalidIpamPolicyIdNotFound, + UnauthorizedOperation, ], operationName: "DisableIpamPolicy", })); export type DisableRouteServerPropagationError = | RequestLimitExceeded | InvalidRouteServerIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Disables route propagation from a route server to a specified route table. @@ -89663,7 +90943,11 @@ export const disableRouteServerPropagation: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DisableRouteServerPropagationRequest, output: DisableRouteServerPropagationResult, - errors: [RequestLimitExceeded, InvalidRouteServerIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidRouteServerIdNotFound, + UnauthorizedOperation, + ], operationName: "DisableRouteServerPropagation", })); export type DisableSerialConsoleAccessError = CommonErrors; @@ -89716,6 +91000,7 @@ export const disableSnapshotBlockPublicAccess: API.OperationMethod< export type DisableTransitGatewayRouteTablePropagationError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Disables the specified resource attachment from propagating routes to the specified @@ -89729,12 +91014,13 @@ export const disableTransitGatewayRouteTablePropagation: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DisableTransitGatewayRouteTablePropagationRequest, output: DisableTransitGatewayRouteTablePropagationResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "DisableTransitGatewayRouteTablePropagation", })); export type DisableVgwRoutePropagationError = | RequestLimitExceeded | InvalidRouteTableIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Disables a virtual private gateway (VGW) from propagating routes to a specified route @@ -89748,13 +91034,18 @@ export const disableVgwRoutePropagation: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DisableVgwRoutePropagationRequest, output: DisableVgwRoutePropagationResponse, - errors: [RequestLimitExceeded, InvalidRouteTableIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidRouteTableIDNotFound, + UnauthorizedOperation, + ], operationName: "DisableVgwRoutePropagation", })); export type DisableVpcClassicLinkError = | RequestLimitExceeded | InvalidVpcIDNotFound | InvalidVpcIdMalformed + | UnauthorizedOperation | CommonErrors; /** * This action is deprecated. @@ -89770,13 +91061,19 @@ export const disableVpcClassicLink: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DisableVpcClassicLinkRequest, output: DisableVpcClassicLinkResult, - errors: [RequestLimitExceeded, InvalidVpcIDNotFound, InvalidVpcIdMalformed], + errors: [ + RequestLimitExceeded, + InvalidVpcIDNotFound, + InvalidVpcIdMalformed, + UnauthorizedOperation, + ], operationName: "DisableVpcClassicLink", })); export type DisableVpcClassicLinkDnsSupportError = | RequestLimitExceeded | InvalidVpcIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * This action is deprecated. @@ -89795,13 +91092,19 @@ export const disableVpcClassicLinkDnsSupport: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DisableVpcClassicLinkDnsSupportRequest, output: DisableVpcClassicLinkDnsSupportResult, - errors: [RequestLimitExceeded, InvalidVpcIDNotFound, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidVpcIDNotFound, + MissingParameter, + UnauthorizedOperation, + ], operationName: "DisableVpcClassicLinkDnsSupport", })); export type DisassociateAddressError = | RequestLimitExceeded | InvalidAssociationIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Disassociates an Elastic IP address from the instance or network interface it's associated with. @@ -89828,6 +91131,7 @@ export const disassociateAddress: API.OperationMethod< RequestLimitExceeded, InvalidAssociationIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DisassociateAddress", })); @@ -89835,6 +91139,7 @@ export type DisassociateCapacityReservationBillingOwnerError = | RequestLimitExceeded | InvalidCapacityReservationIdMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Cancels a pending request to assign billing of the unused capacity of a Capacity @@ -89854,6 +91159,7 @@ export const disassociateCapacityReservationBillingOwner: API.OperationMethod< RequestLimitExceeded, InvalidCapacityReservationIdMalformed, MissingParameter, + UnauthorizedOperation, ], operationName: "DisassociateCapacityReservationBillingOwner", })); @@ -89861,6 +91167,7 @@ export type DisassociateClientVpnTargetNetworkError = | RequestLimitExceeded | InvalidClientVpnEndpointIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Disassociates a target network from the specified Client VPN endpoint. When you disassociate the @@ -89886,6 +91193,7 @@ export const disassociateClientVpnTargetNetwork: API.OperationMethod< RequestLimitExceeded, InvalidClientVpnEndpointIdNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DisassociateClientVpnTargetNetwork", })); @@ -89893,6 +91201,7 @@ export type DisassociateEnclaveCertificateIamRoleError = | RequestLimitExceeded | InvalidCertificateArnMalformed | InvalidRoleArnMalformed + | UnauthorizedOperation | CommonErrors; /** * Disassociates an IAM role from an Certificate Manager (ACM) certificate. Disassociating an IAM role @@ -89913,12 +91222,14 @@ export const disassociateEnclaveCertificateIamRole: API.OperationMethod< RequestLimitExceeded, InvalidCertificateArnMalformed, InvalidRoleArnMalformed, + UnauthorizedOperation, ], operationName: "DisassociateEnclaveCertificateIamRole", })); export type DisassociateIamInstanceProfileError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Disassociates an IAM instance profile from a running or stopped instance. @@ -89934,13 +91245,14 @@ export const disassociateIamInstanceProfile: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DisassociateIamInstanceProfileRequest, output: DisassociateIamInstanceProfileResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "DisassociateIamInstanceProfile", })); export type DisassociateInstanceEventWindowError = | RequestLimitExceeded | DependencyViolation | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Disassociates one or more targets from an event window. @@ -89956,12 +91268,18 @@ export const disassociateInstanceEventWindow: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DisassociateInstanceEventWindowRequest, output: DisassociateInstanceEventWindowResult, - errors: [RequestLimitExceeded, DependencyViolation, MissingParameter], + errors: [ + RequestLimitExceeded, + DependencyViolation, + MissingParameter, + UnauthorizedOperation, + ], operationName: "DisassociateInstanceEventWindow", })); export type DisassociateIpamByoasnError = | RequestLimitExceeded | InvalidCidrNotFound + | UnauthorizedOperation | CommonErrors; /** * Remove the association between your Autonomous System Number (ASN) and your BYOIP CIDR. You may want to use this action to disassociate an ASN from a CIDR or if you want to swap ASNs. @@ -89975,13 +91293,14 @@ export const disassociateIpamByoasn: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DisassociateIpamByoasnRequest, output: DisassociateIpamByoasnResult, - errors: [RequestLimitExceeded, InvalidCidrNotFound], + errors: [RequestLimitExceeded, InvalidCidrNotFound, UnauthorizedOperation], operationName: "DisassociateIpamByoasn", })); export type DisassociateIpamResourceDiscoveryError = | RequestLimitExceeded | InvalidIpamResourceDiscoveryAssociationIdMalformed | InvalidIpamResourceDiscoveryAssociationIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Disassociates a resource discovery from an Amazon VPC IPAM. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account. @@ -89998,6 +91317,7 @@ export const disassociateIpamResourceDiscovery: API.OperationMethod< RequestLimitExceeded, InvalidIpamResourceDiscoveryAssociationIdMalformed, InvalidIpamResourceDiscoveryAssociationIdNotFound, + UnauthorizedOperation, ], operationName: "DisassociateIpamResourceDiscovery", })); @@ -90006,6 +91326,7 @@ export type DisassociateNatGatewayAddressError = | MissingParameter | NatGatewayMalformed | NatGatewayNotFound + | UnauthorizedOperation | CommonErrors; /** * Disassociates secondary Elastic IP addresses (EIPs) from a public NAT gateway. @@ -90032,6 +91353,7 @@ export const disassociateNatGatewayAddress: API.OperationMethod< MissingParameter, NatGatewayMalformed, NatGatewayNotFound, + UnauthorizedOperation, ], operationName: "DisassociateNatGatewayAddress", })); @@ -90040,6 +91362,7 @@ export type DisassociateRouteServerError = | InvalidRouteServerIdNotFound | InvalidVpcIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Disassociates a route server from a VPC. @@ -90061,6 +91384,7 @@ export const disassociateRouteServer: API.OperationMethod< InvalidRouteServerIdNotFound, InvalidVpcIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DisassociateRouteServer", })); @@ -90069,6 +91393,7 @@ export type DisassociateRouteTableError = | InvalidAssociationIDNotFound | InvalidRouteTableIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Disassociates a subnet or gateway from a route table. @@ -90091,6 +91416,7 @@ export const disassociateRouteTable: API.OperationMethod< InvalidAssociationIDNotFound, InvalidRouteTableIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DisassociateRouteTable", })); @@ -90098,6 +91424,7 @@ export type DisassociateSecurityGroupVpcError = | RequestLimitExceeded | InvalidGroupIdMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Disassociates a security group from a VPC. You cannot disassociate the security group if any Elastic network interfaces in the associated VPC are still associated with the security group. @@ -90112,13 +91439,19 @@ export const disassociateSecurityGroupVpc: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DisassociateSecurityGroupVpcRequest, output: DisassociateSecurityGroupVpcResult, - errors: [RequestLimitExceeded, InvalidGroupIdMalformed, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidGroupIdMalformed, + MissingParameter, + UnauthorizedOperation, + ], operationName: "DisassociateSecurityGroupVpc", })); export type DisassociateSubnetCidrBlockError = | RequestLimitExceeded | InvalidSubnetCidrBlockAssociationIDNotFound | InvalidSubnetCidrBlockAssociationIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Disassociates a CIDR block from a subnet. Currently, you can disassociate an IPv6 CIDR block only. You must detach or delete all gateways and resources that are associated with the CIDR block before you can disassociate it. @@ -90135,6 +91468,7 @@ export const disassociateSubnetCidrBlock: API.OperationMethod< RequestLimitExceeded, InvalidSubnetCidrBlockAssociationIDNotFound, InvalidSubnetCidrBlockAssociationIdMalformed, + UnauthorizedOperation, ], operationName: "DisassociateSubnetCidrBlock", })); @@ -90142,6 +91476,7 @@ export type DisassociateTransitGatewayMulticastDomainError = | RequestLimitExceeded | InvalidTransitGatewayMulticastDomainIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Disassociates the specified subnets from the transit gateway multicast domain. @@ -90158,6 +91493,7 @@ export const disassociateTransitGatewayMulticastDomain: API.OperationMethod< RequestLimitExceeded, InvalidTransitGatewayMulticastDomainIdNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DisassociateTransitGatewayMulticastDomain", })); @@ -90166,6 +91502,7 @@ export type DisassociateTransitGatewayPolicyTableError = | InvalidTransitGatewayPolicyTableIdMalformed | InvalidTransitGatewayPolicyTableIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Removes the association between an an attachment and a policy table. @@ -90183,6 +91520,7 @@ export const disassociateTransitGatewayPolicyTable: API.OperationMethod< InvalidTransitGatewayPolicyTableIdMalformed, InvalidTransitGatewayPolicyTableIdNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "DisassociateTransitGatewayPolicyTable", })); @@ -90190,6 +91528,7 @@ export type DisassociateTransitGatewayRouteTableError = | RequestLimitExceeded | InvalidRouteTableIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Disassociates a resource attachment from a transit gateway route table. @@ -90202,12 +91541,18 @@ export const disassociateTransitGatewayRouteTable: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DisassociateTransitGatewayRouteTableRequest, output: DisassociateTransitGatewayRouteTableResult, - errors: [RequestLimitExceeded, InvalidRouteTableIDNotFound, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidRouteTableIDNotFound, + MissingParameter, + UnauthorizedOperation, + ], operationName: "DisassociateTransitGatewayRouteTable", })); export type DisassociateTrunkInterfaceError = | RequestLimitExceeded | OperationNotPermitted + | UnauthorizedOperation | CommonErrors; /** * Removes an association between a branch network interface with a trunk network interface. @@ -90220,7 +91565,7 @@ export const disassociateTrunkInterface: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DisassociateTrunkInterfaceRequest, output: DisassociateTrunkInterfaceResult, - errors: [RequestLimitExceeded, OperationNotPermitted], + errors: [RequestLimitExceeded, OperationNotPermitted, UnauthorizedOperation], operationName: "DisassociateTrunkInterface", })); export type DisassociateVpcCidrBlockError = @@ -90229,6 +91574,7 @@ export type DisassociateVpcCidrBlockError = | InvalidVpcCidrBlockAssociationIdMalformed | InvalidVpcCidrBlockAssociationIdErrorNotFound | OperationNotPermitted + | UnauthorizedOperation | CommonErrors; /** * Disassociates a CIDR block from a VPC. To disassociate the CIDR block, you must @@ -90253,12 +91599,14 @@ export const disassociateVpcCidrBlock: API.OperationMethod< InvalidVpcCidrBlockAssociationIdMalformed, InvalidVpcCidrBlockAssociationIdErrorNotFound, OperationNotPermitted, + UnauthorizedOperation, ], operationName: "DisassociateVpcCidrBlock", })); export type EnableAddressTransferError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Enables Elastic IP address transfer. For more information, see Transfer Elastic IP addresses in the *Amazon VPC User Guide*. @@ -90271,7 +91619,7 @@ export const enableAddressTransfer: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: EnableAddressTransferRequest, output: EnableAddressTransferResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "EnableAddressTransfer", })); export type EnableAllowedImagesSettingsError = CommonErrors; @@ -90315,6 +91663,7 @@ export const enableAllowedImagesSettings: API.OperationMethod< export type EnableAwsNetworkPerformanceMetricSubscriptionError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Enables Infrastructure Performance subscriptions. @@ -90327,7 +91676,7 @@ export const enableAwsNetworkPerformanceMetricSubscription: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: EnableAwsNetworkPerformanceMetricSubscriptionRequest, output: EnableAwsNetworkPerformanceMetricSubscriptionResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "EnableAwsNetworkPerformanceMetricSubscription", })); export type EnableCapacityManagerError = CommonErrors; @@ -90376,6 +91725,7 @@ export const enableEbsEncryptionByDefault: API.OperationMethod< export type EnableFastLaunchError = | RequestLimitExceeded | InvalidRequest + | UnauthorizedOperation | CommonErrors; /** * When you enable Windows fast launch for a Windows AMI, images are pre-provisioned, using @@ -90396,12 +91746,13 @@ export const enableFastLaunch: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: EnableFastLaunchRequest, output: EnableFastLaunchResult, - errors: [RequestLimitExceeded, InvalidRequest], + errors: [RequestLimitExceeded, InvalidRequest, UnauthorizedOperation], operationName: "EnableFastLaunch", })); export type EnableFastSnapshotRestoresError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Enables fast snapshot restores for the specified snapshots in the specified Availability Zones. @@ -90419,12 +91770,13 @@ export const enableFastSnapshotRestores: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: EnableFastSnapshotRestoresRequest, output: EnableFastSnapshotRestoresResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "EnableFastSnapshotRestores", })); export type EnableImageError = | RequestLimitExceeded | InvalidAMIIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Re-enables a disabled AMI. The re-enabled AMI is marked as `available` and can @@ -90446,12 +91798,13 @@ export const enableImage: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: EnableImageRequest, output: EnableImageResult, - errors: [RequestLimitExceeded, InvalidAMIIDMalformed], + errors: [RequestLimitExceeded, InvalidAMIIDMalformed, UnauthorizedOperation], operationName: "EnableImage", })); export type EnableImageBlockPublicAccessError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Enables *block public access for AMIs* at the account level in the @@ -90474,12 +91827,13 @@ export const enableImageBlockPublicAccess: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: EnableImageBlockPublicAccessRequest, output: EnableImageBlockPublicAccessResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "EnableImageBlockPublicAccess", })); export type EnableImageDeprecationError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Enables deprecation of the specified AMI at the specified date and time. @@ -90495,12 +91849,13 @@ export const enableImageDeprecation: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: EnableImageDeprecationRequest, output: EnableImageDeprecationResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "EnableImageDeprecation", })); export type EnableImageDeregistrationProtectionError = | RequestLimitExceeded | InvalidAMIIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Enables deregistration protection for an AMI. When deregistration protection is enabled, @@ -90519,12 +91874,13 @@ export const enableImageDeregistrationProtection: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: EnableImageDeregistrationProtectionRequest, output: EnableImageDeregistrationProtectionResult, - errors: [RequestLimitExceeded, InvalidAMIIDMalformed], + errors: [RequestLimitExceeded, InvalidAMIIDMalformed, UnauthorizedOperation], operationName: "EnableImageDeregistrationProtection", })); export type EnableInstanceSqlHaStandbyDetectionsError = | RequestLimitExceeded | InvalidInstanceIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Enable Amazon EC2 instances running in an SQL Server High Availability cluster for SQL Server High Availability @@ -90547,12 +91903,17 @@ export const enableInstanceSqlHaStandbyDetections: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: EnableInstanceSqlHaStandbyDetectionsRequest, output: EnableInstanceSqlHaStandbyDetectionsResult, - errors: [RequestLimitExceeded, InvalidInstanceIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidInstanceIDMalformed, + UnauthorizedOperation, + ], operationName: "EnableInstanceSqlHaStandbyDetections", })); export type EnableIpamOrganizationAdminAccountError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Enable an Organizations member account as the IPAM admin account. You cannot select the Organizations management account as the IPAM admin account. For more information, see Enable integration with Organizations in the *Amazon VPC IPAM User Guide*. @@ -90565,13 +91926,14 @@ export const enableIpamOrganizationAdminAccount: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: EnableIpamOrganizationAdminAccountRequest, output: EnableIpamOrganizationAdminAccountResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "EnableIpamOrganizationAdminAccount", })); export type EnableIpamPolicyError = | RequestLimitExceeded | InvalidIpamPolicyIdMalformed | InvalidIpamPolicyIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Enables an IPAM policy. @@ -90592,6 +91954,7 @@ export const enableIpamPolicy: API.OperationMethod< RequestLimitExceeded, InvalidIpamPolicyIdMalformed, InvalidIpamPolicyIdNotFound, + UnauthorizedOperation, ], operationName: "EnableIpamPolicy", })); @@ -90618,6 +91981,7 @@ export const enableReachabilityAnalyzerOrganizationSharing: API.OperationMethod< export type EnableRouteServerPropagationError = | RequestLimitExceeded | InvalidRouteServerIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Defines which route tables the route server can update with routes. @@ -90634,7 +91998,11 @@ export const enableRouteServerPropagation: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: EnableRouteServerPropagationRequest, output: EnableRouteServerPropagationResult, - errors: [RequestLimitExceeded, InvalidRouteServerIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidRouteServerIdNotFound, + UnauthorizedOperation, + ], operationName: "EnableRouteServerPropagation", })); export type EnableSerialConsoleAccessError = CommonErrors; @@ -90657,6 +92025,7 @@ export const enableSerialConsoleAccess: API.OperationMethod< export type EnableSnapshotBlockPublicAccessError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Enables or modifies the *block public access for snapshots* @@ -90686,12 +92055,13 @@ export const enableSnapshotBlockPublicAccess: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: EnableSnapshotBlockPublicAccessRequest, output: EnableSnapshotBlockPublicAccessResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "EnableSnapshotBlockPublicAccess", })); export type EnableTransitGatewayRouteTablePropagationError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Enables the specified attachment to propagate routes to the specified @@ -90705,12 +92075,13 @@ export const enableTransitGatewayRouteTablePropagation: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: EnableTransitGatewayRouteTablePropagationRequest, output: EnableTransitGatewayRouteTablePropagationResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "EnableTransitGatewayRouteTablePropagation", })); export type EnableVgwRoutePropagationError = | RequestLimitExceeded | InvalidRouteTableIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Enables a virtual private gateway (VGW) to propagate routes to the specified route @@ -90724,7 +92095,11 @@ export const enableVgwRoutePropagation: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: EnableVgwRoutePropagationRequest, output: EnableVgwRoutePropagationResponse, - errors: [RequestLimitExceeded, InvalidRouteTableIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidRouteTableIDNotFound, + UnauthorizedOperation, + ], operationName: "EnableVgwRoutePropagation", })); export type EnableVolumeIOError = CommonErrors; @@ -90747,6 +92122,7 @@ export type EnableVpcClassicLinkError = | RequestLimitExceeded | InvalidVpcIDNotFound | InvalidVpcIdMalformed + | UnauthorizedOperation | CommonErrors; /** * This action is deprecated. @@ -90766,13 +92142,19 @@ export const enableVpcClassicLink: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: EnableVpcClassicLinkRequest, output: EnableVpcClassicLinkResult, - errors: [RequestLimitExceeded, InvalidVpcIDNotFound, InvalidVpcIdMalformed], + errors: [ + RequestLimitExceeded, + InvalidVpcIDNotFound, + InvalidVpcIdMalformed, + UnauthorizedOperation, + ], operationName: "EnableVpcClassicLink", })); export type EnableVpcClassicLinkDnsSupportError = | RequestLimitExceeded | InvalidVpcIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * This action is deprecated. @@ -90793,12 +92175,18 @@ export const enableVpcClassicLinkDnsSupport: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: EnableVpcClassicLinkDnsSupportRequest, output: EnableVpcClassicLinkDnsSupportResult, - errors: [RequestLimitExceeded, InvalidVpcIDNotFound, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidVpcIDNotFound, + MissingParameter, + UnauthorizedOperation, + ], operationName: "EnableVpcClassicLinkDnsSupport", })); export type ExportClientVpnClientCertificateRevocationListError = | RequestLimitExceeded | InvalidClientVpnEndpointIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Downloads the client certificate revocation list for the specified Client VPN endpoint. @@ -90811,12 +92199,17 @@ export const exportClientVpnClientCertificateRevocationList: API.OperationMethod > = /*@__PURE__*/ API.make(() => ({ input: ExportClientVpnClientCertificateRevocationListRequest, output: ExportClientVpnClientCertificateRevocationListResult, - errors: [RequestLimitExceeded, InvalidClientVpnEndpointIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidClientVpnEndpointIdNotFound, + UnauthorizedOperation, + ], operationName: "ExportClientVpnClientCertificateRevocationList", })); export type ExportClientVpnClientConfigurationError = | RequestLimitExceeded | InvalidClientVpnEndpointIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Downloads the contents of the Client VPN endpoint configuration file for the specified Client VPN endpoint. The Client VPN endpoint configuration @@ -90831,12 +92224,17 @@ export const exportClientVpnClientConfiguration: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ExportClientVpnClientConfigurationRequest, output: ExportClientVpnClientConfigurationResult, - errors: [RequestLimitExceeded, InvalidClientVpnEndpointIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidClientVpnEndpointIdNotFound, + UnauthorizedOperation, + ], operationName: "ExportClientVpnClientConfiguration", })); export type ExportImageError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Exports an Amazon Machine Image (AMI) to a VM file. For more information, see Exporting a VM @@ -90851,12 +92249,13 @@ export const exportImage: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ExportImageRequest, output: ExportImageResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "ExportImage", })); export type ExportTransitGatewayRoutesError = | RequestLimitExceeded | InvalidRouteTableIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Exports routes from the specified transit gateway route table to the specified S3 bucket. @@ -90874,12 +92273,17 @@ export const exportTransitGatewayRoutes: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ExportTransitGatewayRoutesRequest, output: ExportTransitGatewayRoutesResult, - errors: [RequestLimitExceeded, InvalidRouteTableIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidRouteTableIDNotFound, + UnauthorizedOperation, + ], operationName: "ExportTransitGatewayRoutes", })); export type ExportVerifiedAccessInstanceClientConfigurationError = | RequestLimitExceeded | InvalidVerifiedAccessInstanceIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Exports the client configuration for a Verified Access instance. @@ -90892,12 +92296,17 @@ export const exportVerifiedAccessInstanceClientConfiguration: API.OperationMetho > = /*@__PURE__*/ API.make(() => ({ input: ExportVerifiedAccessInstanceClientConfigurationRequest, output: ExportVerifiedAccessInstanceClientConfigurationResult, - errors: [RequestLimitExceeded, InvalidVerifiedAccessInstanceIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidVerifiedAccessInstanceIdNotFound, + UnauthorizedOperation, + ], operationName: "ExportVerifiedAccessInstanceClientConfiguration", })); export type GetActiveVpnTunnelStatusError = | RequestLimitExceeded | InvalidVpnConnectionIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Returns the currently negotiated security parameters for an active VPN tunnel, including IKE version, DH groups, encryption algorithms, and integrity algorithms. @@ -90910,7 +92319,11 @@ export const getActiveVpnTunnelStatus: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetActiveVpnTunnelStatusRequest, output: GetActiveVpnTunnelStatusResult, - errors: [RequestLimitExceeded, InvalidVpnConnectionIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidVpnConnectionIDNotFound, + UnauthorizedOperation, + ], operationName: "GetActiveVpnTunnelStatus", })); export type GetAllowedImagesSettingsError = CommonErrors; @@ -90966,6 +92379,7 @@ export const getAssociatedEnclaveCertificateIamRoles: API.OperationMethod< export type GetAssociatedIpv6PoolCidrsError = | RequestLimitExceeded | InvalidIpv6PoolIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Gets information about the IPv6 CIDR block associations for a specified IPv6 address pool. @@ -90993,7 +92407,11 @@ export const getAssociatedIpv6PoolCidrs: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: GetAssociatedIpv6PoolCidrsRequest, output: GetAssociatedIpv6PoolCidrsResult, - errors: [RequestLimitExceeded, InvalidIpv6PoolIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidIpv6PoolIDMalformed, + UnauthorizedOperation, + ], operationName: "GetAssociatedIpv6PoolCidrs", pagination: { inputToken: "NextToken", @@ -91005,6 +92423,7 @@ export const getAssociatedIpv6PoolCidrs: API.OperationMethod< export type GetAwsNetworkPerformanceDataError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Gets network performance data. @@ -91032,7 +92451,7 @@ export const getAwsNetworkPerformanceData: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: GetAwsNetworkPerformanceDataRequest, output: GetAwsNetworkPerformanceDataResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "GetAwsNetworkPerformanceData", pagination: { inputToken: "NextToken", @@ -91059,6 +92478,7 @@ export const getCapacityManagerAttributes: API.OperationMethod< export type GetCapacityManagerMetricDataError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Retrieves capacity usage metrics for your EC2 resources. Returns time-series data for metrics like unused capacity, utilization rates, and costs @@ -91087,7 +92507,7 @@ export const getCapacityManagerMetricData: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: GetCapacityManagerMetricDataRequest, output: GetCapacityManagerMetricDataResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "GetCapacityManagerMetricData", pagination: { inputToken: "NextToken", @@ -91099,6 +92519,7 @@ export const getCapacityManagerMetricData: API.OperationMethod< export type GetCapacityManagerMetricDimensionsError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Retrieves the available dimension values for capacity metrics within a specified time range. This is useful for discovering what accounts, @@ -91127,7 +92548,7 @@ export const getCapacityManagerMetricDimensions: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: GetCapacityManagerMetricDimensionsRequest, output: GetCapacityManagerMetricDimensionsResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "GetCapacityManagerMetricDimensions", pagination: { inputToken: "NextToken", @@ -91175,6 +92596,7 @@ export const getCapacityManagerMonitoredTagKeys: API.OperationMethod< export type GetCapacityReservationUsageError = | RequestLimitExceeded | InvalidCapacityReservationIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Gets usage information about a Capacity Reservation. If the Capacity Reservation is @@ -91189,12 +92611,17 @@ export const getCapacityReservationUsage: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetCapacityReservationUsageRequest, output: GetCapacityReservationUsageResult, - errors: [RequestLimitExceeded, InvalidCapacityReservationIdMalformed], + errors: [ + RequestLimitExceeded, + InvalidCapacityReservationIdMalformed, + UnauthorizedOperation, + ], operationName: "GetCapacityReservationUsage", })); export type GetCoipPoolUsageError = | RequestLimitExceeded | InvalidPoolIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Describes the allocations from the specified customer-owned address pool. @@ -91207,13 +92634,14 @@ export const getCoipPoolUsage: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetCoipPoolUsageRequest, output: GetCoipPoolUsageResult, - errors: [RequestLimitExceeded, InvalidPoolIDMalformed], + errors: [RequestLimitExceeded, InvalidPoolIDMalformed, UnauthorizedOperation], operationName: "GetCoipPoolUsage", })); export type GetConsoleOutputError = | RequestLimitExceeded | InvalidInstanceIDMalformed | InvalidInstanceIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Gets the console output for the specified instance. For Linux instances, the instance @@ -91236,6 +92664,7 @@ export const getConsoleOutput: API.OperationMethod< RequestLimitExceeded, InvalidInstanceIDMalformed, InvalidInstanceIDNotFound, + UnauthorizedOperation, ], operationName: "GetConsoleOutput", })); @@ -91243,6 +92672,7 @@ export type GetConsoleScreenshotError = | RequestLimitExceeded | InvalidInstanceIDMalformed | InvalidInstanceIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Retrieve a JPG-format screenshot of a running instance to help with @@ -91264,12 +92694,14 @@ export const getConsoleScreenshot: API.OperationMethod< RequestLimitExceeded, InvalidInstanceIDMalformed, InvalidInstanceIDNotFound, + UnauthorizedOperation, ], operationName: "GetConsoleScreenshot", })); export type GetDeclarativePoliciesReportSummaryError = | RequestLimitExceeded | InvalidDeclarativePoliciesReportIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Retrieves a summary of the account status report. @@ -91292,12 +92724,17 @@ export const getDeclarativePoliciesReportSummary: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetDeclarativePoliciesReportSummaryRequest, output: GetDeclarativePoliciesReportSummaryResult, - errors: [RequestLimitExceeded, InvalidDeclarativePoliciesReportIdMalformed], + errors: [ + RequestLimitExceeded, + InvalidDeclarativePoliciesReportIdMalformed, + UnauthorizedOperation, + ], operationName: "GetDeclarativePoliciesReportSummary", })); export type GetDefaultCreditSpecificationError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Describes the default credit option for CPU usage of a burstable performance instance @@ -91314,7 +92751,7 @@ export const getDefaultCreditSpecification: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetDefaultCreditSpecificationRequest, output: GetDefaultCreditSpecificationResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "GetDefaultCreditSpecification", })); export type GetEbsDefaultKmsKeyIdError = CommonErrors; @@ -91403,6 +92840,7 @@ export const getFlowLogsIntegrationTemplate: API.OperationMethod< export type GetGroupsForCapacityReservationError = | RequestLimitExceeded | InvalidCapacityReservationIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Lists the resource groups to which a Capacity Reservation has been added. @@ -91430,7 +92868,11 @@ export const getGroupsForCapacityReservation: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: GetGroupsForCapacityReservationRequest, output: GetGroupsForCapacityReservationResult, - errors: [RequestLimitExceeded, InvalidCapacityReservationIdMalformed], + errors: [ + RequestLimitExceeded, + InvalidCapacityReservationIdMalformed, + UnauthorizedOperation, + ], operationName: "GetGroupsForCapacityReservation", pagination: { inputToken: "NextToken", @@ -91462,6 +92904,7 @@ export const getHostReservationPurchasePreview: API.OperationMethod< export type GetImageAncestryError = | RequestLimitExceeded | InvalidAMIIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Retrieves the ancestry chain of the specified AMI, tracing its lineage back to the root @@ -91476,7 +92919,7 @@ export const getImageAncestry: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetImageAncestryRequest, output: GetImageAncestryResult, - errors: [RequestLimitExceeded, InvalidAMIIDMalformed], + errors: [RequestLimitExceeded, InvalidAMIIDMalformed, UnauthorizedOperation], operationName: "GetImageAncestry", })); export type GetImageBlockPublicAccessStateError = CommonErrors; @@ -91521,6 +92964,7 @@ export const getInstanceMetadataDefaults: API.OperationMethod< export type GetInstanceTpmEkPubError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Gets the public endorsement key associated with the Nitro Trusted @@ -91534,12 +92978,13 @@ export const getInstanceTpmEkPub: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetInstanceTpmEkPubRequest, output: GetInstanceTpmEkPubResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "GetInstanceTpmEkPub", })); export type GetInstanceTypesFromInstanceRequirementsError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Returns a list of instance types with the specified instance attributes. You can @@ -91578,7 +93023,7 @@ export const getInstanceTypesFromInstanceRequirements: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: GetInstanceTypesFromInstanceRequirementsRequest, output: GetInstanceTypesFromInstanceRequirementsResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "GetInstanceTypesFromInstanceRequirements", pagination: { inputToken: "NextToken", @@ -91590,6 +93035,7 @@ export const getInstanceTypesFromInstanceRequirements: API.OperationMethod< export type GetInstanceUefiDataError = | RequestLimitExceeded | InvalidInstanceIDMalformed + | UnauthorizedOperation | CommonErrors; /** * A binary representation of the UEFI variable store. Only non-volatile variables are @@ -91614,12 +93060,17 @@ export const getInstanceUefiData: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetInstanceUefiDataRequest, output: GetInstanceUefiDataResult, - errors: [RequestLimitExceeded, InvalidInstanceIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidInstanceIDMalformed, + UnauthorizedOperation, + ], operationName: "GetInstanceUefiData", })); export type GetIpamAddressHistoryError = | RequestLimitExceeded | InvalidIpamScopeIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Retrieve historical information about a CIDR within an IPAM scope. For more information, see View the history of IP addresses in the *Amazon VPC IPAM User Guide*. @@ -91647,7 +93098,11 @@ export const getIpamAddressHistory: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: GetIpamAddressHistoryRequest, output: GetIpamAddressHistoryResult, - errors: [RequestLimitExceeded, InvalidIpamScopeIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidIpamScopeIdNotFound, + UnauthorizedOperation, + ], operationName: "GetIpamAddressHistory", pagination: { inputToken: "NextToken", @@ -91660,6 +93115,7 @@ export type GetIpamDiscoveredAccountsError = | RequestLimitExceeded | InvalidIpamResourceDiscoveryIdMalformed | InvalidIpamResourceDiscoveryIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Gets IPAM discovered accounts. A discovered account is an Amazon Web Services account that is monitored under a resource discovery. If you have integrated IPAM with Amazon Web Services Organizations, all accounts in the organization are discovered accounts. Only the IPAM account can get all discovered accounts in the organization. @@ -91691,6 +93147,7 @@ export const getIpamDiscoveredAccounts: API.OperationMethod< RequestLimitExceeded, InvalidIpamResourceDiscoveryIdMalformed, InvalidIpamResourceDiscoveryIdNotFound, + UnauthorizedOperation, ], operationName: "GetIpamDiscoveredAccounts", pagination: { @@ -91704,6 +93161,7 @@ export type GetIpamDiscoveredPublicAddressesError = | RequestLimitExceeded | InvalidIpamResourceDiscoveryIdMalformed | InvalidIpamResourceDiscoveryIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Gets the public IP addresses that have been discovered by IPAM. @@ -91720,6 +93178,7 @@ export const getIpamDiscoveredPublicAddresses: API.OperationMethod< RequestLimitExceeded, InvalidIpamResourceDiscoveryIdMalformed, InvalidIpamResourceDiscoveryIdNotFound, + UnauthorizedOperation, ], operationName: "GetIpamDiscoveredPublicAddresses", })); @@ -91727,6 +93186,7 @@ export type GetIpamDiscoveredResourceCidrsError = | RequestLimitExceeded | InvalidIpamResourceDiscoveryIdMalformed | InvalidIpamResourceDiscoveryIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Returns the resource CIDRs that are monitored as part of a resource discovery. A discovered resource is a resource CIDR monitored under a resource discovery. The following resources can be discovered: VPCs, Public IPv4 pools, VPC subnets, and Elastic IP addresses. @@ -91758,6 +93218,7 @@ export const getIpamDiscoveredResourceCidrs: API.OperationMethod< RequestLimitExceeded, InvalidIpamResourceDiscoveryIdMalformed, InvalidIpamResourceDiscoveryIdNotFound, + UnauthorizedOperation, ], operationName: "GetIpamDiscoveredResourceCidrs", pagination: { @@ -91771,6 +93232,7 @@ export type GetIpamPolicyAllocationRulesError = | RequestLimitExceeded | InvalidIpamPolicyIdMalformed | InvalidIpamPolicyIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Gets the allocation rules for an IPAM policy. @@ -91791,6 +93253,7 @@ export const getIpamPolicyAllocationRules: API.OperationMethod< RequestLimitExceeded, InvalidIpamPolicyIdMalformed, InvalidIpamPolicyIdNotFound, + UnauthorizedOperation, ], operationName: "GetIpamPolicyAllocationRules", })); @@ -91798,6 +93261,7 @@ export type GetIpamPolicyOrganizationTargetsError = | RequestLimitExceeded | InvalidIpamPolicyIdMalformed | InvalidIpamPolicyIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Gets the Amazon Web Services Organizations targets for an IPAM policy. @@ -91818,6 +93282,7 @@ export const getIpamPolicyOrganizationTargets: API.OperationMethod< RequestLimitExceeded, InvalidIpamPolicyIdMalformed, InvalidIpamPolicyIdNotFound, + UnauthorizedOperation, ], operationName: "GetIpamPolicyOrganizationTargets", })); @@ -91825,6 +93290,7 @@ export type GetIpamPoolAllocationsError = | RequestLimitExceeded | InvalidIpamPoolIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Get a list of all the CIDR allocations in an IPAM pool. The Region you use should be the IPAM pool locale. The locale is the Amazon Web Services Region where this IPAM pool is available for allocations. @@ -91854,7 +93320,12 @@ export const getIpamPoolAllocations: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: GetIpamPoolAllocationsRequest, output: GetIpamPoolAllocationsResult, - errors: [RequestLimitExceeded, InvalidIpamPoolIdNotFound, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidIpamPoolIdNotFound, + MissingParameter, + UnauthorizedOperation, + ], operationName: "GetIpamPoolAllocations", pagination: { inputToken: "NextToken", @@ -91867,6 +93338,7 @@ export type GetIpamPoolCidrsError = | RequestLimitExceeded | InvalidIpamPoolIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Get the CIDRs provisioned to an IPAM pool. @@ -91894,7 +93366,12 @@ export const getIpamPoolCidrs: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: GetIpamPoolCidrsRequest, output: GetIpamPoolCidrsResult, - errors: [RequestLimitExceeded, InvalidIpamPoolIdNotFound, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidIpamPoolIdNotFound, + MissingParameter, + UnauthorizedOperation, + ], operationName: "GetIpamPoolCidrs", pagination: { inputToken: "NextToken", @@ -91907,6 +93384,7 @@ export type GetIpamPrefixListResolverRulesError = | RequestLimitExceeded | InvalidIpamPrefixListResolverIdMalformed | InvalidIpamPrefixListResolverIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Retrieves the CIDR selection rules for an IPAM prefix list resolver. Use this operation to view the business logic that determines which CIDRs are selected for synchronization with prefix lists. @@ -91938,6 +93416,7 @@ export const getIpamPrefixListResolverRules: API.OperationMethod< RequestLimitExceeded, InvalidIpamPrefixListResolverIdMalformed, InvalidIpamPrefixListResolverIdNotFound, + UnauthorizedOperation, ], operationName: "GetIpamPrefixListResolverRules", pagination: { @@ -91950,6 +93429,7 @@ export const getIpamPrefixListResolverRules: API.OperationMethod< export type GetIpamPrefixListResolverVersionEntriesError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Retrieves the CIDR entries for a specific version of an IPAM prefix list resolver. This shows the actual CIDRs that were selected and synchronized at a particular point in time. @@ -91977,7 +93457,7 @@ export const getIpamPrefixListResolverVersionEntries: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: GetIpamPrefixListResolverVersionEntriesRequest, output: GetIpamPrefixListResolverVersionEntriesResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "GetIpamPrefixListResolverVersionEntries", pagination: { inputToken: "NextToken", @@ -91990,6 +93470,7 @@ export type GetIpamPrefixListResolverVersionsError = | RequestLimitExceeded | InvalidIpamPrefixListResolverIdMalformed | InvalidIpamPrefixListResolverIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Retrieves version information for an IPAM prefix list resolver. @@ -92048,6 +93529,7 @@ export const getIpamPrefixListResolverVersions: API.OperationMethod< RequestLimitExceeded, InvalidIpamPrefixListResolverIdMalformed, InvalidIpamPrefixListResolverIdNotFound, + UnauthorizedOperation, ], operationName: "GetIpamPrefixListResolverVersions", pagination: { @@ -92061,6 +93543,7 @@ export type GetIpamResourceCidrsError = | RequestLimitExceeded | InvalidIpamPoolIdNotFound | InvalidIpamScopeIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Returns resource CIDRs managed by IPAM in a given scope. If an IPAM is associated with more than one resource discovery, the resource CIDRs across all of the resource discoveries is returned. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account. @@ -92092,6 +93575,7 @@ export const getIpamResourceCidrs: API.OperationMethod< RequestLimitExceeded, InvalidIpamPoolIdNotFound, InvalidIpamScopeIdNotFound, + UnauthorizedOperation, ], operationName: "GetIpamResourceCidrs", pagination: { @@ -92104,6 +93588,7 @@ export const getIpamResourceCidrs: API.OperationMethod< export type GetLaunchTemplateDataError = | RequestLimitExceeded | InvalidInstanceIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Retrieves the configuration data of the specified instance. You can use this data to @@ -92124,13 +93609,18 @@ export const getLaunchTemplateData: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetLaunchTemplateDataRequest, output: GetLaunchTemplateDataResult, - errors: [RequestLimitExceeded, InvalidInstanceIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidInstanceIDMalformed, + UnauthorizedOperation, + ], operationName: "GetLaunchTemplateData", })); export type GetManagedPrefixListAssociationsError = | RequestLimitExceeded | InvalidPrefixListIDNotFound | InvalidPrefixListIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Gets information about the resources that are associated with the specified managed prefix list. @@ -92162,6 +93652,7 @@ export const getManagedPrefixListAssociations: API.OperationMethod< RequestLimitExceeded, InvalidPrefixListIDNotFound, InvalidPrefixListIdMalformed, + UnauthorizedOperation, ], operationName: "GetManagedPrefixListAssociations", pagination: { @@ -92176,6 +93667,7 @@ export type GetManagedPrefixListEntriesError = | InvalidPrefixListIDNotFound | InvalidPrefixListIdMalformed | ParseError + | UnauthorizedOperation | CommonErrors; /** * Gets information about the entries for a specified managed prefix list. @@ -92208,6 +93700,7 @@ export const getManagedPrefixListEntries: API.OperationMethod< InvalidPrefixListIDNotFound, InvalidPrefixListIdMalformed, ParseError, + UnauthorizedOperation, ], operationName: "GetManagedPrefixListEntries", pagination: { @@ -92236,6 +93729,7 @@ export const getManagedResourceVisibility: API.OperationMethod< export type GetNetworkInsightsAccessScopeAnalysisFindingsError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Gets the findings for the specified Network Access Scope analysis. @@ -92263,7 +93757,7 @@ export const getNetworkInsightsAccessScopeAnalysisFindings: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: GetNetworkInsightsAccessScopeAnalysisFindingsRequest, output: GetNetworkInsightsAccessScopeAnalysisFindingsResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "GetNetworkInsightsAccessScopeAnalysisFindings", pagination: { inputToken: "NextToken", @@ -92275,6 +93769,7 @@ export const getNetworkInsightsAccessScopeAnalysisFindings: API.OperationMethod< export type GetNetworkInsightsAccessScopeContentError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Gets the content for the specified Network Access Scope. @@ -92287,13 +93782,14 @@ export const getNetworkInsightsAccessScopeContent: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetNetworkInsightsAccessScopeContentRequest, output: GetNetworkInsightsAccessScopeContentResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "GetNetworkInsightsAccessScopeContent", })); export type GetPasswordDataError = | RequestLimitExceeded | InvalidInstanceIDMalformed | InvalidInstanceIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Retrieves the encrypted administrator password for a running Windows instance. @@ -92326,12 +93822,14 @@ export const getPasswordData: API.OperationMethod< RequestLimitExceeded, InvalidInstanceIDMalformed, InvalidInstanceIDNotFound, + UnauthorizedOperation, ], operationName: "GetPasswordData", })); export type GetReservedInstancesExchangeQuoteError = | RequestLimitExceeded | InvalidReservedInstancesIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Returns a quote and exchange information for exchanging one or more specified Convertible @@ -92346,12 +93844,17 @@ export const getReservedInstancesExchangeQuote: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetReservedInstancesExchangeQuoteRequest, output: GetReservedInstancesExchangeQuoteResult, - errors: [RequestLimitExceeded, InvalidReservedInstancesIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidReservedInstancesIDNotFound, + UnauthorizedOperation, + ], operationName: "GetReservedInstancesExchangeQuote", })); export type GetRouteServerAssociationsError = | RequestLimitExceeded | InvalidRouteServerIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Gets information about the associations for the specified route server. @@ -92368,12 +93871,17 @@ export const getRouteServerAssociations: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetRouteServerAssociationsRequest, output: GetRouteServerAssociationsResult, - errors: [RequestLimitExceeded, InvalidRouteServerIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidRouteServerIdNotFound, + UnauthorizedOperation, + ], operationName: "GetRouteServerAssociations", })); export type GetRouteServerPropagationsError = | RequestLimitExceeded | InvalidRouteServerIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Gets information about the route propagations for the specified route server. @@ -92401,12 +93909,17 @@ export const getRouteServerPropagations: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetRouteServerPropagationsRequest, output: GetRouteServerPropagationsResult, - errors: [RequestLimitExceeded, InvalidRouteServerIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidRouteServerIdNotFound, + UnauthorizedOperation, + ], operationName: "GetRouteServerPropagations", })); export type GetRouteServerRoutingDatabaseError = | RequestLimitExceeded | InvalidRouteServerIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Gets the routing database for the specified route server. The Routing Information Base (RIB) serves as a database that stores all the routing information and network topology data collected by a router or routing system, such as routes learned from BGP peers. The RIB is constantly updated as new routing information is received or existing routes change. This ensures that the route server always has the most current view of the network topology and can make optimal routing decisions. @@ -92432,13 +93945,18 @@ export const getRouteServerRoutingDatabase: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetRouteServerRoutingDatabaseRequest, output: GetRouteServerRoutingDatabaseResult, - errors: [RequestLimitExceeded, InvalidRouteServerIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidRouteServerIdNotFound, + UnauthorizedOperation, + ], operationName: "GetRouteServerRoutingDatabase", })); export type GetSecurityGroupsForVpcError = | RequestLimitExceeded | InvalidVpcIdMalformed | ParseError + | UnauthorizedOperation | CommonErrors; /** * Gets security groups that can be associated by the Amazon Web Services account making the request with network interfaces in the specified VPC. @@ -92466,7 +93984,12 @@ export const getSecurityGroupsForVpc: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: GetSecurityGroupsForVpcRequest, output: GetSecurityGroupsForVpcResult, - errors: [RequestLimitExceeded, InvalidVpcIdMalformed, ParseError], + errors: [ + RequestLimitExceeded, + InvalidVpcIdMalformed, + ParseError, + UnauthorizedOperation, + ], operationName: "GetSecurityGroupsForVpc", pagination: { inputToken: "NextToken", @@ -92561,6 +94084,7 @@ export type GetSubnetCidrReservationsError = | RequestLimitExceeded | InvalidSubnetIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Gets information about the subnet CIDR reservations. @@ -92573,12 +94097,18 @@ export const getSubnetCidrReservations: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetSubnetCidrReservationsRequest, output: GetSubnetCidrReservationsResult, - errors: [RequestLimitExceeded, InvalidSubnetIDNotFound, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidSubnetIDNotFound, + MissingParameter, + UnauthorizedOperation, + ], operationName: "GetSubnetCidrReservations", })); export type GetTransitGatewayAttachmentPropagationsError = | RequestLimitExceeded | InvalidTransitGatewayAttachmentIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Lists the route tables to which the specified resource attachment propagates routes. @@ -92606,7 +94136,11 @@ export const getTransitGatewayAttachmentPropagations: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: GetTransitGatewayAttachmentPropagationsRequest, output: GetTransitGatewayAttachmentPropagationsResult, - errors: [RequestLimitExceeded, InvalidTransitGatewayAttachmentIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidTransitGatewayAttachmentIDNotFound, + UnauthorizedOperation, + ], operationName: "GetTransitGatewayAttachmentPropagations", pagination: { inputToken: "NextToken", @@ -92619,6 +94153,7 @@ export type GetTransitGatewayMeteringPolicyEntriesError = | RequestLimitExceeded | InvalidTransitGatewayMeteringPolicyIdNotFound | InvalidTransitGatewayMeteringPolicyIdMalformedException + | UnauthorizedOperation | CommonErrors; /** * Retrieves the entries for a transit gateway metering policy. @@ -92635,6 +94170,7 @@ export const getTransitGatewayMeteringPolicyEntries: API.OperationMethod< RequestLimitExceeded, InvalidTransitGatewayMeteringPolicyIdNotFound, InvalidTransitGatewayMeteringPolicyIdMalformedException, + UnauthorizedOperation, ], operationName: "GetTransitGatewayMeteringPolicyEntries", })); @@ -92643,6 +94179,7 @@ export type GetTransitGatewayMulticastDomainAssociationsError = | InvalidTransitGatewayMulticastDomainIdMalformed | InvalidTransitGatewayMulticastDomainIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Gets information about the associations for the transit gateway multicast domain. @@ -92675,6 +94212,7 @@ export const getTransitGatewayMulticastDomainAssociations: API.OperationMethod< InvalidTransitGatewayMulticastDomainIdMalformed, InvalidTransitGatewayMulticastDomainIdNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "GetTransitGatewayMulticastDomainAssociations", pagination: { @@ -92688,6 +94226,7 @@ export type GetTransitGatewayPolicyTableAssociationsError = | RequestLimitExceeded | InvalidTransitGatewayPolicyTableIdMalformed | InvalidTransitGatewayPolicyTableIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Gets a list of the transit gateway policy table associations. @@ -92719,6 +94258,7 @@ export const getTransitGatewayPolicyTableAssociations: API.OperationMethod< RequestLimitExceeded, InvalidTransitGatewayPolicyTableIdMalformed, InvalidTransitGatewayPolicyTableIdNotFound, + UnauthorizedOperation, ], operationName: "GetTransitGatewayPolicyTableAssociations", pagination: { @@ -92732,6 +94272,7 @@ export type GetTransitGatewayPolicyTableEntriesError = | RequestLimitExceeded | InvalidTransitGatewayPolicyTableIdMalformed | InvalidTransitGatewayPolicyTableIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Returns a list of transit gateway policy table entries. @@ -92748,6 +94289,7 @@ export const getTransitGatewayPolicyTableEntries: API.OperationMethod< RequestLimitExceeded, InvalidTransitGatewayPolicyTableIdMalformed, InvalidTransitGatewayPolicyTableIdNotFound, + UnauthorizedOperation, ], operationName: "GetTransitGatewayPolicyTableEntries", })); @@ -92755,6 +94297,7 @@ export type GetTransitGatewayPrefixListReferencesError = | RequestLimitExceeded | InvalidRouteTableIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Gets information about the prefix list references in a specified transit gateway route table. @@ -92782,7 +94325,12 @@ export const getTransitGatewayPrefixListReferences: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: GetTransitGatewayPrefixListReferencesRequest, output: GetTransitGatewayPrefixListReferencesResult, - errors: [RequestLimitExceeded, InvalidRouteTableIDNotFound, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidRouteTableIDNotFound, + MissingParameter, + UnauthorizedOperation, + ], operationName: "GetTransitGatewayPrefixListReferences", pagination: { inputToken: "NextToken", @@ -92794,6 +94342,7 @@ export const getTransitGatewayPrefixListReferences: API.OperationMethod< export type GetTransitGatewayRouteTableAssociationsError = | RequestLimitExceeded | InvalidRouteTableIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Gets information about the associations for the specified transit gateway route table. @@ -92821,7 +94370,11 @@ export const getTransitGatewayRouteTableAssociations: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: GetTransitGatewayRouteTableAssociationsRequest, output: GetTransitGatewayRouteTableAssociationsResult, - errors: [RequestLimitExceeded, InvalidRouteTableIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidRouteTableIDNotFound, + UnauthorizedOperation, + ], operationName: "GetTransitGatewayRouteTableAssociations", pagination: { inputToken: "NextToken", @@ -92833,6 +94386,7 @@ export const getTransitGatewayRouteTableAssociations: API.OperationMethod< export type GetTransitGatewayRouteTablePropagationsError = | RequestLimitExceeded | InvalidRouteTableIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Gets information about the route table propagations for the specified transit gateway route table. @@ -92860,7 +94414,11 @@ export const getTransitGatewayRouteTablePropagations: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: GetTransitGatewayRouteTablePropagationsRequest, output: GetTransitGatewayRouteTablePropagationsResult, - errors: [RequestLimitExceeded, InvalidRouteTableIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidRouteTableIDNotFound, + UnauthorizedOperation, + ], operationName: "GetTransitGatewayRouteTablePropagations", pagination: { inputToken: "NextToken", @@ -92873,6 +94431,7 @@ export type GetVerifiedAccessEndpointPolicyError = | RequestLimitExceeded | InvalidParameterValue | InvalidVerifiedAccessEndpointIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Get the Verified Access policy associated with the endpoint. @@ -92889,12 +94448,14 @@ export const getVerifiedAccessEndpointPolicy: API.OperationMethod< RequestLimitExceeded, InvalidParameterValue, InvalidVerifiedAccessEndpointIdNotFound, + UnauthorizedOperation, ], operationName: "GetVerifiedAccessEndpointPolicy", })); export type GetVerifiedAccessEndpointTargetsError = | RequestLimitExceeded | InvalidVerifiedAccessEndpointIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Gets the targets for the specified network CIDR endpoint for Verified Access. @@ -92907,12 +94468,17 @@ export const getVerifiedAccessEndpointTargets: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetVerifiedAccessEndpointTargetsRequest, output: GetVerifiedAccessEndpointTargetsResult, - errors: [RequestLimitExceeded, InvalidVerifiedAccessEndpointIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidVerifiedAccessEndpointIdNotFound, + UnauthorizedOperation, + ], operationName: "GetVerifiedAccessEndpointTargets", })); export type GetVerifiedAccessGroupPolicyError = | RequestLimitExceeded | InvalidVerifiedAccessGroupIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Shows the contents of the Verified Access policy associated with the group. @@ -92925,12 +94491,17 @@ export const getVerifiedAccessGroupPolicy: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetVerifiedAccessGroupPolicyRequest, output: GetVerifiedAccessGroupPolicyResult, - errors: [RequestLimitExceeded, InvalidVerifiedAccessGroupIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidVerifiedAccessGroupIdNotFound, + UnauthorizedOperation, + ], operationName: "GetVerifiedAccessGroupPolicy", })); export type GetVpcResourcesBlockingEncryptionEnforcementError = | RequestLimitExceeded | InvalidVpcIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Gets information about resources in a VPC that are blocking encryption enforcement. @@ -92945,12 +94516,13 @@ export const getVpcResourcesBlockingEncryptionEnforcement: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetVpcResourcesBlockingEncryptionEnforcementRequest, output: GetVpcResourcesBlockingEncryptionEnforcementResult, - errors: [RequestLimitExceeded, InvalidVpcIdMalformed], + errors: [RequestLimitExceeded, InvalidVpcIdMalformed, UnauthorizedOperation], operationName: "GetVpcResourcesBlockingEncryptionEnforcement", })); export type GetVpnConnectionDeviceSampleConfigurationError = | RequestLimitExceeded | InvalidVpnConnectionDeviceTypeIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Download an Amazon Web Services-provided sample configuration file to be used with the customer @@ -92964,7 +94536,11 @@ export const getVpnConnectionDeviceSampleConfiguration: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetVpnConnectionDeviceSampleConfigurationRequest, output: GetVpnConnectionDeviceSampleConfigurationResult, - errors: [RequestLimitExceeded, InvalidVpnConnectionDeviceTypeIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidVpnConnectionDeviceTypeIdNotFound, + UnauthorizedOperation, + ], operationName: "GetVpnConnectionDeviceSampleConfiguration", })); export type GetVpnConnectionDeviceTypesError = CommonErrors; @@ -93009,6 +94585,7 @@ export const getVpnConnectionDeviceTypes: API.OperationMethod< export type GetVpnTunnelReplacementStatusError = | RequestLimitExceeded | InvalidVpnConnectionId + | UnauthorizedOperation | CommonErrors; /** * Get details of available tunnel endpoint maintenance. @@ -93021,12 +94598,13 @@ export const getVpnTunnelReplacementStatus: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetVpnTunnelReplacementStatusRequest, output: GetVpnTunnelReplacementStatusResult, - errors: [RequestLimitExceeded, InvalidVpnConnectionId], + errors: [RequestLimitExceeded, InvalidVpnConnectionId, UnauthorizedOperation], operationName: "GetVpnTunnelReplacementStatus", })); export type ImportClientVpnClientCertificateRevocationListError = | RequestLimitExceeded | InvalidClientVpnEndpointIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Uploads a client certificate revocation list to the specified Client VPN endpoint. Uploading a client certificate revocation list overwrites the existing client certificate revocation list. @@ -93041,12 +94619,17 @@ export const importClientVpnClientCertificateRevocationList: API.OperationMethod > = /*@__PURE__*/ API.make(() => ({ input: ImportClientVpnClientCertificateRevocationListRequest, output: ImportClientVpnClientCertificateRevocationListResult, - errors: [RequestLimitExceeded, InvalidClientVpnEndpointIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidClientVpnEndpointIdNotFound, + UnauthorizedOperation, + ], operationName: "ImportClientVpnClientCertificateRevocationList", })); export type ImportImageError = | RequestLimitExceeded | MissingRequiredParameter + | UnauthorizedOperation | CommonErrors; /** * To import your virtual machines (VMs) with a console-based experience, you can use the @@ -93073,12 +94656,17 @@ export const importImage: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ImportImageRequest, output: ImportImageResult, - errors: [RequestLimitExceeded, MissingRequiredParameter], + errors: [ + RequestLimitExceeded, + MissingRequiredParameter, + UnauthorizedOperation, + ], operationName: "ImportImage", })); export type ImportInstanceError = | RequestLimitExceeded | InvalidParameter + | UnauthorizedOperation | CommonErrors; /** * We recommend that you use the @@ -93104,12 +94692,13 @@ export const importInstance: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ImportInstanceRequest, output: ImportInstanceResult, - errors: [RequestLimitExceeded, InvalidParameter], + errors: [RequestLimitExceeded, InvalidParameter, UnauthorizedOperation], operationName: "ImportInstance", })); export type ImportKeyPairError = | RequestLimitExceeded | InvalidKeyPairDuplicate + | UnauthorizedOperation | CommonErrors; /** * Imports the public key from an RSA or ED25519 key pair that you created using a third-party tool. @@ -93125,12 +94714,17 @@ export const importKeyPair: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ImportKeyPairRequest, output: ImportKeyPairResult, - errors: [RequestLimitExceeded, InvalidKeyPairDuplicate], + errors: [ + RequestLimitExceeded, + InvalidKeyPairDuplicate, + UnauthorizedOperation, + ], operationName: "ImportKeyPair", })); export type ImportSnapshotError = | RequestLimitExceeded | InvalidParameter + | UnauthorizedOperation | CommonErrors; /** * Imports a disk into an EBS snapshot. @@ -93146,7 +94740,7 @@ export const importSnapshot: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ImportSnapshotRequest, output: ImportSnapshotResult, - errors: [RequestLimitExceeded, InvalidParameter], + errors: [RequestLimitExceeded, InvalidParameter, UnauthorizedOperation], operationName: "ImportSnapshot", })); export type ImportVolumeError = CommonErrors; @@ -93175,6 +94769,7 @@ export const importVolume: API.OperationMethod< export type ListImagesInRecycleBinError = | RequestLimitExceeded | InvalidAMIIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Lists one or more AMIs that are currently in the Recycle Bin. For more information, see @@ -93204,7 +94799,7 @@ export const listImagesInRecycleBin: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: ListImagesInRecycleBinRequest, output: ListImagesInRecycleBinResult, - errors: [RequestLimitExceeded, InvalidAMIIDNotFound], + errors: [RequestLimitExceeded, InvalidAMIIDNotFound, UnauthorizedOperation], operationName: "ListImagesInRecycleBin", pagination: { inputToken: "NextToken", @@ -93216,6 +94811,7 @@ export const listImagesInRecycleBin: API.OperationMethod< export type ListSnapshotsInRecycleBinError = | RequestLimitExceeded | InvalidSnapshotIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Lists one or more snapshots that are currently in the Recycle Bin. @@ -93243,7 +94839,11 @@ export const listSnapshotsInRecycleBin: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: ListSnapshotsInRecycleBinRequest, output: ListSnapshotsInRecycleBinResult, - errors: [RequestLimitExceeded, InvalidSnapshotIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidSnapshotIDMalformed, + UnauthorizedOperation, + ], operationName: "ListSnapshotsInRecycleBin", pagination: { inputToken: "NextToken", @@ -93255,6 +94855,7 @@ export const listSnapshotsInRecycleBin: API.OperationMethod< export type ListVolumesInRecycleBinError = | RequestLimitExceeded | InvalidVolumeIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Lists one or more volumes that are currently in the Recycle Bin. @@ -93267,12 +94868,17 @@ export const listVolumesInRecycleBin: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ListVolumesInRecycleBinRequest, output: ListVolumesInRecycleBinResult, - errors: [RequestLimitExceeded, InvalidVolumeIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidVolumeIDMalformed, + UnauthorizedOperation, + ], operationName: "ListVolumesInRecycleBin", })); export type LockSnapshotError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Locks an Amazon EBS snapshot in either *governance* or *compliance* @@ -93299,13 +94905,14 @@ export const lockSnapshot: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: LockSnapshotRequest, output: LockSnapshotResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "LockSnapshot", })); export type ModifyAddressAttributeError = | RequestLimitExceeded | InvalidAllocationIDNotFound | InvalidElasticIpIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Modifies an attribute of the specified Elastic IP address. For requirements, see Using reverse DNS for email applications. @@ -93322,12 +94929,14 @@ export const modifyAddressAttribute: API.OperationMethod< RequestLimitExceeded, InvalidAllocationIDNotFound, InvalidElasticIpIDNotFound, + UnauthorizedOperation, ], operationName: "ModifyAddressAttribute", })); export type ModifyAvailabilityZoneGroupError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Changes the opt-in status of the specified zone group for your account. @@ -93340,12 +94949,13 @@ export const modifyAvailabilityZoneGroup: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyAvailabilityZoneGroupRequest, output: ModifyAvailabilityZoneGroupResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "ModifyAvailabilityZoneGroup", })); export type ModifyCapacityReservationError = | RequestLimitExceeded | InvalidCapacityReservationIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Modifies a Capacity Reservation's capacity, instance eligibility, and the conditions @@ -93383,12 +94993,17 @@ export const modifyCapacityReservation: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyCapacityReservationRequest, output: ModifyCapacityReservationResult, - errors: [RequestLimitExceeded, InvalidCapacityReservationIdMalformed], + errors: [ + RequestLimitExceeded, + InvalidCapacityReservationIdMalformed, + UnauthorizedOperation, + ], operationName: "ModifyCapacityReservation", })); export type ModifyCapacityReservationFleetError = | RequestLimitExceeded | InvalidCapacityReservationFleetIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Modifies a Capacity Reservation Fleet. @@ -93407,12 +95022,17 @@ export const modifyCapacityReservationFleet: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyCapacityReservationFleetRequest, output: ModifyCapacityReservationFleetResult, - errors: [RequestLimitExceeded, InvalidCapacityReservationFleetIdMalformed], + errors: [ + RequestLimitExceeded, + InvalidCapacityReservationFleetIdMalformed, + UnauthorizedOperation, + ], operationName: "ModifyCapacityReservationFleet", })); export type ModifyClientVpnEndpointError = | RequestLimitExceeded | InvalidClientVpnEndpointIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Modifies the specified Client VPN endpoint. Modifying the DNS server resets existing client connections. @@ -93425,12 +95045,17 @@ export const modifyClientVpnEndpoint: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyClientVpnEndpointRequest, output: ModifyClientVpnEndpointResult, - errors: [RequestLimitExceeded, InvalidClientVpnEndpointIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidClientVpnEndpointIdNotFound, + UnauthorizedOperation, + ], operationName: "ModifyClientVpnEndpoint", })); export type ModifyDefaultCreditSpecificationError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Modifies the default credit option for CPU usage of burstable performance instances. @@ -93457,12 +95082,13 @@ export const modifyDefaultCreditSpecification: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyDefaultCreditSpecificationRequest, output: ModifyDefaultCreditSpecificationResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "ModifyDefaultCreditSpecification", })); export type ModifyEbsDefaultKmsKeyIdError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Changes the default KMS key for EBS encryption by default for your account in this Region. @@ -93485,12 +95111,13 @@ export const modifyEbsDefaultKmsKeyId: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyEbsDefaultKmsKeyIdRequest, output: ModifyEbsDefaultKmsKeyIdResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "ModifyEbsDefaultKmsKeyId", })); export type ModifyFleetError = | RequestLimitExceeded | InvalidFleetIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Modifies the specified EC2 Fleet. @@ -93529,13 +95156,18 @@ export const modifyFleet: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyFleetRequest, output: ModifyFleetResult, - errors: [RequestLimitExceeded, InvalidFleetIdMalformed], + errors: [ + RequestLimitExceeded, + InvalidFleetIdMalformed, + UnauthorizedOperation, + ], operationName: "ModifyFleet", })); export type ModifyFpgaImageAttributeError = | RequestLimitExceeded | InvalidFpgaImageIDMalformed | InvalidFpgaImageIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Modifies the specified attribute of the specified Amazon FPGA Image (AFI). @@ -93552,6 +95184,7 @@ export const modifyFpgaImageAttribute: API.OperationMethod< RequestLimitExceeded, InvalidFpgaImageIDMalformed, InvalidFpgaImageIDNotFound, + UnauthorizedOperation, ], operationName: "ModifyFpgaImageAttribute", })); @@ -93665,6 +95298,7 @@ export type ModifyImageAttributeError = | InvalidAMIIDMalformed | InvalidAMIIDNotFound | InvalidParameterCombination + | UnauthorizedOperation | CommonErrors; /** * Modifies the specified attribute of the specified AMI. You can specify only one attribute @@ -93692,6 +95326,7 @@ export const modifyImageAttribute: API.OperationMethod< InvalidAMIIDMalformed, InvalidAMIIDNotFound, InvalidParameterCombination, + UnauthorizedOperation, ], operationName: "ModifyImageAttribute", })); @@ -93699,6 +95334,7 @@ export type ModifyInstanceAttributeError = | RequestLimitExceeded | InvalidInstanceIDNotFound | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Modifies the specified attribute of the specified instance. You can specify only one @@ -93726,12 +95362,14 @@ export const modifyInstanceAttribute: API.OperationMethod< RequestLimitExceeded, InvalidInstanceIDNotFound, InvalidParameterValue, + UnauthorizedOperation, ], operationName: "ModifyInstanceAttribute", })); export type ModifyInstanceCapacityReservationAttributesError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Modifies the Capacity Reservation settings for a stopped instance. Use this action to @@ -93747,13 +95385,14 @@ export const modifyInstanceCapacityReservationAttributes: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyInstanceCapacityReservationAttributesRequest, output: ModifyInstanceCapacityReservationAttributesResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "ModifyInstanceCapacityReservationAttributes", })); export type ModifyInstanceConnectEndpointError = | RequestLimitExceeded | InvalidInstanceConnectEndpointIdMalformed | InvalidInstanceConnectEndpointIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Modifies the specified EC2 Instance Connect Endpoint. @@ -93774,12 +95413,14 @@ export const modifyInstanceConnectEndpoint: API.OperationMethod< RequestLimitExceeded, InvalidInstanceConnectEndpointIdMalformed, InvalidInstanceConnectEndpointIdNotFound, + UnauthorizedOperation, ], operationName: "ModifyInstanceConnectEndpoint", })); export type ModifyInstanceCpuOptionsError = | RequestLimitExceeded | InvalidInstanceIDMalformed + | UnauthorizedOperation | CommonErrors; /** * By default, all vCPUs for the instance type are active when you launch an instance. When you @@ -93801,7 +95442,11 @@ export const modifyInstanceCpuOptions: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyInstanceCpuOptionsRequest, output: ModifyInstanceCpuOptionsResult, - errors: [RequestLimitExceeded, InvalidInstanceIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidInstanceIDMalformed, + UnauthorizedOperation, + ], operationName: "ModifyInstanceCpuOptions", })); export type ModifyInstanceCreditSpecificationError = CommonErrors; @@ -93827,6 +95472,7 @@ export const modifyInstanceCreditSpecification: API.OperationMethod< export type ModifyInstanceEventStartTimeError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Modifies the start time for a scheduled Amazon EC2 instance event. @@ -93839,13 +95485,14 @@ export const modifyInstanceEventStartTime: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyInstanceEventStartTimeRequest, output: ModifyInstanceEventStartTimeResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "ModifyInstanceEventStartTime", })); export type ModifyInstanceEventWindowError = | RequestLimitExceeded | InvalidInstanceEventWindowIDNotFound | InvalidInstanceEventWindowIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Modifies the specified event window. @@ -93873,12 +95520,14 @@ export const modifyInstanceEventWindow: API.OperationMethod< RequestLimitExceeded, InvalidInstanceEventWindowIDNotFound, InvalidInstanceEventWindowIdMalformed, + UnauthorizedOperation, ], operationName: "ModifyInstanceEventWindow", })); export type ModifyInstanceMaintenanceOptionsError = | RequestLimitExceeded | InvalidInstanceIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Modifies the recovery behavior of your instance to disable simplified automatic @@ -93897,12 +95546,17 @@ export const modifyInstanceMaintenanceOptions: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyInstanceMaintenanceOptionsRequest, output: ModifyInstanceMaintenanceOptionsResult, - errors: [RequestLimitExceeded, InvalidInstanceIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidInstanceIDMalformed, + UnauthorizedOperation, + ], operationName: "ModifyInstanceMaintenanceOptions", })); export type ModifyInstanceMetadataDefaultsError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Modifies the default instance metadata service (IMDS) settings at the account level in @@ -93923,12 +95577,13 @@ export const modifyInstanceMetadataDefaults: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyInstanceMetadataDefaultsRequest, output: ModifyInstanceMetadataDefaultsResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "ModifyInstanceMetadataDefaults", })); export type ModifyInstanceMetadataOptionsError = | RequestLimitExceeded | InvalidInstanceIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Modify the instance metadata parameters on a running or stopped instance. When you @@ -93947,12 +95602,17 @@ export const modifyInstanceMetadataOptions: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyInstanceMetadataOptionsRequest, output: ModifyInstanceMetadataOptionsResult, - errors: [RequestLimitExceeded, InvalidInstanceIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidInstanceIDMalformed, + UnauthorizedOperation, + ], operationName: "ModifyInstanceMetadataOptions", })); export type ModifyInstanceNetworkPerformanceOptionsError = | RequestLimitExceeded | InvalidAction + | UnauthorizedOperation | CommonErrors; /** * Change the configuration of the network performance options for an existing @@ -93966,12 +95626,13 @@ export const modifyInstanceNetworkPerformanceOptions: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyInstanceNetworkPerformanceRequest, output: ModifyInstanceNetworkPerformanceResult, - errors: [RequestLimitExceeded, InvalidAction], + errors: [RequestLimitExceeded, InvalidAction, UnauthorizedOperation], operationName: "ModifyInstanceNetworkPerformanceOptions", })); export type ModifyInstancePlacementError = | RequestLimitExceeded | InvalidInstanceIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Modifies the placement attributes for a specified instance. You can do the @@ -94005,12 +95666,17 @@ export const modifyInstancePlacement: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyInstancePlacementRequest, output: ModifyInstancePlacementResult, - errors: [RequestLimitExceeded, InvalidInstanceIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidInstanceIDMalformed, + UnauthorizedOperation, + ], operationName: "ModifyInstancePlacement", })); export type ModifyIpamError = | RequestLimitExceeded | InvalidParameterCombination + | UnauthorizedOperation | CommonErrors; /** * Modify the configurations of an IPAM. @@ -94023,12 +95689,17 @@ export const modifyIpam: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyIpamRequest, output: ModifyIpamResult, - errors: [RequestLimitExceeded, InvalidParameterCombination], + errors: [ + RequestLimitExceeded, + InvalidParameterCombination, + UnauthorizedOperation, + ], operationName: "ModifyIpam", })); export type ModifyIpamPolicyAllocationRulesError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Modifies the allocation rules in an IPAM policy. @@ -94045,12 +95716,13 @@ export const modifyIpamPolicyAllocationRules: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyIpamPolicyAllocationRulesRequest, output: ModifyIpamPolicyAllocationRulesResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "ModifyIpamPolicyAllocationRules", })); export type ModifyIpamPoolError = | RequestLimitExceeded | InvalidIpamPoolIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Modify the configurations of an IPAM pool. @@ -94065,7 +95737,11 @@ export const modifyIpamPool: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyIpamPoolRequest, output: ModifyIpamPoolResult, - errors: [RequestLimitExceeded, InvalidIpamPoolIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidIpamPoolIdNotFound, + UnauthorizedOperation, + ], operationName: "ModifyIpamPool", })); export type ModifyIpamPoolAllocationError = CommonErrors; @@ -94087,6 +95763,7 @@ export type ModifyIpamPrefixListResolverError = | RequestLimitExceeded | InvalidIpamPrefixListResolverIdMalformed | InvalidIpamPrefixListResolverIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Modifies an IPAM prefix list resolver. You can update the description and CIDR selection rules. Changes to rules will trigger re-evaluation and potential updates to associated prefix lists. @@ -94103,12 +95780,14 @@ export const modifyIpamPrefixListResolver: API.OperationMethod< RequestLimitExceeded, InvalidIpamPrefixListResolverIdMalformed, InvalidIpamPrefixListResolverIdNotFound, + UnauthorizedOperation, ], operationName: "ModifyIpamPrefixListResolver", })); export type ModifyIpamPrefixListResolverTargetError = | RequestLimitExceeded | InvalidIpamPrefixListResolverTargetIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Modifies an IPAM prefix list resolver target. You can update version tracking settings and the desired version of the target prefix list. @@ -94124,6 +95803,7 @@ export const modifyIpamPrefixListResolverTarget: API.OperationMethod< errors: [ RequestLimitExceeded, InvalidIpamPrefixListResolverTargetIdMalformed, + UnauthorizedOperation, ], operationName: "ModifyIpamPrefixListResolverTarget", })); @@ -94131,6 +95811,7 @@ export type ModifyIpamResourceCidrError = | RequestLimitExceeded | InvalidIpamScopeIdMalformed | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Modify a resource CIDR. You can use this action to transfer resource CIDRs between scopes and ignore resource CIDRs that you do not want to manage. If set to false, the resource will not be tracked for overlap, it cannot be auto-imported into a pool, and it will be removed from any pool it has an allocation in. @@ -94149,6 +95830,7 @@ export const modifyIpamResourceCidr: API.OperationMethod< RequestLimitExceeded, InvalidIpamScopeIdMalformed, InvalidParameterValue, + UnauthorizedOperation, ], operationName: "ModifyIpamResourceCidr", })); @@ -94156,6 +95838,7 @@ export type ModifyIpamResourceDiscoveryError = | RequestLimitExceeded | InvalidIpamResourceDiscoveryIdMalformed | InvalidIpamResourceDiscoveryIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Modifies a resource discovery. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account. @@ -94172,12 +95855,14 @@ export const modifyIpamResourceDiscovery: API.OperationMethod< RequestLimitExceeded, InvalidIpamResourceDiscoveryIdMalformed, InvalidIpamResourceDiscoveryIdNotFound, + UnauthorizedOperation, ], operationName: "ModifyIpamResourceDiscovery", })); export type ModifyIpamScopeError = | RequestLimitExceeded | InvalidParameterCombination + | UnauthorizedOperation | CommonErrors; /** * Modify an IPAM scope. @@ -94190,12 +95875,17 @@ export const modifyIpamScope: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyIpamScopeRequest, output: ModifyIpamScopeResult, - errors: [RequestLimitExceeded, InvalidParameterCombination], + errors: [ + RequestLimitExceeded, + InvalidParameterCombination, + UnauthorizedOperation, + ], operationName: "ModifyIpamScope", })); export type ModifyLaunchTemplateError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Modifies a launch template. You can specify which version of the launch template to @@ -94210,12 +95900,13 @@ export const modifyLaunchTemplate: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyLaunchTemplateRequest, output: ModifyLaunchTemplateResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "ModifyLaunchTemplate", })); export type ModifyLocalGatewayRouteError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Modifies the specified local gateway route. @@ -94228,7 +95919,7 @@ export const modifyLocalGatewayRoute: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyLocalGatewayRouteRequest, output: ModifyLocalGatewayRouteResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "ModifyLocalGatewayRoute", })); export type ModifyManagedPrefixListError = @@ -94236,6 +95927,7 @@ export type ModifyManagedPrefixListError = | InvalidParameterCombination | InvalidPrefixListIDNotFound | InvalidPrefixListIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Modifies the specified managed prefix list. @@ -94259,6 +95951,7 @@ export const modifyManagedPrefixList: API.OperationMethod< InvalidParameterCombination, InvalidPrefixListIDNotFound, InvalidPrefixListIdMalformed, + UnauthorizedOperation, ], operationName: "ModifyManagedPrefixList", })); @@ -94285,6 +95978,7 @@ export type ModifyNetworkInterfaceAttributeError = | InvalidNetworkInterfaceIDNotFound | InvalidNetworkInterfaceIdMalformed | InvalidParameterCombination + | UnauthorizedOperation | CommonErrors; /** * Modifies the specified network interface attribute. You can specify only one attribute @@ -94304,12 +95998,14 @@ export const modifyNetworkInterfaceAttribute: API.OperationMethod< InvalidNetworkInterfaceIDNotFound, InvalidNetworkInterfaceIdMalformed, InvalidParameterCombination, + UnauthorizedOperation, ], operationName: "ModifyNetworkInterfaceAttribute", })); export type ModifyPrivateDnsNameOptionsError = | RequestLimitExceeded | UnknownResource + | UnauthorizedOperation | CommonErrors; /** * Modifies the options for instance hostnames for the specified instance. @@ -94322,12 +96018,13 @@ export const modifyPrivateDnsNameOptions: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyPrivateDnsNameOptionsRequest, output: ModifyPrivateDnsNameOptionsResult, - errors: [RequestLimitExceeded, UnknownResource], + errors: [RequestLimitExceeded, UnknownResource, UnauthorizedOperation], operationName: "ModifyPrivateDnsNameOptions", })); export type ModifyPublicIpDnsNameOptionsError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Modify public hostname options for a network interface. For more information, see EC2 instance hostnames, DNS names, and domains in the *Amazon EC2 User Guide*. @@ -94340,12 +96037,13 @@ export const modifyPublicIpDnsNameOptions: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyPublicIpDnsNameOptionsRequest, output: ModifyPublicIpDnsNameOptionsResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "ModifyPublicIpDnsNameOptions", })); export type ModifyReservedInstancesError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Modifies the configuration of your Reserved Instances, such as the Availability Zone, @@ -94363,12 +96061,13 @@ export const modifyReservedInstances: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyReservedInstancesRequest, output: ModifyReservedInstancesResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "ModifyReservedInstances", })); export type ModifyRouteServerError = | RequestLimitExceeded | InvalidRouteServerIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Modifies the configuration of an existing route server. @@ -94396,12 +96095,17 @@ export const modifyRouteServer: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyRouteServerRequest, output: ModifyRouteServerResult, - errors: [RequestLimitExceeded, InvalidRouteServerIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidRouteServerIdNotFound, + UnauthorizedOperation, + ], operationName: "ModifyRouteServer", })); export type ModifySecurityGroupRulesError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Modifies the rules of a security group. @@ -94414,13 +96118,14 @@ export const modifySecurityGroupRules: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifySecurityGroupRulesRequest, output: ModifySecurityGroupRulesResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "ModifySecurityGroupRules", })); export type ModifySnapshotAttributeError = | RequestLimitExceeded | InvalidParameterCombination | InvalidSnapshotNotFound + | UnauthorizedOperation | CommonErrors; /** * Adds or removes permission settings for the specified snapshot. You may add or remove @@ -94446,12 +96151,14 @@ export const modifySnapshotAttribute: API.OperationMethod< RequestLimitExceeded, InvalidParameterCombination, InvalidSnapshotNotFound, + UnauthorizedOperation, ], operationName: "ModifySnapshotAttribute", })); export type ModifySnapshotTierError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Archives an Amazon EBS snapshot. When you archive a snapshot, it is converted to a full @@ -94468,12 +96175,13 @@ export const modifySnapshotTier: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifySnapshotTierRequest, output: ModifySnapshotTierResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "ModifySnapshotTier", })); export type ModifySpotFleetRequestError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Modifies the specified Spot Fleet request. @@ -94515,13 +96223,14 @@ export const modifySpotFleetRequest: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifySpotFleetRequestRequest, output: ModifySpotFleetRequestResponse, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "ModifySpotFleetRequest", })); export type ModifySubnetAttributeError = | RequestLimitExceeded | InvalidSubnetIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Modifies a subnet attribute. You can only modify one attribute at a time. @@ -94551,12 +96260,18 @@ export const modifySubnetAttribute: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifySubnetAttributeRequest, output: ModifySubnetAttributeResponse, - errors: [RequestLimitExceeded, InvalidSubnetIDNotFound, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidSubnetIDNotFound, + MissingParameter, + UnauthorizedOperation, + ], operationName: "ModifySubnetAttribute", })); export type ModifyTrafficMirrorFilterNetworkServicesError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Allows or restricts mirroring network services. @@ -94572,13 +96287,14 @@ export const modifyTrafficMirrorFilterNetworkServices: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyTrafficMirrorFilterNetworkServicesRequest, output: ModifyTrafficMirrorFilterNetworkServicesResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "ModifyTrafficMirrorFilterNetworkServices", })); export type ModifyTrafficMirrorFilterRuleError = | RequestLimitExceeded | InvalidParameterValue | InvalidTrafficMirrorFilterRuleIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Modifies the specified Traffic Mirror rule. @@ -94598,12 +96314,14 @@ export const modifyTrafficMirrorFilterRule: API.OperationMethod< RequestLimitExceeded, InvalidParameterValue, InvalidTrafficMirrorFilterRuleIdNotFound, + UnauthorizedOperation, ], operationName: "ModifyTrafficMirrorFilterRule", })); export type ModifyTrafficMirrorSessionError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Modifies a Traffic Mirror session. @@ -94616,12 +96334,13 @@ export const modifyTrafficMirrorSession: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyTrafficMirrorSessionRequest, output: ModifyTrafficMirrorSessionResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "ModifyTrafficMirrorSession", })); export type ModifyTransitGatewayError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Modifies the specified transit gateway. When you modify a transit gateway, the modified options are applied to new transit gateway attachments only. Your existing transit gateway attachments are not modified. @@ -94634,13 +96353,14 @@ export const modifyTransitGateway: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyTransitGatewayRequest, output: ModifyTransitGatewayResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "ModifyTransitGateway", })); export type ModifyTransitGatewayMeteringPolicyError = | RequestLimitExceeded | InvalidTransitGatewayMeteringPolicyIdMalformedException | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Modifies a transit gateway metering policy. @@ -94657,12 +96377,14 @@ export const modifyTransitGatewayMeteringPolicy: API.OperationMethod< RequestLimitExceeded, InvalidTransitGatewayMeteringPolicyIdMalformedException, MissingParameter, + UnauthorizedOperation, ], operationName: "ModifyTransitGatewayMeteringPolicy", })); export type ModifyTransitGatewayPrefixListReferenceError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Modifies a reference (route) to a prefix list in a specified transit gateway route table. @@ -94675,12 +96397,13 @@ export const modifyTransitGatewayPrefixListReference: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyTransitGatewayPrefixListReferenceRequest, output: ModifyTransitGatewayPrefixListReferenceResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "ModifyTransitGatewayPrefixListReference", })); export type ModifyTransitGatewayVpcAttachmentError = | RequestLimitExceeded | InvalidTransitGatewayAttachmentIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Modifies the specified VPC attachment. @@ -94693,13 +96416,18 @@ export const modifyTransitGatewayVpcAttachment: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyTransitGatewayVpcAttachmentRequest, output: ModifyTransitGatewayVpcAttachmentResult, - errors: [RequestLimitExceeded, InvalidTransitGatewayAttachmentIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidTransitGatewayAttachmentIDNotFound, + UnauthorizedOperation, + ], operationName: "ModifyTransitGatewayVpcAttachment", })); export type ModifyVerifiedAccessEndpointError = | RequestLimitExceeded | InvalidParameterValue | InvalidVerifiedAccessEndpointIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Modifies the configuration of the specified Amazon Web Services Verified Access endpoint. @@ -94716,6 +96444,7 @@ export const modifyVerifiedAccessEndpoint: API.OperationMethod< RequestLimitExceeded, InvalidParameterValue, InvalidVerifiedAccessEndpointIdNotFound, + UnauthorizedOperation, ], operationName: "ModifyVerifiedAccessEndpoint", })); @@ -94723,6 +96452,7 @@ export type ModifyVerifiedAccessEndpointPolicyError = | RequestLimitExceeded | InvalidParameterValue | InvalidVerifiedAccessEndpointIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Modifies the specified Amazon Web Services Verified Access endpoint policy. @@ -94739,12 +96469,14 @@ export const modifyVerifiedAccessEndpointPolicy: API.OperationMethod< RequestLimitExceeded, InvalidParameterValue, InvalidVerifiedAccessEndpointIdNotFound, + UnauthorizedOperation, ], operationName: "ModifyVerifiedAccessEndpointPolicy", })); export type ModifyVerifiedAccessGroupError = | RequestLimitExceeded | InvalidVerifiedAccessGroupIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Modifies the specified Amazon Web Services Verified Access group configuration. @@ -94757,12 +96489,17 @@ export const modifyVerifiedAccessGroup: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyVerifiedAccessGroupRequest, output: ModifyVerifiedAccessGroupResult, - errors: [RequestLimitExceeded, InvalidVerifiedAccessGroupIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidVerifiedAccessGroupIdNotFound, + UnauthorizedOperation, + ], operationName: "ModifyVerifiedAccessGroup", })); export type ModifyVerifiedAccessGroupPolicyError = | RequestLimitExceeded | InvalidVerifiedAccessGroupIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Modifies the specified Amazon Web Services Verified Access group policy. @@ -94775,12 +96512,17 @@ export const modifyVerifiedAccessGroupPolicy: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyVerifiedAccessGroupPolicyRequest, output: ModifyVerifiedAccessGroupPolicyResult, - errors: [RequestLimitExceeded, InvalidVerifiedAccessGroupIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidVerifiedAccessGroupIdNotFound, + UnauthorizedOperation, + ], operationName: "ModifyVerifiedAccessGroupPolicy", })); export type ModifyVerifiedAccessInstanceError = | RequestLimitExceeded | InvalidVerifiedAccessInstanceIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Modifies the configuration of the specified Amazon Web Services Verified Access instance. @@ -94793,12 +96535,17 @@ export const modifyVerifiedAccessInstance: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyVerifiedAccessInstanceRequest, output: ModifyVerifiedAccessInstanceResult, - errors: [RequestLimitExceeded, InvalidVerifiedAccessInstanceIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidVerifiedAccessInstanceIdNotFound, + UnauthorizedOperation, + ], operationName: "ModifyVerifiedAccessInstance", })); export type ModifyVerifiedAccessInstanceLoggingConfigurationError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Modifies the logging configuration for the specified Amazon Web Services Verified Access instance. @@ -94811,12 +96558,13 @@ export const modifyVerifiedAccessInstanceLoggingConfiguration: API.OperationMeth > = /*@__PURE__*/ API.make(() => ({ input: ModifyVerifiedAccessInstanceLoggingConfigurationRequest, output: ModifyVerifiedAccessInstanceLoggingConfigurationResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "ModifyVerifiedAccessInstanceLoggingConfiguration", })); export type ModifyVerifiedAccessTrustProviderError = | RequestLimitExceeded | InvalidVerifiedAccessTrustProviderIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Modifies the configuration of the specified Amazon Web Services Verified Access trust provider. @@ -94829,7 +96577,11 @@ export const modifyVerifiedAccessTrustProvider: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyVerifiedAccessTrustProviderRequest, output: ModifyVerifiedAccessTrustProviderResult, - errors: [RequestLimitExceeded, InvalidVerifiedAccessTrustProviderIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidVerifiedAccessTrustProviderIdNotFound, + UnauthorizedOperation, + ], operationName: "ModifyVerifiedAccessTrustProvider", })); export type ModifyVolumeError = @@ -94837,6 +96589,7 @@ export type ModifyVolumeError = | InvalidParameterValue | InvalidVolumeNotFound | InvalidVolumeIDMalformed + | UnauthorizedOperation | CommonErrors; /** * You can modify several parameters of an existing EBS volume, including volume size, volume @@ -94873,6 +96626,7 @@ export const modifyVolume: API.OperationMethod< InvalidParameterValue, InvalidVolumeNotFound, InvalidVolumeIDMalformed, + UnauthorizedOperation, ], operationName: "ModifyVolume", })); @@ -94880,6 +96634,7 @@ export type ModifyVolumeAttributeError = | RequestLimitExceeded | InvalidVolumeNotFound | InvalidVolumeIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Modifies a volume attribute. @@ -94904,6 +96659,7 @@ export const modifyVolumeAttribute: API.OperationMethod< RequestLimitExceeded, InvalidVolumeNotFound, InvalidVolumeIDMalformed, + UnauthorizedOperation, ], operationName: "ModifyVolumeAttribute", })); @@ -94911,6 +96667,7 @@ export type ModifyVpcAttributeError = | RequestLimitExceeded | InvalidParameterCombination | InvalidVpcIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Modifies the specified attribute of the specified VPC. @@ -94927,6 +96684,7 @@ export const modifyVpcAttribute: API.OperationMethod< RequestLimitExceeded, InvalidParameterCombination, InvalidVpcIDNotFound, + UnauthorizedOperation, ], operationName: "ModifyVpcAttribute", })); @@ -94964,6 +96722,7 @@ export type ModifyVpcEncryptionControlError = | RequestLimitExceeded | InvalidVpcEncryptionControlIdMalformed | InvalidVpcEncryptionControlIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Modifies the encryption control configuration for a VPC. You can update the encryption mode and exclusion settings for various gateway types and peering connections. @@ -94982,12 +96741,14 @@ export const modifyVpcEncryptionControl: API.OperationMethod< RequestLimitExceeded, InvalidVpcEncryptionControlIdMalformed, InvalidVpcEncryptionControlIdNotFound, + UnauthorizedOperation, ], operationName: "ModifyVpcEncryptionControl", })); export type ModifyVpcEndpointError = | RequestLimitExceeded | InvalidVpcEndpointIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Modifies attributes of a specified VPC endpoint. The attributes that you can modify @@ -95003,13 +96764,18 @@ export const modifyVpcEndpoint: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyVpcEndpointRequest, output: ModifyVpcEndpointResult, - errors: [RequestLimitExceeded, InvalidVpcEndpointIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidVpcEndpointIdNotFound, + UnauthorizedOperation, + ], operationName: "ModifyVpcEndpoint", })); export type ModifyVpcEndpointConnectionNotificationError = | RequestLimitExceeded | InvalidConnectionNotification | InvalidParameter + | UnauthorizedOperation | CommonErrors; /** * Modifies a connection notification for VPC endpoint or VPC endpoint service. You @@ -95027,6 +96793,7 @@ export const modifyVpcEndpointConnectionNotification: API.OperationMethod< RequestLimitExceeded, InvalidConnectionNotification, InvalidParameter, + UnauthorizedOperation, ], operationName: "ModifyVpcEndpointConnectionNotification", })); @@ -95034,6 +96801,7 @@ export type ModifyVpcEndpointServiceConfigurationError = | RequestLimitExceeded | InvalidVpcEndpointServiceIdMalformed | InvalidVpcEndpointServiceIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Modifies the attributes of the specified VPC endpoint service configuration. @@ -95053,12 +96821,14 @@ export const modifyVpcEndpointServiceConfiguration: API.OperationMethod< RequestLimitExceeded, InvalidVpcEndpointServiceIdMalformed, InvalidVpcEndpointServiceIdNotFound, + UnauthorizedOperation, ], operationName: "ModifyVpcEndpointServiceConfiguration", })); export type ModifyVpcEndpointServicePayerResponsibilityError = | RequestLimitExceeded | UnsupportedOperation + | UnauthorizedOperation | CommonErrors; /** * Modifies the payer responsibility for your VPC endpoint service. @@ -95071,13 +96841,14 @@ export const modifyVpcEndpointServicePayerResponsibility: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyVpcEndpointServicePayerResponsibilityRequest, output: ModifyVpcEndpointServicePayerResponsibilityResult, - errors: [RequestLimitExceeded, UnsupportedOperation], + errors: [RequestLimitExceeded, UnsupportedOperation, UnauthorizedOperation], operationName: "ModifyVpcEndpointServicePayerResponsibility", })); export type ModifyVpcEndpointServicePermissionsError = | RequestLimitExceeded | InvalidVpcEndpointServiceIdMalformed | InvalidVpcEndpointServiceIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Modifies the permissions for your VPC endpoint service. You can add or remove permissions @@ -95100,6 +96871,7 @@ export const modifyVpcEndpointServicePermissions: API.OperationMethod< RequestLimitExceeded, InvalidVpcEndpointServiceIdMalformed, InvalidVpcEndpointServiceIdNotFound, + UnauthorizedOperation, ], operationName: "ModifyVpcEndpointServicePermissions", })); @@ -95107,6 +96879,7 @@ export type ModifyVpcPeeringConnectionOptionsError = | RequestLimitExceeded | InvalidVpcPeeringConnectionIDNotFound | InvalidVpcPeeringConnectionIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Modifies the VPC peering connection options on one side of a VPC peering connection. @@ -95134,6 +96907,7 @@ export const modifyVpcPeeringConnectionOptions: API.OperationMethod< RequestLimitExceeded, InvalidVpcPeeringConnectionIDNotFound, InvalidVpcPeeringConnectionIdNotFound, + UnauthorizedOperation, ], operationName: "ModifyVpcPeeringConnectionOptions", })); @@ -95141,6 +96915,7 @@ export type ModifyVpcTenancyError = | RequestLimitExceeded | InvalidVpcIDNotFound | InvalidVpcIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Modifies the instance tenancy attribute of the specified VPC. You can change the @@ -95162,12 +96937,18 @@ export const modifyVpcTenancy: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyVpcTenancyRequest, output: ModifyVpcTenancyResult, - errors: [RequestLimitExceeded, InvalidVpcIDNotFound, InvalidVpcIdMalformed], + errors: [ + RequestLimitExceeded, + InvalidVpcIDNotFound, + InvalidVpcIdMalformed, + UnauthorizedOperation, + ], operationName: "ModifyVpcTenancy", })); export type ModifyVpnConnectionError = | RequestLimitExceeded | InvalidVpnConnectionId + | UnauthorizedOperation | CommonErrors; /** * Modifies the customer gateway or the target gateway of an Amazon Web Services Site-to-Site VPN connection. To @@ -95217,12 +96998,13 @@ export const modifyVpnConnection: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyVpnConnectionRequest, output: ModifyVpnConnectionResult, - errors: [RequestLimitExceeded, InvalidVpnConnectionId], + errors: [RequestLimitExceeded, InvalidVpnConnectionId, UnauthorizedOperation], operationName: "ModifyVpnConnection", })); export type ModifyVpnConnectionOptionsError = | RequestLimitExceeded | InvalidVpnConnectionIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Modifies the connection options for your Site-to-Site VPN connection. @@ -95240,12 +97022,17 @@ export const modifyVpnConnectionOptions: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyVpnConnectionOptionsRequest, output: ModifyVpnConnectionOptionsResult, - errors: [RequestLimitExceeded, InvalidVpnConnectionIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidVpnConnectionIDNotFound, + UnauthorizedOperation, + ], operationName: "ModifyVpnConnectionOptions", })); export type ModifyVpnTunnelCertificateError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Modifies the VPN tunnel endpoint certificate. @@ -95258,12 +97045,13 @@ export const modifyVpnTunnelCertificate: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyVpnTunnelCertificateRequest, output: ModifyVpnTunnelCertificateResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "ModifyVpnTunnelCertificate", })); export type ModifyVpnTunnelOptionsError = | RequestLimitExceeded | InvalidVpnConnectionId + | UnauthorizedOperation | CommonErrors; /** * Modifies the options for a VPN tunnel in an Amazon Web Services Site-to-Site VPN connection. You can modify @@ -95279,13 +97067,14 @@ export const modifyVpnTunnelOptions: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ModifyVpnTunnelOptionsRequest, output: ModifyVpnTunnelOptionsResult, - errors: [RequestLimitExceeded, InvalidVpnConnectionId], + errors: [RequestLimitExceeded, InvalidVpnConnectionId, UnauthorizedOperation], operationName: "ModifyVpnTunnelOptions", })); export type MonitorInstancesError = | RequestLimitExceeded | InvalidParameterValue | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Enables detailed monitoring for a running instance. Otherwise, basic monitoring is @@ -95302,12 +97091,18 @@ export const monitorInstances: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: MonitorInstancesRequest, output: MonitorInstancesResult, - errors: [RequestLimitExceeded, InvalidParameterValue, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidParameterValue, + MissingParameter, + UnauthorizedOperation, + ], operationName: "MonitorInstances", })); export type MoveAddressToVpcError = | RequestLimitExceeded | UnsupportedOperation + | UnauthorizedOperation | CommonErrors; /** * This action is deprecated. @@ -95326,12 +97121,13 @@ export const moveAddressToVpc: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: MoveAddressToVpcRequest, output: MoveAddressToVpcResult, - errors: [RequestLimitExceeded, UnsupportedOperation], + errors: [RequestLimitExceeded, UnsupportedOperation, UnauthorizedOperation], operationName: "MoveAddressToVpc", })); export type MoveByoipCidrToIpamError = | RequestLimitExceeded | InvalidIpamPoolIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Move a BYOIPv4 CIDR to IPAM from a public IPv4 pool. @@ -95346,12 +97142,17 @@ export const moveByoipCidrToIpam: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: MoveByoipCidrToIpamRequest, output: MoveByoipCidrToIpamResult, - errors: [RequestLimitExceeded, InvalidIpamPoolIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidIpamPoolIdNotFound, + UnauthorizedOperation, + ], operationName: "MoveByoipCidrToIpam", })); export type MoveCapacityReservationInstancesError = | RequestLimitExceeded | InvalidCapacityReservationIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Move available capacity from a source Capacity Reservation to a destination Capacity @@ -95379,12 +97180,17 @@ export const moveCapacityReservationInstances: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: MoveCapacityReservationInstancesRequest, output: MoveCapacityReservationInstancesResult, - errors: [RequestLimitExceeded, InvalidCapacityReservationIdMalformed], + errors: [ + RequestLimitExceeded, + InvalidCapacityReservationIdMalformed, + UnauthorizedOperation, + ], operationName: "MoveCapacityReservationInstances", })); export type ProvisionByoipCidrError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Provisions an IPv4 or IPv6 address range for use with your Amazon Web Services resources through bring your own IP @@ -95408,12 +97214,13 @@ export const provisionByoipCidr: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ProvisionByoipCidrRequest, output: ProvisionByoipCidrResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "ProvisionByoipCidr", })); export type ProvisionIpamByoasnError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Provisions your Autonomous System Number (ASN) for use in your Amazon Web Services account. This action requires authorization context for Amazon to bring the ASN to an Amazon Web Services account. For more information, see Tutorial: Bring your ASN to IPAM in the *Amazon VPC IPAM guide*. @@ -95426,13 +97233,14 @@ export const provisionIpamByoasn: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ProvisionIpamByoasnRequest, output: ProvisionIpamByoasnResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "ProvisionIpamByoasn", })); export type ProvisionIpamPoolCidrError = | RequestLimitExceeded | InvalidIpamPoolIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Provision a CIDR to an IPAM pool. You can use this action to provision new CIDRs to a top-level pool or to transfer a CIDR from a top-level pool to a pool within it. @@ -95447,13 +97255,19 @@ export const provisionIpamPoolCidr: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ProvisionIpamPoolCidrRequest, output: ProvisionIpamPoolCidrResult, - errors: [RequestLimitExceeded, InvalidIpamPoolIdNotFound, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidIpamPoolIdNotFound, + MissingParameter, + UnauthorizedOperation, + ], operationName: "ProvisionIpamPoolCidr", })); export type ProvisionPublicIpv4PoolCidrError = | RequestLimitExceeded | InvalidIpamPoolIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Provision a CIDR to a public IPv4 pool. @@ -95468,12 +97282,18 @@ export const provisionPublicIpv4PoolCidr: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ProvisionPublicIpv4PoolCidrRequest, output: ProvisionPublicIpv4PoolCidrResult, - errors: [RequestLimitExceeded, InvalidIpamPoolIdNotFound, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidIpamPoolIdNotFound, + MissingParameter, + UnauthorizedOperation, + ], operationName: "ProvisionPublicIpv4PoolCidr", })); export type PurchaseCapacityBlockError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Purchase the Capacity Block for use with your account. With Capacity Blocks you ensure @@ -95488,12 +97308,13 @@ export const purchaseCapacityBlock: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: PurchaseCapacityBlockRequest, output: PurchaseCapacityBlockResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "PurchaseCapacityBlock", })); export type PurchaseCapacityBlockExtensionError = | RequestLimitExceeded | InvalidCapacityReservationIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Purchase the Capacity Block extension for use with your account. You must specify the @@ -95507,7 +97328,11 @@ export const purchaseCapacityBlockExtension: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: PurchaseCapacityBlockExtensionRequest, output: PurchaseCapacityBlockExtensionResult, - errors: [RequestLimitExceeded, InvalidCapacityReservationIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidCapacityReservationIdNotFound, + UnauthorizedOperation, + ], operationName: "PurchaseCapacityBlockExtension", })); export type PurchaseHostReservationError = CommonErrors; @@ -95531,6 +97356,7 @@ export const purchaseHostReservation: API.OperationMethod< export type PurchaseReservedInstancesOfferingError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Purchases a Reserved Instance for use with your account. With Reserved Instances, you pay @@ -95555,12 +97381,13 @@ export const purchaseReservedInstancesOffering: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: PurchaseReservedInstancesOfferingRequest, output: PurchaseReservedInstancesOfferingResult, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "PurchaseReservedInstancesOffering", })); export type PurchaseScheduledInstancesError = | RequestLimitExceeded | InvalidPurchaseTokenMalformed + | UnauthorizedOperation | CommonErrors; /** * You can no longer purchase Scheduled Instances. @@ -95582,7 +97409,11 @@ export const purchaseScheduledInstances: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: PurchaseScheduledInstancesRequest, output: PurchaseScheduledInstancesResult, - errors: [RequestLimitExceeded, InvalidPurchaseTokenMalformed], + errors: [ + RequestLimitExceeded, + InvalidPurchaseTokenMalformed, + UnauthorizedOperation, + ], operationName: "PurchaseScheduledInstances", })); export type RebootInstancesError = @@ -95590,6 +97421,7 @@ export type RebootInstancesError = | InvalidInstanceIDMalformed | InvalidInstanceIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Requests a reboot of the specified instances. This operation is asynchronous; it only @@ -95616,12 +97448,14 @@ export const rebootInstances: API.OperationMethod< InvalidInstanceIDMalformed, InvalidInstanceIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "RebootInstances", })); export type RegisterImageError = | RequestLimitExceeded | InvalidParameterCombination + | UnauthorizedOperation | CommonErrors; /** * Registers an AMI. When you're creating an instance-store backed AMI, registering the AMI @@ -95675,12 +97509,17 @@ export const registerImage: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: RegisterImageRequest, output: RegisterImageResult, - errors: [RequestLimitExceeded, InvalidParameterCombination], + errors: [ + RequestLimitExceeded, + InvalidParameterCombination, + UnauthorizedOperation, + ], operationName: "RegisterImage", })); export type RegisterInstanceEventNotificationAttributesError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Registers a set of tag keys to include in scheduled event notifications for your @@ -95696,13 +97535,14 @@ export const registerInstanceEventNotificationAttributes: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: RegisterInstanceEventNotificationAttributesRequest, output: RegisterInstanceEventNotificationAttributesResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "RegisterInstanceEventNotificationAttributes", })); export type RegisterTransitGatewayMulticastGroupMembersError = | RequestLimitExceeded | InvalidNetworkInterfaceIdMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Registers members (network interfaces) with the transit gateway multicast group. A member is a network interface associated @@ -95725,6 +97565,7 @@ export const registerTransitGatewayMulticastGroupMembers: API.OperationMethod< RequestLimitExceeded, InvalidNetworkInterfaceIdMalformed, MissingParameter, + UnauthorizedOperation, ], operationName: "RegisterTransitGatewayMulticastGroupMembers", })); @@ -95732,6 +97573,7 @@ export type RegisterTransitGatewayMulticastGroupSourcesError = | RequestLimitExceeded | InvalidNetworkInterfaceIdMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Registers sources (network interfaces) with the specified transit gateway multicast group. @@ -95755,12 +97597,14 @@ export const registerTransitGatewayMulticastGroupSources: API.OperationMethod< RequestLimitExceeded, InvalidNetworkInterfaceIdMalformed, MissingParameter, + UnauthorizedOperation, ], operationName: "RegisterTransitGatewayMulticastGroupSources", })); export type RejectCapacityReservationBillingOwnershipError = | RequestLimitExceeded | InvalidCapacityReservationIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Rejects a request to assign billing of the available capacity of a shared Capacity @@ -95775,7 +97619,11 @@ export const rejectCapacityReservationBillingOwnership: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: RejectCapacityReservationBillingOwnershipRequest, output: RejectCapacityReservationBillingOwnershipResult, - errors: [RequestLimitExceeded, InvalidCapacityReservationIdMalformed], + errors: [ + RequestLimitExceeded, + InvalidCapacityReservationIdMalformed, + UnauthorizedOperation, + ], operationName: "RejectCapacityReservationBillingOwnership", })); export type RejectTransitGatewayClientVpnAttachmentError = CommonErrors; @@ -95796,6 +97644,7 @@ export const rejectTransitGatewayClientVpnAttachment: API.OperationMethod< export type RejectTransitGatewayMulticastDomainAssociationsError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Rejects a request to associate cross-account subnets with a transit gateway multicast domain. @@ -95808,13 +97657,14 @@ export const rejectTransitGatewayMulticastDomainAssociations: API.OperationMetho > = /*@__PURE__*/ API.make(() => ({ input: RejectTransitGatewayMulticastDomainAssociationsRequest, output: RejectTransitGatewayMulticastDomainAssociationsResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "RejectTransitGatewayMulticastDomainAssociations", })); export type RejectTransitGatewayPeeringAttachmentError = | RequestLimitExceeded | InvalidTransitGatewayAttachmentIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Rejects a transit gateway peering attachment request. @@ -95831,6 +97681,7 @@ export const rejectTransitGatewayPeeringAttachment: API.OperationMethod< RequestLimitExceeded, InvalidTransitGatewayAttachmentIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "RejectTransitGatewayPeeringAttachment", })); @@ -95838,6 +97689,7 @@ export type RejectTransitGatewayVpcAttachmentError = | RequestLimitExceeded | InvalidTransitGatewayAttachmentIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Rejects a request to attach a VPC to a transit gateway. @@ -95858,6 +97710,7 @@ export const rejectTransitGatewayVpcAttachment: API.OperationMethod< RequestLimitExceeded, InvalidTransitGatewayAttachmentIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "RejectTransitGatewayVpcAttachment", })); @@ -95865,6 +97718,7 @@ export type RejectVpcEndpointConnectionsError = | RequestLimitExceeded | InvalidParameter | InvalidVpcEndpointServiceIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Rejects VPC endpoint connection requests to your VPC endpoint service. @@ -95881,6 +97735,7 @@ export const rejectVpcEndpointConnections: API.OperationMethod< RequestLimitExceeded, InvalidParameter, InvalidVpcEndpointServiceIdNotFound, + UnauthorizedOperation, ], operationName: "RejectVpcEndpointConnections", })); @@ -95889,6 +97744,7 @@ export type RejectVpcPeeringConnectionError = | InvalidVpcPeeringConnectionIDNotFound | InvalidVpcPeeringConnectionIdNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Rejects a VPC peering connection request. The VPC peering connection must be in the @@ -95909,6 +97765,7 @@ export const rejectVpcPeeringConnection: API.OperationMethod< InvalidVpcPeeringConnectionIDNotFound, InvalidVpcPeeringConnectionIdNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "RejectVpcPeeringConnection", })); @@ -95923,6 +97780,7 @@ export type ReleaseAddressError = | InvalidParameterCombination | InvalidParameterValue | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Releases the specified Elastic IP address. @@ -95961,12 +97819,14 @@ export const releaseAddress: API.OperationMethod< InvalidParameterCombination, InvalidParameterValue, MissingParameter, + UnauthorizedOperation, ], operationName: "ReleaseAddress", })); export type ReleaseHostsError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * When you no longer want to use an On-Demand Dedicated Host it can be released. @@ -95989,12 +97849,13 @@ export const releaseHosts: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ReleaseHostsRequest, output: ReleaseHostsResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "ReleaseHosts", })); export type ReleaseIpamPoolAllocationError = | RequestLimitExceeded | InvalidIpamPoolIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Release an allocation within an IPAM pool. The Region you use should be the IPAM pool locale. The locale is the Amazon Web Services Region where this IPAM pool is available for allocations. You can only use this action to release manual allocations. To remove an allocation for a resource without deleting the resource, set its monitored state to false using ModifyIpamResourceCidr. For more information, see Release an allocation in the *Amazon VPC IPAM User Guide*. @@ -96009,7 +97870,11 @@ export const releaseIpamPoolAllocation: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ReleaseIpamPoolAllocationRequest, output: ReleaseIpamPoolAllocationResult, - errors: [RequestLimitExceeded, InvalidIpamPoolIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidIpamPoolIdNotFound, + UnauthorizedOperation, + ], operationName: "ReleaseIpamPoolAllocation", })); export type ReplaceIamInstanceProfileAssociationError = CommonErrors; @@ -96064,6 +97929,7 @@ export type ReplaceNetworkAclAssociationError = | DryRunOperation | InvalidAssociationIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Changes which network ACL a subnet is associated with. By default when you create a @@ -96085,6 +97951,7 @@ export const replaceNetworkAclAssociation: API.OperationMethod< DryRunOperation, InvalidAssociationIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "ReplaceNetworkAclAssociation", })); @@ -96092,6 +97959,7 @@ export type ReplaceNetworkAclEntryError = | RequestLimitExceeded | InvalidNetworkAclIDNotFound | InvalidNetworkAclIdMalformed + | UnauthorizedOperation | CommonErrors; /** * Replaces an entry (rule) in a network ACL. For more information, see Network ACLs in the @@ -96109,6 +97977,7 @@ export const replaceNetworkAclEntry: API.OperationMethod< RequestLimitExceeded, InvalidNetworkAclIDNotFound, InvalidNetworkAclIdMalformed, + UnauthorizedOperation, ], operationName: "ReplaceNetworkAclEntry", })); @@ -96116,6 +97985,7 @@ export type ReplaceRouteError = | RequestLimitExceeded | InvalidRouteTableIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Replaces an existing route within a route table in a VPC. @@ -96135,13 +98005,19 @@ export const replaceRoute: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ReplaceRouteRequest, output: ReplaceRouteResponse, - errors: [RequestLimitExceeded, InvalidRouteTableIDNotFound, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidRouteTableIDNotFound, + MissingParameter, + UnauthorizedOperation, + ], operationName: "ReplaceRoute", })); export type ReplaceRouteTableAssociationError = | RequestLimitExceeded | InvalidRouteTableAssociationIdMalformed | InvalidRouteTableIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Changes the route table associated with a given subnet, internet gateway, or virtual private gateway in a VPC. After the operation @@ -96163,12 +98039,14 @@ export const replaceRouteTableAssociation: API.OperationMethod< RequestLimitExceeded, InvalidRouteTableAssociationIdMalformed, InvalidRouteTableIDNotFound, + UnauthorizedOperation, ], operationName: "ReplaceRouteTableAssociation", })); export type ReplaceTransitGatewayRouteError = | RequestLimitExceeded | InvalidRouteTableIDNotFound + | UnauthorizedOperation | CommonErrors; /** * Replaces the specified route in the specified transit gateway route table. @@ -96181,12 +98059,17 @@ export const replaceTransitGatewayRoute: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ReplaceTransitGatewayRouteRequest, output: ReplaceTransitGatewayRouteResult, - errors: [RequestLimitExceeded, InvalidRouteTableIDNotFound], + errors: [ + RequestLimitExceeded, + InvalidRouteTableIDNotFound, + UnauthorizedOperation, + ], operationName: "ReplaceTransitGatewayRoute", })); export type ReplaceVpnTunnelError = | RequestLimitExceeded | InvalidVpnConnectionId + | UnauthorizedOperation | CommonErrors; /** * Trigger replacement of specified VPN tunnel. @@ -96199,12 +98082,13 @@ export const replaceVpnTunnel: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ReplaceVpnTunnelRequest, output: ReplaceVpnTunnelResult, - errors: [RequestLimitExceeded, InvalidVpnConnectionId], + errors: [RequestLimitExceeded, InvalidVpnConnectionId, UnauthorizedOperation], operationName: "ReplaceVpnTunnel", })); export type ReportInstanceStatusError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Submits feedback about the status of an instance. The instance must be in the @@ -96222,12 +98106,13 @@ export const reportInstanceStatus: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ReportInstanceStatusRequest, output: ReportInstanceStatusResponse, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "ReportInstanceStatus", })); export type RequestSpotFleetError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a Spot Fleet request. @@ -96271,12 +98156,13 @@ export const requestSpotFleet: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: RequestSpotFleetRequest, output: RequestSpotFleetResponse, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "RequestSpotFleet", })); export type RequestSpotInstancesError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Creates a Spot Instance request. @@ -96298,12 +98184,13 @@ export const requestSpotInstances: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: RequestSpotInstancesRequest, output: RequestSpotInstancesResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "RequestSpotInstances", })); export type ResetAddressAttributeError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Resets the attribute of the specified IP address. For requirements, see Using reverse DNS for email applications. @@ -96316,7 +98203,7 @@ export const resetAddressAttribute: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ResetAddressAttributeRequest, output: ResetAddressAttributeResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "ResetAddressAttribute", })); export type ResetEbsDefaultKmsKeyIdError = CommonErrors; @@ -96343,6 +98230,7 @@ export const resetEbsDefaultKmsKeyId: API.OperationMethod< export type ResetFpgaImageAttributeError = | RequestLimitExceeded | InvalidFpgaImageIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Resets the specified attribute of the specified Amazon FPGA Image (AFI) to its default value. @@ -96356,7 +98244,11 @@ export const resetFpgaImageAttribute: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ResetFpgaImageAttributeRequest, output: ResetFpgaImageAttributeResult, - errors: [RequestLimitExceeded, InvalidFpgaImageIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidFpgaImageIDMalformed, + UnauthorizedOperation, + ], operationName: "ResetFpgaImageAttribute", })); export type ResetImageAttributeError = @@ -96364,6 +98256,7 @@ export type ResetImageAttributeError = | InvalidAMIIDMalformed | InvalidAMIIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Resets an attribute of an AMI to its default value. @@ -96381,12 +98274,14 @@ export const resetImageAttribute: API.OperationMethod< InvalidAMIIDMalformed, InvalidAMIIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "ResetImageAttribute", })); export type ResetInstanceAttributeError = | RequestLimitExceeded | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Resets an attribute of an instance to its default value. To reset the @@ -96408,12 +98303,13 @@ export const resetInstanceAttribute: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ResetInstanceAttributeRequest, output: ResetInstanceAttributeResponse, - errors: [RequestLimitExceeded, InvalidParameterValue], + errors: [RequestLimitExceeded, InvalidParameterValue, UnauthorizedOperation], operationName: "ResetInstanceAttribute", })); export type ResetNetworkInterfaceAttributeError = | RequestLimitExceeded | InvalidParameterCombination + | UnauthorizedOperation | CommonErrors; /** * Resets a network interface attribute. You can specify only one attribute at a @@ -96427,7 +98323,11 @@ export const resetNetworkInterfaceAttribute: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ResetNetworkInterfaceAttributeRequest, output: ResetNetworkInterfaceAttributeResponse, - errors: [RequestLimitExceeded, InvalidParameterCombination], + errors: [ + RequestLimitExceeded, + InvalidParameterCombination, + UnauthorizedOperation, + ], operationName: "ResetNetworkInterfaceAttribute", })); export type ResetSnapshotAttributeError = @@ -96435,6 +98335,7 @@ export type ResetSnapshotAttributeError = | InvalidSnapshotNotFound | InvalidSnapshotIDMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Resets permission settings for the specified snapshot. @@ -96455,12 +98356,14 @@ export const resetSnapshotAttribute: API.OperationMethod< InvalidSnapshotNotFound, InvalidSnapshotIDMalformed, MissingParameter, + UnauthorizedOperation, ], operationName: "ResetSnapshotAttribute", })); export type RestoreAddressToClassicError = | RequestLimitExceeded | UnsupportedOperation + | UnauthorizedOperation | CommonErrors; /** * This action is deprecated. @@ -96475,12 +98378,13 @@ export const restoreAddressToClassic: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: RestoreAddressToClassicRequest, output: RestoreAddressToClassicResult, - errors: [RequestLimitExceeded, UnsupportedOperation], + errors: [RequestLimitExceeded, UnsupportedOperation, UnauthorizedOperation], operationName: "RestoreAddressToClassic", })); export type RestoreImageFromRecycleBinError = | RequestLimitExceeded | InvalidAMIIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Restores an AMI from the Recycle Bin. For more information, see Recover deleted Amazon EBS @@ -96495,12 +98399,13 @@ export const restoreImageFromRecycleBin: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: RestoreImageFromRecycleBinRequest, output: RestoreImageFromRecycleBinResult, - errors: [RequestLimitExceeded, InvalidAMIIDMalformed], + errors: [RequestLimitExceeded, InvalidAMIIDMalformed, UnauthorizedOperation], operationName: "RestoreImageFromRecycleBin", })); export type RestoreManagedPrefixListVersionError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Restores the entries from a previous version of a managed prefix list to a new version of the prefix list. @@ -96513,12 +98418,13 @@ export const restoreManagedPrefixListVersion: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: RestoreManagedPrefixListVersionRequest, output: RestoreManagedPrefixListVersionResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "RestoreManagedPrefixListVersion", })); export type RestoreSnapshotFromRecycleBinError = | RequestLimitExceeded | InvalidSnapshotIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Restores a snapshot from the Recycle Bin. For more information, see Restore @@ -96532,12 +98438,17 @@ export const restoreSnapshotFromRecycleBin: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: RestoreSnapshotFromRecycleBinRequest, output: RestoreSnapshotFromRecycleBinResult, - errors: [RequestLimitExceeded, InvalidSnapshotIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidSnapshotIDMalformed, + UnauthorizedOperation, + ], operationName: "RestoreSnapshotFromRecycleBin", })); export type RestoreSnapshotTierError = | RequestLimitExceeded | InvalidSnapshotIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Restores an archived Amazon EBS snapshot for use temporarily or permanently, or modifies the restore @@ -96555,12 +98466,17 @@ export const restoreSnapshotTier: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: RestoreSnapshotTierRequest, output: RestoreSnapshotTierResult, - errors: [RequestLimitExceeded, InvalidSnapshotIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidSnapshotIDMalformed, + UnauthorizedOperation, + ], operationName: "RestoreSnapshotTier", })); export type RestoreVolumeFromRecycleBinError = | RequestLimitExceeded | InvalidVolumeIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Restores a volume from the Recycle Bin. For more information, see Restore @@ -96574,12 +98490,17 @@ export const restoreVolumeFromRecycleBin: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: RestoreVolumeFromRecycleBinRequest, output: RestoreVolumeFromRecycleBinResult, - errors: [RequestLimitExceeded, InvalidVolumeIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidVolumeIDMalformed, + UnauthorizedOperation, + ], operationName: "RestoreVolumeFromRecycleBin", })); export type RevokeClientVpnIngressError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Removes an ingress authorization rule from a Client VPN endpoint. @@ -96592,7 +98513,7 @@ export const revokeClientVpnIngress: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: RevokeClientVpnIngressRequest, output: RevokeClientVpnIngressResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "RevokeClientVpnIngress", })); export type RevokeSecurityGroupEgressError = @@ -96605,6 +98526,7 @@ export type RevokeSecurityGroupEgressError = | InvalidSecurityGroupRuleIdMalformed | MissingParameter | UnknownParameter + | UnauthorizedOperation | CommonErrors; /** * Removes the specified outbound (egress) rules from the specified security group. @@ -96643,6 +98565,7 @@ export const revokeSecurityGroupEgress: API.OperationMethod< InvalidSecurityGroupRuleIdMalformed, MissingParameter, UnknownParameter, + UnauthorizedOperation, ], operationName: "RevokeSecurityGroupEgress", })); @@ -96653,6 +98576,7 @@ export type RevokeSecurityGroupIngressError = | InvalidPermissionNotFound | MissingParameter | ParseError + | UnauthorizedOperation | CommonErrors; /** * Removes the specified inbound (ingress) rules from a security group. @@ -96693,6 +98617,7 @@ export const revokeSecurityGroupIngress: API.OperationMethod< InvalidPermissionNotFound, MissingParameter, ParseError, + UnauthorizedOperation, ], operationName: "RevokeSecurityGroupIngress", })); @@ -96703,6 +98628,7 @@ export type RunInstancesError = | InvalidParameterValue | MissingParameter | ParseError + | UnauthorizedOperation | CommonErrors; /** * Launches the specified number of instances using an AMI for which you have @@ -96771,12 +98697,14 @@ export const runInstances: API.OperationMethod< InvalidParameterValue, MissingParameter, ParseError, + UnauthorizedOperation, ], operationName: "RunInstances", })); export type RunScheduledInstancesError = | RequestLimitExceeded | InvalidScheduledInstance + | UnauthorizedOperation | CommonErrors; /** * Launches the specified Scheduled Instances. @@ -96796,13 +98724,18 @@ export const runScheduledInstances: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: RunScheduledInstancesRequest, output: RunScheduledInstancesResult, - errors: [RequestLimitExceeded, InvalidScheduledInstance], + errors: [ + RequestLimitExceeded, + InvalidScheduledInstance, + UnauthorizedOperation, + ], operationName: "RunScheduledInstances", })); export type SearchLocalGatewayRoutesError = | RequestLimitExceeded | InvalidLocalGatewayRouteTableIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Searches for routes in the specified local gateway route table. @@ -96834,6 +98767,7 @@ export const searchLocalGatewayRoutes: API.OperationMethod< RequestLimitExceeded, InvalidLocalGatewayRouteTableIDNotFound, MissingParameter, + UnauthorizedOperation, ], operationName: "SearchLocalGatewayRoutes", pagination: { @@ -96847,6 +98781,7 @@ export type SearchTransitGatewayMulticastGroupsError = | RequestLimitExceeded | InvalidTransitGatewayMulticastDomainIdMalformed | InvalidTransitGatewayMulticastDomainIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Searches one or more transit gateway multicast groups and returns the group membership information. @@ -96878,6 +98813,7 @@ export const searchTransitGatewayMulticastGroups: API.OperationMethod< RequestLimitExceeded, InvalidTransitGatewayMulticastDomainIdMalformed, InvalidTransitGatewayMulticastDomainIdNotFound, + UnauthorizedOperation, ], operationName: "SearchTransitGatewayMulticastGroups", pagination: { @@ -96891,6 +98827,7 @@ export type SearchTransitGatewayRoutesError = | RequestLimitExceeded | InvalidRouteTableIDNotFound | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Searches for routes in the specified transit gateway route table. @@ -96918,7 +98855,12 @@ export const searchTransitGatewayRoutes: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: SearchTransitGatewayRoutesRequest, output: SearchTransitGatewayRoutesResult, - errors: [RequestLimitExceeded, InvalidRouteTableIDNotFound, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidRouteTableIDNotFound, + MissingParameter, + UnauthorizedOperation, + ], operationName: "SearchTransitGatewayRoutes", pagination: { inputToken: "NextToken", @@ -96930,6 +98872,7 @@ export const searchTransitGatewayRoutes: API.OperationMethod< export type SendDiagnosticInterruptError = | RequestLimitExceeded | InvalidInstanceIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Sends a diagnostic interrupt to the specified Amazon EC2 instance to trigger a @@ -96958,12 +98901,17 @@ export const sendDiagnosticInterrupt: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: SendDiagnosticInterruptRequest, output: SendDiagnosticInterruptResponse, - errors: [RequestLimitExceeded, InvalidInstanceIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidInstanceIDMalformed, + UnauthorizedOperation, + ], operationName: "SendDiagnosticInterrupt", })); export type StartDeclarativePoliciesReportError = | RequestLimitExceeded | DeclarativePoliciesAccessDenied + | UnauthorizedOperation | CommonErrors; /** * Generates an account status report. The report is generated asynchronously, and can @@ -97014,7 +98962,11 @@ export const startDeclarativePoliciesReport: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: StartDeclarativePoliciesReportRequest, output: StartDeclarativePoliciesReportResult, - errors: [RequestLimitExceeded, DeclarativePoliciesAccessDenied], + errors: [ + RequestLimitExceeded, + DeclarativePoliciesAccessDenied, + UnauthorizedOperation, + ], operationName: "StartDeclarativePoliciesReport", })); export type StartInstancesError = @@ -97022,6 +98974,7 @@ export type StartInstancesError = | InvalidInstanceIDMalformed | InvalidInstanceIDNotFound | InvalidParameterCombination + | UnauthorizedOperation | CommonErrors; /** * Starts an Amazon EBS-backed instance that you've previously stopped. @@ -97062,6 +99015,7 @@ export const startInstances: API.OperationMethod< InvalidInstanceIDMalformed, InvalidInstanceIDNotFound, InvalidParameterCombination, + UnauthorizedOperation, ], operationName: "StartInstances", })); @@ -97069,6 +99023,7 @@ export type StartNetworkInsightsAccessScopeAnalysisError = | RequestLimitExceeded | IdempotentParameterMismatch | InvalidParameterValue + | UnauthorizedOperation | CommonErrors; /** * Starts analyzing the specified Network Access Scope. @@ -97085,6 +99040,7 @@ export const startNetworkInsightsAccessScopeAnalysis: API.OperationMethod< RequestLimitExceeded, IdempotentParameterMismatch, InvalidParameterValue, + UnauthorizedOperation, ], operationName: "StartNetworkInsightsAccessScopeAnalysis", })); @@ -97092,6 +99048,7 @@ export type StartNetworkInsightsAnalysisError = | RequestLimitExceeded | InvalidParameterValue | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Starts analyzing the specified path. If the path is reachable, the @@ -97105,13 +99062,19 @@ export const startNetworkInsightsAnalysis: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: StartNetworkInsightsAnalysisRequest, output: StartNetworkInsightsAnalysisResult, - errors: [RequestLimitExceeded, InvalidParameterValue, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidParameterValue, + MissingParameter, + UnauthorizedOperation, + ], operationName: "StartNetworkInsightsAnalysis", })); export type StartVpcEndpointServicePrivateDnsVerificationError = | RequestLimitExceeded | InvalidVpcEndpointServiceIdMalformed | InvalidVpcEndpointServiceIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Initiates the verification process to prove that the service provider owns the private @@ -97133,6 +99096,7 @@ export const startVpcEndpointServicePrivateDnsVerification: API.OperationMethod< RequestLimitExceeded, InvalidVpcEndpointServiceIdMalformed, InvalidVpcEndpointServiceIdNotFound, + UnauthorizedOperation, ], operationName: "StartVpcEndpointServicePrivateDnsVerification", })); @@ -97141,6 +99105,7 @@ export type StopInstancesError = | InvalidInstanceIDMalformed | InvalidInstanceIDNotFound | InvalidParameterCombination + | UnauthorizedOperation | CommonErrors; /** * Stops an Amazon EBS-backed instance. You can restart your instance at any time using @@ -97194,12 +99159,14 @@ export const stopInstances: API.OperationMethod< InvalidInstanceIDMalformed, InvalidInstanceIDNotFound, InvalidParameterCombination, + UnauthorizedOperation, ], operationName: "StopInstances", })); export type TerminateClientVpnConnectionsError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Terminates active Client VPN endpoint connections. This action can be used to terminate a specific client connection, or up to five connections established by a specific user. @@ -97212,7 +99179,7 @@ export const terminateClientVpnConnections: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: TerminateClientVpnConnectionsRequest, output: TerminateClientVpnConnectionsResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "TerminateClientVpnConnections", })); export type TerminateInstancesError = @@ -97220,6 +99187,7 @@ export type TerminateInstancesError = | InvalidInstanceIDMalformed | InvalidInstanceIDNotFound | InvalidParameterCombination + | UnauthorizedOperation | CommonErrors; /** * Terminates (deletes) the specified instances. This operation is idempotent; if you @@ -97309,6 +99277,7 @@ export const terminateInstances: API.OperationMethod< InvalidInstanceIDMalformed, InvalidInstanceIDNotFound, InvalidParameterCombination, + UnauthorizedOperation, ], operationName: "TerminateInstances", })); @@ -97316,6 +99285,7 @@ export type UnassignIpv6AddressesError = | RequestLimitExceeded | InvalidNetworkInterfaceIDNotFound | InvalidParameterCombination + | UnauthorizedOperation | CommonErrors; /** * Unassigns the specified IPv6 addresses or Prefix Delegation prefixes from a network @@ -97333,6 +99303,7 @@ export const unassignIpv6Addresses: API.OperationMethod< RequestLimitExceeded, InvalidNetworkInterfaceIDNotFound, InvalidParameterCombination, + UnauthorizedOperation, ], operationName: "UnassignIpv6Addresses", })); @@ -97341,6 +99312,7 @@ export type UnassignPrivateIpAddressesError = | InvalidNetworkInterfaceIDNotFound | InvalidNetworkInterfaceIdMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Unassigns the specified secondary private IP addresses or IPv4 Prefix Delegation @@ -97359,6 +99331,7 @@ export const unassignPrivateIpAddresses: API.OperationMethod< InvalidNetworkInterfaceIDNotFound, InvalidNetworkInterfaceIdMalformed, MissingParameter, + UnauthorizedOperation, ], operationName: "UnassignPrivateIpAddresses", })); @@ -97390,6 +99363,7 @@ export const unassignPrivateNatGatewayAddress: API.OperationMethod< export type UnlockSnapshotError = | RequestLimitExceeded | InvalidSnapshotIDMalformed + | UnauthorizedOperation | CommonErrors; /** * Unlocks a snapshot that is locked in governance mode or that is locked in compliance mode @@ -97404,13 +99378,18 @@ export const unlockSnapshot: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: UnlockSnapshotRequest, output: UnlockSnapshotResult, - errors: [RequestLimitExceeded, InvalidSnapshotIDMalformed], + errors: [ + RequestLimitExceeded, + InvalidSnapshotIDMalformed, + UnauthorizedOperation, + ], operationName: "UnlockSnapshot", })); export type UnmonitorInstancesError = | RequestLimitExceeded | InvalidInstanceIDMalformed | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Disables detailed monitoring for a running instance. For more information, see Monitoring @@ -97425,7 +99404,12 @@ export const unmonitorInstances: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: UnmonitorInstancesRequest, output: UnmonitorInstancesResult, - errors: [RequestLimitExceeded, InvalidInstanceIDMalformed, MissingParameter], + errors: [ + RequestLimitExceeded, + InvalidInstanceIDMalformed, + MissingParameter, + UnauthorizedOperation, + ], operationName: "UnmonitorInstances", })); export type UpdateCapacityManagerMonitoredTagKeysError = CommonErrors; @@ -97446,6 +99430,7 @@ export const updateCapacityManagerMonitoredTagKeys: API.OperationMethod< export type UpdateCapacityManagerOrganizationsAccessError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Updates the Organizations access setting for EC2 Capacity Manager. This controls whether Capacity Manager can aggregate @@ -97459,12 +99444,13 @@ export const updateCapacityManagerOrganizationsAccess: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: UpdateCapacityManagerOrganizationsAccessRequest, output: UpdateCapacityManagerOrganizationsAccessResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "UpdateCapacityManagerOrganizationsAccess", })); export type UpdateInterruptibleCapacityReservationAllocationError = | RequestLimitExceeded | InvalidCapacityReservationIdNotFound + | UnauthorizedOperation | CommonErrors; /** * Modifies the number of instances allocated to an interruptible reservation, allowing you to add more capacity or reclaim capacity to your source Capacity Reservation. @@ -97477,12 +99463,17 @@ export const updateInterruptibleCapacityReservationAllocation: API.OperationMeth > = /*@__PURE__*/ API.make(() => ({ input: UpdateInterruptibleCapacityReservationAllocationRequest, output: UpdateInterruptibleCapacityReservationAllocationResult, - errors: [RequestLimitExceeded, InvalidCapacityReservationIdNotFound], + errors: [ + RequestLimitExceeded, + InvalidCapacityReservationIdNotFound, + UnauthorizedOperation, + ], operationName: "UpdateInterruptibleCapacityReservationAllocation", })); export type UpdateSecurityGroupRuleDescriptionsEgressError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Updates the description of an egress (outbound) security group rule. You @@ -97498,12 +99489,13 @@ export const updateSecurityGroupRuleDescriptionsEgress: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: UpdateSecurityGroupRuleDescriptionsEgressRequest, output: UpdateSecurityGroupRuleDescriptionsEgressResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "UpdateSecurityGroupRuleDescriptionsEgress", })); export type UpdateSecurityGroupRuleDescriptionsIngressError = | RequestLimitExceeded | MissingParameter + | UnauthorizedOperation | CommonErrors; /** * Updates the description of an ingress (inbound) security group rule. You can replace an @@ -97519,10 +99511,13 @@ export const updateSecurityGroupRuleDescriptionsIngress: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: UpdateSecurityGroupRuleDescriptionsIngressRequest, output: UpdateSecurityGroupRuleDescriptionsIngressResult, - errors: [RequestLimitExceeded, MissingParameter], + errors: [RequestLimitExceeded, MissingParameter, UnauthorizedOperation], operationName: "UpdateSecurityGroupRuleDescriptionsIngress", })); -export type WithdrawByoipCidrError = RequestLimitExceeded | CommonErrors; +export type WithdrawByoipCidrError = + | RequestLimitExceeded + | UnauthorizedOperation + | CommonErrors; /** * Stops advertising an address range that is provisioned as an address pool. * @@ -97540,6 +99535,6 @@ export const withdrawByoipCidr: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: WithdrawByoipCidrRequest, output: WithdrawByoipCidrResult, - errors: [RequestLimitExceeded], + errors: [RequestLimitExceeded, UnauthorizedOperation], operationName: "WithdrawByoipCidr", })); diff --git a/packages/aws/src/services/ecr-public.ts b/packages/aws/src/services/ecr-public.ts index 807046bfb0..dd60f383cd 100644 --- a/packages/aws/src/services/ecr-public.ts +++ b/packages/aws/src/services/ecr-public.ts @@ -1,4 +1,5 @@ import * as HttpClient from "effect/unstable/http/HttpClient"; +import * as redacted from "effect/Redacted"; import * as S from "@distilled.cloud/core/schema"; import * as stream from "effect/Stream"; import * as API from "../client/api.ts"; @@ -7,6 +8,7 @@ import * as C from "../category.ts"; import type { Credentials } from "../credentials.ts"; import type { CommonErrors } from "../errors.ts"; import type { Region } from "../region.ts"; +import { SensitiveString } from "../sensitive.ts"; const ns = T.XmlNamespace("http://ecr-public.amazonaws.com/doc/2020-12-02/"); const svc = T.AwsApiService({ sdkId: "ECR PUBLIC", @@ -777,12 +779,12 @@ export const GetAuthorizationTokenRequest = identifier: "GetAuthorizationTokenRequest", }) as any as S.Schema; export interface AuthorizationData { - authorizationToken?: string; + authorizationToken?: string | redacted.Redacted; expiresAt?: Date; } export const AuthorizationData = /*@__PURE__*/ S.suspend(() => S.Struct({ - authorizationToken: S.optional(S.String), + authorizationToken: S.optional(SensitiveString), expiresAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), }), ).annotate({ diff --git a/packages/aws/src/services/ecr.ts b/packages/aws/src/services/ecr.ts index 1908ea121b..81cfb00fab 100644 --- a/packages/aws/src/services/ecr.ts +++ b/packages/aws/src/services/ecr.ts @@ -1,4 +1,5 @@ import * as HttpClient from "effect/unstable/http/HttpClient"; +import * as redacted from "effect/Redacted"; import * as S from "@distilled.cloud/core/schema"; import * as stream from "effect/Stream"; import * as API from "../client/api.ts"; @@ -7,6 +8,7 @@ import * as C from "../category.ts"; import type { Credentials } from "../credentials.ts"; import type { CommonErrors } from "../errors.ts"; import type { Region as Rgn } from "../region.ts"; +import { SensitiveString } from "../sensitive.ts"; const ns = T.XmlNamespace("http://ecr.amazonaws.com/doc/2015-09-21/"); const svc = T.AwsApiService({ sdkId: "ECR", @@ -2384,13 +2386,13 @@ export const GetAuthorizationTokenRequest = identifier: "GetAuthorizationTokenRequest", }) as any as S.Schema; export interface AuthorizationData { - authorizationToken?: string; + authorizationToken?: string | redacted.Redacted; expiresAt?: Date; proxyEndpoint?: string; } export const AuthorizationData = /*@__PURE__*/ S.suspend(() => S.Struct({ - authorizationToken: S.optional(S.String), + authorizationToken: S.optional(SensitiveString), expiresAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), proxyEndpoint: S.optional(S.String), }), @@ -3835,6 +3837,7 @@ export class UnableToGetUpstreamImageException extends S.TaggedErrorClass()( "ValidationException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class EmptyUploadException extends S.TaggedErrorClass()( "EmptyUploadException", diff --git a/packages/aws/src/services/eks-auth.ts b/packages/aws/src/services/eks-auth.ts index 945f104f9f..3a6189e929 100644 --- a/packages/aws/src/services/eks-auth.ts +++ b/packages/aws/src/services/eks-auth.ts @@ -127,15 +127,15 @@ export const AssumedRoleUser = /*@__PURE__*/ S.suspend(() => identifier: "AssumedRoleUser", }) as any as S.Schema; export interface Credentials { - sessionToken: string; - secretAccessKey: string; + sessionToken: string | redacted.Redacted; + secretAccessKey: string | redacted.Redacted; accessKeyId: string; expiration: Date; } export const Credentials = /*@__PURE__*/ S.suspend(() => S.Struct({ - sessionToken: S.String, - secretAccessKey: S.String, + sessionToken: SensitiveString, + secretAccessKey: SensitiveString, accessKeyId: S.String, expiration: S.Date.pipe(T.TimestampFormat("epoch-seconds")), }), @@ -164,38 +164,47 @@ export const AssumeRoleForPodIdentityResponse = export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError, C.withAuthError) {} export class ExpiredTokenException extends S.TaggedErrorClass()( "ExpiredTokenException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class InvalidParameterException extends S.TaggedErrorClass()( "InvalidParameterException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidRequestException extends S.TaggedErrorClass()( "InvalidRequestException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidTokenException extends S.TaggedErrorClass()( "InvalidTokenException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ServiceUnavailableException extends S.TaggedErrorClass()( "ServiceUnavailableException", { message: S.optional(S.String) }, + T.HttpError(503), ).pipe(C.withServerError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", { message: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} //# Operations diff --git a/packages/aws/src/services/eks.ts b/packages/aws/src/services/eks.ts index 2a2b1a1999..d790f8d5fd 100644 --- a/packages/aws/src/services/eks.ts +++ b/packages/aws/src/services/eks.ts @@ -5099,6 +5099,7 @@ export type CreateFargateProfileError = | ResourceLimitExceededException | ServerException | UnsupportedAvailabilityZoneException + | ResourceInUseException | CommonErrors; /** * Creates an Fargate profile for your Amazon EKS cluster. You must have at least one @@ -5147,6 +5148,7 @@ export const createFargateProfile: API.OperationMethod< ResourceLimitExceededException, ServerException, UnsupportedAvailabilityZoneException, + ResourceInUseException, ], operationName: "CreateFargateProfile", })); @@ -5410,6 +5412,7 @@ export type DeleteFargateProfileError = | InvalidParameterException | ResourceNotFoundException | ServerException + | ResourceInUseException | CommonErrors; /** * Deletes an Fargate profile. @@ -5437,6 +5440,7 @@ export const deleteFargateProfile: API.OperationMethod< InvalidParameterException, ResourceNotFoundException, ServerException, + ResourceInUseException, ], operationName: "DeleteFargateProfile", })); diff --git a/packages/aws/src/services/elastic-load-balancing-v2.ts b/packages/aws/src/services/elastic-load-balancing-v2.ts index 47c56cdbf7..8c49af4301 100644 --- a/packages/aws/src/services/elastic-load-balancing-v2.ts +++ b/packages/aws/src/services/elastic-load-balancing-v2.ts @@ -1,4 +1,5 @@ import * as HttpClient from "effect/unstable/http/HttpClient"; +import * as redacted from "effect/Redacted"; import * as S from "@distilled.cloud/core/schema"; import * as stream from "effect/Stream"; import * as API from "../client/api.ts"; @@ -7,6 +8,7 @@ import * as C from "../category.ts"; import type { Credentials } from "../credentials.ts"; import type { CommonErrors } from "../errors.ts"; import type { Region } from "../region.ts"; +import { SensitiveString } from "../sensitive.ts"; const ns = T.XmlNamespace( "http://elasticloadbalancing.amazonaws.com/doc/2015-12-01/", ); @@ -402,7 +404,7 @@ export interface AuthenticateOidcActionConfig { TokenEndpoint?: string; UserInfoEndpoint?: string; ClientId?: string; - ClientSecret?: string; + ClientSecret?: string | redacted.Redacted; SessionCookieName?: string; Scope?: string; SessionTimeout?: number; @@ -418,7 +420,7 @@ export const AuthenticateOidcActionConfig = TokenEndpoint: S.optional(S.String), UserInfoEndpoint: S.optional(S.String), ClientId: S.optional(S.String), - ClientSecret: S.optional(S.String), + ClientSecret: S.optional(SensitiveString), SessionCookieName: S.optional(S.String), Scope: S.optional(S.String), SessionTimeout: S.optional(S.Number), @@ -3323,318 +3325,501 @@ export const SetSubnetsOutput = /*@__PURE__*/ S.suspend(() => export class CertificateNotFoundException extends S.TaggedErrorClass()( "CertificateNotFoundException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "CertificateNotFound", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "CertificateNotFound", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ListenerNotFoundException extends S.TaggedErrorClass()( "ListenerNotFoundException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "ListenerNotFound", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "ListenerNotFound", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class TooManyCertificatesException extends S.TaggedErrorClass()( "TooManyCertificatesException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "TooManyCertificates", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "TooManyCertificates", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DuplicateTagKeysException extends S.TaggedErrorClass()( "DuplicateTagKeysException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "DuplicateTagKeys", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "DuplicateTagKeys", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class LoadBalancerNotFoundException extends S.TaggedErrorClass()( "LoadBalancerNotFoundException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "LoadBalancerNotFound", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "LoadBalancerNotFound", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class RuleNotFoundException extends S.TaggedErrorClass()( "RuleNotFoundException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "RuleNotFound", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "RuleNotFound", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class TargetGroupNotFoundException extends S.TaggedErrorClass()( "TargetGroupNotFoundException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "TargetGroupNotFound", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "TargetGroupNotFound", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class TooManyTagsException extends S.TaggedErrorClass()( "TooManyTagsException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "TooManyTags", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "TooManyTags", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class TrustStoreNotFoundException extends S.TaggedErrorClass()( "TrustStoreNotFoundException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "TrustStoreNotFound", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "TrustStoreNotFound", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidRevocationContentException extends S.TaggedErrorClass()( "InvalidRevocationContentException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidRevocationContent", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "InvalidRevocationContent", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class RevocationContentNotFoundException extends S.TaggedErrorClass()( "RevocationContentNotFoundException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "RevocationContentNotFound", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "RevocationContentNotFound", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class TooManyTrustStoreRevocationEntriesException extends S.TaggedErrorClass()( "TooManyTrustStoreRevocationEntriesException", { Message: S.optional(S.String) }, - T.AwsQueryError({ - code: "TooManyTrustStoreRevocationEntries", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "TooManyTrustStoreRevocationEntries", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ALPNPolicyNotSupportedException extends S.TaggedErrorClass()( "ALPNPolicyNotSupportedException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "ALPNPolicyNotFound", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "ALPNPolicyNotFound", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DuplicateListenerException extends S.TaggedErrorClass()( "DuplicateListenerException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "DuplicateListener", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "DuplicateListener", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class IncompatibleProtocolsException extends S.TaggedErrorClass()( "IncompatibleProtocolsException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "IncompatibleProtocols", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "IncompatibleProtocols", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidConfigurationRequestException extends S.TaggedErrorClass()( "InvalidConfigurationRequestException", { Message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidConfigurationRequest", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidConfigurationRequest", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidLoadBalancerActionException extends S.TaggedErrorClass()( "InvalidLoadBalancerActionException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidLoadBalancerAction", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "InvalidLoadBalancerAction", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SSLPolicyNotFoundException extends S.TaggedErrorClass()( "SSLPolicyNotFoundException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "SSLPolicyNotFound", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "SSLPolicyNotFound", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class TargetGroupAssociationLimitException extends S.TaggedErrorClass()( "TargetGroupAssociationLimitException", { Message: S.optional(S.String) }, - T.AwsQueryError({ - code: "TargetGroupAssociationLimit", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "TargetGroupAssociationLimit", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class TooManyActionsException extends S.TaggedErrorClass()( "TooManyActionsException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "TooManyActions", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "TooManyActions", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class TooManyListenersException extends S.TaggedErrorClass()( "TooManyListenersException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "TooManyListeners", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "TooManyListeners", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class TooManyRegistrationsForTargetIdException extends S.TaggedErrorClass()( "TooManyRegistrationsForTargetIdException", { Message: S.optional(S.String) }, - T.AwsQueryError({ - code: "TooManyRegistrationsForTargetId", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "TooManyRegistrationsForTargetId", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class TooManyTargetsException extends S.TaggedErrorClass()( "TooManyTargetsException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "TooManyTargets", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "TooManyTargets", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class TooManyUniqueTargetGroupsPerLoadBalancerException extends S.TaggedErrorClass()( "TooManyUniqueTargetGroupsPerLoadBalancerException", { Message: S.optional(S.String) }, - T.AwsQueryError({ - code: "TooManyUniqueTargetGroupsPerLoadBalancer", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "TooManyUniqueTargetGroupsPerLoadBalancer", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class TrustStoreNotReadyException extends S.TaggedErrorClass()( "TrustStoreNotReadyException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "TrustStoreNotReady", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "TrustStoreNotReady", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class UnsupportedProtocolException extends S.TaggedErrorClass()( "UnsupportedProtocolException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "UnsupportedProtocol", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "UnsupportedProtocol", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class AllocationIdNotFoundException extends S.TaggedErrorClass()( "AllocationIdNotFoundException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "AllocationIdNotFound", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "AllocationIdNotFound", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class AvailabilityZoneNotSupportedException extends S.TaggedErrorClass()( "AvailabilityZoneNotSupportedException", { Message: S.optional(S.String) }, - T.AwsQueryError({ - code: "AvailabilityZoneNotSupported", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "AvailabilityZoneNotSupported", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DuplicateLoadBalancerNameException extends S.TaggedErrorClass()( "DuplicateLoadBalancerNameException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "DuplicateLoadBalancerName", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "DuplicateLoadBalancerName", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidSchemeException extends S.TaggedErrorClass()( "InvalidSchemeException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidScheme", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidScheme", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidSecurityGroupException extends S.TaggedErrorClass()( "InvalidSecurityGroupException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidSecurityGroup", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidSecurityGroup", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidSubnetException extends S.TaggedErrorClass()( "InvalidSubnetException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidSubnet", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidSubnet", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class OperationNotPermittedException extends S.TaggedErrorClass()( "OperationNotPermittedException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "OperationNotPermitted", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "OperationNotPermitted", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ResourceInUseException extends S.TaggedErrorClass()( "ResourceInUseException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "ResourceInUse", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "ResourceInUse", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SubnetNotFoundException extends S.TaggedErrorClass()( "SubnetNotFoundException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "SubnetNotFound", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "SubnetNotFound", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class TooManyLoadBalancersException extends S.TaggedErrorClass()( "TooManyLoadBalancersException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "TooManyLoadBalancers", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "TooManyLoadBalancers", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class PriorityInUseException extends S.TaggedErrorClass()( "PriorityInUseException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "PriorityInUse", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "PriorityInUse", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class TooManyRulesException extends S.TaggedErrorClass()( "TooManyRulesException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "TooManyRules", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "TooManyRules", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class TooManyTargetGroupsException extends S.TaggedErrorClass()( "TooManyTargetGroupsException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "TooManyTargetGroups", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "TooManyTargetGroups", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DuplicateTargetGroupNameException extends S.TaggedErrorClass()( "DuplicateTargetGroupNameException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "DuplicateTargetGroupName", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "DuplicateTargetGroupName", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class CaCertificatesBundleNotFoundException extends S.TaggedErrorClass()( "CaCertificatesBundleNotFoundException", { Message: S.optional(S.String) }, - T.AwsQueryError({ - code: "CaCertificatesBundleNotFound", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "CaCertificatesBundleNotFound", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DuplicateTrustStoreNameException extends S.TaggedErrorClass()( "DuplicateTrustStoreNameException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "DuplicateTrustStoreName", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "DuplicateTrustStoreName", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidCaCertificatesBundleException extends S.TaggedErrorClass()( "InvalidCaCertificatesBundleException", { Message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidCaCertificatesBundle", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidCaCertificatesBundle", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class TooManyTrustStoresException extends S.TaggedErrorClass()( "TooManyTrustStoresException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "TooManyTrustStores", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "TooManyTrustStores", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DeleteAssociationSameAccountException extends S.TaggedErrorClass()( "DeleteAssociationSameAccountException", { Message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DeleteAssociationSameAccount", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DeleteAssociationSameAccount", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class TrustStoreAssociationNotFoundException extends S.TaggedErrorClass()( "TrustStoreAssociationNotFoundException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "AssociationNotFound", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "AssociationNotFound", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class TrustStoreInUseException extends S.TaggedErrorClass()( "TrustStoreInUseException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "TrustStoreInUse", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "TrustStoreInUse", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidTargetException extends S.TaggedErrorClass()( "InvalidTargetException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidTarget", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidTarget", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class HealthUnavailableException extends S.TaggedErrorClass()( "HealthUnavailableException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "HealthUnavailable", httpResponseCode: 500 }), + T.all( + T.AwsQueryError({ code: "HealthUnavailable", httpResponseCode: 500 }), + T.HttpError(500), + ), ).pipe(C.withServerError) {} export class RevocationIdNotFoundException extends S.TaggedErrorClass()( "RevocationIdNotFoundException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "RevocationIdNotFound", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "RevocationIdNotFound", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "ResourceNotFound", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "ResourceNotFound", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class CapacityDecreaseRequestsLimitExceededException extends S.TaggedErrorClass()( "CapacityDecreaseRequestsLimitExceededException", { Message: S.optional(S.String) }, - T.AwsQueryError({ - code: "CapacityDecreaseRequestLimitExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "CapacityDecreaseRequestLimitExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class CapacityReservationPendingException extends S.TaggedErrorClass()( "CapacityReservationPendingException", { Message: S.optional(S.String) }, - T.AwsQueryError({ - code: "CapacityReservationPending", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "CapacityReservationPending", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class CapacityUnitsLimitExceededException extends S.TaggedErrorClass()( "CapacityUnitsLimitExceededException", { Message: S.optional(S.String) }, - T.AwsQueryError({ - code: "CapacityUnitsLimitExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "CapacityUnitsLimitExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InsufficientCapacityException extends S.TaggedErrorClass()( "InsufficientCapacityException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "InsufficientCapacity", httpResponseCode: 500 }), + T.all( + T.AwsQueryError({ code: "InsufficientCapacity", httpResponseCode: 500 }), + T.HttpError(500), + ), ).pipe(C.withServerError) {} export class PriorRequestNotCompleteException extends S.TaggedErrorClass()( "PriorRequestNotCompleteException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "PriorRequestNotComplete", httpResponseCode: 429 }), + T.all( + T.AwsQueryError({ code: "PriorRequestNotComplete", httpResponseCode: 429 }), + T.HttpError(429), + ), ).pipe(C.withThrottlingError) {} //# Operations diff --git a/packages/aws/src/services/elasticache.ts b/packages/aws/src/services/elasticache.ts index b6051ffe78..83b87d036f 100644 --- a/packages/aws/src/services/elasticache.ts +++ b/packages/aws/src/services/elasticache.ts @@ -1,4 +1,5 @@ import * as HttpClient from "effect/unstable/http/HttpClient"; +import * as redacted from "effect/Redacted"; import * as S from "@distilled.cloud/core/schema"; import * as stream from "effect/Stream"; import * as API from "../client/api.ts"; @@ -7,6 +8,7 @@ import * as C from "../category.ts"; import type { Credentials } from "../credentials.ts"; import type { CommonErrors } from "../errors.ts"; import type { Region } from "../region.ts"; +import { SensitiveString } from "../sensitive.ts"; const ns = T.XmlNamespace("http://elasticache.amazonaws.com/doc/2015-02-02/"); const svc = T.AwsApiService({ sdkId: "ElastiCache", @@ -205,12 +207,12 @@ export const CacheSecurityGroup = /*@__PURE__*/ S.suspend(() => export interface AuthorizeCacheSecurityGroupIngressResult { CacheSecurityGroup?: CacheSecurityGroup; } -export const AuthorizeCacheSecurityGroupIngressResult = - /*@__PURE__*/ S.suspend(() => +export const AuthorizeCacheSecurityGroupIngressResult = /*@__PURE__*/ S.suspend( + () => S.Struct({ CacheSecurityGroup: S.optional(CacheSecurityGroup) }).pipe(ns), - ).annotate({ - identifier: "AuthorizeCacheSecurityGroupIngressResult", - }) as any as S.Schema; +).annotate({ + identifier: "AuthorizeCacheSecurityGroupIngressResult", +}) as any as S.Schema; export type ReplicationGroupIdList = string[]; export const ReplicationGroupIdList = /*@__PURE__*/ S.Array(S.String); export type CacheClusterIdList = string[]; @@ -220,26 +222,25 @@ export interface BatchApplyUpdateActionMessage { CacheClusterIds?: string[]; ServiceUpdateName?: string; } -export const BatchApplyUpdateActionMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ReplicationGroupIds: S.optional(ReplicationGroupIdList), - CacheClusterIds: S.optional(CacheClusterIdList), - ServiceUpdateName: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const BatchApplyUpdateActionMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ReplicationGroupIds: S.optional(ReplicationGroupIdList), + CacheClusterIds: S.optional(CacheClusterIdList), + ServiceUpdateName: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "BatchApplyUpdateActionMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "BatchApplyUpdateActionMessage", +}) as any as S.Schema; export type UpdateActionStatus = | "not-applied" | "waiting-to-start" @@ -315,26 +316,25 @@ export interface BatchStopUpdateActionMessage { CacheClusterIds?: string[]; ServiceUpdateName?: string; } -export const BatchStopUpdateActionMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ReplicationGroupIds: S.optional(ReplicationGroupIdList), - CacheClusterIds: S.optional(CacheClusterIdList), - ServiceUpdateName: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const BatchStopUpdateActionMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ReplicationGroupIds: S.optional(ReplicationGroupIdList), + CacheClusterIds: S.optional(CacheClusterIdList), + ServiceUpdateName: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "BatchStopUpdateActionMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "BatchStopUpdateActionMessage", +}) as any as S.Schema; export interface CompleteMigrationMessage { ReplicationGroupId?: string; Force?: boolean; @@ -414,21 +414,19 @@ export const DestinationType = /*@__PURE__*/ S.String; export interface CloudWatchLogsDestinationDetails { LogGroup?: string; } -export const CloudWatchLogsDestinationDetails = - /*@__PURE__*/ S.suspend(() => - S.Struct({ LogGroup: S.optional(S.String) }), - ).annotate({ - identifier: "CloudWatchLogsDestinationDetails", - }) as any as S.Schema; +export const CloudWatchLogsDestinationDetails = /*@__PURE__*/ S.suspend(() => + S.Struct({ LogGroup: S.optional(S.String) }), +).annotate({ + identifier: "CloudWatchLogsDestinationDetails", +}) as any as S.Schema; export interface KinesisFirehoseDestinationDetails { DeliveryStream?: string; } -export const KinesisFirehoseDestinationDetails = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DeliveryStream: S.optional(S.String) }), - ).annotate({ - identifier: "KinesisFirehoseDestinationDetails", - }) as any as S.Schema; +export const KinesisFirehoseDestinationDetails = /*@__PURE__*/ S.suspend(() => + S.Struct({ DeliveryStream: S.optional(S.String) }), +).annotate({ + identifier: "KinesisFirehoseDestinationDetails", +}) as any as S.Schema; export interface DestinationDetails { CloudWatchLogsDetails?: CloudWatchLogsDestinationDetails; KinesisFirehoseDetails?: KinesisFirehoseDestinationDetails; @@ -449,21 +447,21 @@ export interface PendingLogDeliveryConfiguration { DestinationDetails?: DestinationDetails; LogFormat?: LogFormat; } -export const PendingLogDeliveryConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - LogType: S.optional(LogType), - DestinationType: S.optional(DestinationType), - DestinationDetails: S.optional(DestinationDetails), - LogFormat: S.optional(LogFormat), - }), - ).annotate({ - identifier: "PendingLogDeliveryConfiguration", - }) as any as S.Schema; +export const PendingLogDeliveryConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + LogType: S.optional(LogType), + DestinationType: S.optional(DestinationType), + DestinationDetails: S.optional(DestinationDetails), + LogFormat: S.optional(LogFormat), + }), +).annotate({ + identifier: "PendingLogDeliveryConfiguration", +}) as any as S.Schema; export type PendingLogDeliveryConfigurationList = PendingLogDeliveryConfiguration[]; -export const PendingLogDeliveryConfigurationList = - /*@__PURE__*/ S.Array(PendingLogDeliveryConfiguration); +export const PendingLogDeliveryConfigurationList = /*@__PURE__*/ S.Array( + PendingLogDeliveryConfiguration, +); export type TransitEncryptionMode = "preferred" | "required" | (string & {}); export const TransitEncryptionMode = /*@__PURE__*/ S.String; export type ClusterMode = "enabled" | "disabled" | "compatible" | (string & {}); @@ -479,8 +477,8 @@ export interface ReplicationGroupPendingModifiedValues { TransitEncryptionMode?: TransitEncryptionMode; ClusterMode?: ClusterMode; } -export const ReplicationGroupPendingModifiedValues = - /*@__PURE__*/ S.suspend(() => +export const ReplicationGroupPendingModifiedValues = /*@__PURE__*/ S.suspend( + () => S.Struct({ PrimaryClusterId: S.optional(S.String), AutomaticFailoverStatus: S.optional(PendingAutomaticFailoverStatus), @@ -494,9 +492,9 @@ export const ReplicationGroupPendingModifiedValues = TransitEncryptionMode: S.optional(TransitEncryptionMode), ClusterMode: S.optional(ClusterMode), }), - ).annotate({ - identifier: "ReplicationGroupPendingModifiedValues", - }) as any as S.Schema; +).annotate({ + identifier: "ReplicationGroupPendingModifiedValues", +}) as any as S.Schema; export type ClusterIdList = string[]; export const ClusterIdList = /*@__PURE__*/ S.Array( S.String.pipe(T.XmlName("ClusterId")), @@ -566,8 +564,9 @@ export const AutomaticFailoverStatus = /*@__PURE__*/ S.String; export type MultiAZStatus = "enabled" | "disabled" | (string & {}); export const MultiAZStatus = /*@__PURE__*/ S.String; export type ReplicationGroupOutpostArnList = string[]; -export const ReplicationGroupOutpostArnList = - /*@__PURE__*/ S.Array(S.String.pipe(T.XmlName("ReplicationGroupOutpostArn"))); +export const ReplicationGroupOutpostArnList = /*@__PURE__*/ S.Array( + S.String.pipe(T.XmlName("ReplicationGroupOutpostArn")), +); export type StorageEncryptionType = | "none" | "sse-elasticache" @@ -719,42 +718,40 @@ export interface CopyServerlessCacheSnapshotRequest { KmsKeyId?: string; Tags?: Tag[]; } -export const CopyServerlessCacheSnapshotRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SourceServerlessCacheSnapshotName: S.optional(S.String), - TargetServerlessCacheSnapshotName: S.optional(S.String), - KmsKeyId: S.optional(S.String), - Tags: S.optional(TagList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CopyServerlessCacheSnapshotRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SourceServerlessCacheSnapshotName: S.optional(S.String), + TargetServerlessCacheSnapshotName: S.optional(S.String), + KmsKeyId: S.optional(S.String), + Tags: S.optional(TagList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CopyServerlessCacheSnapshotRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CopyServerlessCacheSnapshotRequest", +}) as any as S.Schema; export interface ServerlessCacheConfiguration { ServerlessCacheName?: string; Engine?: string; MajorEngineVersion?: string; } -export const ServerlessCacheConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ServerlessCacheName: S.optional(S.String), - Engine: S.optional(S.String), - MajorEngineVersion: S.optional(S.String), - }), - ).annotate({ - identifier: "ServerlessCacheConfiguration", - }) as any as S.Schema; +export const ServerlessCacheConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ServerlessCacheName: S.optional(S.String), + Engine: S.optional(S.String), + MajorEngineVersion: S.optional(S.String), + }), +).annotate({ + identifier: "ServerlessCacheConfiguration", +}) as any as S.Schema; export interface ServerlessCacheSnapshot { ServerlessCacheSnapshotName?: string; ARN?: string; @@ -788,14 +785,13 @@ export const ServerlessCacheSnapshot = /*@__PURE__*/ S.suspend(() => export interface CopyServerlessCacheSnapshotResponse { ServerlessCacheSnapshot?: ServerlessCacheSnapshot; } -export const CopyServerlessCacheSnapshotResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ServerlessCacheSnapshot: S.optional(ServerlessCacheSnapshot), - }).pipe(ns), - ).annotate({ - identifier: "CopyServerlessCacheSnapshotResponse", - }) as any as S.Schema; +export const CopyServerlessCacheSnapshotResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ServerlessCacheSnapshot: S.optional(ServerlessCacheSnapshot), + }).pipe(ns), +).annotate({ + identifier: "CopyServerlessCacheSnapshotResponse", +}) as any as S.Schema; export interface CopySnapshotMessage { SourceSnapshotName?: string; TargetSnapshotName?: string; @@ -961,8 +957,9 @@ export const CopySnapshotResult = /*@__PURE__*/ S.suspend(() => export type AZMode = "single-az" | "cross-az" | (string & {}); export const AZMode = /*@__PURE__*/ S.String; export type PreferredAvailabilityZoneList = string[]; -export const PreferredAvailabilityZoneList = - /*@__PURE__*/ S.Array(S.String.pipe(T.XmlName("PreferredAvailabilityZone"))); +export const PreferredAvailabilityZoneList = /*@__PURE__*/ S.Array( + S.String.pipe(T.XmlName("PreferredAvailabilityZone")), +); export type CacheSecurityGroupNameList = string[]; export const CacheSecurityGroupNameList = /*@__PURE__*/ S.Array( S.String.pipe(T.XmlName("CacheSecurityGroupName")), @@ -988,26 +985,24 @@ export interface LogDeliveryConfigurationRequest { LogFormat?: LogFormat; Enabled?: boolean; } -export const LogDeliveryConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - LogType: S.optional(LogType), - DestinationType: S.optional(DestinationType), - DestinationDetails: S.optional(DestinationDetails), - LogFormat: S.optional(LogFormat), - Enabled: S.optional(S.Boolean), - }), - ).annotate({ - identifier: "LogDeliveryConfigurationRequest", - }) as any as S.Schema; +export const LogDeliveryConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + LogType: S.optional(LogType), + DestinationType: S.optional(DestinationType), + DestinationDetails: S.optional(DestinationDetails), + LogFormat: S.optional(LogFormat), + Enabled: S.optional(S.Boolean), + }), +).annotate({ + identifier: "LogDeliveryConfigurationRequest", +}) as any as S.Schema; export type LogDeliveryConfigurationRequestList = LogDeliveryConfigurationRequest[]; -export const LogDeliveryConfigurationRequestList = - /*@__PURE__*/ S.Array( - LogDeliveryConfigurationRequest.pipe( - T.XmlName("LogDeliveryConfigurationRequest"), - ).annotate({ identifier: "LogDeliveryConfigurationRequest" }), - ); +export const LogDeliveryConfigurationRequestList = /*@__PURE__*/ S.Array( + LogDeliveryConfigurationRequest.pipe( + T.XmlName("LogDeliveryConfigurationRequest"), + ).annotate({ identifier: "LogDeliveryConfigurationRequest" }), +); export interface CreateCacheClusterMessage { CacheClusterId?: string; ReplicationGroupId?: string; @@ -1031,7 +1026,7 @@ export interface CreateCacheClusterMessage { AutoMinorVersionUpgrade?: boolean; SnapshotRetentionLimit?: number; SnapshotWindow?: string; - AuthToken?: string; + AuthToken?: string | redacted.Redacted; OutpostMode?: OutpostMode; PreferredOutpostArn?: string; PreferredOutpostArns?: string[]; @@ -1064,7 +1059,7 @@ export const CreateCacheClusterMessage = /*@__PURE__*/ S.suspend(() => AutoMinorVersionUpgrade: S.optional(S.Boolean), SnapshotRetentionLimit: S.optional(S.Number), SnapshotWindow: S.optional(S.String), - AuthToken: S.optional(S.String), + AuthToken: S.optional(SensitiveString), OutpostMode: S.optional(OutpostMode), PreferredOutpostArn: S.optional(S.String), PreferredOutpostArns: S.optional(PreferredOutpostArnList), @@ -1142,22 +1137,20 @@ export interface CacheSecurityGroupMembership { CacheSecurityGroupName?: string; Status?: string; } -export const CacheSecurityGroupMembership = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CacheSecurityGroupName: S.optional(S.String), - Status: S.optional(S.String), - }), - ).annotate({ - identifier: "CacheSecurityGroupMembership", - }) as any as S.Schema; +export const CacheSecurityGroupMembership = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CacheSecurityGroupName: S.optional(S.String), + Status: S.optional(S.String), + }), +).annotate({ + identifier: "CacheSecurityGroupMembership", +}) as any as S.Schema; export type CacheSecurityGroupMembershipList = CacheSecurityGroupMembership[]; -export const CacheSecurityGroupMembershipList = - /*@__PURE__*/ S.Array( - CacheSecurityGroupMembership.pipe(T.XmlName("CacheSecurityGroup")).annotate( - { identifier: "CacheSecurityGroupMembership" }, - ), - ); +export const CacheSecurityGroupMembershipList = /*@__PURE__*/ S.Array( + CacheSecurityGroupMembership.pipe(T.XmlName("CacheSecurityGroup")).annotate({ + identifier: "CacheSecurityGroupMembership", + }), +); export interface CacheParameterGroupStatus { CacheParameterGroupName?: string; ParameterApplyStatus?: string; @@ -1306,27 +1299,26 @@ export interface CreateCacheParameterGroupMessage { Description?: string; Tags?: Tag[]; } -export const CreateCacheParameterGroupMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CacheParameterGroupName: S.optional(S.String), - CacheParameterGroupFamily: S.optional(S.String), - Description: S.optional(S.String), - Tags: S.optional(TagList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateCacheParameterGroupMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CacheParameterGroupName: S.optional(S.String), + CacheParameterGroupFamily: S.optional(S.String), + Description: S.optional(S.String), + Tags: S.optional(TagList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateCacheParameterGroupMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateCacheParameterGroupMessage", +}) as any as S.Schema; export interface CacheParameterGroup { CacheParameterGroupName?: string; CacheParameterGroupFamily?: string; @@ -1348,46 +1340,43 @@ export const CacheParameterGroup = /*@__PURE__*/ S.suspend(() => export interface CreateCacheParameterGroupResult { CacheParameterGroup?: CacheParameterGroup; } -export const CreateCacheParameterGroupResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ CacheParameterGroup: S.optional(CacheParameterGroup) }).pipe(ns), - ).annotate({ - identifier: "CreateCacheParameterGroupResult", - }) as any as S.Schema; +export const CreateCacheParameterGroupResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ CacheParameterGroup: S.optional(CacheParameterGroup) }).pipe(ns), +).annotate({ + identifier: "CreateCacheParameterGroupResult", +}) as any as S.Schema; export interface CreateCacheSecurityGroupMessage { CacheSecurityGroupName?: string; Description?: string; Tags?: Tag[]; } -export const CreateCacheSecurityGroupMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CacheSecurityGroupName: S.optional(S.String), - Description: S.optional(S.String), - Tags: S.optional(TagList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateCacheSecurityGroupMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CacheSecurityGroupName: S.optional(S.String), + Description: S.optional(S.String), + Tags: S.optional(TagList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateCacheSecurityGroupMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateCacheSecurityGroupMessage", +}) as any as S.Schema; export interface CreateCacheSecurityGroupResult { CacheSecurityGroup?: CacheSecurityGroup; } -export const CreateCacheSecurityGroupResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ CacheSecurityGroup: S.optional(CacheSecurityGroup) }).pipe(ns), - ).annotate({ - identifier: "CreateCacheSecurityGroupResult", - }) as any as S.Schema; +export const CreateCacheSecurityGroupResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ CacheSecurityGroup: S.optional(CacheSecurityGroup) }).pipe(ns), +).annotate({ + identifier: "CreateCacheSecurityGroupResult", +}) as any as S.Schema; export type SubnetIdentifierList = string[]; export const SubnetIdentifierList = /*@__PURE__*/ S.Array( S.String.pipe(T.XmlName("SubnetIdentifier")), @@ -1398,27 +1387,26 @@ export interface CreateCacheSubnetGroupMessage { SubnetIds?: string[]; Tags?: Tag[]; } -export const CreateCacheSubnetGroupMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CacheSubnetGroupName: S.optional(S.String), - CacheSubnetGroupDescription: S.optional(S.String), - SubnetIds: S.optional(SubnetIdentifierList), - Tags: S.optional(TagList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateCacheSubnetGroupMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CacheSubnetGroupName: S.optional(S.String), + CacheSubnetGroupDescription: S.optional(S.String), + SubnetIds: S.optional(SubnetIdentifierList), + Tags: S.optional(TagList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateCacheSubnetGroupMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateCacheSubnetGroupMessage", +}) as any as S.Schema; export interface AvailabilityZone { Name?: string; } @@ -1476,37 +1464,35 @@ export const CacheSubnetGroup = /*@__PURE__*/ S.suspend(() => export interface CreateCacheSubnetGroupResult { CacheSubnetGroup?: CacheSubnetGroup; } -export const CreateCacheSubnetGroupResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ CacheSubnetGroup: S.optional(CacheSubnetGroup) }).pipe(ns), - ).annotate({ - identifier: "CreateCacheSubnetGroupResult", - }) as any as S.Schema; +export const CreateCacheSubnetGroupResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ CacheSubnetGroup: S.optional(CacheSubnetGroup) }).pipe(ns), +).annotate({ + identifier: "CreateCacheSubnetGroupResult", +}) as any as S.Schema; export interface CreateGlobalReplicationGroupMessage { GlobalReplicationGroupIdSuffix?: string; GlobalReplicationGroupDescription?: string; PrimaryReplicationGroupId?: string; } -export const CreateGlobalReplicationGroupMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - GlobalReplicationGroupIdSuffix: S.optional(S.String), - GlobalReplicationGroupDescription: S.optional(S.String), - PrimaryReplicationGroupId: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateGlobalReplicationGroupMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + GlobalReplicationGroupIdSuffix: S.optional(S.String), + GlobalReplicationGroupDescription: S.optional(S.String), + PrimaryReplicationGroupId: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateGlobalReplicationGroupMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateGlobalReplicationGroupMessage", +}) as any as S.Schema; export interface GlobalReplicationGroupMember { ReplicationGroupId?: string; ReplicationGroupRegion?: string; @@ -1514,25 +1500,23 @@ export interface GlobalReplicationGroupMember { AutomaticFailover?: AutomaticFailoverStatus; Status?: string; } -export const GlobalReplicationGroupMember = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ReplicationGroupId: S.optional(S.String), - ReplicationGroupRegion: S.optional(S.String), - Role: S.optional(S.String), - AutomaticFailover: S.optional(AutomaticFailoverStatus), - Status: S.optional(S.String), - }), - ).annotate({ - identifier: "GlobalReplicationGroupMember", - }) as any as S.Schema; +export const GlobalReplicationGroupMember = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ReplicationGroupId: S.optional(S.String), + ReplicationGroupRegion: S.optional(S.String), + Role: S.optional(S.String), + AutomaticFailover: S.optional(AutomaticFailoverStatus), + Status: S.optional(S.String), + }), +).annotate({ + identifier: "GlobalReplicationGroupMember", +}) as any as S.Schema; export type GlobalReplicationGroupMemberList = GlobalReplicationGroupMember[]; -export const GlobalReplicationGroupMemberList = - /*@__PURE__*/ S.Array( - GlobalReplicationGroupMember.pipe( - T.XmlName("GlobalReplicationGroupMember"), - ).annotate({ identifier: "GlobalReplicationGroupMember" }), - ); +export const GlobalReplicationGroupMemberList = /*@__PURE__*/ S.Array( + GlobalReplicationGroupMember.pipe( + T.XmlName("GlobalReplicationGroupMember"), + ).annotate({ identifier: "GlobalReplicationGroupMember" }), +); export interface GlobalNodeGroup { GlobalNodeGroupId?: string; Slots?: string; @@ -1588,14 +1572,13 @@ export const GlobalReplicationGroup = /*@__PURE__*/ S.suspend(() => export interface CreateGlobalReplicationGroupResult { GlobalReplicationGroup?: GlobalReplicationGroup; } -export const CreateGlobalReplicationGroupResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - GlobalReplicationGroup: S.optional(GlobalReplicationGroup), - }).pipe(ns), - ).annotate({ - identifier: "CreateGlobalReplicationGroupResult", - }) as any as S.Schema; +export const CreateGlobalReplicationGroupResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ GlobalReplicationGroup: S.optional(GlobalReplicationGroup) }).pipe( + ns, + ), +).annotate({ + identifier: "CreateGlobalReplicationGroupResult", +}) as any as S.Schema; export type NodeGroupConfigurationList = NodeGroupConfiguration[]; export const NodeGroupConfigurationList = /*@__PURE__*/ S.Array( NodeGroupConfiguration.pipe(T.XmlName("NodeGroupConfiguration")).annotate({ @@ -1632,7 +1615,7 @@ export interface CreateReplicationGroupMessage { AutoMinorVersionUpgrade?: boolean; SnapshotRetentionLimit?: number; SnapshotWindow?: string; - AuthToken?: string; + AuthToken?: string | redacted.Redacted; TransitEncryptionEnabled?: boolean; AtRestEncryptionEnabled?: boolean; KmsKeyId?: string; @@ -1646,74 +1629,70 @@ export interface CreateReplicationGroupMessage { ServerlessCacheSnapshotName?: string; Durability?: Durability; } -export const CreateReplicationGroupMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ReplicationGroupId: S.optional(S.String), - ReplicationGroupDescription: S.optional(S.String), - GlobalReplicationGroupId: S.optional(S.String), - PrimaryClusterId: S.optional(S.String), - AutomaticFailoverEnabled: S.optional(S.Boolean), - MultiAZEnabled: S.optional(S.Boolean), - NumCacheClusters: S.optional(S.Number), - PreferredCacheClusterAZs: S.optional(AvailabilityZonesList), - NumNodeGroups: S.optional(S.Number), - ReplicasPerNodeGroup: S.optional(S.Number), - NodeGroupConfiguration: S.optional(NodeGroupConfigurationList), - CacheNodeType: S.optional(S.String), - Engine: S.optional(S.String), - EngineVersion: S.optional(S.String), - CacheParameterGroupName: S.optional(S.String), - CacheSubnetGroupName: S.optional(S.String), - CacheSecurityGroupNames: S.optional(CacheSecurityGroupNameList), - SecurityGroupIds: S.optional(SecurityGroupIdsList), - Tags: S.optional(TagList), - SnapshotArns: S.optional(SnapshotArnsList), - SnapshotName: S.optional(S.String), - PreferredMaintenanceWindow: S.optional(S.String), - Port: S.optional(S.Number), - NotificationTopicArn: S.optional(S.String), - AutoMinorVersionUpgrade: S.optional(S.Boolean), - SnapshotRetentionLimit: S.optional(S.Number), - SnapshotWindow: S.optional(S.String), - AuthToken: S.optional(S.String), - TransitEncryptionEnabled: S.optional(S.Boolean), - AtRestEncryptionEnabled: S.optional(S.Boolean), - KmsKeyId: S.optional(S.String), - UserGroupIds: S.optional(UserGroupIdListInput), - LogDeliveryConfigurations: S.optional( - LogDeliveryConfigurationRequestList, - ), - DataTieringEnabled: S.optional(S.Boolean), - NetworkType: S.optional(NetworkType), - IpDiscovery: S.optional(IpDiscovery), - TransitEncryptionMode: S.optional(TransitEncryptionMode), - ClusterMode: S.optional(ClusterMode), - ServerlessCacheSnapshotName: S.optional(S.String), - Durability: S.optional(Durability), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateReplicationGroupMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ReplicationGroupId: S.optional(S.String), + ReplicationGroupDescription: S.optional(S.String), + GlobalReplicationGroupId: S.optional(S.String), + PrimaryClusterId: S.optional(S.String), + AutomaticFailoverEnabled: S.optional(S.Boolean), + MultiAZEnabled: S.optional(S.Boolean), + NumCacheClusters: S.optional(S.Number), + PreferredCacheClusterAZs: S.optional(AvailabilityZonesList), + NumNodeGroups: S.optional(S.Number), + ReplicasPerNodeGroup: S.optional(S.Number), + NodeGroupConfiguration: S.optional(NodeGroupConfigurationList), + CacheNodeType: S.optional(S.String), + Engine: S.optional(S.String), + EngineVersion: S.optional(S.String), + CacheParameterGroupName: S.optional(S.String), + CacheSubnetGroupName: S.optional(S.String), + CacheSecurityGroupNames: S.optional(CacheSecurityGroupNameList), + SecurityGroupIds: S.optional(SecurityGroupIdsList), + Tags: S.optional(TagList), + SnapshotArns: S.optional(SnapshotArnsList), + SnapshotName: S.optional(S.String), + PreferredMaintenanceWindow: S.optional(S.String), + Port: S.optional(S.Number), + NotificationTopicArn: S.optional(S.String), + AutoMinorVersionUpgrade: S.optional(S.Boolean), + SnapshotRetentionLimit: S.optional(S.Number), + SnapshotWindow: S.optional(S.String), + AuthToken: S.optional(SensitiveString), + TransitEncryptionEnabled: S.optional(S.Boolean), + AtRestEncryptionEnabled: S.optional(S.Boolean), + KmsKeyId: S.optional(S.String), + UserGroupIds: S.optional(UserGroupIdListInput), + LogDeliveryConfigurations: S.optional(LogDeliveryConfigurationRequestList), + DataTieringEnabled: S.optional(S.Boolean), + NetworkType: S.optional(NetworkType), + IpDiscovery: S.optional(IpDiscovery), + TransitEncryptionMode: S.optional(TransitEncryptionMode), + ClusterMode: S.optional(ClusterMode), + ServerlessCacheSnapshotName: S.optional(S.String), + Durability: S.optional(Durability), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateReplicationGroupMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateReplicationGroupMessage", +}) as any as S.Schema; export interface CreateReplicationGroupResult { ReplicationGroup?: ReplicationGroup; } -export const CreateReplicationGroupResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ReplicationGroup: S.optional(ReplicationGroup) }).pipe(ns), - ).annotate({ - identifier: "CreateReplicationGroupResult", - }) as any as S.Schema; +export const CreateReplicationGroupResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ ReplicationGroup: S.optional(ReplicationGroup) }).pipe(ns), +).annotate({ + identifier: "CreateReplicationGroupResult", +}) as any as S.Schema; export type DataStorageUnit = "GB" | (string & {}); export const DataStorageUnit = /*@__PURE__*/ S.String; export interface DataStorage { @@ -1767,37 +1746,36 @@ export interface CreateServerlessCacheRequest { DailySnapshotTime?: string; NetworkType?: NetworkType; } -export const CreateServerlessCacheRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ServerlessCacheName: S.optional(S.String), - Description: S.optional(S.String), - Engine: S.optional(S.String), - MajorEngineVersion: S.optional(S.String), - CacheUsageLimits: S.optional(CacheUsageLimits), - KmsKeyId: S.optional(S.String), - SecurityGroupIds: S.optional(SecurityGroupIdsList), - SnapshotArnsToRestore: S.optional(SnapshotArnsList), - Tags: S.optional(TagList), - UserGroupId: S.optional(S.String), - SubnetIds: S.optional(SubnetIdsList), - SnapshotRetentionLimit: S.optional(S.Number), - DailySnapshotTime: S.optional(S.String), - NetworkType: S.optional(NetworkType), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateServerlessCacheRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ServerlessCacheName: S.optional(S.String), + Description: S.optional(S.String), + Engine: S.optional(S.String), + MajorEngineVersion: S.optional(S.String), + CacheUsageLimits: S.optional(CacheUsageLimits), + KmsKeyId: S.optional(S.String), + SecurityGroupIds: S.optional(SecurityGroupIdsList), + SnapshotArnsToRestore: S.optional(SnapshotArnsList), + Tags: S.optional(TagList), + UserGroupId: S.optional(S.String), + SubnetIds: S.optional(SubnetIdsList), + SnapshotRetentionLimit: S.optional(S.Number), + DailySnapshotTime: S.optional(S.String), + NetworkType: S.optional(NetworkType), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateServerlessCacheRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateServerlessCacheRequest", +}) as any as S.Schema; export interface ServerlessCache { ServerlessCacheName?: string; Description?: string; @@ -1853,20 +1831,19 @@ export interface CreateServerlessCacheResponse { }; }; } -export const CreateServerlessCacheResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ServerlessCache: S.optional(ServerlessCache) }).pipe(ns), - ).annotate({ - identifier: "CreateServerlessCacheResponse", - }) as any as S.Schema; +export const CreateServerlessCacheResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ ServerlessCache: S.optional(ServerlessCache) }).pipe(ns), +).annotate({ + identifier: "CreateServerlessCacheResponse", +}) as any as S.Schema; export interface CreateServerlessCacheSnapshotRequest { ServerlessCacheSnapshotName?: string; ServerlessCacheName?: string; KmsKeyId?: string; Tags?: Tag[]; } -export const CreateServerlessCacheSnapshotRequest = - /*@__PURE__*/ S.suspend(() => +export const CreateServerlessCacheSnapshotRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ ServerlessCacheSnapshotName: S.optional(S.String), ServerlessCacheName: S.optional(S.String), @@ -1883,20 +1860,20 @@ export const CreateServerlessCacheSnapshotRequest = rules, ), ), - ).annotate({ - identifier: "CreateServerlessCacheSnapshotRequest", - }) as any as S.Schema; +).annotate({ + identifier: "CreateServerlessCacheSnapshotRequest", +}) as any as S.Schema; export interface CreateServerlessCacheSnapshotResponse { ServerlessCacheSnapshot?: ServerlessCacheSnapshot; } -export const CreateServerlessCacheSnapshotResponse = - /*@__PURE__*/ S.suspend(() => +export const CreateServerlessCacheSnapshotResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ ServerlessCacheSnapshot: S.optional(ServerlessCacheSnapshot), }).pipe(ns), - ).annotate({ - identifier: "CreateServerlessCacheSnapshotResponse", - }) as any as S.Schema; +).annotate({ + identifier: "CreateServerlessCacheSnapshotResponse", +}) as any as S.Schema; export interface CreateSnapshotMessage { ReplicationGroupId?: string; CacheClusterId?: string; @@ -1943,12 +1920,12 @@ export type InputAuthenticationType = export const InputAuthenticationType = /*@__PURE__*/ S.String; export interface AuthenticationMode { Type?: InputAuthenticationType; - Passwords?: string[]; + Passwords?: Array>; } export const AuthenticationMode = /*@__PURE__*/ S.suspend(() => S.Struct({ Type: S.optional(InputAuthenticationType), - Passwords: S.optional(PasswordListInput), + Passwords: S.optional(S.Array(SensitiveString)), }), ).annotate({ identifier: "AuthenticationMode", @@ -1957,7 +1934,7 @@ export interface CreateUserMessage { UserId?: string; UserName?: string; Engine?: string; - Passwords?: string[]; + Passwords?: Array>; AccessString?: string; NoPasswordRequired?: boolean; Tags?: Tag[]; @@ -1968,7 +1945,7 @@ export const CreateUserMessage = /*@__PURE__*/ S.suspend(() => UserId: S.optional(S.String), UserName: S.optional(S.String), Engine: S.optional(S.String), - Passwords: S.optional(PasswordListInput), + Passwords: S.optional(S.Array(SensitiveString)), AccessString: S.optional(S.String), NoPasswordRequired: S.optional(S.Boolean), Tags: S.optional(TagList), @@ -2170,28 +2147,27 @@ export interface DecreaseReplicaCountMessage { ReplicasToRemove?: string[]; ApplyImmediately?: boolean; } -export const DecreaseReplicaCountMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ReplicationGroupId: S.optional(S.String), - NewReplicaCount: S.optional(S.Number), - ReplicaConfiguration: S.optional(ReplicaConfigurationList), - ReplicasToRemove: S.optional(RemoveReplicasList), - ApplyImmediately: S.optional(S.Boolean), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DecreaseReplicaCountMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ReplicationGroupId: S.optional(S.String), + NewReplicaCount: S.optional(S.Number), + ReplicaConfiguration: S.optional(ReplicaConfigurationList), + ReplicasToRemove: S.optional(RemoveReplicasList), + ApplyImmediately: S.optional(S.Boolean), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DecreaseReplicaCountMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DecreaseReplicaCountMessage", +}) as any as S.Schema; export interface DecreaseReplicaCountResult { ReplicationGroup?: ReplicationGroup; } @@ -2233,166 +2209,161 @@ export const DeleteCacheClusterResult = /*@__PURE__*/ S.suspend(() => export interface DeleteCacheParameterGroupMessage { CacheParameterGroupName?: string; } -export const DeleteCacheParameterGroupMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ CacheParameterGroupName: S.optional(S.String) }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteCacheParameterGroupMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ CacheParameterGroupName: S.optional(S.String) }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteCacheParameterGroupMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteCacheParameterGroupMessage", +}) as any as S.Schema; export interface DeleteCacheParameterGroupResponse {} -export const DeleteCacheParameterGroupResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteCacheParameterGroupResponse", - }) as any as S.Schema; +export const DeleteCacheParameterGroupResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteCacheParameterGroupResponse", +}) as any as S.Schema; export interface DeleteCacheSecurityGroupMessage { CacheSecurityGroupName?: string; } -export const DeleteCacheSecurityGroupMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ CacheSecurityGroupName: S.optional(S.String) }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteCacheSecurityGroupMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ CacheSecurityGroupName: S.optional(S.String) }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteCacheSecurityGroupMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteCacheSecurityGroupMessage", +}) as any as S.Schema; export interface DeleteCacheSecurityGroupResponse {} -export const DeleteCacheSecurityGroupResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteCacheSecurityGroupResponse", - }) as any as S.Schema; +export const DeleteCacheSecurityGroupResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteCacheSecurityGroupResponse", +}) as any as S.Schema; export interface DeleteCacheSubnetGroupMessage { CacheSubnetGroupName?: string; } -export const DeleteCacheSubnetGroupMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ CacheSubnetGroupName: S.optional(S.String) }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), - ), - ).annotate({ - identifier: "DeleteCacheSubnetGroupMessage", - }) as any as S.Schema; -export interface DeleteCacheSubnetGroupResponse {} -export const DeleteCacheSubnetGroupResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteCacheSubnetGroupResponse", - }) as any as S.Schema; -export interface DeleteGlobalReplicationGroupMessage { +export const DeleteCacheSubnetGroupMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ CacheSubnetGroupName: S.optional(S.String) }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "DeleteCacheSubnetGroupMessage", +}) as any as S.Schema; +export interface DeleteCacheSubnetGroupResponse {} +export const DeleteCacheSubnetGroupResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteCacheSubnetGroupResponse", +}) as any as S.Schema; +export interface DeleteGlobalReplicationGroupMessage { GlobalReplicationGroupId?: string; RetainPrimaryReplicationGroup?: boolean; } -export const DeleteGlobalReplicationGroupMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - GlobalReplicationGroupId: S.optional(S.String), - RetainPrimaryReplicationGroup: S.optional(S.Boolean), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteGlobalReplicationGroupMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + GlobalReplicationGroupId: S.optional(S.String), + RetainPrimaryReplicationGroup: S.optional(S.Boolean), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteGlobalReplicationGroupMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteGlobalReplicationGroupMessage", +}) as any as S.Schema; export interface DeleteGlobalReplicationGroupResult { GlobalReplicationGroup?: GlobalReplicationGroup; } -export const DeleteGlobalReplicationGroupResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - GlobalReplicationGroup: S.optional(GlobalReplicationGroup), - }).pipe(ns), - ).annotate({ - identifier: "DeleteGlobalReplicationGroupResult", - }) as any as S.Schema; +export const DeleteGlobalReplicationGroupResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ GlobalReplicationGroup: S.optional(GlobalReplicationGroup) }).pipe( + ns, + ), +).annotate({ + identifier: "DeleteGlobalReplicationGroupResult", +}) as any as S.Schema; export interface DeleteReplicationGroupMessage { ReplicationGroupId?: string; RetainPrimaryCluster?: boolean; FinalSnapshotIdentifier?: string; } -export const DeleteReplicationGroupMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ReplicationGroupId: S.optional(S.String), - RetainPrimaryCluster: S.optional(S.Boolean), - FinalSnapshotIdentifier: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteReplicationGroupMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ReplicationGroupId: S.optional(S.String), + RetainPrimaryCluster: S.optional(S.Boolean), + FinalSnapshotIdentifier: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteReplicationGroupMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteReplicationGroupMessage", +}) as any as S.Schema; export interface DeleteReplicationGroupResult { ReplicationGroup?: ReplicationGroup; } -export const DeleteReplicationGroupResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ReplicationGroup: S.optional(ReplicationGroup) }).pipe(ns), - ).annotate({ - identifier: "DeleteReplicationGroupResult", - }) as any as S.Schema; +export const DeleteReplicationGroupResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ ReplicationGroup: S.optional(ReplicationGroup) }).pipe(ns), +).annotate({ + identifier: "DeleteReplicationGroupResult", +}) as any as S.Schema; export interface DeleteServerlessCacheRequest { ServerlessCacheName?: string; FinalSnapshotName?: string; } -export const DeleteServerlessCacheRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ServerlessCacheName: S.optional(S.String), - FinalSnapshotName: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteServerlessCacheRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ServerlessCacheName: S.optional(S.String), + FinalSnapshotName: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteServerlessCacheRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteServerlessCacheRequest", +}) as any as S.Schema; export interface DeleteServerlessCacheResponse { ServerlessCache?: ServerlessCache & { CacheUsageLimits: CacheUsageLimits & { @@ -2400,17 +2371,16 @@ export interface DeleteServerlessCacheResponse { }; }; } -export const DeleteServerlessCacheResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ServerlessCache: S.optional(ServerlessCache) }).pipe(ns), - ).annotate({ - identifier: "DeleteServerlessCacheResponse", - }) as any as S.Schema; +export const DeleteServerlessCacheResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ ServerlessCache: S.optional(ServerlessCache) }).pipe(ns), +).annotate({ + identifier: "DeleteServerlessCacheResponse", +}) as any as S.Schema; export interface DeleteServerlessCacheSnapshotRequest { ServerlessCacheSnapshotName?: string; } -export const DeleteServerlessCacheSnapshotRequest = - /*@__PURE__*/ S.suspend(() => +export const DeleteServerlessCacheSnapshotRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ ServerlessCacheSnapshotName: S.optional(S.String) }).pipe( T.all( ns, @@ -2422,20 +2392,20 @@ export const DeleteServerlessCacheSnapshotRequest = rules, ), ), - ).annotate({ - identifier: "DeleteServerlessCacheSnapshotRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteServerlessCacheSnapshotRequest", +}) as any as S.Schema; export interface DeleteServerlessCacheSnapshotResponse { ServerlessCacheSnapshot?: ServerlessCacheSnapshot; } -export const DeleteServerlessCacheSnapshotResponse = - /*@__PURE__*/ S.suspend(() => +export const DeleteServerlessCacheSnapshotResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ ServerlessCacheSnapshot: S.optional(ServerlessCacheSnapshot), }).pipe(ns), - ).annotate({ - identifier: "DeleteServerlessCacheSnapshotResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteServerlessCacheSnapshotResponse", +}) as any as S.Schema; export interface DeleteSnapshotMessage { SnapshotName?: string; } @@ -2505,28 +2475,27 @@ export interface DescribeCacheClustersMessage { ShowCacheNodeInfo?: boolean; ShowCacheClustersNotInReplicationGroups?: boolean; } -export const DescribeCacheClustersMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CacheClusterId: S.optional(S.String), - MaxRecords: S.optional(S.Number), - Marker: S.optional(S.String), - ShowCacheNodeInfo: S.optional(S.Boolean), - ShowCacheClustersNotInReplicationGroups: S.optional(S.Boolean), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeCacheClustersMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CacheClusterId: S.optional(S.String), + MaxRecords: S.optional(S.Number), + Marker: S.optional(S.String), + ShowCacheNodeInfo: S.optional(S.Boolean), + ShowCacheClustersNotInReplicationGroups: S.optional(S.Boolean), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeCacheClustersMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeCacheClustersMessage", +}) as any as S.Schema; export type CacheClusterList = CacheCluster[]; export const CacheClusterList = /*@__PURE__*/ S.Array( CacheCluster.pipe(T.XmlName("CacheCluster")).annotate({ @@ -2553,29 +2522,28 @@ export interface DescribeCacheEngineVersionsMessage { Marker?: string; DefaultOnly?: boolean; } -export const DescribeCacheEngineVersionsMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Engine: S.optional(S.String), - EngineVersion: S.optional(S.String), - CacheParameterGroupFamily: S.optional(S.String), - MaxRecords: S.optional(S.Number), - Marker: S.optional(S.String), - DefaultOnly: S.optional(S.Boolean), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeCacheEngineVersionsMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Engine: S.optional(S.String), + EngineVersion: S.optional(S.String), + CacheParameterGroupFamily: S.optional(S.String), + MaxRecords: S.optional(S.Number), + Marker: S.optional(S.String), + DefaultOnly: S.optional(S.Boolean), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeCacheEngineVersionsMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeCacheEngineVersionsMessage", +}) as any as S.Schema; export interface CacheEngineVersion { Engine?: string; EngineVersion?: string; @@ -2617,26 +2585,25 @@ export interface DescribeCacheParameterGroupsMessage { MaxRecords?: number; Marker?: string; } -export const DescribeCacheParameterGroupsMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CacheParameterGroupName: S.optional(S.String), - MaxRecords: S.optional(S.Number), - Marker: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeCacheParameterGroupsMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CacheParameterGroupName: S.optional(S.String), + MaxRecords: S.optional(S.Number), + Marker: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeCacheParameterGroupsMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeCacheParameterGroupsMessage", +}) as any as S.Schema; export type CacheParameterGroupList = CacheParameterGroup[]; export const CacheParameterGroupList = /*@__PURE__*/ S.Array( CacheParameterGroup.pipe(T.XmlName("CacheParameterGroup")).annotate({ @@ -2647,42 +2614,40 @@ export interface CacheParameterGroupsMessage { Marker?: string; CacheParameterGroups?: CacheParameterGroup[]; } -export const CacheParameterGroupsMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Marker: S.optional(S.String), - CacheParameterGroups: S.optional(CacheParameterGroupList), - }).pipe(ns), - ).annotate({ - identifier: "CacheParameterGroupsMessage", - }) as any as S.Schema; +export const CacheParameterGroupsMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Marker: S.optional(S.String), + CacheParameterGroups: S.optional(CacheParameterGroupList), + }).pipe(ns), +).annotate({ + identifier: "CacheParameterGroupsMessage", +}) as any as S.Schema; export interface DescribeCacheParametersMessage { CacheParameterGroupName?: string; Source?: string; MaxRecords?: number; Marker?: string; } -export const DescribeCacheParametersMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CacheParameterGroupName: S.optional(S.String), - Source: S.optional(S.String), - MaxRecords: S.optional(S.Number), - Marker: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeCacheParametersMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CacheParameterGroupName: S.optional(S.String), + Source: S.optional(S.String), + MaxRecords: S.optional(S.Number), + Marker: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeCacheParametersMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeCacheParametersMessage", +}) as any as S.Schema; export type ChangeType = "immediate" | "requires-reboot" | (string & {}); export const ChangeType = /*@__PURE__*/ S.String; export interface Parameter { @@ -2726,12 +2691,11 @@ export const CacheNodeTypeSpecificValue = /*@__PURE__*/ S.suspend(() => identifier: "CacheNodeTypeSpecificValue", }) as any as S.Schema; export type CacheNodeTypeSpecificValueList = CacheNodeTypeSpecificValue[]; -export const CacheNodeTypeSpecificValueList = - /*@__PURE__*/ S.Array( - CacheNodeTypeSpecificValue.pipe( - T.XmlName("CacheNodeTypeSpecificValue"), - ).annotate({ identifier: "CacheNodeTypeSpecificValue" }), - ); +export const CacheNodeTypeSpecificValueList = /*@__PURE__*/ S.Array( + CacheNodeTypeSpecificValue.pipe( + T.XmlName("CacheNodeTypeSpecificValue"), + ).annotate({ identifier: "CacheNodeTypeSpecificValue" }), +); export interface CacheNodeTypeSpecificParameter { ParameterName?: string; Description?: string; @@ -2743,30 +2707,28 @@ export interface CacheNodeTypeSpecificParameter { CacheNodeTypeSpecificValues?: CacheNodeTypeSpecificValue[]; ChangeType?: ChangeType; } -export const CacheNodeTypeSpecificParameter = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ParameterName: S.optional(S.String), - Description: S.optional(S.String), - Source: S.optional(S.String), - DataType: S.optional(S.String), - AllowedValues: S.optional(S.String), - IsModifiable: S.optional(S.Boolean), - MinimumEngineVersion: S.optional(S.String), - CacheNodeTypeSpecificValues: S.optional(CacheNodeTypeSpecificValueList), - ChangeType: S.optional(ChangeType), - }), - ).annotate({ - identifier: "CacheNodeTypeSpecificParameter", - }) as any as S.Schema; +export const CacheNodeTypeSpecificParameter = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ParameterName: S.optional(S.String), + Description: S.optional(S.String), + Source: S.optional(S.String), + DataType: S.optional(S.String), + AllowedValues: S.optional(S.String), + IsModifiable: S.optional(S.Boolean), + MinimumEngineVersion: S.optional(S.String), + CacheNodeTypeSpecificValues: S.optional(CacheNodeTypeSpecificValueList), + ChangeType: S.optional(ChangeType), + }), +).annotate({ + identifier: "CacheNodeTypeSpecificParameter", +}) as any as S.Schema; export type CacheNodeTypeSpecificParametersList = CacheNodeTypeSpecificParameter[]; -export const CacheNodeTypeSpecificParametersList = - /*@__PURE__*/ S.Array( - CacheNodeTypeSpecificParameter.pipe( - T.XmlName("CacheNodeTypeSpecificParameter"), - ).annotate({ identifier: "CacheNodeTypeSpecificParameter" }), - ); +export const CacheNodeTypeSpecificParametersList = /*@__PURE__*/ S.Array( + CacheNodeTypeSpecificParameter.pipe( + T.XmlName("CacheNodeTypeSpecificParameter"), + ).annotate({ identifier: "CacheNodeTypeSpecificParameter" }), +); export interface CacheParameterGroupDetails { Marker?: string; Parameters?: Parameter[]; @@ -2788,26 +2750,25 @@ export interface DescribeCacheSecurityGroupsMessage { MaxRecords?: number; Marker?: string; } -export const DescribeCacheSecurityGroupsMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CacheSecurityGroupName: S.optional(S.String), - MaxRecords: S.optional(S.Number), - Marker: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeCacheSecurityGroupsMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CacheSecurityGroupName: S.optional(S.String), + MaxRecords: S.optional(S.Number), + Marker: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeCacheSecurityGroupsMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeCacheSecurityGroupsMessage", +}) as any as S.Schema; export type CacheSecurityGroups = CacheSecurityGroup[]; export const CacheSecurityGroups = /*@__PURE__*/ S.Array( CacheSecurityGroup.pipe(T.XmlName("CacheSecurityGroup")).annotate({ @@ -2831,26 +2792,25 @@ export interface DescribeCacheSubnetGroupsMessage { MaxRecords?: number; Marker?: string; } -export const DescribeCacheSubnetGroupsMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CacheSubnetGroupName: S.optional(S.String), - MaxRecords: S.optional(S.Number), - Marker: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeCacheSubnetGroupsMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CacheSubnetGroupName: S.optional(S.String), + MaxRecords: S.optional(S.Number), + Marker: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeCacheSubnetGroupsMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeCacheSubnetGroupsMessage", +}) as any as S.Schema; export type CacheSubnetGroups = CacheSubnetGroup[]; export const CacheSubnetGroups = /*@__PURE__*/ S.Array( CacheSubnetGroup.pipe(T.XmlName("CacheSubnetGroup")).annotate({ @@ -2874,8 +2834,8 @@ export interface DescribeEngineDefaultParametersMessage { MaxRecords?: number; Marker?: string; } -export const DescribeEngineDefaultParametersMessage = - /*@__PURE__*/ S.suspend(() => +export const DescribeEngineDefaultParametersMessage = /*@__PURE__*/ S.suspend( + () => S.Struct({ CacheParameterGroupFamily: S.optional(S.String), MaxRecords: S.optional(S.Number), @@ -2891,9 +2851,9 @@ export const DescribeEngineDefaultParametersMessage = rules, ), ), - ).annotate({ - identifier: "DescribeEngineDefaultParametersMessage", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeEngineDefaultParametersMessage", +}) as any as S.Schema; export interface EngineDefaults { CacheParameterGroupFamily?: string; Marker?: string; @@ -2913,12 +2873,11 @@ export const EngineDefaults = /*@__PURE__*/ S.suspend(() => export interface DescribeEngineDefaultParametersResult { EngineDefaults?: EngineDefaults; } -export const DescribeEngineDefaultParametersResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ EngineDefaults: S.optional(EngineDefaults) }).pipe(ns), - ).annotate({ - identifier: "DescribeEngineDefaultParametersResult", - }) as any as S.Schema; +export const DescribeEngineDefaultParametersResult = /*@__PURE__*/ S.suspend( + () => S.Struct({ EngineDefaults: S.optional(EngineDefaults) }).pipe(ns), +).annotate({ + identifier: "DescribeEngineDefaultParametersResult", +}) as any as S.Schema; export type SourceType = | "cache-cluster" | "cache-parameter-group" @@ -2999,8 +2958,8 @@ export interface DescribeGlobalReplicationGroupsMessage { Marker?: string; ShowMemberInfo?: boolean; } -export const DescribeGlobalReplicationGroupsMessage = - /*@__PURE__*/ S.suspend(() => +export const DescribeGlobalReplicationGroupsMessage = /*@__PURE__*/ S.suspend( + () => S.Struct({ GlobalReplicationGroupId: S.optional(S.String), MaxRecords: S.optional(S.Number), @@ -3017,9 +2976,9 @@ export const DescribeGlobalReplicationGroupsMessage = rules, ), ), - ).annotate({ - identifier: "DescribeGlobalReplicationGroupsMessage", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeGlobalReplicationGroupsMessage", +}) as any as S.Schema; export type GlobalReplicationGroupList = GlobalReplicationGroup[]; export const GlobalReplicationGroupList = /*@__PURE__*/ S.Array( GlobalReplicationGroup.pipe(T.XmlName("GlobalReplicationGroup")).annotate({ @@ -3030,40 +2989,39 @@ export interface DescribeGlobalReplicationGroupsResult { Marker?: string; GlobalReplicationGroups?: GlobalReplicationGroup[]; } -export const DescribeGlobalReplicationGroupsResult = - /*@__PURE__*/ S.suspend(() => +export const DescribeGlobalReplicationGroupsResult = /*@__PURE__*/ S.suspend( + () => S.Struct({ Marker: S.optional(S.String), GlobalReplicationGroups: S.optional(GlobalReplicationGroupList), }).pipe(ns), - ).annotate({ - identifier: "DescribeGlobalReplicationGroupsResult", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeGlobalReplicationGroupsResult", +}) as any as S.Schema; export interface DescribeReplicationGroupsMessage { ReplicationGroupId?: string; MaxRecords?: number; Marker?: string; } -export const DescribeReplicationGroupsMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ReplicationGroupId: S.optional(S.String), - MaxRecords: S.optional(S.Number), - Marker: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeReplicationGroupsMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ReplicationGroupId: S.optional(S.String), + MaxRecords: S.optional(S.Number), + Marker: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeReplicationGroupsMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeReplicationGroupsMessage", +}) as any as S.Schema; export type ReplicationGroupList = ReplicationGroup[]; export const ReplicationGroupList = /*@__PURE__*/ S.Array( ReplicationGroup.pipe(T.XmlName("ReplicationGroup")).annotate({ @@ -3092,31 +3050,30 @@ export interface DescribeReservedCacheNodesMessage { MaxRecords?: number; Marker?: string; } -export const DescribeReservedCacheNodesMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ReservedCacheNodeId: S.optional(S.String), - ReservedCacheNodesOfferingId: S.optional(S.String), - CacheNodeType: S.optional(S.String), - Duration: S.optional(S.String), - ProductDescription: S.optional(S.String), - OfferingType: S.optional(S.String), - MaxRecords: S.optional(S.Number), - Marker: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeReservedCacheNodesMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ReservedCacheNodeId: S.optional(S.String), + ReservedCacheNodesOfferingId: S.optional(S.String), + CacheNodeType: S.optional(S.String), + Duration: S.optional(S.String), + ProductDescription: S.optional(S.String), + OfferingType: S.optional(S.String), + MaxRecords: S.optional(S.Number), + Marker: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeReservedCacheNodesMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeReservedCacheNodesMessage", +}) as any as S.Schema; export interface RecurringCharge { RecurringChargeAmount?: number; RecurringChargeFrequency?: string; @@ -3247,50 +3204,47 @@ export const ReservedCacheNodesOffering = /*@__PURE__*/ S.suspend(() => identifier: "ReservedCacheNodesOffering", }) as any as S.Schema; export type ReservedCacheNodesOfferingList = ReservedCacheNodesOffering[]; -export const ReservedCacheNodesOfferingList = - /*@__PURE__*/ S.Array( - ReservedCacheNodesOffering.pipe( - T.XmlName("ReservedCacheNodesOffering"), - ).annotate({ identifier: "ReservedCacheNodesOffering" }), - ); +export const ReservedCacheNodesOfferingList = /*@__PURE__*/ S.Array( + ReservedCacheNodesOffering.pipe( + T.XmlName("ReservedCacheNodesOffering"), + ).annotate({ identifier: "ReservedCacheNodesOffering" }), +); export interface ReservedCacheNodesOfferingMessage { Marker?: string; ReservedCacheNodesOfferings?: ReservedCacheNodesOffering[]; } -export const ReservedCacheNodesOfferingMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Marker: S.optional(S.String), - ReservedCacheNodesOfferings: S.optional(ReservedCacheNodesOfferingList), - }).pipe(ns), - ).annotate({ - identifier: "ReservedCacheNodesOfferingMessage", - }) as any as S.Schema; +export const ReservedCacheNodesOfferingMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Marker: S.optional(S.String), + ReservedCacheNodesOfferings: S.optional(ReservedCacheNodesOfferingList), + }).pipe(ns), +).annotate({ + identifier: "ReservedCacheNodesOfferingMessage", +}) as any as S.Schema; export interface DescribeServerlessCachesRequest { ServerlessCacheName?: string; MaxResults?: number; NextToken?: string; } -export const DescribeServerlessCachesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ServerlessCacheName: S.optional(S.String), - MaxResults: S.optional(S.Number), - NextToken: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeServerlessCachesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ServerlessCacheName: S.optional(S.String), + MaxResults: S.optional(S.Number), + NextToken: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeServerlessCachesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeServerlessCachesRequest", +}) as any as S.Schema; export type ServerlessCacheList = ServerlessCache[]; export const ServerlessCacheList = /*@__PURE__*/ S.Array(ServerlessCache); export interface DescribeServerlessCachesResponse { @@ -3301,15 +3255,14 @@ export interface DescribeServerlessCachesResponse { }; })[]; } -export const DescribeServerlessCachesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - NextToken: S.optional(S.String), - ServerlessCaches: S.optional(ServerlessCacheList), - }).pipe(ns), - ).annotate({ - identifier: "DescribeServerlessCachesResponse", - }) as any as S.Schema; +export const DescribeServerlessCachesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + NextToken: S.optional(S.String), + ServerlessCaches: S.optional(ServerlessCacheList), + }).pipe(ns), +).annotate({ + identifier: "DescribeServerlessCachesResponse", +}) as any as S.Schema; export interface DescribeServerlessCacheSnapshotsRequest { ServerlessCacheName?: string; ServerlessCacheSnapshotName?: string; @@ -3317,8 +3270,8 @@ export interface DescribeServerlessCacheSnapshotsRequest { NextToken?: string; MaxResults?: number; } -export const DescribeServerlessCacheSnapshotsRequest = - /*@__PURE__*/ S.suspend(() => +export const DescribeServerlessCacheSnapshotsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ ServerlessCacheName: S.optional(S.String), ServerlessCacheSnapshotName: S.optional(S.String), @@ -3336,9 +3289,9 @@ export const DescribeServerlessCacheSnapshotsRequest = rules, ), ), - ).annotate({ - identifier: "DescribeServerlessCacheSnapshotsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeServerlessCacheSnapshotsRequest", +}) as any as S.Schema; export type ServerlessCacheSnapshotList = ServerlessCacheSnapshot[]; export const ServerlessCacheSnapshotList = /*@__PURE__*/ S.Array( ServerlessCacheSnapshot.pipe(T.XmlName("ServerlessCacheSnapshot")).annotate({ @@ -3349,15 +3302,15 @@ export interface DescribeServerlessCacheSnapshotsResponse { NextToken?: string; ServerlessCacheSnapshots?: ServerlessCacheSnapshot[]; } -export const DescribeServerlessCacheSnapshotsResponse = - /*@__PURE__*/ S.suspend(() => +export const DescribeServerlessCacheSnapshotsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ NextToken: S.optional(S.String), ServerlessCacheSnapshots: S.optional(ServerlessCacheSnapshotList), }).pipe(ns), - ).annotate({ - identifier: "DescribeServerlessCacheSnapshotsResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeServerlessCacheSnapshotsResponse", +}) as any as S.Schema; export type ServiceUpdateStatus = | "available" | "cancelled" @@ -3373,27 +3326,26 @@ export interface DescribeServiceUpdatesMessage { MaxRecords?: number; Marker?: string; } -export const DescribeServiceUpdatesMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ServiceUpdateName: S.optional(S.String), - ServiceUpdateStatus: S.optional(ServiceUpdateStatusList), - MaxRecords: S.optional(S.Number), - Marker: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeServiceUpdatesMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ServiceUpdateName: S.optional(S.String), + ServiceUpdateStatus: S.optional(ServiceUpdateStatusList), + MaxRecords: S.optional(S.Number), + Marker: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeServiceUpdatesMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeServiceUpdatesMessage", +}) as any as S.Schema; export type ServiceUpdateSeverity = | "critical" | "important" @@ -3497,15 +3449,14 @@ export interface DescribeSnapshotsListMessage { Marker?: string; Snapshots?: Snapshot[]; } -export const DescribeSnapshotsListMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Marker: S.optional(S.String), - Snapshots: S.optional(SnapshotList), - }).pipe(ns), - ).annotate({ - identifier: "DescribeSnapshotsListMessage", - }) as any as S.Schema; +export const DescribeSnapshotsListMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Marker: S.optional(S.String), + Snapshots: S.optional(SnapshotList), + }).pipe(ns), +).annotate({ + identifier: "DescribeSnapshotsListMessage", +}) as any as S.Schema; export interface TimeRangeFilter { StartTime?: Date; EndTime?: Date; @@ -3534,33 +3485,32 @@ export interface DescribeUpdateActionsMessage { MaxRecords?: number; Marker?: string; } -export const DescribeUpdateActionsMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ServiceUpdateName: S.optional(S.String), - ReplicationGroupIds: S.optional(ReplicationGroupIdList), - CacheClusterIds: S.optional(CacheClusterIdList), - Engine: S.optional(S.String), - ServiceUpdateStatus: S.optional(ServiceUpdateStatusList), - ServiceUpdateTimeRange: S.optional(TimeRangeFilter), - UpdateActionStatus: S.optional(UpdateActionStatusList), - ShowNodeLevelUpdateStatus: S.optional(S.Boolean), - MaxRecords: S.optional(S.Number), - Marker: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeUpdateActionsMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ServiceUpdateName: S.optional(S.String), + ReplicationGroupIds: S.optional(ReplicationGroupIdList), + CacheClusterIds: S.optional(CacheClusterIdList), + Engine: S.optional(S.String), + ServiceUpdateStatus: S.optional(ServiceUpdateStatusList), + ServiceUpdateTimeRange: S.optional(TimeRangeFilter), + UpdateActionStatus: S.optional(UpdateActionStatusList), + ShowNodeLevelUpdateStatus: S.optional(S.Boolean), + MaxRecords: S.optional(S.Number), + Marker: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeUpdateActionsMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeUpdateActionsMessage", +}) as any as S.Schema; export type SlaMet = "yes" | "no" | "n/a" | (string & {}); export const SlaMet = /*@__PURE__*/ S.String; export type NodeUpdateStatus = @@ -3585,39 +3535,37 @@ export interface NodeGroupMemberUpdateStatus { NodeUpdateInitiatedDate?: Date; NodeUpdateStatusModifiedDate?: Date; } -export const NodeGroupMemberUpdateStatus = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CacheClusterId: S.optional(S.String), - CacheNodeId: S.optional(S.String), - NodeUpdateStatus: S.optional(NodeUpdateStatus), - NodeDeletionDate: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - NodeUpdateStartDate: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - NodeUpdateEndDate: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - NodeUpdateInitiatedBy: S.optional(NodeUpdateInitiatedBy), - NodeUpdateInitiatedDate: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - NodeUpdateStatusModifiedDate: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - }), - ).annotate({ - identifier: "NodeGroupMemberUpdateStatus", - }) as any as S.Schema; +export const NodeGroupMemberUpdateStatus = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CacheClusterId: S.optional(S.String), + CacheNodeId: S.optional(S.String), + NodeUpdateStatus: S.optional(NodeUpdateStatus), + NodeDeletionDate: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + NodeUpdateStartDate: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + NodeUpdateEndDate: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + NodeUpdateInitiatedBy: S.optional(NodeUpdateInitiatedBy), + NodeUpdateInitiatedDate: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + NodeUpdateStatusModifiedDate: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + }), +).annotate({ + identifier: "NodeGroupMemberUpdateStatus", +}) as any as S.Schema; export type NodeGroupMemberUpdateStatusList = NodeGroupMemberUpdateStatus[]; -export const NodeGroupMemberUpdateStatusList = - /*@__PURE__*/ S.Array( - NodeGroupMemberUpdateStatus.pipe( - T.XmlName("NodeGroupMemberUpdateStatus"), - ).annotate({ identifier: "NodeGroupMemberUpdateStatus" }), - ); +export const NodeGroupMemberUpdateStatusList = /*@__PURE__*/ S.Array( + NodeGroupMemberUpdateStatus.pipe( + T.XmlName("NodeGroupMemberUpdateStatus"), + ).annotate({ identifier: "NodeGroupMemberUpdateStatus" }), +); export interface NodeGroupUpdateStatus { NodeGroupId?: string; NodeGroupMemberUpdateStatus?: NodeGroupMemberUpdateStatus[]; @@ -3860,20 +3808,20 @@ export const DisassociateGlobalReplicationGroupMessage = export interface DisassociateGlobalReplicationGroupResult { GlobalReplicationGroup?: GlobalReplicationGroup; } -export const DisassociateGlobalReplicationGroupResult = - /*@__PURE__*/ S.suspend(() => +export const DisassociateGlobalReplicationGroupResult = /*@__PURE__*/ S.suspend( + () => S.Struct({ GlobalReplicationGroup: S.optional(GlobalReplicationGroup), }).pipe(ns), - ).annotate({ - identifier: "DisassociateGlobalReplicationGroupResult", - }) as any as S.Schema; +).annotate({ + identifier: "DisassociateGlobalReplicationGroupResult", +}) as any as S.Schema; export interface ExportServerlessCacheSnapshotRequest { ServerlessCacheSnapshotName?: string; S3BucketName?: string; } -export const ExportServerlessCacheSnapshotRequest = - /*@__PURE__*/ S.suspend(() => +export const ExportServerlessCacheSnapshotRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ ServerlessCacheSnapshotName: S.optional(S.String), S3BucketName: S.optional(S.String), @@ -3888,27 +3836,27 @@ export const ExportServerlessCacheSnapshotRequest = rules, ), ), - ).annotate({ - identifier: "ExportServerlessCacheSnapshotRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ExportServerlessCacheSnapshotRequest", +}) as any as S.Schema; export interface ExportServerlessCacheSnapshotResponse { ServerlessCacheSnapshot?: ServerlessCacheSnapshot; } -export const ExportServerlessCacheSnapshotResponse = - /*@__PURE__*/ S.suspend(() => +export const ExportServerlessCacheSnapshotResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ ServerlessCacheSnapshot: S.optional(ServerlessCacheSnapshot), }).pipe(ns), - ).annotate({ - identifier: "ExportServerlessCacheSnapshotResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ExportServerlessCacheSnapshotResponse", +}) as any as S.Schema; export interface FailoverGlobalReplicationGroupMessage { GlobalReplicationGroupId?: string; PrimaryRegion?: string; PrimaryReplicationGroupId?: string; } -export const FailoverGlobalReplicationGroupMessage = - /*@__PURE__*/ S.suspend(() => +export const FailoverGlobalReplicationGroupMessage = /*@__PURE__*/ S.suspend( + () => S.Struct({ GlobalReplicationGroupId: S.optional(S.String), PrimaryRegion: S.optional(S.String), @@ -3924,20 +3872,20 @@ export const FailoverGlobalReplicationGroupMessage = rules, ), ), - ).annotate({ - identifier: "FailoverGlobalReplicationGroupMessage", - }) as any as S.Schema; +).annotate({ + identifier: "FailoverGlobalReplicationGroupMessage", +}) as any as S.Schema; export interface FailoverGlobalReplicationGroupResult { GlobalReplicationGroup?: GlobalReplicationGroup; } -export const FailoverGlobalReplicationGroupResult = - /*@__PURE__*/ S.suspend(() => +export const FailoverGlobalReplicationGroupResult = /*@__PURE__*/ S.suspend( + () => S.Struct({ GlobalReplicationGroup: S.optional(GlobalReplicationGroup), }).pipe(ns), - ).annotate({ - identifier: "FailoverGlobalReplicationGroupResult", - }) as any as S.Schema; +).annotate({ + identifier: "FailoverGlobalReplicationGroupResult", +}) as any as S.Schema; export interface ReshardingConfiguration { NodeGroupId?: string; PreferredAvailabilityZones?: string[]; @@ -4020,27 +3968,26 @@ export interface IncreaseReplicaCountMessage { ReplicaConfiguration?: ConfigureShard[]; ApplyImmediately?: boolean; } -export const IncreaseReplicaCountMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ReplicationGroupId: S.optional(S.String), - NewReplicaCount: S.optional(S.Number), - ReplicaConfiguration: S.optional(ReplicaConfigurationList), - ApplyImmediately: S.optional(S.Boolean), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const IncreaseReplicaCountMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ReplicationGroupId: S.optional(S.String), + NewReplicaCount: S.optional(S.Number), + ReplicaConfiguration: S.optional(ReplicaConfigurationList), + ApplyImmediately: S.optional(S.Boolean), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "IncreaseReplicaCountMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "IncreaseReplicaCountMessage", +}) as any as S.Schema; export interface IncreaseReplicaCountResult { ReplicationGroup?: ReplicationGroup; } @@ -4053,8 +4000,8 @@ export interface ListAllowedNodeTypeModificationsMessage { CacheClusterId?: string; ReplicationGroupId?: string; } -export const ListAllowedNodeTypeModificationsMessage = - /*@__PURE__*/ S.suspend(() => +export const ListAllowedNodeTypeModificationsMessage = /*@__PURE__*/ S.suspend( + () => S.Struct({ CacheClusterId: S.optional(S.String), ReplicationGroupId: S.optional(S.String), @@ -4069,24 +4016,23 @@ export const ListAllowedNodeTypeModificationsMessage = rules, ), ), - ).annotate({ - identifier: "ListAllowedNodeTypeModificationsMessage", - }) as any as S.Schema; +).annotate({ + identifier: "ListAllowedNodeTypeModificationsMessage", +}) as any as S.Schema; export type NodeTypeList = string[]; export const NodeTypeList = /*@__PURE__*/ S.Array(S.String); export interface AllowedNodeTypeModificationsMessage { ScaleUpModifications?: string[]; ScaleDownModifications?: string[]; } -export const AllowedNodeTypeModificationsMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ScaleUpModifications: S.optional(NodeTypeList), - ScaleDownModifications: S.optional(NodeTypeList), - }).pipe(ns), - ).annotate({ - identifier: "AllowedNodeTypeModificationsMessage", - }) as any as S.Schema; +export const AllowedNodeTypeModificationsMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ScaleUpModifications: S.optional(NodeTypeList), + ScaleDownModifications: S.optional(NodeTypeList), + }).pipe(ns), +).annotate({ + identifier: "AllowedNodeTypeModificationsMessage", +}) as any as S.Schema; export interface ListTagsForResourceMessage { ResourceName?: string; } @@ -4130,7 +4076,7 @@ export interface ModifyCacheClusterMessage { SnapshotRetentionLimit?: number; SnapshotWindow?: string; CacheNodeType?: string; - AuthToken?: string; + AuthToken?: string | redacted.Redacted; AuthTokenUpdateStrategy?: AuthTokenUpdateStrategyType; LogDeliveryConfigurations?: LogDeliveryConfigurationRequest[]; IpDiscovery?: IpDiscovery; @@ -4156,7 +4102,7 @@ export const ModifyCacheClusterMessage = /*@__PURE__*/ S.suspend(() => SnapshotRetentionLimit: S.optional(S.Number), SnapshotWindow: S.optional(S.String), CacheNodeType: S.optional(S.String), - AuthToken: S.optional(S.String), + AuthToken: S.optional(SensitiveString), AuthTokenUpdateStrategy: S.optional(AuthTokenUpdateStrategyType), LogDeliveryConfigurations: S.optional(LogDeliveryConfigurationRequestList), IpDiscovery: S.optional(IpDiscovery), @@ -4205,68 +4151,64 @@ export interface ModifyCacheParameterGroupMessage { CacheParameterGroupName?: string; ParameterNameValues?: ParameterNameValue[]; } -export const ModifyCacheParameterGroupMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CacheParameterGroupName: S.optional(S.String), - ParameterNameValues: S.optional(ParameterNameValueList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ModifyCacheParameterGroupMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CacheParameterGroupName: S.optional(S.String), + ParameterNameValues: S.optional(ParameterNameValueList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ModifyCacheParameterGroupMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ModifyCacheParameterGroupMessage", +}) as any as S.Schema; export interface CacheParameterGroupNameMessage { CacheParameterGroupName?: string; } -export const CacheParameterGroupNameMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ CacheParameterGroupName: S.optional(S.String) }).pipe(ns), - ).annotate({ - identifier: "CacheParameterGroupNameMessage", - }) as any as S.Schema; +export const CacheParameterGroupNameMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ CacheParameterGroupName: S.optional(S.String) }).pipe(ns), +).annotate({ + identifier: "CacheParameterGroupNameMessage", +}) as any as S.Schema; export interface ModifyCacheSubnetGroupMessage { CacheSubnetGroupName?: string; CacheSubnetGroupDescription?: string; SubnetIds?: string[]; } -export const ModifyCacheSubnetGroupMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CacheSubnetGroupName: S.optional(S.String), - CacheSubnetGroupDescription: S.optional(S.String), - SubnetIds: S.optional(SubnetIdentifierList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ModifyCacheSubnetGroupMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CacheSubnetGroupName: S.optional(S.String), + CacheSubnetGroupDescription: S.optional(S.String), + SubnetIds: S.optional(SubnetIdentifierList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ModifyCacheSubnetGroupMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ModifyCacheSubnetGroupMessage", +}) as any as S.Schema; export interface ModifyCacheSubnetGroupResult { CacheSubnetGroup?: CacheSubnetGroup; } -export const ModifyCacheSubnetGroupResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ CacheSubnetGroup: S.optional(CacheSubnetGroup) }).pipe(ns), - ).annotate({ - identifier: "ModifyCacheSubnetGroupResult", - }) as any as S.Schema; +export const ModifyCacheSubnetGroupResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ CacheSubnetGroup: S.optional(CacheSubnetGroup) }).pipe(ns), +).annotate({ + identifier: "ModifyCacheSubnetGroupResult", +}) as any as S.Schema; export interface ModifyGlobalReplicationGroupMessage { GlobalReplicationGroupId?: string; ApplyImmediately?: boolean; @@ -4277,42 +4219,40 @@ export interface ModifyGlobalReplicationGroupMessage { GlobalReplicationGroupDescription?: string; AutomaticFailoverEnabled?: boolean; } -export const ModifyGlobalReplicationGroupMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - GlobalReplicationGroupId: S.optional(S.String), - ApplyImmediately: S.optional(S.Boolean), - CacheNodeType: S.optional(S.String), - Engine: S.optional(S.String), - EngineVersion: S.optional(S.String), - CacheParameterGroupName: S.optional(S.String), - GlobalReplicationGroupDescription: S.optional(S.String), - AutomaticFailoverEnabled: S.optional(S.Boolean), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ModifyGlobalReplicationGroupMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + GlobalReplicationGroupId: S.optional(S.String), + ApplyImmediately: S.optional(S.Boolean), + CacheNodeType: S.optional(S.String), + Engine: S.optional(S.String), + EngineVersion: S.optional(S.String), + CacheParameterGroupName: S.optional(S.String), + GlobalReplicationGroupDescription: S.optional(S.String), + AutomaticFailoverEnabled: S.optional(S.Boolean), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ModifyGlobalReplicationGroupMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ModifyGlobalReplicationGroupMessage", +}) as any as S.Schema; export interface ModifyGlobalReplicationGroupResult { GlobalReplicationGroup?: GlobalReplicationGroup; } -export const ModifyGlobalReplicationGroupResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - GlobalReplicationGroup: S.optional(GlobalReplicationGroup), - }).pipe(ns), - ).annotate({ - identifier: "ModifyGlobalReplicationGroupResult", - }) as any as S.Schema; +export const ModifyGlobalReplicationGroupResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ GlobalReplicationGroup: S.optional(GlobalReplicationGroup) }).pipe( + ns, + ), +).annotate({ + identifier: "ModifyGlobalReplicationGroupResult", +}) as any as S.Schema; export interface ModifyReplicationGroupMessage { ReplicationGroupId?: string; ReplicationGroupDescription?: string; @@ -4334,7 +4274,7 @@ export interface ModifyReplicationGroupMessage { SnapshotRetentionLimit?: number; SnapshotWindow?: string; CacheNodeType?: string; - AuthToken?: string; + AuthToken?: string | redacted.Redacted; AuthTokenUpdateStrategy?: AuthTokenUpdateStrategyType; UserGroupIdsToAdd?: string[]; UserGroupIdsToRemove?: string[]; @@ -4346,65 +4286,61 @@ export interface ModifyReplicationGroupMessage { ClusterMode?: ClusterMode; Durability?: Durability; } -export const ModifyReplicationGroupMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ReplicationGroupId: S.optional(S.String), - ReplicationGroupDescription: S.optional(S.String), - PrimaryClusterId: S.optional(S.String), - SnapshottingClusterId: S.optional(S.String), - AutomaticFailoverEnabled: S.optional(S.Boolean), - MultiAZEnabled: S.optional(S.Boolean), - NodeGroupId: S.optional(S.String), - CacheSecurityGroupNames: S.optional(CacheSecurityGroupNameList), - SecurityGroupIds: S.optional(SecurityGroupIdsList), - PreferredMaintenanceWindow: S.optional(S.String), - NotificationTopicArn: S.optional(S.String), - CacheParameterGroupName: S.optional(S.String), - NotificationTopicStatus: S.optional(S.String), - ApplyImmediately: S.optional(S.Boolean), - Engine: S.optional(S.String), - EngineVersion: S.optional(S.String), - AutoMinorVersionUpgrade: S.optional(S.Boolean), - SnapshotRetentionLimit: S.optional(S.Number), - SnapshotWindow: S.optional(S.String), - CacheNodeType: S.optional(S.String), - AuthToken: S.optional(S.String), - AuthTokenUpdateStrategy: S.optional(AuthTokenUpdateStrategyType), - UserGroupIdsToAdd: S.optional(UserGroupIdList), - UserGroupIdsToRemove: S.optional(UserGroupIdList), - RemoveUserGroups: S.optional(S.Boolean), - LogDeliveryConfigurations: S.optional( - LogDeliveryConfigurationRequestList, - ), - IpDiscovery: S.optional(IpDiscovery), - TransitEncryptionEnabled: S.optional(S.Boolean), - TransitEncryptionMode: S.optional(TransitEncryptionMode), - ClusterMode: S.optional(ClusterMode), - Durability: S.optional(Durability), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ModifyReplicationGroupMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ReplicationGroupId: S.optional(S.String), + ReplicationGroupDescription: S.optional(S.String), + PrimaryClusterId: S.optional(S.String), + SnapshottingClusterId: S.optional(S.String), + AutomaticFailoverEnabled: S.optional(S.Boolean), + MultiAZEnabled: S.optional(S.Boolean), + NodeGroupId: S.optional(S.String), + CacheSecurityGroupNames: S.optional(CacheSecurityGroupNameList), + SecurityGroupIds: S.optional(SecurityGroupIdsList), + PreferredMaintenanceWindow: S.optional(S.String), + NotificationTopicArn: S.optional(S.String), + CacheParameterGroupName: S.optional(S.String), + NotificationTopicStatus: S.optional(S.String), + ApplyImmediately: S.optional(S.Boolean), + Engine: S.optional(S.String), + EngineVersion: S.optional(S.String), + AutoMinorVersionUpgrade: S.optional(S.Boolean), + SnapshotRetentionLimit: S.optional(S.Number), + SnapshotWindow: S.optional(S.String), + CacheNodeType: S.optional(S.String), + AuthToken: S.optional(SensitiveString), + AuthTokenUpdateStrategy: S.optional(AuthTokenUpdateStrategyType), + UserGroupIdsToAdd: S.optional(UserGroupIdList), + UserGroupIdsToRemove: S.optional(UserGroupIdList), + RemoveUserGroups: S.optional(S.Boolean), + LogDeliveryConfigurations: S.optional(LogDeliveryConfigurationRequestList), + IpDiscovery: S.optional(IpDiscovery), + TransitEncryptionEnabled: S.optional(S.Boolean), + TransitEncryptionMode: S.optional(TransitEncryptionMode), + ClusterMode: S.optional(ClusterMode), + Durability: S.optional(Durability), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ModifyReplicationGroupMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ModifyReplicationGroupMessage", +}) as any as S.Schema; export interface ModifyReplicationGroupResult { ReplicationGroup?: ReplicationGroup; } -export const ModifyReplicationGroupResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ReplicationGroup: S.optional(ReplicationGroup) }).pipe(ns), - ).annotate({ - identifier: "ModifyReplicationGroupResult", - }) as any as S.Schema; +export const ModifyReplicationGroupResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ ReplicationGroup: S.optional(ReplicationGroup) }).pipe(ns), +).annotate({ + identifier: "ModifyReplicationGroupResult", +}) as any as S.Schema; export type NodeGroupsToRemoveList = string[]; export const NodeGroupsToRemoveList = /*@__PURE__*/ S.Array( S.String.pipe(T.XmlName("NodeGroupToRemove")), @@ -4465,33 +4401,32 @@ export interface ModifyServerlessCacheRequest { Engine?: string; MajorEngineVersion?: string; } -export const ModifyServerlessCacheRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ServerlessCacheName: S.optional(S.String), - Description: S.optional(S.String), - CacheUsageLimits: S.optional(CacheUsageLimits), - RemoveUserGroup: S.optional(S.Boolean), - UserGroupId: S.optional(S.String), - SecurityGroupIds: S.optional(SecurityGroupIdsList), - SnapshotRetentionLimit: S.optional(S.Number), - DailySnapshotTime: S.optional(S.String), - Engine: S.optional(S.String), - MajorEngineVersion: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ModifyServerlessCacheRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ServerlessCacheName: S.optional(S.String), + Description: S.optional(S.String), + CacheUsageLimits: S.optional(CacheUsageLimits), + RemoveUserGroup: S.optional(S.Boolean), + UserGroupId: S.optional(S.String), + SecurityGroupIds: S.optional(SecurityGroupIdsList), + SnapshotRetentionLimit: S.optional(S.Number), + DailySnapshotTime: S.optional(S.String), + Engine: S.optional(S.String), + MajorEngineVersion: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ModifyServerlessCacheRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ModifyServerlessCacheRequest", +}) as any as S.Schema; export interface ModifyServerlessCacheResponse { ServerlessCache?: ServerlessCache & { CacheUsageLimits: CacheUsageLimits & { @@ -4499,17 +4434,16 @@ export interface ModifyServerlessCacheResponse { }; }; } -export const ModifyServerlessCacheResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ServerlessCache: S.optional(ServerlessCache) }).pipe(ns), - ).annotate({ - identifier: "ModifyServerlessCacheResponse", - }) as any as S.Schema; +export const ModifyServerlessCacheResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ ServerlessCache: S.optional(ServerlessCache) }).pipe(ns), +).annotate({ + identifier: "ModifyServerlessCacheResponse", +}) as any as S.Schema; export interface ModifyUserMessage { UserId?: string; AccessString?: string; AppendAccessString?: string; - Passwords?: string[]; + Passwords?: Array>; NoPasswordRequired?: boolean; AuthenticationMode?: AuthenticationMode; Engine?: string; @@ -4519,7 +4453,7 @@ export const ModifyUserMessage = /*@__PURE__*/ S.suspend(() => UserId: S.optional(S.String), AccessString: S.optional(S.String), AppendAccessString: S.optional(S.String), - Passwords: S.optional(PasswordListInput), + Passwords: S.optional(S.Array(SensitiveString)), NoPasswordRequired: S.optional(S.Boolean), AuthenticationMode: S.optional(AuthenticationMode), Engine: S.optional(S.String), @@ -4593,12 +4527,11 @@ export const PurchaseReservedCacheNodesOfferingMessage = export interface PurchaseReservedCacheNodesOfferingResult { ReservedCacheNode?: ReservedCacheNode; } -export const PurchaseReservedCacheNodesOfferingResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ReservedCacheNode: S.optional(ReservedCacheNode) }).pipe(ns), - ).annotate({ - identifier: "PurchaseReservedCacheNodesOfferingResult", - }) as any as S.Schema; +export const PurchaseReservedCacheNodesOfferingResult = /*@__PURE__*/ S.suspend( + () => S.Struct({ ReservedCacheNode: S.optional(ReservedCacheNode) }).pipe(ns), +).annotate({ + identifier: "PurchaseReservedCacheNodesOfferingResult", +}) as any as S.Schema; export interface RebalanceSlotsInGlobalReplicationGroupMessage { GlobalReplicationGroupId?: string; ApplyImmediately?: boolean; @@ -4669,57 +4602,55 @@ export interface RemoveTagsFromResourceMessage { ResourceName?: string; TagKeys?: string[]; } -export const RemoveTagsFromResourceMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResourceName: S.optional(S.String), - TagKeys: S.optional(KeyList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const RemoveTagsFromResourceMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResourceName: S.optional(S.String), + TagKeys: S.optional(KeyList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "RemoveTagsFromResourceMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "RemoveTagsFromResourceMessage", +}) as any as S.Schema; export interface ResetCacheParameterGroupMessage { CacheParameterGroupName?: string; ResetAllParameters?: boolean; ParameterNameValues?: ParameterNameValue[]; } -export const ResetCacheParameterGroupMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CacheParameterGroupName: S.optional(S.String), - ResetAllParameters: S.optional(S.Boolean), - ParameterNameValues: S.optional(ParameterNameValueList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ResetCacheParameterGroupMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CacheParameterGroupName: S.optional(S.String), + ResetAllParameters: S.optional(S.Boolean), + ParameterNameValues: S.optional(ParameterNameValueList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ResetCacheParameterGroupMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ResetCacheParameterGroupMessage", +}) as any as S.Schema; export interface RevokeCacheSecurityGroupIngressMessage { CacheSecurityGroupName?: string; EC2SecurityGroupName?: string; EC2SecurityGroupOwnerId?: string; } -export const RevokeCacheSecurityGroupIngressMessage = - /*@__PURE__*/ S.suspend(() => +export const RevokeCacheSecurityGroupIngressMessage = /*@__PURE__*/ S.suspend( + () => S.Struct({ CacheSecurityGroupName: S.optional(S.String), EC2SecurityGroupName: S.optional(S.String), @@ -4735,18 +4666,18 @@ export const RevokeCacheSecurityGroupIngressMessage = rules, ), ), - ).annotate({ - identifier: "RevokeCacheSecurityGroupIngressMessage", - }) as any as S.Schema; +).annotate({ + identifier: "RevokeCacheSecurityGroupIngressMessage", +}) as any as S.Schema; export interface RevokeCacheSecurityGroupIngressResult { CacheSecurityGroup?: CacheSecurityGroup; } -export const RevokeCacheSecurityGroupIngressResult = - /*@__PURE__*/ S.suspend(() => +export const RevokeCacheSecurityGroupIngressResult = /*@__PURE__*/ S.suspend( + () => S.Struct({ CacheSecurityGroup: S.optional(CacheSecurityGroup) }).pipe(ns), - ).annotate({ - identifier: "RevokeCacheSecurityGroupIngressResult", - }) as any as S.Schema; +).annotate({ + identifier: "RevokeCacheSecurityGroupIngressResult", +}) as any as S.Schema; export interface CustomerNodeEndpoint { Address?: string; Port?: number; @@ -4854,529 +4785,766 @@ export const TestMigrationResponse = /*@__PURE__*/ S.suspend(() => export class CacheClusterNotFoundFault extends S.TaggedErrorClass()( "CacheClusterNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "CacheClusterNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "CacheClusterNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class CacheParameterGroupNotFoundFault extends S.TaggedErrorClass()( "CacheParameterGroupNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "CacheParameterGroupNotFound", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "CacheParameterGroupNotFound", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class CacheSecurityGroupNotFoundFault extends S.TaggedErrorClass()( "CacheSecurityGroupNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "CacheSecurityGroupNotFound", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "CacheSecurityGroupNotFound", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class CacheSubnetGroupNotFoundFault extends S.TaggedErrorClass()( "CacheSubnetGroupNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "CacheSubnetGroupNotFoundFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "CacheSubnetGroupNotFoundFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidARNFault extends S.TaggedErrorClass()( "InvalidARNFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidARN", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidARN", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidReplicationGroupStateFault extends S.TaggedErrorClass()( "InvalidReplicationGroupStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidReplicationGroupState", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidReplicationGroupState", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidServerlessCacheSnapshotStateFault extends S.TaggedErrorClass()( "InvalidServerlessCacheSnapshotStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidServerlessCacheSnapshotStateFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidServerlessCacheSnapshotStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidServerlessCacheStateFault extends S.TaggedErrorClass()( "InvalidServerlessCacheStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidServerlessCacheStateFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidServerlessCacheStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ReplicationGroupNotFoundFault extends S.TaggedErrorClass()( "ReplicationGroupNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "ReplicationGroupNotFoundFault", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "ReplicationGroupNotFoundFault", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class ReservedCacheNodeNotFoundFault extends S.TaggedErrorClass()( "ReservedCacheNodeNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "ReservedCacheNodeNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ + code: "ReservedCacheNodeNotFound", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class ServerlessCacheNotFoundFault extends S.TaggedErrorClass()( "ServerlessCacheNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "ServerlessCacheNotFoundFault", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "ServerlessCacheNotFoundFault", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class ServerlessCacheSnapshotNotFoundFault extends S.TaggedErrorClass()( "ServerlessCacheSnapshotNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "ServerlessCacheSnapshotNotFoundFault", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "ServerlessCacheSnapshotNotFoundFault", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class SnapshotNotFoundFault extends S.TaggedErrorClass()( "SnapshotNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SnapshotNotFoundFault", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "SnapshotNotFoundFault", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class TagQuotaPerResourceExceeded extends S.TaggedErrorClass()( "TagQuotaPerResourceExceeded", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "TagQuotaPerResourceExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "TagQuotaPerResourceExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class UserGroupNotFoundFault extends S.TaggedErrorClass()( "UserGroupNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "UserGroupNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "UserGroupNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class UserNotFoundFault extends S.TaggedErrorClass()( "UserNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "UserNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "UserNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class AuthorizationAlreadyExistsFault extends S.TaggedErrorClass()( "AuthorizationAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "AuthorizationAlreadyExists", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "AuthorizationAlreadyExists", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class InvalidCacheSecurityGroupStateFault extends S.TaggedErrorClass()( "InvalidCacheSecurityGroupStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidCacheSecurityGroupState", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidCacheSecurityGroupState", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidParameterCombinationException extends S.TaggedErrorClass()( "InvalidParameterCombinationException", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidParameterCombination", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidParameterCombination", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidParameterValueException extends S.TaggedErrorClass()( "InvalidParameterValueException", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidParameterValue", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidParameterValue", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ServiceUpdateNotFoundFault extends S.TaggedErrorClass()( "ServiceUpdateNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "ServiceUpdateNotFoundFault", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "ServiceUpdateNotFoundFault", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class ReplicationGroupNotUnderMigrationFault extends S.TaggedErrorClass()( "ReplicationGroupNotUnderMigrationFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "ReplicationGroupNotUnderMigrationFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "ReplicationGroupNotUnderMigrationFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ServerlessCacheSnapshotAlreadyExistsFault extends S.TaggedErrorClass()( "ServerlessCacheSnapshotAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "ServerlessCacheSnapshotAlreadyExistsFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "ServerlessCacheSnapshotAlreadyExistsFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class ServerlessCacheSnapshotQuotaExceededFault extends S.TaggedErrorClass()( "ServerlessCacheSnapshotQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "ServerlessCacheSnapshotQuotaExceededFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "ServerlessCacheSnapshotQuotaExceededFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ServiceLinkedRoleNotFoundFault extends S.TaggedErrorClass()( "ServiceLinkedRoleNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "ServiceLinkedRoleNotFoundFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "ServiceLinkedRoleNotFoundFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidSnapshotStateFault extends S.TaggedErrorClass()( "InvalidSnapshotStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidSnapshotState", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidSnapshotState", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SnapshotAlreadyExistsFault extends S.TaggedErrorClass()( "SnapshotAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "SnapshotAlreadyExistsFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "SnapshotAlreadyExistsFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class SnapshotQuotaExceededFault extends S.TaggedErrorClass()( "SnapshotQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "SnapshotQuotaExceededFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "SnapshotQuotaExceededFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class CacheClusterAlreadyExistsFault extends S.TaggedErrorClass()( "CacheClusterAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "CacheClusterAlreadyExists", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "CacheClusterAlreadyExists", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class ClusterQuotaForCustomerExceededFault extends S.TaggedErrorClass()( "ClusterQuotaForCustomerExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "ClusterQuotaForCustomerExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "ClusterQuotaForCustomerExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InsufficientCacheClusterCapacityFault extends S.TaggedErrorClass()( "InsufficientCacheClusterCapacityFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InsufficientCacheClusterCapacity", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InsufficientCacheClusterCapacity", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidVPCNetworkStateFault extends S.TaggedErrorClass()( "InvalidVPCNetworkStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidVPCNetworkStateFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidVPCNetworkStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class NodeQuotaForClusterExceededFault extends S.TaggedErrorClass()( "NodeQuotaForClusterExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "NodeQuotaForClusterExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "NodeQuotaForClusterExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class NodeQuotaForCustomerExceededFault extends S.TaggedErrorClass()( "NodeQuotaForCustomerExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "NodeQuotaForCustomerExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "NodeQuotaForCustomerExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class CacheParameterGroupAlreadyExistsFault extends S.TaggedErrorClass()( "CacheParameterGroupAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "CacheParameterGroupAlreadyExists", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "CacheParameterGroupAlreadyExists", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class CacheParameterGroupQuotaExceededFault extends S.TaggedErrorClass()( "CacheParameterGroupQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "CacheParameterGroupQuotaExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "CacheParameterGroupQuotaExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidCacheParameterGroupStateFault extends S.TaggedErrorClass()( "InvalidCacheParameterGroupStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidCacheParameterGroupState", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidCacheParameterGroupState", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class CacheSecurityGroupAlreadyExistsFault extends S.TaggedErrorClass()( "CacheSecurityGroupAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "CacheSecurityGroupAlreadyExists", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "CacheSecurityGroupAlreadyExists", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class CacheSecurityGroupQuotaExceededFault extends S.TaggedErrorClass()( "CacheSecurityGroupQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "QuotaExceeded.CacheSecurityGroup", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "QuotaExceeded.CacheSecurityGroup", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class CacheSubnetGroupAlreadyExistsFault extends S.TaggedErrorClass()( "CacheSubnetGroupAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "CacheSubnetGroupAlreadyExists", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "CacheSubnetGroupAlreadyExists", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class CacheSubnetGroupQuotaExceededFault extends S.TaggedErrorClass()( "CacheSubnetGroupQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "CacheSubnetGroupQuotaExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "CacheSubnetGroupQuotaExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class CacheSubnetQuotaExceededFault extends S.TaggedErrorClass()( "CacheSubnetQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "CacheSubnetQuotaExceededFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "CacheSubnetQuotaExceededFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidSubnet extends S.TaggedErrorClass()( "InvalidSubnet", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidSubnet", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidSubnet", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SubnetNotAllowedFault extends S.TaggedErrorClass()( "SubnetNotAllowedFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SubnetNotAllowedFault", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "SubnetNotAllowedFault", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class GlobalReplicationGroupAlreadyExistsFault extends S.TaggedErrorClass()( "GlobalReplicationGroupAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "GlobalReplicationGroupAlreadyExistsFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "GlobalReplicationGroupAlreadyExistsFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class GlobalReplicationGroupNotFoundFault extends S.TaggedErrorClass()( "GlobalReplicationGroupNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "GlobalReplicationGroupNotFoundFault", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "GlobalReplicationGroupNotFoundFault", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class InvalidCacheClusterStateFault extends S.TaggedErrorClass()( "InvalidCacheClusterStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidCacheClusterState", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "InvalidCacheClusterState", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidGlobalReplicationGroupStateFault extends S.TaggedErrorClass()( "InvalidGlobalReplicationGroupStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidGlobalReplicationGroupState", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidGlobalReplicationGroupState", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidUserGroupStateFault extends S.TaggedErrorClass()( "InvalidUserGroupStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidUserGroupState", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidUserGroupState", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class NodeGroupsPerReplicationGroupQuotaExceededFault extends S.TaggedErrorClass()( "NodeGroupsPerReplicationGroupQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "NodeGroupsPerReplicationGroupQuotaExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "NodeGroupsPerReplicationGroupQuotaExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ReplicationGroupAlreadyExistsFault extends S.TaggedErrorClass()( "ReplicationGroupAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "ReplicationGroupAlreadyExists", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "ReplicationGroupAlreadyExists", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class InvalidCredentialsException extends S.TaggedErrorClass()( "InvalidCredentialsException", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidCredentialsException", - httpResponseCode: 408, - }), + T.all( + T.AwsQueryError({ + code: "InvalidCredentialsException", + httpResponseCode: 408, + }), + T.HttpError(408), + ), ).pipe(C.withTimeoutError) {} export class ServerlessCacheAlreadyExistsFault extends S.TaggedErrorClass()( "ServerlessCacheAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "ServerlessCacheAlreadyExistsFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "ServerlessCacheAlreadyExistsFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class ServerlessCacheQuotaForCustomerExceededFault extends S.TaggedErrorClass()( "ServerlessCacheQuotaForCustomerExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "ServerlessCacheQuotaForCustomerExceededFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "ServerlessCacheQuotaForCustomerExceededFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SnapshotFeatureNotSupportedFault extends S.TaggedErrorClass()( "SnapshotFeatureNotSupportedFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "SnapshotFeatureNotSupportedFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "SnapshotFeatureNotSupportedFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DuplicateUserNameFault extends S.TaggedErrorClass()( "DuplicateUserNameFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DuplicateUserName", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "DuplicateUserName", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class UserAlreadyExistsFault extends S.TaggedErrorClass()( "UserAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "UserAlreadyExists", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "UserAlreadyExists", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class UserQuotaExceededFault extends S.TaggedErrorClass()( "UserQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "UserQuotaExceeded", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "UserQuotaExceeded", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DefaultUserRequired extends S.TaggedErrorClass()( "DefaultUserRequired", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DefaultUserRequired", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "DefaultUserRequired", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class UserGroupAlreadyExistsFault extends S.TaggedErrorClass()( "UserGroupAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "UserGroupAlreadyExists", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "UserGroupAlreadyExists", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class UserGroupQuotaExceededFault extends S.TaggedErrorClass()( "UserGroupQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "UserGroupQuotaExceeded", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "UserGroupQuotaExceeded", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class NoOperationFault extends S.TaggedErrorClass()( "NoOperationFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "NoOperationFault", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "NoOperationFault", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class CacheSubnetGroupInUse extends S.TaggedErrorClass()( "CacheSubnetGroupInUse", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "CacheSubnetGroupInUse", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "CacheSubnetGroupInUse", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withDependencyViolationError) {} export class DefaultUserAssociatedToUserGroupFault extends S.TaggedErrorClass()( "DefaultUserAssociatedToUserGroupFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DefaultUserAssociatedToUserGroup", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DefaultUserAssociatedToUserGroup", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidUserStateFault extends S.TaggedErrorClass()( "InvalidUserStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidUserState", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidUserState", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ReservedCacheNodesOfferingNotFoundFault extends S.TaggedErrorClass()( "ReservedCacheNodesOfferingNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "ReservedCacheNodesOfferingNotFound", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "ReservedCacheNodesOfferingNotFound", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class InvalidKMSKeyFault extends S.TaggedErrorClass()( "InvalidKMSKeyFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidKMSKeyFault", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidKMSKeyFault", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SubnetInUse extends S.TaggedErrorClass()( "SubnetInUse", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SubnetInUse", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "SubnetInUse", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withDependencyViolationError) {} export class ReservedCacheNodeAlreadyExistsFault extends S.TaggedErrorClass()( "ReservedCacheNodeAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "ReservedCacheNodeAlreadyExists", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "ReservedCacheNodeAlreadyExists", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class ReservedCacheNodeQuotaExceededFault extends S.TaggedErrorClass()( "ReservedCacheNodeQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "ReservedCacheNodeQuotaExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "ReservedCacheNodeQuotaExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class TagNotFoundFault extends S.TaggedErrorClass()( "TagNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "TagNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "TagNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class AuthorizationNotFoundFault extends S.TaggedErrorClass()( "AuthorizationNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "AuthorizationNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "AuthorizationNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class ReplicationGroupAlreadyUnderMigrationFault extends S.TaggedErrorClass()( "ReplicationGroupAlreadyUnderMigrationFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "ReplicationGroupAlreadyUnderMigrationFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "ReplicationGroupAlreadyUnderMigrationFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class APICallRateForCustomerExceededFault extends S.TaggedErrorClass()( "APICallRateForCustomerExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "APICallRateForCustomerExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "APICallRateForCustomerExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class NodeGroupNotFoundFault extends S.TaggedErrorClass()( "NodeGroupNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "NodeGroupNotFoundFault", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "NodeGroupNotFoundFault", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class TestFailoverNotAvailableFault extends S.TaggedErrorClass()( "TestFailoverNotAvailableFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "TestFailoverNotAvailableFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "TestFailoverNotAvailableFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} //# Operations diff --git a/packages/aws/src/services/emr-containers.ts b/packages/aws/src/services/emr-containers.ts index 8d0070984a..c2fbc741ec 100644 --- a/packages/aws/src/services/emr-containers.ts +++ b/packages/aws/src/services/emr-containers.ts @@ -215,49 +215,44 @@ export const ParametricCloudWatchMonitoringConfiguration = export interface ParametricS3MonitoringConfiguration { logUri?: string; } -export const ParametricS3MonitoringConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ logUri: S.optional(S.String) }), - ).annotate({ - identifier: "ParametricS3MonitoringConfiguration", - }) as any as S.Schema; +export const ParametricS3MonitoringConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ logUri: S.optional(S.String) }), +).annotate({ + identifier: "ParametricS3MonitoringConfiguration", +}) as any as S.Schema; export interface ParametricMonitoringConfiguration { persistentAppUI?: string; cloudWatchMonitoringConfiguration?: ParametricCloudWatchMonitoringConfiguration; s3MonitoringConfiguration?: ParametricS3MonitoringConfiguration; } -export const ParametricMonitoringConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - persistentAppUI: S.optional(S.String), - cloudWatchMonitoringConfiguration: S.optional( - ParametricCloudWatchMonitoringConfiguration, - ), - s3MonitoringConfiguration: S.optional( - ParametricS3MonitoringConfiguration, - ), - }), - ).annotate({ - identifier: "ParametricMonitoringConfiguration", - }) as any as S.Schema; +export const ParametricMonitoringConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + persistentAppUI: S.optional(S.String), + cloudWatchMonitoringConfiguration: S.optional( + ParametricCloudWatchMonitoringConfiguration, + ), + s3MonitoringConfiguration: S.optional(ParametricS3MonitoringConfiguration), + }), +).annotate({ + identifier: "ParametricMonitoringConfiguration", +}) as any as S.Schema; export interface ParametricConfigurationOverrides { applicationConfiguration?: Configuration[]; monitoringConfiguration?: ParametricMonitoringConfiguration; } -export const ParametricConfigurationOverrides = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - applicationConfiguration: S.optional(ConfigurationList), - monitoringConfiguration: S.optional(ParametricMonitoringConfiguration), - }), - ).annotate({ - identifier: "ParametricConfigurationOverrides", - }) as any as S.Schema; -export type EntryPointArguments = string | redacted.Redacted[]; +export const ParametricConfigurationOverrides = /*@__PURE__*/ S.suspend(() => + S.Struct({ + applicationConfiguration: S.optional(ConfigurationList), + monitoringConfiguration: S.optional(ParametricMonitoringConfiguration), + }), +).annotate({ + identifier: "ParametricConfigurationOverrides", +}) as any as S.Schema; +export type EntryPointArguments = (string | redacted.Redacted)[]; export const EntryPointArguments = /*@__PURE__*/ S.Array(SensitiveString); export interface SparkSubmitJobDriver { entryPoint: string | redacted.Redacted; - entryPointArguments?: string | redacted.Redacted[]; + entryPointArguments?: (string | redacted.Redacted)[]; sparkSubmitParameters?: string | redacted.Redacted; } export const SparkSubmitJobDriver = /*@__PURE__*/ S.suspend(() => @@ -297,23 +292,21 @@ export interface TemplateParameterConfiguration { type?: TemplateParameterDataType; defaultValue?: string; } -export const TemplateParameterConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - type: S.optional(TemplateParameterDataType), - defaultValue: S.optional(S.String), - }), - ).annotate({ - identifier: "TemplateParameterConfiguration", - }) as any as S.Schema; +export const TemplateParameterConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + type: S.optional(TemplateParameterDataType), + defaultValue: S.optional(S.String), + }), +).annotate({ + identifier: "TemplateParameterConfiguration", +}) as any as S.Schema; export type TemplateParameterConfigurationMap = { [key: string]: TemplateParameterConfiguration | undefined; }; -export const TemplateParameterConfigurationMap = - /*@__PURE__*/ S.Record( - S.String, - TemplateParameterConfiguration.pipe(S.optional), - ); +export const TemplateParameterConfigurationMap = /*@__PURE__*/ S.Record( + S.String, + TemplateParameterConfiguration.pipe(S.optional), +); export type TagMap = { [key: string]: string | undefined }; export const TagMap = /*@__PURE__*/ S.Record( S.String, @@ -404,15 +397,14 @@ export interface CloudWatchMonitoringConfiguration { logGroupName: string; logStreamNamePrefix?: string; } -export const CloudWatchMonitoringConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - logGroupName: S.String, - logStreamNamePrefix: S.optional(S.String), - }), - ).annotate({ - identifier: "CloudWatchMonitoringConfiguration", - }) as any as S.Schema; +export const CloudWatchMonitoringConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + logGroupName: S.String, + logStreamNamePrefix: S.optional(S.String), + }), +).annotate({ + identifier: "CloudWatchMonitoringConfiguration", +}) as any as S.Schema; export interface S3MonitoringConfiguration { logUri: string; } @@ -425,12 +417,11 @@ export interface ContainerLogRotationConfiguration { rotationSize: string; maxFilesToKeep: number; } -export const ContainerLogRotationConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ rotationSize: S.String, maxFilesToKeep: S.Number }), - ).annotate({ - identifier: "ContainerLogRotationConfiguration", - }) as any as S.Schema; +export const ContainerLogRotationConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ rotationSize: S.String, maxFilesToKeep: S.Number }), +).annotate({ + identifier: "ContainerLogRotationConfiguration", +}) as any as S.Schema; export interface MonitoringConfiguration { managedLogs?: ManagedLogs; persistentAppUI?: PersistentAppUI; @@ -476,51 +467,49 @@ export interface CreateManagedEndpointRequest { clientToken: string; tags?: { [key: string]: string | undefined }; } -export const CreateManagedEndpointRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.String, - virtualClusterId: S.String.pipe(T.HttpLabel("virtualClusterId")), - type: S.String, - releaseLabel: S.String, - executionRoleArn: S.String, - certificateArn: S.optional(S.String), - configurationOverrides: S.optional(ConfigurationOverrides), - clientToken: S.String.pipe(T.IdempotencyToken()), - tags: S.optional(TagMap), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/virtualclusters/{virtualClusterId}/endpoints", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateManagedEndpointRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.String, + virtualClusterId: S.String.pipe(T.HttpLabel("virtualClusterId")), + type: S.String, + releaseLabel: S.String, + executionRoleArn: S.String, + certificateArn: S.optional(S.String), + configurationOverrides: S.optional(ConfigurationOverrides), + clientToken: S.String.pipe(T.IdempotencyToken()), + tags: S.optional(TagMap), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/virtualclusters/{virtualClusterId}/endpoints", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateManagedEndpointRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateManagedEndpointRequest", +}) as any as S.Schema; export interface CreateManagedEndpointResponse { id?: string; name?: string; arn?: string; virtualClusterId?: string; } -export const CreateManagedEndpointResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.optional(S.String), - name: S.optional(S.String), - arn: S.optional(S.String), - virtualClusterId: S.optional(S.String), - }), - ).annotate({ - identifier: "CreateManagedEndpointResponse", - }) as any as S.Schema; +export const CreateManagedEndpointResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.optional(S.String), + name: S.optional(S.String), + arn: S.optional(S.String), + virtualClusterId: S.optional(S.String), + }), +).annotate({ + identifier: "CreateManagedEndpointResponse", +}) as any as S.Schema; export type ContainerProviderType = "EKS" | (string & {}); export const ContainerProviderType = /*@__PURE__*/ S.String; export interface EksInfo { @@ -584,27 +573,25 @@ export interface TLSCertificateConfiguration { publicCertificateSecretArn?: string; privateCertificateSecretArn?: string; } -export const TLSCertificateConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - certificateProviderType: S.optional(CertificateProviderType), - publicCertificateSecretArn: S.optional(S.String), - privateCertificateSecretArn: S.optional(S.String), - }), - ).annotate({ - identifier: "TLSCertificateConfiguration", - }) as any as S.Schema; +export const TLSCertificateConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + certificateProviderType: S.optional(CertificateProviderType), + publicCertificateSecretArn: S.optional(S.String), + privateCertificateSecretArn: S.optional(S.String), + }), +).annotate({ + identifier: "TLSCertificateConfiguration", +}) as any as S.Schema; export interface InTransitEncryptionConfiguration { tlsCertificateConfiguration?: TLSCertificateConfiguration; } -export const InTransitEncryptionConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - tlsCertificateConfiguration: S.optional(TLSCertificateConfiguration), - }), - ).annotate({ - identifier: "InTransitEncryptionConfiguration", - }) as any as S.Schema; +export const InTransitEncryptionConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + tlsCertificateConfiguration: S.optional(TLSCertificateConfiguration), + }), +).annotate({ + identifier: "InTransitEncryptionConfiguration", +}) as any as S.Schema; export interface EncryptionConfiguration { inTransitEncryptionConfiguration?: InTransitEncryptionConfiguration; } @@ -646,42 +633,40 @@ export interface CreateSecurityConfigurationRequest { securityConfigurationData: SecurityConfigurationData; tags?: { [key: string]: string | undefined }; } -export const CreateSecurityConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - clientToken: S.String.pipe(T.IdempotencyToken()), - name: S.String, - containerProvider: S.optional(ContainerProvider), - securityConfigurationData: SecurityConfigurationData, - tags: S.optional(TagMap), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/securityconfigurations" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateSecurityConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + clientToken: S.String.pipe(T.IdempotencyToken()), + name: S.String, + containerProvider: S.optional(ContainerProvider), + securityConfigurationData: SecurityConfigurationData, + tags: S.optional(TagMap), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/securityconfigurations" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateSecurityConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateSecurityConfigurationRequest", +}) as any as S.Schema; export interface CreateSecurityConfigurationResponse { id?: string; name?: string; arn?: string; } -export const CreateSecurityConfigurationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.optional(S.String), - name: S.optional(S.String), - arn: S.optional(S.String), - }), - ).annotate({ - identifier: "CreateSecurityConfigurationResponse", - }) as any as S.Schema; +export const CreateSecurityConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.optional(S.String), + name: S.optional(S.String), + arn: S.optional(S.String), + }), +).annotate({ + identifier: "CreateSecurityConfigurationResponse", +}) as any as S.Schema; export interface CreateVirtualClusterRequest { name: string; containerProvider: ContainerProvider; @@ -689,42 +674,40 @@ export interface CreateVirtualClusterRequest { tags?: { [key: string]: string | undefined }; securityConfigurationId?: string; } -export const CreateVirtualClusterRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.String, - containerProvider: ContainerProvider, - clientToken: S.String.pipe(T.IdempotencyToken()), - tags: S.optional(TagMap), - securityConfigurationId: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/virtualclusters" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateVirtualClusterRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.String, + containerProvider: ContainerProvider, + clientToken: S.String.pipe(T.IdempotencyToken()), + tags: S.optional(TagMap), + securityConfigurationId: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/virtualclusters" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateVirtualClusterRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateVirtualClusterRequest", +}) as any as S.Schema; export interface CreateVirtualClusterResponse { id?: string; name?: string; arn?: string; } -export const CreateVirtualClusterResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.optional(S.String), - name: S.optional(S.String), - arn: S.optional(S.String), - }), - ).annotate({ - identifier: "CreateVirtualClusterResponse", - }) as any as S.Schema; +export const CreateVirtualClusterResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.optional(S.String), + name: S.optional(S.String), + arn: S.optional(S.String), + }), +).annotate({ + identifier: "CreateVirtualClusterResponse", +}) as any as S.Schema; export interface DeleteJobTemplateRequest { id: string; } @@ -754,67 +737,63 @@ export interface DeleteManagedEndpointRequest { id: string; virtualClusterId: string; } -export const DeleteManagedEndpointRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String.pipe(T.HttpLabel("id")), - virtualClusterId: S.String.pipe(T.HttpLabel("virtualClusterId")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/virtualclusters/{virtualClusterId}/endpoints/{id}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteManagedEndpointRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String.pipe(T.HttpLabel("id")), + virtualClusterId: S.String.pipe(T.HttpLabel("virtualClusterId")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/virtualclusters/{virtualClusterId}/endpoints/{id}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteManagedEndpointRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteManagedEndpointRequest", +}) as any as S.Schema; export interface DeleteManagedEndpointResponse { id?: string; virtualClusterId?: string; } -export const DeleteManagedEndpointResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.optional(S.String), - virtualClusterId: S.optional(S.String), - }), - ).annotate({ - identifier: "DeleteManagedEndpointResponse", - }) as any as S.Schema; +export const DeleteManagedEndpointResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.optional(S.String), + virtualClusterId: S.optional(S.String), + }), +).annotate({ + identifier: "DeleteManagedEndpointResponse", +}) as any as S.Schema; export interface DeleteVirtualClusterRequest { id: string; } -export const DeleteVirtualClusterRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ id: S.String.pipe(T.HttpLabel("id")) }).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/virtualclusters/{id}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteVirtualClusterRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ id: S.String.pipe(T.HttpLabel("id")) }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/virtualclusters/{id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteVirtualClusterRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteVirtualClusterRequest", +}) as any as S.Schema; export interface DeleteVirtualClusterResponse { id?: string; } -export const DeleteVirtualClusterResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ id: S.optional(S.String) }), - ).annotate({ - identifier: "DeleteVirtualClusterResponse", - }) as any as S.Schema; +export const DeleteVirtualClusterResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ id: S.optional(S.String) }), +).annotate({ + identifier: "DeleteVirtualClusterResponse", +}) as any as S.Schema; export interface DescribeJobRunRequest { id: string; virtualClusterId: string; @@ -972,37 +951,35 @@ export const JobTemplate = /*@__PURE__*/ S.suspend(() => export interface DescribeJobTemplateResponse { jobTemplate?: JobTemplate; } -export const DescribeJobTemplateResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ jobTemplate: S.optional(JobTemplate) }), - ).annotate({ - identifier: "DescribeJobTemplateResponse", - }) as any as S.Schema; +export const DescribeJobTemplateResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ jobTemplate: S.optional(JobTemplate) }), +).annotate({ + identifier: "DescribeJobTemplateResponse", +}) as any as S.Schema; export interface DescribeManagedEndpointRequest { id: string; virtualClusterId: string; } -export const DescribeManagedEndpointRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String.pipe(T.HttpLabel("id")), - virtualClusterId: S.String.pipe(T.HttpLabel("virtualClusterId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/virtualclusters/{virtualClusterId}/endpoints/{id}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeManagedEndpointRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String.pipe(T.HttpLabel("id")), + virtualClusterId: S.String.pipe(T.HttpLabel("virtualClusterId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/virtualclusters/{virtualClusterId}/endpoints/{id}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeManagedEndpointRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeManagedEndpointRequest", +}) as any as S.Schema; export type EndpointState = | "CREATING" | "ACTIVE" @@ -1070,17 +1047,16 @@ export const Endpoint = /*@__PURE__*/ S.suspend(() => export interface DescribeManagedEndpointResponse { endpoint?: Endpoint; } -export const DescribeManagedEndpointResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ endpoint: S.optional(Endpoint) }), - ).annotate({ - identifier: "DescribeManagedEndpointResponse", - }) as any as S.Schema; +export const DescribeManagedEndpointResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ endpoint: S.optional(Endpoint) }), +).annotate({ + identifier: "DescribeManagedEndpointResponse", +}) as any as S.Schema; export interface DescribeSecurityConfigurationRequest { id: string; } -export const DescribeSecurityConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const DescribeSecurityConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ id: S.String.pipe(T.HttpLabel("id")) }).pipe( T.all( T.Http({ method: "GET", uri: "/securityconfigurations/{id}" }), @@ -1091,9 +1067,9 @@ export const DescribeSecurityConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "DescribeSecurityConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeSecurityConfigurationRequest", +}) as any as S.Schema; export interface SecurityConfiguration { id?: string; name?: string; @@ -1121,30 +1097,28 @@ export const SecurityConfiguration = /*@__PURE__*/ S.suspend(() => export interface DescribeSecurityConfigurationResponse { securityConfiguration?: SecurityConfiguration; } -export const DescribeSecurityConfigurationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ securityConfiguration: S.optional(SecurityConfiguration) }), - ).annotate({ - identifier: "DescribeSecurityConfigurationResponse", - }) as any as S.Schema; +export const DescribeSecurityConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ securityConfiguration: S.optional(SecurityConfiguration) }), +).annotate({ + identifier: "DescribeSecurityConfigurationResponse", +}) as any as S.Schema; export interface DescribeVirtualClusterRequest { id: string; } -export const DescribeVirtualClusterRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ id: S.String.pipe(T.HttpLabel("id")) }).pipe( - T.all( - T.Http({ method: "GET", uri: "/virtualclusters/{id}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeVirtualClusterRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ id: S.String.pipe(T.HttpLabel("id")) }).pipe( + T.all( + T.Http({ method: "GET", uri: "/virtualclusters/{id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeVirtualClusterRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeVirtualClusterRequest", +}) as any as S.Schema; export type VirtualClusterState = | "RUNNING" | "TERMINATING" @@ -1179,12 +1153,11 @@ export const VirtualCluster = /*@__PURE__*/ S.suspend(() => export interface DescribeVirtualClusterResponse { virtualCluster?: VirtualCluster; } -export const DescribeVirtualClusterResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ virtualCluster: S.optional(VirtualCluster) }), - ).annotate({ - identifier: "DescribeVirtualClusterResponse", - }) as any as S.Schema; +export const DescribeVirtualClusterResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ virtualCluster: S.optional(VirtualCluster) }), +).annotate({ + identifier: "DescribeVirtualClusterResponse", +}) as any as S.Schema; export interface GetManagedEndpointSessionCredentialsRequest { endpointIdentifier: string; virtualClusterIdentifier: string; @@ -1350,81 +1323,78 @@ export interface ListManagedEndpointsRequest { maxResults?: number; nextToken?: string; } -export const ListManagedEndpointsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - virtualClusterId: S.String.pipe(T.HttpLabel("virtualClusterId")), - createdBefore: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ).pipe(T.HttpQuery("createdBefore")), - createdAfter: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ).pipe(T.HttpQuery("createdAfter")), - types: S.optional(EndpointTypes).pipe(T.HttpQuery("types")), - states: S.optional(EndpointStates).pipe(T.HttpQuery("states")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/virtualclusters/{virtualClusterId}/endpoints", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListManagedEndpointsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + virtualClusterId: S.String.pipe(T.HttpLabel("virtualClusterId")), + createdBefore: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ).pipe(T.HttpQuery("createdBefore")), + createdAfter: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ).pipe(T.HttpQuery("createdAfter")), + types: S.optional(EndpointTypes).pipe(T.HttpQuery("types")), + states: S.optional(EndpointStates).pipe(T.HttpQuery("states")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/virtualclusters/{virtualClusterId}/endpoints", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListManagedEndpointsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListManagedEndpointsRequest", +}) as any as S.Schema; export type Endpoints = Endpoint[]; export const Endpoints = /*@__PURE__*/ S.Array(Endpoint); export interface ListManagedEndpointsResponse { endpoints?: Endpoint[]; nextToken?: string; } -export const ListManagedEndpointsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - endpoints: S.optional(Endpoints), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListManagedEndpointsResponse", - }) as any as S.Schema; +export const ListManagedEndpointsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + endpoints: S.optional(Endpoints), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListManagedEndpointsResponse", +}) as any as S.Schema; export interface ListSecurityConfigurationsRequest { createdAfter?: Date; createdBefore?: Date; maxResults?: number; nextToken?: string; } -export const ListSecurityConfigurationsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - createdAfter: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ).pipe(T.HttpQuery("createdAfter")), - createdBefore: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ).pipe(T.HttpQuery("createdBefore")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/securityconfigurations" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListSecurityConfigurationsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + createdAfter: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ).pipe(T.HttpQuery("createdAfter")), + createdBefore: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ).pipe(T.HttpQuery("createdBefore")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/securityconfigurations" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListSecurityConfigurationsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListSecurityConfigurationsRequest", +}) as any as S.Schema; export type SecurityConfigurations = SecurityConfiguration[]; export const SecurityConfigurations = /*@__PURE__*/ S.Array( SecurityConfiguration, @@ -1433,15 +1403,14 @@ export interface ListSecurityConfigurationsResponse { securityConfigurations?: SecurityConfiguration[]; nextToken?: string; } -export const ListSecurityConfigurationsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - securityConfigurations: S.optional(SecurityConfigurations), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListSecurityConfigurationsResponse", - }) as any as S.Schema; +export const ListSecurityConfigurationsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + securityConfigurations: S.optional(SecurityConfigurations), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListSecurityConfigurationsResponse", +}) as any as S.Schema; export interface ListTagsForResourceRequest { resourceArn: string; } @@ -1462,12 +1431,11 @@ export const ListTagsForResourceRequest = /*@__PURE__*/ S.suspend(() => export interface ListTagsForResourceResponse { tags?: { [key: string]: string | undefined }; } -export const ListTagsForResourceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ tags: S.optional(TagMap) }), - ).annotate({ - identifier: "ListTagsForResourceResponse", - }) as any as S.Schema; +export const ListTagsForResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ tags: S.optional(TagMap) }), +).annotate({ + identifier: "ListTagsForResourceResponse", +}) as any as S.Schema; export type VirtualClusterStates = VirtualClusterState[]; export const VirtualClusterStates = /*@__PURE__*/ S.Array(VirtualClusterState); export interface ListVirtualClustersRequest { @@ -1519,15 +1487,14 @@ export interface ListVirtualClustersResponse { virtualClusters?: VirtualCluster[]; nextToken?: string; } -export const ListVirtualClustersResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - virtualClusters: S.optional(VirtualClusters), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListVirtualClustersResponse", - }) as any as S.Schema; +export const ListVirtualClustersResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + virtualClusters: S.optional(VirtualClusters), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListVirtualClustersResponse", +}) as any as S.Schema; export type TemplateParameterInputMap = { [key: string]: string | undefined }; export const TemplateParameterInputMap = /*@__PURE__*/ S.Record( S.String, @@ -1652,23 +1619,36 @@ export const UntagResourceResponse = /*@__PURE__*/ S.suspend(() => export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class EKSRequestThrottledException extends S.TaggedErrorClass()( "EKSRequestThrottledException", { message: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class RequestThrottledException extends S.TaggedErrorClass()( "RequestThrottledException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} +export class InvalidResourceArn extends S.TaggedErrorClass()( + "InvalidResourceArn", + {}, + T.SyntheticError({ + from: "BadRequestException", + message: { includes: "Invalid input resource arn" }, + }), +) {} //# Operations export type CancelJobRunError = @@ -2264,6 +2244,7 @@ export type TagResourceError = | InternalServerException | ResourceNotFoundException | ValidationException + | InvalidResourceArn | CommonErrors; /** * Assigns tags to resources. A tag is a label that you assign to an Amazon Web Services @@ -2288,6 +2269,7 @@ export const tagResource: API.OperationMethod< InternalServerException, ResourceNotFoundException, ValidationException, + InvalidResourceArn, ], operationName: "TagResource", })); @@ -2295,6 +2277,7 @@ export type UntagResourceError = | InternalServerException | ResourceNotFoundException | ValidationException + | InvalidResourceArn | CommonErrors; /** * Removes tags from resources. @@ -2311,6 +2294,7 @@ export const untagResource: API.OperationMethod< InternalServerException, ResourceNotFoundException, ValidationException, + InvalidResourceArn, ], operationName: "UntagResource", })); diff --git a/packages/aws/src/services/emr.ts b/packages/aws/src/services/emr.ts index 4535e880b3..8c3ac2672d 100644 --- a/packages/aws/src/services/emr.ts +++ b/packages/aws/src/services/emr.ts @@ -236,17 +236,16 @@ export interface SpotProvisioningSpecification { BlockDurationMinutes?: number; AllocationStrategy?: SpotProvisioningAllocationStrategy; } -export const SpotProvisioningSpecification = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TimeoutDurationMinutes: S.optional(S.Number), - TimeoutAction: S.optional(SpotProvisioningTimeoutAction), - BlockDurationMinutes: S.optional(S.Number), - AllocationStrategy: S.optional(SpotProvisioningAllocationStrategy), - }), - ).annotate({ - identifier: "SpotProvisioningSpecification", - }) as any as S.Schema; +export const SpotProvisioningSpecification = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TimeoutDurationMinutes: S.optional(S.Number), + TimeoutAction: S.optional(SpotProvisioningTimeoutAction), + BlockDurationMinutes: S.optional(S.Number), + AllocationStrategy: S.optional(SpotProvisioningAllocationStrategy), + }), +).annotate({ + identifier: "SpotProvisioningSpecification", +}) as any as S.Schema; export type OnDemandProvisioningAllocationStrategy = | "lowest-price" | "prioritized" @@ -266,46 +265,42 @@ export interface OnDemandCapacityReservationOptions { CapacityReservationPreference?: OnDemandCapacityReservationPreference; CapacityReservationResourceGroupArn?: string; } -export const OnDemandCapacityReservationOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - UsageStrategy: S.optional(OnDemandCapacityReservationUsageStrategy), - CapacityReservationPreference: S.optional( - OnDemandCapacityReservationPreference, - ), - CapacityReservationResourceGroupArn: S.optional(S.String), - }), - ).annotate({ - identifier: "OnDemandCapacityReservationOptions", - }) as any as S.Schema; +export const OnDemandCapacityReservationOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + UsageStrategy: S.optional(OnDemandCapacityReservationUsageStrategy), + CapacityReservationPreference: S.optional( + OnDemandCapacityReservationPreference, + ), + CapacityReservationResourceGroupArn: S.optional(S.String), + }), +).annotate({ + identifier: "OnDemandCapacityReservationOptions", +}) as any as S.Schema; export interface OnDemandProvisioningSpecification { AllocationStrategy?: OnDemandProvisioningAllocationStrategy; CapacityReservationOptions?: OnDemandCapacityReservationOptions; } -export const OnDemandProvisioningSpecification = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AllocationStrategy: S.optional(OnDemandProvisioningAllocationStrategy), - CapacityReservationOptions: S.optional( - OnDemandCapacityReservationOptions, - ), - }), - ).annotate({ - identifier: "OnDemandProvisioningSpecification", - }) as any as S.Schema; +export const OnDemandProvisioningSpecification = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AllocationStrategy: S.optional(OnDemandProvisioningAllocationStrategy), + CapacityReservationOptions: S.optional(OnDemandCapacityReservationOptions), + }), +).annotate({ + identifier: "OnDemandProvisioningSpecification", +}) as any as S.Schema; export interface InstanceFleetProvisioningSpecifications { SpotSpecification?: SpotProvisioningSpecification; OnDemandSpecification?: OnDemandProvisioningSpecification; } -export const InstanceFleetProvisioningSpecifications = - /*@__PURE__*/ S.suspend(() => +export const InstanceFleetProvisioningSpecifications = /*@__PURE__*/ S.suspend( + () => S.Struct({ SpotSpecification: S.optional(SpotProvisioningSpecification), OnDemandSpecification: S.optional(OnDemandProvisioningSpecification), }), - ).annotate({ - identifier: "InstanceFleetProvisioningSpecifications", - }) as any as S.Schema; +).annotate({ + identifier: "InstanceFleetProvisioningSpecifications", +}) as any as S.Schema; export interface SpotResizingSpecification { TimeoutDurationMinutes?: number; AllocationStrategy?: SpotProvisioningAllocationStrategy; @@ -323,31 +318,27 @@ export interface OnDemandResizingSpecification { AllocationStrategy?: OnDemandProvisioningAllocationStrategy; CapacityReservationOptions?: OnDemandCapacityReservationOptions; } -export const OnDemandResizingSpecification = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TimeoutDurationMinutes: S.optional(S.Number), - AllocationStrategy: S.optional(OnDemandProvisioningAllocationStrategy), - CapacityReservationOptions: S.optional( - OnDemandCapacityReservationOptions, - ), - }), - ).annotate({ - identifier: "OnDemandResizingSpecification", - }) as any as S.Schema; +export const OnDemandResizingSpecification = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TimeoutDurationMinutes: S.optional(S.Number), + AllocationStrategy: S.optional(OnDemandProvisioningAllocationStrategy), + CapacityReservationOptions: S.optional(OnDemandCapacityReservationOptions), + }), +).annotate({ + identifier: "OnDemandResizingSpecification", +}) as any as S.Schema; export interface InstanceFleetResizingSpecifications { SpotResizeSpecification?: SpotResizingSpecification; OnDemandResizeSpecification?: OnDemandResizingSpecification; } -export const InstanceFleetResizingSpecifications = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SpotResizeSpecification: S.optional(SpotResizingSpecification), - OnDemandResizeSpecification: S.optional(OnDemandResizingSpecification), - }), - ).annotate({ - identifier: "InstanceFleetResizingSpecifications", - }) as any as S.Schema; +export const InstanceFleetResizingSpecifications = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SpotResizeSpecification: S.optional(SpotResizingSpecification), + OnDemandResizeSpecification: S.optional(OnDemandResizingSpecification), + }), +).annotate({ + identifier: "InstanceFleetResizingSpecifications", +}) as any as S.Schema; export interface InstanceFleetConfig { Name?: string; InstanceFleetType?: InstanceFleetType; @@ -435,16 +426,15 @@ export interface SimpleScalingPolicyConfiguration { ScalingAdjustment?: number; CoolDown?: number; } -export const SimpleScalingPolicyConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AdjustmentType: S.optional(AdjustmentType), - ScalingAdjustment: S.optional(S.Number), - CoolDown: S.optional(S.Number), - }), - ).annotate({ - identifier: "SimpleScalingPolicyConfiguration", - }) as any as S.Schema; +export const SimpleScalingPolicyConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AdjustmentType: S.optional(AdjustmentType), + ScalingAdjustment: S.optional(S.Number), + CoolDown: S.optional(S.Number), + }), +).annotate({ + identifier: "SimpleScalingPolicyConfiguration", +}) as any as S.Schema; export interface ScalingAction { Market?: MarketType; SimpleScalingPolicyConfiguration?: SimpleScalingPolicyConfiguration; @@ -693,14 +683,13 @@ export const S3MonitoringConfiguration = /*@__PURE__*/ S.suspend(() => export interface StepMonitoringConfiguration { S3MonitoringConfiguration?: S3MonitoringConfiguration; } -export const StepMonitoringConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - S3MonitoringConfiguration: S.optional(S3MonitoringConfiguration), - }), - ).annotate({ - identifier: "StepMonitoringConfiguration", - }) as any as S.Schema; +export const StepMonitoringConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + S3MonitoringConfiguration: S.optional(S3MonitoringConfiguration), + }), +).annotate({ + identifier: "StepMonitoringConfiguration", +}) as any as S.Schema; export interface StepConfig { Name?: string; ActionOnFailure?: ActionOnFailure; @@ -883,53 +872,50 @@ export interface CreatePersistentAppUIOutput { PersistentAppUIId?: string; RuntimeRoleEnabledCluster?: boolean; } -export const CreatePersistentAppUIOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - PersistentAppUIId: S.optional(S.String), - RuntimeRoleEnabledCluster: S.optional(S.Boolean), - }).pipe(ns), - ).annotate({ - identifier: "CreatePersistentAppUIOutput", - }) as any as S.Schema; +export const CreatePersistentAppUIOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + PersistentAppUIId: S.optional(S.String), + RuntimeRoleEnabledCluster: S.optional(S.Boolean), + }).pipe(ns), +).annotate({ + identifier: "CreatePersistentAppUIOutput", +}) as any as S.Schema; export interface CreateSecurityConfigurationInput { Name?: string; SecurityConfiguration?: string; } -export const CreateSecurityConfigurationInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Name: S.optional(S.String), - SecurityConfiguration: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateSecurityConfigurationInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.optional(S.String), + SecurityConfiguration: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateSecurityConfigurationInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateSecurityConfigurationInput", +}) as any as S.Schema; export interface CreateSecurityConfigurationOutput { Name: string; CreationDateTime: Date; } -export const CreateSecurityConfigurationOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Name: S.optional(S.String), - CreationDateTime: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - }).pipe(ns), - ).annotate({ - identifier: "CreateSecurityConfigurationOutput", - }) as any as S.Schema; +export const CreateSecurityConfigurationOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.optional(S.String), + CreationDateTime: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + }).pipe(ns), +).annotate({ + identifier: "CreateSecurityConfigurationOutput", +}) as any as S.Schema; export type AuthMode = "SSO" | "IAM" | (string & {}); export const AuthMode = /*@__PURE__*/ S.String; export type SubnetIdList = string[]; @@ -1008,57 +994,57 @@ export interface CreateStudioSessionMappingInput { IdentityType?: IdentityType; SessionPolicyArn?: string; } -export const CreateStudioSessionMappingInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - StudioId: S.optional(S.String), - IdentityId: S.optional(S.String), - IdentityName: S.optional(S.String), - IdentityType: S.optional(IdentityType), - SessionPolicyArn: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateStudioSessionMappingInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + StudioId: S.optional(S.String), + IdentityId: S.optional(S.String), + IdentityName: S.optional(S.String), + IdentityType: S.optional(IdentityType), + SessionPolicyArn: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateStudioSessionMappingInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateStudioSessionMappingInput", +}) as any as S.Schema; export interface CreateStudioSessionMappingResponse {} -export const CreateStudioSessionMappingResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "CreateStudioSessionMappingResponse", - }) as any as S.Schema; +export const CreateStudioSessionMappingResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "CreateStudioSessionMappingResponse", +}) as any as S.Schema; export interface DeleteSecurityConfigurationInput { Name?: string; } -export const DeleteSecurityConfigurationInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Name: S.optional(S.String) }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteSecurityConfigurationInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ Name: S.optional(S.String) }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteSecurityConfigurationInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteSecurityConfigurationInput", +}) as any as S.Schema; export interface DeleteSecurityConfigurationOutput {} -export const DeleteSecurityConfigurationOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteSecurityConfigurationOutput", - }) as any as S.Schema; +export const DeleteSecurityConfigurationOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteSecurityConfigurationOutput", +}) as any as S.Schema; export interface DeleteStudioInput { StudioId?: string; } @@ -1089,32 +1075,32 @@ export interface DeleteStudioSessionMappingInput { IdentityName?: string; IdentityType?: IdentityType; } -export const DeleteStudioSessionMappingInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - StudioId: S.optional(S.String), - IdentityId: S.optional(S.String), - IdentityName: S.optional(S.String), - IdentityType: S.optional(IdentityType), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteStudioSessionMappingInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + StudioId: S.optional(S.String), + IdentityId: S.optional(S.String), + IdentityName: S.optional(S.String), + IdentityType: S.optional(IdentityType), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteStudioSessionMappingInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteStudioSessionMappingInput", +}) as any as S.Schema; export interface DeleteStudioSessionMappingResponse {} -export const DeleteStudioSessionMappingResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteStudioSessionMappingResponse", - }) as any as S.Schema; +export const DeleteStudioSessionMappingResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteStudioSessionMappingResponse", +}) as any as S.Schema; export interface DescribeClusterInput { ClusterId?: string; } @@ -1276,18 +1262,18 @@ export type RepoUpgradeOnBoot = "SECURITY" | "NONE" | (string & {}); export const RepoUpgradeOnBoot = /*@__PURE__*/ S.String; export interface KerberosAttributes { Realm?: string; - KdcAdminPassword?: string; - CrossRealmTrustPrincipalPassword?: string; + KdcAdminPassword?: string | redacted.Redacted; + CrossRealmTrustPrincipalPassword?: string | redacted.Redacted; ADDomainJoinUser?: string; - ADDomainJoinPassword?: string; + ADDomainJoinPassword?: string | redacted.Redacted; } export const KerberosAttributes = /*@__PURE__*/ S.suspend(() => S.Struct({ Realm: S.optional(S.String), - KdcAdminPassword: S.optional(S.String), - CrossRealmTrustPrincipalPassword: S.optional(S.String), + KdcAdminPassword: S.optional(SensitiveString), + CrossRealmTrustPrincipalPassword: S.optional(SensitiveString), ADDomainJoinUser: S.optional(S.String), - ADDomainJoinPassword: S.optional(S.String), + ADDomainJoinPassword: S.optional(SensitiveString), }), ).annotate({ identifier: "KerberosAttributes", @@ -1524,25 +1510,20 @@ export interface JobFlowExecutionStatusDetail { EndDateTime?: Date; LastStateChangeReason?: string; } -export const JobFlowExecutionStatusDetail = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - State: S.optional(JobFlowExecutionState), - CreationDateTime: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - StartDateTime: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - ReadyDateTime: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - EndDateTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - LastStateChangeReason: S.optional(S.String), - }), - ).annotate({ - identifier: "JobFlowExecutionStatusDetail", - }) as any as S.Schema; +export const JobFlowExecutionStatusDetail = /*@__PURE__*/ S.suspend(() => + S.Struct({ + State: S.optional(JobFlowExecutionState), + CreationDateTime: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + StartDateTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + ReadyDateTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + EndDateTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + LastStateChangeReason: S.optional(S.String), + }), +).annotate({ + identifier: "JobFlowExecutionStatusDetail", +}) as any as S.Schema; export type InstanceGroupState = | "PROVISIONING" | "BOOTSTRAPPING" @@ -1692,12 +1673,11 @@ export interface ScriptBootstrapActionConfig { Path?: string; Args?: string[]; } -export const ScriptBootstrapActionConfig = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Path: S.optional(S.String), Args: S.optional(XmlStringList) }), - ).annotate({ - identifier: "ScriptBootstrapActionConfig", - }) as any as S.Schema; +export const ScriptBootstrapActionConfig = /*@__PURE__*/ S.suspend(() => + S.Struct({ Path: S.optional(S.String), Args: S.optional(XmlStringList) }), +).annotate({ + identifier: "ScriptBootstrapActionConfig", +}) as any as S.Schema; export interface BootstrapActionConfig { Name?: string; ScriptBootstrapAction?: ScriptBootstrapActionConfig; @@ -1812,22 +1792,21 @@ export const DescribeJobFlowsOutput = /*@__PURE__*/ S.suspend(() => export interface DescribeNotebookExecutionInput { NotebookExecutionId?: string; } -export const DescribeNotebookExecutionInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ NotebookExecutionId: S.optional(S.String) }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeNotebookExecutionInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ NotebookExecutionId: S.optional(S.String) }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeNotebookExecutionInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeNotebookExecutionInput", +}) as any as S.Schema; export type ExecutionEngineType = "EMR" | (string & {}); export const ExecutionEngineType = /*@__PURE__*/ S.String; export interface ExecutionEngineConfig { @@ -1863,22 +1842,20 @@ export interface NotebookS3LocationForOutput { Bucket?: string; Key?: string; } -export const NotebookS3LocationForOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Bucket: S.optional(S.String), Key: S.optional(S.String) }), - ).annotate({ - identifier: "NotebookS3LocationForOutput", - }) as any as S.Schema; +export const NotebookS3LocationForOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ Bucket: S.optional(S.String), Key: S.optional(S.String) }), +).annotate({ + identifier: "NotebookS3LocationForOutput", +}) as any as S.Schema; export interface OutputNotebookS3LocationForOutput { Bucket?: string; Key?: string; } -export const OutputNotebookS3LocationForOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Bucket: S.optional(S.String), Key: S.optional(S.String) }), - ).annotate({ - identifier: "OutputNotebookS3LocationForOutput", - }) as any as S.Schema; +export const OutputNotebookS3LocationForOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ Bucket: S.optional(S.String), Key: S.optional(S.String) }), +).annotate({ + identifier: "OutputNotebookS3LocationForOutput", +}) as any as S.Schema; export type OutputNotebookFormat = "HTML" | (string & {}); export const OutputNotebookFormat = /*@__PURE__*/ S.String; export type EnvironmentVariablesMap = { [key: string]: string | undefined }; @@ -1933,31 +1910,29 @@ export interface DescribeNotebookExecutionOutput { ExecutionEngine: ExecutionEngineConfig & { Id: XmlStringMaxLen256 }; }; } -export const DescribeNotebookExecutionOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ NotebookExecution: S.optional(NotebookExecution) }).pipe(ns), - ).annotate({ - identifier: "DescribeNotebookExecutionOutput", - }) as any as S.Schema; +export const DescribeNotebookExecutionOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ NotebookExecution: S.optional(NotebookExecution) }).pipe(ns), +).annotate({ + identifier: "DescribeNotebookExecutionOutput", +}) as any as S.Schema; export interface DescribePersistentAppUIInput { PersistentAppUIId?: string; } -export const DescribePersistentAppUIInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ PersistentAppUIId: S.optional(S.String) }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribePersistentAppUIInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ PersistentAppUIId: S.optional(S.String) }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribePersistentAppUIInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribePersistentAppUIInput", +}) as any as S.Schema; export type PersistentAppUIType = "SHS" | "TEZ" | "YTS" | (string & {}); export const PersistentAppUIType = /*@__PURE__*/ S.String; export type PersistentAppUITypeList = PersistentAppUIType[]; @@ -1992,12 +1967,11 @@ export const PersistentAppUI = /*@__PURE__*/ S.suspend(() => export interface DescribePersistentAppUIOutput { PersistentAppUI?: PersistentAppUI; } -export const DescribePersistentAppUIOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ PersistentAppUI: S.optional(PersistentAppUI) }).pipe(ns), - ).annotate({ - identifier: "DescribePersistentAppUIOutput", - }) as any as S.Schema; +export const DescribePersistentAppUIOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ PersistentAppUI: S.optional(PersistentAppUI) }).pipe(ns), +).annotate({ + identifier: "DescribePersistentAppUIOutput", +}) as any as S.Schema; export interface DescribeReleaseLabelInput { ReleaseLabel?: string; NextToken?: string; @@ -2062,42 +2036,40 @@ export const DescribeReleaseLabelOutput = /*@__PURE__*/ S.suspend(() => export interface DescribeSecurityConfigurationInput { Name?: string; } -export const DescribeSecurityConfigurationInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Name: S.optional(S.String) }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeSecurityConfigurationInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ Name: S.optional(S.String) }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeSecurityConfigurationInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeSecurityConfigurationInput", +}) as any as S.Schema; export interface DescribeSecurityConfigurationOutput { Name?: string; SecurityConfiguration?: string; CreationDateTime?: Date; } -export const DescribeSecurityConfigurationOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Name: S.optional(S.String), - SecurityConfiguration: S.optional(S.String), - CreationDateTime: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - }).pipe(ns), - ).annotate({ - identifier: "DescribeSecurityConfigurationOutput", - }) as any as S.Schema; -export interface DescribeStepInput { - ClusterId?: string; - StepId?: string; +export const DescribeSecurityConfigurationOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.optional(S.String), + SecurityConfiguration: S.optional(S.String), + CreationDateTime: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + }).pipe(ns), +).annotate({ + identifier: "DescribeSecurityConfigurationOutput", +}) as any as S.Schema; +export interface DescribeStepInput { + ClusterId?: string; + StepId?: string; } export const DescribeStepInput = /*@__PURE__*/ S.suspend(() => S.Struct({ @@ -2304,22 +2276,21 @@ export const DescribeStudioOutput = /*@__PURE__*/ S.suspend(() => export interface GetAutoTerminationPolicyInput { ClusterId?: string; } -export const GetAutoTerminationPolicyInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ClusterId: S.optional(S.String) }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetAutoTerminationPolicyInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ ClusterId: S.optional(S.String) }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetAutoTerminationPolicyInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetAutoTerminationPolicyInput", +}) as any as S.Schema; export interface AutoTerminationPolicy { IdleTimeout?: number; } @@ -2331,17 +2302,16 @@ export const AutoTerminationPolicy = /*@__PURE__*/ S.suspend(() => export interface GetAutoTerminationPolicyOutput { AutoTerminationPolicy?: AutoTerminationPolicy; } -export const GetAutoTerminationPolicyOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ AutoTerminationPolicy: S.optional(AutoTerminationPolicy) }).pipe( - ns, - ), - ).annotate({ - identifier: "GetAutoTerminationPolicyOutput", - }) as any as S.Schema; +export const GetAutoTerminationPolicyOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ AutoTerminationPolicy: S.optional(AutoTerminationPolicy) }).pipe( + ns, + ), +).annotate({ + identifier: "GetAutoTerminationPolicyOutput", +}) as any as S.Schema; export interface GetBlockPublicAccessConfigurationInput {} -export const GetBlockPublicAccessConfigurationInput = - /*@__PURE__*/ S.suspend(() => +export const GetBlockPublicAccessConfigurationInput = /*@__PURE__*/ S.suspend( + () => S.Struct({}).pipe( T.all( ns, @@ -2353,9 +2323,9 @@ export const GetBlockPublicAccessConfigurationInput = rules, ), ), - ).annotate({ - identifier: "GetBlockPublicAccessConfigurationInput", - }) as any as S.Schema; +).annotate({ + identifier: "GetBlockPublicAccessConfigurationInput", +}) as any as S.Schema; export interface PortRange { MinRange?: number; MaxRange?: number; @@ -2372,33 +2342,32 @@ export interface BlockPublicAccessConfiguration { Configurations?: Configuration[]; Properties?: { [key: string]: string | undefined }; } -export const BlockPublicAccessConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - BlockPublicSecurityGroupRules: S.optional(S.Boolean), - PermittedPublicSecurityGroupRuleRanges: S.optional(PortRanges), - Classification: S.optional(S.String), - Configurations: S.optional(ConfigurationList), - Properties: S.optional(StringMap), - }), - ).annotate({ - identifier: "BlockPublicAccessConfiguration", - }) as any as S.Schema; +export const BlockPublicAccessConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + BlockPublicSecurityGroupRules: S.optional(S.Boolean), + PermittedPublicSecurityGroupRuleRanges: S.optional(PortRanges), + Classification: S.optional(S.String), + Configurations: S.optional(ConfigurationList), + Properties: S.optional(StringMap), + }), +).annotate({ + identifier: "BlockPublicAccessConfiguration", +}) as any as S.Schema; export interface BlockPublicAccessConfigurationMetadata { CreationDateTime?: Date; CreatedByArn?: string; } -export const BlockPublicAccessConfigurationMetadata = - /*@__PURE__*/ S.suspend(() => +export const BlockPublicAccessConfigurationMetadata = /*@__PURE__*/ S.suspend( + () => S.Struct({ CreationDateTime: S.optional( S.Date.pipe(T.TimestampFormat("epoch-seconds")), ), CreatedByArn: S.optional(S.String), }), - ).annotate({ - identifier: "BlockPublicAccessConfigurationMetadata", - }) as any as S.Schema; +).annotate({ + identifier: "BlockPublicAccessConfigurationMetadata", +}) as any as S.Schema; export interface GetBlockPublicAccessConfigurationOutput { BlockPublicAccessConfiguration: BlockPublicAccessConfiguration & { BlockPublicSecurityGroupRules: boolean; @@ -2409,8 +2378,8 @@ export interface GetBlockPublicAccessConfigurationOutput { CreatedByArn: ArnType; }; } -export const GetBlockPublicAccessConfigurationOutput = - /*@__PURE__*/ S.suspend(() => +export const GetBlockPublicAccessConfigurationOutput = /*@__PURE__*/ S.suspend( + () => S.Struct({ BlockPublicAccessConfiguration: S.optional( BlockPublicAccessConfiguration, @@ -2419,38 +2388,40 @@ export const GetBlockPublicAccessConfigurationOutput = BlockPublicAccessConfigurationMetadata, ), }).pipe(ns), - ).annotate({ - identifier: "GetBlockPublicAccessConfigurationOutput", - }) as any as S.Schema; +).annotate({ + identifier: "GetBlockPublicAccessConfigurationOutput", +}) as any as S.Schema; export interface GetClusterSessionCredentialsInput { ClusterId?: string; ExecutionRoleArn?: string; } -export const GetClusterSessionCredentialsInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ClusterId: S.optional(S.String), - ExecutionRoleArn: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetClusterSessionCredentialsInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ClusterId: S.optional(S.String), + ExecutionRoleArn: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetClusterSessionCredentialsInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetClusterSessionCredentialsInput", +}) as any as S.Schema; export interface UsernamePassword { Username?: string; - Password?: string; + Password?: string | redacted.Redacted; } export const UsernamePassword = /*@__PURE__*/ S.suspend(() => - S.Struct({ Username: S.optional(S.String), Password: S.optional(S.String) }), + S.Struct({ + Username: S.optional(S.String), + Password: S.optional(SensitiveString), + }), ).annotate({ identifier: "UsernamePassword", }) as any as S.Schema; @@ -2462,34 +2433,32 @@ export interface GetClusterSessionCredentialsOutput { Credentials?: Credentials; ExpiresAt?: Date; } -export const GetClusterSessionCredentialsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Credentials: S.optional(Credentials), - ExpiresAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - }).pipe(ns), - ).annotate({ - identifier: "GetClusterSessionCredentialsOutput", - }) as any as S.Schema; +export const GetClusterSessionCredentialsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Credentials: S.optional(Credentials), + ExpiresAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + }).pipe(ns), +).annotate({ + identifier: "GetClusterSessionCredentialsOutput", +}) as any as S.Schema; export interface GetManagedScalingPolicyInput { ClusterId?: string; } -export const GetManagedScalingPolicyInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ClusterId: S.optional(S.String) }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetManagedScalingPolicyInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ ClusterId: S.optional(S.String) }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetManagedScalingPolicyInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetManagedScalingPolicyInput", +}) as any as S.Schema; export type ComputeLimitsUnitType = | "InstanceFleetUnits" | "Instances" @@ -2537,14 +2506,11 @@ export interface GetManagedScalingPolicyOutput { }; }; } -export const GetManagedScalingPolicyOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ManagedScalingPolicy: S.optional(ManagedScalingPolicy) }).pipe( - ns, - ), - ).annotate({ - identifier: "GetManagedScalingPolicyOutput", - }) as any as S.Schema; +export const GetManagedScalingPolicyOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ ManagedScalingPolicy: S.optional(ManagedScalingPolicy) }).pipe(ns), +).annotate({ + identifier: "GetManagedScalingPolicyOutput", +}) as any as S.Schema; export type OnClusterAppUIType = | "SparkHistoryServer" | "YarnTimelineService" @@ -2561,41 +2527,39 @@ export interface GetOnClusterAppUIPresignedURLInput { DryRun?: boolean; ExecutionRoleArn?: string; } -export const GetOnClusterAppUIPresignedURLInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ClusterId: S.optional(S.String), - OnClusterAppUIType: S.optional(OnClusterAppUIType), - ApplicationId: S.optional(S.String), - DryRun: S.optional(S.Boolean), - ExecutionRoleArn: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetOnClusterAppUIPresignedURLInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ClusterId: S.optional(S.String), + OnClusterAppUIType: S.optional(OnClusterAppUIType), + ApplicationId: S.optional(S.String), + DryRun: S.optional(S.Boolean), + ExecutionRoleArn: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetOnClusterAppUIPresignedURLInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetOnClusterAppUIPresignedURLInput", +}) as any as S.Schema; export interface GetOnClusterAppUIPresignedURLOutput { PresignedURLReady?: boolean; PresignedURL?: string; } -export const GetOnClusterAppUIPresignedURLOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - PresignedURLReady: S.optional(S.Boolean), - PresignedURL: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "GetOnClusterAppUIPresignedURLOutput", - }) as any as S.Schema; +export const GetOnClusterAppUIPresignedURLOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + PresignedURLReady: S.optional(S.Boolean), + PresignedURL: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "GetOnClusterAppUIPresignedURLOutput", +}) as any as S.Schema; export interface GetPersistentAppUIPresignedURLInput { PersistentAppUIId?: string; PersistentAppUIType?: PersistentAppUIType; @@ -2603,41 +2567,40 @@ export interface GetPersistentAppUIPresignedURLInput { AuthProxyCall?: boolean; ExecutionRoleArn?: string; } -export const GetPersistentAppUIPresignedURLInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - PersistentAppUIId: S.optional(S.String), - PersistentAppUIType: S.optional(PersistentAppUIType), - ApplicationId: S.optional(S.String), - AuthProxyCall: S.optional(S.Boolean), - ExecutionRoleArn: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetPersistentAppUIPresignedURLInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + PersistentAppUIId: S.optional(S.String), + PersistentAppUIType: S.optional(PersistentAppUIType), + ApplicationId: S.optional(S.String), + AuthProxyCall: S.optional(S.Boolean), + ExecutionRoleArn: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetPersistentAppUIPresignedURLInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetPersistentAppUIPresignedURLInput", +}) as any as S.Schema; export interface GetPersistentAppUIPresignedURLOutput { PresignedURLReady?: boolean; PresignedURL?: string; } -export const GetPersistentAppUIPresignedURLOutput = - /*@__PURE__*/ S.suspend(() => +export const GetPersistentAppUIPresignedURLOutput = /*@__PURE__*/ S.suspend( + () => S.Struct({ PresignedURLReady: S.optional(S.Boolean), PresignedURL: S.optional(S.String), }).pipe(ns), - ).annotate({ - identifier: "GetPersistentAppUIPresignedURLOutput", - }) as any as S.Schema; +).annotate({ + identifier: "GetPersistentAppUIPresignedURLOutput", +}) as any as S.Schema; export interface GetSessionInput { ClusterId?: string; SessionId?: string; @@ -2678,8 +2641,8 @@ export interface SessionCloudWatchLoggingConfiguration { EncryptionKeyArn?: string; LogTypes?: { [key: string]: string[] | undefined }; } -export const SessionCloudWatchLoggingConfiguration = - /*@__PURE__*/ S.suspend(() => +export const SessionCloudWatchLoggingConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ Enabled: S.optional(S.Boolean), LogGroup: S.optional(S.String), @@ -2687,58 +2650,53 @@ export const SessionCloudWatchLoggingConfiguration = EncryptionKeyArn: S.optional(S.String), LogTypes: S.optional(LogTypesMap), }), - ).annotate({ - identifier: "SessionCloudWatchLoggingConfiguration", - }) as any as S.Schema; +).annotate({ + identifier: "SessionCloudWatchLoggingConfiguration", +}) as any as S.Schema; export interface SessionManagedLoggingConfiguration { Enabled?: boolean; EncryptionKeyArn?: string; } -export const SessionManagedLoggingConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Enabled: S.optional(S.Boolean), - EncryptionKeyArn: S.optional(S.String), - }), - ).annotate({ - identifier: "SessionManagedLoggingConfiguration", - }) as any as S.Schema; +export const SessionManagedLoggingConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Enabled: S.optional(S.Boolean), + EncryptionKeyArn: S.optional(S.String), + }), +).annotate({ + identifier: "SessionManagedLoggingConfiguration", +}) as any as S.Schema; export interface SessionS3LoggingConfiguration { Enabled?: boolean; LogUri?: string; EncryptionKeyArn?: string; LogTypes?: { [key: string]: string[] | undefined }; } -export const SessionS3LoggingConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Enabled: S.optional(S.Boolean), - LogUri: S.optional(S.String), - EncryptionKeyArn: S.optional(S.String), - LogTypes: S.optional(LogTypesMap), - }), - ).annotate({ - identifier: "SessionS3LoggingConfiguration", - }) as any as S.Schema; +export const SessionS3LoggingConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Enabled: S.optional(S.Boolean), + LogUri: S.optional(S.String), + EncryptionKeyArn: S.optional(S.String), + LogTypes: S.optional(LogTypesMap), + }), +).annotate({ + identifier: "SessionS3LoggingConfiguration", +}) as any as S.Schema; export interface SessionMonitoringConfiguration { CloudWatchLoggingConfiguration?: SessionCloudWatchLoggingConfiguration; ManagedLoggingConfiguration?: SessionManagedLoggingConfiguration; S3LoggingConfiguration?: SessionS3LoggingConfiguration; } -export const SessionMonitoringConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CloudWatchLoggingConfiguration: S.optional( - SessionCloudWatchLoggingConfiguration, - ), - ManagedLoggingConfiguration: S.optional( - SessionManagedLoggingConfiguration, - ), - S3LoggingConfiguration: S.optional(SessionS3LoggingConfiguration), - }), - ).annotate({ - identifier: "SessionMonitoringConfiguration", - }) as any as S.Schema; +export const SessionMonitoringConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CloudWatchLoggingConfiguration: S.optional( + SessionCloudWatchLoggingConfiguration, + ), + ManagedLoggingConfiguration: S.optional(SessionManagedLoggingConfiguration), + S3LoggingConfiguration: S.optional(SessionS3LoggingConfiguration), + }), +).annotate({ + identifier: "SessionMonitoringConfiguration", +}) as any as S.Schema; export interface CertificateAuthority { CertificateArn?: string; CertificateData?: string; @@ -2856,27 +2814,26 @@ export interface GetStudioSessionMappingInput { IdentityName?: string; IdentityType?: IdentityType; } -export const GetStudioSessionMappingInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - StudioId: S.optional(S.String), - IdentityId: S.optional(S.String), - IdentityName: S.optional(S.String), - IdentityType: S.optional(IdentityType), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetStudioSessionMappingInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + StudioId: S.optional(S.String), + IdentityId: S.optional(S.String), + IdentityName: S.optional(S.String), + IdentityType: S.optional(IdentityType), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetStudioSessionMappingInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetStudioSessionMappingInput", +}) as any as S.Schema; export interface SessionMappingDetail { StudioId?: string; IdentityId?: string; @@ -2904,12 +2861,11 @@ export const SessionMappingDetail = /*@__PURE__*/ S.suspend(() => export interface GetStudioSessionMappingOutput { SessionMapping?: SessionMappingDetail; } -export const GetStudioSessionMappingOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ SessionMapping: S.optional(SessionMappingDetail) }).pipe(ns), - ).annotate({ - identifier: "GetStudioSessionMappingOutput", - }) as any as S.Schema; +export const GetStudioSessionMappingOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ SessionMapping: S.optional(SessionMappingDetail) }).pipe(ns), +).annotate({ + identifier: "GetStudioSessionMappingOutput", +}) as any as S.Schema; export interface ListBootstrapActionsInput { ClusterId?: string; Marker?: string; @@ -3062,15 +3018,14 @@ export interface InstanceFleetStateChangeReason { Code?: InstanceFleetStateChangeReasonCode; Message?: string; } -export const InstanceFleetStateChangeReason = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Code: S.optional(InstanceFleetStateChangeReasonCode), - Message: S.optional(S.String), - }), - ).annotate({ - identifier: "InstanceFleetStateChangeReason", - }) as any as S.Schema; +export const InstanceFleetStateChangeReason = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Code: S.optional(InstanceFleetStateChangeReasonCode), + Message: S.optional(S.String), + }), +).annotate({ + identifier: "InstanceFleetStateChangeReason", +}) as any as S.Schema; export interface InstanceFleetTimeline { CreationDateTime?: Date; ReadyDateTime?: Date; @@ -3140,8 +3095,9 @@ export const InstanceTypeSpecification = /*@__PURE__*/ S.suspend(() => identifier: "InstanceTypeSpecification", }) as any as S.Schema; export type InstanceTypeSpecificationList = InstanceTypeSpecification[]; -export const InstanceTypeSpecificationList = - /*@__PURE__*/ S.Array(InstanceTypeSpecification); +export const InstanceTypeSpecificationList = /*@__PURE__*/ S.Array( + InstanceTypeSpecification, +); export interface InstanceFleet { Id?: string; Name?: string; @@ -3239,15 +3195,14 @@ export interface InstanceGroupStateChangeReason { Code?: InstanceGroupStateChangeReasonCode; Message?: string; } -export const InstanceGroupStateChangeReason = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Code: S.optional(InstanceGroupStateChangeReasonCode), - Message: S.optional(S.String), - }), - ).annotate({ - identifier: "InstanceGroupStateChangeReason", - }) as any as S.Schema; +export const InstanceGroupStateChangeReason = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Code: S.optional(InstanceGroupStateChangeReasonCode), + Message: S.optional(S.String), + }), +).annotate({ + identifier: "InstanceGroupStateChangeReason", +}) as any as S.Schema; export interface InstanceGroupTimeline { CreationDateTime?: Date; ReadyDateTime?: Date; @@ -3323,15 +3278,14 @@ export interface AutoScalingPolicyStateChangeReason { Code?: AutoScalingPolicyStateChangeReasonCode; Message?: string; } -export const AutoScalingPolicyStateChangeReason = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Code: S.optional(AutoScalingPolicyStateChangeReasonCode), - Message: S.optional(S.String), - }), - ).annotate({ - identifier: "AutoScalingPolicyStateChangeReason", - }) as any as S.Schema; +export const AutoScalingPolicyStateChangeReason = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Code: S.optional(AutoScalingPolicyStateChangeReasonCode), + Message: S.optional(S.String), + }), +).annotate({ + identifier: "AutoScalingPolicyStateChangeReason", +}) as any as S.Schema; export interface AutoScalingPolicyStatus { State?: AutoScalingPolicyState; StateChangeReason?: AutoScalingPolicyStateChangeReason; @@ -3349,16 +3303,15 @@ export interface AutoScalingPolicyDescription { Constraints?: ScalingConstraints; Rules?: ScalingRule[]; } -export const AutoScalingPolicyDescription = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Status: S.optional(AutoScalingPolicyStatus), - Constraints: S.optional(ScalingConstraints), - Rules: S.optional(ScalingRuleList), - }), - ).annotate({ - identifier: "AutoScalingPolicyDescription", - }) as any as S.Schema; +export const AutoScalingPolicyDescription = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Status: S.optional(AutoScalingPolicyStatus), + Constraints: S.optional(ScalingConstraints), + Rules: S.optional(ScalingRuleList), + }), +).annotate({ + identifier: "AutoScalingPolicyDescription", +}) as any as S.Schema; export interface InstanceGroup { Id?: string; Name?: string; @@ -3597,29 +3550,28 @@ export interface ListNotebookExecutionsInput { Marker?: string; ExecutionEngineId?: string; } -export const ListNotebookExecutionsInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - EditorId: S.optional(S.String), - Status: S.optional(NotebookExecutionStatus), - From: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - To: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - Marker: S.optional(S.String), - ExecutionEngineId: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListNotebookExecutionsInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + EditorId: S.optional(S.String), + Status: S.optional(NotebookExecutionStatus), + From: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + To: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + Marker: S.optional(S.String), + ExecutionEngineId: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListNotebookExecutionsInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListNotebookExecutionsInput", +}) as any as S.Schema; export interface NotebookExecutionSummary { NotebookExecutionId?: string; EditorId?: string; @@ -3652,15 +3604,14 @@ export interface ListNotebookExecutionsOutput { NotebookExecutions?: NotebookExecutionSummary[]; Marker?: string; } -export const ListNotebookExecutionsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - NotebookExecutions: S.optional(NotebookExecutionSummaryList), - Marker: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "ListNotebookExecutionsOutput", - }) as any as S.Schema; +export const ListNotebookExecutionsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + NotebookExecutions: S.optional(NotebookExecutionSummaryList), + Marker: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "ListNotebookExecutionsOutput", +}) as any as S.Schema; export interface ReleaseLabelFilter { Prefix?: string; Application?: string; @@ -3709,37 +3660,35 @@ export const ListReleaseLabelsOutput = /*@__PURE__*/ S.suspend(() => export interface ListSecurityConfigurationsInput { Marker?: string; } -export const ListSecurityConfigurationsInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Marker: S.optional(S.String) }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListSecurityConfigurationsInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ Marker: S.optional(S.String) }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListSecurityConfigurationsInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListSecurityConfigurationsInput", +}) as any as S.Schema; export interface SecurityConfigurationSummary { Name?: string; CreationDateTime?: Date; } -export const SecurityConfigurationSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Name: S.optional(S.String), - CreationDateTime: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - }), - ).annotate({ - identifier: "SecurityConfigurationSummary", - }) as any as S.Schema; +export const SecurityConfigurationSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.optional(S.String), + CreationDateTime: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + }), +).annotate({ + identifier: "SecurityConfigurationSummary", +}) as any as S.Schema; export type SecurityConfigurationList = SecurityConfigurationSummary[]; export const SecurityConfigurationList = /*@__PURE__*/ S.Array( SecurityConfigurationSummary, @@ -3748,15 +3697,14 @@ export interface ListSecurityConfigurationsOutput { SecurityConfigurations?: SecurityConfigurationSummary[]; Marker?: string; } -export const ListSecurityConfigurationsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SecurityConfigurations: S.optional(SecurityConfigurationList), - Marker: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "ListSecurityConfigurationsOutput", - }) as any as S.Schema; +export const ListSecurityConfigurationsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SecurityConfigurations: S.optional(SecurityConfigurationList), + Marker: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "ListSecurityConfigurationsOutput", +}) as any as S.Schema; export type SessionStateList = SessionState[]; export const SessionStateList = /*@__PURE__*/ S.Array(SessionState); export interface ListSessionsInput { @@ -3921,26 +3869,25 @@ export interface ListStudioSessionMappingsInput { IdentityType?: IdentityType; Marker?: string; } -export const ListStudioSessionMappingsInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - StudioId: S.optional(S.String), - IdentityType: S.optional(IdentityType), - Marker: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListStudioSessionMappingsInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + StudioId: S.optional(S.String), + IdentityType: S.optional(IdentityType), + Marker: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListStudioSessionMappingsInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListStudioSessionMappingsInput", +}) as any as S.Schema; export interface SessionMappingSummary { StudioId?: string; IdentityId?: string; @@ -3969,38 +3916,36 @@ export interface ListStudioSessionMappingsOutput { SessionMappings?: SessionMappingSummary[]; Marker?: string; } -export const ListStudioSessionMappingsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SessionMappings: S.optional(SessionMappingSummaryList), - Marker: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "ListStudioSessionMappingsOutput", - }) as any as S.Schema; +export const ListStudioSessionMappingsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SessionMappings: S.optional(SessionMappingSummaryList), + Marker: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "ListStudioSessionMappingsOutput", +}) as any as S.Schema; export interface ListSupportedInstanceTypesInput { ReleaseLabel?: string; Marker?: string; } -export const ListSupportedInstanceTypesInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ReleaseLabel: S.optional(S.String), - Marker: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListSupportedInstanceTypesInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ReleaseLabel: S.optional(S.String), + Marker: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListSupportedInstanceTypesInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListSupportedInstanceTypesInput", +}) as any as S.Schema; export interface SupportedInstanceType { Type?: string; MemoryGB?: number; @@ -4039,15 +3984,14 @@ export interface ListSupportedInstanceTypesOutput { SupportedInstanceTypes?: SupportedInstanceType[]; Marker?: string; } -export const ListSupportedInstanceTypesOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SupportedInstanceTypes: S.optional(SupportedInstanceTypesList), - Marker: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "ListSupportedInstanceTypesOutput", - }) as any as S.Schema; +export const ListSupportedInstanceTypesOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SupportedInstanceTypes: S.optional(SupportedInstanceTypesList), + Marker: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "ListSupportedInstanceTypesOutput", +}) as any as S.Schema; export interface ModifyClusterInput { ClusterId?: string; StepConcurrencyLevel?: number; @@ -4127,10 +4071,11 @@ export const ModifyInstanceFleetInput = /*@__PURE__*/ S.suspend(() => identifier: "ModifyInstanceFleetInput", }) as any as S.Schema; export interface ModifyInstanceFleetResponse {} -export const ModifyInstanceFleetResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "ModifyInstanceFleetResponse", - }) as any as S.Schema; +export const ModifyInstanceFleetResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "ModifyInstanceFleetResponse", +}) as any as S.Schema; export type EC2InstanceIdsToTerminateList = string[]; export const EC2InstanceIdsToTerminateList = /*@__PURE__*/ S.Array(S.String); export type ReconfigurationType = "OVERWRITE" | "MERGE" | (string & {}); @@ -4156,8 +4101,9 @@ export const InstanceGroupModifyConfig = /*@__PURE__*/ S.suspend(() => identifier: "InstanceGroupModifyConfig", }) as any as S.Schema; export type InstanceGroupModifyConfigList = InstanceGroupModifyConfig[]; -export const InstanceGroupModifyConfigList = - /*@__PURE__*/ S.Array(InstanceGroupModifyConfig); +export const InstanceGroupModifyConfigList = /*@__PURE__*/ S.Array( + InstanceGroupModifyConfig, +); export interface ModifyInstanceGroupsInput { ClusterId?: string; InstanceGroups?: InstanceGroupModifyConfig[]; @@ -4181,10 +4127,11 @@ export const ModifyInstanceGroupsInput = /*@__PURE__*/ S.suspend(() => identifier: "ModifyInstanceGroupsInput", }) as any as S.Schema; export interface ModifyInstanceGroupsResponse {} -export const ModifyInstanceGroupsResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "ModifyInstanceGroupsResponse", - }) as any as S.Schema; +export const ModifyInstanceGroupsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "ModifyInstanceGroupsResponse", +}) as any as S.Schema; export interface PutAutoScalingPolicyInput { ClusterId?: string; InstanceGroupId?: string; @@ -4250,35 +4197,35 @@ export interface PutAutoTerminationPolicyInput { ClusterId?: string; AutoTerminationPolicy?: AutoTerminationPolicy; } -export const PutAutoTerminationPolicyInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ClusterId: S.optional(S.String), - AutoTerminationPolicy: S.optional(AutoTerminationPolicy), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const PutAutoTerminationPolicyInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ClusterId: S.optional(S.String), + AutoTerminationPolicy: S.optional(AutoTerminationPolicy), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "PutAutoTerminationPolicyInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "PutAutoTerminationPolicyInput", +}) as any as S.Schema; export interface PutAutoTerminationPolicyOutput {} -export const PutAutoTerminationPolicyOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "PutAutoTerminationPolicyOutput", - }) as any as S.Schema; +export const PutAutoTerminationPolicyOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "PutAutoTerminationPolicyOutput", +}) as any as S.Schema; export interface PutBlockPublicAccessConfigurationInput { BlockPublicAccessConfiguration?: BlockPublicAccessConfiguration; } -export const PutBlockPublicAccessConfigurationInput = - /*@__PURE__*/ S.suspend(() => +export const PutBlockPublicAccessConfigurationInput = /*@__PURE__*/ S.suspend( + () => S.Struct({ BlockPublicAccessConfiguration: S.optional( BlockPublicAccessConfiguration, @@ -4294,118 +4241,119 @@ export const PutBlockPublicAccessConfigurationInput = rules, ), ), - ).annotate({ - identifier: "PutBlockPublicAccessConfigurationInput", - }) as any as S.Schema; +).annotate({ + identifier: "PutBlockPublicAccessConfigurationInput", +}) as any as S.Schema; export interface PutBlockPublicAccessConfigurationOutput {} -export const PutBlockPublicAccessConfigurationOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "PutBlockPublicAccessConfigurationOutput", - }) as any as S.Schema; +export const PutBlockPublicAccessConfigurationOutput = /*@__PURE__*/ S.suspend( + () => S.Struct({}).pipe(ns), +).annotate({ + identifier: "PutBlockPublicAccessConfigurationOutput", +}) as any as S.Schema; export interface PutManagedScalingPolicyInput { ClusterId?: string; ManagedScalingPolicy?: ManagedScalingPolicy; } -export const PutManagedScalingPolicyInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ClusterId: S.optional(S.String), - ManagedScalingPolicy: S.optional(ManagedScalingPolicy), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const PutManagedScalingPolicyInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ClusterId: S.optional(S.String), + ManagedScalingPolicy: S.optional(ManagedScalingPolicy), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "PutManagedScalingPolicyInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "PutManagedScalingPolicyInput", +}) as any as S.Schema; export interface PutManagedScalingPolicyOutput {} -export const PutManagedScalingPolicyOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "PutManagedScalingPolicyOutput", - }) as any as S.Schema; +export const PutManagedScalingPolicyOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "PutManagedScalingPolicyOutput", +}) as any as S.Schema; export interface RemoveAutoScalingPolicyInput { ClusterId?: string; InstanceGroupId?: string; } -export const RemoveAutoScalingPolicyInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ClusterId: S.optional(S.String), - InstanceGroupId: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const RemoveAutoScalingPolicyInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ClusterId: S.optional(S.String), + InstanceGroupId: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "RemoveAutoScalingPolicyInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "RemoveAutoScalingPolicyInput", +}) as any as S.Schema; export interface RemoveAutoScalingPolicyOutput {} -export const RemoveAutoScalingPolicyOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "RemoveAutoScalingPolicyOutput", - }) as any as S.Schema; +export const RemoveAutoScalingPolicyOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "RemoveAutoScalingPolicyOutput", +}) as any as S.Schema; export interface RemoveAutoTerminationPolicyInput { ClusterId?: string; } -export const RemoveAutoTerminationPolicyInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ClusterId: S.optional(S.String) }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const RemoveAutoTerminationPolicyInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ ClusterId: S.optional(S.String) }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "RemoveAutoTerminationPolicyInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "RemoveAutoTerminationPolicyInput", +}) as any as S.Schema; export interface RemoveAutoTerminationPolicyOutput {} -export const RemoveAutoTerminationPolicyOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "RemoveAutoTerminationPolicyOutput", - }) as any as S.Schema; +export const RemoveAutoTerminationPolicyOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "RemoveAutoTerminationPolicyOutput", +}) as any as S.Schema; export interface RemoveManagedScalingPolicyInput { ClusterId?: string; } -export const RemoveManagedScalingPolicyInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ClusterId: S.optional(S.String) }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const RemoveManagedScalingPolicyInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ ClusterId: S.optional(S.String) }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "RemoveManagedScalingPolicyInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "RemoveManagedScalingPolicyInput", +}) as any as S.Schema; export interface RemoveManagedScalingPolicyOutput {} -export const RemoveManagedScalingPolicyOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "RemoveManagedScalingPolicyOutput", - }) as any as S.Schema; +export const RemoveManagedScalingPolicyOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "RemoveManagedScalingPolicyOutput", +}) as any as S.Schema; export interface RemoveTagsInput { ResourceId?: string; TagKeys?: string[]; @@ -4606,86 +4554,86 @@ export interface SetKeepJobFlowAliveWhenNoStepsInput { JobFlowIds?: string[]; KeepJobFlowAliveWhenNoSteps?: boolean; } -export const SetKeepJobFlowAliveWhenNoStepsInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - JobFlowIds: S.optional(XmlStringList), - KeepJobFlowAliveWhenNoSteps: S.optional(S.Boolean), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const SetKeepJobFlowAliveWhenNoStepsInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + JobFlowIds: S.optional(XmlStringList), + KeepJobFlowAliveWhenNoSteps: S.optional(S.Boolean), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "SetKeepJobFlowAliveWhenNoStepsInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "SetKeepJobFlowAliveWhenNoStepsInput", +}) as any as S.Schema; export interface SetKeepJobFlowAliveWhenNoStepsResponse {} -export const SetKeepJobFlowAliveWhenNoStepsResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "SetKeepJobFlowAliveWhenNoStepsResponse", - }) as any as S.Schema; +export const SetKeepJobFlowAliveWhenNoStepsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}).pipe(ns), +).annotate({ + identifier: "SetKeepJobFlowAliveWhenNoStepsResponse", +}) as any as S.Schema; export interface SetTerminationProtectionInput { JobFlowIds?: string[]; TerminationProtected?: boolean; } -export const SetTerminationProtectionInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - JobFlowIds: S.optional(XmlStringList), - TerminationProtected: S.optional(S.Boolean), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const SetTerminationProtectionInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + JobFlowIds: S.optional(XmlStringList), + TerminationProtected: S.optional(S.Boolean), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "SetTerminationProtectionInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "SetTerminationProtectionInput", +}) as any as S.Schema; export interface SetTerminationProtectionResponse {} -export const SetTerminationProtectionResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "SetTerminationProtectionResponse", - }) as any as S.Schema; +export const SetTerminationProtectionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "SetTerminationProtectionResponse", +}) as any as S.Schema; export interface SetUnhealthyNodeReplacementInput { JobFlowIds?: string[]; UnhealthyNodeReplacement?: boolean; } -export const SetUnhealthyNodeReplacementInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - JobFlowIds: S.optional(XmlStringList), - UnhealthyNodeReplacement: S.optional(S.Boolean), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const SetUnhealthyNodeReplacementInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + JobFlowIds: S.optional(XmlStringList), + UnhealthyNodeReplacement: S.optional(S.Boolean), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "SetUnhealthyNodeReplacementInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "SetUnhealthyNodeReplacementInput", +}) as any as S.Schema; export interface SetUnhealthyNodeReplacementResponse {} -export const SetUnhealthyNodeReplacementResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "SetUnhealthyNodeReplacementResponse", - }) as any as S.Schema; +export const SetUnhealthyNodeReplacementResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "SetUnhealthyNodeReplacementResponse", +}) as any as S.Schema; export interface SetVisibleToAllUsersInput { JobFlowIds?: string[]; VisibleToAllUsers?: boolean; @@ -4709,30 +4657,29 @@ export const SetVisibleToAllUsersInput = /*@__PURE__*/ S.suspend(() => identifier: "SetVisibleToAllUsersInput", }) as any as S.Schema; export interface SetVisibleToAllUsersResponse {} -export const SetVisibleToAllUsersResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "SetVisibleToAllUsersResponse", - }) as any as S.Schema; +export const SetVisibleToAllUsersResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "SetVisibleToAllUsersResponse", +}) as any as S.Schema; export interface NotebookS3LocationFromInput { Bucket?: string; Key?: string; } -export const NotebookS3LocationFromInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Bucket: S.optional(S.String), Key: S.optional(S.String) }), - ).annotate({ - identifier: "NotebookS3LocationFromInput", - }) as any as S.Schema; +export const NotebookS3LocationFromInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ Bucket: S.optional(S.String), Key: S.optional(S.String) }), +).annotate({ + identifier: "NotebookS3LocationFromInput", +}) as any as S.Schema; export interface OutputNotebookS3LocationFromInput { Bucket?: string; Key?: string; } -export const OutputNotebookS3LocationFromInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Bucket: S.optional(S.String), Key: S.optional(S.String) }), - ).annotate({ - identifier: "OutputNotebookS3LocationFromInput", - }) as any as S.Schema; +export const OutputNotebookS3LocationFromInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ Bucket: S.optional(S.String), Key: S.optional(S.String) }), +).annotate({ + identifier: "OutputNotebookS3LocationFromInput", +}) as any as S.Schema; export interface StartNotebookExecutionInput { EditorId?: string; RelativePath?: string; @@ -4747,44 +4694,42 @@ export interface StartNotebookExecutionInput { OutputNotebookFormat?: OutputNotebookFormat; EnvironmentVariables?: { [key: string]: string | undefined }; } -export const StartNotebookExecutionInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - EditorId: S.optional(S.String), - RelativePath: S.optional(S.String), - NotebookExecutionName: S.optional(S.String), - NotebookParams: S.optional(S.String), - ExecutionEngine: S.optional(ExecutionEngineConfig), - ServiceRole: S.optional(S.String), - NotebookInstanceSecurityGroupId: S.optional(S.String), - Tags: S.optional(TagList), - NotebookS3Location: S.optional(NotebookS3LocationFromInput), - OutputNotebookS3Location: S.optional(OutputNotebookS3LocationFromInput), - OutputNotebookFormat: S.optional(OutputNotebookFormat), - EnvironmentVariables: S.optional(EnvironmentVariablesMap), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const StartNotebookExecutionInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + EditorId: S.optional(S.String), + RelativePath: S.optional(S.String), + NotebookExecutionName: S.optional(S.String), + NotebookParams: S.optional(S.String), + ExecutionEngine: S.optional(ExecutionEngineConfig), + ServiceRole: S.optional(S.String), + NotebookInstanceSecurityGroupId: S.optional(S.String), + Tags: S.optional(TagList), + NotebookS3Location: S.optional(NotebookS3LocationFromInput), + OutputNotebookS3Location: S.optional(OutputNotebookS3LocationFromInput), + OutputNotebookFormat: S.optional(OutputNotebookFormat), + EnvironmentVariables: S.optional(EnvironmentVariablesMap), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "StartNotebookExecutionInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "StartNotebookExecutionInput", +}) as any as S.Schema; export interface StartNotebookExecutionOutput { NotebookExecutionId?: string; } -export const StartNotebookExecutionOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ NotebookExecutionId: S.optional(S.String) }).pipe(ns), - ).annotate({ - identifier: "StartNotebookExecutionOutput", - }) as any as S.Schema; +export const StartNotebookExecutionOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ NotebookExecutionId: S.optional(S.String) }).pipe(ns), +).annotate({ + identifier: "StartNotebookExecutionOutput", +}) as any as S.Schema; export interface StartSessionInput { Name?: string; ClusterId?: string; @@ -4856,10 +4801,11 @@ export const StopNotebookExecutionInput = /*@__PURE__*/ S.suspend(() => identifier: "StopNotebookExecutionInput", }) as any as S.Schema; export interface StopNotebookExecutionResponse {} -export const StopNotebookExecutionResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "StopNotebookExecutionResponse", - }) as any as S.Schema; +export const StopNotebookExecutionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "StopNotebookExecutionResponse", +}) as any as S.Schema; export interface TerminateJobFlowsInput { JobFlowIds?: string[]; } @@ -4963,33 +4909,33 @@ export interface UpdateStudioSessionMappingInput { IdentityType?: IdentityType; SessionPolicyArn?: string; } -export const UpdateStudioSessionMappingInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - StudioId: S.optional(S.String), - IdentityId: S.optional(S.String), - IdentityName: S.optional(S.String), - IdentityType: S.optional(IdentityType), - SessionPolicyArn: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateStudioSessionMappingInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + StudioId: S.optional(S.String), + IdentityId: S.optional(S.String), + IdentityName: S.optional(S.String), + IdentityType: S.optional(IdentityType), + SessionPolicyArn: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateStudioSessionMappingInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateStudioSessionMappingInput", +}) as any as S.Schema; export interface UpdateStudioSessionMappingResponse {} -export const UpdateStudioSessionMappingResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "UpdateStudioSessionMappingResponse", - }) as any as S.Schema; +export const UpdateStudioSessionMappingResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "UpdateStudioSessionMappingResponse", +}) as any as S.Schema; //# Errors export class InternalServerException extends S.TaggedErrorClass()( @@ -5003,8 +4949,69 @@ export class InvalidRequestException extends S.TaggedErrorClass()( "InternalServerError", {}, - T.AwsQueryError({ code: "InternalFailure", httpResponseCode: 500 }), + T.all( + T.AwsQueryError({ code: "InternalFailure", httpResponseCode: 500 }), + T.HttpError(500), + ), ).pipe(C.withServerError) {} +export class SecurityConfigurationAlreadyExists extends S.TaggedErrorClass()( + "SecurityConfigurationAlreadyExists", + { ErrorCode: S.optional(S.String), Message: S.optional(S.String) }, + T.SyntheticError({ + from: "InvalidRequestException", + message: { matches: "^SecurityConfiguration with name .* already exists" }, + }), +).pipe(C.withAlreadyExistsError, C.withConflictError) {} +export class StudioServiceRoleNotAssumable extends S.TaggedErrorClass()( + "StudioServiceRoleNotAssumable", + { ErrorCode: S.optional(S.String), Message: S.optional(S.String) }, + T.SyntheticError({ + from: "InvalidRequestException", + message: { includes: "does not have permissions to assume role" }, + }), +).pipe(C.withRetryableError) {} +export class StudioServiceRoleMissingS3Access extends S.TaggedErrorClass()( + "StudioServiceRoleMissingS3Access", + { ErrorCode: S.optional(S.String), Message: S.optional(S.String) }, + T.SyntheticError({ + from: "InvalidRequestException", + message: { + includes: "does not have permission to access the 'S3 Location'", + }, + }), +).pipe(C.withRetryableError) {} +export class SecurityConfigurationNotFound extends S.TaggedErrorClass()( + "SecurityConfigurationNotFound", + { ErrorCode: S.optional(S.String), Message: S.optional(S.String) }, + T.SyntheticError({ + from: "InvalidRequestException", + message: { matches: "^Security configuration with name .* does not exist" }, + }), +).pipe(C.withNotFoundError) {} +export class StudioNotFound extends S.TaggedErrorClass()( + "StudioNotFound", + { ErrorCode: S.optional(S.String), Message: S.optional(S.String) }, + T.SyntheticError({ + from: "InvalidRequestException", + message: { includes: "Studio does not exist" }, + }), +).pipe(C.withNotFoundError) {} +export class ClusterNotFound extends S.TaggedErrorClass()( + "ClusterNotFound", + { ErrorCode: S.optional(S.String), Message: S.optional(S.String) }, + T.SyntheticError({ + from: "InvalidRequestException", + message: { matches: "^Cluster id .* is not valid" }, + }), +).pipe(C.withNotFoundError) {} +export class JobFlowNotFound extends S.TaggedErrorClass()( + "JobFlowNotFound", + {}, + T.SyntheticError({ + from: "ValidationException", + message: { includes: "Specified job flow ID not valid" }, + }), +).pipe(C.withNotFoundError) {} //# Operations export type AddInstanceFleetError = @@ -5144,6 +5151,7 @@ export const createPersistentAppUI: API.OperationMethod< export type CreateSecurityConfigurationError = | InternalServerException | InvalidRequestException + | SecurityConfigurationAlreadyExists | CommonErrors; /** * Creates a security configuration, which is stored in the service and can be specified @@ -5157,12 +5165,18 @@ export const createSecurityConfiguration: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateSecurityConfigurationInput, output: CreateSecurityConfigurationOutput, - errors: [InternalServerException, InvalidRequestException], + errors: [ + InternalServerException, + InvalidRequestException, + SecurityConfigurationAlreadyExists, + ], operationName: "CreateSecurityConfiguration", })); export type CreateStudioError = | InternalServerException | InvalidRequestException + | StudioServiceRoleNotAssumable + | StudioServiceRoleMissingS3Access | CommonErrors; /** * Creates a new Amazon EMR Studio. @@ -5175,7 +5189,12 @@ export const createStudio: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateStudioInput, output: CreateStudioOutput, - errors: [InternalServerException, InvalidRequestException], + errors: [ + InternalServerException, + InvalidRequestException, + StudioServiceRoleNotAssumable, + StudioServiceRoleMissingS3Access, + ], operationName: "CreateStudio", })); export type CreateStudioSessionMappingError = @@ -5203,6 +5222,7 @@ export const createStudioSessionMapping: API.OperationMethod< export type DeleteSecurityConfigurationError = | InternalServerException | InvalidRequestException + | SecurityConfigurationNotFound | CommonErrors; /** * Deletes a security configuration. @@ -5215,12 +5235,17 @@ export const deleteSecurityConfiguration: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteSecurityConfigurationInput, output: DeleteSecurityConfigurationOutput, - errors: [InternalServerException, InvalidRequestException], + errors: [ + InternalServerException, + InvalidRequestException, + SecurityConfigurationNotFound, + ], operationName: "DeleteSecurityConfiguration", })); export type DeleteStudioError = | InternalServerException | InvalidRequestException + | StudioNotFound | CommonErrors; /** * Removes an Amazon EMR Studio from the Studio metadata store. @@ -5233,7 +5258,7 @@ export const deleteStudio: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteStudioInput, output: DeleteStudioResponse, - errors: [InternalServerException, InvalidRequestException], + errors: [InternalServerException, InvalidRequestException, StudioNotFound], operationName: "DeleteStudio", })); export type DeleteStudioSessionMappingError = @@ -5257,6 +5282,7 @@ export const deleteStudioSessionMapping: API.OperationMethod< export type DescribeClusterError = | InternalServerException | InvalidRequestException + | ClusterNotFound | CommonErrors; /** * Provides cluster-level details including status, hardware and software configuration, @@ -5270,7 +5296,7 @@ export const describeCluster: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeClusterInput, output: DescribeClusterOutput, - errors: [InternalServerException, InvalidRequestException], + errors: [InternalServerException, InvalidRequestException, ClusterNotFound], operationName: "DescribeCluster", })); export type DescribeJobFlowsError = InternalServerError | CommonErrors; @@ -5366,6 +5392,7 @@ export const describeReleaseLabel: API.OperationMethod< export type DescribeSecurityConfigurationError = | InternalServerException | InvalidRequestException + | SecurityConfigurationNotFound | CommonErrors; /** * Provides the details of a security configuration by returning the configuration @@ -5379,7 +5406,11 @@ export const describeSecurityConfiguration: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeSecurityConfigurationInput, output: DescribeSecurityConfigurationOutput, - errors: [InternalServerException, InvalidRequestException], + errors: [ + InternalServerException, + InvalidRequestException, + SecurityConfigurationNotFound, + ], operationName: "DescribeSecurityConfiguration", })); export type DescribeStepError = @@ -5403,6 +5434,7 @@ export const describeStep: API.OperationMethod< export type DescribeStudioError = | InternalServerException | InvalidRequestException + | StudioNotFound | CommonErrors; /** * Returns details for the specified Amazon EMR Studio including ID, Name, VPC, @@ -5416,7 +5448,7 @@ export const describeStudio: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeStudioInput, output: DescribeStudioOutput, - errors: [InternalServerException, InvalidRequestException], + errors: [InternalServerException, InvalidRequestException, StudioNotFound], operationName: "DescribeStudio", })); export type GetAutoTerminationPolicyError = CommonErrors; @@ -6362,7 +6394,10 @@ export const setKeepJobFlowAliveWhenNoSteps: API.OperationMethod< errors: [InternalServerError], operationName: "SetKeepJobFlowAliveWhenNoSteps", })); -export type SetTerminationProtectionError = InternalServerError | CommonErrors; +export type SetTerminationProtectionError = + | InternalServerError + | JobFlowNotFound + | CommonErrors; /** * SetTerminationProtection locks a cluster (job flow) so the Amazon EC2 instances * in the cluster cannot be terminated by user intervention, an API call, or in the event of a @@ -6392,7 +6427,7 @@ export const setTerminationProtection: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: SetTerminationProtectionInput, output: SetTerminationProtectionResponse, - errors: [InternalServerError], + errors: [InternalServerError, JobFlowNotFound], operationName: "SetTerminationProtection", })); export type SetUnhealthyNodeReplacementError = @@ -6507,7 +6542,10 @@ export const stopNotebookExecution: API.OperationMethod< errors: [InternalServerError, InvalidRequestException], operationName: "StopNotebookExecution", })); -export type TerminateJobFlowsError = InternalServerError | CommonErrors; +export type TerminateJobFlowsError = + | InternalServerError + | JobFlowNotFound + | CommonErrors; /** * TerminateJobFlows shuts a list of clusters (job flows) down. When a job flow is shut * down, any step not yet completed is canceled and the Amazon EC2 instances on which @@ -6526,7 +6564,7 @@ export const terminateJobFlows: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: TerminateJobFlowsInput, output: TerminateJobFlowsResponse, - errors: [InternalServerError], + errors: [InternalServerError, JobFlowNotFound], operationName: "TerminateJobFlows", })); export type TerminateSessionError = @@ -6550,6 +6588,7 @@ export const terminateSession: API.OperationMethod< export type UpdateStudioError = | InternalServerException | InvalidRequestException + | StudioNotFound | CommonErrors; /** * Updates an Amazon EMR Studio configuration, including attributes such as name, @@ -6563,7 +6602,7 @@ export const updateStudio: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: UpdateStudioInput, output: UpdateStudioResponse, - errors: [InternalServerException, InvalidRequestException], + errors: [InternalServerException, InvalidRequestException, StudioNotFound], operationName: "UpdateStudio", })); export type UpdateStudioSessionMappingError = diff --git a/packages/aws/src/services/entityresolution.ts b/packages/aws/src/services/entityresolution.ts index 18cf03b9c5..ce0d185a19 100644 --- a/packages/aws/src/services/entityresolution.ts +++ b/packages/aws/src/services/entityresolution.ts @@ -226,16 +226,16 @@ export type DisconnectedUniqueIdsList = string[]; export const DisconnectedUniqueIdsList = /*@__PURE__*/ S.Array(S.String); export interface BatchDeleteUniqueIdOutput { status: DeleteUniqueIdStatus; - errors: DeleteUniqueIdError[]; - deleted: DeletedUniqueId[]; - disconnectedUniqueIds: string[]; + errors?: DeleteUniqueIdError[]; + deleted?: DeletedUniqueId[]; + disconnectedUniqueIds?: string[]; } export const BatchDeleteUniqueIdOutput = /*@__PURE__*/ S.suspend(() => S.Struct({ status: DeleteUniqueIdStatus, - errors: DeleteUniqueIdErrorsList, - deleted: DeletedUniqueIdList, - disconnectedUniqueIds: DisconnectedUniqueIdsList, + errors: S.optional(DeleteUniqueIdErrorsList), + deleted: S.optional(DeletedUniqueIdList), + disconnectedUniqueIds: S.optional(DisconnectedUniqueIdsList), }), ).annotate({ identifier: "BatchDeleteUniqueIdOutput", @@ -247,33 +247,33 @@ export interface IdMappingWorkflowInputSource { schemaName?: string; type?: IdNamespaceType; } -export const IdMappingWorkflowInputSource = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - inputSourceARN: S.String, - schemaName: S.optional(S.String), - type: S.optional(IdNamespaceType), - }), - ).annotate({ - identifier: "IdMappingWorkflowInputSource", - }) as any as S.Schema; +export const IdMappingWorkflowInputSource = /*@__PURE__*/ S.suspend(() => + S.Struct({ + inputSourceARN: S.String, + schemaName: S.optional(S.String), + type: S.optional(IdNamespaceType), + }), +).annotate({ + identifier: "IdMappingWorkflowInputSource", +}) as any as S.Schema; export type IdMappingWorkflowInputSourceConfig = IdMappingWorkflowInputSource[]; -export const IdMappingWorkflowInputSourceConfig = - /*@__PURE__*/ S.Array(IdMappingWorkflowInputSource); +export const IdMappingWorkflowInputSourceConfig = /*@__PURE__*/ S.Array( + IdMappingWorkflowInputSource, +); export interface IdMappingWorkflowOutputSource { KMSArn?: string; outputS3Path: string; } -export const IdMappingWorkflowOutputSource = - /*@__PURE__*/ S.suspend(() => - S.Struct({ KMSArn: S.optional(S.String), outputS3Path: S.String }), - ).annotate({ - identifier: "IdMappingWorkflowOutputSource", - }) as any as S.Schema; +export const IdMappingWorkflowOutputSource = /*@__PURE__*/ S.suspend(() => + S.Struct({ KMSArn: S.optional(S.String), outputS3Path: S.String }), +).annotate({ + identifier: "IdMappingWorkflowOutputSource", +}) as any as S.Schema; export type IdMappingWorkflowOutputSourceConfig = IdMappingWorkflowOutputSource[]; -export const IdMappingWorkflowOutputSourceConfig = - /*@__PURE__*/ S.Array(IdMappingWorkflowOutputSource); +export const IdMappingWorkflowOutputSourceConfig = /*@__PURE__*/ S.Array( + IdMappingWorkflowOutputSource, +); export type IdMappingType = "PROVIDER" | "RULE_BASED" | (string & {}); export const IdMappingType = /*@__PURE__*/ S.String; export type MatchingKeys = string[]; @@ -308,26 +308,24 @@ export interface IdMappingRuleBasedProperties { attributeMatchingModel: AttributeMatchingModel; recordMatchingModel: RecordMatchingModel; } -export const IdMappingRuleBasedProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - rules: S.optional(RuleList), - ruleDefinitionType: IdMappingWorkflowRuleDefinitionType, - attributeMatchingModel: AttributeMatchingModel, - recordMatchingModel: RecordMatchingModel, - }), - ).annotate({ - identifier: "IdMappingRuleBasedProperties", - }) as any as S.Schema; +export const IdMappingRuleBasedProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + rules: S.optional(RuleList), + ruleDefinitionType: IdMappingWorkflowRuleDefinitionType, + attributeMatchingModel: AttributeMatchingModel, + recordMatchingModel: RecordMatchingModel, + }), +).annotate({ + identifier: "IdMappingRuleBasedProperties", +}) as any as S.Schema; export interface IntermediateSourceConfiguration { intermediateS3Path: string; } -export const IntermediateSourceConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ intermediateS3Path: S.String }), - ).annotate({ - identifier: "IntermediateSourceConfiguration", - }) as any as S.Schema; +export const IntermediateSourceConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ intermediateS3Path: S.String }), +).annotate({ + identifier: "IntermediateSourceConfiguration", +}) as any as S.Schema; export interface ProviderProperties { providerServiceArn: string; providerConfiguration?: any; @@ -363,12 +361,11 @@ export const IdMappingIncrementalRunType = /*@__PURE__*/ S.String; export interface IdMappingIncrementalRunConfig { incrementalRunType?: IdMappingIncrementalRunType; } -export const IdMappingIncrementalRunConfig = - /*@__PURE__*/ S.suspend(() => - S.Struct({ incrementalRunType: S.optional(IdMappingIncrementalRunType) }), - ).annotate({ - identifier: "IdMappingIncrementalRunConfig", - }) as any as S.Schema; +export const IdMappingIncrementalRunConfig = /*@__PURE__*/ S.suspend(() => + S.Struct({ incrementalRunType: S.optional(IdMappingIncrementalRunType) }), +).annotate({ + identifier: "IdMappingIncrementalRunConfig", +}) as any as S.Schema; export type TagMap = { [key: string]: string | undefined }; export const TagMap = /*@__PURE__*/ S.Record( S.String, @@ -384,30 +381,29 @@ export interface CreateIdMappingWorkflowInput { roleArn?: string; tags?: { [key: string]: string | undefined }; } -export const CreateIdMappingWorkflowInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - workflowName: S.String, - description: S.optional(S.String), - inputSourceConfig: IdMappingWorkflowInputSourceConfig, - outputSourceConfig: S.optional(IdMappingWorkflowOutputSourceConfig), - idMappingTechniques: IdMappingTechniques, - incrementalRunConfig: S.optional(IdMappingIncrementalRunConfig), - roleArn: S.optional(S.String), - tags: S.optional(TagMap), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/idmappingworkflows" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateIdMappingWorkflowInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + workflowName: S.String, + description: S.optional(S.String), + inputSourceConfig: IdMappingWorkflowInputSourceConfig, + outputSourceConfig: S.optional(IdMappingWorkflowOutputSourceConfig), + idMappingTechniques: IdMappingTechniques, + incrementalRunConfig: S.optional(IdMappingIncrementalRunConfig), + roleArn: S.optional(S.String), + tags: S.optional(TagMap), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/idmappingworkflows" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateIdMappingWorkflowInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateIdMappingWorkflowInput", +}) as any as S.Schema; export interface CreateIdMappingWorkflowOutput { workflowName: string; workflowArn: string; @@ -418,21 +414,20 @@ export interface CreateIdMappingWorkflowOutput { incrementalRunConfig?: IdMappingIncrementalRunConfig; roleArn?: string; } -export const CreateIdMappingWorkflowOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - workflowName: S.String, - workflowArn: S.String, - description: S.optional(S.String), - inputSourceConfig: IdMappingWorkflowInputSourceConfig, - outputSourceConfig: S.optional(IdMappingWorkflowOutputSourceConfig), - idMappingTechniques: IdMappingTechniques, - incrementalRunConfig: S.optional(IdMappingIncrementalRunConfig), - roleArn: S.optional(S.String), - }), - ).annotate({ - identifier: "CreateIdMappingWorkflowOutput", - }) as any as S.Schema; +export const CreateIdMappingWorkflowOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + workflowName: S.String, + workflowArn: S.String, + description: S.optional(S.String), + inputSourceConfig: IdMappingWorkflowInputSourceConfig, + outputSourceConfig: S.optional(IdMappingWorkflowOutputSourceConfig), + idMappingTechniques: IdMappingTechniques, + incrementalRunConfig: S.optional(IdMappingIncrementalRunConfig), + roleArn: S.optional(S.String), + }), +).annotate({ + identifier: "CreateIdMappingWorkflowOutput", +}) as any as S.Schema; export interface IdNamespaceInputSource { inputSourceARN: string; schemaName?: string; @@ -448,8 +443,9 @@ export const IdNamespaceInputSourceConfig = /*@__PURE__*/ S.Array( ); export type IdMappingWorkflowRuleDefinitionTypeList = IdMappingWorkflowRuleDefinitionType[]; -export const IdMappingWorkflowRuleDefinitionTypeList = - /*@__PURE__*/ S.Array(IdMappingWorkflowRuleDefinitionType); +export const IdMappingWorkflowRuleDefinitionTypeList = /*@__PURE__*/ S.Array( + IdMappingWorkflowRuleDefinitionType, +); export type RecordMatchingModelList = RecordMatchingModel[]; export const RecordMatchingModelList = /*@__PURE__*/ S.Array(RecordMatchingModel); @@ -459,49 +455,48 @@ export interface NamespaceRuleBasedProperties { attributeMatchingModel?: AttributeMatchingModel; recordMatchingModels?: RecordMatchingModel[]; } -export const NamespaceRuleBasedProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - rules: S.optional(RuleList), - ruleDefinitionTypes: S.optional(IdMappingWorkflowRuleDefinitionTypeList), - attributeMatchingModel: S.optional(AttributeMatchingModel), - recordMatchingModels: S.optional(RecordMatchingModelList), - }), - ).annotate({ - identifier: "NamespaceRuleBasedProperties", - }) as any as S.Schema; +export const NamespaceRuleBasedProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + rules: S.optional(RuleList), + ruleDefinitionTypes: S.optional(IdMappingWorkflowRuleDefinitionTypeList), + attributeMatchingModel: S.optional(AttributeMatchingModel), + recordMatchingModels: S.optional(RecordMatchingModelList), + }), +).annotate({ + identifier: "NamespaceRuleBasedProperties", +}) as any as S.Schema; export interface NamespaceProviderProperties { providerServiceArn: string; providerConfiguration?: any; } -export const NamespaceProviderProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - providerServiceArn: S.String, - providerConfiguration: S.optional(S.Any), - }), - ).annotate({ - identifier: "NamespaceProviderProperties", - }) as any as S.Schema; +export const NamespaceProviderProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + providerServiceArn: S.String, + providerConfiguration: S.optional(S.Any), + }), +).annotate({ + identifier: "NamespaceProviderProperties", +}) as any as S.Schema; export interface IdNamespaceIdMappingWorkflowProperties { idMappingType: IdMappingType; ruleBasedProperties?: NamespaceRuleBasedProperties; providerProperties?: NamespaceProviderProperties; } -export const IdNamespaceIdMappingWorkflowProperties = - /*@__PURE__*/ S.suspend(() => +export const IdNamespaceIdMappingWorkflowProperties = /*@__PURE__*/ S.suspend( + () => S.Struct({ idMappingType: IdMappingType, ruleBasedProperties: S.optional(NamespaceRuleBasedProperties), providerProperties: S.optional(NamespaceProviderProperties), }), - ).annotate({ - identifier: "IdNamespaceIdMappingWorkflowProperties", - }) as any as S.Schema; +).annotate({ + identifier: "IdNamespaceIdMappingWorkflowProperties", +}) as any as S.Schema; export type IdNamespaceIdMappingWorkflowPropertiesList = IdNamespaceIdMappingWorkflowProperties[]; -export const IdNamespaceIdMappingWorkflowPropertiesList = - /*@__PURE__*/ S.Array(IdNamespaceIdMappingWorkflowProperties); +export const IdNamespaceIdMappingWorkflowPropertiesList = /*@__PURE__*/ S.Array( + IdNamespaceIdMappingWorkflowProperties, +); export interface CreateIdNamespaceInput { idNamespaceName: string; description?: string; @@ -594,12 +589,11 @@ export interface CustomerProfilesIntegrationConfig { domainArn: string; objectTypeArn: string; } -export const CustomerProfilesIntegrationConfig = - /*@__PURE__*/ S.suspend(() => - S.Struct({ domainArn: S.String, objectTypeArn: S.String }), - ).annotate({ - identifier: "CustomerProfilesIntegrationConfig", - }) as any as S.Schema; +export const CustomerProfilesIntegrationConfig = /*@__PURE__*/ S.suspend(() => + S.Struct({ domainArn: S.String, objectTypeArn: S.String }), +).annotate({ + identifier: "CustomerProfilesIntegrationConfig", +}) as any as S.Schema; export interface OutputSource { KMSArn?: string; outputS3Path?: string; @@ -705,30 +699,29 @@ export interface CreateMatchingWorkflowInput { roleArn: string; tags?: { [key: string]: string | undefined }; } -export const CreateMatchingWorkflowInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - workflowName: S.String, - description: S.optional(S.String), - inputSourceConfig: InputSourceConfig, - outputSourceConfig: OutputSourceConfig, - resolutionTechniques: ResolutionTechniques, - incrementalRunConfig: S.optional(IncrementalRunConfig), - roleArn: S.String, - tags: S.optional(TagMap), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/matchingworkflows" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateMatchingWorkflowInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + workflowName: S.String, + description: S.optional(S.String), + inputSourceConfig: InputSourceConfig, + outputSourceConfig: OutputSourceConfig, + resolutionTechniques: ResolutionTechniques, + incrementalRunConfig: S.optional(IncrementalRunConfig), + roleArn: S.String, + tags: S.optional(TagMap), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/matchingworkflows" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateMatchingWorkflowInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateMatchingWorkflowInput", +}) as any as S.Schema; export interface CreateMatchingWorkflowOutput { workflowName: string; workflowArn: string; @@ -739,21 +732,20 @@ export interface CreateMatchingWorkflowOutput { incrementalRunConfig?: IncrementalRunConfig; roleArn: string; } -export const CreateMatchingWorkflowOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - workflowName: S.String, - workflowArn: S.String, - description: S.optional(S.String), - inputSourceConfig: InputSourceConfig, - outputSourceConfig: OutputSourceConfig, - resolutionTechniques: ResolutionTechniques, - incrementalRunConfig: S.optional(IncrementalRunConfig), - roleArn: S.String, - }), - ).annotate({ - identifier: "CreateMatchingWorkflowOutput", - }) as any as S.Schema; +export const CreateMatchingWorkflowOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + workflowName: S.String, + workflowArn: S.String, + description: S.optional(S.String), + inputSourceConfig: InputSourceConfig, + outputSourceConfig: OutputSourceConfig, + resolutionTechniques: ResolutionTechniques, + incrementalRunConfig: S.optional(IncrementalRunConfig), + roleArn: S.String, + }), +).annotate({ + identifier: "CreateMatchingWorkflowOutput", +}) as any as S.Schema; export type SchemaAttributeType = | "NAME" | "NAME_FIRST" @@ -831,14 +823,14 @@ export const CreateSchemaMappingInput = /*@__PURE__*/ S.suspend(() => export interface CreateSchemaMappingOutput { schemaName: string; schemaArn: string; - description: string; + description?: string; mappedInputFields: SchemaInputAttribute[]; } export const CreateSchemaMappingOutput = /*@__PURE__*/ S.suspend(() => S.Struct({ schemaName: S.String, schemaArn: S.String, - description: S.String, + description: S.optional(S.String), mappedInputFields: SchemaInputAttributes, }), ).annotate({ @@ -847,28 +839,28 @@ export const CreateSchemaMappingOutput = /*@__PURE__*/ S.suspend(() => export interface DeleteIdMappingWorkflowInput { workflowName: string; } -export const DeleteIdMappingWorkflowInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ workflowName: S.String.pipe(T.HttpLabel("workflowName")) }).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/idmappingworkflows/{workflowName}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteIdMappingWorkflowInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ workflowName: S.String.pipe(T.HttpLabel("workflowName")) }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/idmappingworkflows/{workflowName}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteIdMappingWorkflowInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteIdMappingWorkflowInput", +}) as any as S.Schema; export interface DeleteIdMappingWorkflowOutput { message: string; } -export const DeleteIdMappingWorkflowOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({ message: S.String })).annotate({ - identifier: "DeleteIdMappingWorkflowOutput", - }) as any as S.Schema; +export const DeleteIdMappingWorkflowOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ message: S.String }), +).annotate({ + identifier: "DeleteIdMappingWorkflowOutput", +}) as any as S.Schema; export interface DeleteIdNamespaceInput { idNamespaceName: string; } @@ -899,28 +891,28 @@ export const DeleteIdNamespaceOutput = /*@__PURE__*/ S.suspend(() => export interface DeleteMatchingWorkflowInput { workflowName: string; } -export const DeleteMatchingWorkflowInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ workflowName: S.String.pipe(T.HttpLabel("workflowName")) }).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/matchingworkflows/{workflowName}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteMatchingWorkflowInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ workflowName: S.String.pipe(T.HttpLabel("workflowName")) }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/matchingworkflows/{workflowName}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteMatchingWorkflowInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteMatchingWorkflowInput", +}) as any as S.Schema; export interface DeleteMatchingWorkflowOutput { message: string; } -export const DeleteMatchingWorkflowOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({ message: S.String })).annotate({ - identifier: "DeleteMatchingWorkflowOutput", - }) as any as S.Schema; +export const DeleteMatchingWorkflowOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ message: S.String }), +).annotate({ + identifier: "DeleteMatchingWorkflowOutput", +}) as any as S.Schema; export interface DeletePolicyStatementInput { arn: string; statementId: string; @@ -947,12 +939,11 @@ export interface DeletePolicyStatementOutput { token: string; policy?: string; } -export const DeletePolicyStatementOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ arn: S.String, token: S.String, policy: S.optional(S.String) }), - ).annotate({ - identifier: "DeletePolicyStatementOutput", - }) as any as S.Schema; +export const DeletePolicyStatementOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ arn: S.String, token: S.String, policy: S.optional(S.String) }), +).annotate({ + identifier: "DeletePolicyStatementOutput", +}) as any as S.Schema; export interface DeleteSchemaMappingInput { schemaName: string; } @@ -1165,8 +1156,9 @@ export const IdMappingJobOutputSource = /*@__PURE__*/ S.suspend(() => identifier: "IdMappingJobOutputSource", }) as any as S.Schema; export type IdMappingJobOutputSourceConfig = IdMappingJobOutputSource[]; -export const IdMappingJobOutputSourceConfig = - /*@__PURE__*/ S.Array(IdMappingJobOutputSource); +export const IdMappingJobOutputSourceConfig = /*@__PURE__*/ S.Array( + IdMappingJobOutputSource, +); export type JobType = "BATCH" | "INCREMENTAL" | "DELETE_ONLY" | (string & {}); export const JobType = /*@__PURE__*/ S.String; export interface GetIdMappingJobOutput { @@ -1510,40 +1502,37 @@ export interface ProviderIdNameSpaceConfiguration { providerTargetConfigurationDefinition?: any; providerSourceConfigurationDefinition?: any; } -export const ProviderIdNameSpaceConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - description: S.optional(S.String), - providerTargetConfigurationDefinition: S.optional(S.Any), - providerSourceConfigurationDefinition: S.optional(S.Any), - }), - ).annotate({ - identifier: "ProviderIdNameSpaceConfiguration", - }) as any as S.Schema; +export const ProviderIdNameSpaceConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + description: S.optional(S.String), + providerTargetConfigurationDefinition: S.optional(S.Any), + providerSourceConfigurationDefinition: S.optional(S.Any), + }), +).annotate({ + identifier: "ProviderIdNameSpaceConfiguration", +}) as any as S.Schema; export interface ProviderMarketplaceConfiguration { dataSetId: string; revisionId: string; assetId: string; listingId: string; } -export const ProviderMarketplaceConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - dataSetId: S.String, - revisionId: S.String, - assetId: S.String, - listingId: S.String, - }), - ).annotate({ - identifier: "ProviderMarketplaceConfiguration", - }) as any as S.Schema; +export const ProviderMarketplaceConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + dataSetId: S.String, + revisionId: S.String, + assetId: S.String, + listingId: S.String, + }), +).annotate({ + identifier: "ProviderMarketplaceConfiguration", +}) as any as S.Schema; export type ProviderEndpointConfiguration = { marketplaceConfiguration: ProviderMarketplaceConfiguration; }; -export const ProviderEndpointConfiguration = - /*@__PURE__*/ S.Union([ - S.Struct({ marketplaceConfiguration: ProviderMarketplaceConfiguration }), - ]); +export const ProviderEndpointConfiguration = /*@__PURE__*/ S.Union([ + S.Struct({ marketplaceConfiguration: ProviderMarketplaceConfiguration }), +]); export type AwsAccountIdList = string[]; export const AwsAccountIdList = /*@__PURE__*/ S.Array(S.String); export type RequiredBucketActionsList = string[]; @@ -1688,10 +1677,7 @@ export const ListIdMappingJobsInput = /*@__PURE__*/ S.suspend(() => maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), }).pipe( T.all( - T.Http({ - method: "GET", - uri: "/idmappingworkflows/{workflowName}/jobs", - }), + T.Http({ method: "GET", uri: "/idmappingworkflows/{workflowName}/jobs" }), svc, auth, proto, @@ -1731,24 +1717,23 @@ export interface ListIdMappingWorkflowsInput { nextToken?: string; maxResults?: number; } -export const ListIdMappingWorkflowsInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/idmappingworkflows" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListIdMappingWorkflowsInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/idmappingworkflows" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListIdMappingWorkflowsInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListIdMappingWorkflowsInput", +}) as any as S.Schema; export interface IdMappingWorkflowSummary { workflowName: string; workflowArn: string; @@ -1773,15 +1758,14 @@ export interface ListIdMappingWorkflowsOutput { workflowSummaries?: IdMappingWorkflowSummary[]; nextToken?: string; } -export const ListIdMappingWorkflowsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - workflowSummaries: S.optional(IdMappingWorkflowList), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListIdMappingWorkflowsOutput", - }) as any as S.Schema; +export const ListIdMappingWorkflowsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + workflowSummaries: S.optional(IdMappingWorkflowList), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListIdMappingWorkflowsOutput", +}) as any as S.Schema; export interface ListIdNamespacesInput { nextToken?: string; maxResults?: number; @@ -1806,16 +1790,16 @@ export const ListIdNamespacesInput = /*@__PURE__*/ S.suspend(() => export interface IdNamespaceIdMappingWorkflowMetadata { idMappingType: IdMappingType; } -export const IdNamespaceIdMappingWorkflowMetadata = - /*@__PURE__*/ S.suspend(() => - S.Struct({ idMappingType: IdMappingType }), - ).annotate({ - identifier: "IdNamespaceIdMappingWorkflowMetadata", - }) as any as S.Schema; +export const IdNamespaceIdMappingWorkflowMetadata = /*@__PURE__*/ S.suspend( + () => S.Struct({ idMappingType: IdMappingType }), +).annotate({ + identifier: "IdNamespaceIdMappingWorkflowMetadata", +}) as any as S.Schema; export type IdNamespaceIdMappingWorkflowMetadataList = IdNamespaceIdMappingWorkflowMetadata[]; -export const IdNamespaceIdMappingWorkflowMetadataList = - /*@__PURE__*/ S.Array(IdNamespaceIdMappingWorkflowMetadata); +export const IdNamespaceIdMappingWorkflowMetadataList = /*@__PURE__*/ S.Array( + IdNamespaceIdMappingWorkflowMetadata, +); export interface IdNamespaceSummary { idNamespaceName: string; idNamespaceArn: string; @@ -1933,15 +1917,14 @@ export interface ListMatchingWorkflowsOutput { workflowSummaries?: MatchingWorkflowSummary[]; nextToken?: string; } -export const ListMatchingWorkflowsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - workflowSummaries: S.optional(MatchingWorkflowList), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListMatchingWorkflowsOutput", - }) as any as S.Schema; +export const ListMatchingWorkflowsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + workflowSummaries: S.optional(MatchingWorkflowList), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListMatchingWorkflowsOutput", +}) as any as S.Schema; export interface ListProviderServicesInput { nextToken?: string; maxResults?: number; @@ -2238,29 +2221,28 @@ export interface UpdateIdMappingWorkflowInput { incrementalRunConfig?: IdMappingIncrementalRunConfig; roleArn?: string; } -export const UpdateIdMappingWorkflowInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - workflowName: S.String.pipe(T.HttpLabel("workflowName")), - description: S.optional(S.String), - inputSourceConfig: IdMappingWorkflowInputSourceConfig, - outputSourceConfig: S.optional(IdMappingWorkflowOutputSourceConfig), - idMappingTechniques: IdMappingTechniques, - incrementalRunConfig: S.optional(IdMappingIncrementalRunConfig), - roleArn: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "PUT", uri: "/idmappingworkflows/{workflowName}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateIdMappingWorkflowInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + workflowName: S.String.pipe(T.HttpLabel("workflowName")), + description: S.optional(S.String), + inputSourceConfig: IdMappingWorkflowInputSourceConfig, + outputSourceConfig: S.optional(IdMappingWorkflowOutputSourceConfig), + idMappingTechniques: IdMappingTechniques, + incrementalRunConfig: S.optional(IdMappingIncrementalRunConfig), + roleArn: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/idmappingworkflows/{workflowName}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateIdMappingWorkflowInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateIdMappingWorkflowInput", +}) as any as S.Schema; export interface UpdateIdMappingWorkflowOutput { workflowName: string; workflowArn: string; @@ -2271,21 +2253,20 @@ export interface UpdateIdMappingWorkflowOutput { incrementalRunConfig?: IdMappingIncrementalRunConfig; roleArn?: string; } -export const UpdateIdMappingWorkflowOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - workflowName: S.String, - workflowArn: S.String, - description: S.optional(S.String), - inputSourceConfig: IdMappingWorkflowInputSourceConfig, - outputSourceConfig: S.optional(IdMappingWorkflowOutputSourceConfig), - idMappingTechniques: IdMappingTechniques, - incrementalRunConfig: S.optional(IdMappingIncrementalRunConfig), - roleArn: S.optional(S.String), - }), - ).annotate({ - identifier: "UpdateIdMappingWorkflowOutput", - }) as any as S.Schema; +export const UpdateIdMappingWorkflowOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + workflowName: S.String, + workflowArn: S.String, + description: S.optional(S.String), + inputSourceConfig: IdMappingWorkflowInputSourceConfig, + outputSourceConfig: S.optional(IdMappingWorkflowOutputSourceConfig), + idMappingTechniques: IdMappingTechniques, + incrementalRunConfig: S.optional(IdMappingIncrementalRunConfig), + roleArn: S.optional(S.String), + }), +).annotate({ + identifier: "UpdateIdMappingWorkflowOutput", +}) as any as S.Schema; export interface UpdateIdNamespaceInput { idNamespaceName: string; description?: string; @@ -2352,29 +2333,28 @@ export interface UpdateMatchingWorkflowInput { incrementalRunConfig?: IncrementalRunConfig; roleArn: string; } -export const UpdateMatchingWorkflowInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - workflowName: S.String.pipe(T.HttpLabel("workflowName")), - description: S.optional(S.String), - inputSourceConfig: InputSourceConfig, - outputSourceConfig: OutputSourceConfig, - resolutionTechniques: ResolutionTechniques, - incrementalRunConfig: S.optional(IncrementalRunConfig), - roleArn: S.String, - }).pipe( - T.all( - T.Http({ method: "PUT", uri: "/matchingworkflows/{workflowName}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateMatchingWorkflowInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + workflowName: S.String.pipe(T.HttpLabel("workflowName")), + description: S.optional(S.String), + inputSourceConfig: InputSourceConfig, + outputSourceConfig: OutputSourceConfig, + resolutionTechniques: ResolutionTechniques, + incrementalRunConfig: S.optional(IncrementalRunConfig), + roleArn: S.String, + }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/matchingworkflows/{workflowName}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateMatchingWorkflowInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateMatchingWorkflowInput", +}) as any as S.Schema; export interface UpdateMatchingWorkflowOutput { workflowName: string; description?: string; @@ -2384,20 +2364,19 @@ export interface UpdateMatchingWorkflowOutput { incrementalRunConfig?: IncrementalRunConfig; roleArn: string; } -export const UpdateMatchingWorkflowOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - workflowName: S.String, - description: S.optional(S.String), - inputSourceConfig: InputSourceConfig, - outputSourceConfig: OutputSourceConfig, - resolutionTechniques: ResolutionTechniques, - incrementalRunConfig: S.optional(IncrementalRunConfig), - roleArn: S.String, - }), - ).annotate({ - identifier: "UpdateMatchingWorkflowOutput", - }) as any as S.Schema; +export const UpdateMatchingWorkflowOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + workflowName: S.String, + description: S.optional(S.String), + inputSourceConfig: InputSourceConfig, + outputSourceConfig: OutputSourceConfig, + resolutionTechniques: ResolutionTechniques, + incrementalRunConfig: S.optional(IncrementalRunConfig), + roleArn: S.String, + }), +).annotate({ + identifier: "UpdateMatchingWorkflowOutput", +}) as any as S.Schema; export interface UpdateSchemaMappingInput { schemaName: string; description?: string; @@ -2442,28 +2421,32 @@ export const UpdateSchemaMappingOutput = /*@__PURE__*/ S.suspend(() => export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { message: S.optional(S.String) }, - T.Retryable(), + T.all(T.HttpError(500), T.Retryable()), ).pipe(C.withServerError, C.withRetryableError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", { message: S.optional(S.String) }, - T.Retryable({ throttling: true }), + T.all(T.HttpError(429), T.Retryable({ throttling: true })), ).pipe(C.withThrottlingError, C.withRetryableError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ExceedsLimitException extends S.TaggedErrorClass()( "ExceedsLimitException", @@ -2472,6 +2455,7 @@ export class ExceedsLimitException extends S.TaggedErrorClass identifier: "ActivateEventSourceRequest", }) as any as S.Schema; export interface ActivateEventSourceResponse {} -export const ActivateEventSourceResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "ActivateEventSourceResponse", - }) as any as S.Schema; +export const ActivateEventSourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "ActivateEventSourceResponse", +}) as any as S.Schema; export interface CancelReplayRequest { ReplayName: string; } @@ -344,29 +345,28 @@ export interface CreateApiDestinationRequest { HttpMethod: ApiDestinationHttpMethod; InvocationRateLimitPerSecond?: number; } -export const CreateApiDestinationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Name: S.String, - Description: S.optional(S.String), - ConnectionArn: S.String, - InvocationEndpoint: S.String, - HttpMethod: ApiDestinationHttpMethod, - InvocationRateLimitPerSecond: S.optional(S.Number), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateApiDestinationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.String, + Description: S.optional(S.String), + ConnectionArn: S.String, + InvocationEndpoint: S.String, + HttpMethod: ApiDestinationHttpMethod, + InvocationRateLimitPerSecond: S.optional(S.Number), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateApiDestinationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateApiDestinationRequest", +}) as any as S.Schema; export type ApiDestinationState = "ACTIVE" | "INACTIVE" | (string & {}); export const ApiDestinationState = /*@__PURE__*/ S.String; export interface CreateApiDestinationResponse { @@ -375,19 +375,18 @@ export interface CreateApiDestinationResponse { CreationTime?: Date; LastModifiedTime?: Date; } -export const CreateApiDestinationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ApiDestinationArn: S.optional(S.String), - ApiDestinationState: S.optional(ApiDestinationState), - CreationTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - LastModifiedTime: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - }).pipe(ns), - ).annotate({ - identifier: "CreateApiDestinationResponse", - }) as any as S.Schema; +export const CreateApiDestinationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ApiDestinationArn: S.optional(S.String), + ApiDestinationState: S.optional(ApiDestinationState), + CreationTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + LastModifiedTime: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + }).pipe(ns), +).annotate({ + identifier: "CreateApiDestinationResponse", +}) as any as S.Schema; export interface CreateArchiveRequest { ArchiveName: string; EventSourceArn: string; @@ -486,27 +485,28 @@ export const ConnectionHeaderParameter = /*@__PURE__*/ S.suspend(() => identifier: "ConnectionHeaderParameter", }) as any as S.Schema; export type ConnectionHeaderParametersList = ConnectionHeaderParameter[]; -export const ConnectionHeaderParametersList = - /*@__PURE__*/ S.Array(ConnectionHeaderParameter); +export const ConnectionHeaderParametersList = /*@__PURE__*/ S.Array( + ConnectionHeaderParameter, +); export interface ConnectionQueryStringParameter { Key?: string; Value?: string | redacted.Redacted; IsValueSecret?: boolean; } -export const ConnectionQueryStringParameter = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Key: S.optional(S.String), - Value: S.optional(SensitiveString), - IsValueSecret: S.optional(S.Boolean), - }), - ).annotate({ - identifier: "ConnectionQueryStringParameter", - }) as any as S.Schema; +export const ConnectionQueryStringParameter = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Key: S.optional(S.String), + Value: S.optional(SensitiveString), + IsValueSecret: S.optional(S.Boolean), + }), +).annotate({ + identifier: "ConnectionQueryStringParameter", +}) as any as S.Schema; export type ConnectionQueryStringParametersList = ConnectionQueryStringParameter[]; -export const ConnectionQueryStringParametersList = - /*@__PURE__*/ S.Array(ConnectionQueryStringParameter); +export const ConnectionQueryStringParametersList = /*@__PURE__*/ S.Array( + ConnectionQueryStringParameter, +); export interface ConnectionBodyParameter { Key?: string; Value?: string | redacted.Redacted; @@ -545,17 +545,17 @@ export interface CreateConnectionOAuthRequestParameters { HttpMethod: ConnectionOAuthHttpMethod; OAuthHttpParameters?: ConnectionHttpParameters; } -export const CreateConnectionOAuthRequestParameters = - /*@__PURE__*/ S.suspend(() => +export const CreateConnectionOAuthRequestParameters = /*@__PURE__*/ S.suspend( + () => S.Struct({ ClientParameters: CreateConnectionOAuthClientRequestParameters, AuthorizationEndpoint: S.String, HttpMethod: ConnectionOAuthHttpMethod, OAuthHttpParameters: S.optional(ConnectionHttpParameters), }), - ).annotate({ - identifier: "CreateConnectionOAuthRequestParameters", - }) as any as S.Schema; +).annotate({ + identifier: "CreateConnectionOAuthRequestParameters", +}) as any as S.Schema; export interface CreateConnectionApiKeyAuthRequestParameters { ApiKeyName: string; ApiKeyValue: string | redacted.Redacted; @@ -569,21 +569,19 @@ export const CreateConnectionApiKeyAuthRequestParameters = export interface ConnectivityResourceConfigurationArn { ResourceConfigurationArn: string; } -export const ConnectivityResourceConfigurationArn = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ResourceConfigurationArn: S.String }), - ).annotate({ - identifier: "ConnectivityResourceConfigurationArn", - }) as any as S.Schema; +export const ConnectivityResourceConfigurationArn = /*@__PURE__*/ S.suspend( + () => S.Struct({ ResourceConfigurationArn: S.String }), +).annotate({ + identifier: "ConnectivityResourceConfigurationArn", +}) as any as S.Schema; export interface ConnectivityResourceParameters { ResourceParameters: ConnectivityResourceConfigurationArn; } -export const ConnectivityResourceParameters = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ResourceParameters: ConnectivityResourceConfigurationArn }), - ).annotate({ - identifier: "ConnectivityResourceParameters", - }) as any as S.Schema; +export const ConnectivityResourceParameters = /*@__PURE__*/ S.suspend(() => + S.Struct({ ResourceParameters: ConnectivityResourceConfigurationArn }), +).annotate({ + identifier: "ConnectivityResourceParameters", +}) as any as S.Schema; export interface CreateConnectionAuthRequestParameters { BasicAuthParameters?: CreateConnectionBasicAuthRequestParameters; OAuthParameters?: CreateConnectionOAuthRequestParameters; @@ -591,8 +589,8 @@ export interface CreateConnectionAuthRequestParameters { InvocationHttpParameters?: ConnectionHttpParameters; ConnectivityParameters?: ConnectivityResourceParameters; } -export const CreateConnectionAuthRequestParameters = - /*@__PURE__*/ S.suspend(() => +export const CreateConnectionAuthRequestParameters = /*@__PURE__*/ S.suspend( + () => S.Struct({ BasicAuthParameters: S.optional( CreateConnectionBasicAuthRequestParameters, @@ -604,9 +602,9 @@ export const CreateConnectionAuthRequestParameters = InvocationHttpParameters: S.optional(ConnectionHttpParameters), ConnectivityParameters: S.optional(ConnectivityResourceParameters), }), - ).annotate({ - identifier: "CreateConnectionAuthRequestParameters", - }) as any as S.Schema; +).annotate({ + identifier: "CreateConnectionAuthRequestParameters", +}) as any as S.Schema; export interface CreateConnectionRequest { Name: string; Description?: string; @@ -861,74 +859,71 @@ export interface CreatePartnerEventSourceRequest { Name: string; Account: string; } -export const CreatePartnerEventSourceRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Name: S.String, Account: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreatePartnerEventSourceRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Name: S.String, Account: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreatePartnerEventSourceRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreatePartnerEventSourceRequest", +}) as any as S.Schema; export interface CreatePartnerEventSourceResponse { EventSourceArn?: string; } -export const CreatePartnerEventSourceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ EventSourceArn: S.optional(S.String) }).pipe(ns), - ).annotate({ - identifier: "CreatePartnerEventSourceResponse", - }) as any as S.Schema; +export const CreatePartnerEventSourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ EventSourceArn: S.optional(S.String) }).pipe(ns), +).annotate({ + identifier: "CreatePartnerEventSourceResponse", +}) as any as S.Schema; export interface DeactivateEventSourceRequest { Name: string; } -export const DeactivateEventSourceRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Name: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeactivateEventSourceRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Name: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeactivateEventSourceRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeactivateEventSourceRequest", +}) as any as S.Schema; export interface DeactivateEventSourceResponse {} -export const DeactivateEventSourceResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeactivateEventSourceResponse", - }) as any as S.Schema; +export const DeactivateEventSourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeactivateEventSourceResponse", +}) as any as S.Schema; export interface DeauthorizeConnectionRequest { Name: string; } -export const DeauthorizeConnectionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Name: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeauthorizeConnectionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Name: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeauthorizeConnectionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeauthorizeConnectionRequest", +}) as any as S.Schema; export interface DeauthorizeConnectionResponse { ConnectionArn?: string; ConnectionState?: ConnectionState; @@ -936,46 +931,45 @@ export interface DeauthorizeConnectionResponse { LastModifiedTime?: Date; LastAuthorizedTime?: Date; } -export const DeauthorizeConnectionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ConnectionArn: S.optional(S.String), - ConnectionState: S.optional(ConnectionState), - CreationTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - LastModifiedTime: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - LastAuthorizedTime: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - }).pipe(ns), - ).annotate({ - identifier: "DeauthorizeConnectionResponse", - }) as any as S.Schema; +export const DeauthorizeConnectionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ConnectionArn: S.optional(S.String), + ConnectionState: S.optional(ConnectionState), + CreationTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + LastModifiedTime: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + LastAuthorizedTime: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + }).pipe(ns), +).annotate({ + identifier: "DeauthorizeConnectionResponse", +}) as any as S.Schema; export interface DeleteApiDestinationRequest { Name: string; } -export const DeleteApiDestinationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Name: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteApiDestinationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Name: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteApiDestinationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteApiDestinationRequest", +}) as any as S.Schema; export interface DeleteApiDestinationResponse {} -export const DeleteApiDestinationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteApiDestinationResponse", - }) as any as S.Schema; +export const DeleteApiDestinationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteApiDestinationResponse", +}) as any as S.Schema; export interface DeleteArchiveRequest { ArchiveName: string; } @@ -1092,27 +1086,27 @@ export interface DeletePartnerEventSourceRequest { Name: string; Account: string; } -export const DeletePartnerEventSourceRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Name: S.String, Account: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeletePartnerEventSourceRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Name: S.String, Account: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeletePartnerEventSourceRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeletePartnerEventSourceRequest", +}) as any as S.Schema; export interface DeletePartnerEventSourceResponse {} -export const DeletePartnerEventSourceResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeletePartnerEventSourceResponse", - }) as any as S.Schema; +export const DeletePartnerEventSourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeletePartnerEventSourceResponse", +}) as any as S.Schema; export interface DeleteRuleRequest { Name: string; EventBusName?: string; @@ -1146,22 +1140,21 @@ export const DeleteRuleResponse = /*@__PURE__*/ S.suspend(() => export interface DescribeApiDestinationRequest { Name: string; } -export const DescribeApiDestinationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Name: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeApiDestinationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Name: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeApiDestinationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeApiDestinationRequest", +}) as any as S.Schema; export interface DescribeApiDestinationResponse { ApiDestinationArn?: string; Name?: string; @@ -1174,25 +1167,24 @@ export interface DescribeApiDestinationResponse { CreationTime?: Date; LastModifiedTime?: Date; } -export const DescribeApiDestinationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ApiDestinationArn: S.optional(S.String), - Name: S.optional(S.String), - Description: S.optional(S.String), - ApiDestinationState: S.optional(ApiDestinationState), - ConnectionArn: S.optional(S.String), - InvocationEndpoint: S.optional(S.String), - HttpMethod: S.optional(ApiDestinationHttpMethod), - InvocationRateLimitPerSecond: S.optional(S.Number), - CreationTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - LastModifiedTime: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - }).pipe(ns), - ).annotate({ - identifier: "DescribeApiDestinationResponse", - }) as any as S.Schema; +export const DescribeApiDestinationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ApiDestinationArn: S.optional(S.String), + Name: S.optional(S.String), + Description: S.optional(S.String), + ApiDestinationState: S.optional(ApiDestinationState), + ConnectionArn: S.optional(S.String), + InvocationEndpoint: S.optional(S.String), + HttpMethod: S.optional(ApiDestinationHttpMethod), + InvocationRateLimitPerSecond: S.optional(S.Number), + CreationTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + LastModifiedTime: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + }).pipe(ns), +).annotate({ + identifier: "DescribeApiDestinationResponse", +}) as any as S.Schema; export interface DescribeArchiveRequest { ArchiveName: string; } @@ -1265,68 +1257,63 @@ export interface DescribeConnectionResourceParameters { ResourceConfigurationArn: string; ResourceAssociationArn: string; } -export const DescribeConnectionResourceParameters = - /*@__PURE__*/ S.suspend(() => +export const DescribeConnectionResourceParameters = /*@__PURE__*/ S.suspend( + () => S.Struct({ ResourceConfigurationArn: S.String, ResourceAssociationArn: S.String, }), - ).annotate({ - identifier: "DescribeConnectionResourceParameters", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeConnectionResourceParameters", +}) as any as S.Schema; export interface DescribeConnectionConnectivityParameters { ResourceParameters: DescribeConnectionResourceParameters; } -export const DescribeConnectionConnectivityParameters = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ResourceParameters: DescribeConnectionResourceParameters }), - ).annotate({ - identifier: "DescribeConnectionConnectivityParameters", - }) as any as S.Schema; +export const DescribeConnectionConnectivityParameters = /*@__PURE__*/ S.suspend( + () => S.Struct({ ResourceParameters: DescribeConnectionResourceParameters }), +).annotate({ + identifier: "DescribeConnectionConnectivityParameters", +}) as any as S.Schema; export interface ConnectionBasicAuthResponseParameters { Username?: string; } -export const ConnectionBasicAuthResponseParameters = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Username: S.optional(S.String) }), - ).annotate({ - identifier: "ConnectionBasicAuthResponseParameters", - }) as any as S.Schema; +export const ConnectionBasicAuthResponseParameters = /*@__PURE__*/ S.suspend( + () => S.Struct({ Username: S.optional(S.String) }), +).annotate({ + identifier: "ConnectionBasicAuthResponseParameters", +}) as any as S.Schema; export interface ConnectionOAuthClientResponseParameters { ClientID?: string; } -export const ConnectionOAuthClientResponseParameters = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ClientID: S.optional(S.String) }), - ).annotate({ - identifier: "ConnectionOAuthClientResponseParameters", - }) as any as S.Schema; +export const ConnectionOAuthClientResponseParameters = /*@__PURE__*/ S.suspend( + () => S.Struct({ ClientID: S.optional(S.String) }), +).annotate({ + identifier: "ConnectionOAuthClientResponseParameters", +}) as any as S.Schema; export interface ConnectionOAuthResponseParameters { ClientParameters?: ConnectionOAuthClientResponseParameters; AuthorizationEndpoint?: string; HttpMethod?: ConnectionOAuthHttpMethod; OAuthHttpParameters?: ConnectionHttpParameters; } -export const ConnectionOAuthResponseParameters = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ClientParameters: S.optional(ConnectionOAuthClientResponseParameters), - AuthorizationEndpoint: S.optional(S.String), - HttpMethod: S.optional(ConnectionOAuthHttpMethod), - OAuthHttpParameters: S.optional(ConnectionHttpParameters), - }), - ).annotate({ - identifier: "ConnectionOAuthResponseParameters", - }) as any as S.Schema; +export const ConnectionOAuthResponseParameters = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ClientParameters: S.optional(ConnectionOAuthClientResponseParameters), + AuthorizationEndpoint: S.optional(S.String), + HttpMethod: S.optional(ConnectionOAuthHttpMethod), + OAuthHttpParameters: S.optional(ConnectionHttpParameters), + }), +).annotate({ + identifier: "ConnectionOAuthResponseParameters", +}) as any as S.Schema; export interface ConnectionApiKeyAuthResponseParameters { ApiKeyName?: string; } -export const ConnectionApiKeyAuthResponseParameters = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ApiKeyName: S.optional(S.String) }), - ).annotate({ - identifier: "ConnectionApiKeyAuthResponseParameters", - }) as any as S.Schema; +export const ConnectionApiKeyAuthResponseParameters = /*@__PURE__*/ S.suspend( + () => S.Struct({ ApiKeyName: S.optional(S.String) }), +).annotate({ + identifier: "ConnectionApiKeyAuthResponseParameters", +}) as any as S.Schema; export interface ConnectionAuthResponseParameters { BasicAuthParameters?: ConnectionBasicAuthResponseParameters; OAuthParameters?: ConnectionOAuthResponseParameters; @@ -1334,20 +1321,19 @@ export interface ConnectionAuthResponseParameters { InvocationHttpParameters?: ConnectionHttpParameters; ConnectivityParameters?: DescribeConnectionConnectivityParameters; } -export const ConnectionAuthResponseParameters = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - BasicAuthParameters: S.optional(ConnectionBasicAuthResponseParameters), - OAuthParameters: S.optional(ConnectionOAuthResponseParameters), - ApiKeyAuthParameters: S.optional(ConnectionApiKeyAuthResponseParameters), - InvocationHttpParameters: S.optional(ConnectionHttpParameters), - ConnectivityParameters: S.optional( - DescribeConnectionConnectivityParameters, - ), - }), - ).annotate({ - identifier: "ConnectionAuthResponseParameters", - }) as any as S.Schema; +export const ConnectionAuthResponseParameters = /*@__PURE__*/ S.suspend(() => + S.Struct({ + BasicAuthParameters: S.optional(ConnectionBasicAuthResponseParameters), + OAuthParameters: S.optional(ConnectionOAuthResponseParameters), + ApiKeyAuthParameters: S.optional(ConnectionApiKeyAuthResponseParameters), + InvocationHttpParameters: S.optional(ConnectionHttpParameters), + ConnectivityParameters: S.optional( + DescribeConnectionConnectivityParameters, + ), + }), +).annotate({ + identifier: "ConnectionAuthResponseParameters", +}) as any as S.Schema; export interface DescribeConnectionResponse { ConnectionArn?: string; Name?: string; @@ -1517,52 +1503,45 @@ export interface DescribeEventSourceResponse { Name?: string; State?: EventSourceState; } -export const DescribeEventSourceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Arn: S.optional(S.String), - CreatedBy: S.optional(S.String), - CreationTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - ExpirationTime: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - Name: S.optional(S.String), - State: S.optional(EventSourceState), - }).pipe(ns), - ).annotate({ - identifier: "DescribeEventSourceResponse", - }) as any as S.Schema; +export const DescribeEventSourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Arn: S.optional(S.String), + CreatedBy: S.optional(S.String), + CreationTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + ExpirationTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + Name: S.optional(S.String), + State: S.optional(EventSourceState), + }).pipe(ns), +).annotate({ + identifier: "DescribeEventSourceResponse", +}) as any as S.Schema; export interface DescribePartnerEventSourceRequest { Name: string; } -export const DescribePartnerEventSourceRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Name: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribePartnerEventSourceRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Name: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribePartnerEventSourceRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribePartnerEventSourceRequest", +}) as any as S.Schema; export interface DescribePartnerEventSourceResponse { Arn?: string; Name?: string; } -export const DescribePartnerEventSourceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Arn: S.optional(S.String), Name: S.optional(S.String) }).pipe( - ns, - ), - ).annotate({ - identifier: "DescribePartnerEventSourceResponse", - }) as any as S.Schema; +export const DescribePartnerEventSourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Arn: S.optional(S.String), Name: S.optional(S.String) }).pipe(ns), +).annotate({ + identifier: "DescribePartnerEventSourceResponse", +}) as any as S.Schema; export interface DescribeReplayRequest { ReplayName: string; } @@ -1789,15 +1768,14 @@ export interface ListApiDestinationsResponse { ApiDestinations?: ApiDestination[]; NextToken?: string; } -export const ListApiDestinationsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ApiDestinations: S.optional(ApiDestinationResponseList), - NextToken: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "ListApiDestinationsResponse", - }) as any as S.Schema; +export const ListApiDestinationsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ApiDestinations: S.optional(ApiDestinationResponseList), + NextToken: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "ListApiDestinationsResponse", +}) as any as S.Schema; export interface ListArchivesRequest { NamePrefix?: string; EventSourceArn?: string; @@ -2121,8 +2099,8 @@ export interface ListPartnerEventSourceAccountsRequest { NextToken?: string; Limit?: number; } -export const ListPartnerEventSourceAccountsRequest = - /*@__PURE__*/ S.suspend(() => +export const ListPartnerEventSourceAccountsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ EventSourceName: S.String, NextToken: S.optional(S.String), @@ -2138,9 +2116,9 @@ export const ListPartnerEventSourceAccountsRequest = rules, ), ), - ).annotate({ - identifier: "ListPartnerEventSourceAccountsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListPartnerEventSourceAccountsRequest", +}) as any as S.Schema; export interface PartnerEventSourceAccount { Account?: string; CreationTime?: Date; @@ -2158,46 +2136,46 @@ export const PartnerEventSourceAccount = /*@__PURE__*/ S.suspend(() => identifier: "PartnerEventSourceAccount", }) as any as S.Schema; export type PartnerEventSourceAccountList = PartnerEventSourceAccount[]; -export const PartnerEventSourceAccountList = - /*@__PURE__*/ S.Array(PartnerEventSourceAccount); +export const PartnerEventSourceAccountList = /*@__PURE__*/ S.Array( + PartnerEventSourceAccount, +); export interface ListPartnerEventSourceAccountsResponse { PartnerEventSourceAccounts?: PartnerEventSourceAccount[]; NextToken?: string; } -export const ListPartnerEventSourceAccountsResponse = - /*@__PURE__*/ S.suspend(() => +export const ListPartnerEventSourceAccountsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ PartnerEventSourceAccounts: S.optional(PartnerEventSourceAccountList), NextToken: S.optional(S.String), }).pipe(ns), - ).annotate({ - identifier: "ListPartnerEventSourceAccountsResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListPartnerEventSourceAccountsResponse", +}) as any as S.Schema; export interface ListPartnerEventSourcesRequest { NamePrefix: string; NextToken?: string; Limit?: number; } -export const ListPartnerEventSourcesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - NamePrefix: S.String, - NextToken: S.optional(S.String), - Limit: S.optional(S.Number), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListPartnerEventSourcesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + NamePrefix: S.String, + NextToken: S.optional(S.String), + Limit: S.optional(S.Number), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListPartnerEventSourcesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListPartnerEventSourcesRequest", +}) as any as S.Schema; export interface PartnerEventSource { Arn?: string; Name?: string; @@ -2213,15 +2191,14 @@ export interface ListPartnerEventSourcesResponse { PartnerEventSources?: PartnerEventSource[]; NextToken?: string; } -export const ListPartnerEventSourcesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - PartnerEventSources: S.optional(PartnerEventSourceList), - NextToken: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "ListPartnerEventSourcesResponse", - }) as any as S.Schema; +export const ListPartnerEventSourcesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + PartnerEventSources: S.optional(PartnerEventSourceList), + NextToken: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "ListPartnerEventSourcesResponse", +}) as any as S.Schema; export interface ListReplaysRequest { NamePrefix?: string; State?: ReplayState; @@ -2298,42 +2275,40 @@ export interface ListRuleNamesByTargetRequest { NextToken?: string; Limit?: number; } -export const ListRuleNamesByTargetRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TargetArn: S.String, - EventBusName: S.optional(S.String), - NextToken: S.optional(S.String), - Limit: S.optional(S.Number), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListRuleNamesByTargetRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TargetArn: S.String, + EventBusName: S.optional(S.String), + NextToken: S.optional(S.String), + Limit: S.optional(S.Number), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListRuleNamesByTargetRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListRuleNamesByTargetRequest", +}) as any as S.Schema; export type RuleNameList = string[]; export const RuleNameList = /*@__PURE__*/ S.Array(S.String); export interface ListRuleNamesByTargetResponse { RuleNames?: string[]; NextToken?: string; } -export const ListRuleNamesByTargetResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RuleNames: S.optional(RuleNameList), - NextToken: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "ListRuleNamesByTargetResponse", - }) as any as S.Schema; +export const ListRuleNamesByTargetResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RuleNames: S.optional(RuleNameList), + NextToken: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "ListRuleNamesByTargetResponse", +}) as any as S.Schema; export interface ListRulesRequest { NamePrefix?: string; EventBusName?: string; @@ -2419,12 +2394,11 @@ export const ListTagsForResourceRequest = /*@__PURE__*/ S.suspend(() => export interface ListTagsForResourceResponse { Tags?: Tag[]; } -export const ListTagsForResourceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Tags: S.optional(TagList) }).pipe(ns), - ).annotate({ - identifier: "ListTagsForResourceResponse", - }) as any as S.Schema; +export const ListTagsForResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Tags: S.optional(TagList) }).pipe(ns), +).annotate({ + identifier: "ListTagsForResourceResponse", +}) as any as S.Schema; export interface ListTargetsByRuleRequest { Rule: string; EventBusName?: string; @@ -2530,16 +2504,15 @@ export interface CapacityProviderStrategyItem { weight?: number; base?: number; } -export const CapacityProviderStrategyItem = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - capacityProvider: S.String, - weight: S.optional(S.Number), - base: S.optional(S.Number), - }), - ).annotate({ - identifier: "CapacityProviderStrategyItem", - }) as any as S.Schema; +export const CapacityProviderStrategyItem = /*@__PURE__*/ S.suspend(() => + S.Struct({ + capacityProvider: S.String, + weight: S.optional(S.Number), + base: S.optional(S.Number), + }), +).annotate({ + identifier: "CapacityProviderStrategyItem", +}) as any as S.Schema; export type CapacityProviderStrategy = CapacityProviderStrategyItem[]; export const CapacityProviderStrategy = /*@__PURE__*/ S.Array( CapacityProviderStrategyItem, @@ -2681,7 +2654,7 @@ export const HttpParameters = /*@__PURE__*/ S.suspend(() => QueryStringParameters: S.optional(QueryStringParametersMap), }), ).annotate({ identifier: "HttpParameters" }) as any as S.Schema; -export type Sqls = string | redacted.Redacted[]; +export type Sqls = (string | redacted.Redacted)[]; export const Sqls = /*@__PURE__*/ S.Array(SensitiveString); export interface RedshiftDataParameters { SecretManagerArn?: string; @@ -2690,7 +2663,7 @@ export interface RedshiftDataParameters { Sql?: string | redacted.Redacted; StatementName?: string; WithEvent?: boolean; - Sqls?: string | redacted.Redacted[]; + Sqls?: (string | redacted.Redacted)[]; } export const RedshiftDataParameters = /*@__PURE__*/ S.suspend(() => S.Struct({ @@ -2715,19 +2688,19 @@ export const SageMakerPipelineParameter = /*@__PURE__*/ S.suspend(() => identifier: "SageMakerPipelineParameter", }) as any as S.Schema; export type SageMakerPipelineParameterList = SageMakerPipelineParameter[]; -export const SageMakerPipelineParameterList = - /*@__PURE__*/ S.Array(SageMakerPipelineParameter); +export const SageMakerPipelineParameterList = /*@__PURE__*/ S.Array( + SageMakerPipelineParameter, +); export interface SageMakerPipelineParameters { PipelineParameterList?: SageMakerPipelineParameter[]; } -export const SageMakerPipelineParameters = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - PipelineParameterList: S.optional(SageMakerPipelineParameterList), - }), - ).annotate({ - identifier: "SageMakerPipelineParameters", - }) as any as S.Schema; +export const SageMakerPipelineParameters = /*@__PURE__*/ S.suspend(() => + S.Struct({ + PipelineParameterList: S.optional(SageMakerPipelineParameterList), + }), +).annotate({ + identifier: "SageMakerPipelineParameters", +}) as any as S.Schema; export interface RetryPolicy { MaximumRetryAttempts?: number; MaximumEventAgeInSeconds?: number; @@ -2886,21 +2859,21 @@ export interface PutPartnerEventsRequestEntry { DetailType?: string; Detail?: string; } -export const PutPartnerEventsRequestEntry = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Time: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - Source: S.optional(S.String), - Resources: S.optional(EventResourceList), - DetailType: S.optional(S.String), - Detail: S.optional(S.String), - }), - ).annotate({ - identifier: "PutPartnerEventsRequestEntry", - }) as any as S.Schema; +export const PutPartnerEventsRequestEntry = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Time: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + Source: S.optional(S.String), + Resources: S.optional(EventResourceList), + DetailType: S.optional(S.String), + Detail: S.optional(S.String), + }), +).annotate({ + identifier: "PutPartnerEventsRequestEntry", +}) as any as S.Schema; export type PutPartnerEventsRequestEntryList = PutPartnerEventsRequestEntry[]; -export const PutPartnerEventsRequestEntryList = - /*@__PURE__*/ S.Array(PutPartnerEventsRequestEntry); +export const PutPartnerEventsRequestEntryList = /*@__PURE__*/ S.Array( + PutPartnerEventsRequestEntry, +); export interface PutPartnerEventsRequest { Entries: PutPartnerEventsRequestEntry[]; } @@ -2924,19 +2897,19 @@ export interface PutPartnerEventsResultEntry { ErrorCode?: string; ErrorMessage?: string; } -export const PutPartnerEventsResultEntry = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - EventId: S.optional(S.String), - ErrorCode: S.optional(S.String), - ErrorMessage: S.optional(S.String), - }), - ).annotate({ - identifier: "PutPartnerEventsResultEntry", - }) as any as S.Schema; +export const PutPartnerEventsResultEntry = /*@__PURE__*/ S.suspend(() => + S.Struct({ + EventId: S.optional(S.String), + ErrorCode: S.optional(S.String), + ErrorMessage: S.optional(S.String), + }), +).annotate({ + identifier: "PutPartnerEventsResultEntry", +}) as any as S.Schema; export type PutPartnerEventsResultEntryList = PutPartnerEventsResultEntry[]; -export const PutPartnerEventsResultEntryList = - /*@__PURE__*/ S.Array(PutPartnerEventsResultEntry); +export const PutPartnerEventsResultEntryList = /*@__PURE__*/ S.Array( + PutPartnerEventsResultEntry, +); export interface PutPartnerEventsResponse { FailedEntryCount?: number; Entries?: PutPartnerEventsResultEntry[]; @@ -3310,48 +3283,46 @@ export interface UpdateApiDestinationRequest { HttpMethod?: ApiDestinationHttpMethod; InvocationRateLimitPerSecond?: number; } -export const UpdateApiDestinationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Name: S.String, - Description: S.optional(S.String), - ConnectionArn: S.optional(S.String), - InvocationEndpoint: S.optional(S.String), - HttpMethod: S.optional(ApiDestinationHttpMethod), - InvocationRateLimitPerSecond: S.optional(S.Number), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateApiDestinationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.String, + Description: S.optional(S.String), + ConnectionArn: S.optional(S.String), + InvocationEndpoint: S.optional(S.String), + HttpMethod: S.optional(ApiDestinationHttpMethod), + InvocationRateLimitPerSecond: S.optional(S.Number), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateApiDestinationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateApiDestinationRequest", +}) as any as S.Schema; export interface UpdateApiDestinationResponse { ApiDestinationArn?: string; ApiDestinationState?: ApiDestinationState; CreationTime?: Date; LastModifiedTime?: Date; } -export const UpdateApiDestinationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ApiDestinationArn: S.optional(S.String), - ApiDestinationState: S.optional(ApiDestinationState), - CreationTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - LastModifiedTime: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - }).pipe(ns), - ).annotate({ - identifier: "UpdateApiDestinationResponse", - }) as any as S.Schema; +export const UpdateApiDestinationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ApiDestinationArn: S.optional(S.String), + ApiDestinationState: S.optional(ApiDestinationState), + CreationTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + LastModifiedTime: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + }).pipe(ns), +).annotate({ + identifier: "UpdateApiDestinationResponse", +}) as any as S.Schema; export interface UpdateArchiveRequest { ArchiveName: string; Description?: string; @@ -3428,8 +3399,8 @@ export interface UpdateConnectionOAuthRequestParameters { HttpMethod?: ConnectionOAuthHttpMethod; OAuthHttpParameters?: ConnectionHttpParameters; } -export const UpdateConnectionOAuthRequestParameters = - /*@__PURE__*/ S.suspend(() => +export const UpdateConnectionOAuthRequestParameters = /*@__PURE__*/ S.suspend( + () => S.Struct({ ClientParameters: S.optional( UpdateConnectionOAuthClientRequestParameters, @@ -3438,9 +3409,9 @@ export const UpdateConnectionOAuthRequestParameters = HttpMethod: S.optional(ConnectionOAuthHttpMethod), OAuthHttpParameters: S.optional(ConnectionHttpParameters), }), - ).annotate({ - identifier: "UpdateConnectionOAuthRequestParameters", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateConnectionOAuthRequestParameters", +}) as any as S.Schema; export interface UpdateConnectionApiKeyAuthRequestParameters { ApiKeyName?: string; ApiKeyValue?: string | redacted.Redacted; @@ -3461,8 +3432,8 @@ export interface UpdateConnectionAuthRequestParameters { InvocationHttpParameters?: ConnectionHttpParameters; ConnectivityParameters?: ConnectivityResourceParameters; } -export const UpdateConnectionAuthRequestParameters = - /*@__PURE__*/ S.suspend(() => +export const UpdateConnectionAuthRequestParameters = /*@__PURE__*/ S.suspend( + () => S.Struct({ BasicAuthParameters: S.optional( UpdateConnectionBasicAuthRequestParameters, @@ -3474,9 +3445,9 @@ export const UpdateConnectionAuthRequestParameters = InvocationHttpParameters: S.optional(ConnectionHttpParameters), ConnectivityParameters: S.optional(ConnectivityResourceParameters), }), - ).annotate({ - identifier: "UpdateConnectionAuthRequestParameters", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateConnectionAuthRequestParameters", +}) as any as S.Schema; export interface UpdateConnectionRequest { Name: string; Description?: string; @@ -3681,6 +3652,14 @@ export class ThrottlingException extends S.TaggedErrorClass "ThrottlingException", { message: S.optional(S.String) }, ).pipe(C.withThrottlingError, C.withRetryableError) {} +export class EventBusHasRules extends S.TaggedErrorClass()( + "EventBusHasRules", + {}, + T.SyntheticError({ + from: "ValidationException", + message: { includes: "has rules" }, + }), +).pipe(C.withConflictError) {} export class ManagedRuleException extends S.TaggedErrorClass()( "ManagedRuleException", { message: S.optional(S.String) }, @@ -4125,6 +4104,7 @@ export type DeleteEventBusError = | ConcurrentModificationException | InternalException | ResourceNotFoundException + | EventBusHasRules | CommonErrors; /** * Deletes the specified custom event bus or partner event bus. All rules associated with @@ -4142,6 +4122,7 @@ export const deleteEventBus: API.OperationMethod< ConcurrentModificationException, InternalException, ResourceNotFoundException, + EventBusHasRules, ], operationName: "DeleteEventBus", })); diff --git a/packages/aws/src/services/finspace-data.ts b/packages/aws/src/services/finspace-data.ts index f02aac7a06..0688e5771b 100644 --- a/packages/aws/src/services/finspace-data.ts +++ b/packages/aws/src/services/finspace-data.ts @@ -1769,30 +1769,37 @@ export const UpdateUserResponse = /*@__PURE__*/ S.suspend(() => export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { message: S.optional(S.String), reason: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.optional(S.String), reason: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", {}, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", { message: S.optional(S.String), reason: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class LimitExceededException extends S.TaggedErrorClass()( "LimitExceededException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} //# Operations diff --git a/packages/aws/src/services/finspace.ts b/packages/aws/src/services/finspace.ts index 4a725f9505..f018ed5f2b 100644 --- a/packages/aws/src/services/finspace.ts +++ b/packages/aws/src/services/finspace.ts @@ -3416,42 +3416,52 @@ export const UpdateKxVolumeResponse = /*@__PURE__*/ S.suspend(() => export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class LimitExceededException extends S.TaggedErrorClass()( "LimitExceededException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", { message: S.optional(S.String) }, + T.HttpError(402), ).pipe(C.withQuotaError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", { message: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { message: S.optional(S.String), reason: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ResourceAlreadyExistsException extends S.TaggedErrorClass()( "ResourceAlreadyExistsException", { message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withAlreadyExistsError) {} export class InvalidRequestException extends S.TaggedErrorClass()( "InvalidRequestException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} //# Operations diff --git a/packages/aws/src/services/firehose.ts b/packages/aws/src/services/firehose.ts index 9c9cad7ca9..cee187bc3b 100644 --- a/packages/aws/src/services/firehose.ts +++ b/packages/aws/src/services/firehose.ts @@ -203,22 +203,20 @@ export const DeliveryStreamType = /*@__PURE__*/ S.String; export interface DirectPutSourceConfiguration { ThroughputHintInMBs: number; } -export const DirectPutSourceConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ThroughputHintInMBs: S.Number }), - ).annotate({ - identifier: "DirectPutSourceConfiguration", - }) as any as S.Schema; +export const DirectPutSourceConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ ThroughputHintInMBs: S.Number }), +).annotate({ + identifier: "DirectPutSourceConfiguration", +}) as any as S.Schema; export interface KinesisStreamSourceConfiguration { KinesisStreamARN: string; RoleARN: string; } -export const KinesisStreamSourceConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ KinesisStreamARN: S.String, RoleARN: S.String }), - ).annotate({ - identifier: "KinesisStreamSourceConfiguration", - }) as any as S.Schema; +export const KinesisStreamSourceConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ KinesisStreamARN: S.String, RoleARN: S.String }), +).annotate({ + identifier: "KinesisStreamSourceConfiguration", +}) as any as S.Schema; export type KeyType = "AWS_OWNED_CMK" | "CUSTOMER_MANAGED_CMK" | (string & {}); export const KeyType = /*@__PURE__*/ S.String; export interface DeliveryStreamEncryptionConfigurationInput { @@ -461,8 +459,9 @@ export const ParquetSerDe = /*@__PURE__*/ S.suspend(() => export type OrcCompression = "NONE" | "ZLIB" | "SNAPPY" | (string & {}); export const OrcCompression = /*@__PURE__*/ S.String; export type ListOfNonEmptyStringsWithoutWhitespace = string[]; -export const ListOfNonEmptyStringsWithoutWhitespace = - /*@__PURE__*/ S.Array(S.String); +export const ListOfNonEmptyStringsWithoutWhitespace = /*@__PURE__*/ S.Array( + S.String, +); export type OrcFormatVersion = "V0_11" | "V0_12" | (string & {}); export const OrcFormatVersion = /*@__PURE__*/ S.String; export interface OrcSerDe { @@ -515,17 +514,16 @@ export interface DataFormatConversionConfiguration { OutputFormatConfiguration?: OutputFormatConfiguration; Enabled?: boolean; } -export const DataFormatConversionConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SchemaConfiguration: S.optional(SchemaConfiguration), - InputFormatConfiguration: S.optional(InputFormatConfiguration), - OutputFormatConfiguration: S.optional(OutputFormatConfiguration), - Enabled: S.optional(S.Boolean), - }), - ).annotate({ - identifier: "DataFormatConversionConfiguration", - }) as any as S.Schema; +export const DataFormatConversionConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SchemaConfiguration: S.optional(SchemaConfiguration), + InputFormatConfiguration: S.optional(InputFormatConfiguration), + OutputFormatConfiguration: S.optional(OutputFormatConfiguration), + Enabled: S.optional(S.Boolean), + }), +).annotate({ + identifier: "DataFormatConversionConfiguration", +}) as any as S.Schema; export interface RetryOptions { DurationInSeconds?: number; } @@ -536,15 +534,14 @@ export interface DynamicPartitioningConfiguration { RetryOptions?: RetryOptions; Enabled?: boolean; } -export const DynamicPartitioningConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RetryOptions: S.optional(RetryOptions), - Enabled: S.optional(S.Boolean), - }), - ).annotate({ - identifier: "DynamicPartitioningConfiguration", - }) as any as S.Schema; +export const DynamicPartitioningConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RetryOptions: S.optional(RetryOptions), + Enabled: S.optional(S.Boolean), + }), +).annotate({ + identifier: "DynamicPartitioningConfiguration", +}) as any as S.Schema; export interface ExtendedS3DestinationConfiguration { RoleARN: string; BucketARN: string; @@ -562,32 +559,31 @@ export interface ExtendedS3DestinationConfiguration { FileExtension?: string; CustomTimeZone?: string; } -export const ExtendedS3DestinationConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RoleARN: S.String, - BucketARN: S.String, - Prefix: S.optional(S.String), - ErrorOutputPrefix: S.optional(S.String), - BufferingHints: S.optional(BufferingHints), - CompressionFormat: S.optional(CompressionFormat), - EncryptionConfiguration: S.optional(EncryptionConfiguration), - CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), - ProcessingConfiguration: S.optional(ProcessingConfiguration), - S3BackupMode: S.optional(S3BackupMode), - S3BackupConfiguration: S.optional(S3DestinationConfiguration), - DataFormatConversionConfiguration: S.optional( - DataFormatConversionConfiguration, - ), - DynamicPartitioningConfiguration: S.optional( - DynamicPartitioningConfiguration, - ), - FileExtension: S.optional(S.String), - CustomTimeZone: S.optional(S.String), - }), - ).annotate({ - identifier: "ExtendedS3DestinationConfiguration", - }) as any as S.Schema; +export const ExtendedS3DestinationConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RoleARN: S.String, + BucketARN: S.String, + Prefix: S.optional(S.String), + ErrorOutputPrefix: S.optional(S.String), + BufferingHints: S.optional(BufferingHints), + CompressionFormat: S.optional(CompressionFormat), + EncryptionConfiguration: S.optional(EncryptionConfiguration), + CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), + ProcessingConfiguration: S.optional(ProcessingConfiguration), + S3BackupMode: S.optional(S3BackupMode), + S3BackupConfiguration: S.optional(S3DestinationConfiguration), + DataFormatConversionConfiguration: S.optional( + DataFormatConversionConfiguration, + ), + DynamicPartitioningConfiguration: S.optional( + DynamicPartitioningConfiguration, + ), + FileExtension: S.optional(S.String), + CustomTimeZone: S.optional(S.String), + }), +).annotate({ + identifier: "ExtendedS3DestinationConfiguration", +}) as any as S.Schema; export interface CopyCommand { DataTableName: string; DataTableColumns?: string; @@ -615,16 +611,15 @@ export interface SecretsManagerConfiguration { RoleARN?: string; Enabled: boolean; } -export const SecretsManagerConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SecretARN: S.optional(S.String), - RoleARN: S.optional(S.String), - Enabled: S.Boolean, - }), - ).annotate({ - identifier: "SecretsManagerConfiguration", - }) as any as S.Schema; +export const SecretsManagerConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SecretARN: S.optional(S.String), + RoleARN: S.optional(S.String), + Enabled: S.Boolean, + }), +).annotate({ + identifier: "SecretsManagerConfiguration", +}) as any as S.Schema; export interface RedshiftDestinationConfiguration { RoleARN: string; ClusterJDBCURL: string; @@ -639,25 +634,24 @@ export interface RedshiftDestinationConfiguration { CloudWatchLoggingOptions?: CloudWatchLoggingOptions; SecretsManagerConfiguration?: SecretsManagerConfiguration; } -export const RedshiftDestinationConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RoleARN: S.String, - ClusterJDBCURL: S.String, - CopyCommand: CopyCommand, - Username: S.optional(SensitiveString), - Password: S.optional(SensitiveString), - RetryOptions: S.optional(RedshiftRetryOptions), - S3Configuration: S3DestinationConfiguration, - ProcessingConfiguration: S.optional(ProcessingConfiguration), - S3BackupMode: S.optional(RedshiftS3BackupMode), - S3BackupConfiguration: S.optional(S3DestinationConfiguration), - CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), - SecretsManagerConfiguration: S.optional(SecretsManagerConfiguration), - }), - ).annotate({ - identifier: "RedshiftDestinationConfiguration", - }) as any as S.Schema; +export const RedshiftDestinationConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RoleARN: S.String, + ClusterJDBCURL: S.String, + CopyCommand: CopyCommand, + Username: S.optional(SensitiveString), + Password: S.optional(SensitiveString), + RetryOptions: S.optional(RedshiftRetryOptions), + S3Configuration: S3DestinationConfiguration, + ProcessingConfiguration: S.optional(ProcessingConfiguration), + S3BackupMode: S.optional(RedshiftS3BackupMode), + S3BackupConfiguration: S.optional(S3DestinationConfiguration), + CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), + SecretsManagerConfiguration: S.optional(SecretsManagerConfiguration), + }), +).annotate({ + identifier: "RedshiftDestinationConfiguration", +}) as any as S.Schema; export type ElasticsearchIndexRotationPeriod = | "NoRotation" | "OneHour" @@ -670,15 +664,14 @@ export interface ElasticsearchBufferingHints { IntervalInSeconds?: number; SizeInMBs?: number; } -export const ElasticsearchBufferingHints = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - IntervalInSeconds: S.optional(S.Number), - SizeInMBs: S.optional(S.Number), - }), - ).annotate({ - identifier: "ElasticsearchBufferingHints", - }) as any as S.Schema; +export const ElasticsearchBufferingHints = /*@__PURE__*/ S.suspend(() => + S.Struct({ + IntervalInSeconds: S.optional(S.Number), + SizeInMBs: S.optional(S.Number), + }), +).annotate({ + identifier: "ElasticsearchBufferingHints", +}) as any as S.Schema; export interface ElasticsearchRetryOptions { DurationInSeconds?: number; } @@ -739,8 +732,8 @@ export interface ElasticsearchDestinationConfiguration { VpcConfiguration?: VpcConfiguration; DocumentIdOptions?: DocumentIdOptions; } -export const ElasticsearchDestinationConfiguration = - /*@__PURE__*/ S.suspend(() => +export const ElasticsearchDestinationConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ RoleARN: S.String, DomainARN: S.optional(S.String), @@ -757,9 +750,9 @@ export const ElasticsearchDestinationConfiguration = VpcConfiguration: S.optional(VpcConfiguration), DocumentIdOptions: S.optional(DocumentIdOptions), }), - ).annotate({ - identifier: "ElasticsearchDestinationConfiguration", - }) as any as S.Schema; +).annotate({ + identifier: "ElasticsearchDestinationConfiguration", +}) as any as S.Schema; export type AmazonopensearchserviceIndexRotationPeriod = | "NoRotation" | "OneHour" @@ -773,24 +766,23 @@ export interface AmazonopensearchserviceBufferingHints { IntervalInSeconds?: number; SizeInMBs?: number; } -export const AmazonopensearchserviceBufferingHints = - /*@__PURE__*/ S.suspend(() => +export const AmazonopensearchserviceBufferingHints = /*@__PURE__*/ S.suspend( + () => S.Struct({ IntervalInSeconds: S.optional(S.Number), SizeInMBs: S.optional(S.Number), }), - ).annotate({ - identifier: "AmazonopensearchserviceBufferingHints", - }) as any as S.Schema; +).annotate({ + identifier: "AmazonopensearchserviceBufferingHints", +}) as any as S.Schema; export interface AmazonopensearchserviceRetryOptions { DurationInSeconds?: number; } -export const AmazonopensearchserviceRetryOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DurationInSeconds: S.optional(S.Number) }), - ).annotate({ - identifier: "AmazonopensearchserviceRetryOptions", - }) as any as S.Schema; +export const AmazonopensearchserviceRetryOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ DurationInSeconds: S.optional(S.Number) }), +).annotate({ + identifier: "AmazonopensearchserviceRetryOptions", +}) as any as S.Schema; export type AmazonopensearchserviceS3BackupMode = | "FailedDocumentsOnly" | "AllDocuments" @@ -865,7 +857,7 @@ export const SplunkBufferingHints = /*@__PURE__*/ S.suspend(() => export interface SplunkDestinationConfiguration { HECEndpoint: string; HECEndpointType: HECEndpointType; - HECToken?: string; + HECToken?: string | redacted.Redacted; HECAcknowledgmentTimeoutInSeconds?: number; RetryOptions?: SplunkRetryOptions; S3BackupMode?: SplunkS3BackupMode; @@ -875,24 +867,23 @@ export interface SplunkDestinationConfiguration { BufferingHints?: SplunkBufferingHints; SecretsManagerConfiguration?: SecretsManagerConfiguration; } -export const SplunkDestinationConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - HECEndpoint: S.String, - HECEndpointType: HECEndpointType, - HECToken: S.optional(S.String), - HECAcknowledgmentTimeoutInSeconds: S.optional(S.Number), - RetryOptions: S.optional(SplunkRetryOptions), - S3BackupMode: S.optional(SplunkS3BackupMode), - S3Configuration: S3DestinationConfiguration, - ProcessingConfiguration: S.optional(ProcessingConfiguration), - CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), - BufferingHints: S.optional(SplunkBufferingHints), - SecretsManagerConfiguration: S.optional(SecretsManagerConfiguration), - }), - ).annotate({ - identifier: "SplunkDestinationConfiguration", - }) as any as S.Schema; +export const SplunkDestinationConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + HECEndpoint: S.String, + HECEndpointType: HECEndpointType, + HECToken: S.optional(SensitiveString), + HECAcknowledgmentTimeoutInSeconds: S.optional(S.Number), + RetryOptions: S.optional(SplunkRetryOptions), + S3BackupMode: S.optional(SplunkS3BackupMode), + S3Configuration: S3DestinationConfiguration, + ProcessingConfiguration: S.optional(ProcessingConfiguration), + CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), + BufferingHints: S.optional(SplunkBufferingHints), + SecretsManagerConfiguration: S.optional(SecretsManagerConfiguration), + }), +).annotate({ + identifier: "SplunkDestinationConfiguration", +}) as any as S.Schema; export interface HttpEndpointConfiguration { Url: string | redacted.Redacted; Name?: string; @@ -925,31 +916,27 @@ export interface HttpEndpointCommonAttribute { AttributeName: string | redacted.Redacted; AttributeValue: string | redacted.Redacted; } -export const HttpEndpointCommonAttribute = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AttributeName: SensitiveString, - AttributeValue: SensitiveString, - }), - ).annotate({ - identifier: "HttpEndpointCommonAttribute", - }) as any as S.Schema; +export const HttpEndpointCommonAttribute = /*@__PURE__*/ S.suspend(() => + S.Struct({ AttributeName: SensitiveString, AttributeValue: SensitiveString }), +).annotate({ + identifier: "HttpEndpointCommonAttribute", +}) as any as S.Schema; export type HttpEndpointCommonAttributesList = HttpEndpointCommonAttribute[]; -export const HttpEndpointCommonAttributesList = - /*@__PURE__*/ S.Array(HttpEndpointCommonAttribute); +export const HttpEndpointCommonAttributesList = /*@__PURE__*/ S.Array( + HttpEndpointCommonAttribute, +); export interface HttpEndpointRequestConfiguration { ContentEncoding?: ContentEncoding; CommonAttributes?: HttpEndpointCommonAttribute[]; } -export const HttpEndpointRequestConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ContentEncoding: S.optional(ContentEncoding), - CommonAttributes: S.optional(HttpEndpointCommonAttributesList), - }), - ).annotate({ - identifier: "HttpEndpointRequestConfiguration", - }) as any as S.Schema; +export const HttpEndpointRequestConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ContentEncoding: S.optional(ContentEncoding), + CommonAttributes: S.optional(HttpEndpointCommonAttributesList), + }), +).annotate({ + identifier: "HttpEndpointRequestConfiguration", +}) as any as S.Schema; export interface HttpEndpointRetryOptions { DurationInSeconds?: number; } @@ -975,8 +962,8 @@ export interface HttpEndpointDestinationConfiguration { S3Configuration: S3DestinationConfiguration; SecretsManagerConfiguration?: SecretsManagerConfiguration; } -export const HttpEndpointDestinationConfiguration = - /*@__PURE__*/ S.suspend(() => +export const HttpEndpointDestinationConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ EndpointConfiguration: HttpEndpointConfiguration, BufferingHints: S.optional(HttpEndpointBufferingHints), @@ -989,9 +976,9 @@ export const HttpEndpointDestinationConfiguration = S3Configuration: S3DestinationConfiguration, SecretsManagerConfiguration: S.optional(SecretsManagerConfiguration), }), - ).annotate({ - identifier: "HttpEndpointDestinationConfiguration", - }) as any as S.Schema; +).annotate({ + identifier: "HttpEndpointDestinationConfiguration", +}) as any as S.Schema; export interface Tag { Key: string; Value?: string; @@ -1005,24 +992,23 @@ export interface AmazonOpenSearchServerlessBufferingHints { IntervalInSeconds?: number; SizeInMBs?: number; } -export const AmazonOpenSearchServerlessBufferingHints = - /*@__PURE__*/ S.suspend(() => +export const AmazonOpenSearchServerlessBufferingHints = /*@__PURE__*/ S.suspend( + () => S.Struct({ IntervalInSeconds: S.optional(S.Number), SizeInMBs: S.optional(S.Number), }), - ).annotate({ - identifier: "AmazonOpenSearchServerlessBufferingHints", - }) as any as S.Schema; +).annotate({ + identifier: "AmazonOpenSearchServerlessBufferingHints", +}) as any as S.Schema; export interface AmazonOpenSearchServerlessRetryOptions { DurationInSeconds?: number; } -export const AmazonOpenSearchServerlessRetryOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DurationInSeconds: S.optional(S.Number) }), - ).annotate({ - identifier: "AmazonOpenSearchServerlessRetryOptions", - }) as any as S.Schema; +export const AmazonOpenSearchServerlessRetryOptions = /*@__PURE__*/ S.suspend( + () => S.Struct({ DurationInSeconds: S.optional(S.Number) }), +).annotate({ + identifier: "AmazonOpenSearchServerlessRetryOptions", +}) as any as S.Schema; export type AmazonOpenSearchServerlessS3BackupMode = | "FailedDocumentsOnly" | "AllDocuments" @@ -1063,12 +1049,11 @@ export interface AuthenticationConfiguration { RoleARN: string; Connectivity: Connectivity; } -export const AuthenticationConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ RoleARN: S.String, Connectivity: Connectivity }), - ).annotate({ - identifier: "AuthenticationConfiguration", - }) as any as S.Schema; +export const AuthenticationConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ RoleARN: S.String, Connectivity: Connectivity }), +).annotate({ + identifier: "AuthenticationConfiguration", +}) as any as S.Schema; export interface MSKSourceConfiguration { MSKClusterARN: string; TopicName: string; @@ -1160,33 +1145,32 @@ export interface SnowflakeDestinationConfiguration { SecretsManagerConfiguration?: SecretsManagerConfiguration; BufferingHints?: SnowflakeBufferingHints; } -export const SnowflakeDestinationConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AccountUrl: SensitiveString, - PrivateKey: S.optional(SensitiveString), - KeyPassphrase: S.optional(SensitiveString), - User: S.optional(SensitiveString), - Database: SensitiveString, - Schema: SensitiveString, - Table: SensitiveString, - SnowflakeRoleConfiguration: S.optional(SnowflakeRoleConfiguration), - DataLoadingOption: S.optional(SnowflakeDataLoadingOption), - MetaDataColumnName: S.optional(SensitiveString), - ContentColumnName: S.optional(SensitiveString), - SnowflakeVpcConfiguration: S.optional(SnowflakeVpcConfiguration), - CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), - ProcessingConfiguration: S.optional(ProcessingConfiguration), - RoleARN: S.String, - RetryOptions: S.optional(SnowflakeRetryOptions), - S3BackupMode: S.optional(SnowflakeS3BackupMode), - S3Configuration: S3DestinationConfiguration, - SecretsManagerConfiguration: S.optional(SecretsManagerConfiguration), - BufferingHints: S.optional(SnowflakeBufferingHints), - }), - ).annotate({ - identifier: "SnowflakeDestinationConfiguration", - }) as any as S.Schema; +export const SnowflakeDestinationConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AccountUrl: SensitiveString, + PrivateKey: S.optional(SensitiveString), + KeyPassphrase: S.optional(SensitiveString), + User: S.optional(SensitiveString), + Database: SensitiveString, + Schema: SensitiveString, + Table: SensitiveString, + SnowflakeRoleConfiguration: S.optional(SnowflakeRoleConfiguration), + DataLoadingOption: S.optional(SnowflakeDataLoadingOption), + MetaDataColumnName: S.optional(SensitiveString), + ContentColumnName: S.optional(SensitiveString), + SnowflakeVpcConfiguration: S.optional(SnowflakeVpcConfiguration), + CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), + ProcessingConfiguration: S.optional(ProcessingConfiguration), + RoleARN: S.String, + RetryOptions: S.optional(SnowflakeRetryOptions), + S3BackupMode: S.optional(SnowflakeS3BackupMode), + S3Configuration: S3DestinationConfiguration, + SecretsManagerConfiguration: S.optional(SecretsManagerConfiguration), + BufferingHints: S.optional(SnowflakeBufferingHints), + }), +).annotate({ + identifier: "SnowflakeDestinationConfiguration", +}) as any as S.Schema; export interface PartitionField { SourceName: string; } @@ -1208,28 +1192,29 @@ export interface DestinationTableConfiguration { PartitionSpec?: PartitionSpec; S3ErrorOutputPrefix?: string; } -export const DestinationTableConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DestinationTableName: S.String, - DestinationDatabaseName: S.String, - UniqueKeys: S.optional(ListOfNonEmptyStringsWithoutWhitespace), - PartitionSpec: S.optional(PartitionSpec), - S3ErrorOutputPrefix: S.optional(S.String), - }), - ).annotate({ - identifier: "DestinationTableConfiguration", - }) as any as S.Schema; +export const DestinationTableConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DestinationTableName: S.String, + DestinationDatabaseName: S.String, + UniqueKeys: S.optional(ListOfNonEmptyStringsWithoutWhitespace), + PartitionSpec: S.optional(PartitionSpec), + S3ErrorOutputPrefix: S.optional(S.String), + }), +).annotate({ + identifier: "DestinationTableConfiguration", +}) as any as S.Schema; export type DestinationTableConfigurationList = DestinationTableConfiguration[]; -export const DestinationTableConfigurationList = - /*@__PURE__*/ S.Array(DestinationTableConfiguration); +export const DestinationTableConfigurationList = /*@__PURE__*/ S.Array( + DestinationTableConfiguration, +); export interface SchemaEvolutionConfiguration { Enabled: boolean; } -export const SchemaEvolutionConfiguration = - /*@__PURE__*/ S.suspend(() => S.Struct({ Enabled: S.Boolean })).annotate({ - identifier: "SchemaEvolutionConfiguration", - }) as any as S.Schema; +export const SchemaEvolutionConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ Enabled: S.Boolean }), +).annotate({ + identifier: "SchemaEvolutionConfiguration", +}) as any as S.Schema; export interface TableCreationConfiguration { Enabled: boolean; } @@ -1266,27 +1251,26 @@ export interface IcebergDestinationConfiguration { CatalogConfiguration: CatalogConfiguration; S3Configuration: S3DestinationConfiguration; } -export const IcebergDestinationConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DestinationTableConfigurationList: S.optional( - DestinationTableConfigurationList, - ), - SchemaEvolutionConfiguration: S.optional(SchemaEvolutionConfiguration), - TableCreationConfiguration: S.optional(TableCreationConfiguration), - BufferingHints: S.optional(BufferingHints), - CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), - ProcessingConfiguration: S.optional(ProcessingConfiguration), - S3BackupMode: S.optional(IcebergS3BackupMode), - RetryOptions: S.optional(RetryOptions), - RoleARN: S.String, - AppendOnly: S.optional(S.Boolean), - CatalogConfiguration: CatalogConfiguration, - S3Configuration: S3DestinationConfiguration, - }), - ).annotate({ - identifier: "IcebergDestinationConfiguration", - }) as any as S.Schema; +export const IcebergDestinationConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DestinationTableConfigurationList: S.optional( + DestinationTableConfigurationList, + ), + SchemaEvolutionConfiguration: S.optional(SchemaEvolutionConfiguration), + TableCreationConfiguration: S.optional(TableCreationConfiguration), + BufferingHints: S.optional(BufferingHints), + CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), + ProcessingConfiguration: S.optional(ProcessingConfiguration), + S3BackupMode: S.optional(IcebergS3BackupMode), + RetryOptions: S.optional(RetryOptions), + RoleARN: S.String, + AppendOnly: S.optional(S.Boolean), + CatalogConfiguration: CatalogConfiguration, + S3Configuration: S3DestinationConfiguration, + }), +).annotate({ + identifier: "IcebergDestinationConfiguration", +}) as any as S.Schema; export type DatabaseType = "MySQL" | "PostgreSQL" | (string & {}); export const DatabaseType = /*@__PURE__*/ S.String; export type SSLMode = "Disabled" | "Enabled" | (string & {}); @@ -1304,8 +1288,9 @@ export const DatabaseList = /*@__PURE__*/ S.suspend(() => }), ).annotate({ identifier: "DatabaseList" }) as any as S.Schema; export type DatabaseTableIncludeOrExcludeList = string[]; -export const DatabaseTableIncludeOrExcludeList = - /*@__PURE__*/ S.Array(S.String); +export const DatabaseTableIncludeOrExcludeList = /*@__PURE__*/ S.Array( + S.String, +); export interface DatabaseTableList { Include?: string[]; Exclude?: string[]; @@ -1319,8 +1304,9 @@ export const DatabaseTableList = /*@__PURE__*/ S.suspend(() => identifier: "DatabaseTableList", }) as any as S.Schema; export type DatabaseColumnIncludeOrExcludeList = string[]; -export const DatabaseColumnIncludeOrExcludeList = - /*@__PURE__*/ S.Array(S.String); +export const DatabaseColumnIncludeOrExcludeList = /*@__PURE__*/ S.Array( + S.String, +); export interface DatabaseColumnList { Include?: string[]; Exclude?: string[]; @@ -1347,12 +1333,11 @@ export const DatabaseSourceAuthenticationConfiguration = export interface DatabaseSourceVPCConfiguration { VpcEndpointServiceName: string; } -export const DatabaseSourceVPCConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ VpcEndpointServiceName: S.String }), - ).annotate({ - identifier: "DatabaseSourceVPCConfiguration", - }) as any as S.Schema; +export const DatabaseSourceVPCConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ VpcEndpointServiceName: S.String }), +).annotate({ + identifier: "DatabaseSourceVPCConfiguration", +}) as any as S.Schema; export interface DatabaseSourceConfiguration { Type: DatabaseType; Endpoint: string; @@ -1366,25 +1351,24 @@ export interface DatabaseSourceConfiguration { DatabaseSourceAuthenticationConfiguration: DatabaseSourceAuthenticationConfiguration; DatabaseSourceVPCConfiguration: DatabaseSourceVPCConfiguration; } -export const DatabaseSourceConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Type: DatabaseType, - Endpoint: S.String, - Port: S.Number, - SSLMode: S.optional(SSLMode), - Databases: DatabaseList, - Tables: DatabaseTableList, - Columns: S.optional(DatabaseColumnList), - SurrogateKeys: S.optional(DatabaseSurrogateKeyList), - SnapshotWatermarkTable: S.String, - DatabaseSourceAuthenticationConfiguration: - DatabaseSourceAuthenticationConfiguration, - DatabaseSourceVPCConfiguration: DatabaseSourceVPCConfiguration, - }), - ).annotate({ - identifier: "DatabaseSourceConfiguration", - }) as any as S.Schema; +export const DatabaseSourceConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Type: DatabaseType, + Endpoint: S.String, + Port: S.Number, + SSLMode: S.optional(SSLMode), + Databases: DatabaseList, + Tables: DatabaseTableList, + Columns: S.optional(DatabaseColumnList), + SurrogateKeys: S.optional(DatabaseSurrogateKeyList), + SnapshotWatermarkTable: S.String, + DatabaseSourceAuthenticationConfiguration: + DatabaseSourceAuthenticationConfiguration, + DatabaseSourceVPCConfiguration: DatabaseSourceVPCConfiguration, + }), +).annotate({ + identifier: "DatabaseSourceConfiguration", +}) as any as S.Schema; export interface CreateDeliveryStreamInput { DeliveryStreamName: string; DeliveryStreamType?: DeliveryStreamType; @@ -1500,26 +1484,25 @@ export interface DescribeDeliveryStreamInput { Limit?: number; ExclusiveStartDestinationId?: string; } -export const DescribeDeliveryStreamInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DeliveryStreamName: S.String, - Limit: S.optional(S.Number), - ExclusiveStartDestinationId: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeDeliveryStreamInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DeliveryStreamName: S.String, + Limit: S.optional(S.Number), + ExclusiveStartDestinationId: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeDeliveryStreamInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeDeliveryStreamInput", +}) as any as S.Schema; export type DeliveryStreamStatus = | "CREATING" | "CREATING_FAILED" @@ -1572,17 +1555,17 @@ export interface DeliveryStreamEncryptionConfiguration { Status?: DeliveryStreamEncryptionStatus; FailureDescription?: FailureDescription; } -export const DeliveryStreamEncryptionConfiguration = - /*@__PURE__*/ S.suspend(() => +export const DeliveryStreamEncryptionConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ KeyARN: S.optional(S.String), KeyType: S.optional(KeyType), Status: S.optional(DeliveryStreamEncryptionStatus), FailureDescription: S.optional(FailureDescription), }), - ).annotate({ - identifier: "DeliveryStreamEncryptionConfiguration", - }) as any as S.Schema; +).annotate({ + identifier: "DeliveryStreamEncryptionConfiguration", +}) as any as S.Schema; export interface DirectPutSourceDescription { ThroughputHintInMBs?: number; } @@ -1596,18 +1579,17 @@ export interface KinesisStreamSourceDescription { RoleARN?: string; DeliveryStartTimestamp?: Date; } -export const KinesisStreamSourceDescription = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - KinesisStreamARN: S.optional(S.String), - RoleARN: S.optional(S.String), - DeliveryStartTimestamp: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - }), - ).annotate({ - identifier: "KinesisStreamSourceDescription", - }) as any as S.Schema; +export const KinesisStreamSourceDescription = /*@__PURE__*/ S.suspend(() => + S.Struct({ + KinesisStreamARN: S.optional(S.String), + RoleARN: S.optional(S.String), + DeliveryStartTimestamp: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + }), +).annotate({ + identifier: "KinesisStreamSourceDescription", +}) as any as S.Schema; export interface MSKSourceDescription { MSKClusterARN?: string; TopicName?: string; @@ -1752,32 +1734,31 @@ export interface ExtendedS3DestinationDescription { FileExtension?: string; CustomTimeZone?: string; } -export const ExtendedS3DestinationDescription = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RoleARN: S.String, - BucketARN: S.String, - Prefix: S.optional(S.String), - ErrorOutputPrefix: S.optional(S.String), - BufferingHints: BufferingHints, - CompressionFormat: CompressionFormat, - EncryptionConfiguration: EncryptionConfiguration, - CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), - ProcessingConfiguration: S.optional(ProcessingConfiguration), - S3BackupMode: S.optional(S3BackupMode), - S3BackupDescription: S.optional(S3DestinationDescription), - DataFormatConversionConfiguration: S.optional( - DataFormatConversionConfiguration, - ), - DynamicPartitioningConfiguration: S.optional( - DynamicPartitioningConfiguration, - ), - FileExtension: S.optional(S.String), - CustomTimeZone: S.optional(S.String), - }), - ).annotate({ - identifier: "ExtendedS3DestinationDescription", - }) as any as S.Schema; +export const ExtendedS3DestinationDescription = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RoleARN: S.String, + BucketARN: S.String, + Prefix: S.optional(S.String), + ErrorOutputPrefix: S.optional(S.String), + BufferingHints: BufferingHints, + CompressionFormat: CompressionFormat, + EncryptionConfiguration: EncryptionConfiguration, + CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), + ProcessingConfiguration: S.optional(ProcessingConfiguration), + S3BackupMode: S.optional(S3BackupMode), + S3BackupDescription: S.optional(S3DestinationDescription), + DataFormatConversionConfiguration: S.optional( + DataFormatConversionConfiguration, + ), + DynamicPartitioningConfiguration: S.optional( + DynamicPartitioningConfiguration, + ), + FileExtension: S.optional(S.String), + CustomTimeZone: S.optional(S.String), + }), +).annotate({ + identifier: "ExtendedS3DestinationDescription", +}) as any as S.Schema; export interface RedshiftDestinationDescription { RoleARN: string; ClusterJDBCURL: string; @@ -1791,41 +1772,39 @@ export interface RedshiftDestinationDescription { CloudWatchLoggingOptions?: CloudWatchLoggingOptions; SecretsManagerConfiguration?: SecretsManagerConfiguration; } -export const RedshiftDestinationDescription = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RoleARN: S.String, - ClusterJDBCURL: S.String, - CopyCommand: CopyCommand, - Username: S.optional(SensitiveString), - RetryOptions: S.optional(RedshiftRetryOptions), - S3DestinationDescription: S3DestinationDescription, - ProcessingConfiguration: S.optional(ProcessingConfiguration), - S3BackupMode: S.optional(RedshiftS3BackupMode), - S3BackupDescription: S.optional(S3DestinationDescription), - CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), - SecretsManagerConfiguration: S.optional(SecretsManagerConfiguration), - }), - ).annotate({ - identifier: "RedshiftDestinationDescription", - }) as any as S.Schema; +export const RedshiftDestinationDescription = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RoleARN: S.String, + ClusterJDBCURL: S.String, + CopyCommand: CopyCommand, + Username: S.optional(SensitiveString), + RetryOptions: S.optional(RedshiftRetryOptions), + S3DestinationDescription: S3DestinationDescription, + ProcessingConfiguration: S.optional(ProcessingConfiguration), + S3BackupMode: S.optional(RedshiftS3BackupMode), + S3BackupDescription: S.optional(S3DestinationDescription), + CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), + SecretsManagerConfiguration: S.optional(SecretsManagerConfiguration), + }), +).annotate({ + identifier: "RedshiftDestinationDescription", +}) as any as S.Schema; export interface VpcConfigurationDescription { SubnetIds: string[]; RoleARN: string; SecurityGroupIds: string[]; VpcId: string; } -export const VpcConfigurationDescription = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SubnetIds: SubnetIdList, - RoleARN: S.String, - SecurityGroupIds: SecurityGroupIdList, - VpcId: S.String, - }), - ).annotate({ - identifier: "VpcConfigurationDescription", - }) as any as S.Schema; +export const VpcConfigurationDescription = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SubnetIds: SubnetIdList, + RoleARN: S.String, + SecurityGroupIds: SecurityGroupIdList, + VpcId: S.String, + }), +).annotate({ + identifier: "VpcConfigurationDescription", +}) as any as S.Schema; export interface ElasticsearchDestinationDescription { RoleARN?: string; DomainARN?: string; @@ -1842,27 +1821,26 @@ export interface ElasticsearchDestinationDescription { VpcConfigurationDescription?: VpcConfigurationDescription; DocumentIdOptions?: DocumentIdOptions; } -export const ElasticsearchDestinationDescription = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RoleARN: S.optional(S.String), - DomainARN: S.optional(S.String), - ClusterEndpoint: S.optional(S.String), - IndexName: S.optional(S.String), - TypeName: S.optional(S.String), - IndexRotationPeriod: S.optional(ElasticsearchIndexRotationPeriod), - BufferingHints: S.optional(ElasticsearchBufferingHints), - RetryOptions: S.optional(ElasticsearchRetryOptions), - S3BackupMode: S.optional(ElasticsearchS3BackupMode), - S3DestinationDescription: S.optional(S3DestinationDescription), - ProcessingConfiguration: S.optional(ProcessingConfiguration), - CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), - VpcConfigurationDescription: S.optional(VpcConfigurationDescription), - DocumentIdOptions: S.optional(DocumentIdOptions), - }), - ).annotate({ - identifier: "ElasticsearchDestinationDescription", - }) as any as S.Schema; +export const ElasticsearchDestinationDescription = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RoleARN: S.optional(S.String), + DomainARN: S.optional(S.String), + ClusterEndpoint: S.optional(S.String), + IndexName: S.optional(S.String), + TypeName: S.optional(S.String), + IndexRotationPeriod: S.optional(ElasticsearchIndexRotationPeriod), + BufferingHints: S.optional(ElasticsearchBufferingHints), + RetryOptions: S.optional(ElasticsearchRetryOptions), + S3BackupMode: S.optional(ElasticsearchS3BackupMode), + S3DestinationDescription: S.optional(S3DestinationDescription), + ProcessingConfiguration: S.optional(ProcessingConfiguration), + CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), + VpcConfigurationDescription: S.optional(VpcConfigurationDescription), + DocumentIdOptions: S.optional(DocumentIdOptions), + }), +).annotate({ + identifier: "ElasticsearchDestinationDescription", +}) as any as S.Schema; export interface AmazonopensearchserviceDestinationDescription { RoleARN?: string; DomainARN?: string; @@ -1905,7 +1883,7 @@ export const AmazonopensearchserviceDestinationDescription = export interface SplunkDestinationDescription { HECEndpoint?: string; HECEndpointType?: HECEndpointType; - HECToken?: string; + HECToken?: string | redacted.Redacted; HECAcknowledgmentTimeoutInSeconds?: number; RetryOptions?: SplunkRetryOptions; S3BackupMode?: SplunkS3BackupMode; @@ -1915,24 +1893,23 @@ export interface SplunkDestinationDescription { BufferingHints?: SplunkBufferingHints; SecretsManagerConfiguration?: SecretsManagerConfiguration; } -export const SplunkDestinationDescription = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - HECEndpoint: S.optional(S.String), - HECEndpointType: S.optional(HECEndpointType), - HECToken: S.optional(S.String), - HECAcknowledgmentTimeoutInSeconds: S.optional(S.Number), - RetryOptions: S.optional(SplunkRetryOptions), - S3BackupMode: S.optional(SplunkS3BackupMode), - S3DestinationDescription: S.optional(S3DestinationDescription), - ProcessingConfiguration: S.optional(ProcessingConfiguration), - CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), - BufferingHints: S.optional(SplunkBufferingHints), - SecretsManagerConfiguration: S.optional(SecretsManagerConfiguration), - }), - ).annotate({ - identifier: "SplunkDestinationDescription", - }) as any as S.Schema; +export const SplunkDestinationDescription = /*@__PURE__*/ S.suspend(() => + S.Struct({ + HECEndpoint: S.optional(S.String), + HECEndpointType: S.optional(HECEndpointType), + HECToken: S.optional(SensitiveString), + HECAcknowledgmentTimeoutInSeconds: S.optional(S.Number), + RetryOptions: S.optional(SplunkRetryOptions), + S3BackupMode: S.optional(SplunkS3BackupMode), + S3DestinationDescription: S.optional(S3DestinationDescription), + ProcessingConfiguration: S.optional(ProcessingConfiguration), + CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), + BufferingHints: S.optional(SplunkBufferingHints), + SecretsManagerConfiguration: S.optional(SecretsManagerConfiguration), + }), +).annotate({ + identifier: "SplunkDestinationDescription", +}) as any as S.Schema; export interface HttpEndpointDescription { Url?: string | redacted.Redacted; Name?: string; @@ -1954,23 +1931,22 @@ export interface HttpEndpointDestinationDescription { S3DestinationDescription?: S3DestinationDescription; SecretsManagerConfiguration?: SecretsManagerConfiguration; } -export const HttpEndpointDestinationDescription = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - EndpointConfiguration: S.optional(HttpEndpointDescription), - BufferingHints: S.optional(HttpEndpointBufferingHints), - CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), - RequestConfiguration: S.optional(HttpEndpointRequestConfiguration), - ProcessingConfiguration: S.optional(ProcessingConfiguration), - RoleARN: S.optional(S.String), - RetryOptions: S.optional(HttpEndpointRetryOptions), - S3BackupMode: S.optional(HttpEndpointS3BackupMode), - S3DestinationDescription: S.optional(S3DestinationDescription), - SecretsManagerConfiguration: S.optional(SecretsManagerConfiguration), - }), - ).annotate({ - identifier: "HttpEndpointDestinationDescription", - }) as any as S.Schema; +export const HttpEndpointDestinationDescription = /*@__PURE__*/ S.suspend(() => + S.Struct({ + EndpointConfiguration: S.optional(HttpEndpointDescription), + BufferingHints: S.optional(HttpEndpointBufferingHints), + CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), + RequestConfiguration: S.optional(HttpEndpointRequestConfiguration), + ProcessingConfiguration: S.optional(ProcessingConfiguration), + RoleARN: S.optional(S.String), + RetryOptions: S.optional(HttpEndpointRetryOptions), + S3BackupMode: S.optional(HttpEndpointS3BackupMode), + S3DestinationDescription: S.optional(S3DestinationDescription), + SecretsManagerConfiguration: S.optional(SecretsManagerConfiguration), + }), +).annotate({ + identifier: "HttpEndpointDestinationDescription", +}) as any as S.Schema; export interface SnowflakeDestinationDescription { AccountUrl?: string | redacted.Redacted; User?: string | redacted.Redacted; @@ -1991,31 +1967,30 @@ export interface SnowflakeDestinationDescription { SecretsManagerConfiguration?: SecretsManagerConfiguration; BufferingHints?: SnowflakeBufferingHints; } -export const SnowflakeDestinationDescription = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AccountUrl: S.optional(SensitiveString), - User: S.optional(SensitiveString), - Database: S.optional(SensitiveString), - Schema: S.optional(SensitiveString), - Table: S.optional(SensitiveString), - SnowflakeRoleConfiguration: S.optional(SnowflakeRoleConfiguration), - DataLoadingOption: S.optional(SnowflakeDataLoadingOption), - MetaDataColumnName: S.optional(SensitiveString), - ContentColumnName: S.optional(SensitiveString), - SnowflakeVpcConfiguration: S.optional(SnowflakeVpcConfiguration), - CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), - ProcessingConfiguration: S.optional(ProcessingConfiguration), - RoleARN: S.optional(S.String), - RetryOptions: S.optional(SnowflakeRetryOptions), - S3BackupMode: S.optional(SnowflakeS3BackupMode), - S3DestinationDescription: S.optional(S3DestinationDescription), - SecretsManagerConfiguration: S.optional(SecretsManagerConfiguration), - BufferingHints: S.optional(SnowflakeBufferingHints), - }), - ).annotate({ - identifier: "SnowflakeDestinationDescription", - }) as any as S.Schema; +export const SnowflakeDestinationDescription = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AccountUrl: S.optional(SensitiveString), + User: S.optional(SensitiveString), + Database: S.optional(SensitiveString), + Schema: S.optional(SensitiveString), + Table: S.optional(SensitiveString), + SnowflakeRoleConfiguration: S.optional(SnowflakeRoleConfiguration), + DataLoadingOption: S.optional(SnowflakeDataLoadingOption), + MetaDataColumnName: S.optional(SensitiveString), + ContentColumnName: S.optional(SensitiveString), + SnowflakeVpcConfiguration: S.optional(SnowflakeVpcConfiguration), + CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), + ProcessingConfiguration: S.optional(ProcessingConfiguration), + RoleARN: S.optional(S.String), + RetryOptions: S.optional(SnowflakeRetryOptions), + S3BackupMode: S.optional(SnowflakeS3BackupMode), + S3DestinationDescription: S.optional(S3DestinationDescription), + SecretsManagerConfiguration: S.optional(SecretsManagerConfiguration), + BufferingHints: S.optional(SnowflakeBufferingHints), + }), +).annotate({ + identifier: "SnowflakeDestinationDescription", +}) as any as S.Schema; export interface AmazonOpenSearchServerlessDestinationDescription { RoleARN?: string; CollectionEndpoint?: string; @@ -2059,27 +2034,26 @@ export interface IcebergDestinationDescription { CatalogConfiguration?: CatalogConfiguration; S3DestinationDescription?: S3DestinationDescription; } -export const IcebergDestinationDescription = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DestinationTableConfigurationList: S.optional( - DestinationTableConfigurationList, - ), - SchemaEvolutionConfiguration: S.optional(SchemaEvolutionConfiguration), - TableCreationConfiguration: S.optional(TableCreationConfiguration), - BufferingHints: S.optional(BufferingHints), - CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), - ProcessingConfiguration: S.optional(ProcessingConfiguration), - S3BackupMode: S.optional(IcebergS3BackupMode), - RetryOptions: S.optional(RetryOptions), - RoleARN: S.optional(S.String), - AppendOnly: S.optional(S.Boolean), - CatalogConfiguration: S.optional(CatalogConfiguration), - S3DestinationDescription: S.optional(S3DestinationDescription), - }), - ).annotate({ - identifier: "IcebergDestinationDescription", - }) as any as S.Schema; +export const IcebergDestinationDescription = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DestinationTableConfigurationList: S.optional( + DestinationTableConfigurationList, + ), + SchemaEvolutionConfiguration: S.optional(SchemaEvolutionConfiguration), + TableCreationConfiguration: S.optional(TableCreationConfiguration), + BufferingHints: S.optional(BufferingHints), + CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), + ProcessingConfiguration: S.optional(ProcessingConfiguration), + S3BackupMode: S.optional(IcebergS3BackupMode), + RetryOptions: S.optional(RetryOptions), + RoleARN: S.optional(S.String), + AppendOnly: S.optional(S.Boolean), + CatalogConfiguration: S.optional(CatalogConfiguration), + S3DestinationDescription: S.optional(S3DestinationDescription), + }), +).annotate({ + identifier: "IcebergDestinationDescription", +}) as any as S.Schema; export interface DestinationDescription { DestinationId: string; S3DestinationDescription?: S3DestinationDescription; @@ -2167,12 +2141,11 @@ export const DeliveryStreamDescription = /*@__PURE__*/ S.suspend(() => export interface DescribeDeliveryStreamOutput { DeliveryStreamDescription: DeliveryStreamDescription; } -export const DescribeDeliveryStreamOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DeliveryStreamDescription: DeliveryStreamDescription }).pipe(ns), - ).annotate({ - identifier: "DescribeDeliveryStreamOutput", - }) as any as S.Schema; +export const DescribeDeliveryStreamOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ DeliveryStreamDescription: DeliveryStreamDescription }).pipe(ns), +).annotate({ + identifier: "DescribeDeliveryStreamOutput", +}) as any as S.Schema; export interface ListDeliveryStreamsInput { Limit?: number; DeliveryStreamType?: DeliveryStreamType; @@ -2216,26 +2189,25 @@ export interface ListTagsForDeliveryStreamInput { ExclusiveStartTagKey?: string; Limit?: number; } -export const ListTagsForDeliveryStreamInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DeliveryStreamName: S.String, - ExclusiveStartTagKey: S.optional(S.String), - Limit: S.optional(S.Number), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListTagsForDeliveryStreamInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DeliveryStreamName: S.String, + ExclusiveStartTagKey: S.optional(S.String), + Limit: S.optional(S.Number), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListTagsForDeliveryStreamInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListTagsForDeliveryStreamInput", +}) as any as S.Schema; export type ListTagsForDeliveryStreamOutputTagList = Tag[]; export const ListTagsForDeliveryStreamOutputTagList = /*@__PURE__*/ S.Array(Tag); @@ -2243,15 +2215,14 @@ export interface ListTagsForDeliveryStreamOutput { Tags: Tag[]; HasMoreTags: boolean; } -export const ListTagsForDeliveryStreamOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Tags: ListTagsForDeliveryStreamOutputTagList, - HasMoreTags: S.Boolean, - }).pipe(ns), - ).annotate({ - identifier: "ListTagsForDeliveryStreamOutput", - }) as any as S.Schema; +export const ListTagsForDeliveryStreamOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Tags: ListTagsForDeliveryStreamOutputTagList, + HasMoreTags: S.Boolean, + }).pipe(ns), +).annotate({ + identifier: "ListTagsForDeliveryStreamOutput", +}) as any as S.Schema; export interface Record { Data: Uint8Array; } @@ -2313,19 +2284,19 @@ export interface PutRecordBatchResponseEntry { ErrorCode?: string; ErrorMessage?: string; } -export const PutRecordBatchResponseEntry = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RecordId: S.optional(S.String), - ErrorCode: S.optional(S.String), - ErrorMessage: S.optional(S.String), - }), - ).annotate({ - identifier: "PutRecordBatchResponseEntry", - }) as any as S.Schema; +export const PutRecordBatchResponseEntry = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RecordId: S.optional(S.String), + ErrorCode: S.optional(S.String), + ErrorMessage: S.optional(S.String), + }), +).annotate({ + identifier: "PutRecordBatchResponseEntry", +}) as any as S.Schema; export type PutRecordBatchResponseEntryList = PutRecordBatchResponseEntry[]; -export const PutRecordBatchResponseEntryList = - /*@__PURE__*/ S.Array(PutRecordBatchResponseEntry); +export const PutRecordBatchResponseEntryList = /*@__PURE__*/ S.Array( + PutRecordBatchResponseEntry, +); export interface PutRecordBatchOutput { FailedPutCount: number; Encrypted?: boolean; @@ -2344,56 +2315,56 @@ export interface StartDeliveryStreamEncryptionInput { DeliveryStreamName: string; DeliveryStreamEncryptionConfigurationInput?: DeliveryStreamEncryptionConfigurationInput; } -export const StartDeliveryStreamEncryptionInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DeliveryStreamName: S.String, - DeliveryStreamEncryptionConfigurationInput: S.optional( - DeliveryStreamEncryptionConfigurationInput, - ), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const StartDeliveryStreamEncryptionInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DeliveryStreamName: S.String, + DeliveryStreamEncryptionConfigurationInput: S.optional( + DeliveryStreamEncryptionConfigurationInput, ), - ).annotate({ - identifier: "StartDeliveryStreamEncryptionInput", - }) as any as S.Schema; + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "StartDeliveryStreamEncryptionInput", +}) as any as S.Schema; export interface StartDeliveryStreamEncryptionOutput {} -export const StartDeliveryStreamEncryptionOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "StartDeliveryStreamEncryptionOutput", - }) as any as S.Schema; +export const StartDeliveryStreamEncryptionOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "StartDeliveryStreamEncryptionOutput", +}) as any as S.Schema; export interface StopDeliveryStreamEncryptionInput { DeliveryStreamName: string; } -export const StopDeliveryStreamEncryptionInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DeliveryStreamName: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const StopDeliveryStreamEncryptionInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ DeliveryStreamName: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "StopDeliveryStreamEncryptionInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "StopDeliveryStreamEncryptionInput", +}) as any as S.Schema; export interface StopDeliveryStreamEncryptionOutput {} -export const StopDeliveryStreamEncryptionOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "StopDeliveryStreamEncryptionOutput", - }) as any as S.Schema; +export const StopDeliveryStreamEncryptionOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "StopDeliveryStreamEncryptionOutput", +}) as any as S.Schema; export interface TagDeliveryStreamInput { DeliveryStreamName: string; Tags: Tag[]; @@ -2490,32 +2461,31 @@ export interface ExtendedS3DestinationUpdate { FileExtension?: string; CustomTimeZone?: string; } -export const ExtendedS3DestinationUpdate = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RoleARN: S.optional(S.String), - BucketARN: S.optional(S.String), - Prefix: S.optional(S.String), - ErrorOutputPrefix: S.optional(S.String), - BufferingHints: S.optional(BufferingHints), - CompressionFormat: S.optional(CompressionFormat), - EncryptionConfiguration: S.optional(EncryptionConfiguration), - CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), - ProcessingConfiguration: S.optional(ProcessingConfiguration), - S3BackupMode: S.optional(S3BackupMode), - S3BackupUpdate: S.optional(S3DestinationUpdate), - DataFormatConversionConfiguration: S.optional( - DataFormatConversionConfiguration, - ), - DynamicPartitioningConfiguration: S.optional( - DynamicPartitioningConfiguration, - ), - FileExtension: S.optional(S.String), - CustomTimeZone: S.optional(S.String), - }), - ).annotate({ - identifier: "ExtendedS3DestinationUpdate", - }) as any as S.Schema; +export const ExtendedS3DestinationUpdate = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RoleARN: S.optional(S.String), + BucketARN: S.optional(S.String), + Prefix: S.optional(S.String), + ErrorOutputPrefix: S.optional(S.String), + BufferingHints: S.optional(BufferingHints), + CompressionFormat: S.optional(CompressionFormat), + EncryptionConfiguration: S.optional(EncryptionConfiguration), + CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), + ProcessingConfiguration: S.optional(ProcessingConfiguration), + S3BackupMode: S.optional(S3BackupMode), + S3BackupUpdate: S.optional(S3DestinationUpdate), + DataFormatConversionConfiguration: S.optional( + DataFormatConversionConfiguration, + ), + DynamicPartitioningConfiguration: S.optional( + DynamicPartitioningConfiguration, + ), + FileExtension: S.optional(S.String), + CustomTimeZone: S.optional(S.String), + }), +).annotate({ + identifier: "ExtendedS3DestinationUpdate", +}) as any as S.Schema; export interface RedshiftDestinationUpdate { RoleARN?: string; ClusterJDBCURL?: string; @@ -2562,25 +2532,24 @@ export interface ElasticsearchDestinationUpdate { CloudWatchLoggingOptions?: CloudWatchLoggingOptions; DocumentIdOptions?: DocumentIdOptions; } -export const ElasticsearchDestinationUpdate = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RoleARN: S.optional(S.String), - DomainARN: S.optional(S.String), - ClusterEndpoint: S.optional(S.String), - IndexName: S.optional(S.String), - TypeName: S.optional(S.String), - IndexRotationPeriod: S.optional(ElasticsearchIndexRotationPeriod), - BufferingHints: S.optional(ElasticsearchBufferingHints), - RetryOptions: S.optional(ElasticsearchRetryOptions), - S3Update: S.optional(S3DestinationUpdate), - ProcessingConfiguration: S.optional(ProcessingConfiguration), - CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), - DocumentIdOptions: S.optional(DocumentIdOptions), - }), - ).annotate({ - identifier: "ElasticsearchDestinationUpdate", - }) as any as S.Schema; +export const ElasticsearchDestinationUpdate = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RoleARN: S.optional(S.String), + DomainARN: S.optional(S.String), + ClusterEndpoint: S.optional(S.String), + IndexName: S.optional(S.String), + TypeName: S.optional(S.String), + IndexRotationPeriod: S.optional(ElasticsearchIndexRotationPeriod), + BufferingHints: S.optional(ElasticsearchBufferingHints), + RetryOptions: S.optional(ElasticsearchRetryOptions), + S3Update: S.optional(S3DestinationUpdate), + ProcessingConfiguration: S.optional(ProcessingConfiguration), + CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), + DocumentIdOptions: S.optional(DocumentIdOptions), + }), +).annotate({ + identifier: "ElasticsearchDestinationUpdate", +}) as any as S.Schema; export interface AmazonopensearchserviceDestinationUpdate { RoleARN?: string; DomainARN?: string; @@ -2595,8 +2564,8 @@ export interface AmazonopensearchserviceDestinationUpdate { CloudWatchLoggingOptions?: CloudWatchLoggingOptions; DocumentIdOptions?: DocumentIdOptions; } -export const AmazonopensearchserviceDestinationUpdate = - /*@__PURE__*/ S.suspend(() => +export const AmazonopensearchserviceDestinationUpdate = /*@__PURE__*/ S.suspend( + () => S.Struct({ RoleARN: S.optional(S.String), DomainARN: S.optional(S.String), @@ -2613,13 +2582,13 @@ export const AmazonopensearchserviceDestinationUpdate = CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), DocumentIdOptions: S.optional(DocumentIdOptions), }), - ).annotate({ - identifier: "AmazonopensearchserviceDestinationUpdate", - }) as any as S.Schema; +).annotate({ + identifier: "AmazonopensearchserviceDestinationUpdate", +}) as any as S.Schema; export interface SplunkDestinationUpdate { HECEndpoint?: string; HECEndpointType?: HECEndpointType; - HECToken?: string; + HECToken?: string | redacted.Redacted; HECAcknowledgmentTimeoutInSeconds?: number; RetryOptions?: SplunkRetryOptions; S3BackupMode?: SplunkS3BackupMode; @@ -2633,7 +2602,7 @@ export const SplunkDestinationUpdate = /*@__PURE__*/ S.suspend(() => S.Struct({ HECEndpoint: S.optional(S.String), HECEndpointType: S.optional(HECEndpointType), - HECToken: S.optional(S.String), + HECToken: S.optional(SensitiveString), HECAcknowledgmentTimeoutInSeconds: S.optional(S.Number), RetryOptions: S.optional(SplunkRetryOptions), S3BackupMode: S.optional(SplunkS3BackupMode), @@ -2658,23 +2627,22 @@ export interface HttpEndpointDestinationUpdate { S3Update?: S3DestinationUpdate; SecretsManagerConfiguration?: SecretsManagerConfiguration; } -export const HttpEndpointDestinationUpdate = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - EndpointConfiguration: S.optional(HttpEndpointConfiguration), - BufferingHints: S.optional(HttpEndpointBufferingHints), - CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), - RequestConfiguration: S.optional(HttpEndpointRequestConfiguration), - ProcessingConfiguration: S.optional(ProcessingConfiguration), - RoleARN: S.optional(S.String), - RetryOptions: S.optional(HttpEndpointRetryOptions), - S3BackupMode: S.optional(HttpEndpointS3BackupMode), - S3Update: S.optional(S3DestinationUpdate), - SecretsManagerConfiguration: S.optional(SecretsManagerConfiguration), - }), - ).annotate({ - identifier: "HttpEndpointDestinationUpdate", - }) as any as S.Schema; +export const HttpEndpointDestinationUpdate = /*@__PURE__*/ S.suspend(() => + S.Struct({ + EndpointConfiguration: S.optional(HttpEndpointConfiguration), + BufferingHints: S.optional(HttpEndpointBufferingHints), + CloudWatchLoggingOptions: S.optional(CloudWatchLoggingOptions), + RequestConfiguration: S.optional(HttpEndpointRequestConfiguration), + ProcessingConfiguration: S.optional(ProcessingConfiguration), + RoleARN: S.optional(S.String), + RetryOptions: S.optional(HttpEndpointRetryOptions), + S3BackupMode: S.optional(HttpEndpointS3BackupMode), + S3Update: S.optional(S3DestinationUpdate), + SecretsManagerConfiguration: S.optional(SecretsManagerConfiguration), + }), +).annotate({ + identifier: "HttpEndpointDestinationUpdate", +}) as any as S.Schema; export interface AmazonOpenSearchServerlessDestinationUpdate { RoleARN?: string; CollectionEndpoint?: string; @@ -2863,6 +2831,7 @@ export class InvalidSourceException extends S.TaggedErrorClass()( "ServiceUnavailableException", { message: S.optional(S.String) }, + T.HttpError(503), ).pipe(C.withServerError) {} export class ConcurrentModificationException extends S.TaggedErrorClass()( "ConcurrentModificationException", diff --git a/packages/aws/src/services/frauddetector.ts b/packages/aws/src/services/frauddetector.ts index bcfd24ead8..c6d0c53cfc 100644 --- a/packages/aws/src/services/frauddetector.ts +++ b/packages/aws/src/services/frauddetector.ts @@ -305,22 +305,21 @@ export const BatchGetVariableResult = /*@__PURE__*/ S.suspend(() => export interface CancelBatchImportJobRequest { jobId: string; } -export const CancelBatchImportJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ jobId: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CancelBatchImportJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ jobId: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CancelBatchImportJobRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CancelBatchImportJobRequest", +}) as any as S.Schema; export interface CancelBatchImportJobResult {} export const CancelBatchImportJobResult = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns), @@ -330,27 +329,27 @@ export const CancelBatchImportJobResult = /*@__PURE__*/ S.suspend(() => export interface CancelBatchPredictionJobRequest { jobId: string; } -export const CancelBatchPredictionJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ jobId: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CancelBatchPredictionJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ jobId: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CancelBatchPredictionJobRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CancelBatchPredictionJobRequest", +}) as any as S.Schema; export interface CancelBatchPredictionJobResult {} -export const CancelBatchPredictionJobResult = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "CancelBatchPredictionJobResult", - }) as any as S.Schema; +export const CancelBatchPredictionJobResult = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "CancelBatchPredictionJobResult", +}) as any as S.Schema; export interface CreateBatchImportJobRequest { jobId: string; inputPath: string; @@ -359,29 +358,28 @@ export interface CreateBatchImportJobRequest { iamRoleArn: string; tags?: Tag[]; } -export const CreateBatchImportJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - jobId: S.String, - inputPath: S.String, - outputPath: S.String, - eventTypeName: S.String, - iamRoleArn: S.String, - tags: S.optional(TagList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateBatchImportJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + jobId: S.String, + inputPath: S.String, + outputPath: S.String, + eventTypeName: S.String, + iamRoleArn: S.String, + tags: S.optional(TagList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateBatchImportJobRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateBatchImportJobRequest", +}) as any as S.Schema; export interface CreateBatchImportJobResult {} export const CreateBatchImportJobResult = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns), @@ -398,36 +396,36 @@ export interface CreateBatchPredictionJobRequest { iamRoleArn: string; tags?: Tag[]; } -export const CreateBatchPredictionJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - jobId: S.String, - inputPath: S.String, - outputPath: S.String, - eventTypeName: S.String, - detectorName: S.String, - detectorVersion: S.optional(S.String), - iamRoleArn: S.String, - tags: S.optional(TagList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateBatchPredictionJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + jobId: S.String, + inputPath: S.String, + outputPath: S.String, + eventTypeName: S.String, + detectorName: S.String, + detectorVersion: S.optional(S.String), + iamRoleArn: S.String, + tags: S.optional(TagList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateBatchPredictionJobRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateBatchPredictionJobRequest", +}) as any as S.Schema; export interface CreateBatchPredictionJobResult {} -export const CreateBatchPredictionJobResult = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "CreateBatchPredictionJobResult", - }) as any as S.Schema; +export const CreateBatchPredictionJobResult = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "CreateBatchPredictionJobResult", +}) as any as S.Schema; export type ListOfStrings = string[]; export const ListOfStrings = /*@__PURE__*/ S.Array(S.String); export interface Rule { @@ -473,30 +471,29 @@ export interface CreateDetectorVersionRequest { ruleExecutionMode?: RuleExecutionMode; tags?: Tag[]; } -export const CreateDetectorVersionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - detectorId: S.String, - description: S.optional(S.String), - externalModelEndpoints: S.optional(ListOfStrings), - rules: RuleList, - modelVersions: S.optional(ListOfModelVersions), - ruleExecutionMode: S.optional(RuleExecutionMode), - tags: S.optional(TagList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateDetectorVersionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + detectorId: S.String, + description: S.optional(S.String), + externalModelEndpoints: S.optional(ListOfStrings), + rules: RuleList, + modelVersions: S.optional(ListOfModelVersions), + ruleExecutionMode: S.optional(RuleExecutionMode), + tags: S.optional(TagList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateDetectorVersionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateDetectorVersionRequest", +}) as any as S.Schema; export type DetectorVersionStatus = | "DRAFT" | "ACTIVE" @@ -508,21 +505,20 @@ export interface CreateDetectorVersionResult { detectorVersionId?: string; status?: DetectorVersionStatus; } -export const CreateDetectorVersionResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - detectorId: S.optional(S.String), - detectorVersionId: S.optional(S.String), - status: S.optional(DetectorVersionStatus), - }).pipe(ns), - ).annotate({ - identifier: "CreateDetectorVersionResult", - }) as any as S.Schema; -export type ElementsList = string | redacted.Redacted[]; +export const CreateDetectorVersionResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + detectorId: S.optional(S.String), + detectorVersionId: S.optional(S.String), + status: S.optional(DetectorVersionStatus), + }).pipe(ns), +).annotate({ + identifier: "CreateDetectorVersionResult", +}) as any as S.Schema; +export type ElementsList = (string | redacted.Redacted)[]; export const ElementsList = /*@__PURE__*/ S.Array(SensitiveString); export interface CreateListRequest { name: string; - elements?: string | redacted.Redacted[]; + elements?: (string | redacted.Redacted)[]; variableType?: string; description?: string; tags?: Tag[]; @@ -786,22 +782,21 @@ export const CreateVariableResult = /*@__PURE__*/ S.suspend(() => export interface DeleteBatchImportJobRequest { jobId: string; } -export const DeleteBatchImportJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ jobId: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteBatchImportJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ jobId: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteBatchImportJobRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteBatchImportJobRequest", +}) as any as S.Schema; export interface DeleteBatchImportJobResult {} export const DeleteBatchImportJobResult = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns), @@ -811,27 +806,27 @@ export const DeleteBatchImportJobResult = /*@__PURE__*/ S.suspend(() => export interface DeleteBatchPredictionJobRequest { jobId: string; } -export const DeleteBatchPredictionJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ jobId: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteBatchPredictionJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ jobId: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteBatchPredictionJobRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteBatchPredictionJobRequest", +}) as any as S.Schema; export interface DeleteBatchPredictionJobResult {} -export const DeleteBatchPredictionJobResult = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteBatchPredictionJobResult", - }) as any as S.Schema; +export const DeleteBatchPredictionJobResult = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteBatchPredictionJobResult", +}) as any as S.Schema; export interface DeleteDetectorRequest { detectorId: string; } @@ -860,27 +855,27 @@ export interface DeleteDetectorVersionRequest { detectorId: string; detectorVersionId: string; } -export const DeleteDetectorVersionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ detectorId: S.String, detectorVersionId: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteDetectorVersionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ detectorId: S.String, detectorVersionId: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteDetectorVersionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteDetectorVersionRequest", +}) as any as S.Schema; export interface DeleteDetectorVersionResult {} -export const DeleteDetectorVersionResult = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteDetectorVersionResult", - }) as any as S.Schema; +export const DeleteDetectorVersionResult = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteDetectorVersionResult", +}) as any as S.Schema; export interface DeleteEntityTypeRequest { name: string; } @@ -938,35 +933,33 @@ export const DeleteEventResult = /*@__PURE__*/ S.suspend(() => export interface DeleteEventsByEventTypeRequest { eventTypeName: string; } -export const DeleteEventsByEventTypeRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ eventTypeName: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteEventsByEventTypeRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ eventTypeName: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteEventsByEventTypeRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteEventsByEventTypeRequest", +}) as any as S.Schema; export interface DeleteEventsByEventTypeResult { eventTypeName?: string; eventsDeletionStatus?: string; } -export const DeleteEventsByEventTypeResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - eventTypeName: S.optional(S.String), - eventsDeletionStatus: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "DeleteEventsByEventTypeResult", - }) as any as S.Schema; +export const DeleteEventsByEventTypeResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + eventTypeName: S.optional(S.String), + eventsDeletionStatus: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "DeleteEventsByEventTypeResult", +}) as any as S.Schema; export interface DeleteEventTypeRequest { name: string; } @@ -1257,28 +1250,27 @@ export interface DescribeModelVersionsRequest { nextToken?: string; maxResults?: number; } -export const DescribeModelVersionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - modelId: S.optional(S.String), - modelVersionNumber: S.optional(S.String), - modelType: S.optional(ModelTypeEnum), - nextToken: S.optional(S.String), - maxResults: S.optional(S.Number), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeModelVersionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + modelId: S.optional(S.String), + modelVersionNumber: S.optional(S.String), + modelType: S.optional(ModelTypeEnum), + nextToken: S.optional(S.String), + maxResults: S.optional(S.Number), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeModelVersionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeModelVersionsRequest", +}) as any as S.Schema; export interface FileValidationMessage { title?: string; content?: string; @@ -1556,17 +1548,18 @@ export const AggregatedLogOddsMetric = /*@__PURE__*/ S.suspend(() => identifier: "AggregatedLogOddsMetric", }) as any as S.Schema; export type ListOfAggregatedLogOddsMetrics = AggregatedLogOddsMetric[]; -export const ListOfAggregatedLogOddsMetrics = - /*@__PURE__*/ S.Array(AggregatedLogOddsMetric); +export const ListOfAggregatedLogOddsMetrics = /*@__PURE__*/ S.Array( + AggregatedLogOddsMetric, +); export interface AggregatedVariablesImportanceMetrics { logOddsMetrics?: AggregatedLogOddsMetric[]; } -export const AggregatedVariablesImportanceMetrics = - /*@__PURE__*/ S.suspend(() => +export const AggregatedVariablesImportanceMetrics = /*@__PURE__*/ S.suspend( + () => S.Struct({ logOddsMetrics: S.optional(ListOfAggregatedLogOddsMetrics) }), - ).annotate({ - identifier: "AggregatedVariablesImportanceMetrics", - }) as any as S.Schema; +).annotate({ + identifier: "AggregatedVariablesImportanceMetrics", +}) as any as S.Schema; export interface TrainingResultV2 { dataValidationMetrics?: DataValidationMetrics; trainingMetricsV2?: TrainingMetricsV2; @@ -1625,15 +1618,14 @@ export interface DescribeModelVersionsResult { modelVersionDetails?: ModelVersionDetail[]; nextToken?: string; } -export const DescribeModelVersionsResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - modelVersionDetails: S.optional(ModelVersionDetailList), - nextToken: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "DescribeModelVersionsResult", - }) as any as S.Schema; +export const DescribeModelVersionsResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + modelVersionDetails: S.optional(ModelVersionDetailList), + nextToken: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "DescribeModelVersionsResult", +}) as any as S.Schema; export interface GetBatchImportJobsRequest { jobId?: string; maxResults?: number; @@ -1718,26 +1710,25 @@ export interface GetBatchPredictionJobsRequest { maxResults?: number; nextToken?: string; } -export const GetBatchPredictionJobsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - jobId: S.optional(S.String), - maxResults: S.optional(S.Number), - nextToken: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetBatchPredictionJobsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + jobId: S.optional(S.String), + maxResults: S.optional(S.Number), + nextToken: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetBatchPredictionJobsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetBatchPredictionJobsRequest", +}) as any as S.Schema; export interface BatchPrediction { jobId?: string; status?: AsyncJobStatus; @@ -1782,20 +1773,19 @@ export interface GetBatchPredictionJobsResult { batchPredictions?: BatchPrediction[]; nextToken?: string; } -export const GetBatchPredictionJobsResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - batchPredictions: S.optional(BatchPredictionList), - nextToken: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "GetBatchPredictionJobsResult", - }) as any as S.Schema; +export const GetBatchPredictionJobsResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + batchPredictions: S.optional(BatchPredictionList), + nextToken: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "GetBatchPredictionJobsResult", +}) as any as S.Schema; export interface GetDeleteEventsByEventTypeStatusRequest { eventTypeName: string; } -export const GetDeleteEventsByEventTypeStatusRequest = - /*@__PURE__*/ S.suspend(() => +export const GetDeleteEventsByEventTypeStatusRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ eventTypeName: S.String }).pipe( T.all( ns, @@ -1807,22 +1797,22 @@ export const GetDeleteEventsByEventTypeStatusRequest = rules, ), ), - ).annotate({ - identifier: "GetDeleteEventsByEventTypeStatusRequest", - }) as any as S.Schema; +).annotate({ + identifier: "GetDeleteEventsByEventTypeStatusRequest", +}) as any as S.Schema; export interface GetDeleteEventsByEventTypeStatusResult { eventTypeName?: string; eventsDeletionStatus?: AsyncJobStatus; } -export const GetDeleteEventsByEventTypeStatusResult = - /*@__PURE__*/ S.suspend(() => +export const GetDeleteEventsByEventTypeStatusResult = /*@__PURE__*/ S.suspend( + () => S.Struct({ eventTypeName: S.optional(S.String), eventsDeletionStatus: S.optional(AsyncJobStatus), }).pipe(ns), - ).annotate({ - identifier: "GetDeleteEventsByEventTypeStatusResult", - }) as any as S.Schema; +).annotate({ + identifier: "GetDeleteEventsByEventTypeStatusResult", +}) as any as S.Schema; export interface GetDetectorsRequest { detectorId?: string; nextToken?: string; @@ -2067,8 +2057,10 @@ export const ModelEndpointDataBlob = /*@__PURE__*/ S.suspend(() => export type ExternalModelEndpointDataBlobMap = { [key: string]: ModelEndpointDataBlob | undefined; }; -export const ExternalModelEndpointDataBlobMap = - /*@__PURE__*/ S.Record(S.String, ModelEndpointDataBlob.pipe(S.optional)); +export const ExternalModelEndpointDataBlobMap = /*@__PURE__*/ S.Record( + S.String, + ModelEndpointDataBlob.pipe(S.optional), +); export interface GetEventPredictionRequest { detectorId: string; detectorVersionId?: string; @@ -2193,28 +2185,27 @@ export interface GetEventPredictionMetadataRequest { detectorVersionId: string; predictionTimestamp: string; } -export const GetEventPredictionMetadataRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - eventId: S.String, - eventTypeName: S.String, - detectorId: S.String, - detectorVersionId: S.String, - predictionTimestamp: S.String, - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetEventPredictionMetadataRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + eventId: S.String, + eventTypeName: S.String, + detectorId: S.String, + detectorVersionId: S.String, + predictionTimestamp: S.String, + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetEventPredictionMetadataRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetEventPredictionMetadataRequest", +}) as any as S.Schema; export interface EventVariableSummary { name?: string | redacted.Redacted; value?: string | redacted.Redacted; @@ -2269,23 +2260,24 @@ export const VariableImpactExplanation = /*@__PURE__*/ S.suspend(() => identifier: "VariableImpactExplanation", }) as any as S.Schema; export type ListOfVariableImpactExplanations = VariableImpactExplanation[]; -export const ListOfVariableImpactExplanations = - /*@__PURE__*/ S.Array(VariableImpactExplanation); +export const ListOfVariableImpactExplanations = /*@__PURE__*/ S.Array( + VariableImpactExplanation, +); export interface AggregatedVariablesImpactExplanation { eventVariableNames?: string[]; relativeImpact?: string; logOddsImpact?: number; } -export const AggregatedVariablesImpactExplanation = - /*@__PURE__*/ S.suspend(() => +export const AggregatedVariablesImpactExplanation = /*@__PURE__*/ S.suspend( + () => S.Struct({ eventVariableNames: S.optional(ListOfStrings), relativeImpact: S.optional(S.String), logOddsImpact: S.optional(S.Number), }), - ).annotate({ - identifier: "AggregatedVariablesImpactExplanation", - }) as any as S.Schema; +).annotate({ + identifier: "AggregatedVariablesImpactExplanation", +}) as any as S.Schema; export type ListOfAggregatedVariablesImpactExplanations = AggregatedVariablesImpactExplanation[]; export const ListOfAggregatedVariablesImpactExplanations = @@ -2319,8 +2311,9 @@ export const ModelVersionEvaluation = /*@__PURE__*/ S.suspend(() => identifier: "ModelVersionEvaluation", }) as any as S.Schema; export type ListOfModelVersionEvaluations = ModelVersionEvaluation[]; -export const ListOfModelVersionEvaluations = - /*@__PURE__*/ S.Array(ModelVersionEvaluation); +export const ListOfModelVersionEvaluations = /*@__PURE__*/ S.Array( + ModelVersionEvaluation, +); export interface EvaluatedModelVersion { modelId?: string; modelVersion?: string; @@ -2363,8 +2356,9 @@ export const EvaluatedExternalModel = /*@__PURE__*/ S.suspend(() => identifier: "EvaluatedExternalModel", }) as any as S.Schema; export type ListOfEvaluatedExternalModels = EvaluatedExternalModel[]; -export const ListOfEvaluatedExternalModels = - /*@__PURE__*/ S.Array(EvaluatedExternalModel); +export const ListOfEvaluatedExternalModels = /*@__PURE__*/ S.Array( + EvaluatedExternalModel, +); export interface GetEventPredictionMetadataResult { eventId?: string; eventTypeName?: string; @@ -2382,28 +2376,27 @@ export interface GetEventPredictionMetadataResult { evaluatedExternalModels?: EvaluatedExternalModel[]; predictionTimestamp?: string; } -export const GetEventPredictionMetadataResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - eventId: S.optional(S.String), - eventTypeName: S.optional(S.String), - entityId: S.optional(S.String), - entityType: S.optional(S.String), - eventTimestamp: S.optional(S.String), - detectorId: S.optional(S.String), - detectorVersionId: S.optional(S.String), - detectorVersionStatus: S.optional(S.String), - eventVariables: S.optional(ListOfEventVariableSummaries), - rules: S.optional(EvaluatedRuleList), - ruleExecutionMode: S.optional(RuleExecutionMode), - outcomes: S.optional(ListOfStrings), - evaluatedModelVersions: S.optional(ListOfEvaluatedModelVersions), - evaluatedExternalModels: S.optional(ListOfEvaluatedExternalModels), - predictionTimestamp: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "GetEventPredictionMetadataResult", - }) as any as S.Schema; +export const GetEventPredictionMetadataResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + eventId: S.optional(S.String), + eventTypeName: S.optional(S.String), + entityId: S.optional(S.String), + entityType: S.optional(S.String), + eventTimestamp: S.optional(S.String), + detectorId: S.optional(S.String), + detectorVersionId: S.optional(S.String), + detectorVersionStatus: S.optional(S.String), + eventVariables: S.optional(ListOfEventVariableSummaries), + rules: S.optional(EvaluatedRuleList), + ruleExecutionMode: S.optional(RuleExecutionMode), + outcomes: S.optional(ListOfStrings), + evaluatedModelVersions: S.optional(ListOfEvaluatedModelVersions), + evaluatedExternalModels: S.optional(ListOfEvaluatedExternalModels), + predictionTimestamp: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "GetEventPredictionMetadataResult", +}) as any as S.Schema; export interface GetEventTypesRequest { name?: string; nextToken?: string; @@ -2723,7 +2716,7 @@ export const GetListElementsRequest = /*@__PURE__*/ S.suspend(() => identifier: "GetListElementsRequest", }) as any as S.Schema; export interface GetListElementsResult { - elements?: string | redacted.Redacted[]; + elements?: (string | redacted.Redacted)[]; nextToken?: string; } export const GetListElementsResult = /*@__PURE__*/ S.suspend(() => @@ -3082,30 +3075,29 @@ export interface ListEventPredictionsRequest { nextToken?: string; maxResults?: number; } -export const ListEventPredictionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - eventId: S.optional(FilterCondition), - eventType: S.optional(FilterCondition), - detectorId: S.optional(FilterCondition), - detectorVersionId: S.optional(FilterCondition), - predictionTimeRange: S.optional(PredictionTimeRange), - nextToken: S.optional(S.String), - maxResults: S.optional(S.Number), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListEventPredictionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + eventId: S.optional(FilterCondition), + eventType: S.optional(FilterCondition), + detectorId: S.optional(FilterCondition), + detectorVersionId: S.optional(FilterCondition), + predictionTimeRange: S.optional(PredictionTimeRange), + nextToken: S.optional(S.String), + maxResults: S.optional(S.Number), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListEventPredictionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListEventPredictionsRequest", +}) as any as S.Schema; export interface EventPredictionSummary { eventId?: string; eventTypeName?: string; @@ -3127,8 +3119,9 @@ export const EventPredictionSummary = /*@__PURE__*/ S.suspend(() => identifier: "EventPredictionSummary", }) as any as S.Schema; export type ListOfEventPredictionSummaries = EventPredictionSummary[]; -export const ListOfEventPredictionSummaries = - /*@__PURE__*/ S.Array(EventPredictionSummary); +export const ListOfEventPredictionSummaries = /*@__PURE__*/ S.Array( + EventPredictionSummary, +); export interface ListEventPredictionsResult { eventPredictionSummaries?: EventPredictionSummary[]; nextToken?: string; @@ -3170,10 +3163,9 @@ export interface ListTagsForResourceResult { nextToken?: string; } export const ListTagsForResourceResult = /*@__PURE__*/ S.suspend(() => - S.Struct({ - tags: S.optional(TagList), - nextToken: S.optional(S.String), - }).pipe(ns), + S.Struct({ tags: S.optional(TagList), nextToken: S.optional(S.String) }).pipe( + ns, + ), ).annotate({ identifier: "ListTagsForResourceResult", }) as any as S.Schema; @@ -3500,42 +3492,42 @@ export interface UpdateDetectorVersionRequest { modelVersions?: ModelVersion[]; ruleExecutionMode?: RuleExecutionMode; } -export const UpdateDetectorVersionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - detectorId: S.String, - detectorVersionId: S.String, - externalModelEndpoints: ListOfStrings, - rules: RuleList, - description: S.optional(S.String), - modelVersions: S.optional(ListOfModelVersions), - ruleExecutionMode: S.optional(RuleExecutionMode), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateDetectorVersionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + detectorId: S.String, + detectorVersionId: S.String, + externalModelEndpoints: ListOfStrings, + rules: RuleList, + description: S.optional(S.String), + modelVersions: S.optional(ListOfModelVersions), + ruleExecutionMode: S.optional(RuleExecutionMode), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateDetectorVersionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateDetectorVersionRequest", +}) as any as S.Schema; export interface UpdateDetectorVersionResult {} -export const UpdateDetectorVersionResult = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "UpdateDetectorVersionResult", - }) as any as S.Schema; +export const UpdateDetectorVersionResult = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "UpdateDetectorVersionResult", +}) as any as S.Schema; export interface UpdateDetectorVersionMetadataRequest { detectorId: string; detectorVersionId: string; description: string; } -export const UpdateDetectorVersionMetadataRequest = - /*@__PURE__*/ S.suspend(() => +export const UpdateDetectorVersionMetadataRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ detectorId: S.String, detectorVersionId: S.String, @@ -3551,44 +3543,45 @@ export const UpdateDetectorVersionMetadataRequest = rules, ), ), - ).annotate({ - identifier: "UpdateDetectorVersionMetadataRequest", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateDetectorVersionMetadataRequest", +}) as any as S.Schema; export interface UpdateDetectorVersionMetadataResult {} -export const UpdateDetectorVersionMetadataResult = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "UpdateDetectorVersionMetadataResult", - }) as any as S.Schema; +export const UpdateDetectorVersionMetadataResult = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "UpdateDetectorVersionMetadataResult", +}) as any as S.Schema; export interface UpdateDetectorVersionStatusRequest { detectorId: string; detectorVersionId: string; status: DetectorVersionStatus; } -export const UpdateDetectorVersionStatusRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - detectorId: S.String, - detectorVersionId: S.String, - status: DetectorVersionStatus, - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateDetectorVersionStatusRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + detectorId: S.String, + detectorVersionId: S.String, + status: DetectorVersionStatus, + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateDetectorVersionStatusRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateDetectorVersionStatusRequest", +}) as any as S.Schema; export interface UpdateDetectorVersionStatusResult {} -export const UpdateDetectorVersionStatusResult = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "UpdateDetectorVersionStatusResult", - }) as any as S.Schema; +export const UpdateDetectorVersionStatusResult = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "UpdateDetectorVersionStatusResult", +}) as any as S.Schema; export interface UpdateEventLabelRequest { eventId: string; eventTypeName: string; @@ -3625,7 +3618,7 @@ export type ListUpdateMode = "REPLACE" | "APPEND" | "REMOVE" | (string & {}); export const ListUpdateMode = /*@__PURE__*/ S.String; export interface UpdateListRequest { name: string; - elements?: string | redacted.Redacted[]; + elements?: (string | redacted.Redacted)[]; description?: string; updateMode?: ListUpdateMode; variableType?: string; @@ -3745,32 +3738,32 @@ export interface UpdateModelVersionStatusRequest { modelVersionNumber: string; status: ModelVersionStatus; } -export const UpdateModelVersionStatusRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - modelId: S.String, - modelType: ModelTypeEnum, - modelVersionNumber: S.String, - status: ModelVersionStatus, - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateModelVersionStatusRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + modelId: S.String, + modelType: ModelTypeEnum, + modelVersionNumber: S.String, + status: ModelVersionStatus, + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateModelVersionStatusRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateModelVersionStatusRequest", +}) as any as S.Schema; export interface UpdateModelVersionStatusResult {} -export const UpdateModelVersionStatusResult = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "UpdateModelVersionStatusResult", - }) as any as S.Schema; +export const UpdateModelVersionStatusResult = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "UpdateModelVersionStatusResult", +}) as any as S.Schema; export interface UpdateRuleMetadataRequest { rule: Rule; description: string; @@ -3871,30 +3864,37 @@ export const UpdateVariableResult = /*@__PURE__*/ S.suspend(() => export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.String }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { message: S.String }, + T.HttpError(500), ).pipe(C.withServerError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", { message: S.String }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", { message: S.String }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.String }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { message: S.String }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ResourceUnavailableException extends S.TaggedErrorClass()( "ResourceUnavailableException", { message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} //# Operations diff --git a/packages/aws/src/services/fsx.ts b/packages/aws/src/services/fsx.ts index 79018aa267..2d364c3925 100644 --- a/packages/aws/src/services/fsx.ts +++ b/packages/aws/src/services/fsx.ts @@ -5657,21 +5657,33 @@ export class SourceBackupUnavailable extends S.TaggedErrorClass()( + "SourceSnapshotNotFound", + { Message: S.optional(S.String) }, + T.SyntheticError({ + from: "BadRequest", + message: { includes: "SourceSnapshotARN provided is not a valid ARN" }, + }), +).pipe(C.withNotFoundError) {} export class AccessPointAlreadyOwnedByYou extends S.TaggedErrorClass()( "AccessPointAlreadyOwnedByYou", { ErrorCode: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class InvalidAccessPoint extends S.TaggedErrorClass()( "InvalidAccessPoint", { ErrorCode: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidRequest extends S.TaggedErrorClass()( "InvalidRequest", { ErrorCode: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyAccessPoints extends S.TaggedErrorClass()( "TooManyAccessPoints", { ErrorCode: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class VolumeNotFound extends S.TaggedErrorClass()( "VolumeNotFound", @@ -5722,6 +5734,14 @@ export class MissingFileSystemConfiguration extends S.TaggedErrorClass()( + "SnapshotVolumeNotFound", + { Message: S.optional(S.String) }, + T.SyntheticError({ + from: "BadRequest", + message: { includes: "volume was not found" }, + }), +).pipe(C.withNotFoundError) {} export class MissingVolumeConfiguration extends S.TaggedErrorClass()( "MissingVolumeConfiguration", { Message: S.optional(S.String) }, @@ -5770,6 +5790,22 @@ export class ResourceNotFound extends S.TaggedErrorClass()( "ResourceNotFound", { ResourceARN: S.optional(S.String), Message: S.optional(S.String) }, ) {} +export class RestoreSnapshotNotFound extends S.TaggedErrorClass()( + "RestoreSnapshotNotFound", + { Message: S.optional(S.String) }, + T.SyntheticError({ + from: "BadRequest", + message: { includes: "snapshot cannot be found" }, + }), +).pipe(C.withNotFoundError) {} +export class UpdateSnapshotNotFound extends S.TaggedErrorClass()( + "UpdateSnapshotNotFound", + { Message: S.optional(S.String) }, + T.SyntheticError({ + from: "BadRequest", + message: { includes: "the snapshot is not found" }, + }), +).pipe(C.withNotFoundError) {} //# Operations export type AssociateFileSystemAliasesError = @@ -5908,6 +5944,7 @@ export type CopySnapshotAndUpdateVolumeError = | IncompatibleParameterError | InternalServerError | ServiceLimitExceeded + | SourceSnapshotNotFound | CommonErrors; /** * Updates an existing volume by using a snapshot from another Amazon FSx for OpenZFS file system. For more information, see on-demand data replication in the Amazon FSx for OpenZFS User @@ -5926,6 +5963,7 @@ export const copySnapshotAndUpdateVolume: API.OperationMethod< IncompatibleParameterError, InternalServerError, ServiceLimitExceeded, + SourceSnapshotNotFound, ], operationName: "CopySnapshotAndUpdateVolume", })); @@ -6350,6 +6388,7 @@ export type CreateSnapshotError = | InternalServerError | ServiceLimitExceeded | VolumeNotFound + | SnapshotVolumeNotFound | CommonErrors; /** * Creates a snapshot of an existing Amazon FSx for OpenZFS volume. With @@ -6393,6 +6432,7 @@ export const createSnapshot: API.OperationMethod< InternalServerError, ServiceLimitExceeded, VolumeNotFound, + SnapshotVolumeNotFound, ], operationName: "CreateSnapshot", })); @@ -7494,6 +7534,7 @@ export type RestoreVolumeFromSnapshotError = | BadRequest | InternalServerError | VolumeNotFound + | RestoreSnapshotNotFound | CommonErrors; /** * Returns an Amazon FSx for OpenZFS volume to the state saved by the specified @@ -7507,7 +7548,12 @@ export const restoreVolumeFromSnapshot: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: RestoreVolumeFromSnapshotRequest, output: RestoreVolumeFromSnapshotResponse, - errors: [BadRequest, InternalServerError, VolumeNotFound], + errors: [ + BadRequest, + InternalServerError, + VolumeNotFound, + RestoreSnapshotNotFound, + ], operationName: "RestoreVolumeFromSnapshot", })); export type StartMisconfiguredStateRecoveryError = @@ -7815,6 +7861,7 @@ export type UpdateSnapshotError = | BadRequest | InternalServerError | SnapshotNotFound + | UpdateSnapshotNotFound | CommonErrors; /** * Updates the name of an Amazon FSx for OpenZFS snapshot. @@ -7827,7 +7874,12 @@ export const updateSnapshot: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: UpdateSnapshotRequest, output: UpdateSnapshotResponse, - errors: [BadRequest, InternalServerError, SnapshotNotFound], + errors: [ + BadRequest, + InternalServerError, + SnapshotNotFound, + UpdateSnapshotNotFound, + ], operationName: "UpdateSnapshot", })); export type UpdateStorageVirtualMachineError = diff --git a/packages/aws/src/services/geo-routes.ts b/packages/aws/src/services/geo-routes.ts index 30236bff7c..ac705909b4 100644 --- a/packages/aws/src/services/geo-routes.ts +++ b/packages/aws/src/services/geo-routes.ts @@ -224,30 +224,30 @@ export const PolylineCorridor = /*@__PURE__*/ S.suspend(() => ).annotate({ identifier: "PolylineCorridor", }) as any as S.Schema; -export type PolylineRingList = string | redacted.Redacted[]; +export type PolylineRingList = (string | redacted.Redacted)[]; export const PolylineRingList = /*@__PURE__*/ S.Array(SensitiveString); export interface IsolineAvoidanceAreaGeometry { BoundingBox?: number[]; Corridor?: Corridor; Polygon?: number[][][]; PolylineCorridor?: PolylineCorridor; - PolylinePolygon?: string | redacted.Redacted[]; + PolylinePolygon?: (string | redacted.Redacted)[]; } -export const IsolineAvoidanceAreaGeometry = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - BoundingBox: S.optional(BoundingBox), - Corridor: S.optional(Corridor), - Polygon: S.optional(LinearRings), - PolylineCorridor: S.optional(PolylineCorridor), - PolylinePolygon: S.optional(PolylineRingList), - }), - ).annotate({ - identifier: "IsolineAvoidanceAreaGeometry", - }) as any as S.Schema; +export const IsolineAvoidanceAreaGeometry = /*@__PURE__*/ S.suspend(() => + S.Struct({ + BoundingBox: S.optional(BoundingBox), + Corridor: S.optional(Corridor), + Polygon: S.optional(LinearRings), + PolylineCorridor: S.optional(PolylineCorridor), + PolylinePolygon: S.optional(PolylineRingList), + }), +).annotate({ + identifier: "IsolineAvoidanceAreaGeometry", +}) as any as S.Schema; export type IsolineAvoidanceAreaGeometryList = IsolineAvoidanceAreaGeometry[]; -export const IsolineAvoidanceAreaGeometryList = - /*@__PURE__*/ S.Array(IsolineAvoidanceAreaGeometry); +export const IsolineAvoidanceAreaGeometryList = /*@__PURE__*/ S.Array( + IsolineAvoidanceAreaGeometry, +); export interface IsolineAvoidanceArea { Except?: IsolineAvoidanceAreaGeometry[]; Geometry: IsolineAvoidanceAreaGeometry; @@ -263,7 +263,7 @@ export const IsolineAvoidanceArea = /*@__PURE__*/ S.suspend(() => export type IsolineAvoidanceAreaList = IsolineAvoidanceArea[]; export const IsolineAvoidanceAreaList = /*@__PURE__*/ S.Array(IsolineAvoidanceArea); -export type TruckRoadTypeList = string | redacted.Redacted[]; +export type TruckRoadTypeList = (string | redacted.Redacted)[]; export const TruckRoadTypeList = /*@__PURE__*/ S.Array(SensitiveString); export type IsolineZoneCategory = | "CongestionPricing" @@ -274,15 +274,15 @@ export const IsolineZoneCategory = /*@__PURE__*/ S.String; export interface IsolineAvoidanceZoneCategory { Category?: IsolineZoneCategory; } -export const IsolineAvoidanceZoneCategory = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Category: S.optional(IsolineZoneCategory) }), - ).annotate({ - identifier: "IsolineAvoidanceZoneCategory", - }) as any as S.Schema; +export const IsolineAvoidanceZoneCategory = /*@__PURE__*/ S.suspend(() => + S.Struct({ Category: S.optional(IsolineZoneCategory) }), +).annotate({ + identifier: "IsolineAvoidanceZoneCategory", +}) as any as S.Schema; export type IsolineAvoidanceZoneCategoryList = IsolineAvoidanceZoneCategory[]; -export const IsolineAvoidanceZoneCategoryList = - /*@__PURE__*/ S.Array(IsolineAvoidanceZoneCategory); +export const IsolineAvoidanceZoneCategoryList = /*@__PURE__*/ S.Array( + IsolineAvoidanceZoneCategory, +); export interface IsolineAvoidanceOptions { Areas?: IsolineAvoidanceArea[]; CarShuttleTrains?: boolean; @@ -292,7 +292,7 @@ export interface IsolineAvoidanceOptions { SeasonalClosure?: boolean; TollRoads?: boolean; TollTransponders?: boolean; - TruckRoadTypes?: string | redacted.Redacted[]; + TruckRoadTypes?: (string | redacted.Redacted)[]; Tunnels?: boolean; UTurns?: boolean; ZoneCategories?: IsolineAvoidanceZoneCategory[]; @@ -508,8 +508,9 @@ export type IsolineHazardousCargoType = | (string & {}); export const IsolineHazardousCargoType = /*@__PURE__*/ S.String; export type IsolineHazardousCargoTypeList = IsolineHazardousCargoType[]; -export const IsolineHazardousCargoTypeList = - /*@__PURE__*/ S.Array(IsolineHazardousCargoType); +export const IsolineHazardousCargoTypeList = /*@__PURE__*/ S.Array( + IsolineHazardousCargoType, +); export interface IsolineTrailerOptions { AxleCount?: number; TrailerCount?: number; @@ -689,7 +690,7 @@ export type IsolineConnectionList = IsolineConnection[]; export const IsolineConnectionList = /*@__PURE__*/ S.Array(IsolineConnection); export interface IsolineShapeGeometry { Polygon?: number[][][]; - PolylinePolygon?: string | redacted.Redacted[]; + PolylinePolygon?: (string | redacted.Redacted)[]; } export const IsolineShapeGeometry = /*@__PURE__*/ S.suspend(() => S.Struct({ @@ -776,18 +777,17 @@ export const RouteMatrixAllowOptions = /*@__PURE__*/ S.suspend(() => export interface RouteMatrixAvoidanceAreaGeometry { BoundingBox?: number[]; Polygon?: number[][][]; - PolylinePolygon?: string | redacted.Redacted[]; + PolylinePolygon?: (string | redacted.Redacted)[]; } -export const RouteMatrixAvoidanceAreaGeometry = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - BoundingBox: S.optional(BoundingBox), - Polygon: S.optional(LinearRings), - PolylinePolygon: S.optional(PolylineRingList), - }), - ).annotate({ - identifier: "RouteMatrixAvoidanceAreaGeometry", - }) as any as S.Schema; +export const RouteMatrixAvoidanceAreaGeometry = /*@__PURE__*/ S.suspend(() => + S.Struct({ + BoundingBox: S.optional(BoundingBox), + Polygon: S.optional(LinearRings), + PolylinePolygon: S.optional(PolylineRingList), + }), +).annotate({ + identifier: "RouteMatrixAvoidanceAreaGeometry", +}) as any as S.Schema; export interface RouteMatrixAvoidanceArea { Geometry: RouteMatrixAvoidanceAreaGeometry; } @@ -809,16 +809,16 @@ export const RouteMatrixZoneCategory = /*@__PURE__*/ S.String; export interface RouteMatrixAvoidanceZoneCategory { Category?: RouteMatrixZoneCategory; } -export const RouteMatrixAvoidanceZoneCategory = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Category: S.optional(RouteMatrixZoneCategory) }), - ).annotate({ - identifier: "RouteMatrixAvoidanceZoneCategory", - }) as any as S.Schema; +export const RouteMatrixAvoidanceZoneCategory = /*@__PURE__*/ S.suspend(() => + S.Struct({ Category: S.optional(RouteMatrixZoneCategory) }), +).annotate({ + identifier: "RouteMatrixAvoidanceZoneCategory", +}) as any as S.Schema; export type RouteMatrixAvoidanceZoneCategoryList = RouteMatrixAvoidanceZoneCategory[]; -export const RouteMatrixAvoidanceZoneCategoryList = - /*@__PURE__*/ S.Array(RouteMatrixAvoidanceZoneCategory); +export const RouteMatrixAvoidanceZoneCategoryList = /*@__PURE__*/ S.Array( + RouteMatrixAvoidanceZoneCategory, +); export interface RouteMatrixAvoidanceOptions { Areas?: RouteMatrixAvoidanceArea[]; CarShuttleTrains?: boolean; @@ -827,29 +827,28 @@ export interface RouteMatrixAvoidanceOptions { Ferries?: boolean; TollRoads?: boolean; TollTransponders?: boolean; - TruckRoadTypes?: string | redacted.Redacted[]; + TruckRoadTypes?: (string | redacted.Redacted)[]; Tunnels?: boolean; UTurns?: boolean; ZoneCategories?: RouteMatrixAvoidanceZoneCategory[]; } -export const RouteMatrixAvoidanceOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Areas: S.optional(RouteMatrixAvoidanceAreaList), - CarShuttleTrains: S.optional(S.Boolean), - ControlledAccessHighways: S.optional(S.Boolean), - DirtRoads: S.optional(S.Boolean), - Ferries: S.optional(S.Boolean), - TollRoads: S.optional(S.Boolean), - TollTransponders: S.optional(S.Boolean), - TruckRoadTypes: S.optional(TruckRoadTypeList), - Tunnels: S.optional(S.Boolean), - UTurns: S.optional(S.Boolean), - ZoneCategories: S.optional(RouteMatrixAvoidanceZoneCategoryList), - }), - ).annotate({ - identifier: "RouteMatrixAvoidanceOptions", - }) as any as S.Schema; +export const RouteMatrixAvoidanceOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Areas: S.optional(RouteMatrixAvoidanceAreaList), + CarShuttleTrains: S.optional(S.Boolean), + ControlledAccessHighways: S.optional(S.Boolean), + DirtRoads: S.optional(S.Boolean), + Ferries: S.optional(S.Boolean), + TollRoads: S.optional(S.Boolean), + TollTransponders: S.optional(S.Boolean), + TruckRoadTypes: S.optional(TruckRoadTypeList), + Tunnels: S.optional(S.Boolean), + UTurns: S.optional(S.Boolean), + ZoneCategories: S.optional(RouteMatrixAvoidanceZoneCategoryList), + }), +).annotate({ + identifier: "RouteMatrixAvoidanceOptions", +}) as any as S.Schema; export interface RouteMatrixMatchingOptions { NameHint?: string | redacted.Redacted; OnRoadThreshold?: number; @@ -870,32 +869,30 @@ export interface RouteMatrixSideOfStreetOptions { Position: number[]; UseWith?: SideOfStreetMatchingStrategy; } -export const RouteMatrixSideOfStreetOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Position: Position, - UseWith: S.optional(SideOfStreetMatchingStrategy), - }), - ).annotate({ - identifier: "RouteMatrixSideOfStreetOptions", - }) as any as S.Schema; +export const RouteMatrixSideOfStreetOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Position: Position, + UseWith: S.optional(SideOfStreetMatchingStrategy), + }), +).annotate({ + identifier: "RouteMatrixSideOfStreetOptions", +}) as any as S.Schema; export interface RouteMatrixDestinationOptions { AvoidActionsForDistance?: number; Heading?: number; Matching?: RouteMatrixMatchingOptions; SideOfStreet?: RouteMatrixSideOfStreetOptions; } -export const RouteMatrixDestinationOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AvoidActionsForDistance: S.optional(S.Number), - Heading: S.optional(S.Number), - Matching: S.optional(RouteMatrixMatchingOptions), - SideOfStreet: S.optional(RouteMatrixSideOfStreetOptions), - }), - ).annotate({ - identifier: "RouteMatrixDestinationOptions", - }) as any as S.Schema; +export const RouteMatrixDestinationOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AvoidActionsForDistance: S.optional(S.Number), + Heading: S.optional(S.Number), + Matching: S.optional(RouteMatrixMatchingOptions), + SideOfStreet: S.optional(RouteMatrixSideOfStreetOptions), + }), +).annotate({ + identifier: "RouteMatrixDestinationOptions", +}) as any as S.Schema; export interface RouteMatrixDestination { Options?: RouteMatrixDestinationOptions; Position: number[]; @@ -912,17 +909,16 @@ export type RouteMatrixDestinationList = RouteMatrixDestination[]; export const RouteMatrixDestinationList = /*@__PURE__*/ S.Array( RouteMatrixDestination, ); -export type CountryCodeList = string | redacted.Redacted[]; +export type CountryCodeList = (string | redacted.Redacted)[]; export const CountryCodeList = /*@__PURE__*/ S.Array(SensitiveString); export interface RouteMatrixExclusionOptions { - Countries: string | redacted.Redacted[]; + Countries: (string | redacted.Redacted)[]; } -export const RouteMatrixExclusionOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Countries: CountryCodeList }), - ).annotate({ - identifier: "RouteMatrixExclusionOptions", - }) as any as S.Schema; +export const RouteMatrixExclusionOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ Countries: CountryCodeList }), +).annotate({ + identifier: "RouteMatrixExclusionOptions", +}) as any as S.Schema; export interface RouteMatrixOriginOptions { AvoidActionsForDistance?: number; Heading?: number; @@ -975,17 +971,16 @@ export interface RouteMatrixBoundaryGeometry { BoundingBox?: number[]; Polygon?: number[][][]; } -export const RouteMatrixBoundaryGeometry = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AutoCircle: S.optional(RouteMatrixAutoCircle), - Circle: S.optional(Circle), - BoundingBox: S.optional(BoundingBox), - Polygon: S.optional(LinearRings), - }), - ).annotate({ - identifier: "RouteMatrixBoundaryGeometry", - }) as any as S.Schema; +export const RouteMatrixBoundaryGeometry = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AutoCircle: S.optional(RouteMatrixAutoCircle), + Circle: S.optional(Circle), + BoundingBox: S.optional(BoundingBox), + Polygon: S.optional(LinearRings), + }), +).annotate({ + identifier: "RouteMatrixBoundaryGeometry", +}) as any as S.Schema; export interface RouteMatrixBoundary { Geometry?: RouteMatrixBoundaryGeometry; Unbounded?: boolean; @@ -1020,12 +1015,11 @@ export const RouteMatrixTravelMode = /*@__PURE__*/ S.String; export interface RouteMatrixVehicleLicensePlate { LastCharacter?: string; } -export const RouteMatrixVehicleLicensePlate = - /*@__PURE__*/ S.suspend(() => - S.Struct({ LastCharacter: S.optional(S.String) }), - ).annotate({ - identifier: "RouteMatrixVehicleLicensePlate", - }) as any as S.Schema; +export const RouteMatrixVehicleLicensePlate = /*@__PURE__*/ S.suspend(() => + S.Struct({ LastCharacter: S.optional(S.String) }), +).annotate({ + identifier: "RouteMatrixVehicleLicensePlate", +}) as any as S.Schema; export interface RouteMatrixCarOptions { LicensePlate?: RouteMatrixVehicleLicensePlate; MaxSpeed?: number; @@ -1069,8 +1063,9 @@ export type RouteMatrixHazardousCargoType = | (string & {}); export const RouteMatrixHazardousCargoType = /*@__PURE__*/ S.String; export type RouteMatrixHazardousCargoTypeList = RouteMatrixHazardousCargoType[]; -export const RouteMatrixHazardousCargoTypeList = - /*@__PURE__*/ S.Array(RouteMatrixHazardousCargoType); +export const RouteMatrixHazardousCargoTypeList = /*@__PURE__*/ S.Array( + RouteMatrixHazardousCargoType, +); export interface RouteMatrixTrailerOptions { TrailerCount?: number; } @@ -1130,16 +1125,15 @@ export interface RouteMatrixTravelModeOptions { Scooter?: RouteMatrixScooterOptions; Truck?: RouteMatrixTruckOptions; } -export const RouteMatrixTravelModeOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Car: S.optional(RouteMatrixCarOptions), - Scooter: S.optional(RouteMatrixScooterOptions), - Truck: S.optional(RouteMatrixTruckOptions), - }), - ).annotate({ - identifier: "RouteMatrixTravelModeOptions", - }) as any as S.Schema; +export const RouteMatrixTravelModeOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Car: S.optional(RouteMatrixCarOptions), + Scooter: S.optional(RouteMatrixScooterOptions), + Truck: S.optional(RouteMatrixTruckOptions), + }), +).annotate({ + identifier: "RouteMatrixTravelModeOptions", +}) as any as S.Schema; export interface CalculateRouteMatrixRequest { Allow?: RouteMatrixAllowOptions; Avoid?: RouteMatrixAvoidanceOptions; @@ -1155,35 +1149,34 @@ export interface CalculateRouteMatrixRequest { TravelMode?: RouteMatrixTravelMode; TravelModeOptions?: RouteMatrixTravelModeOptions; } -export const CalculateRouteMatrixRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Allow: S.optional(RouteMatrixAllowOptions), - Avoid: S.optional(RouteMatrixAvoidanceOptions), - DepartNow: S.optional(S.Boolean), - DepartureTime: S.optional(SensitiveString), - Destinations: RouteMatrixDestinationList, - Exclude: S.optional(RouteMatrixExclusionOptions), - Key: S.optional(SensitiveString).pipe(T.HttpQuery("key")), - OptimizeRoutingFor: S.optional(RoutingObjective), - Origins: RouteMatrixOriginList, - RoutingBoundary: S.optional(RouteMatrixBoundary), - Traffic: S.optional(RouteMatrixTrafficOptions), - TravelMode: S.optional(RouteMatrixTravelMode), - TravelModeOptions: S.optional(RouteMatrixTravelModeOptions), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/v2/route-matrix" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CalculateRouteMatrixRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Allow: S.optional(RouteMatrixAllowOptions), + Avoid: S.optional(RouteMatrixAvoidanceOptions), + DepartNow: S.optional(S.Boolean), + DepartureTime: S.optional(SensitiveString), + Destinations: RouteMatrixDestinationList, + Exclude: S.optional(RouteMatrixExclusionOptions), + Key: S.optional(SensitiveString).pipe(T.HttpQuery("key")), + OptimizeRoutingFor: S.optional(RoutingObjective), + Origins: RouteMatrixOriginList, + RoutingBoundary: S.optional(RouteMatrixBoundary), + Traffic: S.optional(RouteMatrixTrafficOptions), + TravelMode: S.optional(RouteMatrixTravelMode), + TravelModeOptions: S.optional(RouteMatrixTravelModeOptions), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/v2/route-matrix" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CalculateRouteMatrixRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CalculateRouteMatrixRequest", +}) as any as S.Schema; export type RouteMatrixErrorCode = | "NoMatch" | "NoMatchDestination" @@ -1220,17 +1213,16 @@ export interface CalculateRouteMatrixResponse { RouteMatrix: RouteMatrixEntry[][]; RoutingBoundary: RouteMatrixBoundary; } -export const CalculateRouteMatrixResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ErrorCount: S.Number, - PricingBucket: S.String.pipe(T.HttpHeader("x-amz-geo-pricing-bucket")), - RouteMatrix: RouteMatrix, - RoutingBoundary: RouteMatrixBoundary, - }), - ).annotate({ - identifier: "CalculateRouteMatrixResponse", - }) as any as S.Schema; +export const CalculateRouteMatrixResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ErrorCount: S.Number, + PricingBucket: S.String.pipe(T.HttpHeader("x-amz-geo-pricing-bucket")), + RouteMatrix: RouteMatrix, + RoutingBoundary: RouteMatrixBoundary, + }), +).annotate({ + identifier: "CalculateRouteMatrixResponse", +}) as any as S.Schema; export interface RouteAllowOptions { Hot?: boolean; Hov?: boolean; @@ -1245,7 +1237,7 @@ export interface RouteAvoidanceAreaGeometry { BoundingBox?: number[]; Polygon?: number[][][]; PolylineCorridor?: PolylineCorridor; - PolylinePolygon?: string | redacted.Redacted[]; + PolylinePolygon?: (string | redacted.Redacted)[]; } export const RouteAvoidanceAreaGeometry = /*@__PURE__*/ S.suspend(() => S.Struct({ @@ -1259,8 +1251,9 @@ export const RouteAvoidanceAreaGeometry = /*@__PURE__*/ S.suspend(() => identifier: "RouteAvoidanceAreaGeometry", }) as any as S.Schema; export type RouteAvoidanceAreaGeometryList = RouteAvoidanceAreaGeometry[]; -export const RouteAvoidanceAreaGeometryList = - /*@__PURE__*/ S.Array(RouteAvoidanceAreaGeometry); +export const RouteAvoidanceAreaGeometryList = /*@__PURE__*/ S.Array( + RouteAvoidanceAreaGeometry, +); export interface RouteAvoidanceArea { Except?: RouteAvoidanceAreaGeometry[]; Geometry: RouteAvoidanceAreaGeometry; @@ -1290,8 +1283,9 @@ export const RouteAvoidanceZoneCategory = /*@__PURE__*/ S.suspend(() => identifier: "RouteAvoidanceZoneCategory", }) as any as S.Schema; export type RouteAvoidanceZoneCategoryList = RouteAvoidanceZoneCategory[]; -export const RouteAvoidanceZoneCategoryList = - /*@__PURE__*/ S.Array(RouteAvoidanceZoneCategory); +export const RouteAvoidanceZoneCategoryList = /*@__PURE__*/ S.Array( + RouteAvoidanceZoneCategory, +); export interface RouteAvoidanceOptions { Areas?: RouteAvoidanceArea[]; CarShuttleTrains?: boolean; @@ -1301,7 +1295,7 @@ export interface RouteAvoidanceOptions { SeasonalClosure?: boolean; TollRoads?: boolean; TollTransponders?: boolean; - TruckRoadTypes?: string | redacted.Redacted[]; + TruckRoadTypes?: (string | redacted.Redacted)[]; Tunnels?: boolean; UTurns?: boolean; ZoneCategories?: RouteAvoidanceZoneCategory[]; @@ -1376,15 +1370,15 @@ export interface RouteDriverScheduleInterval { DriveDuration: number; RestDuration: number; } -export const RouteDriverScheduleInterval = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DriveDuration: S.Number, RestDuration: S.Number }), - ).annotate({ - identifier: "RouteDriverScheduleInterval", - }) as any as S.Schema; +export const RouteDriverScheduleInterval = /*@__PURE__*/ S.suspend(() => + S.Struct({ DriveDuration: S.Number, RestDuration: S.Number }), +).annotate({ + identifier: "RouteDriverScheduleInterval", +}) as any as S.Schema; export type RouteDriverScheduleIntervalList = RouteDriverScheduleInterval[]; -export const RouteDriverScheduleIntervalList = - /*@__PURE__*/ S.Array(RouteDriverScheduleInterval); +export const RouteDriverScheduleIntervalList = /*@__PURE__*/ S.Array( + RouteDriverScheduleInterval, +); export interface RouteDriverOptions { Schedule?: RouteDriverScheduleInterval[]; } @@ -1394,7 +1388,7 @@ export const RouteDriverOptions = /*@__PURE__*/ S.suspend(() => identifier: "RouteDriverOptions", }) as any as S.Schema; export interface RouteExclusionOptions { - Countries: string | redacted.Redacted[]; + Countries: (string | redacted.Redacted)[]; } export const RouteExclusionOptions = /*@__PURE__*/ S.suspend(() => S.Struct({ Countries: CountryCodeList }), @@ -1421,8 +1415,9 @@ export type RouteLegAdditionalFeature = | (string & {}); export const RouteLegAdditionalFeature = /*@__PURE__*/ S.String; export type RouteLegAdditionalFeatureList = RouteLegAdditionalFeature[]; -export const RouteLegAdditionalFeatureList = - /*@__PURE__*/ S.Array(RouteLegAdditionalFeature); +export const RouteLegAdditionalFeatureList = /*@__PURE__*/ S.Array( + RouteLegAdditionalFeature, +); export interface RouteOriginOptions { AvoidActionsForDistance?: number; AvoidUTurns?: boolean; @@ -1469,8 +1464,9 @@ export type RouteSpanAdditionalFeature = | (string & {}); export const RouteSpanAdditionalFeature = /*@__PURE__*/ S.String; export type RouteSpanAdditionalFeatureList = RouteSpanAdditionalFeature[]; -export const RouteSpanAdditionalFeatureList = - /*@__PURE__*/ S.Array(RouteSpanAdditionalFeature); +export const RouteSpanAdditionalFeatureList = /*@__PURE__*/ S.Array( + RouteSpanAdditionalFeature, +); export interface RouteEmissionType { Co2EmissionClass?: string | redacted.Redacted; Type: string | redacted.Redacted; @@ -1663,21 +1659,18 @@ export const RouteTruckOptions = /*@__PURE__*/ S.suspend(() => export type RouteAccessibilityAttribute = "Wheelchair" | (string & {}); export const RouteAccessibilityAttribute = /*@__PURE__*/ S.String; export type RouteAccessibilityAttributeList = RouteAccessibilityAttribute[]; -export const RouteAccessibilityAttributeList = - /*@__PURE__*/ S.Array(RouteAccessibilityAttribute); +export const RouteAccessibilityAttributeList = /*@__PURE__*/ S.Array( + RouteAccessibilityAttribute, +); export interface RouteIntermodalPedestrianOptions { MaxDistance?: number; Speed?: number; } -export const RouteIntermodalPedestrianOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - MaxDistance: S.optional(S.Number), - Speed: S.optional(S.Number), - }), - ).annotate({ - identifier: "RouteIntermodalPedestrianOptions", - }) as any as S.Schema; +export const RouteIntermodalPedestrianOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ MaxDistance: S.optional(S.Number), Speed: S.optional(S.Number) }), +).annotate({ + identifier: "RouteIntermodalPedestrianOptions", +}) as any as S.Schema; export type RouteRentalMode = "All" | "Car" | (string & {}); export const RouteRentalMode = /*@__PURE__*/ S.String; export type RouteRentalModeList = RouteRentalMode[]; @@ -1690,23 +1683,23 @@ export type RouteIntermodalEnabledLegs = | (string & {}); export const RouteIntermodalEnabledLegs = /*@__PURE__*/ S.String; export type RouteIntermodalEnabledLegsList = RouteIntermodalEnabledLegs[]; -export const RouteIntermodalEnabledLegsList = - /*@__PURE__*/ S.Array(RouteIntermodalEnabledLegs); +export const RouteIntermodalEnabledLegsList = /*@__PURE__*/ S.Array( + RouteIntermodalEnabledLegs, +); export interface RouteIntermodalRentalOptions { AllowedModes?: RouteRentalMode[]; EnabledFor?: RouteIntermodalEnabledLegs[]; ExcludedModes?: RouteRentalMode[]; } -export const RouteIntermodalRentalOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AllowedModes: S.optional(RouteRentalModeList), - EnabledFor: S.optional(RouteIntermodalEnabledLegsList), - ExcludedModes: S.optional(RouteRentalModeList), - }), - ).annotate({ - identifier: "RouteIntermodalRentalOptions", - }) as any as S.Schema; +export const RouteIntermodalRentalOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AllowedModes: S.optional(RouteRentalModeList), + EnabledFor: S.optional(RouteIntermodalEnabledLegsList), + ExcludedModes: S.optional(RouteRentalModeList), + }), +).annotate({ + identifier: "RouteIntermodalRentalOptions", +}) as any as S.Schema; export type RouteTaxiMode = "All" | "Car" | (string & {}); export const RouteTaxiMode = /*@__PURE__*/ S.String; export type RouteTaxiModeList = RouteTaxiMode[]; @@ -1751,16 +1744,15 @@ export interface RouteIntermodalTransitOptions { EnabledFor?: RouteIntermodalEnabledLegs[]; ExcludedModes?: RouteTransitMode[]; } -export const RouteIntermodalTransitOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AllowedModes: S.optional(RouteTransitModeList), - EnabledFor: S.optional(RouteIntermodalEnabledLegsList), - ExcludedModes: S.optional(RouteTransitModeList), - }), - ).annotate({ - identifier: "RouteIntermodalTransitOptions", - }) as any as S.Schema; +export const RouteIntermodalTransitOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AllowedModes: S.optional(RouteTransitModeList), + EnabledFor: S.optional(RouteIntermodalEnabledLegsList), + ExcludedModes: S.optional(RouteTransitModeList), + }), +).annotate({ + identifier: "RouteIntermodalTransitOptions", +}) as any as S.Schema; export type RouteVehicleMode = "All" | "Car" | (string & {}); export const RouteVehicleMode = /*@__PURE__*/ S.String; export type RouteVehicleModeList = RouteVehicleMode[]; @@ -1770,16 +1762,15 @@ export interface RouteIntermodalVehicleOptions { EnabledFor?: RouteIntermodalEnabledLegs[]; ExcludedModes?: RouteVehicleMode[]; } -export const RouteIntermodalVehicleOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AllowedModes: S.optional(RouteVehicleModeList), - EnabledFor: S.optional(RouteIntermodalEnabledLegsList), - ExcludedModes: S.optional(RouteVehicleModeList), - }), - ).annotate({ - identifier: "RouteIntermodalVehicleOptions", - }) as any as S.Schema; +export const RouteIntermodalVehicleOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AllowedModes: S.optional(RouteVehicleModeList), + EnabledFor: S.optional(RouteIntermodalEnabledLegsList), + ExcludedModes: S.optional(RouteVehicleModeList), + }), +).annotate({ + identifier: "RouteIntermodalVehicleOptions", +}) as any as S.Schema; export interface RouteIntermodalOptions { AccessibilityAttributes?: RouteAccessibilityAttribute[]; MaxTransfers?: number; @@ -1806,15 +1797,11 @@ export interface RouteTransitPedestrianOptions { MaxDistance?: number; Speed?: number; } -export const RouteTransitPedestrianOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - MaxDistance: S.optional(S.Number), - Speed: S.optional(S.Number), - }), - ).annotate({ - identifier: "RouteTransitPedestrianOptions", - }) as any as S.Schema; +export const RouteTransitPedestrianOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ MaxDistance: S.optional(S.Number), Speed: S.optional(S.Number) }), +).annotate({ + identifier: "RouteTransitPedestrianOptions", +}) as any as S.Schema; export interface RouteTransitOptions { AccessibilityAttributes?: RouteAccessibilityAttribute[]; AllowedModes?: RouteTransitMode[]; @@ -1989,8 +1976,9 @@ export const RouteFerryAfterTravelStep = /*@__PURE__*/ S.suspend(() => identifier: "RouteFerryAfterTravelStep", }) as any as S.Schema; export type RouteFerryAfterTravelStepList = RouteFerryAfterTravelStep[]; -export const RouteFerryAfterTravelStepList = - /*@__PURE__*/ S.Array(RouteFerryAfterTravelStep); +export const RouteFerryAfterTravelStepList = /*@__PURE__*/ S.Array( + RouteFerryAfterTravelStep, +); export type Position23 = number[]; export const Position23 = /*@__PURE__*/ S.Array(S.Number); export interface RouteFerryPlace { @@ -2035,8 +2023,9 @@ export const RouteFerryBeforeTravelStep = /*@__PURE__*/ S.suspend(() => identifier: "RouteFerryBeforeTravelStep", }) as any as S.Schema; export type RouteFerryBeforeTravelStepList = RouteFerryBeforeTravelStep[]; -export const RouteFerryBeforeTravelStepList = - /*@__PURE__*/ S.Array(RouteFerryBeforeTravelStep); +export const RouteFerryBeforeTravelStepList = /*@__PURE__*/ S.Array( + RouteFerryBeforeTravelStep, +); export interface RouteFerryDeparture { Place: RouteFerryPlace; Time?: string | redacted.Redacted; @@ -2145,10 +2134,11 @@ export const RouteFerryOverviewSummary = /*@__PURE__*/ S.suspend(() => export interface RouteFerryTravelOnlySummary { Duration: number; } -export const RouteFerryTravelOnlySummary = - /*@__PURE__*/ S.suspend(() => S.Struct({ Duration: S.Number })).annotate({ - identifier: "RouteFerryTravelOnlySummary", - }) as any as S.Schema; +export const RouteFerryTravelOnlySummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ Duration: S.Number }), +).annotate({ + identifier: "RouteFerryTravelOnlySummary", +}) as any as S.Schema; export interface RouteFerrySummary { Overview?: RouteFerryOverviewSummary; TravelOnly?: RouteFerryTravelOnlySummary; @@ -2189,29 +2179,29 @@ export type RouteFerryTravelStepList = RouteFerryTravelStep[]; export const RouteFerryTravelStepList = /*@__PURE__*/ S.Array(RouteFerryTravelStep); export interface RouteFerryLegDetails { - AfterTravelSteps: RouteFerryAfterTravelStep[]; + AfterTravelSteps?: RouteFerryAfterTravelStep[]; Arrival: RouteFerryArrival; - BeforeTravelSteps: RouteFerryBeforeTravelStep[]; + BeforeTravelSteps?: RouteFerryBeforeTravelStep[]; Departure: RouteFerryDeparture; - Notices: RouteFerryNotice[]; - PassThroughWaypoints: RoutePassThroughWaypoint[]; + Notices?: RouteFerryNotice[]; + PassThroughWaypoints?: RoutePassThroughWaypoint[]; RouteName?: string | redacted.Redacted; - Spans: RouteFerrySpan[]; + Spans?: RouteFerrySpan[]; Summary?: RouteFerrySummary; - TravelSteps: RouteFerryTravelStep[]; + TravelSteps?: RouteFerryTravelStep[]; } export const RouteFerryLegDetails = /*@__PURE__*/ S.suspend(() => S.Struct({ - AfterTravelSteps: RouteFerryAfterTravelStepList, + AfterTravelSteps: S.optional(RouteFerryAfterTravelStepList), Arrival: RouteFerryArrival, - BeforeTravelSteps: RouteFerryBeforeTravelStepList, + BeforeTravelSteps: S.optional(RouteFerryBeforeTravelStepList), Departure: RouteFerryDeparture, - Notices: RouteFerryNoticeList, - PassThroughWaypoints: RoutePassThroughWaypointList, + Notices: S.optional(RouteFerryNoticeList), + PassThroughWaypoints: S.optional(RoutePassThroughWaypointList), RouteName: S.optional(SensitiveString), - Spans: RouteFerrySpanList, + Spans: S.optional(RouteFerrySpanList), Summary: S.optional(RouteFerrySummary), - TravelSteps: RouteFerryTravelStepList, + TravelSteps: S.optional(RouteFerryTravelStepList), }), ).annotate({ identifier: "RouteFerryLegDetails", @@ -2235,20 +2225,20 @@ export interface RoutePedestrianAfterTravelStep { Instruction?: string | redacted.Redacted; Type: RoutePedestrianAfterTravelStepType; } -export const RoutePedestrianAfterTravelStep = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Duration: S.Number, - Instruction: S.optional(SensitiveString), - Type: RoutePedestrianAfterTravelStepType, - }), - ).annotate({ - identifier: "RoutePedestrianAfterTravelStep", - }) as any as S.Schema; +export const RoutePedestrianAfterTravelStep = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Duration: S.Number, + Instruction: S.optional(SensitiveString), + Type: RoutePedestrianAfterTravelStepType, + }), +).annotate({ + identifier: "RoutePedestrianAfterTravelStep", +}) as any as S.Schema; export type RoutePedestrianAfterTravelStepList = RoutePedestrianAfterTravelStep[]; -export const RoutePedestrianAfterTravelStepList = - /*@__PURE__*/ S.Array(RoutePedestrianAfterTravelStep); +export const RoutePedestrianAfterTravelStepList = /*@__PURE__*/ S.Array( + RoutePedestrianAfterTravelStep, +); export type RouteAccessibilityAvailability = | "Available" | "Limited" @@ -2259,12 +2249,11 @@ export const RouteAccessibilityAvailability = /*@__PURE__*/ S.String; export interface RouteAccessibilityAvailabilityDetails { Wheelchair?: RouteAccessibilityAvailability; } -export const RouteAccessibilityAvailabilityDetails = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Wheelchair: S.optional(RouteAccessibilityAvailability) }), - ).annotate({ - identifier: "RouteAccessibilityAvailabilityDetails", - }) as any as S.Schema; +export const RouteAccessibilityAvailabilityDetails = /*@__PURE__*/ S.suspend( + () => S.Struct({ Wheelchair: S.optional(RouteAccessibilityAvailability) }), +).annotate({ + identifier: "RouteAccessibilityAvailabilityDetails", +}) as any as S.Schema; export interface RouteAccessPointDetails { Accessibility?: RouteAccessibilityAvailabilityDetails; } @@ -2327,10 +2316,7 @@ export interface RoutePedestrianArrival { Time?: string | redacted.Redacted; } export const RoutePedestrianArrival = /*@__PURE__*/ S.suspend(() => - S.Struct({ - Place: RoutePedestrianPlace, - Time: S.optional(SensitiveString), - }), + S.Struct({ Place: RoutePedestrianPlace, Time: S.optional(SensitiveString) }), ).annotate({ identifier: "RoutePedestrianArrival", }) as any as S.Schema; @@ -2339,10 +2325,7 @@ export interface RoutePedestrianDeparture { Time?: string | redacted.Redacted; } export const RoutePedestrianDeparture = /*@__PURE__*/ S.suspend(() => - S.Struct({ - Place: RoutePedestrianPlace, - Time: S.optional(SensitiveString), - }), + S.Struct({ Place: RoutePedestrianPlace, Time: S.optional(SensitiveString) }), ).annotate({ identifier: "RoutePedestrianDeparture", }) as any as S.Schema; @@ -2376,16 +2359,15 @@ export interface RouteSpanDynamicSpeedDetails { TurnDuration?: number; TypicalSpeed?: number; } -export const RouteSpanDynamicSpeedDetails = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - BestCaseSpeed: S.optional(S.Number), - TurnDuration: S.optional(S.Number), - TypicalSpeed: S.optional(S.Number), - }), - ).annotate({ - identifier: "RouteSpanDynamicSpeedDetails", - }) as any as S.Schema; +export const RouteSpanDynamicSpeedDetails = /*@__PURE__*/ S.suspend(() => + S.Struct({ + BestCaseSpeed: S.optional(S.Number), + TurnDuration: S.optional(S.Number), + TypicalSpeed: S.optional(S.Number), + }), +).annotate({ + identifier: "RouteSpanDynamicSpeedDetails", +}) as any as S.Schema; export type IndexList = number[]; export const IndexList = /*@__PURE__*/ S.Array(S.Number); export type RouteSpanPedestrianAccessAttribute = @@ -2399,8 +2381,9 @@ export type RouteSpanPedestrianAccessAttribute = export const RouteSpanPedestrianAccessAttribute = /*@__PURE__*/ S.String; export type RouteSpanPedestrianAccessAttributeList = RouteSpanPedestrianAccessAttribute[]; -export const RouteSpanPedestrianAccessAttributeList = - /*@__PURE__*/ S.Array(RouteSpanPedestrianAccessAttribute); +export const RouteSpanPedestrianAccessAttributeList = /*@__PURE__*/ S.Array( + RouteSpanPedestrianAccessAttribute, +); export type RouteSpanRoadAttribute = | "Bridge" | "BuiltUpArea" @@ -2498,19 +2481,19 @@ export interface RoutePedestrianOverviewSummary { Distance: number; Duration: number; } -export const RoutePedestrianOverviewSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Distance: S.Number, Duration: S.Number }), - ).annotate({ - identifier: "RoutePedestrianOverviewSummary", - }) as any as S.Schema; +export const RoutePedestrianOverviewSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ Distance: S.Number, Duration: S.Number }), +).annotate({ + identifier: "RoutePedestrianOverviewSummary", +}) as any as S.Schema; export interface RoutePedestrianTravelOnlySummary { Duration: number; } -export const RoutePedestrianTravelOnlySummary = - /*@__PURE__*/ S.suspend(() => S.Struct({ Duration: S.Number })).annotate({ - identifier: "RoutePedestrianTravelOnlySummary", - }) as any as S.Schema; +export const RoutePedestrianTravelOnlySummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ Duration: S.Number }), +).annotate({ + identifier: "RoutePedestrianTravelOnlySummary", +}) as any as S.Schema; export interface RoutePedestrianSummary { Overview?: RoutePedestrianOverviewSummary; TravelOnly?: RoutePedestrianTravelOnlySummary; @@ -2577,51 +2560,48 @@ export interface RouteRoundaboutEnterStepDetails { TurnAngle?: number; TurnIntensity?: RouteTurnIntensity; } -export const RouteRoundaboutEnterStepDetails = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Intersection: LocalizedStringList, - SteeringDirection: S.optional(RouteSteeringDirection), - TurnAngle: S.optional(S.Number), - TurnIntensity: S.optional(RouteTurnIntensity), - }), - ).annotate({ - identifier: "RouteRoundaboutEnterStepDetails", - }) as any as S.Schema; +export const RouteRoundaboutEnterStepDetails = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Intersection: LocalizedStringList, + SteeringDirection: S.optional(RouteSteeringDirection), + TurnAngle: S.optional(S.Number), + TurnIntensity: S.optional(RouteTurnIntensity), + }), +).annotate({ + identifier: "RouteRoundaboutEnterStepDetails", +}) as any as S.Schema; export interface RouteRoundaboutExitStepDetails { Intersection: LocalizedString[]; RelativeExit?: number; RoundaboutAngle?: number; SteeringDirection?: RouteSteeringDirection; } -export const RouteRoundaboutExitStepDetails = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Intersection: LocalizedStringList, - RelativeExit: S.optional(S.Number), - RoundaboutAngle: S.optional(S.Number), - SteeringDirection: S.optional(RouteSteeringDirection), - }), - ).annotate({ - identifier: "RouteRoundaboutExitStepDetails", - }) as any as S.Schema; +export const RouteRoundaboutExitStepDetails = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Intersection: LocalizedStringList, + RelativeExit: S.optional(S.Number), + RoundaboutAngle: S.optional(S.Number), + SteeringDirection: S.optional(RouteSteeringDirection), + }), +).annotate({ + identifier: "RouteRoundaboutExitStepDetails", +}) as any as S.Schema; export interface RouteRoundaboutPassStepDetails { Intersection: LocalizedString[]; SteeringDirection?: RouteSteeringDirection; TurnAngle?: number; TurnIntensity?: RouteTurnIntensity; } -export const RouteRoundaboutPassStepDetails = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Intersection: LocalizedStringList, - SteeringDirection: S.optional(RouteSteeringDirection), - TurnAngle: S.optional(S.Number), - TurnIntensity: S.optional(RouteTurnIntensity), - }), - ).annotate({ - identifier: "RouteRoundaboutPassStepDetails", - }) as any as S.Schema; +export const RouteRoundaboutPassStepDetails = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Intersection: LocalizedStringList, + SteeringDirection: S.optional(RouteSteeringDirection), + TurnAngle: S.optional(S.Number), + TurnIntensity: S.optional(RouteTurnIntensity), + }), +).annotate({ + identifier: "RouteRoundaboutPassStepDetails", +}) as any as S.Schema; export interface RouteSignpostLabel { RouteNumber?: RouteNumber; Text?: LocalizedString; @@ -2708,28 +2688,29 @@ export const RoutePedestrianTravelStep = /*@__PURE__*/ S.suspend(() => identifier: "RoutePedestrianTravelStep", }) as any as S.Schema; export type RoutePedestrianTravelStepList = RoutePedestrianTravelStep[]; -export const RoutePedestrianTravelStepList = - /*@__PURE__*/ S.Array(RoutePedestrianTravelStep); +export const RoutePedestrianTravelStepList = /*@__PURE__*/ S.Array( + RoutePedestrianTravelStep, +); export interface RoutePedestrianLegDetails { - AfterTravelSteps: RoutePedestrianAfterTravelStep[]; + AfterTravelSteps?: RoutePedestrianAfterTravelStep[]; Arrival: RoutePedestrianArrival; Departure: RoutePedestrianDeparture; - Notices: RoutePedestrianNotice[]; - PassThroughWaypoints: RoutePassThroughWaypoint[]; - Spans: RoutePedestrianSpan[]; + Notices?: RoutePedestrianNotice[]; + PassThroughWaypoints?: RoutePassThroughWaypoint[]; + Spans?: RoutePedestrianSpan[]; Summary?: RoutePedestrianSummary; - TravelSteps: RoutePedestrianTravelStep[]; + TravelSteps?: RoutePedestrianTravelStep[]; } export const RoutePedestrianLegDetails = /*@__PURE__*/ S.suspend(() => S.Struct({ - AfterTravelSteps: RoutePedestrianAfterTravelStepList, + AfterTravelSteps: S.optional(RoutePedestrianAfterTravelStepList), Arrival: RoutePedestrianArrival, Departure: RoutePedestrianDeparture, - Notices: RoutePedestrianNoticeList, - PassThroughWaypoints: RoutePassThroughWaypointList, - Spans: RoutePedestrianSpanList, + Notices: S.optional(RoutePedestrianNoticeList), + PassThroughWaypoints: S.optional(RoutePassThroughWaypointList), + Spans: S.optional(RoutePedestrianSpanList), Summary: S.optional(RoutePedestrianSummary), - TravelSteps: RoutePedestrianTravelStepList, + TravelSteps: S.optional(RoutePedestrianTravelStepList), }), ).annotate({ identifier: "RoutePedestrianLegDetails", @@ -2788,20 +2769,20 @@ export interface RouteVehicleAfterTravelStep { Instruction?: string | redacted.Redacted; Type: RouteVehicleAfterTravelStepType; } -export const RouteVehicleAfterTravelStep = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ChargeStepDetails: S.optional(RouteChargeStepDetails), - Duration: S.Number, - Instruction: S.optional(SensitiveString), - Type: RouteVehicleAfterTravelStepType, - }), - ).annotate({ - identifier: "RouteVehicleAfterTravelStep", - }) as any as S.Schema; +export const RouteVehicleAfterTravelStep = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ChargeStepDetails: S.optional(RouteChargeStepDetails), + Duration: S.Number, + Instruction: S.optional(SensitiveString), + Type: RouteVehicleAfterTravelStepType, + }), +).annotate({ + identifier: "RouteVehicleAfterTravelStep", +}) as any as S.Schema; export type RouteVehicleAfterTravelStepList = RouteVehicleAfterTravelStep[]; -export const RouteVehicleAfterTravelStepList = - /*@__PURE__*/ S.Array(RouteVehicleAfterTravelStep); +export const RouteVehicleAfterTravelStepList = /*@__PURE__*/ S.Array( + RouteVehicleAfterTravelStep, +); export type RouteVehiclePlaceType = | "AccessPoint" | "DockingStation" @@ -3033,8 +3014,9 @@ export type RouteSpanCarAccessAttribute = | (string & {}); export const RouteSpanCarAccessAttribute = /*@__PURE__*/ S.String; export type RouteSpanCarAccessAttributeList = RouteSpanCarAccessAttribute[]; -export const RouteSpanCarAccessAttributeList = - /*@__PURE__*/ S.Array(RouteSpanCarAccessAttribute); +export const RouteSpanCarAccessAttributeList = /*@__PURE__*/ S.Array( + RouteSpanCarAccessAttribute, +); export type RouteSpanGateAttribute = | "Emergency" | "KeyAccess" @@ -3054,8 +3036,9 @@ export type RouteSpanScooterAccessAttribute = export const RouteSpanScooterAccessAttribute = /*@__PURE__*/ S.String; export type RouteSpanScooterAccessAttributeList = RouteSpanScooterAccessAttribute[]; -export const RouteSpanScooterAccessAttributeList = - /*@__PURE__*/ S.Array(RouteSpanScooterAccessAttribute); +export const RouteSpanScooterAccessAttributeList = /*@__PURE__*/ S.Array( + RouteSpanScooterAccessAttribute, +); export type RouteSpanTruckAccessAttribute = | "Allowed" | "NoThroughTraffic" @@ -3063,8 +3046,9 @@ export type RouteSpanTruckAccessAttribute = | (string & {}); export const RouteSpanTruckAccessAttribute = /*@__PURE__*/ S.String; export type RouteSpanTruckAccessAttributeList = RouteSpanTruckAccessAttribute[]; -export const RouteSpanTruckAccessAttributeList = - /*@__PURE__*/ S.Array(RouteSpanTruckAccessAttribute); +export const RouteSpanTruckAccessAttributeList = /*@__PURE__*/ S.Array( + RouteSpanTruckAccessAttribute, +); export interface RouteVehicleSpan { BestCaseDuration?: number; CarAccess?: RouteSpanCarAccessAttribute[]; @@ -3127,32 +3111,30 @@ export interface RouteVehicleOverviewSummary { Duration: number; TypicalDuration?: number; } -export const RouteVehicleOverviewSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - BestCaseDuration: S.optional(S.Number), - Distance: S.Number, - Duration: S.Number, - TypicalDuration: S.optional(S.Number), - }), - ).annotate({ - identifier: "RouteVehicleOverviewSummary", - }) as any as S.Schema; +export const RouteVehicleOverviewSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + BestCaseDuration: S.optional(S.Number), + Distance: S.Number, + Duration: S.Number, + TypicalDuration: S.optional(S.Number), + }), +).annotate({ + identifier: "RouteVehicleOverviewSummary", +}) as any as S.Schema; export interface RouteVehicleTravelOnlySummary { BestCaseDuration?: number; Duration: number; TypicalDuration?: number; } -export const RouteVehicleTravelOnlySummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - BestCaseDuration: S.optional(S.Number), - Duration: S.Number, - TypicalDuration: S.optional(S.Number), - }), - ).annotate({ - identifier: "RouteVehicleTravelOnlySummary", - }) as any as S.Schema; +export const RouteVehicleTravelOnlySummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + BestCaseDuration: S.optional(S.Number), + Duration: S.Number, + TypicalDuration: S.optional(S.Number), + }), +).annotate({ + identifier: "RouteVehicleTravelOnlySummary", +}) as any as S.Schema; export interface RouteVehicleSummary { Overview?: RouteVehicleOverviewSummary; TravelOnly?: RouteVehicleTravelOnlySummary; @@ -3216,15 +3198,14 @@ export interface RouteTollPassValidityPeriod { Period: RouteTollPassValidityPeriodType; PeriodCount?: number; } -export const RouteTollPassValidityPeriod = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Period: RouteTollPassValidityPeriodType, - PeriodCount: S.optional(S.Number), - }), - ).annotate({ - identifier: "RouteTollPassValidityPeriod", - }) as any as S.Schema; +export const RouteTollPassValidityPeriod = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Period: RouteTollPassValidityPeriodType, + PeriodCount: S.optional(S.Number), + }), +).annotate({ + identifier: "RouteTollPassValidityPeriod", +}) as any as S.Schema; export interface RouteTollPass { IncludesReturnTrip?: boolean; SeniorPass?: boolean; @@ -3322,34 +3303,32 @@ export interface RouteContinueHighwayStepDetails { TurnAngle?: number; TurnIntensity?: RouteTurnIntensity; } -export const RouteContinueHighwayStepDetails = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Intersection: LocalizedStringList, - SteeringDirection: S.optional(RouteSteeringDirection), - TurnAngle: S.optional(S.Number), - TurnIntensity: S.optional(RouteTurnIntensity), - }), - ).annotate({ - identifier: "RouteContinueHighwayStepDetails", - }) as any as S.Schema; +export const RouteContinueHighwayStepDetails = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Intersection: LocalizedStringList, + SteeringDirection: S.optional(RouteSteeringDirection), + TurnAngle: S.optional(S.Number), + TurnIntensity: S.optional(RouteTurnIntensity), + }), +).annotate({ + identifier: "RouteContinueHighwayStepDetails", +}) as any as S.Schema; export interface RouteEnterHighwayStepDetails { Intersection: LocalizedString[]; SteeringDirection?: RouteSteeringDirection; TurnAngle?: number; TurnIntensity?: RouteTurnIntensity; } -export const RouteEnterHighwayStepDetails = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Intersection: LocalizedStringList, - SteeringDirection: S.optional(RouteSteeringDirection), - TurnAngle: S.optional(S.Number), - TurnIntensity: S.optional(RouteTurnIntensity), - }), - ).annotate({ - identifier: "RouteEnterHighwayStepDetails", - }) as any as S.Schema; +export const RouteEnterHighwayStepDetails = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Intersection: LocalizedStringList, + SteeringDirection: S.optional(RouteSteeringDirection), + TurnAngle: S.optional(S.Number), + TurnIntensity: S.optional(RouteTurnIntensity), + }), +).annotate({ + identifier: "RouteEnterHighwayStepDetails", +}) as any as S.Schema; export interface RouteExitStepDetails { Intersection: LocalizedString[]; RelativeExit?: number; @@ -3481,35 +3460,35 @@ export const RouteZone = /*@__PURE__*/ S.suspend(() => export type RouteZoneList = RouteZone[]; export const RouteZoneList = /*@__PURE__*/ S.Array(RouteZone); export interface RouteVehicleLegDetails { - AfterTravelSteps: RouteVehicleAfterTravelStep[]; + AfterTravelSteps?: RouteVehicleAfterTravelStep[]; Arrival: RouteVehicleArrival; Departure: RouteVehicleDeparture; - Incidents: RouteVehicleIncident[]; - Notices: RouteVehicleNotice[]; - PassThroughWaypoints: RoutePassThroughWaypoint[]; - Spans: RouteVehicleSpan[]; + Incidents?: RouteVehicleIncident[]; + Notices?: RouteVehicleNotice[]; + PassThroughWaypoints?: RoutePassThroughWaypoint[]; + Spans?: RouteVehicleSpan[]; Summary?: RouteVehicleSummary; - Tolls: RouteToll[]; - TollSystems: RouteTollSystem[]; - TravelSteps: RouteVehicleTravelStep[]; - TruckRoadTypes: string | redacted.Redacted[]; - Zones: RouteZone[]; + Tolls?: RouteToll[]; + TollSystems?: RouteTollSystem[]; + TravelSteps?: RouteVehicleTravelStep[]; + TruckRoadTypes?: (string | redacted.Redacted)[]; + Zones?: RouteZone[]; } export const RouteVehicleLegDetails = /*@__PURE__*/ S.suspend(() => S.Struct({ - AfterTravelSteps: RouteVehicleAfterTravelStepList, + AfterTravelSteps: S.optional(RouteVehicleAfterTravelStepList), Arrival: RouteVehicleArrival, Departure: RouteVehicleDeparture, - Incidents: RouteVehicleIncidentList, - Notices: RouteVehicleNoticeList, - PassThroughWaypoints: RoutePassThroughWaypointList, - Spans: RouteVehicleSpanList, + Incidents: S.optional(RouteVehicleIncidentList), + Notices: S.optional(RouteVehicleNoticeList), + PassThroughWaypoints: S.optional(RoutePassThroughWaypointList), + Spans: S.optional(RouteVehicleSpanList), Summary: S.optional(RouteVehicleSummary), - Tolls: RouteTollList, - TollSystems: RouteTollSystemList, - TravelSteps: RouteVehicleTravelStepList, - TruckRoadTypes: TruckRoadTypeList, - Zones: RouteZoneList, + Tolls: S.optional(RouteTollList), + TollSystems: S.optional(RouteTollSystemList), + TravelSteps: S.optional(RouteVehicleTravelStepList), + TruckRoadTypes: S.optional(TruckRoadTypeList), + Zones: S.optional(RouteZoneList), }), ).annotate({ identifier: "RouteVehicleLegDetails", @@ -3531,8 +3510,9 @@ export const RouteRentalAfterTravelStep = /*@__PURE__*/ S.suspend(() => identifier: "RouteRentalAfterTravelStep", }) as any as S.Schema; export type RouteRentalAfterTravelStepList = RouteRentalAfterTravelStep[]; -export const RouteRentalAfterTravelStepList = - /*@__PURE__*/ S.Array(RouteRentalAfterTravelStep); +export const RouteRentalAfterTravelStepList = /*@__PURE__*/ S.Array( + RouteRentalAfterTravelStep, +); export interface RouteRentalAgency { Name: string | redacted.Redacted; Url?: string | redacted.Redacted; @@ -3619,19 +3599,19 @@ export interface RouteRentalBeforeTravelStep { Instruction?: string | redacted.Redacted; Type: RouteRentalBeforeTravelStepType; } -export const RouteRentalBeforeTravelStep = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Duration: S.Number, - Instruction: S.optional(SensitiveString), - Type: RouteRentalBeforeTravelStepType, - }), - ).annotate({ - identifier: "RouteRentalBeforeTravelStep", - }) as any as S.Schema; +export const RouteRentalBeforeTravelStep = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Duration: S.Number, + Instruction: S.optional(SensitiveString), + Type: RouteRentalBeforeTravelStepType, + }), +).annotate({ + identifier: "RouteRentalBeforeTravelStep", +}) as any as S.Schema; export type RouteRentalBeforeTravelStepList = RouteRentalBeforeTravelStep[]; -export const RouteRentalBeforeTravelStepList = - /*@__PURE__*/ S.Array(RouteRentalBeforeTravelStep); +export const RouteRentalBeforeTravelStepList = /*@__PURE__*/ S.Array( + RouteRentalBeforeTravelStep, +); export type RouteWebLinkList = RouteWebLink[]; export const RouteWebLinkList = /*@__PURE__*/ S.Array(RouteWebLink); export interface RouteRentalDeparture { @@ -3655,10 +3635,11 @@ export const RouteRentalOverviewSummary = /*@__PURE__*/ S.suspend(() => export interface RouteRentalTravelOnlySummary { Duration: number; } -export const RouteRentalTravelOnlySummary = - /*@__PURE__*/ S.suspend(() => S.Struct({ Duration: S.Number })).annotate({ - identifier: "RouteRentalTravelOnlySummary", - }) as any as S.Schema; +export const RouteRentalTravelOnlySummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ Duration: S.Number }), +).annotate({ + identifier: "RouteRentalTravelOnlySummary", +}) as any as S.Schema; export interface RouteRentalSummary { Overview?: RouteRentalOverviewSummary; TravelOnly?: RouteRentalTravelOnlySummary; @@ -3682,22 +3663,21 @@ export interface RouteRentalTransportModeDetails { Name?: string | redacted.Redacted; TextColor?: string | redacted.Redacted; } -export const RouteRentalTransportModeDetails = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AvailableSeats: S.optional(S.Number), - Category: S.optional(SensitiveString), - Color: S.optional(SensitiveString), - Engine: S.optional(RouteEngineType), - LicensePlate: S.optional(SensitiveString), - Mode: RouteRentalMode, - Model: S.optional(SensitiveString), - Name: S.optional(SensitiveString), - TextColor: S.optional(SensitiveString), - }), - ).annotate({ - identifier: "RouteRentalTransportModeDetails", - }) as any as S.Schema; +export const RouteRentalTransportModeDetails = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AvailableSeats: S.optional(S.Number), + Category: S.optional(SensitiveString), + Color: S.optional(SensitiveString), + Engine: S.optional(RouteEngineType), + LicensePlate: S.optional(SensitiveString), + Mode: RouteRentalMode, + Model: S.optional(SensitiveString), + Name: S.optional(SensitiveString), + TextColor: S.optional(SensitiveString), + }), +).annotate({ + identifier: "RouteRentalTransportModeDetails", +}) as any as S.Schema; export type RouteRentalTravelStepType = | "Arrive" | "Continue" @@ -3753,29 +3733,29 @@ export const RouteRentalTravelStepList = /*@__PURE__*/ S.Array( RouteRentalTravelStep, ); export interface RouteRentalLegDetails { - AfterTravelSteps: RouteRentalAfterTravelStep[]; + AfterTravelSteps?: RouteRentalAfterTravelStep[]; Agency: RouteRentalAgency; Arrival: RouteRentalArrival; - Attributions: RouteAttribution[]; - BeforeTravelSteps: RouteRentalBeforeTravelStep[]; - BookingWebLinks: RouteWebLink[]; + Attributions?: RouteAttribution[]; + BeforeTravelSteps?: RouteRentalBeforeTravelStep[]; + BookingWebLinks?: RouteWebLink[]; Departure: RouteRentalDeparture; Summary?: RouteRentalSummary; Transport: RouteRentalTransportModeDetails; - TravelSteps: RouteRentalTravelStep[]; + TravelSteps?: RouteRentalTravelStep[]; } export const RouteRentalLegDetails = /*@__PURE__*/ S.suspend(() => S.Struct({ - AfterTravelSteps: RouteRentalAfterTravelStepList, + AfterTravelSteps: S.optional(RouteRentalAfterTravelStepList), Agency: RouteRentalAgency, Arrival: RouteRentalArrival, - Attributions: RouteAttributionList, - BeforeTravelSteps: RouteRentalBeforeTravelStepList, - BookingWebLinks: RouteWebLinkList, + Attributions: S.optional(RouteAttributionList), + BeforeTravelSteps: S.optional(RouteRentalBeforeTravelStepList), + BookingWebLinks: S.optional(RouteWebLinkList), Departure: RouteRentalDeparture, Summary: S.optional(RouteRentalSummary), Transport: RouteRentalTransportModeDetails, - TravelSteps: RouteRentalTravelStepList, + TravelSteps: S.optional(RouteRentalTravelStepList), }), ).annotate({ identifier: "RouteRentalLegDetails", @@ -3857,8 +3837,9 @@ export const RouteTaxiBeforeTravelStep = /*@__PURE__*/ S.suspend(() => identifier: "RouteTaxiBeforeTravelStep", }) as any as S.Schema; export type RouteTaxiBeforeTravelStepList = RouteTaxiBeforeTravelStep[]; -export const RouteTaxiBeforeTravelStepList = - /*@__PURE__*/ S.Array(RouteTaxiBeforeTravelStep); +export const RouteTaxiBeforeTravelStepList = /*@__PURE__*/ S.Array( + RouteTaxiBeforeTravelStep, +); export interface RouteTaxiDeparture { Place: RouteTaxiPlace; Time?: string | redacted.Redacted; @@ -3927,22 +3908,21 @@ export interface RouteTaxiTransportModeDetails { Name?: string | redacted.Redacted; TextColor?: string | redacted.Redacted; } -export const RouteTaxiTransportModeDetails = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AvailableSeats: S.optional(S.Number), - Category: S.optional(SensitiveString), - Color: S.optional(SensitiveString), - Engine: S.optional(RouteEngineType), - LicensePlate: S.optional(SensitiveString), - Mode: RouteTaxiMode, - Model: S.optional(SensitiveString), - Name: S.optional(SensitiveString), - TextColor: S.optional(SensitiveString), - }), - ).annotate({ - identifier: "RouteTaxiTransportModeDetails", - }) as any as S.Schema; +export const RouteTaxiTransportModeDetails = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AvailableSeats: S.optional(S.Number), + Category: S.optional(SensitiveString), + Color: S.optional(SensitiveString), + Engine: S.optional(RouteEngineType), + LicensePlate: S.optional(SensitiveString), + Mode: RouteTaxiMode, + Model: S.optional(SensitiveString), + Name: S.optional(SensitiveString), + TextColor: S.optional(SensitiveString), + }), +).annotate({ + identifier: "RouteTaxiTransportModeDetails", +}) as any as S.Schema; export type RouteTaxiTravelStepType = | "Arrive" | "Continue" @@ -3997,31 +3977,31 @@ export type RouteTaxiTravelStepList = RouteTaxiTravelStep[]; export const RouteTaxiTravelStepList = /*@__PURE__*/ S.Array(RouteTaxiTravelStep); export interface RouteTaxiLegDetails { - AfterTravelSteps: RouteTaxiAfterTravelStep[]; + AfterTravelSteps?: RouteTaxiAfterTravelStep[]; Agency: RouteTaxiAgency; Arrival: RouteTaxiArrival; - Attributions: RouteAttribution[]; - BeforeTravelSteps: RouteTaxiBeforeTravelStep[]; - BookingWebLinks: RouteWebLink[]; + Attributions?: RouteAttribution[]; + BeforeTravelSteps?: RouteTaxiBeforeTravelStep[]; + BookingWebLinks?: RouteWebLink[]; Departure: RouteTaxiDeparture; - Notices: RouteTaxiNotice[]; + Notices?: RouteTaxiNotice[]; Summary?: RouteTaxiSummary; Transport: RouteTaxiTransportModeDetails; - TravelSteps: RouteTaxiTravelStep[]; + TravelSteps?: RouteTaxiTravelStep[]; } export const RouteTaxiLegDetails = /*@__PURE__*/ S.suspend(() => S.Struct({ - AfterTravelSteps: RouteTaxiAfterTravelStepList, + AfterTravelSteps: S.optional(RouteTaxiAfterTravelStepList), Agency: RouteTaxiAgency, Arrival: RouteTaxiArrival, - Attributions: RouteAttributionList, - BeforeTravelSteps: RouteTaxiBeforeTravelStepList, - BookingWebLinks: RouteWebLinkList, + Attributions: S.optional(RouteAttributionList), + BeforeTravelSteps: S.optional(RouteTaxiBeforeTravelStepList), + BookingWebLinks: S.optional(RouteWebLinkList), Departure: RouteTaxiDeparture, - Notices: RouteTaxiNoticeList, + Notices: S.optional(RouteTaxiNoticeList), Summary: S.optional(RouteTaxiSummary), Transport: RouteTaxiTransportModeDetails, - TravelSteps: RouteTaxiTravelStepList, + TravelSteps: S.optional(RouteTaxiTravelStepList), }), ).annotate({ identifier: "RouteTaxiLegDetails", @@ -4033,19 +4013,19 @@ export interface RouteTransitAfterTravelStep { Instruction?: string | redacted.Redacted; Type: RouteTransitAfterTravelStepType; } -export const RouteTransitAfterTravelStep = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Duration: S.Number, - Instruction: S.optional(SensitiveString), - Type: RouteTransitAfterTravelStepType, - }), - ).annotate({ - identifier: "RouteTransitAfterTravelStep", - }) as any as S.Schema; +export const RouteTransitAfterTravelStep = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Duration: S.Number, + Instruction: S.optional(SensitiveString), + Type: RouteTransitAfterTravelStepType, + }), +).annotate({ + identifier: "RouteTransitAfterTravelStep", +}) as any as S.Schema; export type RouteTransitAfterTravelStepList = RouteTransitAfterTravelStep[]; -export const RouteTransitAfterTravelStepList = - /*@__PURE__*/ S.Array(RouteTransitAfterTravelStep); +export const RouteTransitAfterTravelStepList = /*@__PURE__*/ S.Array( + RouteTransitAfterTravelStep, +); export interface RouteTransitAgency { Name: string | redacted.Redacted; Url?: string | redacted.Redacted; @@ -4107,19 +4087,19 @@ export interface RouteTransitBeforeTravelStep { Instruction?: string | redacted.Redacted; Type: RouteTransitBeforeTravelStepType; } -export const RouteTransitBeforeTravelStep = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Duration: S.Number, - Instruction: S.optional(SensitiveString), - Type: RouteTransitBeforeTravelStepType, - }), - ).annotate({ - identifier: "RouteTransitBeforeTravelStep", - }) as any as S.Schema; +export const RouteTransitBeforeTravelStep = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Duration: S.Number, + Instruction: S.optional(SensitiveString), + Type: RouteTransitBeforeTravelStepType, + }), +).annotate({ + identifier: "RouteTransitBeforeTravelStep", +}) as any as S.Schema; export type RouteTransitBeforeTravelStepList = RouteTransitBeforeTravelStep[]; -export const RouteTransitBeforeTravelStepList = - /*@__PURE__*/ S.Array(RouteTransitBeforeTravelStep); +export const RouteTransitBeforeTravelStepList = /*@__PURE__*/ S.Array( + RouteTransitBeforeTravelStep, +); export interface RouteTransitDeparture { Delay?: number; Place: RouteTransitPlace; @@ -4191,8 +4171,9 @@ export type RouteTransitIntermediateStopAttribute = export const RouteTransitIntermediateStopAttribute = /*@__PURE__*/ S.String; export type RouteTransitIntermediateStopAttributeList = RouteTransitIntermediateStopAttribute[]; -export const RouteTransitIntermediateStopAttributeList = - /*@__PURE__*/ S.Array(RouteTransitIntermediateStopAttribute); +export const RouteTransitIntermediateStopAttributeList = /*@__PURE__*/ S.Array( + RouteTransitIntermediateStopAttribute, +); export interface RouteTransitTransportModeDetails { Accessibility?: RouteAccessibilityAvailabilityDetails; Color?: string | redacted.Redacted; @@ -4203,21 +4184,20 @@ export interface RouteTransitTransportModeDetails { ShortRouteName?: string | redacted.Redacted; TextColor?: string | redacted.Redacted; } -export const RouteTransitTransportModeDetails = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Accessibility: S.optional(RouteAccessibilityAvailabilityDetails), - Color: S.optional(SensitiveString), - Headsign: S.optional(SensitiveString), - LongRouteName: S.optional(SensitiveString), - Mode: RouteTransitMode, - RouteName: S.optional(SensitiveString), - ShortRouteName: S.optional(SensitiveString), - TextColor: S.optional(SensitiveString), - }), - ).annotate({ - identifier: "RouteTransitTransportModeDetails", - }) as any as S.Schema; +export const RouteTransitTransportModeDetails = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Accessibility: S.optional(RouteAccessibilityAvailabilityDetails), + Color: S.optional(SensitiveString), + Headsign: S.optional(SensitiveString), + LongRouteName: S.optional(SensitiveString), + Mode: RouteTransitMode, + RouteName: S.optional(SensitiveString), + ShortRouteName: S.optional(SensitiveString), + TextColor: S.optional(SensitiveString), + }), +).annotate({ + identifier: "RouteTransitTransportModeDetails", +}) as any as S.Schema; export interface RouteTransitIntermediateStop { Attributes?: RouteTransitIntermediateStopAttribute[]; Departure: RouteTransitDeparture; @@ -4225,21 +4205,21 @@ export interface RouteTransitIntermediateStop { GeometryOffset?: number; Transport?: RouteTransitTransportModeDetails; } -export const RouteTransitIntermediateStop = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Attributes: S.optional(RouteTransitIntermediateStopAttributeList), - Departure: RouteTransitDeparture, - Duration: S.Number, - GeometryOffset: S.optional(S.Number), - Transport: S.optional(RouteTransitTransportModeDetails), - }), - ).annotate({ - identifier: "RouteTransitIntermediateStop", - }) as any as S.Schema; +export const RouteTransitIntermediateStop = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Attributes: S.optional(RouteTransitIntermediateStopAttributeList), + Departure: RouteTransitDeparture, + Duration: S.Number, + GeometryOffset: S.optional(S.Number), + Transport: S.optional(RouteTransitTransportModeDetails), + }), +).annotate({ + identifier: "RouteTransitIntermediateStop", +}) as any as S.Schema; export type RouteTransitIntermediateStopList = RouteTransitIntermediateStop[]; -export const RouteTransitIntermediateStopList = - /*@__PURE__*/ S.Array(RouteTransitIntermediateStop); +export const RouteTransitIntermediateStopList = /*@__PURE__*/ S.Array( + RouteTransitIntermediateStop, +); export interface RouteTransitNextDeparture { Delay?: number; PlatformName?: string | redacted.Redacted; @@ -4259,8 +4239,9 @@ export const RouteTransitNextDeparture = /*@__PURE__*/ S.suspend(() => identifier: "RouteTransitNextDeparture", }) as any as S.Schema; export type RouteTransitNextDepartureList = RouteTransitNextDeparture[]; -export const RouteTransitNextDepartureList = - /*@__PURE__*/ S.Array(RouteTransitNextDeparture); +export const RouteTransitNextDepartureList = /*@__PURE__*/ S.Array( + RouteTransitNextDeparture, +); export type RouteTransitNoticeCode = | "AccuratePolylineUnavailable" | "IntermediateStopsUnavailable" @@ -4316,19 +4297,19 @@ export interface RouteTransitOverviewSummary { Distance: number; Duration: number; } -export const RouteTransitOverviewSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Distance: S.Number, Duration: S.Number }), - ).annotate({ - identifier: "RouteTransitOverviewSummary", - }) as any as S.Schema; +export const RouteTransitOverviewSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ Distance: S.Number, Duration: S.Number }), +).annotate({ + identifier: "RouteTransitOverviewSummary", +}) as any as S.Schema; export interface RouteTransitTravelOnlySummary { Duration: number; } -export const RouteTransitTravelOnlySummary = - /*@__PURE__*/ S.suspend(() => S.Struct({ Duration: S.Number })).annotate({ - identifier: "RouteTransitTravelOnlySummary", - }) as any as S.Schema; +export const RouteTransitTravelOnlySummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ Duration: S.Number }), +).annotate({ + identifier: "RouteTransitTravelOnlySummary", +}) as any as S.Schema; export interface RouteTransitSummary { Overview?: RouteTransitOverviewSummary; TravelOnly?: RouteTransitTravelOnlySummary; @@ -4366,41 +4347,41 @@ export const RouteTransitTravelStepList = /*@__PURE__*/ S.Array( RouteTransitTravelStep, ); export interface RouteTransitLegDetails { - AfterTravelSteps: RouteTransitAfterTravelStep[]; + AfterTravelSteps?: RouteTransitAfterTravelStep[]; Agency?: RouteTransitAgency; Arrival: RouteTransitArrival; - Attributions: RouteAttribution[]; - BeforeTravelSteps: RouteTransitBeforeTravelStep[]; - BookingWebLinks: RouteWebLink[]; + Attributions?: RouteAttribution[]; + BeforeTravelSteps?: RouteTransitBeforeTravelStep[]; + BookingWebLinks?: RouteWebLink[]; Departure: RouteTransitDeparture; - Incidents: RouteTransitIncident[]; - IntermediateStops: RouteTransitIntermediateStop[]; - NextDepartures: RouteTransitNextDeparture[]; - Notices: RouteTransitNotice[]; - PassThroughWaypoints: RoutePassThroughWaypoint[]; - Spans: RouteTransitSpan[]; + Incidents?: RouteTransitIncident[]; + IntermediateStops?: RouteTransitIntermediateStop[]; + NextDepartures?: RouteTransitNextDeparture[]; + Notices?: RouteTransitNotice[]; + PassThroughWaypoints?: RoutePassThroughWaypoint[]; + Spans?: RouteTransitSpan[]; Summary?: RouteTransitSummary; Transport: RouteTransitTransportModeDetails; - TravelSteps: RouteTransitTravelStep[]; + TravelSteps?: RouteTransitTravelStep[]; } export const RouteTransitLegDetails = /*@__PURE__*/ S.suspend(() => S.Struct({ - AfterTravelSteps: RouteTransitAfterTravelStepList, + AfterTravelSteps: S.optional(RouteTransitAfterTravelStepList), Agency: S.optional(RouteTransitAgency), Arrival: RouteTransitArrival, - Attributions: RouteAttributionList, - BeforeTravelSteps: RouteTransitBeforeTravelStepList, - BookingWebLinks: RouteWebLinkList, + Attributions: S.optional(RouteAttributionList), + BeforeTravelSteps: S.optional(RouteTransitBeforeTravelStepList), + BookingWebLinks: S.optional(RouteWebLinkList), Departure: RouteTransitDeparture, - Incidents: RouteTransitIncidentList, - IntermediateStops: RouteTransitIntermediateStopList, - NextDepartures: RouteTransitNextDepartureList, - Notices: RouteTransitNoticeList, - PassThroughWaypoints: RoutePassThroughWaypointList, - Spans: RouteTransitSpanList, + Incidents: S.optional(RouteTransitIncidentList), + IntermediateStops: S.optional(RouteTransitIntermediateStopList), + NextDepartures: S.optional(RouteTransitNextDepartureList), + Notices: S.optional(RouteTransitNoticeList), + PassThroughWaypoints: S.optional(RoutePassThroughWaypointList), + Spans: S.optional(RouteTransitSpanList), Summary: S.optional(RouteTransitSummary), Transport: RouteTransitTransportModeDetails, - TravelSteps: RouteTransitTravelStepList, + TravelSteps: S.optional(RouteTransitTravelStepList), }), ).annotate({ identifier: "RouteTransitLegDetails", @@ -4528,16 +4509,16 @@ export const WaypointOptimizationAvoidanceAreaGeometry = export interface WaypointOptimizationAvoidanceArea { Geometry: WaypointOptimizationAvoidanceAreaGeometry; } -export const WaypointOptimizationAvoidanceArea = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Geometry: WaypointOptimizationAvoidanceAreaGeometry }), - ).annotate({ - identifier: "WaypointOptimizationAvoidanceArea", - }) as any as S.Schema; +export const WaypointOptimizationAvoidanceArea = /*@__PURE__*/ S.suspend(() => + S.Struct({ Geometry: WaypointOptimizationAvoidanceAreaGeometry }), +).annotate({ + identifier: "WaypointOptimizationAvoidanceArea", +}) as any as S.Schema; export type WaypointOptimizationAvoidanceAreaList = WaypointOptimizationAvoidanceArea[]; -export const WaypointOptimizationAvoidanceAreaList = - /*@__PURE__*/ S.Array(WaypointOptimizationAvoidanceArea); +export const WaypointOptimizationAvoidanceAreaList = /*@__PURE__*/ S.Array( + WaypointOptimizationAvoidanceArea, +); export interface WaypointOptimizationAvoidanceOptions { Areas?: WaypointOptimizationAvoidanceArea[]; CarShuttleTrains?: boolean; @@ -4548,8 +4529,8 @@ export interface WaypointOptimizationAvoidanceOptions { Tunnels?: boolean; UTurns?: boolean; } -export const WaypointOptimizationAvoidanceOptions = - /*@__PURE__*/ S.suspend(() => +export const WaypointOptimizationAvoidanceOptions = /*@__PURE__*/ S.suspend( + () => S.Struct({ Areas: S.optional(WaypointOptimizationAvoidanceAreaList), CarShuttleTrains: S.optional(S.Boolean), @@ -4560,9 +4541,9 @@ export const WaypointOptimizationAvoidanceOptions = Tunnels: S.optional(S.Boolean), UTurns: S.optional(S.Boolean), }), - ).annotate({ - identifier: "WaypointOptimizationAvoidanceOptions", - }) as any as S.Schema; +).annotate({ + identifier: "WaypointOptimizationAvoidanceOptions", +}) as any as S.Schema; export type WaypointOptimizationClusteringAlgorithm = | "DrivingDistance" | "TopologySegment" @@ -4581,17 +4562,17 @@ export interface WaypointOptimizationClusteringOptions { Algorithm: WaypointOptimizationClusteringAlgorithm; DrivingDistanceOptions?: WaypointOptimizationDrivingDistanceOptions; } -export const WaypointOptimizationClusteringOptions = - /*@__PURE__*/ S.suspend(() => +export const WaypointOptimizationClusteringOptions = /*@__PURE__*/ S.suspend( + () => S.Struct({ Algorithm: WaypointOptimizationClusteringAlgorithm, DrivingDistanceOptions: S.optional( WaypointOptimizationDrivingDistanceOptions, ), }), - ).annotate({ - identifier: "WaypointOptimizationClusteringOptions", - }) as any as S.Schema; +).annotate({ + identifier: "WaypointOptimizationClusteringOptions", +}) as any as S.Schema; export type DayOfWeek = | "Monday" | "Tuesday" @@ -4606,38 +4587,36 @@ export interface WaypointOptimizationAccessHoursEntry { DayOfWeek: DayOfWeek; TimeOfDay: string | redacted.Redacted; } -export const WaypointOptimizationAccessHoursEntry = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DayOfWeek: DayOfWeek, TimeOfDay: SensitiveString }), - ).annotate({ - identifier: "WaypointOptimizationAccessHoursEntry", - }) as any as S.Schema; +export const WaypointOptimizationAccessHoursEntry = /*@__PURE__*/ S.suspend( + () => S.Struct({ DayOfWeek: DayOfWeek, TimeOfDay: SensitiveString }), +).annotate({ + identifier: "WaypointOptimizationAccessHoursEntry", +}) as any as S.Schema; export interface WaypointOptimizationAccessHours { From: WaypointOptimizationAccessHoursEntry; To: WaypointOptimizationAccessHoursEntry; } -export const WaypointOptimizationAccessHours = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - From: WaypointOptimizationAccessHoursEntry, - To: WaypointOptimizationAccessHoursEntry, - }), - ).annotate({ - identifier: "WaypointOptimizationAccessHours", - }) as any as S.Schema; +export const WaypointOptimizationAccessHours = /*@__PURE__*/ S.suspend(() => + S.Struct({ + From: WaypointOptimizationAccessHoursEntry, + To: WaypointOptimizationAccessHoursEntry, + }), +).annotate({ + identifier: "WaypointOptimizationAccessHours", +}) as any as S.Schema; export interface WaypointOptimizationSideOfStreetOptions { Position: number[]; UseWith?: SideOfStreetMatchingStrategy; } -export const WaypointOptimizationSideOfStreetOptions = - /*@__PURE__*/ S.suspend(() => +export const WaypointOptimizationSideOfStreetOptions = /*@__PURE__*/ S.suspend( + () => S.Struct({ Position: Position, UseWith: S.optional(SideOfStreetMatchingStrategy), }), - ).annotate({ - identifier: "WaypointOptimizationSideOfStreetOptions", - }) as any as S.Schema; +).annotate({ + identifier: "WaypointOptimizationSideOfStreetOptions", +}) as any as S.Schema; export interface WaypointOptimizationDestinationOptions { AccessHours?: WaypointOptimizationAccessHours; AppointmentTime?: string | redacted.Redacted; @@ -4646,8 +4625,8 @@ export interface WaypointOptimizationDestinationOptions { ServiceDuration?: number; SideOfStreet?: WaypointOptimizationSideOfStreetOptions; } -export const WaypointOptimizationDestinationOptions = - /*@__PURE__*/ S.suspend(() => +export const WaypointOptimizationDestinationOptions = /*@__PURE__*/ S.suspend( + () => S.Struct({ AccessHours: S.optional(WaypointOptimizationAccessHours), AppointmentTime: S.optional(SensitiveString), @@ -4656,41 +4635,38 @@ export const WaypointOptimizationDestinationOptions = ServiceDuration: S.optional(S.Number), SideOfStreet: S.optional(WaypointOptimizationSideOfStreetOptions), }), - ).annotate({ - identifier: "WaypointOptimizationDestinationOptions", - }) as any as S.Schema; +).annotate({ + identifier: "WaypointOptimizationDestinationOptions", +}) as any as S.Schema; export interface WaypointOptimizationRestCycleDurations { RestDuration: number; WorkDuration: number; } -export const WaypointOptimizationRestCycleDurations = - /*@__PURE__*/ S.suspend(() => - S.Struct({ RestDuration: S.Number, WorkDuration: S.Number }), - ).annotate({ - identifier: "WaypointOptimizationRestCycleDurations", - }) as any as S.Schema; +export const WaypointOptimizationRestCycleDurations = /*@__PURE__*/ S.suspend( + () => S.Struct({ RestDuration: S.Number, WorkDuration: S.Number }), +).annotate({ + identifier: "WaypointOptimizationRestCycleDurations", +}) as any as S.Schema; export interface WaypointOptimizationRestCycles { LongCycle: WaypointOptimizationRestCycleDurations; ShortCycle: WaypointOptimizationRestCycleDurations; } -export const WaypointOptimizationRestCycles = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - LongCycle: WaypointOptimizationRestCycleDurations, - ShortCycle: WaypointOptimizationRestCycleDurations, - }), - ).annotate({ - identifier: "WaypointOptimizationRestCycles", - }) as any as S.Schema; +export const WaypointOptimizationRestCycles = /*@__PURE__*/ S.suspend(() => + S.Struct({ + LongCycle: WaypointOptimizationRestCycleDurations, + ShortCycle: WaypointOptimizationRestCycleDurations, + }), +).annotate({ + identifier: "WaypointOptimizationRestCycles", +}) as any as S.Schema; export interface WaypointOptimizationRestProfile { Profile: string | redacted.Redacted; } -export const WaypointOptimizationRestProfile = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Profile: SensitiveString }), - ).annotate({ - identifier: "WaypointOptimizationRestProfile", - }) as any as S.Schema; +export const WaypointOptimizationRestProfile = /*@__PURE__*/ S.suspend(() => + S.Struct({ Profile: SensitiveString }), +).annotate({ + identifier: "WaypointOptimizationRestProfile", +}) as any as S.Schema; export type WaypointOptimizationServiceTimeTreatment = | "Rest" | "Work" @@ -4701,25 +4677,23 @@ export interface WaypointOptimizationDriverOptions { RestProfile?: WaypointOptimizationRestProfile; TreatServiceTimeAs?: WaypointOptimizationServiceTimeTreatment; } -export const WaypointOptimizationDriverOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RestCycles: S.optional(WaypointOptimizationRestCycles), - RestProfile: S.optional(WaypointOptimizationRestProfile), - TreatServiceTimeAs: S.optional(WaypointOptimizationServiceTimeTreatment), - }), - ).annotate({ - identifier: "WaypointOptimizationDriverOptions", - }) as any as S.Schema; +export const WaypointOptimizationDriverOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RestCycles: S.optional(WaypointOptimizationRestCycles), + RestProfile: S.optional(WaypointOptimizationRestProfile), + TreatServiceTimeAs: S.optional(WaypointOptimizationServiceTimeTreatment), + }), +).annotate({ + identifier: "WaypointOptimizationDriverOptions", +}) as any as S.Schema; export interface WaypointOptimizationExclusionOptions { - Countries: string | redacted.Redacted[]; + Countries: (string | redacted.Redacted)[]; } -export const WaypointOptimizationExclusionOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Countries: CountryCodeList }), - ).annotate({ - identifier: "WaypointOptimizationExclusionOptions", - }) as any as S.Schema; +export const WaypointOptimizationExclusionOptions = /*@__PURE__*/ S.suspend( + () => S.Struct({ Countries: CountryCodeList }), +).annotate({ + identifier: "WaypointOptimizationExclusionOptions", +}) as any as S.Schema; export type WaypointOptimizationSequencingObjective = | "FastestRoute" | "ShortestRoute" @@ -4728,21 +4702,19 @@ export const WaypointOptimizationSequencingObjective = /*@__PURE__*/ S.String; export interface WaypointOptimizationOriginOptions { Id?: string; } -export const WaypointOptimizationOriginOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Id: S.optional(S.String) }), - ).annotate({ - identifier: "WaypointOptimizationOriginOptions", - }) as any as S.Schema; +export const WaypointOptimizationOriginOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ Id: S.optional(S.String) }), +).annotate({ + identifier: "WaypointOptimizationOriginOptions", +}) as any as S.Schema; export interface WaypointOptimizationTrafficOptions { Usage?: TrafficUsage; } -export const WaypointOptimizationTrafficOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Usage: S.optional(TrafficUsage) }), - ).annotate({ - identifier: "WaypointOptimizationTrafficOptions", - }) as any as S.Schema; +export const WaypointOptimizationTrafficOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ Usage: S.optional(TrafficUsage) }), +).annotate({ + identifier: "WaypointOptimizationTrafficOptions", +}) as any as S.Schema; export type WaypointOptimizationTravelMode = | "Car" | "Pedestrian" @@ -4753,12 +4725,11 @@ export const WaypointOptimizationTravelMode = /*@__PURE__*/ S.String; export interface WaypointOptimizationPedestrianOptions { Speed?: number; } -export const WaypointOptimizationPedestrianOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Speed: S.optional(S.Number) }), - ).annotate({ - identifier: "WaypointOptimizationPedestrianOptions", - }) as any as S.Schema; +export const WaypointOptimizationPedestrianOptions = /*@__PURE__*/ S.suspend( + () => S.Struct({ Speed: S.optional(S.Number) }), +).annotate({ + identifier: "WaypointOptimizationPedestrianOptions", +}) as any as S.Schema; export type WaypointOptimizationHazardousCargoType = | "Combustible" | "Corrosive" @@ -4775,17 +4746,17 @@ export type WaypointOptimizationHazardousCargoType = export const WaypointOptimizationHazardousCargoType = /*@__PURE__*/ S.String; export type WaypointOptimizationHazardousCargoTypeList = WaypointOptimizationHazardousCargoType[]; -export const WaypointOptimizationHazardousCargoTypeList = - /*@__PURE__*/ S.Array(WaypointOptimizationHazardousCargoType); +export const WaypointOptimizationHazardousCargoTypeList = /*@__PURE__*/ S.Array( + WaypointOptimizationHazardousCargoType, +); export interface WaypointOptimizationTrailerOptions { TrailerCount?: number; } -export const WaypointOptimizationTrailerOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ TrailerCount: S.optional(S.Number) }), - ).annotate({ - identifier: "WaypointOptimizationTrailerOptions", - }) as any as S.Schema; +export const WaypointOptimizationTrailerOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ TrailerCount: S.optional(S.Number) }), +).annotate({ + identifier: "WaypointOptimizationTrailerOptions", +}) as any as S.Schema; export type WaypointOptimizationTruckType = | "StraightTruck" | "Tractor" @@ -4802,35 +4773,34 @@ export interface WaypointOptimizationTruckOptions { WeightPerAxle?: number; Width?: number; } -export const WaypointOptimizationTruckOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - GrossWeight: S.optional(S.Number), - HazardousCargos: S.optional(WaypointOptimizationHazardousCargoTypeList), - Height: S.optional(S.Number), - Length: S.optional(S.Number), - Trailer: S.optional(WaypointOptimizationTrailerOptions), - TruckType: S.optional(WaypointOptimizationTruckType), - TunnelRestrictionCode: S.optional(SensitiveString), - WeightPerAxle: S.optional(S.Number), - Width: S.optional(S.Number), - }), - ).annotate({ - identifier: "WaypointOptimizationTruckOptions", - }) as any as S.Schema; +export const WaypointOptimizationTruckOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + GrossWeight: S.optional(S.Number), + HazardousCargos: S.optional(WaypointOptimizationHazardousCargoTypeList), + Height: S.optional(S.Number), + Length: S.optional(S.Number), + Trailer: S.optional(WaypointOptimizationTrailerOptions), + TruckType: S.optional(WaypointOptimizationTruckType), + TunnelRestrictionCode: S.optional(SensitiveString), + WeightPerAxle: S.optional(S.Number), + Width: S.optional(S.Number), + }), +).annotate({ + identifier: "WaypointOptimizationTruckOptions", +}) as any as S.Schema; export interface WaypointOptimizationTravelModeOptions { Pedestrian?: WaypointOptimizationPedestrianOptions; Truck?: WaypointOptimizationTruckOptions; } -export const WaypointOptimizationTravelModeOptions = - /*@__PURE__*/ S.suspend(() => +export const WaypointOptimizationTravelModeOptions = /*@__PURE__*/ S.suspend( + () => S.Struct({ Pedestrian: S.optional(WaypointOptimizationPedestrianOptions), Truck: S.optional(WaypointOptimizationTruckOptions), }), - ).annotate({ - identifier: "WaypointOptimizationTravelModeOptions", - }) as any as S.Schema; +).annotate({ + identifier: "WaypointOptimizationTravelModeOptions", +}) as any as S.Schema; export type BeforeWaypointsList = number[]; export const BeforeWaypointsList = /*@__PURE__*/ S.Array(S.Number); export interface WaypointOptimizationWaypoint { @@ -4843,24 +4813,24 @@ export interface WaypointOptimizationWaypoint { ServiceDuration?: number; SideOfStreet?: WaypointOptimizationSideOfStreetOptions; } -export const WaypointOptimizationWaypoint = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AccessHours: S.optional(WaypointOptimizationAccessHours), - AppointmentTime: S.optional(SensitiveString), - Before: S.optional(BeforeWaypointsList), - Heading: S.optional(S.Number), - Id: S.optional(S.String), - Position: Position, - ServiceDuration: S.optional(S.Number), - SideOfStreet: S.optional(WaypointOptimizationSideOfStreetOptions), - }), - ).annotate({ - identifier: "WaypointOptimizationWaypoint", - }) as any as S.Schema; +export const WaypointOptimizationWaypoint = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AccessHours: S.optional(WaypointOptimizationAccessHours), + AppointmentTime: S.optional(SensitiveString), + Before: S.optional(BeforeWaypointsList), + Heading: S.optional(S.Number), + Id: S.optional(S.String), + Position: Position, + ServiceDuration: S.optional(S.Number), + SideOfStreet: S.optional(WaypointOptimizationSideOfStreetOptions), + }), +).annotate({ + identifier: "WaypointOptimizationWaypoint", +}) as any as S.Schema; export type WaypointOptimizationWaypointList = WaypointOptimizationWaypoint[]; -export const WaypointOptimizationWaypointList = - /*@__PURE__*/ S.Array(WaypointOptimizationWaypoint); +export const WaypointOptimizationWaypointList = /*@__PURE__*/ S.Array( + WaypointOptimizationWaypoint, +); export interface OptimizeWaypointsRequest { Avoid?: WaypointOptimizationAvoidanceOptions; Clustering?: WaypointOptimizationClusteringOptions; @@ -4916,23 +4886,23 @@ export interface WaypointOptimizationConnection { TravelDuration: number; WaitDuration: number; } -export const WaypointOptimizationConnection = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Distance: S.Number, - From: S.String, - RestDuration: S.Number, - To: S.String, - TravelDuration: S.Number, - WaitDuration: S.Number, - }), - ).annotate({ - identifier: "WaypointOptimizationConnection", - }) as any as S.Schema; +export const WaypointOptimizationConnection = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Distance: S.Number, + From: S.String, + RestDuration: S.Number, + To: S.String, + TravelDuration: S.Number, + WaitDuration: S.Number, + }), +).annotate({ + identifier: "WaypointOptimizationConnection", +}) as any as S.Schema; export type WaypointOptimizationConnectionList = WaypointOptimizationConnection[]; -export const WaypointOptimizationConnectionList = - /*@__PURE__*/ S.Array(WaypointOptimizationConnection); +export const WaypointOptimizationConnectionList = /*@__PURE__*/ S.Array( + WaypointOptimizationConnection, +); export type WaypointOptimizationConstraint = | "AccessHours" | "AppointmentTime" @@ -4946,78 +4916,80 @@ export interface WaypointOptimizationFailedConstraint { Constraint?: WaypointOptimizationConstraint; Reason?: string | redacted.Redacted; } -export const WaypointOptimizationFailedConstraint = - /*@__PURE__*/ S.suspend(() => +export const WaypointOptimizationFailedConstraint = /*@__PURE__*/ S.suspend( + () => S.Struct({ Constraint: S.optional(WaypointOptimizationConstraint), Reason: S.optional(SensitiveString), }), - ).annotate({ - identifier: "WaypointOptimizationFailedConstraint", - }) as any as S.Schema; +).annotate({ + identifier: "WaypointOptimizationFailedConstraint", +}) as any as S.Schema; export type WaypointOptimizationFailedConstraintList = WaypointOptimizationFailedConstraint[]; -export const WaypointOptimizationFailedConstraintList = - /*@__PURE__*/ S.Array(WaypointOptimizationFailedConstraint); +export const WaypointOptimizationFailedConstraintList = /*@__PURE__*/ S.Array( + WaypointOptimizationFailedConstraint, +); export interface WaypointOptimizationImpedingWaypoint { FailedConstraints: WaypointOptimizationFailedConstraint[]; Id: string; Position: number[]; } -export const WaypointOptimizationImpedingWaypoint = - /*@__PURE__*/ S.suspend(() => +export const WaypointOptimizationImpedingWaypoint = /*@__PURE__*/ S.suspend( + () => S.Struct({ FailedConstraints: WaypointOptimizationFailedConstraintList, Id: S.String, Position: Position, }), - ).annotate({ - identifier: "WaypointOptimizationImpedingWaypoint", - }) as any as S.Schema; +).annotate({ + identifier: "WaypointOptimizationImpedingWaypoint", +}) as any as S.Schema; export type WaypointOptimizationImpedingWaypointList = WaypointOptimizationImpedingWaypoint[]; -export const WaypointOptimizationImpedingWaypointList = - /*@__PURE__*/ S.Array(WaypointOptimizationImpedingWaypoint); +export const WaypointOptimizationImpedingWaypointList = /*@__PURE__*/ S.Array( + WaypointOptimizationImpedingWaypoint, +); export interface WaypointOptimizationOptimizedWaypoint { ArrivalTime?: string | redacted.Redacted; ClusterIndex?: number; - DepartureTime: string | redacted.Redacted; + DepartureTime?: string | redacted.Redacted; Id: string; Position: number[]; } -export const WaypointOptimizationOptimizedWaypoint = - /*@__PURE__*/ S.suspend(() => +export const WaypointOptimizationOptimizedWaypoint = /*@__PURE__*/ S.suspend( + () => S.Struct({ ArrivalTime: S.optional(SensitiveString), ClusterIndex: S.optional(S.Number), - DepartureTime: SensitiveString, + DepartureTime: S.optional(SensitiveString), Id: S.String, Position: Position, }), - ).annotate({ - identifier: "WaypointOptimizationOptimizedWaypoint", - }) as any as S.Schema; +).annotate({ + identifier: "WaypointOptimizationOptimizedWaypoint", +}) as any as S.Schema; export type WaypointOptimizationOptimizedWaypointList = WaypointOptimizationOptimizedWaypoint[]; -export const WaypointOptimizationOptimizedWaypointList = - /*@__PURE__*/ S.Array(WaypointOptimizationOptimizedWaypoint); +export const WaypointOptimizationOptimizedWaypointList = /*@__PURE__*/ S.Array( + WaypointOptimizationOptimizedWaypoint, +); export interface WaypointOptimizationTimeBreakdown { RestDuration: number; ServiceDuration: number; TravelDuration: number; WaitDuration: number; } -export const WaypointOptimizationTimeBreakdown = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RestDuration: S.Number, - ServiceDuration: S.Number, - TravelDuration: S.Number, - WaitDuration: S.Number, - }), - ).annotate({ - identifier: "WaypointOptimizationTimeBreakdown", - }) as any as S.Schema; +export const WaypointOptimizationTimeBreakdown = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RestDuration: S.Number, + ServiceDuration: S.Number, + TravelDuration: S.Number, + WaitDuration: S.Number, + }), +).annotate({ + identifier: "WaypointOptimizationTimeBreakdown", +}) as any as S.Schema; export interface OptimizeWaypointsResponse { Connections: WaypointOptimizationConnection[]; Distance: number; @@ -5080,8 +5052,9 @@ export type RoadSnapHazardousCargoType = | (string & {}); export const RoadSnapHazardousCargoType = /*@__PURE__*/ S.String; export type RoadSnapHazardousCargoTypeList = RoadSnapHazardousCargoType[]; -export const RoadSnapHazardousCargoTypeList = - /*@__PURE__*/ S.Array(RoadSnapHazardousCargoType); +export const RoadSnapHazardousCargoTypeList = /*@__PURE__*/ S.Array( + RoadSnapHazardousCargoType, +); export interface RoadSnapTrailerOptions { TrailerCount?: number; } @@ -5202,8 +5175,9 @@ export const RoadSnapSnappedTracePoint = /*@__PURE__*/ S.suspend(() => identifier: "RoadSnapSnappedTracePoint", }) as any as S.Schema; export type RoadSnapSnappedTracePointList = RoadSnapSnappedTracePoint[]; -export const RoadSnapSnappedTracePointList = - /*@__PURE__*/ S.Array(RoadSnapSnappedTracePoint); +export const RoadSnapSnappedTracePointList = /*@__PURE__*/ S.Array( + RoadSnapSnappedTracePoint, +); export interface SnapToRoadsResponse { Notices: RoadSnapNotice[]; PricingBucket: string; @@ -5227,16 +5201,17 @@ export const SnapToRoadsResponse = /*@__PURE__*/ S.suspend(() => export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { Message: S.String }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { Message: S.String }, - T.Retryable(), + T.all(T.HttpError(500), T.Retryable()), ).pipe(C.withServerError, C.withRetryableError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", { Message: S.String }, - T.Retryable(), + T.all(T.HttpError(429), T.Retryable()), ).pipe(C.withThrottlingError, C.withRetryableError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", @@ -5245,6 +5220,7 @@ export class ValidationException extends S.TaggedErrorClass Reason: ValidationExceptionReason, FieldList: ValidationExceptionFieldList, }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} //# Operations diff --git a/packages/aws/src/services/glue.ts b/packages/aws/src/services/glue.ts index c470963772..150c830003 100644 --- a/packages/aws/src/services/glue.ts +++ b/packages/aws/src/services/glue.ts @@ -18434,6 +18434,28 @@ export class ColumnStatisticsTaskRunningException extends S.TaggedErrorClass()( + "GlueRoleNotAssumable", + { + Message: S.optional(S.String), + FromFederationSource: S.optional(S.Boolean), + }, + T.SyntheticError({ + from: "InvalidInputException", + message: { includes: "unable to assume" }, + }), +).pipe(C.withRetryableError) {} +export class GlueS3TargetNotReady extends S.TaggedErrorClass()( + "GlueS3TargetNotReady", + { + Message: S.optional(S.String), + FromFederationSource: S.optional(S.Boolean), + }, + T.SyntheticError({ + from: "InvalidInputException", + message: { includes: "InvalidAccessKeyId" }, + }), +).pipe(C.withRetryableError) {} export class IdempotentParameterMismatchException extends S.TaggedErrorClass()( "IdempotentParameterMismatchException", { Message: S.optional(S.String) }, @@ -18449,22 +18471,27 @@ export class ConflictException extends S.TaggedErrorClass()( export class IntegrationConflictOperationFault extends S.TaggedErrorClass()( "IntegrationConflictOperationFault", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class IntegrationQuotaExceededFault extends S.TaggedErrorClass()( "IntegrationQuotaExceededFault", { Message: S.optional(S.String) }, + T.HttpError(402), ).pipe(C.withQuotaError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class KMSKeyNotAccessibleFault extends S.TaggedErrorClass()( "KMSKeyNotAccessibleFault", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class OperationNotSupportedException extends S.TaggedErrorClass()( "OperationNotSupportedException", @@ -18481,10 +18508,12 @@ export class SchedulerTransitioningException extends S.TaggedErrorClass()( "IntegrationNotFoundFault", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class InvalidIntegrationStateFault extends S.TaggedErrorClass()( "InvalidIntegrationStateFault", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ConditionCheckFailureException extends S.TaggedErrorClass()( "ConditionCheckFailureException", @@ -18493,6 +18522,7 @@ export class ConditionCheckFailureException extends S.TaggedErrorClass()( "TargetResourceNotFound", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class PermissionTypeMismatchException extends S.TaggedErrorClass()( "PermissionTypeMismatchException", @@ -19364,6 +19394,8 @@ export type CreateCrawlerError = | InvalidInputException | OperationTimeoutException | ResourceNumberLimitExceededException + | GlueRoleNotAssumable + | GlueS3TargetNotReady | CommonErrors; /** * Creates a new crawler with specified targets, role, configuration, and optional schedule. @@ -19383,6 +19415,8 @@ export const createCrawler: API.OperationMethod< InvalidInputException, OperationTimeoutException, ResourceNumberLimitExceededException, + GlueRoleNotAssumable, + GlueS3TargetNotReady, ], operationName: "CreateCrawler", })); @@ -19721,6 +19755,7 @@ export type CreateJobError = | InvalidInputException | OperationTimeoutException | ResourceNumberLimitExceededException + | GlueRoleNotAssumable | CommonErrors; /** * Creates a new job definition. @@ -19741,6 +19776,7 @@ export const createJob: API.OperationMethod< InvalidInputException, OperationTimeoutException, ResourceNumberLimitExceededException, + GlueRoleNotAssumable, ], operationName: "CreateJob", })); @@ -26470,6 +26506,7 @@ export type StartJobRunError = | InvalidInputException | OperationTimeoutException | ResourceNumberLimitExceededException + | GlueRoleNotAssumable | CommonErrors; /** * Starts a job run using a job definition. @@ -26489,6 +26526,7 @@ export const startJobRun: API.OperationMethod< InvalidInputException, OperationTimeoutException, ResourceNumberLimitExceededException, + GlueRoleNotAssumable, ], operationName: "StartJobRun", })); @@ -27195,6 +27233,8 @@ export type UpdateCrawlerError = | InvalidInputException | OperationTimeoutException | VersionMismatchException + | GlueRoleNotAssumable + | GlueS3TargetNotReady | CommonErrors; /** * Updates a crawler. If a crawler is @@ -27215,6 +27255,8 @@ export const updateCrawler: API.OperationMethod< InvalidInputException, OperationTimeoutException, VersionMismatchException, + GlueRoleNotAssumable, + GlueS3TargetNotReady, ], operationName: "UpdateCrawler", })); @@ -27499,6 +27541,7 @@ export type UpdateJobError = | InternalServiceException | InvalidInputException | OperationTimeoutException + | GlueRoleNotAssumable | CommonErrors; /** * Updates an existing job definition. The previous job definition is completely overwritten by this information. @@ -27517,6 +27560,7 @@ export const updateJob: API.OperationMethod< InternalServiceException, InvalidInputException, OperationTimeoutException, + GlueRoleNotAssumable, ], operationName: "UpdateJob", })); diff --git a/packages/aws/src/services/imagebuilder.ts b/packages/aws/src/services/imagebuilder.ts index 057603dd8c..b6f0a9f4ef 100644 --- a/packages/aws/src/services/imagebuilder.ts +++ b/packages/aws/src/services/imagebuilder.ts @@ -218,47 +218,44 @@ export interface CancelImageCreationResponse { clientToken?: string; imageBuildVersionArn?: string; } -export const CancelImageCreationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - requestId: S.optional(S.String), - clientToken: S.optional(S.String), - imageBuildVersionArn: S.optional(S.String), - }), - ).annotate({ - identifier: "CancelImageCreationResponse", - }) as any as S.Schema; +export const CancelImageCreationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + requestId: S.optional(S.String), + clientToken: S.optional(S.String), + imageBuildVersionArn: S.optional(S.String), + }), +).annotate({ + identifier: "CancelImageCreationResponse", +}) as any as S.Schema; export interface CancelLifecycleExecutionRequest { lifecycleExecutionId: string; clientToken: string; } -export const CancelLifecycleExecutionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - lifecycleExecutionId: S.String, - clientToken: S.String.pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ method: "PUT", uri: "/CancelLifecycleExecution" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CancelLifecycleExecutionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + lifecycleExecutionId: S.String, + clientToken: S.String.pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/CancelLifecycleExecution" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CancelLifecycleExecutionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CancelLifecycleExecutionRequest", +}) as any as S.Schema; export interface CancelLifecycleExecutionResponse { lifecycleExecutionId?: string; } -export const CancelLifecycleExecutionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ lifecycleExecutionId: S.optional(S.String) }), - ).annotate({ - identifier: "CancelLifecycleExecutionResponse", - }) as any as S.Schema; +export const CancelLifecycleExecutionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ lifecycleExecutionId: S.optional(S.String) }), +).annotate({ + identifier: "CancelLifecycleExecutionResponse", +}) as any as S.Schema; export type Platform = "Windows" | "Linux" | "macOS" | (string & {}); export const Platform = /*@__PURE__*/ S.String; export type OsVersionList = string[]; @@ -392,21 +389,20 @@ export interface EbsInstanceBlockDeviceSpecification { volumeType?: EbsVolumeType; throughput?: number; } -export const EbsInstanceBlockDeviceSpecification = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - encrypted: S.optional(S.Boolean), - deleteOnTermination: S.optional(S.Boolean), - iops: S.optional(S.Number), - kmsKeyId: S.optional(S.String), - snapshotId: S.optional(S.String), - volumeSize: S.optional(S.Number), - volumeType: S.optional(EbsVolumeType), - throughput: S.optional(S.Number), - }), - ).annotate({ - identifier: "EbsInstanceBlockDeviceSpecification", - }) as any as S.Schema; +export const EbsInstanceBlockDeviceSpecification = /*@__PURE__*/ S.suspend(() => + S.Struct({ + encrypted: S.optional(S.Boolean), + deleteOnTermination: S.optional(S.Boolean), + iops: S.optional(S.Number), + kmsKeyId: S.optional(S.String), + snapshotId: S.optional(S.String), + volumeSize: S.optional(S.Number), + volumeType: S.optional(EbsVolumeType), + throughput: S.optional(S.Number), + }), +).annotate({ + identifier: "EbsInstanceBlockDeviceSpecification", +}) as any as S.Schema; export interface InstanceBlockDeviceMapping { deviceName?: string; ebs?: EbsInstanceBlockDeviceSpecification; @@ -468,55 +464,53 @@ export interface CreateContainerRecipeRequest { kmsKeyId?: string; clientToken: string; } -export const CreateContainerRecipeRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - containerType: ContainerType, - name: S.String, - description: S.optional(S.String), - semanticVersion: S.String, - components: S.optional(ComponentConfigurationList), - instanceConfiguration: S.optional(InstanceConfiguration), - dockerfileTemplateData: S.optional(S.String), - dockerfileTemplateUri: S.optional(S.String), - platformOverride: S.optional(Platform), - imageOsVersionOverride: S.optional(S.String), - parentImage: S.String, - tags: S.optional(TagMap), - workingDirectory: S.optional(S.String), - targetRepository: TargetContainerRepository, - kmsKeyId: S.optional(S.String), - clientToken: S.String.pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ method: "PUT", uri: "/CreateContainerRecipe" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateContainerRecipeRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + containerType: ContainerType, + name: S.String, + description: S.optional(S.String), + semanticVersion: S.String, + components: S.optional(ComponentConfigurationList), + instanceConfiguration: S.optional(InstanceConfiguration), + dockerfileTemplateData: S.optional(S.String), + dockerfileTemplateUri: S.optional(S.String), + platformOverride: S.optional(Platform), + imageOsVersionOverride: S.optional(S.String), + parentImage: S.String, + tags: S.optional(TagMap), + workingDirectory: S.optional(S.String), + targetRepository: TargetContainerRepository, + kmsKeyId: S.optional(S.String), + clientToken: S.String.pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/CreateContainerRecipe" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateContainerRecipeRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateContainerRecipeRequest", +}) as any as S.Schema; export interface CreateContainerRecipeResponse { requestId?: string; clientToken?: string; containerRecipeArn?: string; latestVersionReferences?: LatestVersionReferences; } -export const CreateContainerRecipeResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - requestId: S.optional(S.String), - clientToken: S.optional(S.String), - containerRecipeArn: S.optional(S.String), - latestVersionReferences: S.optional(LatestVersionReferences), - }), - ).annotate({ - identifier: "CreateContainerRecipeResponse", - }) as any as S.Schema; +export const CreateContainerRecipeResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + requestId: S.optional(S.String), + clientToken: S.optional(S.String), + containerRecipeArn: S.optional(S.String), + latestVersionReferences: S.optional(LatestVersionReferences), + }), +).annotate({ + identifier: "CreateContainerRecipeResponse", +}) as any as S.Schema; export type AccountList = string[]; export const AccountList = /*@__PURE__*/ S.Array(S.String); export type StringList = string[]; @@ -531,17 +525,16 @@ export interface LaunchPermissionConfiguration { organizationArns?: string[]; organizationalUnitArns?: string[]; } -export const LaunchPermissionConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - userIds: S.optional(AccountList), - userGroups: S.optional(StringList), - organizationArns: S.optional(OrganizationArnList), - organizationalUnitArns: S.optional(OrganizationalUnitArnList), - }), - ).annotate({ - identifier: "LaunchPermissionConfiguration", - }) as any as S.Schema; +export const LaunchPermissionConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + userIds: S.optional(AccountList), + userGroups: S.optional(StringList), + organizationArns: S.optional(OrganizationArnList), + organizationalUnitArns: S.optional(OrganizationalUnitArnList), + }), +).annotate({ + identifier: "LaunchPermissionConfiguration", +}) as any as S.Schema; export interface AmiDistributionConfiguration { name?: string; description?: string; @@ -550,34 +543,32 @@ export interface AmiDistributionConfiguration { kmsKeyId?: string; launchPermission?: LaunchPermissionConfiguration; } -export const AmiDistributionConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.optional(S.String), - description: S.optional(S.String), - targetAccountIds: S.optional(AccountList), - amiTags: S.optional(TagMap), - kmsKeyId: S.optional(S.String), - launchPermission: S.optional(LaunchPermissionConfiguration), - }), - ).annotate({ - identifier: "AmiDistributionConfiguration", - }) as any as S.Schema; +export const AmiDistributionConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.optional(S.String), + description: S.optional(S.String), + targetAccountIds: S.optional(AccountList), + amiTags: S.optional(TagMap), + kmsKeyId: S.optional(S.String), + launchPermission: S.optional(LaunchPermissionConfiguration), + }), +).annotate({ + identifier: "AmiDistributionConfiguration", +}) as any as S.Schema; export interface ContainerDistributionConfiguration { description?: string; containerTags?: string[]; targetRepository: TargetContainerRepository; } -export const ContainerDistributionConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - description: S.optional(S.String), - containerTags: S.optional(StringList), - targetRepository: TargetContainerRepository, - }), - ).annotate({ - identifier: "ContainerDistributionConfiguration", - }) as any as S.Schema; +export const ContainerDistributionConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + description: S.optional(S.String), + containerTags: S.optional(StringList), + targetRepository: TargetContainerRepository, + }), +).annotate({ + identifier: "ContainerDistributionConfiguration", +}) as any as S.Schema; export type LicenseConfigurationArnList = string[]; export const LicenseConfigurationArnList = /*@__PURE__*/ S.Array(S.String); export interface LaunchTemplateConfiguration { @@ -585,19 +576,19 @@ export interface LaunchTemplateConfiguration { accountId?: string; setDefaultVersion?: boolean; } -export const LaunchTemplateConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - launchTemplateId: S.String, - accountId: S.optional(S.String), - setDefaultVersion: S.optional(S.Boolean), - }), - ).annotate({ - identifier: "LaunchTemplateConfiguration", - }) as any as S.Schema; +export const LaunchTemplateConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + launchTemplateId: S.String, + accountId: S.optional(S.String), + setDefaultVersion: S.optional(S.Boolean), + }), +).annotate({ + identifier: "LaunchTemplateConfiguration", +}) as any as S.Schema; export type LaunchTemplateConfigurationList = LaunchTemplateConfiguration[]; -export const LaunchTemplateConfigurationList = - /*@__PURE__*/ S.Array(LaunchTemplateConfiguration); +export const LaunchTemplateConfigurationList = /*@__PURE__*/ S.Array( + LaunchTemplateConfiguration, +); export type DiskImageFormat = "VMDK" | "RAW" | "VHD" | (string & {}); export const DiskImageFormat = /*@__PURE__*/ S.String; export interface S3ExportConfiguration { @@ -619,27 +610,26 @@ export const S3ExportConfiguration = /*@__PURE__*/ S.suspend(() => export interface FastLaunchSnapshotConfiguration { targetResourceCount?: number; } -export const FastLaunchSnapshotConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ targetResourceCount: S.optional(S.Number) }), - ).annotate({ - identifier: "FastLaunchSnapshotConfiguration", - }) as any as S.Schema; +export const FastLaunchSnapshotConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ targetResourceCount: S.optional(S.Number) }), +).annotate({ + identifier: "FastLaunchSnapshotConfiguration", +}) as any as S.Schema; export interface FastLaunchLaunchTemplateSpecification { launchTemplateId?: string; launchTemplateName?: string; launchTemplateVersion?: string; } -export const FastLaunchLaunchTemplateSpecification = - /*@__PURE__*/ S.suspend(() => +export const FastLaunchLaunchTemplateSpecification = /*@__PURE__*/ S.suspend( + () => S.Struct({ launchTemplateId: S.optional(S.String), launchTemplateName: S.optional(S.String), launchTemplateVersion: S.optional(S.String), }), - ).annotate({ - identifier: "FastLaunchLaunchTemplateSpecification", - }) as any as S.Schema; +).annotate({ + identifier: "FastLaunchLaunchTemplateSpecification", +}) as any as S.Schema; export interface FastLaunchConfiguration { enabled: boolean; snapshotConfiguration?: FastLaunchSnapshotConfiguration; @@ -679,8 +669,9 @@ export const SsmParameterConfiguration = /*@__PURE__*/ S.suspend(() => identifier: "SsmParameterConfiguration", }) as any as S.Schema; export type SsmParameterConfigurationList = SsmParameterConfiguration[]; -export const SsmParameterConfigurationList = - /*@__PURE__*/ S.Array(SsmParameterConfiguration); +export const SsmParameterConfigurationList = /*@__PURE__*/ S.Array( + SsmParameterConfiguration, +); export interface Distribution { region: string; amiDistributionConfiguration?: AmiDistributionConfiguration; @@ -714,8 +705,8 @@ export interface CreateDistributionConfigurationRequest { tags?: { [key: string]: string | undefined }; clientToken: string; } -export const CreateDistributionConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const CreateDistributionConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ name: S.String, description: S.optional(S.String), @@ -732,24 +723,24 @@ export const CreateDistributionConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "CreateDistributionConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "CreateDistributionConfigurationRequest", +}) as any as S.Schema; export interface CreateDistributionConfigurationResponse { requestId?: string; clientToken?: string; distributionConfigurationArn?: string; } -export const CreateDistributionConfigurationResponse = - /*@__PURE__*/ S.suspend(() => +export const CreateDistributionConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ requestId: S.optional(S.String), clientToken: S.optional(S.String), distributionConfigurationArn: S.optional(S.String), }), - ).annotate({ - identifier: "CreateDistributionConfigurationResponse", - }) as any as S.Schema; +).annotate({ + identifier: "CreateDistributionConfigurationResponse", +}) as any as S.Schema; export interface ImageTestsConfiguration { imageTestsEnabled?: boolean; timeoutMinutes?: number; @@ -921,15 +912,14 @@ export interface PipelineLoggingConfiguration { imageLogGroupName?: string; pipelineLogGroupName?: string; } -export const PipelineLoggingConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - imageLogGroupName: S.optional(S.String), - pipelineLogGroupName: S.optional(S.String), - }), - ).annotate({ - identifier: "PipelineLoggingConfiguration", - }) as any as S.Schema; +export const PipelineLoggingConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + imageLogGroupName: S.optional(S.String), + pipelineLogGroupName: S.optional(S.String), + }), +).annotate({ + identifier: "PipelineLoggingConfiguration", +}) as any as S.Schema; export interface CreateImagePipelineRequest { name: string; description?: string; @@ -986,16 +976,15 @@ export interface CreateImagePipelineResponse { clientToken?: string; imagePipelineArn?: string; } -export const CreateImagePipelineResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - requestId: S.optional(S.String), - clientToken: S.optional(S.String), - imagePipelineArn: S.optional(S.String), - }), - ).annotate({ - identifier: "CreateImagePipelineResponse", - }) as any as S.Schema; +export const CreateImagePipelineResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + requestId: S.optional(S.String), + clientToken: S.optional(S.String), + imagePipelineArn: S.optional(S.String), + }), +).annotate({ + identifier: "CreateImagePipelineResponse", +}) as any as S.Schema; export interface SystemsManagerAgent { uninstallAfterBuild?: boolean; } @@ -1008,15 +997,14 @@ export interface AdditionalInstanceConfiguration { systemsManagerAgent?: SystemsManagerAgent; userDataOverride?: string; } -export const AdditionalInstanceConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - systemsManagerAgent: S.optional(SystemsManagerAgent), - userDataOverride: S.optional(S.String), - }), - ).annotate({ - identifier: "AdditionalInstanceConfiguration", - }) as any as S.Schema; +export const AdditionalInstanceConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + systemsManagerAgent: S.optional(SystemsManagerAgent), + userDataOverride: S.optional(S.String), + }), +).annotate({ + identifier: "AdditionalInstanceConfiguration", +}) as any as S.Schema; export type AmiWatermarksList = string[]; export const AmiWatermarksList = /*@__PURE__*/ S.Array(S.String); export interface CreateImageRecipeRequest { @@ -1148,8 +1136,8 @@ export interface CreateInfrastructureConfigurationRequest { placement?: Placement; clientToken: string; } -export const CreateInfrastructureConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const CreateInfrastructureConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ name: S.String, description: S.optional(S.String), @@ -1176,9 +1164,9 @@ export const CreateInfrastructureConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "CreateInfrastructureConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "CreateInfrastructureConfigurationRequest", +}) as any as S.Schema; export interface CreateInfrastructureConfigurationResponse { requestId?: string; clientToken?: string; @@ -1226,15 +1214,14 @@ export interface LifecyclePolicyDetailAction { type: LifecyclePolicyDetailActionType; includeResources?: LifecyclePolicyDetailActionIncludeResources; } -export const LifecyclePolicyDetailAction = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - type: LifecyclePolicyDetailActionType, - includeResources: S.optional(LifecyclePolicyDetailActionIncludeResources), - }), - ).annotate({ - identifier: "LifecyclePolicyDetailAction", - }) as any as S.Schema; +export const LifecyclePolicyDetailAction = /*@__PURE__*/ S.suspend(() => + S.Struct({ + type: LifecyclePolicyDetailActionType, + includeResources: S.optional(LifecyclePolicyDetailActionIncludeResources), + }), +).annotate({ + identifier: "LifecyclePolicyDetailAction", +}) as any as S.Schema; export type LifecyclePolicyDetailFilterType = "AGE" | "COUNT" | (string & {}); export const LifecyclePolicyDetailFilterType = /*@__PURE__*/ S.String; export type LifecyclePolicyTimeUnit = @@ -1250,17 +1237,16 @@ export interface LifecyclePolicyDetailFilter { unit?: LifecyclePolicyTimeUnit; retainAtLeast?: number; } -export const LifecyclePolicyDetailFilter = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - type: LifecyclePolicyDetailFilterType, - value: S.Number, - unit: S.optional(LifecyclePolicyTimeUnit), - retainAtLeast: S.optional(S.Number), - }), - ).annotate({ - identifier: "LifecyclePolicyDetailFilter", - }) as any as S.Schema; +export const LifecyclePolicyDetailFilter = /*@__PURE__*/ S.suspend(() => + S.Struct({ + type: LifecyclePolicyDetailFilterType, + value: S.Number, + unit: S.optional(LifecyclePolicyTimeUnit), + retainAtLeast: S.optional(S.Number), + }), +).annotate({ + identifier: "LifecyclePolicyDetailFilter", +}) as any as S.Schema; export interface LifecyclePolicyDetailExclusionRulesAmisLastLaunched { value: number; unit: LifecyclePolicyTimeUnit; @@ -1278,8 +1264,8 @@ export interface LifecyclePolicyDetailExclusionRulesAmis { lastLaunched?: LifecyclePolicyDetailExclusionRulesAmisLastLaunched; tagMap?: { [key: string]: string | undefined }; } -export const LifecyclePolicyDetailExclusionRulesAmis = - /*@__PURE__*/ S.suspend(() => +export const LifecyclePolicyDetailExclusionRulesAmis = /*@__PURE__*/ S.suspend( + () => S.Struct({ isPublic: S.optional(S.Boolean), regions: S.optional(StringList), @@ -1289,22 +1275,21 @@ export const LifecyclePolicyDetailExclusionRulesAmis = ), tagMap: S.optional(TagMap), }), - ).annotate({ - identifier: "LifecyclePolicyDetailExclusionRulesAmis", - }) as any as S.Schema; +).annotate({ + identifier: "LifecyclePolicyDetailExclusionRulesAmis", +}) as any as S.Schema; export interface LifecyclePolicyDetailExclusionRules { tagMap?: { [key: string]: string | undefined }; amis?: LifecyclePolicyDetailExclusionRulesAmis; } -export const LifecyclePolicyDetailExclusionRules = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - tagMap: S.optional(TagMap), - amis: S.optional(LifecyclePolicyDetailExclusionRulesAmis), - }), - ).annotate({ - identifier: "LifecyclePolicyDetailExclusionRules", - }) as any as S.Schema; +export const LifecyclePolicyDetailExclusionRules = /*@__PURE__*/ S.suspend(() => + S.Struct({ + tagMap: S.optional(TagMap), + amis: S.optional(LifecyclePolicyDetailExclusionRulesAmis), + }), +).annotate({ + identifier: "LifecyclePolicyDetailExclusionRules", +}) as any as S.Schema; export interface LifecyclePolicyDetail { action: LifecyclePolicyDetailAction; filter: LifecyclePolicyDetailFilter; @@ -1327,29 +1312,28 @@ export interface LifecyclePolicyResourceSelectionRecipe { name: string; semanticVersion: string; } -export const LifecyclePolicyResourceSelectionRecipe = - /*@__PURE__*/ S.suspend(() => - S.Struct({ name: S.String, semanticVersion: S.String }), - ).annotate({ - identifier: "LifecyclePolicyResourceSelectionRecipe", - }) as any as S.Schema; +export const LifecyclePolicyResourceSelectionRecipe = /*@__PURE__*/ S.suspend( + () => S.Struct({ name: S.String, semanticVersion: S.String }), +).annotate({ + identifier: "LifecyclePolicyResourceSelectionRecipe", +}) as any as S.Schema; export type LifecyclePolicyResourceSelectionRecipes = LifecyclePolicyResourceSelectionRecipe[]; -export const LifecyclePolicyResourceSelectionRecipes = - /*@__PURE__*/ S.Array(LifecyclePolicyResourceSelectionRecipe); +export const LifecyclePolicyResourceSelectionRecipes = /*@__PURE__*/ S.Array( + LifecyclePolicyResourceSelectionRecipe, +); export interface LifecyclePolicyResourceSelection { recipes?: LifecyclePolicyResourceSelectionRecipe[]; tagMap?: { [key: string]: string | undefined }; } -export const LifecyclePolicyResourceSelection = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - recipes: S.optional(LifecyclePolicyResourceSelectionRecipes), - tagMap: S.optional(TagMap), - }), - ).annotate({ - identifier: "LifecyclePolicyResourceSelection", - }) as any as S.Schema; +export const LifecyclePolicyResourceSelection = /*@__PURE__*/ S.suspend(() => + S.Struct({ + recipes: S.optional(LifecyclePolicyResourceSelectionRecipes), + tagMap: S.optional(TagMap), + }), +).annotate({ + identifier: "LifecyclePolicyResourceSelection", +}) as any as S.Schema; export interface CreateLifecyclePolicyRequest { name: string; description?: string; @@ -1361,44 +1345,42 @@ export interface CreateLifecyclePolicyRequest { tags?: { [key: string]: string | undefined }; clientToken: string; } -export const CreateLifecyclePolicyRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.String, - description: S.optional(S.String), - status: S.optional(LifecyclePolicyStatus), - executionRole: S.String, - resourceType: LifecyclePolicyResourceType, - policyDetails: LifecyclePolicyDetails, - resourceSelection: LifecyclePolicyResourceSelection, - tags: S.optional(TagMap), - clientToken: S.String.pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ method: "PUT", uri: "/CreateLifecyclePolicy" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateLifecyclePolicyRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.String, + description: S.optional(S.String), + status: S.optional(LifecyclePolicyStatus), + executionRole: S.String, + resourceType: LifecyclePolicyResourceType, + policyDetails: LifecyclePolicyDetails, + resourceSelection: LifecyclePolicyResourceSelection, + tags: S.optional(TagMap), + clientToken: S.String.pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/CreateLifecyclePolicy" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateLifecyclePolicyRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateLifecyclePolicyRequest", +}) as any as S.Schema; export interface CreateLifecyclePolicyResponse { clientToken?: string; lifecyclePolicyArn?: string; } -export const CreateLifecyclePolicyResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - clientToken: S.optional(S.String), - lifecyclePolicyArn: S.optional(S.String), - }), - ).annotate({ - identifier: "CreateLifecyclePolicyResponse", - }) as any as S.Schema; +export const CreateLifecyclePolicyResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + clientToken: S.optional(S.String), + lifecyclePolicyArn: S.optional(S.String), + }), +).annotate({ + identifier: "CreateLifecyclePolicyResponse", +}) as any as S.Schema; export type WorkflowType = "BUILD" | "TEST" | "DISTRIBUTION" | (string & {}); export const WorkflowType = /*@__PURE__*/ S.String; export interface CreateWorkflowRequest { @@ -1490,41 +1472,39 @@ export const DeleteComponentResponse = /*@__PURE__*/ S.suspend(() => export interface DeleteContainerRecipeRequest { containerRecipeArn: string; } -export const DeleteContainerRecipeRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - containerRecipeArn: S.String.pipe(T.HttpQuery("containerRecipeArn")), - }).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/DeleteContainerRecipe" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteContainerRecipeRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + containerRecipeArn: S.String.pipe(T.HttpQuery("containerRecipeArn")), + }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/DeleteContainerRecipe" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteContainerRecipeRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteContainerRecipeRequest", +}) as any as S.Schema; export interface DeleteContainerRecipeResponse { requestId?: string; containerRecipeArn?: string; } -export const DeleteContainerRecipeResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - requestId: S.optional(S.String), - containerRecipeArn: S.optional(S.String), - }), - ).annotate({ - identifier: "DeleteContainerRecipeResponse", - }) as any as S.Schema; +export const DeleteContainerRecipeResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + requestId: S.optional(S.String), + containerRecipeArn: S.optional(S.String), + }), +).annotate({ + identifier: "DeleteContainerRecipeResponse", +}) as any as S.Schema; export interface DeleteDistributionConfigurationRequest { distributionConfigurationArn: string; } -export const DeleteDistributionConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const DeleteDistributionConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ distributionConfigurationArn: S.String.pipe( T.HttpQuery("distributionConfigurationArn"), @@ -1539,22 +1519,22 @@ export const DeleteDistributionConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "DeleteDistributionConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteDistributionConfigurationRequest", +}) as any as S.Schema; export interface DeleteDistributionConfigurationResponse { requestId?: string; distributionConfigurationArn?: string; } -export const DeleteDistributionConfigurationResponse = - /*@__PURE__*/ S.suspend(() => +export const DeleteDistributionConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ requestId: S.optional(S.String), distributionConfigurationArn: S.optional(S.String), }), - ).annotate({ - identifier: "DeleteDistributionConfigurationResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteDistributionConfigurationResponse", +}) as any as S.Schema; export interface DeleteImageRequest { imageBuildVersionArn: string; } @@ -1609,15 +1589,14 @@ export interface DeleteImagePipelineResponse { requestId?: string; imagePipelineArn?: string; } -export const DeleteImagePipelineResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - requestId: S.optional(S.String), - imagePipelineArn: S.optional(S.String), - }), - ).annotate({ - identifier: "DeleteImagePipelineResponse", - }) as any as S.Schema; +export const DeleteImagePipelineResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + requestId: S.optional(S.String), + imagePipelineArn: S.optional(S.String), + }), +).annotate({ + identifier: "DeleteImagePipelineResponse", +}) as any as S.Schema; export interface DeleteImageRecipeRequest { imageRecipeArn: string; } @@ -1652,8 +1631,8 @@ export const DeleteImageRecipeResponse = /*@__PURE__*/ S.suspend(() => export interface DeleteInfrastructureConfigurationRequest { infrastructureConfigurationArn: string; } -export const DeleteInfrastructureConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const DeleteInfrastructureConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ infrastructureConfigurationArn: S.String.pipe( T.HttpQuery("infrastructureConfigurationArn"), @@ -1668,9 +1647,9 @@ export const DeleteInfrastructureConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "DeleteInfrastructureConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteInfrastructureConfigurationRequest", +}) as any as S.Schema; export interface DeleteInfrastructureConfigurationResponse { requestId?: string; infrastructureConfigurationArn?: string; @@ -1687,32 +1666,30 @@ export const DeleteInfrastructureConfigurationResponse = export interface DeleteLifecyclePolicyRequest { lifecyclePolicyArn: string; } -export const DeleteLifecyclePolicyRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - lifecyclePolicyArn: S.String.pipe(T.HttpQuery("lifecyclePolicyArn")), - }).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/DeleteLifecyclePolicy" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteLifecyclePolicyRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + lifecyclePolicyArn: S.String.pipe(T.HttpQuery("lifecyclePolicyArn")), + }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/DeleteLifecyclePolicy" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteLifecyclePolicyRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteLifecyclePolicyRequest", +}) as any as S.Schema; export interface DeleteLifecyclePolicyResponse { lifecyclePolicyArn?: string; } -export const DeleteLifecyclePolicyResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ lifecyclePolicyArn: S.optional(S.String) }), - ).annotate({ - identifier: "DeleteLifecyclePolicyResponse", - }) as any as S.Schema; +export const DeleteLifecyclePolicyResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ lifecyclePolicyArn: S.optional(S.String) }), +).annotate({ + identifier: "DeleteLifecyclePolicyResponse", +}) as any as S.Schema; export interface DeleteWorkflowRequest { workflowBuildVersionArn: string; } @@ -2017,61 +1994,58 @@ export const GetContainerRecipeResponse = /*@__PURE__*/ S.suspend(() => export interface GetContainerRecipePolicyRequest { containerRecipeArn: string; } -export const GetContainerRecipePolicyRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - containerRecipeArn: S.String.pipe(T.HttpQuery("containerRecipeArn")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/GetContainerRecipePolicy" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetContainerRecipePolicyRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + containerRecipeArn: S.String.pipe(T.HttpQuery("containerRecipeArn")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/GetContainerRecipePolicy" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetContainerRecipePolicyRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetContainerRecipePolicyRequest", +}) as any as S.Schema; export interface GetContainerRecipePolicyResponse { requestId?: string; policy?: string; } -export const GetContainerRecipePolicyResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ requestId: S.optional(S.String), policy: S.optional(S.String) }), - ).annotate({ - identifier: "GetContainerRecipePolicyResponse", - }) as any as S.Schema; +export const GetContainerRecipePolicyResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ requestId: S.optional(S.String), policy: S.optional(S.String) }), +).annotate({ + identifier: "GetContainerRecipePolicyResponse", +}) as any as S.Schema; export interface GetDistributionConfigurationRequest { distributionConfigurationArn: string; } -export const GetDistributionConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - distributionConfigurationArn: S.String.pipe( - T.HttpQuery("distributionConfigurationArn"), - ), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/GetDistributionConfiguration" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetDistributionConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + distributionConfigurationArn: S.String.pipe( + T.HttpQuery("distributionConfigurationArn"), ), - ).annotate({ - identifier: "GetDistributionConfigurationRequest", - }) as any as S.Schema; + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/GetDistributionConfiguration" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "GetDistributionConfigurationRequest", +}) as any as S.Schema; export interface DistributionConfiguration { arn?: string; name?: string; description?: string; distributions?: Distribution[]; - timeoutMinutes: number; + timeoutMinutes?: number; dateCreated?: string; dateUpdated?: string; tags?: { [key: string]: string | undefined }; @@ -2082,7 +2056,7 @@ export const DistributionConfiguration = /*@__PURE__*/ S.suspend(() => name: S.optional(S.String), description: S.optional(S.String), distributions: S.optional(DistributionList), - timeoutMinutes: S.Number, + timeoutMinutes: S.optional(S.Number), dateCreated: S.optional(S.String), dateUpdated: S.optional(S.String), tags: S.optional(TagMap), @@ -2094,15 +2068,15 @@ export interface GetDistributionConfigurationResponse { requestId?: string; distributionConfiguration?: DistributionConfiguration; } -export const GetDistributionConfigurationResponse = - /*@__PURE__*/ S.suspend(() => +export const GetDistributionConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ requestId: S.optional(S.String), distributionConfiguration: S.optional(DistributionConfiguration), }), - ).annotate({ - identifier: "GetDistributionConfigurationResponse", - }) as any as S.Schema; +).annotate({ + identifier: "GetDistributionConfigurationResponse", +}) as any as S.Schema; export interface GetImageRequest { imageBuildVersionArn: string; } @@ -2205,30 +2179,29 @@ export interface InfrastructureConfiguration { tags?: { [key: string]: string | undefined }; placement?: Placement; } -export const InfrastructureConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - arn: S.optional(S.String), - name: S.optional(S.String), - description: S.optional(S.String), - instanceTypes: S.optional(InstanceTypeList), - instanceProfileName: S.optional(S.String), - securityGroupIds: S.optional(SecurityGroupIds), - subnetId: S.optional(S.String), - logging: S.optional(Logging), - keyPair: S.optional(S.String), - terminateInstanceOnFailure: S.optional(S.Boolean), - snsTopicArn: S.optional(S.String), - dateCreated: S.optional(S.String), - dateUpdated: S.optional(S.String), - resourceTags: S.optional(ResourceTagMap), - instanceMetadataOptions: S.optional(InstanceMetadataOptions), - tags: S.optional(TagMap), - placement: S.optional(Placement), - }), - ).annotate({ - identifier: "InfrastructureConfiguration", - }) as any as S.Schema; +export const InfrastructureConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + arn: S.optional(S.String), + name: S.optional(S.String), + description: S.optional(S.String), + instanceTypes: S.optional(InstanceTypeList), + instanceProfileName: S.optional(S.String), + securityGroupIds: S.optional(SecurityGroupIds), + subnetId: S.optional(S.String), + logging: S.optional(Logging), + keyPair: S.optional(S.String), + terminateInstanceOnFailure: S.optional(S.Boolean), + snsTopicArn: S.optional(S.String), + dateCreated: S.optional(S.String), + dateUpdated: S.optional(S.String), + resourceTags: S.optional(ResourceTagMap), + instanceMetadataOptions: S.optional(InstanceMetadataOptions), + tags: S.optional(TagMap), + placement: S.optional(Placement), + }), +).annotate({ + identifier: "InfrastructureConfiguration", +}) as any as S.Schema; export interface Ami { region?: string; image?: string; @@ -2527,38 +2500,36 @@ export const GetImageRecipeResponse = /*@__PURE__*/ S.suspend(() => export interface GetImageRecipePolicyRequest { imageRecipeArn: string; } -export const GetImageRecipePolicyRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - imageRecipeArn: S.String.pipe(T.HttpQuery("imageRecipeArn")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/GetImageRecipePolicy" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetImageRecipePolicyRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + imageRecipeArn: S.String.pipe(T.HttpQuery("imageRecipeArn")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/GetImageRecipePolicy" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetImageRecipePolicyRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetImageRecipePolicyRequest", +}) as any as S.Schema; export interface GetImageRecipePolicyResponse { requestId?: string; policy?: string; } -export const GetImageRecipePolicyResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ requestId: S.optional(S.String), policy: S.optional(S.String) }), - ).annotate({ - identifier: "GetImageRecipePolicyResponse", - }) as any as S.Schema; +export const GetImageRecipePolicyResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ requestId: S.optional(S.String), policy: S.optional(S.String) }), +).annotate({ + identifier: "GetImageRecipePolicyResponse", +}) as any as S.Schema; export interface GetInfrastructureConfigurationRequest { infrastructureConfigurationArn: string; } -export const GetInfrastructureConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const GetInfrastructureConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ infrastructureConfigurationArn: S.String.pipe( T.HttpQuery("infrastructureConfigurationArn"), @@ -2573,42 +2544,41 @@ export const GetInfrastructureConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "GetInfrastructureConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "GetInfrastructureConfigurationRequest", +}) as any as S.Schema; export interface GetInfrastructureConfigurationResponse { requestId?: string; infrastructureConfiguration?: InfrastructureConfiguration; } -export const GetInfrastructureConfigurationResponse = - /*@__PURE__*/ S.suspend(() => +export const GetInfrastructureConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ requestId: S.optional(S.String), infrastructureConfiguration: S.optional(InfrastructureConfiguration), }), - ).annotate({ - identifier: "GetInfrastructureConfigurationResponse", - }) as any as S.Schema; +).annotate({ + identifier: "GetInfrastructureConfigurationResponse", +}) as any as S.Schema; export interface GetLifecycleExecutionRequest { lifecycleExecutionId: string; } -export const GetLifecycleExecutionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - lifecycleExecutionId: S.String.pipe(T.HttpQuery("lifecycleExecutionId")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/GetLifecycleExecution" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetLifecycleExecutionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + lifecycleExecutionId: S.String.pipe(T.HttpQuery("lifecycleExecutionId")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/GetLifecycleExecution" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetLifecycleExecutionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetLifecycleExecutionRequest", +}) as any as S.Schema; export interface LifecycleExecutionResourcesImpactedSummary { hasImpactedResources?: boolean; } @@ -2664,12 +2634,11 @@ export const LifecycleExecution = /*@__PURE__*/ S.suspend(() => export interface GetLifecycleExecutionResponse { lifecycleExecution?: LifecycleExecution; } -export const GetLifecycleExecutionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ lifecycleExecution: S.optional(LifecycleExecution) }), - ).annotate({ - identifier: "GetLifecycleExecutionResponse", - }) as any as S.Schema; +export const GetLifecycleExecutionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ lifecycleExecution: S.optional(LifecycleExecution) }), +).annotate({ + identifier: "GetLifecycleExecutionResponse", +}) as any as S.Schema; export interface GetLifecyclePolicyRequest { lifecyclePolicyArn: string; } @@ -2739,40 +2708,38 @@ export interface GetMarketplaceResourceRequest { resourceArn: string; resourceLocation?: string; } -export const GetMarketplaceResourceRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - resourceType: MarketplaceResourceType, - resourceArn: S.String, - resourceLocation: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/GetMarketplaceResource" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetMarketplaceResourceRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + resourceType: MarketplaceResourceType, + resourceArn: S.String, + resourceLocation: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/GetMarketplaceResource" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetMarketplaceResourceRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetMarketplaceResourceRequest", +}) as any as S.Schema; export interface GetMarketplaceResourceResponse { resourceArn?: string; url?: string; data?: string; } -export const GetMarketplaceResourceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - resourceArn: S.optional(S.String), - url: S.optional(S.String), - data: S.optional(S.String), - }), - ).annotate({ - identifier: "GetMarketplaceResourceResponse", - }) as any as S.Schema; +export const GetMarketplaceResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + resourceArn: S.optional(S.String), + url: S.optional(S.String), + data: S.optional(S.String), + }), +).annotate({ + identifier: "GetMarketplaceResourceResponse", +}) as any as S.Schema; export interface GetWorkflowRequest { workflowBuildVersionArn: string; } @@ -2873,26 +2840,25 @@ export const GetWorkflowResponse = /*@__PURE__*/ S.suspend(() => export interface GetWorkflowExecutionRequest { workflowExecutionId: string; } -export const GetWorkflowExecutionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - workflowExecutionId: S.String.pipe(T.HttpQuery("workflowExecutionId")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/GetWorkflowExecution" }), - svc, - auth, - proto, - ver, - rules, - ), - ), - ).annotate({ - identifier: "GetWorkflowExecutionRequest", - }) as any as S.Schema; -export type WorkflowExecutionStatus = - | "PENDING" - | "SKIPPED" +export const GetWorkflowExecutionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + workflowExecutionId: S.String.pipe(T.HttpQuery("workflowExecutionId")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/GetWorkflowExecution" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "GetWorkflowExecutionRequest", +}) as any as S.Schema; +export type WorkflowExecutionStatus = + | "PENDING" + | "SKIPPED" | "RUNNING" | "COMPLETED" | "FAILED" @@ -2917,47 +2883,45 @@ export interface GetWorkflowExecutionResponse { endTime?: string; parallelGroup?: string; } -export const GetWorkflowExecutionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - requestId: S.optional(S.String), - workflowBuildVersionArn: S.optional(S.String), - workflowExecutionId: S.optional(S.String), - imageBuildVersionArn: S.optional(S.String), - type: S.optional(WorkflowType), - status: S.optional(WorkflowExecutionStatus), - message: S.optional(S.String), - totalStepCount: S.optional(S.Number), - totalStepsSucceeded: S.optional(S.Number), - totalStepsFailed: S.optional(S.Number), - totalStepsSkipped: S.optional(S.Number), - startTime: S.optional(S.String), - endTime: S.optional(S.String), - parallelGroup: S.optional(S.String), - }), - ).annotate({ - identifier: "GetWorkflowExecutionResponse", - }) as any as S.Schema; +export const GetWorkflowExecutionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + requestId: S.optional(S.String), + workflowBuildVersionArn: S.optional(S.String), + workflowExecutionId: S.optional(S.String), + imageBuildVersionArn: S.optional(S.String), + type: S.optional(WorkflowType), + status: S.optional(WorkflowExecutionStatus), + message: S.optional(S.String), + totalStepCount: S.optional(S.Number), + totalStepsSucceeded: S.optional(S.Number), + totalStepsFailed: S.optional(S.Number), + totalStepsSkipped: S.optional(S.Number), + startTime: S.optional(S.String), + endTime: S.optional(S.String), + parallelGroup: S.optional(S.String), + }), +).annotate({ + identifier: "GetWorkflowExecutionResponse", +}) as any as S.Schema; export interface GetWorkflowStepExecutionRequest { stepExecutionId: string; } -export const GetWorkflowStepExecutionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - stepExecutionId: S.String.pipe(T.HttpQuery("stepExecutionId")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/GetWorkflowStepExecution" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetWorkflowStepExecutionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + stepExecutionId: S.String.pipe(T.HttpQuery("stepExecutionId")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/GetWorkflowStepExecution" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetWorkflowStepExecutionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetWorkflowStepExecutionRequest", +}) as any as S.Schema; export type WorkflowStepExecutionStatus = | "PENDING" | "SKIPPED" @@ -2993,30 +2957,29 @@ export interface GetWorkflowStepExecutionResponse { onFailure?: string; timeoutSeconds?: number; } -export const GetWorkflowStepExecutionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - requestId: S.optional(S.String), - stepExecutionId: S.optional(S.String), - workflowBuildVersionArn: S.optional(S.String), - workflowExecutionId: S.optional(S.String), - imageBuildVersionArn: S.optional(S.String), - name: S.optional(S.String), - description: S.optional(S.String), - action: S.optional(S.String), - status: S.optional(WorkflowStepExecutionStatus), - rollbackStatus: S.optional(WorkflowStepExecutionRollbackStatus), - message: S.optional(S.String), - inputs: S.optional(S.String), - outputs: S.optional(S.String), - startTime: S.optional(S.String), - endTime: S.optional(S.String), - onFailure: S.optional(S.String), - timeoutSeconds: S.optional(S.Number), - }), - ).annotate({ - identifier: "GetWorkflowStepExecutionResponse", - }) as any as S.Schema; +export const GetWorkflowStepExecutionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + requestId: S.optional(S.String), + stepExecutionId: S.optional(S.String), + workflowBuildVersionArn: S.optional(S.String), + workflowExecutionId: S.optional(S.String), + imageBuildVersionArn: S.optional(S.String), + name: S.optional(S.String), + description: S.optional(S.String), + action: S.optional(S.String), + status: S.optional(WorkflowStepExecutionStatus), + rollbackStatus: S.optional(WorkflowStepExecutionRollbackStatus), + message: S.optional(S.String), + inputs: S.optional(S.String), + outputs: S.optional(S.String), + startTime: S.optional(S.String), + endTime: S.optional(S.String), + onFailure: S.optional(S.String), + timeoutSeconds: S.optional(S.Number), + }), +).annotate({ + identifier: "GetWorkflowStepExecutionResponse", +}) as any as S.Schema; export type ComponentFormat = "SHELL" | (string & {}); export const ComponentFormat = /*@__PURE__*/ S.String; export interface ImportComponentRequest { @@ -3203,25 +3166,24 @@ export interface ListComponentBuildVersionsRequest { maxResults?: number; nextToken?: string; } -export const ListComponentBuildVersionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - componentVersionArn: S.optional(S.String), - maxResults: S.optional(S.Number), - nextToken: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/ListComponentBuildVersions" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListComponentBuildVersionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + componentVersionArn: S.optional(S.String), + maxResults: S.optional(S.Number), + nextToken: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/ListComponentBuildVersions" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListComponentBuildVersionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListComponentBuildVersionsRequest", +}) as any as S.Schema; export interface ComponentSummary { arn?: string; name?: string; @@ -3265,16 +3227,15 @@ export interface ListComponentBuildVersionsResponse { componentSummaryList?: ComponentSummary[]; nextToken?: string; } -export const ListComponentBuildVersionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - requestId: S.optional(S.String), - componentSummaryList: S.optional(ComponentSummaryList), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListComponentBuildVersionsResponse", - }) as any as S.Schema; +export const ListComponentBuildVersionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + requestId: S.optional(S.String), + componentSummaryList: S.optional(ComponentSummaryList), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListComponentBuildVersionsResponse", +}) as any as S.Schema; export type Ownership = | "Self" | "Shared" @@ -3373,26 +3334,25 @@ export interface ListContainerRecipesRequest { maxResults?: number; nextToken?: string; } -export const ListContainerRecipesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - owner: S.optional(Ownership), - filters: S.optional(FilterList), - maxResults: S.optional(S.Number), - nextToken: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/ListContainerRecipes" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListContainerRecipesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + owner: S.optional(Ownership), + filters: S.optional(FilterList), + maxResults: S.optional(S.Number), + nextToken: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/ListContainerRecipes" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListContainerRecipesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListContainerRecipesRequest", +}) as any as S.Schema; export interface ContainerRecipeSummary { arn?: string; containerType?: ContainerType; @@ -3428,23 +3388,22 @@ export interface ListContainerRecipesResponse { containerRecipeSummaryList?: ContainerRecipeSummary[]; nextToken?: string; } -export const ListContainerRecipesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - requestId: S.optional(S.String), - containerRecipeSummaryList: S.optional(ContainerRecipeSummaryList), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListContainerRecipesResponse", - }) as any as S.Schema; +export const ListContainerRecipesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + requestId: S.optional(S.String), + containerRecipeSummaryList: S.optional(ContainerRecipeSummaryList), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListContainerRecipesResponse", +}) as any as S.Schema; export interface ListDistributionConfigurationsRequest { filters?: Filter[]; maxResults?: number; nextToken?: string; } -export const ListDistributionConfigurationsRequest = - /*@__PURE__*/ S.suspend(() => +export const ListDistributionConfigurationsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ filters: S.optional(FilterList), maxResults: S.optional(S.Number), @@ -3459,9 +3418,9 @@ export const ListDistributionConfigurationsRequest = rules, ), ), - ).annotate({ - identifier: "ListDistributionConfigurationsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListDistributionConfigurationsRequest", +}) as any as S.Schema; export type RegionList = string[]; export const RegionList = /*@__PURE__*/ S.Array(S.String); export interface DistributionConfigurationSummary { @@ -3473,31 +3432,31 @@ export interface DistributionConfigurationSummary { tags?: { [key: string]: string | undefined }; regions?: string[]; } -export const DistributionConfigurationSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - arn: S.optional(S.String), - name: S.optional(S.String), - description: S.optional(S.String), - dateCreated: S.optional(S.String), - dateUpdated: S.optional(S.String), - tags: S.optional(TagMap), - regions: S.optional(RegionList), - }), - ).annotate({ - identifier: "DistributionConfigurationSummary", - }) as any as S.Schema; +export const DistributionConfigurationSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + arn: S.optional(S.String), + name: S.optional(S.String), + description: S.optional(S.String), + dateCreated: S.optional(S.String), + dateUpdated: S.optional(S.String), + tags: S.optional(TagMap), + regions: S.optional(RegionList), + }), +).annotate({ + identifier: "DistributionConfigurationSummary", +}) as any as S.Schema; export type DistributionConfigurationSummaryList = DistributionConfigurationSummary[]; -export const DistributionConfigurationSummaryList = - /*@__PURE__*/ S.Array(DistributionConfigurationSummary); +export const DistributionConfigurationSummaryList = /*@__PURE__*/ S.Array( + DistributionConfigurationSummary, +); export interface ListDistributionConfigurationsResponse { requestId?: string; distributionConfigurationSummaryList?: DistributionConfigurationSummary[]; nextToken?: string; } -export const ListDistributionConfigurationsResponse = - /*@__PURE__*/ S.suspend(() => +export const ListDistributionConfigurationsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ requestId: S.optional(S.String), distributionConfigurationSummaryList: S.optional( @@ -3505,35 +3464,34 @@ export const ListDistributionConfigurationsResponse = ), nextToken: S.optional(S.String), }), - ).annotate({ - identifier: "ListDistributionConfigurationsResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListDistributionConfigurationsResponse", +}) as any as S.Schema; export interface ListImageBuildVersionsRequest { imageVersionArn?: string; filters?: Filter[]; maxResults?: number; nextToken?: string; } -export const ListImageBuildVersionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - imageVersionArn: S.optional(S.String), - filters: S.optional(FilterList), - maxResults: S.optional(S.Number), - nextToken: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/ListImageBuildVersions" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListImageBuildVersionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + imageVersionArn: S.optional(S.String), + filters: S.optional(FilterList), + maxResults: S.optional(S.Number), + nextToken: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/ListImageBuildVersions" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListImageBuildVersionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListImageBuildVersionsRequest", +}) as any as S.Schema; export interface ImageSummary { arn?: string; name?: string; @@ -3581,16 +3539,15 @@ export interface ListImageBuildVersionsResponse { imageSummaryList?: ImageSummary[]; nextToken?: string; } -export const ListImageBuildVersionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - requestId: S.optional(S.String), - imageSummaryList: S.optional(ImageSummaryList), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListImageBuildVersionsResponse", - }) as any as S.Schema; +export const ListImageBuildVersionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + requestId: S.optional(S.String), + imageSummaryList: S.optional(ImageSummaryList), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListImageBuildVersionsResponse", +}) as any as S.Schema; export interface ListImagePackagesRequest { imageBuildVersionArn: string; maxResults?: number; @@ -3646,41 +3603,39 @@ export interface ListImagePipelineImagesRequest { maxResults?: number; nextToken?: string; } -export const ListImagePipelineImagesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - imagePipelineArn: S.String, - filters: S.optional(FilterList), - maxResults: S.optional(S.Number), - nextToken: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/ListImagePipelineImages" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListImagePipelineImagesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + imagePipelineArn: S.String, + filters: S.optional(FilterList), + maxResults: S.optional(S.Number), + nextToken: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/ListImagePipelineImages" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListImagePipelineImagesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListImagePipelineImagesRequest", +}) as any as S.Schema; export interface ListImagePipelineImagesResponse { requestId?: string; imageSummaryList?: ImageSummary[]; nextToken?: string; } -export const ListImagePipelineImagesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - requestId: S.optional(S.String), - imageSummaryList: S.optional(ImageSummaryList), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListImagePipelineImagesResponse", - }) as any as S.Schema; +export const ListImagePipelineImagesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + requestId: S.optional(S.String), + imageSummaryList: S.optional(ImageSummaryList), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListImagePipelineImagesResponse", +}) as any as S.Schema; export interface ListImagePipelinesRequest { filters?: Filter[]; maxResults?: number; @@ -3858,8 +3813,8 @@ export interface ListImageScanFindingAggregationsRequest { filter?: Filter; nextToken?: string; } -export const ListImageScanFindingAggregationsRequest = - /*@__PURE__*/ S.suspend(() => +export const ListImageScanFindingAggregationsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ filter: S.optional(Filter), nextToken: S.optional(S.String), @@ -3873,9 +3828,9 @@ export const ListImageScanFindingAggregationsRequest = rules, ), ), - ).annotate({ - identifier: "ListImageScanFindingAggregationsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListImageScanFindingAggregationsRequest", +}) as any as S.Schema; export interface SeverityCounts { all?: number; critical?: number; @@ -3944,37 +3899,37 @@ export interface ImageScanFindingAggregation { imagePipelineAggregation?: ImagePipelineAggregation; vulnerabilityIdAggregation?: VulnerabilityIdAggregation; } -export const ImageScanFindingAggregation = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - accountAggregation: S.optional(AccountAggregation), - imageAggregation: S.optional(ImageAggregation), - imagePipelineAggregation: S.optional(ImagePipelineAggregation), - vulnerabilityIdAggregation: S.optional(VulnerabilityIdAggregation), - }), - ).annotate({ - identifier: "ImageScanFindingAggregation", - }) as any as S.Schema; +export const ImageScanFindingAggregation = /*@__PURE__*/ S.suspend(() => + S.Struct({ + accountAggregation: S.optional(AccountAggregation), + imageAggregation: S.optional(ImageAggregation), + imagePipelineAggregation: S.optional(ImagePipelineAggregation), + vulnerabilityIdAggregation: S.optional(VulnerabilityIdAggregation), + }), +).annotate({ + identifier: "ImageScanFindingAggregation", +}) as any as S.Schema; export type ImageScanFindingAggregationsList = ImageScanFindingAggregation[]; -export const ImageScanFindingAggregationsList = - /*@__PURE__*/ S.Array(ImageScanFindingAggregation); +export const ImageScanFindingAggregationsList = /*@__PURE__*/ S.Array( + ImageScanFindingAggregation, +); export interface ListImageScanFindingAggregationsResponse { requestId?: string; aggregationType?: string; responses?: ImageScanFindingAggregation[]; nextToken?: string; } -export const ListImageScanFindingAggregationsResponse = - /*@__PURE__*/ S.suspend(() => +export const ListImageScanFindingAggregationsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ requestId: S.optional(S.String), aggregationType: S.optional(S.String), responses: S.optional(ImageScanFindingAggregationsList), nextToken: S.optional(S.String), }), - ).annotate({ - identifier: "ListImageScanFindingAggregationsResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListImageScanFindingAggregationsResponse", +}) as any as S.Schema; export type ImageScanFindingsFilterValues = string[]; export const ImageScanFindingsFilterValues = /*@__PURE__*/ S.Array(S.String); export interface ImageScanFindingsFilter { @@ -3998,25 +3953,24 @@ export interface ListImageScanFindingsRequest { maxResults?: number; nextToken?: string; } -export const ListImageScanFindingsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - filters: S.optional(ImageScanFindingsFilterList), - maxResults: S.optional(S.Number), - nextToken: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/ListImageScanFindings" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListImageScanFindingsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + filters: S.optional(ImageScanFindingsFilterList), + maxResults: S.optional(S.Number), + nextToken: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/ListImageScanFindings" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListImageScanFindingsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListImageScanFindingsRequest", +}) as any as S.Schema; export interface RemediationRecommendation { text?: string; url?: string; @@ -4134,27 +4088,26 @@ export interface PackageVulnerabilityDetails { vendorUpdatedAt?: Date; referenceUrls?: string[]; } -export const PackageVulnerabilityDetails = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - vulnerabilityId: S.String, - vulnerablePackages: S.optional(VulnerablePackageList), - source: S.optional(S.String), - cvss: S.optional(CvssScoreList), - relatedVulnerabilities: S.optional(VulnerabilityIdList), - sourceUrl: S.optional(S.String), - vendorSeverity: S.optional(S.String), - vendorCreatedAt: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - vendorUpdatedAt: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - referenceUrls: S.optional(NonEmptyStringList), - }), - ).annotate({ - identifier: "PackageVulnerabilityDetails", - }) as any as S.Schema; +export const PackageVulnerabilityDetails = /*@__PURE__*/ S.suspend(() => + S.Struct({ + vulnerabilityId: S.String, + vulnerablePackages: S.optional(VulnerablePackageList), + source: S.optional(S.String), + cvss: S.optional(CvssScoreList), + relatedVulnerabilities: S.optional(VulnerabilityIdList), + sourceUrl: S.optional(S.String), + vendorSeverity: S.optional(S.String), + vendorCreatedAt: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + vendorUpdatedAt: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + referenceUrls: S.optional(NonEmptyStringList), + }), +).annotate({ + identifier: "PackageVulnerabilityDetails", +}) as any as S.Schema; export interface ImageScanFinding { awsAccountId?: string; imageBuildVersionArn?: string; @@ -4200,23 +4153,22 @@ export interface ListImageScanFindingsResponse { findings?: ImageScanFinding[]; nextToken?: string; } -export const ListImageScanFindingsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - requestId: S.optional(S.String), - findings: S.optional(ImageScanFindingsList), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListImageScanFindingsResponse", - }) as any as S.Schema; +export const ListImageScanFindingsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + requestId: S.optional(S.String), + findings: S.optional(ImageScanFindingsList), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListImageScanFindingsResponse", +}) as any as S.Schema; export interface ListInfrastructureConfigurationsRequest { filters?: Filter[]; maxResults?: number; nextToken?: string; } -export const ListInfrastructureConfigurationsRequest = - /*@__PURE__*/ S.suspend(() => +export const ListInfrastructureConfigurationsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ filters: S.optional(FilterList), maxResults: S.optional(S.Number), @@ -4231,9 +4183,9 @@ export const ListInfrastructureConfigurationsRequest = rules, ), ), - ).annotate({ - identifier: "ListInfrastructureConfigurationsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListInfrastructureConfigurationsRequest", +}) as any as S.Schema; export interface InfrastructureConfigurationSummary { arn?: string; name?: string; @@ -4246,34 +4198,34 @@ export interface InfrastructureConfigurationSummary { instanceProfileName?: string; placement?: Placement; } -export const InfrastructureConfigurationSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - arn: S.optional(S.String), - name: S.optional(S.String), - description: S.optional(S.String), - dateCreated: S.optional(S.String), - dateUpdated: S.optional(S.String), - resourceTags: S.optional(ResourceTagMap), - tags: S.optional(TagMap), - instanceTypes: S.optional(InstanceTypeList), - instanceProfileName: S.optional(S.String), - placement: S.optional(Placement), - }), - ).annotate({ - identifier: "InfrastructureConfigurationSummary", - }) as any as S.Schema; +export const InfrastructureConfigurationSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + arn: S.optional(S.String), + name: S.optional(S.String), + description: S.optional(S.String), + dateCreated: S.optional(S.String), + dateUpdated: S.optional(S.String), + resourceTags: S.optional(ResourceTagMap), + tags: S.optional(TagMap), + instanceTypes: S.optional(InstanceTypeList), + instanceProfileName: S.optional(S.String), + placement: S.optional(Placement), + }), +).annotate({ + identifier: "InfrastructureConfigurationSummary", +}) as any as S.Schema; export type InfrastructureConfigurationSummaryList = InfrastructureConfigurationSummary[]; -export const InfrastructureConfigurationSummaryList = - /*@__PURE__*/ S.Array(InfrastructureConfigurationSummary); +export const InfrastructureConfigurationSummaryList = /*@__PURE__*/ S.Array( + InfrastructureConfigurationSummary, +); export interface ListInfrastructureConfigurationsResponse { requestId?: string; infrastructureConfigurationSummaryList?: InfrastructureConfigurationSummary[]; nextToken?: string; } -export const ListInfrastructureConfigurationsResponse = - /*@__PURE__*/ S.suspend(() => +export const ListInfrastructureConfigurationsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ requestId: S.optional(S.String), infrastructureConfigurationSummaryList: S.optional( @@ -4281,17 +4233,17 @@ export const ListInfrastructureConfigurationsResponse = ), nextToken: S.optional(S.String), }), - ).annotate({ - identifier: "ListInfrastructureConfigurationsResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListInfrastructureConfigurationsResponse", +}) as any as S.Schema; export interface ListLifecycleExecutionResourcesRequest { lifecycleExecutionId: string; parentResourceId?: string; maxResults?: number; nextToken?: string; } -export const ListLifecycleExecutionResourcesRequest = - /*@__PURE__*/ S.suspend(() => +export const ListLifecycleExecutionResourcesRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ lifecycleExecutionId: S.String, parentResourceId: S.optional(S.String), @@ -4307,9 +4259,9 @@ export const ListLifecycleExecutionResourcesRequest = rules, ), ), - ).annotate({ - identifier: "ListLifecycleExecutionResourcesRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListLifecycleExecutionResourcesRequest", +}) as any as S.Schema; export type LifecycleExecutionResourceStatus = | "FAILED" | "IN_PROGRESS" @@ -4321,15 +4273,14 @@ export interface LifecycleExecutionResourceState { status?: LifecycleExecutionResourceStatus; reason?: string; } -export const LifecycleExecutionResourceState = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - status: S.optional(LifecycleExecutionResourceStatus), - reason: S.optional(S.String), - }), - ).annotate({ - identifier: "LifecycleExecutionResourceState", - }) as any as S.Schema; +export const LifecycleExecutionResourceState = /*@__PURE__*/ S.suspend(() => + S.Struct({ + status: S.optional(LifecycleExecutionResourceStatus), + reason: S.optional(S.String), + }), +).annotate({ + identifier: "LifecycleExecutionResourceState", +}) as any as S.Schema; export type LifecycleExecutionResourceActionName = | "AVAILABLE" | "DELETE" @@ -4341,32 +4292,31 @@ export interface LifecycleExecutionResourceAction { name?: LifecycleExecutionResourceActionName; reason?: string; } -export const LifecycleExecutionResourceAction = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.optional(LifecycleExecutionResourceActionName), - reason: S.optional(S.String), - }), - ).annotate({ - identifier: "LifecycleExecutionResourceAction", - }) as any as S.Schema; +export const LifecycleExecutionResourceAction = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.optional(LifecycleExecutionResourceActionName), + reason: S.optional(S.String), + }), +).annotate({ + identifier: "LifecycleExecutionResourceAction", +}) as any as S.Schema; export interface LifecycleExecutionSnapshotResource { snapshotId?: string; state?: LifecycleExecutionResourceState; } -export const LifecycleExecutionSnapshotResource = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - snapshotId: S.optional(S.String), - state: S.optional(LifecycleExecutionResourceState), - }), - ).annotate({ - identifier: "LifecycleExecutionSnapshotResource", - }) as any as S.Schema; +export const LifecycleExecutionSnapshotResource = /*@__PURE__*/ S.suspend(() => + S.Struct({ + snapshotId: S.optional(S.String), + state: S.optional(LifecycleExecutionResourceState), + }), +).annotate({ + identifier: "LifecycleExecutionSnapshotResource", +}) as any as S.Schema; export type LifecycleExecutionSnapshotResourceList = LifecycleExecutionSnapshotResource[]; -export const LifecycleExecutionSnapshotResourceList = - /*@__PURE__*/ S.Array(LifecycleExecutionSnapshotResource); +export const LifecycleExecutionSnapshotResourceList = /*@__PURE__*/ S.Array( + LifecycleExecutionSnapshotResource, +); export interface LifecycleExecutionResource { accountId?: string; resourceId?: string; @@ -4394,49 +4344,49 @@ export const LifecycleExecutionResource = /*@__PURE__*/ S.suspend(() => identifier: "LifecycleExecutionResource", }) as any as S.Schema; export type LifecycleExecutionResourceList = LifecycleExecutionResource[]; -export const LifecycleExecutionResourceList = - /*@__PURE__*/ S.Array(LifecycleExecutionResource); +export const LifecycleExecutionResourceList = /*@__PURE__*/ S.Array( + LifecycleExecutionResource, +); export interface ListLifecycleExecutionResourcesResponse { lifecycleExecutionId?: string; lifecycleExecutionState?: LifecycleExecutionState; resources?: LifecycleExecutionResource[]; nextToken?: string; } -export const ListLifecycleExecutionResourcesResponse = - /*@__PURE__*/ S.suspend(() => +export const ListLifecycleExecutionResourcesResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ lifecycleExecutionId: S.optional(S.String), lifecycleExecutionState: S.optional(LifecycleExecutionState), resources: S.optional(LifecycleExecutionResourceList), nextToken: S.optional(S.String), }), - ).annotate({ - identifier: "ListLifecycleExecutionResourcesResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListLifecycleExecutionResourcesResponse", +}) as any as S.Schema; export interface ListLifecycleExecutionsRequest { maxResults?: number; nextToken?: string; resourceArn: string; } -export const ListLifecycleExecutionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - maxResults: S.optional(S.Number), - nextToken: S.optional(S.String), - resourceArn: S.String, - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/ListLifecycleExecutions" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListLifecycleExecutionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + maxResults: S.optional(S.Number), + nextToken: S.optional(S.String), + resourceArn: S.String, + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/ListLifecycleExecutions" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListLifecycleExecutionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListLifecycleExecutionsRequest", +}) as any as S.Schema; export type LifecycleExecutionsList = LifecycleExecution[]; export const LifecycleExecutionsList = /*@__PURE__*/ S.Array(LifecycleExecution); @@ -4444,39 +4394,37 @@ export interface ListLifecycleExecutionsResponse { lifecycleExecutions?: LifecycleExecution[]; nextToken?: string; } -export const ListLifecycleExecutionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - lifecycleExecutions: S.optional(LifecycleExecutionsList), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListLifecycleExecutionsResponse", - }) as any as S.Schema; +export const ListLifecycleExecutionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + lifecycleExecutions: S.optional(LifecycleExecutionsList), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListLifecycleExecutionsResponse", +}) as any as S.Schema; export interface ListLifecyclePoliciesRequest { filters?: Filter[]; maxResults?: number; nextToken?: string; } -export const ListLifecyclePoliciesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - filters: S.optional(FilterList), - maxResults: S.optional(S.Number), - nextToken: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/ListLifecyclePolicies" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListLifecyclePoliciesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + filters: S.optional(FilterList), + maxResults: S.optional(S.Number), + nextToken: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/ListLifecyclePolicies" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListLifecyclePoliciesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListLifecyclePoliciesRequest", +}) as any as S.Schema; export interface LifecyclePolicySummary { arn?: string; name?: string; @@ -4513,15 +4461,14 @@ export interface ListLifecyclePoliciesResponse { lifecyclePolicySummaryList?: LifecyclePolicySummary[]; nextToken?: string; } -export const ListLifecyclePoliciesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - lifecyclePolicySummaryList: S.optional(LifecyclePolicySummaryList), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListLifecyclePoliciesResponse", - }) as any as S.Schema; +export const ListLifecyclePoliciesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + lifecyclePolicySummaryList: S.optional(LifecyclePolicySummaryList), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListLifecyclePoliciesResponse", +}) as any as S.Schema; export interface ListTagsForResourceRequest { resourceArn: string; } @@ -4542,34 +4489,32 @@ export const ListTagsForResourceRequest = /*@__PURE__*/ S.suspend(() => export interface ListTagsForResourceResponse { tags?: { [key: string]: string | undefined }; } -export const ListTagsForResourceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ tags: S.optional(TagMap) }), - ).annotate({ - identifier: "ListTagsForResourceResponse", - }) as any as S.Schema; +export const ListTagsForResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ tags: S.optional(TagMap) }), +).annotate({ + identifier: "ListTagsForResourceResponse", +}) as any as S.Schema; export interface ListWaitingWorkflowStepsRequest { maxResults?: number; nextToken?: string; } -export const ListWaitingWorkflowStepsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - maxResults: S.optional(S.Number), - nextToken: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/ListWaitingWorkflowSteps" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListWaitingWorkflowStepsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + maxResults: S.optional(S.Number), + nextToken: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/ListWaitingWorkflowSteps" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListWaitingWorkflowStepsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListWaitingWorkflowStepsRequest", +}) as any as S.Schema; export interface WorkflowStepExecution { stepExecutionId?: string; imageBuildVersionArn?: string; @@ -4600,39 +4545,37 @@ export interface ListWaitingWorkflowStepsResponse { steps?: WorkflowStepExecution[]; nextToken?: string; } -export const ListWaitingWorkflowStepsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - steps: S.optional(WorkflowStepExecutionList), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListWaitingWorkflowStepsResponse", - }) as any as S.Schema; +export const ListWaitingWorkflowStepsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + steps: S.optional(WorkflowStepExecutionList), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListWaitingWorkflowStepsResponse", +}) as any as S.Schema; export interface ListWorkflowBuildVersionsRequest { workflowVersionArn?: string; maxResults?: number; nextToken?: string; } -export const ListWorkflowBuildVersionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - workflowVersionArn: S.optional(S.String), - maxResults: S.optional(S.Number), - nextToken: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/ListWorkflowBuildVersions" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListWorkflowBuildVersionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + workflowVersionArn: S.optional(S.String), + maxResults: S.optional(S.Number), + nextToken: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/ListWorkflowBuildVersions" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListWorkflowBuildVersionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListWorkflowBuildVersionsRequest", +}) as any as S.Schema; export interface WorkflowSummary { arn?: string; name?: string; @@ -4667,39 +4610,37 @@ export interface ListWorkflowBuildVersionsResponse { workflowSummaryList?: WorkflowSummary[]; nextToken?: string; } -export const ListWorkflowBuildVersionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - workflowSummaryList: S.optional(WorkflowSummaryList), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListWorkflowBuildVersionsResponse", - }) as any as S.Schema; +export const ListWorkflowBuildVersionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + workflowSummaryList: S.optional(WorkflowSummaryList), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListWorkflowBuildVersionsResponse", +}) as any as S.Schema; export interface ListWorkflowExecutionsRequest { maxResults?: number; nextToken?: string; imageBuildVersionArn: string; } -export const ListWorkflowExecutionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - maxResults: S.optional(S.Number), - nextToken: S.optional(S.String), - imageBuildVersionArn: S.String, - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/ListWorkflowExecutions" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListWorkflowExecutionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + maxResults: S.optional(S.Number), + nextToken: S.optional(S.String), + imageBuildVersionArn: S.String, + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/ListWorkflowExecutions" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListWorkflowExecutionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListWorkflowExecutionsRequest", +}) as any as S.Schema; export interface WorkflowExecutionMetadata { workflowBuildVersionArn?: string; workflowExecutionId?: string; @@ -4745,18 +4686,17 @@ export interface ListWorkflowExecutionsResponse { message?: string; nextToken?: string; } -export const ListWorkflowExecutionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - requestId: S.optional(S.String), - workflowExecutions: S.optional(WorkflowExecutionsList), - imageBuildVersionArn: S.optional(S.String), - message: S.optional(S.String), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListWorkflowExecutionsResponse", - }) as any as S.Schema; +export const ListWorkflowExecutionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + requestId: S.optional(S.String), + workflowExecutions: S.optional(WorkflowExecutionsList), + imageBuildVersionArn: S.optional(S.String), + message: S.optional(S.String), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListWorkflowExecutionsResponse", +}) as any as S.Schema; export interface ListWorkflowsRequest { owner?: Ownership; filters?: Filter[]; @@ -4825,25 +4765,24 @@ export interface ListWorkflowStepExecutionsRequest { nextToken?: string; workflowExecutionId: string; } -export const ListWorkflowStepExecutionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - maxResults: S.optional(S.Number), - nextToken: S.optional(S.String), - workflowExecutionId: S.String, - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/ListWorkflowStepExecutions" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListWorkflowStepExecutionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + maxResults: S.optional(S.Number), + nextToken: S.optional(S.String), + workflowExecutionId: S.String, + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/ListWorkflowStepExecutions" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListWorkflowStepExecutionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListWorkflowStepExecutionsRequest", +}) as any as S.Schema; export interface WorkflowStepMetadata { stepExecutionId?: string; name?: string; @@ -4886,20 +4825,19 @@ export interface ListWorkflowStepExecutionsResponse { message?: string; nextToken?: string; } -export const ListWorkflowStepExecutionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - requestId: S.optional(S.String), - steps: S.optional(WorkflowStepExecutionsList), - workflowBuildVersionArn: S.optional(S.String), - workflowExecutionId: S.optional(S.String), - imageBuildVersionArn: S.optional(S.String), - message: S.optional(S.String), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListWorkflowStepExecutionsResponse", - }) as any as S.Schema; +export const ListWorkflowStepExecutionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + requestId: S.optional(S.String), + steps: S.optional(WorkflowStepExecutionsList), + workflowBuildVersionArn: S.optional(S.String), + workflowExecutionId: S.optional(S.String), + imageBuildVersionArn: S.optional(S.String), + message: S.optional(S.String), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListWorkflowStepExecutionsResponse", +}) as any as S.Schema; export interface PutComponentPolicyRequest { componentArn: string; policy: string; @@ -4934,34 +4872,32 @@ export interface PutContainerRecipePolicyRequest { containerRecipeArn: string; policy: string; } -export const PutContainerRecipePolicyRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ containerRecipeArn: S.String, policy: S.String }).pipe( - T.all( - T.Http({ method: "PUT", uri: "/PutContainerRecipePolicy" }), - svc, - auth, - proto, - ver, - rules, - ), +export const PutContainerRecipePolicyRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ containerRecipeArn: S.String, policy: S.String }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/PutContainerRecipePolicy" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "PutContainerRecipePolicyRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "PutContainerRecipePolicyRequest", +}) as any as S.Schema; export interface PutContainerRecipePolicyResponse { requestId?: string; containerRecipeArn?: string; } -export const PutContainerRecipePolicyResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - requestId: S.optional(S.String), - containerRecipeArn: S.optional(S.String), - }), - ).annotate({ - identifier: "PutContainerRecipePolicyResponse", - }) as any as S.Schema; +export const PutContainerRecipePolicyResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + requestId: S.optional(S.String), + containerRecipeArn: S.optional(S.String), + }), +).annotate({ + identifier: "PutContainerRecipePolicyResponse", +}) as any as S.Schema; export interface PutImagePolicyRequest { imageArn: string; policy: string; @@ -4985,10 +4921,7 @@ export interface PutImagePolicyResponse { imageArn?: string; } export const PutImagePolicyResponse = /*@__PURE__*/ S.suspend(() => - S.Struct({ - requestId: S.optional(S.String), - imageArn: S.optional(S.String), - }), + S.Struct({ requestId: S.optional(S.String), imageArn: S.optional(S.String) }), ).annotate({ identifier: "PutImagePolicyResponse", }) as any as S.Schema; @@ -4996,34 +4929,32 @@ export interface PutImageRecipePolicyRequest { imageRecipeArn: string; policy: string; } -export const PutImageRecipePolicyRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ imageRecipeArn: S.String, policy: S.String }).pipe( - T.all( - T.Http({ method: "PUT", uri: "/PutImageRecipePolicy" }), - svc, - auth, - proto, - ver, - rules, - ), +export const PutImageRecipePolicyRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ imageRecipeArn: S.String, policy: S.String }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/PutImageRecipePolicy" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "PutImageRecipePolicyRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "PutImageRecipePolicyRequest", +}) as any as S.Schema; export interface PutImageRecipePolicyResponse { requestId?: string; imageRecipeArn?: string; } -export const PutImageRecipePolicyResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - requestId: S.optional(S.String), - imageRecipeArn: S.optional(S.String), - }), - ).annotate({ - identifier: "PutImageRecipePolicyResponse", - }) as any as S.Schema; +export const PutImageRecipePolicyResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + requestId: S.optional(S.String), + imageRecipeArn: S.optional(S.String), + }), +).annotate({ + identifier: "PutImageRecipePolicyResponse", +}) as any as S.Schema; export interface RetryImageRequest { imageBuildVersionArn: string; clientToken: string; @@ -5066,81 +4997,77 @@ export interface SendWorkflowStepActionRequest { reason?: string; clientToken: string; } -export const SendWorkflowStepActionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - stepExecutionId: S.String, - imageBuildVersionArn: S.String, - action: WorkflowStepActionType, - reason: S.optional(S.String), - clientToken: S.String.pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ method: "PUT", uri: "/SendWorkflowStepAction" }), - svc, - auth, - proto, - ver, - rules, - ), +export const SendWorkflowStepActionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + stepExecutionId: S.String, + imageBuildVersionArn: S.String, + action: WorkflowStepActionType, + reason: S.optional(S.String), + clientToken: S.String.pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/SendWorkflowStepAction" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "SendWorkflowStepActionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "SendWorkflowStepActionRequest", +}) as any as S.Schema; export interface SendWorkflowStepActionResponse { stepExecutionId?: string; imageBuildVersionArn?: string; clientToken?: string; } -export const SendWorkflowStepActionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - stepExecutionId: S.optional(S.String), - imageBuildVersionArn: S.optional(S.String), - clientToken: S.optional(S.String), - }), - ).annotate({ - identifier: "SendWorkflowStepActionResponse", - }) as any as S.Schema; +export const SendWorkflowStepActionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + stepExecutionId: S.optional(S.String), + imageBuildVersionArn: S.optional(S.String), + clientToken: S.optional(S.String), + }), +).annotate({ + identifier: "SendWorkflowStepActionResponse", +}) as any as S.Schema; export interface StartImagePipelineExecutionRequest { imagePipelineArn: string; clientToken: string; tags?: { [key: string]: string | undefined }; } -export const StartImagePipelineExecutionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - imagePipelineArn: S.String, - clientToken: S.String.pipe(T.IdempotencyToken()), - tags: S.optional(TagMap), - }).pipe( - T.all( - T.Http({ method: "PUT", uri: "/StartImagePipelineExecution" }), - svc, - auth, - proto, - ver, - rules, - ), +export const StartImagePipelineExecutionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + imagePipelineArn: S.String, + clientToken: S.String.pipe(T.IdempotencyToken()), + tags: S.optional(TagMap), + }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/StartImagePipelineExecution" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "StartImagePipelineExecutionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "StartImagePipelineExecutionRequest", +}) as any as S.Schema; export interface StartImagePipelineExecutionResponse { requestId?: string; clientToken?: string; imageBuildVersionArn?: string; } -export const StartImagePipelineExecutionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - requestId: S.optional(S.String), - clientToken: S.optional(S.String), - imageBuildVersionArn: S.optional(S.String), - }), - ).annotate({ - identifier: "StartImagePipelineExecutionResponse", - }) as any as S.Schema; +export const StartImagePipelineExecutionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + requestId: S.optional(S.String), + clientToken: S.optional(S.String), + imageBuildVersionArn: S.optional(S.String), + }), +).annotate({ + identifier: "StartImagePipelineExecutionResponse", +}) as any as S.Schema; export type ResourceStatus = | "AVAILABLE" | "DELETED" @@ -5159,25 +5086,23 @@ export interface ResourceStateUpdateIncludeResources { snapshots?: boolean; containers?: boolean; } -export const ResourceStateUpdateIncludeResources = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - amis: S.optional(S.Boolean), - snapshots: S.optional(S.Boolean), - containers: S.optional(S.Boolean), - }), - ).annotate({ - identifier: "ResourceStateUpdateIncludeResources", - }) as any as S.Schema; +export const ResourceStateUpdateIncludeResources = /*@__PURE__*/ S.suspend(() => + S.Struct({ + amis: S.optional(S.Boolean), + snapshots: S.optional(S.Boolean), + containers: S.optional(S.Boolean), + }), +).annotate({ + identifier: "ResourceStateUpdateIncludeResources", +}) as any as S.Schema; export interface ResourceStateUpdateExclusionRules { amis?: LifecyclePolicyDetailExclusionRulesAmis; } -export const ResourceStateUpdateExclusionRules = - /*@__PURE__*/ S.suspend(() => - S.Struct({ amis: S.optional(LifecyclePolicyDetailExclusionRulesAmis) }), - ).annotate({ - identifier: "ResourceStateUpdateExclusionRules", - }) as any as S.Schema; +export const ResourceStateUpdateExclusionRules = /*@__PURE__*/ S.suspend(() => + S.Struct({ amis: S.optional(LifecyclePolicyDetailExclusionRulesAmis) }), +).annotate({ + identifier: "ResourceStateUpdateExclusionRules", +}) as any as S.Schema; export interface StartResourceStateUpdateRequest { resourceArn: string; state: ResourceState; @@ -5187,42 +5112,40 @@ export interface StartResourceStateUpdateRequest { updateAt?: Date; clientToken: string; } -export const StartResourceStateUpdateRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - resourceArn: S.String, - state: ResourceState, - executionRole: S.optional(S.String), - includeResources: S.optional(ResourceStateUpdateIncludeResources), - exclusionRules: S.optional(ResourceStateUpdateExclusionRules), - updateAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - clientToken: S.String.pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ method: "PUT", uri: "/StartResourceStateUpdate" }), - svc, - auth, - proto, - ver, - rules, - ), +export const StartResourceStateUpdateRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + resourceArn: S.String, + state: ResourceState, + executionRole: S.optional(S.String), + includeResources: S.optional(ResourceStateUpdateIncludeResources), + exclusionRules: S.optional(ResourceStateUpdateExclusionRules), + updateAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + clientToken: S.String.pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/StartResourceStateUpdate" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "StartResourceStateUpdateRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "StartResourceStateUpdateRequest", +}) as any as S.Schema; export interface StartResourceStateUpdateResponse { lifecycleExecutionId?: string; resourceArn?: string; } -export const StartResourceStateUpdateResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - lifecycleExecutionId: S.optional(S.String), - resourceArn: S.optional(S.String), - }), - ).annotate({ - identifier: "StartResourceStateUpdateResponse", - }) as any as S.Schema; +export const StartResourceStateUpdateResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + lifecycleExecutionId: S.optional(S.String), + resourceArn: S.optional(S.String), + }), +).annotate({ + identifier: "StartResourceStateUpdateResponse", +}) as any as S.Schema; export interface TagResourceRequest { resourceArn: string; tags: { [key: string]: string | undefined }; @@ -5285,8 +5208,8 @@ export interface UpdateDistributionConfigurationRequest { distributions: Distribution[]; clientToken: string; } -export const UpdateDistributionConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const UpdateDistributionConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ distributionConfigurationArn: S.String, description: S.optional(S.String), @@ -5302,24 +5225,24 @@ export const UpdateDistributionConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "UpdateDistributionConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateDistributionConfigurationRequest", +}) as any as S.Schema; export interface UpdateDistributionConfigurationResponse { requestId?: string; clientToken?: string; distributionConfigurationArn?: string; } -export const UpdateDistributionConfigurationResponse = - /*@__PURE__*/ S.suspend(() => +export const UpdateDistributionConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ requestId: S.optional(S.String), clientToken: S.optional(S.String), distributionConfigurationArn: S.optional(S.String), }), - ).annotate({ - identifier: "UpdateDistributionConfigurationResponse", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateDistributionConfigurationResponse", +}) as any as S.Schema; export interface UpdateImagePipelineRequest { imagePipelineArn: string; description?: string; @@ -5374,16 +5297,15 @@ export interface UpdateImagePipelineResponse { clientToken?: string; imagePipelineArn?: string; } -export const UpdateImagePipelineResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - requestId: S.optional(S.String), - clientToken: S.optional(S.String), - imagePipelineArn: S.optional(S.String), - }), - ).annotate({ - identifier: "UpdateImagePipelineResponse", - }) as any as S.Schema; +export const UpdateImagePipelineResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + requestId: S.optional(S.String), + clientToken: S.optional(S.String), + imagePipelineArn: S.optional(S.String), + }), +).annotate({ + identifier: "UpdateImagePipelineResponse", +}) as any as S.Schema; export interface UpdateInfrastructureConfigurationRequest { infrastructureConfigurationArn: string; description?: string; @@ -5400,8 +5322,8 @@ export interface UpdateInfrastructureConfigurationRequest { placement?: Placement; clientToken: string; } -export const UpdateInfrastructureConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const UpdateInfrastructureConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ infrastructureConfigurationArn: S.String, description: S.optional(S.String), @@ -5427,9 +5349,9 @@ export const UpdateInfrastructureConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "UpdateInfrastructureConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateInfrastructureConfigurationRequest", +}) as any as S.Schema; export interface UpdateInfrastructureConfigurationResponse { requestId?: string; clientToken?: string; @@ -5455,120 +5377,136 @@ export interface UpdateLifecyclePolicyRequest { resourceSelection: LifecyclePolicyResourceSelection; clientToken: string; } -export const UpdateLifecyclePolicyRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - lifecyclePolicyArn: S.String, - description: S.optional(S.String), - status: S.optional(LifecyclePolicyStatus), - executionRole: S.String, - resourceType: LifecyclePolicyResourceType, - policyDetails: LifecyclePolicyDetails, - resourceSelection: LifecyclePolicyResourceSelection, - clientToken: S.String.pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ method: "PUT", uri: "/UpdateLifecyclePolicy" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateLifecyclePolicyRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + lifecyclePolicyArn: S.String, + description: S.optional(S.String), + status: S.optional(LifecyclePolicyStatus), + executionRole: S.String, + resourceType: LifecyclePolicyResourceType, + policyDetails: LifecyclePolicyDetails, + resourceSelection: LifecyclePolicyResourceSelection, + clientToken: S.String.pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/UpdateLifecyclePolicy" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateLifecyclePolicyRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateLifecyclePolicyRequest", +}) as any as S.Schema; export interface UpdateLifecyclePolicyResponse { lifecyclePolicyArn?: string; } -export const UpdateLifecyclePolicyResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ lifecyclePolicyArn: S.optional(S.String) }), - ).annotate({ - identifier: "UpdateLifecyclePolicyResponse", - }) as any as S.Schema; +export const UpdateLifecyclePolicyResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ lifecyclePolicyArn: S.optional(S.String) }), +).annotate({ + identifier: "UpdateLifecyclePolicyResponse", +}) as any as S.Schema; //# Errors export class CallRateLimitExceededException extends S.TaggedErrorClass()( "CallRateLimitExceededException", { message: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class ClientException extends S.TaggedErrorClass()( "ClientException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ForbiddenException extends S.TaggedErrorClass()( "ForbiddenException", { message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class IdempotentParameterMismatchException extends S.TaggedErrorClass()( "IdempotentParameterMismatchException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidRequestException extends S.TaggedErrorClass()( "InvalidRequestException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ResourceInUseException extends S.TaggedErrorClass()( "ResourceInUseException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ServiceException extends S.TaggedErrorClass()( "ServiceException", { message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class ServiceUnavailableException extends S.TaggedErrorClass()( "ServiceUnavailableException", { message: S.optional(S.String) }, + T.HttpError(503), ).pipe(C.withServerError) {} +export class ResourceNotFoundException extends S.TaggedErrorClass()( + "ResourceNotFoundException", + {}, +) {} export class DryRunOperationException extends S.TaggedErrorClass()( "DryRunOperationException", { message: S.optional(S.String) }, + T.HttpError(412), ) {} export class InvalidParameterCombinationException extends S.TaggedErrorClass()( "InvalidParameterCombinationException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidVersionNumberException extends S.TaggedErrorClass()( "InvalidVersionNumberException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", { message: S.optional(S.String) }, + T.HttpError(402), ).pipe(C.withQuotaError) {} export class ResourceAlreadyExistsException extends S.TaggedErrorClass()( "ResourceAlreadyExistsException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} +export class InvalidParameterValueException extends S.TaggedErrorClass()( + "InvalidParameterValueException", + { message: S.optional(S.String) }, +) {} export class ResourceDependencyException extends S.TaggedErrorClass()( "ResourceDependencyException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} -export class ResourceNotFoundException extends S.TaggedErrorClass()( - "ResourceNotFoundException", - { message: S.optional(S.String) }, -).pipe(C.withBadRequestError) {} export class TooManyRequestsException extends S.TaggedErrorClass()( "TooManyRequestsException", { message: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class InvalidPaginationTokenException extends S.TaggedErrorClass()( "InvalidPaginationTokenException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidParameterException extends S.TaggedErrorClass()( "InvalidParameterException", { message: S.optional(S.String) }, -).pipe(C.withBadRequestError) {} -export class InvalidParameterValueException extends S.TaggedErrorClass()( - "InvalidParameterValueException", - { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} //# Operations @@ -5581,6 +5519,7 @@ export type CancelImageCreationError = | ResourceInUseException | ServiceException | ServiceUnavailableException + | ResourceNotFoundException | CommonErrors; /** * CancelImageCreation cancels the creation of Image. This operation can only be used on @@ -5603,6 +5542,7 @@ export const cancelImageCreation: API.OperationMethod< ResourceInUseException, ServiceException, ServiceUnavailableException, + ResourceNotFoundException, ], operationName: "CancelImageCreation", })); @@ -5894,6 +5834,7 @@ export type CreateInfrastructureConfigurationError = | ServiceException | ServiceQuotaExceededException | ServiceUnavailableException + | InvalidParameterValueException | CommonErrors; /** * Creates a new infrastructure configuration. An infrastructure configuration defines @@ -5918,6 +5859,7 @@ export const createInfrastructureConfiguration: API.OperationMethod< ServiceException, ServiceQuotaExceededException, ServiceUnavailableException, + InvalidParameterValueException, ], operationName: "CreateInfrastructureConfiguration", })); @@ -6007,6 +5949,7 @@ export type DeleteComponentError = | ResourceDependencyException | ServiceException | ServiceUnavailableException + | ResourceNotFoundException | CommonErrors; /** * Deletes a component build version. @@ -6027,6 +5970,7 @@ export const deleteComponent: API.OperationMethod< ResourceDependencyException, ServiceException, ServiceUnavailableException, + ResourceNotFoundException, ], operationName: "DeleteComponent", })); @@ -6069,6 +6013,7 @@ export type DeleteDistributionConfigurationError = | ResourceDependencyException | ServiceException | ServiceUnavailableException + | ResourceNotFoundException | CommonErrors; /** * Deletes a distribution configuration. @@ -6089,6 +6034,7 @@ export const deleteDistributionConfiguration: API.OperationMethod< ResourceDependencyException, ServiceException, ServiceUnavailableException, + ResourceNotFoundException, ], operationName: "DeleteDistributionConfiguration", })); @@ -6100,6 +6046,7 @@ export type DeleteImageError = | ResourceDependencyException | ServiceException | ServiceUnavailableException + | ResourceNotFoundException | CommonErrors; /** * Deletes an Image Builder image resource. This does not delete any EC2 AMIs or ECR container @@ -6136,6 +6083,7 @@ export const deleteImage: API.OperationMethod< ResourceDependencyException, ServiceException, ServiceUnavailableException, + ResourceNotFoundException, ], operationName: "DeleteImage", })); @@ -6147,6 +6095,7 @@ export type DeleteImagePipelineError = | ResourceDependencyException | ServiceException | ServiceUnavailableException + | ResourceNotFoundException | CommonErrors; /** * Deletes an image pipeline. @@ -6167,6 +6116,7 @@ export const deleteImagePipeline: API.OperationMethod< ResourceDependencyException, ServiceException, ServiceUnavailableException, + ResourceNotFoundException, ], operationName: "DeleteImagePipeline", })); @@ -6178,6 +6128,7 @@ export type DeleteImageRecipeError = | ResourceDependencyException | ServiceException | ServiceUnavailableException + | ResourceNotFoundException | CommonErrors; /** * Deletes an image recipe. @@ -6198,6 +6149,7 @@ export const deleteImageRecipe: API.OperationMethod< ResourceDependencyException, ServiceException, ServiceUnavailableException, + ResourceNotFoundException, ], operationName: "DeleteImageRecipe", })); @@ -6209,6 +6161,7 @@ export type DeleteInfrastructureConfigurationError = | ResourceDependencyException | ServiceException | ServiceUnavailableException + | ResourceNotFoundException | CommonErrors; /** * Deletes an infrastructure configuration. @@ -6229,6 +6182,7 @@ export const deleteInfrastructureConfiguration: API.OperationMethod< ResourceDependencyException, ServiceException, ServiceUnavailableException, + ResourceNotFoundException, ], operationName: "DeleteInfrastructureConfiguration", })); @@ -6344,6 +6298,7 @@ export type GetComponentError = | InvalidRequestException | ServiceException | ServiceUnavailableException + | ResourceNotFoundException | CommonErrors; /** * Gets a component object. @@ -6363,6 +6318,7 @@ export const getComponent: API.OperationMethod< InvalidRequestException, ServiceException, ServiceUnavailableException, + ResourceNotFoundException, ], operationName: "GetComponent", })); @@ -6460,6 +6416,7 @@ export type GetDistributionConfigurationError = | InvalidRequestException | ServiceException | ServiceUnavailableException + | ResourceNotFoundException | CommonErrors; /** * Gets a distribution configuration. @@ -6479,6 +6436,7 @@ export const getDistributionConfiguration: API.OperationMethod< InvalidRequestException, ServiceException, ServiceUnavailableException, + ResourceNotFoundException, ], operationName: "GetDistributionConfiguration", })); @@ -6489,6 +6447,7 @@ export type GetImageError = | InvalidRequestException | ServiceException | ServiceUnavailableException + | ResourceNotFoundException | CommonErrors; /** * Gets an image. @@ -6508,6 +6467,7 @@ export const getImage: API.OperationMethod< InvalidRequestException, ServiceException, ServiceUnavailableException, + ResourceNotFoundException, ], operationName: "GetImage", })); @@ -6518,6 +6478,7 @@ export type GetImagePipelineError = | InvalidRequestException | ServiceException | ServiceUnavailableException + | ResourceNotFoundException | CommonErrors; /** * Gets an image pipeline. @@ -6537,6 +6498,7 @@ export const getImagePipeline: API.OperationMethod< InvalidRequestException, ServiceException, ServiceUnavailableException, + ResourceNotFoundException, ], operationName: "GetImagePipeline", })); @@ -6576,6 +6538,7 @@ export type GetImageRecipeError = | InvalidRequestException | ServiceException | ServiceUnavailableException + | ResourceNotFoundException | CommonErrors; /** * Gets an image recipe. @@ -6595,6 +6558,7 @@ export const getImageRecipe: API.OperationMethod< InvalidRequestException, ServiceException, ServiceUnavailableException, + ResourceNotFoundException, ], operationName: "GetImageRecipe", })); @@ -6634,6 +6598,7 @@ export type GetInfrastructureConfigurationError = | InvalidRequestException | ServiceException | ServiceUnavailableException + | ResourceNotFoundException | CommonErrors; /** * Gets an infrastructure configuration. @@ -6653,6 +6618,7 @@ export const getInfrastructureConfiguration: API.OperationMethod< InvalidRequestException, ServiceException, ServiceUnavailableException, + ResourceNotFoundException, ], operationName: "GetInfrastructureConfiguration", })); @@ -6935,6 +6901,7 @@ export type ListComponentBuildVersionsError = | InvalidRequestException | ServiceException | ServiceUnavailableException + | ResourceNotFoundException | CommonErrors; /** * Returns the list of component build versions for the specified component @@ -6971,6 +6938,7 @@ export const listComponentBuildVersions: API.OperationMethod< InvalidRequestException, ServiceException, ServiceUnavailableException, + ResourceNotFoundException, ], operationName: "ListComponentBuildVersions", pagination: { @@ -8418,6 +8386,7 @@ export type UpdateDistributionConfigurationError = | ResourceInUseException | ServiceException | ServiceUnavailableException + | ResourceNotFoundException | CommonErrors; /** * Updates a new distribution configuration. Distribution configurations define and @@ -8441,6 +8410,7 @@ export const updateDistributionConfiguration: API.OperationMethod< ResourceInUseException, ServiceException, ServiceUnavailableException, + ResourceNotFoundException, ], operationName: "UpdateDistributionConfiguration", })); @@ -8453,6 +8423,7 @@ export type UpdateImagePipelineError = | ResourceInUseException | ServiceException | ServiceUnavailableException + | ResourceNotFoundException | CommonErrors; /** * Updates an image pipeline. Image pipelines enable you to automate the creation and @@ -8480,6 +8451,7 @@ export const updateImagePipeline: API.OperationMethod< ResourceInUseException, ServiceException, ServiceUnavailableException, + ResourceNotFoundException, ], operationName: "UpdateImagePipeline", })); @@ -8492,6 +8464,8 @@ export type UpdateInfrastructureConfigurationError = | ResourceInUseException | ServiceException | ServiceUnavailableException + | ResourceNotFoundException + | InvalidParameterValueException | CommonErrors; /** * Updates a new infrastructure configuration. An infrastructure configuration defines @@ -8514,6 +8488,8 @@ export const updateInfrastructureConfiguration: API.OperationMethod< ResourceInUseException, ServiceException, ServiceUnavailableException, + ResourceNotFoundException, + InvalidParameterValueException, ], operationName: "UpdateInfrastructureConfiguration", })); diff --git a/packages/aws/src/services/index.ts b/packages/aws/src/services/index.ts index c507166cd8..610f517275 100644 --- a/packages/aws/src/services/index.ts +++ b/packages/aws/src/services/index.ts @@ -373,6 +373,7 @@ export * as Shield from "./shield.ts"; export * as SignerData from "./signer-data.ts"; export * as Signer from "./signer.ts"; export * as Signin from "./signin.ts"; +export * as Simpledb from "./simpledb.ts"; export * as Simpledbv2 from "./simpledbv2.ts"; export * as Simspaceweaver from "./simspaceweaver.ts"; export * as SnowDeviceManagement from "./snow-device-management.ts"; diff --git a/packages/aws/src/services/inspector2.ts b/packages/aws/src/services/inspector2.ts index b296be24fd..0b450a0ef5 100644 --- a/packages/aws/src/services/inspector2.ts +++ b/packages/aws/src/services/inspector2.ts @@ -338,18 +338,15 @@ export interface AssociateConfigurationRequest { scanConfigurationArn: string; resource: CodeSecurityResource; } -export const AssociateConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - scanConfigurationArn: S.String, - resource: CodeSecurityResource, - }), - ).annotate({ - identifier: "AssociateConfigurationRequest", - }) as any as S.Schema; +export const AssociateConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ scanConfigurationArn: S.String, resource: CodeSecurityResource }), +).annotate({ + identifier: "AssociateConfigurationRequest", +}) as any as S.Schema; export type AssociateConfigurationRequestList = AssociateConfigurationRequest[]; -export const AssociateConfigurationRequestList = - /*@__PURE__*/ S.Array(AssociateConfigurationRequest); +export const AssociateConfigurationRequestList = /*@__PURE__*/ S.Array( + AssociateConfigurationRequest, +); export interface BatchAssociateCodeSecurityScanConfigurationRequest { associateConfigurationRequests: AssociateConfigurationRequest[]; } @@ -406,18 +403,18 @@ export interface SuccessfulAssociationResult { scanConfigurationArn?: string; resource?: CodeSecurityResource; } -export const SuccessfulAssociationResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - scanConfigurationArn: S.optional(S.String), - resource: S.optional(CodeSecurityResource), - }), - ).annotate({ - identifier: "SuccessfulAssociationResult", - }) as any as S.Schema; +export const SuccessfulAssociationResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + scanConfigurationArn: S.optional(S.String), + resource: S.optional(CodeSecurityResource), + }), +).annotate({ + identifier: "SuccessfulAssociationResult", +}) as any as S.Schema; export type SuccessfulAssociationResultList = SuccessfulAssociationResult[]; -export const SuccessfulAssociationResultList = - /*@__PURE__*/ S.Array(SuccessfulAssociationResult); +export const SuccessfulAssociationResultList = /*@__PURE__*/ S.Array( + SuccessfulAssociationResult, +); export interface BatchAssociateCodeSecurityScanConfigurationResponse { failedAssociations?: FailedAssociationResult[]; successfulAssociations?: SuccessfulAssociationResult[]; @@ -435,19 +432,16 @@ export interface DisassociateConfigurationRequest { scanConfigurationArn: string; resource: CodeSecurityResource; } -export const DisassociateConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - scanConfigurationArn: S.String, - resource: CodeSecurityResource, - }), - ).annotate({ - identifier: "DisassociateConfigurationRequest", - }) as any as S.Schema; +export const DisassociateConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ scanConfigurationArn: S.String, resource: CodeSecurityResource }), +).annotate({ + identifier: "DisassociateConfigurationRequest", +}) as any as S.Schema; export type DisassociateConfigurationRequestList = DisassociateConfigurationRequest[]; -export const DisassociateConfigurationRequestList = - /*@__PURE__*/ S.Array(DisassociateConfigurationRequest); +export const DisassociateConfigurationRequestList = /*@__PURE__*/ S.Array( + DisassociateConfigurationRequest, +); export interface BatchDisassociateCodeSecurityScanConfigurationRequest { disassociateConfigurationRequests: DisassociateConfigurationRequest[]; } @@ -489,28 +483,31 @@ export const AccountIdSet = /*@__PURE__*/ S.Array(S.String); export interface BatchGetAccountStatusRequest { accountIds?: string[]; } -export const BatchGetAccountStatusRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ accountIds: S.optional(AccountIdSet) }).pipe( - T.all( - T.Http({ method: "POST", uri: "/status/batch/get" }), - svc, - auth, - proto, - ver, - rules, - ), +export const BatchGetAccountStatusRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ accountIds: S.optional(AccountIdSet) }).pipe( + T.all( + T.Http({ method: "POST", uri: "/status/batch/get" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "BatchGetAccountStatusRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "BatchGetAccountStatusRequest", +}) as any as S.Schema; export interface State { status: string; - errorCode: string; - errorMessage: string; + errorCode?: string; + errorMessage?: string; } export const State = /*@__PURE__*/ S.suspend(() => - S.Struct({ status: S.String, errorCode: S.String, errorMessage: S.String }), + S.Struct({ + status: S.String, + errorCode: S.optional(S.String), + errorMessage: S.optional(S.String), + }), ).annotate({ identifier: "State" }) as any as S.Schema; export interface ResourceState { ec2: State; @@ -539,16 +536,16 @@ export const AccountState = /*@__PURE__*/ S.suspend(() => export type AccountStateList = AccountState[]; export const AccountStateList = /*@__PURE__*/ S.Array(AccountState); export interface ResourceStatus { - ec2: string; - ecr: string; + ec2?: string; + ecr?: string; lambda?: string; lambdaCode?: string; codeRepository?: string; } export const ResourceStatus = /*@__PURE__*/ S.suspend(() => S.Struct({ - ec2: S.String, - ecr: S.String, + ec2: S.optional(S.String), + ecr: S.optional(S.String), lambda: S.optional(S.String), lambdaCode: S.optional(S.String), codeRepository: S.optional(S.String), @@ -558,16 +555,16 @@ export interface FailedAccount { accountId: string; status?: string; resourceStatus?: ResourceStatus; - errorCode: string; - errorMessage: string; + errorCode?: string; + errorMessage?: string; } export const FailedAccount = /*@__PURE__*/ S.suspend(() => S.Struct({ accountId: S.String, status: S.optional(S.String), resourceStatus: S.optional(ResourceStatus), - errorCode: S.String, - errorMessage: S.String, + errorCode: S.optional(S.String), + errorMessage: S.optional(S.String), }), ).annotate({ identifier: "FailedAccount" }) as any as S.Schema; export type FailedAccountList = FailedAccount[]; @@ -576,15 +573,14 @@ export interface BatchGetAccountStatusResponse { accounts: AccountState[]; failedAccounts?: FailedAccount[]; } -export const BatchGetAccountStatusResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - accounts: AccountStateList, - failedAccounts: S.optional(FailedAccountList), - }), - ).annotate({ - identifier: "BatchGetAccountStatusResponse", - }) as any as S.Schema; +export const BatchGetAccountStatusResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + accounts: AccountStateList, + failedAccounts: S.optional(FailedAccountList), + }), +).annotate({ + identifier: "BatchGetAccountStatusResponse", +}) as any as S.Schema; export type FindingArns = string[]; export const FindingArns = /*@__PURE__*/ S.Array(S.String); export interface BatchGetCodeSnippetRequest { @@ -662,35 +658,33 @@ export interface BatchGetCodeSnippetResponse { codeSnippetResults?: CodeSnippetResult[]; errors?: CodeSnippetError[]; } -export const BatchGetCodeSnippetResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - codeSnippetResults: S.optional(CodeSnippetResultList), - errors: S.optional(CodeSnippetErrorList), - }), - ).annotate({ - identifier: "BatchGetCodeSnippetResponse", - }) as any as S.Schema; +export const BatchGetCodeSnippetResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + codeSnippetResults: S.optional(CodeSnippetResultList), + errors: S.optional(CodeSnippetErrorList), + }), +).annotate({ + identifier: "BatchGetCodeSnippetResponse", +}) as any as S.Schema; export type FindingArnList = string[]; export const FindingArnList = /*@__PURE__*/ S.Array(S.String); export interface BatchGetFindingDetailsRequest { findingArns: string[]; } -export const BatchGetFindingDetailsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ findingArns: FindingArnList }).pipe( - T.all( - T.Http({ method: "POST", uri: "/findings/details/batch/get" }), - svc, - auth, - proto, - ver, - rules, - ), +export const BatchGetFindingDetailsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ findingArns: FindingArnList }).pipe( + T.all( + T.Http({ method: "POST", uri: "/findings/details/batch/get" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "BatchGetFindingDetailsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "BatchGetFindingDetailsRequest", +}) as any as S.Schema; export interface CisaData { dateAdded?: Date; dateDue?: Date; @@ -786,35 +780,33 @@ export interface BatchGetFindingDetailsResponse { findingDetails?: FindingDetail[]; errors?: FindingDetailsError[]; } -export const BatchGetFindingDetailsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - findingDetails: S.optional(FindingDetails), - errors: S.optional(FindingDetailsErrorList), - }), - ).annotate({ - identifier: "BatchGetFindingDetailsResponse", - }) as any as S.Schema; +export const BatchGetFindingDetailsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + findingDetails: S.optional(FindingDetails), + errors: S.optional(FindingDetailsErrorList), + }), +).annotate({ + identifier: "BatchGetFindingDetailsResponse", +}) as any as S.Schema; export type MeteringAccountIdList = string[]; export const MeteringAccountIdList = /*@__PURE__*/ S.Array(S.String); export interface BatchGetFreeTrialInfoRequest { accountIds: string[]; } -export const BatchGetFreeTrialInfoRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ accountIds: MeteringAccountIdList }).pipe( - T.all( - T.Http({ method: "POST", uri: "/freetrialinfo/batchget" }), - svc, - auth, - proto, - ver, - rules, - ), +export const BatchGetFreeTrialInfoRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ accountIds: MeteringAccountIdList }).pipe( + T.all( + T.Http({ method: "POST", uri: "/freetrialinfo/batchget" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "BatchGetFreeTrialInfoRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "BatchGetFreeTrialInfoRequest", +}) as any as S.Schema; export interface FreeTrialInfo { type: string; start: Date; @@ -859,15 +851,14 @@ export interface BatchGetFreeTrialInfoResponse { accounts: FreeTrialAccountInfo[]; failedAccounts: FreeTrialInfoError[]; } -export const BatchGetFreeTrialInfoResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - accounts: FreeTrialAccountInfoList, - failedAccounts: FreeTrialInfoErrorList, - }), - ).annotate({ - identifier: "BatchGetFreeTrialInfoResponse", - }) as any as S.Schema; +export const BatchGetFreeTrialInfoResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + accounts: FreeTrialAccountInfoList, + failedAccounts: FreeTrialInfoErrorList, + }), +).annotate({ + identifier: "BatchGetFreeTrialInfoResponse", +}) as any as S.Schema; export interface BatchGetMemberEc2DeepInspectionStatusRequest { accountIds?: string[]; } @@ -946,16 +937,16 @@ export interface MemberAccountEc2DeepInspectionStatus { accountId: string; activateDeepInspection: boolean; } -export const MemberAccountEc2DeepInspectionStatus = - /*@__PURE__*/ S.suspend(() => - S.Struct({ accountId: S.String, activateDeepInspection: S.Boolean }), - ).annotate({ - identifier: "MemberAccountEc2DeepInspectionStatus", - }) as any as S.Schema; +export const MemberAccountEc2DeepInspectionStatus = /*@__PURE__*/ S.suspend( + () => S.Struct({ accountId: S.String, activateDeepInspection: S.Boolean }), +).annotate({ + identifier: "MemberAccountEc2DeepInspectionStatus", +}) as any as S.Schema; export type MemberAccountEc2DeepInspectionStatusList = MemberAccountEc2DeepInspectionStatus[]; -export const MemberAccountEc2DeepInspectionStatusList = - /*@__PURE__*/ S.Array(MemberAccountEc2DeepInspectionStatus); +export const MemberAccountEc2DeepInspectionStatusList = /*@__PURE__*/ S.Array( + MemberAccountEc2DeepInspectionStatus, +); export interface BatchUpdateMemberEc2DeepInspectionStatusRequest { accountIds: MemberAccountEc2DeepInspectionStatus[]; } @@ -995,28 +986,28 @@ export const BatchUpdateMemberEc2DeepInspectionStatusResponse = export interface CancelFindingsReportRequest { reportId: string; } -export const CancelFindingsReportRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ reportId: S.String }).pipe( - T.all( - T.Http({ method: "POST", uri: "/reporting/cancel" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CancelFindingsReportRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ reportId: S.String }).pipe( + T.all( + T.Http({ method: "POST", uri: "/reporting/cancel" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CancelFindingsReportRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CancelFindingsReportRequest", +}) as any as S.Schema; export interface CancelFindingsReportResponse { reportId: string; } -export const CancelFindingsReportResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({ reportId: S.String })).annotate({ - identifier: "CancelFindingsReportResponse", - }) as any as S.Schema; +export const CancelFindingsReportResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ reportId: S.String }), +).annotate({ + identifier: "CancelFindingsReportResponse", +}) as any as S.Schema; export interface CancelSbomExportRequest { reportId: string; } @@ -1140,48 +1131,46 @@ export interface CreateCisScanConfigurationRequest { targets: CreateCisTargets; tags?: { [key: string]: string | undefined }; } -export const CreateCisScanConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - scanName: S.String, - securityLevel: CisSecurityLevel, - schedule: Schedule, - targets: CreateCisTargets, - tags: S.optional(CisTagMap), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/cis/scan-configuration/create" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateCisScanConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + scanName: S.String, + securityLevel: CisSecurityLevel, + schedule: Schedule, + targets: CreateCisTargets, + tags: S.optional(CisTagMap), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/cis/scan-configuration/create" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateCisScanConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateCisScanConfigurationRequest", +}) as any as S.Schema; export interface CreateCisScanConfigurationResponse { scanConfigurationArn?: string; } -export const CreateCisScanConfigurationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ scanConfigurationArn: S.optional(S.String) }), - ).annotate({ - identifier: "CreateCisScanConfigurationResponse", - }) as any as S.Schema; +export const CreateCisScanConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ scanConfigurationArn: S.optional(S.String) }), +).annotate({ + identifier: "CreateCisScanConfigurationResponse", +}) as any as S.Schema; export type IntegrationType = "GITLAB_SELF_MANAGED" | "GITHUB" | (string & {}); export const IntegrationType = /*@__PURE__*/ S.String; export interface CreateGitLabSelfManagedIntegrationDetail { instanceUrl: string | redacted.Redacted; accessToken: string | redacted.Redacted; } -export const CreateGitLabSelfManagedIntegrationDetail = - /*@__PURE__*/ S.suspend(() => +export const CreateGitLabSelfManagedIntegrationDetail = /*@__PURE__*/ S.suspend( + () => S.Struct({ instanceUrl: SensitiveString, accessToken: SensitiveString }), - ).annotate({ - identifier: "CreateGitLabSelfManagedIntegrationDetail", - }) as any as S.Schema; +).annotate({ + identifier: "CreateGitLabSelfManagedIntegrationDetail", +}) as any as S.Schema; export type CreateIntegrationDetail = { gitlabSelfManaged: CreateGitLabSelfManagedIntegrationDetail; }; @@ -1199,8 +1188,8 @@ export interface CreateCodeSecurityIntegrationRequest { details?: CreateIntegrationDetail; tags?: { [key: string]: string | undefined }; } -export const CreateCodeSecurityIntegrationRequest = - /*@__PURE__*/ S.suspend(() => +export const CreateCodeSecurityIntegrationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ name: S.String, type: IntegrationType, @@ -1216,9 +1205,9 @@ export const CreateCodeSecurityIntegrationRequest = rules, ), ), - ).annotate({ - identifier: "CreateCodeSecurityIntegrationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "CreateCodeSecurityIntegrationRequest", +}) as any as S.Schema; export type IntegrationStatus = | "PENDING" | "IN_PROGRESS" @@ -1232,16 +1221,16 @@ export interface CreateCodeSecurityIntegrationResponse { status: IntegrationStatus; authorizationUrl?: string | redacted.Redacted; } -export const CreateCodeSecurityIntegrationResponse = - /*@__PURE__*/ S.suspend(() => +export const CreateCodeSecurityIntegrationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ integrationArn: S.String, status: IntegrationStatus, authorizationUrl: S.optional(SensitiveString), }), - ).annotate({ - identifier: "CreateCodeSecurityIntegrationResponse", - }) as any as S.Schema; +).annotate({ + identifier: "CreateCodeSecurityIntegrationResponse", +}) as any as S.Schema; export type ConfigurationLevel = "ORGANIZATION" | "ACCOUNT" | (string & {}); export const ConfigurationLevel = /*@__PURE__*/ S.String; export type PeriodicScanFrequency = @@ -1269,17 +1258,17 @@ export type ContinuousIntegrationScanEvent = export const ContinuousIntegrationScanEvent = /*@__PURE__*/ S.String; export type ContinuousIntegrationScanSupportedEvents = ContinuousIntegrationScanEvent[]; -export const ContinuousIntegrationScanSupportedEvents = - /*@__PURE__*/ S.Array(ContinuousIntegrationScanEvent); +export const ContinuousIntegrationScanSupportedEvents = /*@__PURE__*/ S.Array( + ContinuousIntegrationScanEvent, +); export interface ContinuousIntegrationScanConfiguration { supportedEvents: ContinuousIntegrationScanEvent[]; } -export const ContinuousIntegrationScanConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ supportedEvents: ContinuousIntegrationScanSupportedEvents }), - ).annotate({ - identifier: "ContinuousIntegrationScanConfiguration", - }) as any as S.Schema; +export const ContinuousIntegrationScanConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ supportedEvents: ContinuousIntegrationScanSupportedEvents }), +).annotate({ + identifier: "ContinuousIntegrationScanConfiguration", +}) as any as S.Schema; export type RuleSetCategory = "SAST" | "IAC" | "SCA" | (string & {}); export const RuleSetCategory = /*@__PURE__*/ S.String; export type RuleSetCategories = RuleSetCategory[]; @@ -1289,18 +1278,17 @@ export interface CodeSecurityScanConfiguration { continuousIntegrationScanConfiguration?: ContinuousIntegrationScanConfiguration; ruleSetCategories: RuleSetCategory[]; } -export const CodeSecurityScanConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - periodicScanConfiguration: S.optional(PeriodicScanConfiguration), - continuousIntegrationScanConfiguration: S.optional( - ContinuousIntegrationScanConfiguration, - ), - ruleSetCategories: RuleSetCategories, - }), - ).annotate({ - identifier: "CodeSecurityScanConfiguration", - }) as any as S.Schema; +export const CodeSecurityScanConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + periodicScanConfiguration: S.optional(PeriodicScanConfiguration), + continuousIntegrationScanConfiguration: S.optional( + ContinuousIntegrationScanConfiguration, + ), + ruleSetCategories: RuleSetCategories, + }), +).annotate({ + identifier: "CodeSecurityScanConfiguration", +}) as any as S.Schema; export type ProjectSelectionScope = "ALL" | (string & {}); export const ProjectSelectionScope = /*@__PURE__*/ S.String; export interface ScopeSettings { @@ -1586,34 +1574,32 @@ export interface CreateFindingsReportRequest { reportFormat: string; s3Destination: Destination; } -export const CreateFindingsReportRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - filterCriteria: S.optional(FilterCriteria), - reportFormat: S.String, - s3Destination: Destination, - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/reporting/create" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateFindingsReportRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + filterCriteria: S.optional(FilterCriteria), + reportFormat: S.String, + s3Destination: Destination, + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/reporting/create" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateFindingsReportRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateFindingsReportRequest", +}) as any as S.Schema; export interface CreateFindingsReportResponse { reportId?: string; } -export const CreateFindingsReportResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ reportId: S.optional(S.String) }), - ).annotate({ - identifier: "CreateFindingsReportResponse", - }) as any as S.Schema; +export const CreateFindingsReportResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ reportId: S.optional(S.String) }), +).annotate({ + identifier: "CreateFindingsReportResponse", +}) as any as S.Schema; export interface ResourceStringFilter { comparison: string; value: string; @@ -1700,35 +1686,33 @@ export const CreateSbomExportResponse = /*@__PURE__*/ S.suspend(() => export interface DeleteCisScanConfigurationRequest { scanConfigurationArn: string; } -export const DeleteCisScanConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ scanConfigurationArn: S.String }).pipe( - T.all( - T.Http({ method: "POST", uri: "/cis/scan-configuration/delete" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteCisScanConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ scanConfigurationArn: S.String }).pipe( + T.all( + T.Http({ method: "POST", uri: "/cis/scan-configuration/delete" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteCisScanConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteCisScanConfigurationRequest", +}) as any as S.Schema; export interface DeleteCisScanConfigurationResponse { scanConfigurationArn: string; } -export const DeleteCisScanConfigurationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ scanConfigurationArn: S.String }), - ).annotate({ - identifier: "DeleteCisScanConfigurationResponse", - }) as any as S.Schema; +export const DeleteCisScanConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ scanConfigurationArn: S.String }), +).annotate({ + identifier: "DeleteCisScanConfigurationResponse", +}) as any as S.Schema; export interface DeleteCodeSecurityIntegrationRequest { integrationArn: string; } -export const DeleteCodeSecurityIntegrationRequest = - /*@__PURE__*/ S.suspend(() => +export const DeleteCodeSecurityIntegrationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ integrationArn: S.String }).pipe( T.all( T.Http({ method: "POST", uri: "/codesecurity/integration/delete" }), @@ -1739,18 +1723,17 @@ export const DeleteCodeSecurityIntegrationRequest = rules, ), ), - ).annotate({ - identifier: "DeleteCodeSecurityIntegrationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteCodeSecurityIntegrationRequest", +}) as any as S.Schema; export interface DeleteCodeSecurityIntegrationResponse { integrationArn?: string; } -export const DeleteCodeSecurityIntegrationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ integrationArn: S.optional(S.String) }), - ).annotate({ - identifier: "DeleteCodeSecurityIntegrationResponse", - }) as any as S.Schema; +export const DeleteCodeSecurityIntegrationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ integrationArn: S.optional(S.String) }), +).annotate({ + identifier: "DeleteCodeSecurityIntegrationResponse", +}) as any as S.Schema; export interface DeleteCodeSecurityScanConfigurationRequest { scanConfigurationArn: string; } @@ -1807,8 +1790,8 @@ export const DeleteFilterResponse = /*@__PURE__*/ S.suspend(() => identifier: "DeleteFilterResponse", }) as any as S.Schema; export interface DescribeOrganizationConfigurationRequest {} -export const DescribeOrganizationConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const DescribeOrganizationConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({}).pipe( T.all( T.Http({ method: "POST", uri: "/organizationconfiguration/describe" }), @@ -1819,9 +1802,9 @@ export const DescribeOrganizationConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "DescribeOrganizationConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeOrganizationConfigurationRequest", +}) as any as S.Schema; export interface AutoEnable { ec2: boolean; ecr: boolean; @@ -1901,30 +1884,28 @@ export const DisableResponse = /*@__PURE__*/ S.suspend(() => export interface DisableDelegatedAdminAccountRequest { delegatedAdminAccountId: string; } -export const DisableDelegatedAdminAccountRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ delegatedAdminAccountId: S.String }).pipe( - T.all( - T.Http({ method: "POST", uri: "/delegatedadminaccounts/disable" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DisableDelegatedAdminAccountRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ delegatedAdminAccountId: S.String }).pipe( + T.all( + T.Http({ method: "POST", uri: "/delegatedadminaccounts/disable" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DisableDelegatedAdminAccountRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DisableDelegatedAdminAccountRequest", +}) as any as S.Schema; export interface DisableDelegatedAdminAccountResponse { delegatedAdminAccountId: string; } -export const DisableDelegatedAdminAccountResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ delegatedAdminAccountId: S.String }), - ).annotate({ - identifier: "DisableDelegatedAdminAccountResponse", - }) as any as S.Schema; +export const DisableDelegatedAdminAccountResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ delegatedAdminAccountId: S.String }), +).annotate({ + identifier: "DisableDelegatedAdminAccountResponse", +}) as any as S.Schema; export interface DisassociateMemberRequest { accountId: string; } @@ -1987,33 +1968,31 @@ export interface EnableDelegatedAdminAccountRequest { delegatedAdminAccountId: string; clientToken?: string; } -export const EnableDelegatedAdminAccountRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - delegatedAdminAccountId: S.String, - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/delegatedadminaccounts/enable" }), - svc, - auth, - proto, - ver, - rules, - ), +export const EnableDelegatedAdminAccountRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + delegatedAdminAccountId: S.String, + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/delegatedadminaccounts/enable" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "EnableDelegatedAdminAccountRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "EnableDelegatedAdminAccountRequest", +}) as any as S.Schema; export interface EnableDelegatedAdminAccountResponse { delegatedAdminAccountId: string; } -export const EnableDelegatedAdminAccountResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ delegatedAdminAccountId: S.String }), - ).annotate({ - identifier: "EnableDelegatedAdminAccountResponse", - }) as any as S.Schema; +export const EnableDelegatedAdminAccountResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ delegatedAdminAccountId: S.String }), +).annotate({ + identifier: "EnableDelegatedAdminAccountResponse", +}) as any as S.Schema; export type ReportTargetAccounts = string[]; export const ReportTargetAccounts = /*@__PURE__*/ S.Array(S.String); export type CisReportFormat = "PDF" | "CSV" | (string & {}); @@ -2052,10 +2031,7 @@ export interface GetCisScanReportResponse { status?: CisReportStatus; } export const GetCisScanReportResponse = /*@__PURE__*/ S.suspend(() => - S.Struct({ - url: S.optional(S.String), - status: S.optional(CisReportStatus), - }), + S.Struct({ url: S.optional(S.String), status: S.optional(CisReportStatus) }), ).annotate({ identifier: "GetCisScanReportResponse", }) as any as S.Schema; @@ -2068,10 +2044,7 @@ export interface CisFindingStatusFilter { value: CisFindingStatus; } export const CisFindingStatusFilter = /*@__PURE__*/ S.suspend(() => - S.Struct({ - comparison: CisFindingStatusComparison, - value: CisFindingStatus, - }), + S.Struct({ comparison: CisFindingStatusComparison, value: CisFindingStatus }), ).annotate({ identifier: "CisFindingStatusFilter", }) as any as S.Schema; @@ -2105,10 +2078,7 @@ export interface CisSecurityLevelFilter { value: CisSecurityLevel; } export const CisSecurityLevelFilter = /*@__PURE__*/ S.suspend(() => - S.Struct({ - comparison: CisSecurityLevelComparison, - value: CisSecurityLevel, - }), + S.Struct({ comparison: CisSecurityLevelComparison, value: CisSecurityLevel }), ).annotate({ identifier: "CisSecurityLevelFilter", }) as any as S.Schema; @@ -2125,18 +2095,17 @@ export interface CisScanResultDetailsFilterCriteria { securityLevelFilters?: CisSecurityLevelFilter[]; findingArnFilters?: CisStringFilter[]; } -export const CisScanResultDetailsFilterCriteria = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - findingStatusFilters: S.optional(CisFindingStatusFilterList), - checkIdFilters: S.optional(CheckIdFilterList), - titleFilters: S.optional(TitleFilterList), - securityLevelFilters: S.optional(CisSecurityLevelFilterList), - findingArnFilters: S.optional(CisFindingArnFilterList), - }), - ).annotate({ - identifier: "CisScanResultDetailsFilterCriteria", - }) as any as S.Schema; +export const CisScanResultDetailsFilterCriteria = /*@__PURE__*/ S.suspend(() => + S.Struct({ + findingStatusFilters: S.optional(CisFindingStatusFilterList), + checkIdFilters: S.optional(CheckIdFilterList), + titleFilters: S.optional(TitleFilterList), + securityLevelFilters: S.optional(CisSecurityLevelFilterList), + findingArnFilters: S.optional(CisFindingArnFilterList), + }), +).annotate({ + identifier: "CisScanResultDetailsFilterCriteria", +}) as any as S.Schema; export type CisScanResultDetailsSortBy = "CHECK_ID" | "STATUS" | (string & {}); export const CisScanResultDetailsSortBy = /*@__PURE__*/ S.String; export type CisSortOrder = "ASC" | "DESC" | (string & {}); @@ -2151,30 +2120,29 @@ export interface GetCisScanResultDetailsRequest { nextToken?: string; maxResults?: number; } -export const GetCisScanResultDetailsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - scanArn: S.String, - targetResourceId: S.String, - accountId: S.String, - filterCriteria: S.optional(CisScanResultDetailsFilterCriteria), - sortBy: S.optional(CisScanResultDetailsSortBy), - sortOrder: S.optional(CisSortOrder), - nextToken: S.optional(S.String), - maxResults: S.optional(S.Number), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/cis/scan-result/details/get" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetCisScanResultDetailsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + scanArn: S.String, + targetResourceId: S.String, + accountId: S.String, + filterCriteria: S.optional(CisScanResultDetailsFilterCriteria), + sortBy: S.optional(CisScanResultDetailsSortBy), + sortOrder: S.optional(CisSortOrder), + nextToken: S.optional(S.String), + maxResults: S.optional(S.Number), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/cis/scan-result/details/get" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetCisScanResultDetailsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetCisScanResultDetailsRequest", +}) as any as S.Schema; export interface CisScanResultDetails { scanArn: string; accountId?: string; @@ -2214,22 +2182,22 @@ export interface GetCisScanResultDetailsResponse { scanResultDetails?: CisScanResultDetails[]; nextToken?: string; } -export const GetCisScanResultDetailsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - scanResultDetails: S.optional(CisScanResultDetailsList), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "GetCisScanResultDetailsResponse", - }) as any as S.Schema; +export const GetCisScanResultDetailsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + scanResultDetails: S.optional(CisScanResultDetailsList), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "GetCisScanResultDetailsResponse", +}) as any as S.Schema; export interface ClusterForImageFilterCriteria { resourceId: string; } -export const ClusterForImageFilterCriteria = - /*@__PURE__*/ S.suspend(() => S.Struct({ resourceId: S.String })).annotate({ - identifier: "ClusterForImageFilterCriteria", - }) as any as S.Schema; +export const ClusterForImageFilterCriteria = /*@__PURE__*/ S.suspend(() => + S.Struct({ resourceId: S.String }), +).annotate({ + identifier: "ClusterForImageFilterCriteria", +}) as any as S.Schema; export interface GetClustersForImageRequest { filter: ClusterForImageFilterCriteria; maxResults?: number; @@ -2332,34 +2300,32 @@ export interface GetClustersForImageResponse { cluster: ClusterInformation[]; nextToken?: string; } -export const GetClustersForImageResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - cluster: ClusterInformationList, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "GetClustersForImageResponse", - }) as any as S.Schema; +export const GetClustersForImageResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + cluster: ClusterInformationList, + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "GetClustersForImageResponse", +}) as any as S.Schema; export interface GetCodeSecurityIntegrationRequest { integrationArn: string; tags?: { [key: string]: string | undefined }; } -export const GetCodeSecurityIntegrationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ integrationArn: S.String, tags: S.optional(TagMap) }).pipe( - T.all( - T.Http({ method: "POST", uri: "/codesecurity/integration/get" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetCodeSecurityIntegrationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ integrationArn: S.String, tags: S.optional(TagMap) }).pipe( + T.all( + T.Http({ method: "POST", uri: "/codesecurity/integration/get" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetCodeSecurityIntegrationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetCodeSecurityIntegrationRequest", +}) as any as S.Schema; export interface GetCodeSecurityIntegrationResponse { integrationArn: string; name: string; @@ -2371,22 +2337,21 @@ export interface GetCodeSecurityIntegrationResponse { tags?: { [key: string]: string | undefined }; authorizationUrl?: string | redacted.Redacted; } -export const GetCodeSecurityIntegrationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - integrationArn: S.String, - name: S.String, - type: IntegrationType, - status: IntegrationStatus, - statusReason: S.String, - createdOn: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - lastUpdateOn: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - tags: S.optional(TagMap), - authorizationUrl: S.optional(SensitiveString), - }), - ).annotate({ - identifier: "GetCodeSecurityIntegrationResponse", - }) as any as S.Schema; +export const GetCodeSecurityIntegrationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + integrationArn: S.String, + name: S.String, + type: IntegrationType, + status: IntegrationStatus, + statusReason: S.String, + createdOn: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + lastUpdateOn: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + tags: S.optional(TagMap), + authorizationUrl: S.optional(SensitiveString), + }), +).annotate({ + identifier: "GetCodeSecurityIntegrationResponse", +}) as any as S.Schema; export interface GetCodeSecurityScanRequest { resource: CodeSecurityResource; scanId: string; @@ -2422,26 +2387,25 @@ export interface GetCodeSecurityScanResponse { updatedAt?: Date; lastCommitId?: string; } -export const GetCodeSecurityScanResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - scanId: S.optional(S.String), - resource: S.optional(CodeSecurityResource), - accountId: S.optional(S.String), - status: S.optional(CodeScanStatus), - statusReason: S.optional(S.String), - createdAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - updatedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - lastCommitId: S.optional(S.String), - }), - ).annotate({ - identifier: "GetCodeSecurityScanResponse", - }) as any as S.Schema; +export const GetCodeSecurityScanResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + scanId: S.optional(S.String), + resource: S.optional(CodeSecurityResource), + accountId: S.optional(S.String), + status: S.optional(CodeScanStatus), + statusReason: S.optional(S.String), + createdAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + updatedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + lastCommitId: S.optional(S.String), + }), +).annotate({ + identifier: "GetCodeSecurityScanResponse", +}) as any as S.Schema; export interface GetCodeSecurityScanConfigurationRequest { scanConfigurationArn: string; } -export const GetCodeSecurityScanConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const GetCodeSecurityScanConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ scanConfigurationArn: S.String }).pipe( T.all( T.Http({ method: "POST", uri: "/codesecurity/scan-configuration/get" }), @@ -2452,9 +2416,9 @@ export const GetCodeSecurityScanConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "GetCodeSecurityScanConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "GetCodeSecurityScanConfigurationRequest", +}) as any as S.Schema; export interface GetCodeSecurityScanConfigurationResponse { scanConfigurationArn?: string; name?: string; @@ -2465,8 +2429,8 @@ export interface GetCodeSecurityScanConfigurationResponse { lastUpdatedAt?: Date; tags?: { [key: string]: string | undefined }; } -export const GetCodeSecurityScanConfigurationResponse = - /*@__PURE__*/ S.suspend(() => +export const GetCodeSecurityScanConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ scanConfigurationArn: S.optional(S.String), name: S.optional(S.String), @@ -2479,9 +2443,9 @@ export const GetCodeSecurityScanConfigurationResponse = ), tags: S.optional(TagMap), }), - ).annotate({ - identifier: "GetCodeSecurityScanConfigurationResponse", - }) as any as S.Schema; +).annotate({ + identifier: "GetCodeSecurityScanConfigurationResponse", +}) as any as S.Schema; export interface GetConfigurationRequest {} export const GetConfigurationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe( @@ -2572,21 +2536,20 @@ export const GetConfigurationResponse = /*@__PURE__*/ S.suspend(() => identifier: "GetConfigurationResponse", }) as any as S.Schema; export interface GetDelegatedAdminAccountRequest {} -export const GetDelegatedAdminAccountRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({}).pipe( - T.all( - T.Http({ method: "POST", uri: "/delegatedadminaccounts/get" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetDelegatedAdminAccountRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe( + T.all( + T.Http({ method: "POST", uri: "/delegatedadminaccounts/get" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetDelegatedAdminAccountRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetDelegatedAdminAccountRequest", +}) as any as S.Schema; export interface DelegatedAdmin { accountId?: string; relationshipStatus?: string; @@ -2600,15 +2563,14 @@ export const DelegatedAdmin = /*@__PURE__*/ S.suspend(() => export interface GetDelegatedAdminAccountResponse { delegatedAdmin?: DelegatedAdmin; } -export const GetDelegatedAdminAccountResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ delegatedAdmin: S.optional(DelegatedAdmin) }), - ).annotate({ - identifier: "GetDelegatedAdminAccountResponse", - }) as any as S.Schema; +export const GetDelegatedAdminAccountResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ delegatedAdmin: S.optional(DelegatedAdmin) }), +).annotate({ + identifier: "GetDelegatedAdminAccountResponse", +}) as any as S.Schema; export interface GetEc2DeepInspectionConfigurationRequest {} -export const GetEc2DeepInspectionConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const GetEc2DeepInspectionConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({}).pipe( T.all( T.Http({ method: "POST", uri: "/ec2deepinspectionconfiguration/get" }), @@ -2619,9 +2581,9 @@ export const GetEc2DeepInspectionConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "GetEc2DeepInspectionConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "GetEc2DeepInspectionConfigurationRequest", +}) as any as S.Schema; export type PathList = string[]; export const PathList = /*@__PURE__*/ S.Array(S.String); export interface GetEc2DeepInspectionConfigurationResponse { @@ -2673,21 +2635,20 @@ export const GetEncryptionKeyResponse = /*@__PURE__*/ S.suspend(() => export interface GetFindingsReportStatusRequest { reportId?: string; } -export const GetFindingsReportStatusRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ reportId: S.optional(S.String) }).pipe( - T.all( - T.Http({ method: "POST", uri: "/reporting/status/get" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetFindingsReportStatusRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ reportId: S.optional(S.String) }).pipe( + T.all( + T.Http({ method: "POST", uri: "/reporting/status/get" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetFindingsReportStatusRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetFindingsReportStatusRequest", +}) as any as S.Schema; export interface GetFindingsReportStatusResponse { reportId?: string; status?: string; @@ -2696,19 +2657,18 @@ export interface GetFindingsReportStatusResponse { destination?: Destination; filterCriteria?: FilterCriteria; } -export const GetFindingsReportStatusResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - reportId: S.optional(S.String), - status: S.optional(S.String), - errorCode: S.optional(S.String), - errorMessage: S.optional(S.String), - destination: S.optional(Destination), - filterCriteria: S.optional(FilterCriteria), - }), - ).annotate({ - identifier: "GetFindingsReportStatusResponse", - }) as any as S.Schema; +export const GetFindingsReportStatusResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + reportId: S.optional(S.String), + status: S.optional(S.String), + errorCode: S.optional(S.String), + errorMessage: S.optional(S.String), + destination: S.optional(Destination), + filterCriteria: S.optional(FilterCriteria), + }), +).annotate({ + identifier: "GetFindingsReportStatusResponse", +}) as any as S.Schema; export interface GetMemberRequest { accountId: string; } @@ -2792,25 +2752,24 @@ export interface ListAccountPermissionsRequest { maxResults?: number; nextToken?: string; } -export const ListAccountPermissionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - service: S.optional(S.String), - maxResults: S.optional(S.Number), - nextToken: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/accountpermissions/list" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListAccountPermissionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + service: S.optional(S.String), + maxResults: S.optional(S.Number), + nextToken: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/accountpermissions/list" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListAccountPermissionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListAccountPermissionsRequest", +}) as any as S.Schema; export interface Permission { service: string; operation: string; @@ -2824,12 +2783,11 @@ export interface ListAccountPermissionsResponse { permissions: Permission[]; nextToken?: string; } -export const ListAccountPermissionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ permissions: Permissions, nextToken: S.optional(S.String) }), - ).annotate({ - identifier: "ListAccountPermissionsResponse", - }) as any as S.Schema; +export const ListAccountPermissionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ permissions: Permissions, nextToken: S.optional(S.String) }), +).annotate({ + identifier: "ListAccountPermissionsResponse", +}) as any as S.Schema; export type CisScanNameFilterList = CisStringFilter[]; export const CisScanNameFilterList = /*@__PURE__*/ S.Array(CisStringFilter); export type TagComparison = "EQUALS" | (string & {}); @@ -2852,8 +2810,8 @@ export interface ListCisScanConfigurationsFilterCriteria { targetResourceTagFilters?: TagFilter[]; scanConfigurationArnFilters?: CisStringFilter[]; } -export const ListCisScanConfigurationsFilterCriteria = - /*@__PURE__*/ S.suspend(() => +export const ListCisScanConfigurationsFilterCriteria = /*@__PURE__*/ S.suspend( + () => S.Struct({ scanNameFilters: S.optional(CisScanNameFilterList), targetResourceTagFilters: S.optional(ResourceTagFilterList), @@ -2861,9 +2819,9 @@ export const ListCisScanConfigurationsFilterCriteria = CisScanConfigurationArnFilterList, ), }), - ).annotate({ - identifier: "ListCisScanConfigurationsFilterCriteria", - }) as any as S.Schema; +).annotate({ + identifier: "ListCisScanConfigurationsFilterCriteria", +}) as any as S.Schema; export type CisScanConfigurationsSortBy = | "SCAN_NAME" | "SCAN_CONFIGURATION_ARN" @@ -2876,27 +2834,26 @@ export interface ListCisScanConfigurationsRequest { nextToken?: string; maxResults?: number; } -export const ListCisScanConfigurationsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - filterCriteria: S.optional(ListCisScanConfigurationsFilterCriteria), - sortBy: S.optional(CisScanConfigurationsSortBy), - sortOrder: S.optional(CisSortOrder), - nextToken: S.optional(S.String), - maxResults: S.optional(S.Number), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/cis/scan-configuration/list" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListCisScanConfigurationsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + filterCriteria: S.optional(ListCisScanConfigurationsFilterCriteria), + sortBy: S.optional(CisScanConfigurationsSortBy), + sortOrder: S.optional(CisSortOrder), + nextToken: S.optional(S.String), + maxResults: S.optional(S.Number), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/cis/scan-configuration/list" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListCisScanConfigurationsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListCisScanConfigurationsRequest", +}) as any as S.Schema; export type CisAccountIdList = string[]; export const CisAccountIdList = /*@__PURE__*/ S.Array(S.String); export interface CisTargets { @@ -2938,15 +2895,14 @@ export interface ListCisScanConfigurationsResponse { scanConfigurations?: CisScanConfiguration[]; nextToken?: string; } -export const ListCisScanConfigurationsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - scanConfigurations: S.optional(CisScanConfigurationList), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListCisScanConfigurationsResponse", - }) as any as S.Schema; +export const ListCisScanConfigurationsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + scanConfigurations: S.optional(CisScanConfigurationList), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListCisScanConfigurationsResponse", +}) as any as S.Schema; export type OneAccountIdFilterList = CisStringFilter[]; export const OneAccountIdFilterList = /*@__PURE__*/ S.Array(CisStringFilter); export type PlatformFilterList = CisStringFilter[]; @@ -3130,15 +3086,14 @@ export interface CisTargetStatusReasonFilter { comparison: CisTargetStatusComparison; value: CisTargetStatusReason; } -export const CisTargetStatusReasonFilter = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - comparison: CisTargetStatusComparison, - value: CisTargetStatusReason, - }), - ).annotate({ - identifier: "CisTargetStatusReasonFilter", - }) as any as S.Schema; +export const CisTargetStatusReasonFilter = /*@__PURE__*/ S.suspend(() => + S.Struct({ + comparison: CisTargetStatusComparison, + value: CisTargetStatusReason, + }), +).annotate({ + identifier: "CisTargetStatusReasonFilter", +}) as any as S.Schema; export type TargetStatusReasonFilterList = CisTargetStatusReasonFilter[]; export const TargetStatusReasonFilterList = /*@__PURE__*/ S.Array( CisTargetStatusReasonFilter, @@ -3222,24 +3177,24 @@ export interface CisTargetResourceAggregation { targetStatus?: CisTargetStatus; targetStatusReason?: CisTargetStatusReason; } -export const CisTargetResourceAggregation = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - scanArn: S.String, - targetResourceId: S.optional(S.String), - accountId: S.optional(S.String), - targetResourceTags: S.optional(TargetResourceTags), - statusCounts: S.optional(StatusCounts), - platform: S.optional(S.String), - targetStatus: S.optional(CisTargetStatus), - targetStatusReason: S.optional(CisTargetStatusReason), - }), - ).annotate({ - identifier: "CisTargetResourceAggregation", - }) as any as S.Schema; +export const CisTargetResourceAggregation = /*@__PURE__*/ S.suspend(() => + S.Struct({ + scanArn: S.String, + targetResourceId: S.optional(S.String), + accountId: S.optional(S.String), + targetResourceTags: S.optional(TargetResourceTags), + statusCounts: S.optional(StatusCounts), + platform: S.optional(S.String), + targetStatus: S.optional(CisTargetStatus), + targetStatusReason: S.optional(CisTargetStatusReason), + }), +).annotate({ + identifier: "CisTargetResourceAggregation", +}) as any as S.Schema; export type CisTargetResourceAggregationList = CisTargetResourceAggregation[]; -export const CisTargetResourceAggregationList = - /*@__PURE__*/ S.Array(CisTargetResourceAggregation); +export const CisTargetResourceAggregationList = /*@__PURE__*/ S.Array( + CisTargetResourceAggregation, +); export interface ListCisScanResultsAggregatedByTargetResourceResponse { targetResourceAggregations?: CisTargetResourceAggregation[]; nextToken?: string; @@ -3401,24 +3356,23 @@ export interface ListCodeSecurityIntegrationsRequest { nextToken?: string; maxResults?: number; } -export const ListCodeSecurityIntegrationsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/codesecurity/integration/list" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListCodeSecurityIntegrationsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/codesecurity/integration/list" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListCodeSecurityIntegrationsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListCodeSecurityIntegrationsRequest", +}) as any as S.Schema; export interface CodeSecurityIntegrationSummary { integrationArn: string; name: string; @@ -3429,21 +3383,20 @@ export interface CodeSecurityIntegrationSummary { lastUpdateOn: Date; tags?: { [key: string]: string | undefined }; } -export const CodeSecurityIntegrationSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - integrationArn: S.String, - name: S.String, - type: IntegrationType, - status: IntegrationStatus, - statusReason: S.String, - createdOn: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - lastUpdateOn: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - tags: S.optional(TagMap), - }), - ).annotate({ - identifier: "CodeSecurityIntegrationSummary", - }) as any as S.Schema; +export const CodeSecurityIntegrationSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + integrationArn: S.String, + name: S.String, + type: IntegrationType, + status: IntegrationStatus, + statusReason: S.String, + createdOn: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + lastUpdateOn: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + tags: S.optional(TagMap), + }), +).annotate({ + identifier: "CodeSecurityIntegrationSummary", +}) as any as S.Schema; export type IntegrationSummaries = CodeSecurityIntegrationSummary[]; export const IntegrationSummaries = /*@__PURE__*/ S.Array( CodeSecurityIntegrationSummary, @@ -3452,15 +3405,15 @@ export interface ListCodeSecurityIntegrationsResponse { integrations?: CodeSecurityIntegrationSummary[]; nextToken?: string; } -export const ListCodeSecurityIntegrationsResponse = - /*@__PURE__*/ S.suspend(() => +export const ListCodeSecurityIntegrationsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ integrations: S.optional(IntegrationSummaries), nextToken: S.optional(S.String), }), - ).annotate({ - identifier: "ListCodeSecurityIntegrationsResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListCodeSecurityIntegrationsResponse", +}) as any as S.Schema; export interface ListCodeSecurityScanConfigurationAssociationsRequest { scanConfigurationArn: string; nextToken?: string; @@ -3552,8 +3505,8 @@ export interface CodeSecurityScanConfigurationSummary { scopeSettings?: ScopeSettings; tags?: { [key: string]: string | undefined }; } -export const CodeSecurityScanConfigurationSummary = - /*@__PURE__*/ S.suspend(() => +export const CodeSecurityScanConfigurationSummary = /*@__PURE__*/ S.suspend( + () => S.Struct({ scanConfigurationArn: S.String, name: S.String, @@ -3567,13 +3520,14 @@ export const CodeSecurityScanConfigurationSummary = scopeSettings: S.optional(ScopeSettings), tags: S.optional(TagMap), }), - ).annotate({ - identifier: "CodeSecurityScanConfigurationSummary", - }) as any as S.Schema; +).annotate({ + identifier: "CodeSecurityScanConfigurationSummary", +}) as any as S.Schema; export type CodeSecurityScanConfigurationSummaries = CodeSecurityScanConfigurationSummary[]; -export const CodeSecurityScanConfigurationSummaries = - /*@__PURE__*/ S.Array(CodeSecurityScanConfigurationSummary); +export const CodeSecurityScanConfigurationSummaries = /*@__PURE__*/ S.Array( + CodeSecurityScanConfigurationSummary, +); export interface ListCodeSecurityScanConfigurationsResponse { configurations?: CodeSecurityScanConfigurationSummary[]; nextToken?: string; @@ -3785,19 +3739,19 @@ export interface ProjectPeriodicScanConfiguration { frequencyExpression?: string; ruleSetCategories?: RuleSetCategory[]; } -export const ProjectPeriodicScanConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - frequencyExpression: S.optional(S.String), - ruleSetCategories: S.optional(RuleSetCategories), - }), - ).annotate({ - identifier: "ProjectPeriodicScanConfiguration", - }) as any as S.Schema; +export const ProjectPeriodicScanConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + frequencyExpression: S.optional(S.String), + ruleSetCategories: S.optional(RuleSetCategories), + }), +).annotate({ + identifier: "ProjectPeriodicScanConfiguration", +}) as any as S.Schema; export type ProjectPeriodicScanConfigurationList = ProjectPeriodicScanConfiguration[]; -export const ProjectPeriodicScanConfigurationList = - /*@__PURE__*/ S.Array(ProjectPeriodicScanConfiguration); +export const ProjectPeriodicScanConfigurationList = /*@__PURE__*/ S.Array( + ProjectPeriodicScanConfiguration, +); export interface ProjectContinuousIntegrationScanConfiguration { supportedEvent?: ContinuousIntegrationScanEvent; ruleSetCategories?: RuleSetCategory[]; @@ -3819,8 +3773,8 @@ export interface ProjectCodeSecurityScanConfiguration { periodicScanConfigurations?: ProjectPeriodicScanConfiguration[]; continuousIntegrationScanConfigurations?: ProjectContinuousIntegrationScanConfiguration[]; } -export const ProjectCodeSecurityScanConfiguration = - /*@__PURE__*/ S.suspend(() => +export const ProjectCodeSecurityScanConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ periodicScanConfigurations: S.optional( ProjectPeriodicScanConfigurationList, @@ -3829,9 +3783,9 @@ export const ProjectCodeSecurityScanConfiguration = ProjectContinuousIntegrationScanConfigurationList, ), }), - ).annotate({ - identifier: "ProjectCodeSecurityScanConfiguration", - }) as any as S.Schema; +).annotate({ + identifier: "ProjectCodeSecurityScanConfiguration", +}) as any as S.Schema; export interface CodeRepositoryOnDemandScan { lastScannedCommitId?: string; lastScanAt?: Date; @@ -3929,25 +3883,24 @@ export interface ListCoverageStatisticsRequest { groupBy?: string; nextToken?: string; } -export const ListCoverageStatisticsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - filterCriteria: S.optional(CoverageFilterCriteria), - groupBy: S.optional(S.String), - nextToken: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/coverage/statistics/list" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListCoverageStatisticsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + filterCriteria: S.optional(CoverageFilterCriteria), + groupBy: S.optional(S.String), + nextToken: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/coverage/statistics/list" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListCoverageStatisticsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListCoverageStatisticsRequest", +}) as any as S.Schema; export interface Counts { count?: number; groupKey?: string; @@ -3962,38 +3915,36 @@ export interface ListCoverageStatisticsResponse { totalCounts: number; nextToken?: string; } -export const ListCoverageStatisticsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - countsByGroup: S.optional(CountsList), - totalCounts: S.Number, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListCoverageStatisticsResponse", - }) as any as S.Schema; +export const ListCoverageStatisticsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + countsByGroup: S.optional(CountsList), + totalCounts: S.Number, + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListCoverageStatisticsResponse", +}) as any as S.Schema; export interface ListDelegatedAdminAccountsRequest { maxResults?: number; nextToken?: string; } -export const ListDelegatedAdminAccountsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - maxResults: S.optional(S.Number), - nextToken: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/delegatedadminaccounts/list" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListDelegatedAdminAccountsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + maxResults: S.optional(S.Number), + nextToken: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/delegatedadminaccounts/list" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListDelegatedAdminAccountsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListDelegatedAdminAccountsRequest", +}) as any as S.Schema; export interface DelegatedAdminAccount { accountId?: string; status?: string; @@ -4011,15 +3962,14 @@ export interface ListDelegatedAdminAccountsResponse { delegatedAdminAccounts?: DelegatedAdminAccount[]; nextToken?: string; } -export const ListDelegatedAdminAccountsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - delegatedAdminAccounts: S.optional(DelegatedAdminAccountList), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListDelegatedAdminAccountsResponse", - }) as any as S.Schema; +export const ListDelegatedAdminAccountsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + delegatedAdminAccounts: S.optional(DelegatedAdminAccountList), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListDelegatedAdminAccountsResponse", +}) as any as S.Schema; export type FilterArnList = string[]; export const FilterArnList = /*@__PURE__*/ S.Array(S.String); export interface ListFiltersRequest { @@ -4486,27 +4436,26 @@ export interface ListFindingAggregationsRequest { accountIds?: StringFilter[]; aggregationRequest?: AggregationRequest; } -export const ListFindingAggregationsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - aggregationType: S.String, - nextToken: S.optional(S.String), - maxResults: S.optional(S.Number), - accountIds: S.optional(StringFilterList), - aggregationRequest: S.optional(AggregationRequest), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/findings/aggregation/list" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListFindingAggregationsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + aggregationType: S.String, + nextToken: S.optional(S.String), + maxResults: S.optional(S.Number), + accountIds: S.optional(StringFilterList), + aggregationRequest: S.optional(AggregationRequest), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/findings/aggregation/list" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListFindingAggregationsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListFindingAggregationsRequest", +}) as any as S.Schema; export interface SeverityCounts { all?: number; medium?: number; @@ -4566,22 +4515,21 @@ export interface AwsEcrContainerAggregationResponse { lastInUseAt?: Date; inUseCount?: number; } -export const AwsEcrContainerAggregationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - resourceId: S.String, - imageSha: S.optional(S.String), - repository: S.optional(S.String), - architecture: S.optional(S.String), - imageTags: S.optional(StringList), - accountId: S.optional(S.String), - severityCounts: S.optional(SeverityCounts), - lastInUseAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - inUseCount: S.optional(S.Number), - }), - ).annotate({ - identifier: "AwsEcrContainerAggregationResponse", - }) as any as S.Schema; +export const AwsEcrContainerAggregationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + resourceId: S.String, + imageSha: S.optional(S.String), + repository: S.optional(S.String), + architecture: S.optional(S.String), + imageTags: S.optional(StringList), + accountId: S.optional(S.String), + severityCounts: S.optional(SeverityCounts), + lastInUseAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + inUseCount: S.optional(S.Number), + }), +).annotate({ + identifier: "AwsEcrContainerAggregationResponse", +}) as any as S.Schema; export interface Ec2InstanceAggregationResponse { instanceId: string; ami?: string; @@ -4591,37 +4539,35 @@ export interface Ec2InstanceAggregationResponse { severityCounts?: SeverityCounts; networkFindings?: number; } -export const Ec2InstanceAggregationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - instanceId: S.String, - ami: S.optional(S.String), - operatingSystem: S.optional(S.String), - instanceTags: S.optional(TagMap), - accountId: S.optional(S.String), - severityCounts: S.optional(SeverityCounts), - networkFindings: S.optional(S.Number), - }), - ).annotate({ - identifier: "Ec2InstanceAggregationResponse", - }) as any as S.Schema; +export const Ec2InstanceAggregationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + instanceId: S.String, + ami: S.optional(S.String), + operatingSystem: S.optional(S.String), + instanceTags: S.optional(TagMap), + accountId: S.optional(S.String), + severityCounts: S.optional(SeverityCounts), + networkFindings: S.optional(S.Number), + }), +).annotate({ + identifier: "Ec2InstanceAggregationResponse", +}) as any as S.Schema; export interface FindingTypeAggregationResponse { accountId?: string; severityCounts?: SeverityCounts; exploitAvailableCount?: number; fixAvailableCount?: number; } -export const FindingTypeAggregationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - accountId: S.optional(S.String), - severityCounts: S.optional(SeverityCounts), - exploitAvailableCount: S.optional(S.Number), - fixAvailableCount: S.optional(S.Number), - }), - ).annotate({ - identifier: "FindingTypeAggregationResponse", - }) as any as S.Schema; +export const FindingTypeAggregationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + accountId: S.optional(S.String), + severityCounts: S.optional(SeverityCounts), + exploitAvailableCount: S.optional(S.Number), + fixAvailableCount: S.optional(S.Number), + }), +).annotate({ + identifier: "FindingTypeAggregationResponse", +}) as any as S.Schema; export interface ImageLayerAggregationResponse { repository: string; resourceId: string; @@ -4629,18 +4575,17 @@ export interface ImageLayerAggregationResponse { accountId: string; severityCounts?: SeverityCounts; } -export const ImageLayerAggregationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - repository: S.String, - resourceId: S.String, - layerHash: S.String, - accountId: S.String, - severityCounts: S.optional(SeverityCounts), - }), - ).annotate({ - identifier: "ImageLayerAggregationResponse", - }) as any as S.Schema; +export const ImageLayerAggregationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + repository: S.String, + resourceId: S.String, + layerHash: S.String, + accountId: S.String, + severityCounts: S.optional(SeverityCounts), + }), +).annotate({ + identifier: "ImageLayerAggregationResponse", +}) as any as S.Schema; export interface PackageAggregationResponse { packageName: string; accountId?: string; @@ -4661,17 +4606,16 @@ export interface RepositoryAggregationResponse { severityCounts?: SeverityCounts; affectedImages?: number; } -export const RepositoryAggregationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - repository: S.String, - accountId: S.optional(S.String), - severityCounts: S.optional(SeverityCounts), - affectedImages: S.optional(S.Number), - }), - ).annotate({ - identifier: "RepositoryAggregationResponse", - }) as any as S.Schema; +export const RepositoryAggregationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + repository: S.String, + accountId: S.optional(S.String), + severityCounts: S.optional(SeverityCounts), + affectedImages: S.optional(S.Number), + }), +).annotate({ + identifier: "RepositoryAggregationResponse", +}) as any as S.Schema; export interface TitleAggregationResponse { title: string; vulnerabilityId?: string; @@ -4695,18 +4639,17 @@ export interface LambdaLayerAggregationResponse { accountId: string; severityCounts?: SeverityCounts; } -export const LambdaLayerAggregationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - functionName: S.String, - resourceId: S.String, - layerArn: S.String, - accountId: S.String, - severityCounts: S.optional(SeverityCounts), - }), - ).annotate({ - identifier: "LambdaLayerAggregationResponse", - }) as any as S.Schema; +export const LambdaLayerAggregationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + functionName: S.String, + resourceId: S.String, + layerArn: S.String, + accountId: S.String, + severityCounts: S.optional(SeverityCounts), + }), +).annotate({ + identifier: "LambdaLayerAggregationResponse", +}) as any as S.Schema; export interface LambdaFunctionAggregationResponse { resourceId: string; functionName?: string; @@ -4716,22 +4659,19 @@ export interface LambdaFunctionAggregationResponse { severityCounts?: SeverityCounts; lastModifiedAt?: Date; } -export const LambdaFunctionAggregationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - resourceId: S.String, - functionName: S.optional(S.String), - runtime: S.optional(S.String), - lambdaTags: S.optional(TagMap), - accountId: S.optional(S.String), - severityCounts: S.optional(SeverityCounts), - lastModifiedAt: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - }), - ).annotate({ - identifier: "LambdaFunctionAggregationResponse", - }) as any as S.Schema; +export const LambdaFunctionAggregationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + resourceId: S.String, + functionName: S.optional(S.String), + runtime: S.optional(S.String), + lambdaTags: S.optional(TagMap), + accountId: S.optional(S.String), + severityCounts: S.optional(SeverityCounts), + lastModifiedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + }), +).annotate({ + identifier: "LambdaFunctionAggregationResponse", +}) as any as S.Schema; export interface CodeRepositoryAggregationResponse { projectNames: string; providerType?: string; @@ -4741,20 +4681,19 @@ export interface CodeRepositoryAggregationResponse { accountId?: string; resourceId?: string; } -export const CodeRepositoryAggregationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - projectNames: S.String, - providerType: S.optional(S.String), - severityCounts: S.optional(SeverityCounts), - exploitAvailableActiveFindingsCount: S.optional(S.Number), - fixAvailableActiveFindingsCount: S.optional(S.Number), - accountId: S.optional(S.String), - resourceId: S.optional(S.String), - }), - ).annotate({ - identifier: "CodeRepositoryAggregationResponse", - }) as any as S.Schema; +export const CodeRepositoryAggregationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + projectNames: S.String, + providerType: S.optional(S.String), + severityCounts: S.optional(SeverityCounts), + exploitAvailableActiveFindingsCount: S.optional(S.Number), + fixAvailableActiveFindingsCount: S.optional(S.Number), + accountId: S.optional(S.String), + resourceId: S.optional(S.String), + }), +).annotate({ + identifier: "CodeRepositoryAggregationResponse", +}) as any as S.Schema; export type AggregationResponse = | { accountAggregation: AccountAggregationResponse; @@ -4946,16 +4885,15 @@ export interface ListFindingAggregationsResponse { responses?: AggregationResponse[]; nextToken?: string; } -export const ListFindingAggregationsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - aggregationType: S.String, - responses: S.optional(AggregationResponseList), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListFindingAggregationsResponse", - }) as any as S.Schema; +export const ListFindingAggregationsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + aggregationType: S.String, + responses: S.optional(AggregationResponseList), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListFindingAggregationsResponse", +}) as any as S.Schema; export interface SortCriteria { field: string; sortOrder: string; @@ -5047,23 +4985,22 @@ export interface AwsEcrContainerImageDetails { lastInUseAt?: Date; inUseCount?: number; } -export const AwsEcrContainerImageDetails = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - repositoryName: S.String, - imageTags: S.optional(ImageTagList), - pushedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - author: S.optional(S.String), - architecture: S.optional(S.String), - imageHash: S.String, - registry: S.String, - platform: S.optional(S.String), - lastInUseAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - inUseCount: S.optional(S.Number), - }), - ).annotate({ - identifier: "AwsEcrContainerImageDetails", - }) as any as S.Schema; +export const AwsEcrContainerImageDetails = /*@__PURE__*/ S.suspend(() => + S.Struct({ + repositoryName: S.String, + imageTags: S.optional(ImageTagList), + pushedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + author: S.optional(S.String), + architecture: S.optional(S.String), + imageHash: S.String, + registry: S.String, + platform: S.optional(S.String), + lastInUseAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + inUseCount: S.optional(S.Number), + }), +).annotate({ + identifier: "AwsEcrContainerImageDetails", +}) as any as S.Schema; export type LayerList = string[]; export const LayerList = /*@__PURE__*/ S.Array(S.String); export type SubnetIdList = string[]; @@ -5309,27 +5246,26 @@ export interface PackageVulnerabilityDetails { vendorUpdatedAt?: Date; referenceUrls?: string[]; } -export const PackageVulnerabilityDetails = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - vulnerabilityId: S.String, - vulnerablePackages: S.optional(VulnerablePackageList), - source: S.String, - cvss: S.optional(CvssScoreList), - relatedVulnerabilities: S.optional(VulnerabilityIdList), - sourceUrl: S.optional(S.String), - vendorSeverity: S.optional(S.String), - vendorCreatedAt: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - vendorUpdatedAt: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - referenceUrls: S.optional(NonEmptyStringList), - }), - ).annotate({ - identifier: "PackageVulnerabilityDetails", - }) as any as S.Schema; +export const PackageVulnerabilityDetails = /*@__PURE__*/ S.suspend(() => + S.Struct({ + vulnerabilityId: S.String, + vulnerablePackages: S.optional(VulnerablePackageList), + source: S.String, + cvss: S.optional(CvssScoreList), + relatedVulnerabilities: S.optional(VulnerabilityIdList), + sourceUrl: S.optional(S.String), + vendorSeverity: S.optional(S.String), + vendorCreatedAt: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + vendorUpdatedAt: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + referenceUrls: S.optional(NonEmptyStringList), + }), +).annotate({ + identifier: "PackageVulnerabilityDetails", +}) as any as S.Schema; export interface ExploitabilityDetails { lastKnownExploitAt?: Date; } @@ -5511,12 +5447,11 @@ export const ListTagsForResourceRequest = /*@__PURE__*/ S.suspend(() => export interface ListTagsForResourceResponse { tags?: { [key: string]: string | undefined }; } -export const ListTagsForResourceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ tags: S.optional(TagMap) }), - ).annotate({ - identifier: "ListTagsForResourceResponse", - }) as any as S.Schema; +export const ListTagsForResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ tags: S.optional(TagMap) }), +).annotate({ + identifier: "ListTagsForResourceResponse", +}) as any as S.Schema; export type UsageAccountIdList = string[]; export const UsageAccountIdList = /*@__PURE__*/ S.Array(S.String); export interface ListUsageTotalsRequest { @@ -5608,34 +5543,32 @@ export const VulnIdList = /*@__PURE__*/ S.Array(S.String); export interface SearchVulnerabilitiesFilterCriteria { vulnerabilityIds: string[]; } -export const SearchVulnerabilitiesFilterCriteria = - /*@__PURE__*/ S.suspend(() => - S.Struct({ vulnerabilityIds: VulnIdList }), - ).annotate({ - identifier: "SearchVulnerabilitiesFilterCriteria", - }) as any as S.Schema; +export const SearchVulnerabilitiesFilterCriteria = /*@__PURE__*/ S.suspend(() => + S.Struct({ vulnerabilityIds: VulnIdList }), +).annotate({ + identifier: "SearchVulnerabilitiesFilterCriteria", +}) as any as S.Schema; export interface SearchVulnerabilitiesRequest { filterCriteria: SearchVulnerabilitiesFilterCriteria; nextToken?: string; } -export const SearchVulnerabilitiesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - filterCriteria: SearchVulnerabilitiesFilterCriteria, - nextToken: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/vulnerabilities/search" }), - svc, - auth, - proto, - ver, - rules, - ), +export const SearchVulnerabilitiesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + filterCriteria: SearchVulnerabilitiesFilterCriteria, + nextToken: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/vulnerabilities/search" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "SearchVulnerabilitiesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "SearchVulnerabilitiesRequest", +}) as any as S.Schema; export type Targets = string[]; export const Targets = /*@__PURE__*/ S.Array(S.String); export interface AtigData { @@ -5744,39 +5677,38 @@ export interface SearchVulnerabilitiesResponse { vulnerabilities: Vulnerability[]; nextToken?: string; } -export const SearchVulnerabilitiesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - vulnerabilities: Vulnerabilities, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "SearchVulnerabilitiesResponse", - }) as any as S.Schema; +export const SearchVulnerabilitiesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + vulnerabilities: Vulnerabilities, + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "SearchVulnerabilitiesResponse", +}) as any as S.Schema; export interface SendCisSessionHealthRequest { scanJobId: string; sessionToken: string; } -export const SendCisSessionHealthRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ scanJobId: S.String, sessionToken: S.String }).pipe( - T.all( - T.Http({ method: "PUT", uri: "/cissession/health/send" }), - svc, - auth, - proto, - ver, - rules, - ), +export const SendCisSessionHealthRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ scanJobId: S.String, sessionToken: S.String }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/cissession/health/send" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "SendCisSessionHealthRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "SendCisSessionHealthRequest", +}) as any as S.Schema; export interface SendCisSessionHealthResponse {} -export const SendCisSessionHealthResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "SendCisSessionHealthResponse", - }) as any as S.Schema; +export const SendCisSessionHealthResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "SendCisSessionHealthResponse", +}) as any as S.Schema; export type CisRuleStatus = | "FAILED" | "PASSED" @@ -5804,30 +5736,30 @@ export interface SendCisSessionTelemetryRequest { sessionToken: string; messages: CisSessionMessage[]; } -export const SendCisSessionTelemetryRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - scanJobId: S.String, - sessionToken: S.String, - messages: CisSessionMessages, - }).pipe( - T.all( - T.Http({ method: "PUT", uri: "/cissession/telemetry/send" }), - svc, - auth, - proto, - ver, - rules, - ), +export const SendCisSessionTelemetryRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + scanJobId: S.String, + sessionToken: S.String, + messages: CisSessionMessages, + }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/cissession/telemetry/send" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "SendCisSessionTelemetryRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "SendCisSessionTelemetryRequest", +}) as any as S.Schema; export interface SendCisSessionTelemetryResponse {} -export const SendCisSessionTelemetryResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "SendCisSessionTelemetryResponse", - }) as any as S.Schema; +export const SendCisSessionTelemetryResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "SendCisSessionTelemetryResponse", +}) as any as S.Schema; export interface StartCisSessionMessage { sessionToken: string; } @@ -5864,37 +5796,35 @@ export interface StartCodeSecurityScanRequest { clientToken?: string; resource: CodeSecurityResource; } -export const StartCodeSecurityScanRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - resource: CodeSecurityResource, - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/codesecurity/scan/start" }), - svc, - auth, - proto, - ver, - rules, - ), +export const StartCodeSecurityScanRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + resource: CodeSecurityResource, + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/codesecurity/scan/start" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "StartCodeSecurityScanRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "StartCodeSecurityScanRequest", +}) as any as S.Schema; export interface StartCodeSecurityScanResponse { scanId?: string; status?: CodeScanStatus; } -export const StartCodeSecurityScanResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - scanId: S.optional(S.String), - status: S.optional(CodeScanStatus), - }), - ).annotate({ - identifier: "StartCodeSecurityScanResponse", - }) as any as S.Schema; +export const StartCodeSecurityScanResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + scanId: S.optional(S.String), + status: S.optional(CodeScanStatus), + }), +).annotate({ + identifier: "StartCodeSecurityScanResponse", +}) as any as S.Schema; export type StopCisSessionStatus = | "SUCCESS" | "FAILED" @@ -6064,55 +5994,51 @@ export interface UpdateCisScanConfigurationRequest { schedule?: Schedule; targets?: UpdateCisTargets; } -export const UpdateCisScanConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - scanConfigurationArn: S.String, - scanName: S.optional(S.String), - securityLevel: S.optional(CisSecurityLevel), - schedule: S.optional(Schedule), - targets: S.optional(UpdateCisTargets), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/cis/scan-configuration/update" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateCisScanConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + scanConfigurationArn: S.String, + scanName: S.optional(S.String), + securityLevel: S.optional(CisSecurityLevel), + schedule: S.optional(Schedule), + targets: S.optional(UpdateCisTargets), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/cis/scan-configuration/update" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateCisScanConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateCisScanConfigurationRequest", +}) as any as S.Schema; export interface UpdateCisScanConfigurationResponse { scanConfigurationArn: string; } -export const UpdateCisScanConfigurationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ scanConfigurationArn: S.String }), - ).annotate({ - identifier: "UpdateCisScanConfigurationResponse", - }) as any as S.Schema; +export const UpdateCisScanConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ scanConfigurationArn: S.String }), +).annotate({ + identifier: "UpdateCisScanConfigurationResponse", +}) as any as S.Schema; export interface UpdateGitLabSelfManagedIntegrationDetail { authCode: string | redacted.Redacted; } -export const UpdateGitLabSelfManagedIntegrationDetail = - /*@__PURE__*/ S.suspend(() => - S.Struct({ authCode: SensitiveString }), - ).annotate({ - identifier: "UpdateGitLabSelfManagedIntegrationDetail", - }) as any as S.Schema; +export const UpdateGitLabSelfManagedIntegrationDetail = /*@__PURE__*/ S.suspend( + () => S.Struct({ authCode: SensitiveString }), +).annotate({ + identifier: "UpdateGitLabSelfManagedIntegrationDetail", +}) as any as S.Schema; export interface UpdateGitHubIntegrationDetail { code: string | redacted.Redacted; installationId: string; } -export const UpdateGitHubIntegrationDetail = - /*@__PURE__*/ S.suspend(() => - S.Struct({ code: SensitiveString, installationId: S.String }), - ).annotate({ - identifier: "UpdateGitHubIntegrationDetail", - }) as any as S.Schema; +export const UpdateGitHubIntegrationDetail = /*@__PURE__*/ S.suspend(() => + S.Struct({ code: SensitiveString, installationId: S.String }), +).annotate({ + identifier: "UpdateGitHubIntegrationDetail", +}) as any as S.Schema; export type UpdateIntegrationDetails = | { gitlabSelfManaged: UpdateGitLabSelfManagedIntegrationDetail; @@ -6127,8 +6053,8 @@ export interface UpdateCodeSecurityIntegrationRequest { integrationArn: string; details: UpdateIntegrationDetails; } -export const UpdateCodeSecurityIntegrationRequest = - /*@__PURE__*/ S.suspend(() => +export const UpdateCodeSecurityIntegrationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ integrationArn: S.String, details: UpdateIntegrationDetails, @@ -6142,19 +6068,18 @@ export const UpdateCodeSecurityIntegrationRequest = rules, ), ), - ).annotate({ - identifier: "UpdateCodeSecurityIntegrationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateCodeSecurityIntegrationRequest", +}) as any as S.Schema; export interface UpdateCodeSecurityIntegrationResponse { integrationArn: string; status: IntegrationStatus; } -export const UpdateCodeSecurityIntegrationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ integrationArn: S.String, status: IntegrationStatus }), - ).annotate({ - identifier: "UpdateCodeSecurityIntegrationResponse", - }) as any as S.Schema; +export const UpdateCodeSecurityIntegrationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ integrationArn: S.String, status: IntegrationStatus }), +).annotate({ + identifier: "UpdateCodeSecurityIntegrationResponse", +}) as any as S.Schema; export interface UpdateCodeSecurityScanConfigurationRequest { scanConfigurationArn: string; configuration: CodeSecurityScanConfiguration; @@ -6234,10 +6159,11 @@ export const UpdateConfigurationRequest = /*@__PURE__*/ S.suspend(() => identifier: "UpdateConfigurationRequest", }) as any as S.Schema; export interface UpdateConfigurationResponse {} -export const UpdateConfigurationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateConfigurationResponse", - }) as any as S.Schema; +export const UpdateConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "UpdateConfigurationResponse", +}) as any as S.Schema; export interface UpdateEc2DeepInspectionConfigurationRequest { activateDeepInspection?: boolean; packagePaths?: string[]; @@ -6304,10 +6230,11 @@ export const UpdateEncryptionKeyRequest = /*@__PURE__*/ S.suspend(() => identifier: "UpdateEncryptionKeyRequest", }) as any as S.Schema; export interface UpdateEncryptionKeyResponse {} -export const UpdateEncryptionKeyResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateEncryptionKeyResponse", - }) as any as S.Schema; +export const UpdateEncryptionKeyResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "UpdateEncryptionKeyResponse", +}) as any as S.Schema; export interface UpdateFilterRequest { action?: string; description?: string; @@ -6348,8 +6275,8 @@ export const UpdateFilterResponse = /*@__PURE__*/ S.suspend(() => export interface UpdateOrganizationConfigurationRequest { autoEnable: AutoEnable; } -export const UpdateOrganizationConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const UpdateOrganizationConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ autoEnable: AutoEnable }).pipe( T.all( T.Http({ method: "POST", uri: "/organizationconfiguration/update" }), @@ -6360,16 +6287,17 @@ export const UpdateOrganizationConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "UpdateOrganizationConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateOrganizationConfigurationRequest", +}) as any as S.Schema; export interface UpdateOrganizationConfigurationResponse { autoEnable: AutoEnable; } -export const UpdateOrganizationConfigurationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({ autoEnable: AutoEnable })).annotate({ - identifier: "UpdateOrganizationConfigurationResponse", - }) as any as S.Schema; +export const UpdateOrganizationConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ autoEnable: AutoEnable }), +).annotate({ + identifier: "UpdateOrganizationConfigurationResponse", +}) as any as S.Schema; export interface UpdateOrgEc2DeepInspectionConfigurationRequest { orgPackagePaths: string[]; } @@ -6401,6 +6329,7 @@ export const UpdateOrgEc2DeepInspectionConfigurationResponse = export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.String }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", @@ -6408,11 +6337,12 @@ export class InternalServerException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", { message: S.String, resourceId: S.String }, + T.HttpError(402), ).pipe(C.withQuotaError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", @@ -6420,7 +6350,7 @@ export class ThrottlingException extends S.TaggedErrorClass message: S.String, retryAfterSeconds: S.optional(S.Number).pipe(T.HttpHeader("Retry-After")), }, - T.Retryable({ throttling: true }), + T.all(T.HttpError(429), T.Retryable({ throttling: true })), ).pipe(C.withThrottlingError, C.withRetryableError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", @@ -6429,18 +6359,22 @@ export class ValidationException extends S.TaggedErrorClass reason: S.String, fields: S.optional(ValidationExceptionFields), }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { message: S.String, resourceId: S.String, resourceType: S.String }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.String }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class BadRequestException extends S.TaggedErrorClass()( "BadRequestException", { message: S.String }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} //# Operations diff --git a/packages/aws/src/services/internetmonitor.ts b/packages/aws/src/services/internetmonitor.ts index 806dcd28a0..5f6843a903 100644 --- a/packages/aws/src/services/internetmonitor.ts +++ b/packages/aws/src/services/internetmonitor.ts @@ -648,13 +648,13 @@ export type QueryData = string[][]; export const QueryData = /*@__PURE__*/ S.Array(QueryRow); export interface GetQueryResultsOutput { Fields: QueryField[]; - Data: string[][]; + Data?: string[][]; NextToken?: string; } export const GetQueryResultsOutput = /*@__PURE__*/ S.suspend(() => S.Struct({ Fields: QueryFields, - Data: QueryData, + Data: S.optional(QueryData), NextToken: S.optional(S.String), }), ).annotate({ @@ -1040,51 +1040,57 @@ export const ListHealthEventsOutput = /*@__PURE__*/ S.suspend(() => export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class BadRequestException extends S.TaggedErrorClass()( "BadRequestException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InternalServerErrorException extends S.TaggedErrorClass()( "InternalServerErrorException", { message: S.optional(S.String) }, - T.Retryable(), + T.all(T.HttpError(500), T.Retryable()), ).pipe(C.withServerError, C.withRetryableError) {} export class NotFoundException extends S.TaggedErrorClass()( "NotFoundException", { message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class TooManyRequestsException extends S.TaggedErrorClass()( "TooManyRequestsException", { message: S.optional(S.String) }, - T.Retryable({ throttling: true }), + T.all(T.HttpError(429), T.Retryable({ throttling: true })), ).pipe(C.withThrottlingError, C.withRetryableError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { message: S.optional(S.String) }, - T.Retryable(), + T.all(T.HttpError(500), T.Retryable()), ).pipe(C.withServerError, C.withRetryableError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", { message: S.optional(S.String) }, - T.Retryable({ throttling: true }), + T.all(T.HttpError(429), T.Retryable({ throttling: true })), ).pipe(C.withThrottlingError, C.withRetryableError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class LimitExceededException extends S.TaggedErrorClass()( "LimitExceededException", { message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", - { message: S.optional(S.String) }, -).pipe(C.withBadRequestError) {} + {}, +).pipe(C.withNotFoundError) {} //# Operations export type ListTagsForResourceError = @@ -1299,6 +1305,7 @@ export type GetMonitorError = | InternalServerException | ThrottlingException | ValidationException + | ResourceNotFoundException | CommonErrors; /** * Gets information about a monitor in Amazon CloudWatch Internet Monitor based on a monitor name. The information returned includes the Amazon Resource Name (ARN), create time, @@ -1317,6 +1324,7 @@ export const getMonitor: API.OperationMethod< InternalServerException, ThrottlingException, ValidationException, + ResourceNotFoundException, ], operationName: "GetMonitor", })); @@ -1358,6 +1366,7 @@ export type DeleteMonitorError = | InternalServerException | ThrottlingException | ValidationException + | ResourceNotFoundException | CommonErrors; /** * Deletes a monitor in Amazon CloudWatch Internet Monitor. @@ -1375,6 +1384,7 @@ export const deleteMonitor: API.OperationMethod< InternalServerException, ThrottlingException, ValidationException, + ResourceNotFoundException, ], operationName: "DeleteMonitor", })); diff --git a/packages/aws/src/services/iot-data-plane.ts b/packages/aws/src/services/iot-data-plane.ts index f29c4b5245..bac6469f8f 100644 --- a/packages/aws/src/services/iot-data-plane.ts +++ b/packages/aws/src/services/iot-data-plane.ts @@ -622,50 +622,62 @@ export const UpdateThingShadowResponse = /*@__PURE__*/ S.suspend(() => export class ForbiddenException extends S.TaggedErrorClass()( "ForbiddenException", { message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class InternalFailureException extends S.TaggedErrorClass()( "InternalFailureException", { message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class InvalidRequestException extends S.TaggedErrorClass()( "InvalidRequestException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", { message: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class MethodNotAllowedException extends S.TaggedErrorClass()( "MethodNotAllowedException", { message: S.optional(S.String) }, + T.HttpError(405), ).pipe(C.withBadRequestError) {} export class ServiceUnavailableException extends S.TaggedErrorClass()( "ServiceUnavailableException", { message: S.optional(S.String) }, + T.HttpError(503), ).pipe(C.withServerError) {} export class UnauthorizedException extends S.TaggedErrorClass()( "UnauthorizedException", { message: S.optional(S.String) }, + T.HttpError(401), ).pipe(C.withAuthError) {} export class UnsupportedDocumentEncodingException extends S.TaggedErrorClass()( "UnsupportedDocumentEncodingException", { message: S.optional(S.String) }, + T.HttpError(415), ).pipe(C.withBadRequestError) {} export class GatewayTimeoutException extends S.TaggedErrorClass()( "GatewayTimeoutException", { message: S.optional(S.String) }, + T.HttpError(504), ).pipe(C.withTimeoutError) {} export class RequestEntityTooLargeException extends S.TaggedErrorClass()( "RequestEntityTooLargeException", { message: S.optional(S.String) }, + T.HttpError(413), ).pipe(C.withBadRequestError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} //# Operations @@ -707,6 +719,7 @@ export type DeleteThingShadowError = | ThrottlingException | UnauthorizedException | UnsupportedDocumentEncodingException + | ForbiddenException | CommonErrors; /** * Deletes the shadow for the specified thing. @@ -732,6 +745,7 @@ export const deleteThingShadow: API.OperationMethod< ThrottlingException, UnauthorizedException, UnsupportedDocumentEncodingException, + ForbiddenException, ], operationName: "DeleteThingShadow", })); @@ -772,6 +786,7 @@ export type GetRetainedMessageError = | ServiceUnavailableException | ThrottlingException | UnauthorizedException + | ForbiddenException | CommonErrors; /** * Gets the details of a single retained message for the specified topic. @@ -801,6 +816,7 @@ export const getRetainedMessage: API.OperationMethod< ServiceUnavailableException, ThrottlingException, UnauthorizedException, + ForbiddenException, ], operationName: "GetRetainedMessage", })); @@ -813,6 +829,7 @@ export type GetThingShadowError = | ThrottlingException | UnauthorizedException | UnsupportedDocumentEncodingException + | ForbiddenException | CommonErrors; /** * Gets the shadow for the specified thing. @@ -839,6 +856,7 @@ export const getThingShadow: API.OperationMethod< ThrottlingException, UnauthorizedException, UnsupportedDocumentEncodingException, + ForbiddenException, ], operationName: "GetThingShadow", })); @@ -850,6 +868,7 @@ export type ListNamedShadowsForThingError = | ServiceUnavailableException | ThrottlingException | UnauthorizedException + | ForbiddenException | CommonErrors; /** * Lists the shadows for the specified thing. @@ -872,6 +891,7 @@ export const listNamedShadowsForThing: API.OperationMethod< ServiceUnavailableException, ThrottlingException, UnauthorizedException, + ForbiddenException, ], operationName: "ListNamedShadowsForThing", })); @@ -882,6 +902,7 @@ export type ListRetainedMessagesError = | ServiceUnavailableException | ThrottlingException | UnauthorizedException + | ForbiddenException | CommonErrors; /** * Lists summary information about the retained messages stored for the account. @@ -929,6 +950,7 @@ export const listRetainedMessages: API.OperationMethod< ServiceUnavailableException, ThrottlingException, UnauthorizedException, + ForbiddenException, ], operationName: "ListRetainedMessages", pagination: { @@ -994,6 +1016,7 @@ export type PublishError = | MethodNotAllowedException | ThrottlingException | UnauthorizedException + | ForbiddenException | CommonErrors; /** * Publishes an MQTT message. @@ -1021,6 +1044,7 @@ export const publish: API.OperationMethod< MethodNotAllowedException, ThrottlingException, UnauthorizedException, + ForbiddenException, ], operationName: "Publish", })); @@ -1075,6 +1099,7 @@ export type UpdateThingShadowError = | ThrottlingException | UnauthorizedException | UnsupportedDocumentEncodingException + | ForbiddenException | CommonErrors; /** * Updates the shadow for the specified thing. @@ -1102,6 +1127,7 @@ export const updateThingShadow: API.OperationMethod< ThrottlingException, UnauthorizedException, UnsupportedDocumentEncodingException, + ForbiddenException, ], operationName: "UpdateThingShadow", })); diff --git a/packages/aws/src/services/iot-managed-integrations.ts b/packages/aws/src/services/iot-managed-integrations.ts index 0c74f5ed35..a998bdbc3f 100644 --- a/packages/aws/src/services/iot-managed-integrations.ts +++ b/packages/aws/src/services/iot-managed-integrations.ts @@ -270,37 +270,34 @@ export const TagsMap = /*@__PURE__*/ S.Record( export interface ListTagsForResourceResponse { tags?: { [key: string]: string | undefined }; } -export const ListTagsForResourceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ tags: S.optional(TagsMap) }), - ).annotate({ - identifier: "ListTagsForResourceResponse", - }) as any as S.Schema; +export const ListTagsForResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ tags: S.optional(TagsMap) }), +).annotate({ + identifier: "ListTagsForResourceResponse", +}) as any as S.Schema; export interface RegisterCustomEndpointRequest {} -export const RegisterCustomEndpointRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({}).pipe( - T.all( - T.Http({ method: "POST", uri: "/custom-endpoint" }), - svc, - auth, - proto, - ver, - rules, - ), +export const RegisterCustomEndpointRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe( + T.all( + T.Http({ method: "POST", uri: "/custom-endpoint" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "RegisterCustomEndpointRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "RegisterCustomEndpointRequest", +}) as any as S.Schema; export interface RegisterCustomEndpointResponse { EndpointAddress: string; } -export const RegisterCustomEndpointResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ EndpointAddress: S.String }), - ).annotate({ - identifier: "RegisterCustomEndpointResponse", - }) as any as S.Schema; +export const RegisterCustomEndpointResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ EndpointAddress: S.String }), +).annotate({ + identifier: "RegisterCustomEndpointResponse", +}) as any as S.Schema; export type ConnectorEventOperation = | "DEVICE_COMMAND_RESPONSE" | "DEVICE_DISCOVERY" @@ -315,27 +312,28 @@ export interface MatterCapabilityReportAttribute { name?: string; value?: any; } -export const MatterCapabilityReportAttribute = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.optional(S.String), - name: S.optional(S.String), - value: S.optional(S.Any), - }), - ).annotate({ - identifier: "MatterCapabilityReportAttribute", - }) as any as S.Schema; +export const MatterCapabilityReportAttribute = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.optional(S.String), + name: S.optional(S.String), + value: S.optional(S.Any), + }), +).annotate({ + identifier: "MatterCapabilityReportAttribute", +}) as any as S.Schema; export type MatterCapabilityReportAttributes = MatterCapabilityReportAttribute[]; -export const MatterCapabilityReportAttributes = - /*@__PURE__*/ S.Array(MatterCapabilityReportAttribute); +export const MatterCapabilityReportAttributes = /*@__PURE__*/ S.Array( + MatterCapabilityReportAttribute, +); export type MatterCapabilityReportCommands = string[]; export const MatterCapabilityReportCommands = /*@__PURE__*/ S.Array(S.String); export type MatterCapabilityReportEvents = string[]; export const MatterCapabilityReportEvents = /*@__PURE__*/ S.Array(S.String); export type MatterCapabilityReportGeneratedCommands = string[]; -export const MatterCapabilityReportGeneratedCommands = - /*@__PURE__*/ S.Array(S.String); +export const MatterCapabilityReportGeneratedCommands = /*@__PURE__*/ S.Array( + S.String, +); export interface MatterCapabilityReportCluster { id: string; revision: number; @@ -349,33 +347,35 @@ export interface MatterCapabilityReportCluster { generatedCommands?: string[]; fabricIndex?: number; } -export const MatterCapabilityReportCluster = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String, - revision: S.Number, - publicId: S.optional(S.String), - name: S.optional(S.String), - specVersion: S.optional(S.String), - attributes: S.optional(MatterCapabilityReportAttributes), - commands: S.optional(MatterCapabilityReportCommands), - events: S.optional(MatterCapabilityReportEvents), - featureMap: S.optional(S.Number), - generatedCommands: S.optional(MatterCapabilityReportGeneratedCommands), - fabricIndex: S.optional(S.Number), - }), - ).annotate({ - identifier: "MatterCapabilityReportCluster", - }) as any as S.Schema; +export const MatterCapabilityReportCluster = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + revision: S.Number, + publicId: S.optional(S.String), + name: S.optional(S.String), + specVersion: S.optional(S.String), + attributes: S.optional(MatterCapabilityReportAttributes), + commands: S.optional(MatterCapabilityReportCommands), + events: S.optional(MatterCapabilityReportEvents), + featureMap: S.optional(S.Number), + generatedCommands: S.optional(MatterCapabilityReportGeneratedCommands), + fabricIndex: S.optional(S.Number), + }), +).annotate({ + identifier: "MatterCapabilityReportCluster", +}) as any as S.Schema; export type MatterCapabilityReportClusters = MatterCapabilityReportCluster[]; -export const MatterCapabilityReportClusters = - /*@__PURE__*/ S.Array(MatterCapabilityReportCluster); +export const MatterCapabilityReportClusters = /*@__PURE__*/ S.Array( + MatterCapabilityReportCluster, +); export type MatterCapabilityReportEndpointParts = string[]; -export const MatterCapabilityReportEndpointParts = - /*@__PURE__*/ S.Array(S.String); +export const MatterCapabilityReportEndpointParts = /*@__PURE__*/ S.Array( + S.String, +); export type MatterCapabilityReportEndpointSemanticTags = string[]; -export const MatterCapabilityReportEndpointSemanticTags = - /*@__PURE__*/ S.Array(S.String); +export const MatterCapabilityReportEndpointSemanticTags = /*@__PURE__*/ S.Array( + S.String, +); export type MatterCapabilityReportEndpointClientClusters = string[]; export const MatterCapabilityReportEndpointClientClusters = /*@__PURE__*/ S.Array(S.String); @@ -387,22 +387,22 @@ export interface MatterCapabilityReportEndpoint { semanticTags?: string[]; clientClusters?: string[]; } -export const MatterCapabilityReportEndpoint = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String, - deviceTypes: DeviceTypes, - clusters: MatterCapabilityReportClusters, - parts: S.optional(MatterCapabilityReportEndpointParts), - semanticTags: S.optional(MatterCapabilityReportEndpointSemanticTags), - clientClusters: S.optional(MatterCapabilityReportEndpointClientClusters), - }), - ).annotate({ - identifier: "MatterCapabilityReportEndpoint", - }) as any as S.Schema; +export const MatterCapabilityReportEndpoint = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + deviceTypes: DeviceTypes, + clusters: MatterCapabilityReportClusters, + parts: S.optional(MatterCapabilityReportEndpointParts), + semanticTags: S.optional(MatterCapabilityReportEndpointSemanticTags), + clientClusters: S.optional(MatterCapabilityReportEndpointClientClusters), + }), +).annotate({ + identifier: "MatterCapabilityReportEndpoint", +}) as any as S.Schema; export type MatterCapabilityReportEndpoints = MatterCapabilityReportEndpoint[]; -export const MatterCapabilityReportEndpoints = - /*@__PURE__*/ S.Array(MatterCapabilityReportEndpoint); +export const MatterCapabilityReportEndpoints = /*@__PURE__*/ S.Array( + MatterCapabilityReportEndpoint, +); export interface MatterCapabilityReport { version: string; nodeId?: string; @@ -609,28 +609,27 @@ export interface CreateAccountAssociationRequest { Tags?: { [key: string]: string | undefined }; GeneralAuthorization?: GeneralAuthorizationName; } -export const CreateAccountAssociationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ClientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - ConnectorDestinationId: S.String, - Name: S.optional(S.String), - Description: S.optional(S.String), - Tags: S.optional(TagsMap), - GeneralAuthorization: S.optional(GeneralAuthorizationName), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/account-associations" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateAccountAssociationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ClientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + ConnectorDestinationId: S.String, + Name: S.optional(S.String), + Description: S.optional(S.String), + Tags: S.optional(TagsMap), + GeneralAuthorization: S.optional(GeneralAuthorizationName), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/account-associations" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateAccountAssociationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateAccountAssociationRequest", +}) as any as S.Schema; export type AssociationState = | "ASSOCIATION_IN_PROGRESS" | "ASSOCIATION_FAILED" @@ -645,40 +644,38 @@ export interface CreateAccountAssociationResponse { AssociationState: AssociationState; Arn?: string; } -export const CreateAccountAssociationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - OAuthAuthorizationUrl: SensitiveString, - AccountAssociationId: S.String, - AssociationState: AssociationState, - Arn: S.optional(S.String), - }), - ).annotate({ - identifier: "CreateAccountAssociationResponse", - }) as any as S.Schema; +export const CreateAccountAssociationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + OAuthAuthorizationUrl: SensitiveString, + AccountAssociationId: S.String, + AssociationState: AssociationState, + Arn: S.optional(S.String), + }), +).annotate({ + identifier: "CreateAccountAssociationResponse", +}) as any as S.Schema; export interface GetAccountAssociationRequest { AccountAssociationId: string; } -export const GetAccountAssociationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AccountAssociationId: S.String.pipe(T.HttpLabel("AccountAssociationId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/account-associations/{AccountAssociationId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetAccountAssociationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AccountAssociationId: S.String.pipe(T.HttpLabel("AccountAssociationId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/account-associations/{AccountAssociationId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetAccountAssociationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetAccountAssociationRequest", +}) as any as S.Schema; export interface GetAccountAssociationResponse { AccountAssociationId: string; AssociationState: AssociationState; @@ -691,109 +688,107 @@ export interface GetAccountAssociationResponse { Tags?: { [key: string]: string | undefined }; GeneralAuthorization?: GeneralAuthorizationName; } -export const GetAccountAssociationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AccountAssociationId: S.String, - AssociationState: AssociationState, - ErrorMessage: S.optional(S.String), - ConnectorDestinationId: S.optional(S.String), - Name: S.optional(S.String), - Description: S.optional(S.String), - Arn: S.optional(S.String), - OAuthAuthorizationUrl: SensitiveString, - Tags: S.optional(TagsMap), - GeneralAuthorization: S.optional(GeneralAuthorizationName), - }), - ).annotate({ - identifier: "GetAccountAssociationResponse", - }) as any as S.Schema; +export const GetAccountAssociationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AccountAssociationId: S.String, + AssociationState: AssociationState, + ErrorMessage: S.optional(S.String), + ConnectorDestinationId: S.optional(S.String), + Name: S.optional(S.String), + Description: S.optional(S.String), + Arn: S.optional(S.String), + OAuthAuthorizationUrl: SensitiveString, + Tags: S.optional(TagsMap), + GeneralAuthorization: S.optional(GeneralAuthorizationName), + }), +).annotate({ + identifier: "GetAccountAssociationResponse", +}) as any as S.Schema; export interface UpdateAccountAssociationRequest { AccountAssociationId: string; Name?: string; Description?: string; } -export const UpdateAccountAssociationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AccountAssociationId: S.String.pipe(T.HttpLabel("AccountAssociationId")), - Name: S.optional(S.String), - Description: S.optional(S.String), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/account-associations/{AccountAssociationId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateAccountAssociationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AccountAssociationId: S.String.pipe(T.HttpLabel("AccountAssociationId")), + Name: S.optional(S.String), + Description: S.optional(S.String), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/account-associations/{AccountAssociationId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateAccountAssociationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateAccountAssociationRequest", +}) as any as S.Schema; export interface UpdateAccountAssociationResponse {} -export const UpdateAccountAssociationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateAccountAssociationResponse", - }) as any as S.Schema; +export const UpdateAccountAssociationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "UpdateAccountAssociationResponse", +}) as any as S.Schema; export interface DeleteAccountAssociationRequest { AccountAssociationId: string; } -export const DeleteAccountAssociationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AccountAssociationId: S.String.pipe(T.HttpLabel("AccountAssociationId")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/account-associations/{AccountAssociationId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteAccountAssociationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AccountAssociationId: S.String.pipe(T.HttpLabel("AccountAssociationId")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/account-associations/{AccountAssociationId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteAccountAssociationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteAccountAssociationRequest", +}) as any as S.Schema; export interface DeleteAccountAssociationResponse {} -export const DeleteAccountAssociationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteAccountAssociationResponse", - }) as any as S.Schema; +export const DeleteAccountAssociationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteAccountAssociationResponse", +}) as any as S.Schema; export interface ListAccountAssociationsRequest { ConnectorDestinationId?: string; MaxResults?: number; NextToken?: string; } -export const ListAccountAssociationsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ConnectorDestinationId: S.optional(S.String).pipe( - T.HttpQuery("ConnectorDestinationId"), - ), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("MaxResults")), - NextToken: S.optional(S.String).pipe(T.HttpQuery("NextToken")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/account-associations" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListAccountAssociationsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ConnectorDestinationId: S.optional(S.String).pipe( + T.HttpQuery("ConnectorDestinationId"), ), - ).annotate({ - identifier: "ListAccountAssociationsRequest", - }) as any as S.Schema; + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("MaxResults")), + NextToken: S.optional(S.String).pipe(T.HttpQuery("NextToken")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/account-associations" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "ListAccountAssociationsRequest", +}) as any as S.Schema; export interface AccountAssociationItem { AccountAssociationId: string; AssociationState: AssociationState; @@ -817,26 +812,26 @@ export const AccountAssociationItem = /*@__PURE__*/ S.suspend(() => identifier: "AccountAssociationItem", }) as any as S.Schema; export type AccountAssociationListDefinition = AccountAssociationItem[]; -export const AccountAssociationListDefinition = - /*@__PURE__*/ S.Array(AccountAssociationItem); +export const AccountAssociationListDefinition = /*@__PURE__*/ S.Array( + AccountAssociationItem, +); export interface ListAccountAssociationsResponse { Items?: AccountAssociationItem[]; NextToken?: string; } -export const ListAccountAssociationsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Items: S.optional(AccountAssociationListDefinition), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListAccountAssociationsResponse", - }) as any as S.Schema; +export const ListAccountAssociationsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Items: S.optional(AccountAssociationListDefinition), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListAccountAssociationsResponse", +}) as any as S.Schema; export interface StartAccountAssociationRefreshRequest { AccountAssociationId: string; } -export const StartAccountAssociationRefreshRequest = - /*@__PURE__*/ S.suspend(() => +export const StartAccountAssociationRefreshRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AccountAssociationId: S.String.pipe(T.HttpLabel("AccountAssociationId")), }).pipe( @@ -852,18 +847,17 @@ export const StartAccountAssociationRefreshRequest = rules, ), ), - ).annotate({ - identifier: "StartAccountAssociationRefreshRequest", - }) as any as S.Schema; +).annotate({ + identifier: "StartAccountAssociationRefreshRequest", +}) as any as S.Schema; export interface StartAccountAssociationRefreshResponse { OAuthAuthorizationUrl: string | redacted.Redacted; } -export const StartAccountAssociationRefreshResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ OAuthAuthorizationUrl: SensitiveString }), - ).annotate({ - identifier: "StartAccountAssociationRefreshResponse", - }) as any as S.Schema; +export const StartAccountAssociationRefreshResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ OAuthAuthorizationUrl: SensitiveString }), +).annotate({ + identifier: "StartAccountAssociationRefreshResponse", +}) as any as S.Schema; export interface LambdaConfig { arn: string; } @@ -885,36 +879,34 @@ export interface CreateCloudConnectorRequest { EndpointType?: EndpointType; ClientToken?: string; } -export const CreateCloudConnectorRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Name: S.String, - EndpointConfig: EndpointConfig, - Description: S.optional(S.String), - EndpointType: S.optional(EndpointType), - ClientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/cloud-connectors" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateCloudConnectorRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.String, + EndpointConfig: EndpointConfig, + Description: S.optional(S.String), + EndpointType: S.optional(EndpointType), + ClientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/cloud-connectors" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateCloudConnectorRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateCloudConnectorRequest", +}) as any as S.Schema; export interface CreateCloudConnectorResponse { Id?: string; } -export const CreateCloudConnectorResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Id: S.optional(S.String) }), - ).annotate({ - identifier: "CreateCloudConnectorResponse", - }) as any as S.Schema; +export const CreateCloudConnectorResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Id: S.optional(S.String) }), +).annotate({ + identifier: "CreateCloudConnectorResponse", +}) as any as S.Schema; export interface GetCloudConnectorRequest { Identifier: string; } @@ -959,53 +951,53 @@ export interface UpdateCloudConnectorRequest { Name?: string; Description?: string; } -export const UpdateCloudConnectorRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Identifier: S.String.pipe(T.HttpLabel("Identifier")), - Name: S.optional(S.String), - Description: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "PUT", uri: "/cloud-connectors/{Identifier}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateCloudConnectorRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Identifier: S.String.pipe(T.HttpLabel("Identifier")), + Name: S.optional(S.String), + Description: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/cloud-connectors/{Identifier}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateCloudConnectorRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateCloudConnectorRequest", +}) as any as S.Schema; export interface UpdateCloudConnectorResponse {} -export const UpdateCloudConnectorResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateCloudConnectorResponse", - }) as any as S.Schema; +export const UpdateCloudConnectorResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "UpdateCloudConnectorResponse", +}) as any as S.Schema; export interface DeleteCloudConnectorRequest { Identifier: string; } -export const DeleteCloudConnectorRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Identifier: S.String.pipe(T.HttpLabel("Identifier")) }).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/cloud-connectors/{Identifier}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteCloudConnectorRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Identifier: S.String.pipe(T.HttpLabel("Identifier")) }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/cloud-connectors/{Identifier}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteCloudConnectorRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteCloudConnectorRequest", +}) as any as S.Schema; export interface DeleteCloudConnectorResponse {} -export const DeleteCloudConnectorResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteCloudConnectorResponse", - }) as any as S.Schema; +export const DeleteCloudConnectorResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteCloudConnectorResponse", +}) as any as S.Schema; export interface ListCloudConnectorsRequest { Type?: CloudConnectorType; LambdaArn?: string; @@ -1055,15 +1047,14 @@ export interface ListCloudConnectorsResponse { Items?: ConnectorItem[]; NextToken?: string; } -export const ListCloudConnectorsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Items: S.optional(ConnectorList), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListCloudConnectorsResponse", - }) as any as S.Schema; +export const ListCloudConnectorsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Items: S.optional(ConnectorList), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListCloudConnectorsResponse", +}) as any as S.Schema; export type AuthType = "OAUTH" | (string & {}); export const AuthType = /*@__PURE__*/ S.String; export type TokenEndpointAuthenticationScheme = @@ -1075,15 +1066,14 @@ export interface ProactiveRefreshTokenRenewal { enabled?: boolean; DaysBeforeRenewal?: number; } -export const ProactiveRefreshTokenRenewal = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - enabled: S.optional(S.Boolean), - DaysBeforeRenewal: S.optional(S.Number), - }), - ).annotate({ - identifier: "ProactiveRefreshTokenRenewal", - }) as any as S.Schema; +export const ProactiveRefreshTokenRenewal = /*@__PURE__*/ S.suspend(() => + S.Struct({ + enabled: S.optional(S.Boolean), + DaysBeforeRenewal: S.optional(S.Number), + }), +).annotate({ + identifier: "ProactiveRefreshTokenRenewal", +}) as any as S.Schema; export interface OAuthConfig { authUrl: string; tokenUrl: string; @@ -1137,56 +1127,53 @@ export interface CreateConnectorDestinationRequest { SecretsManager?: SecretsManager; ClientToken?: string; } -export const CreateConnectorDestinationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Name: S.optional(S.String), - Description: S.optional(S.String), - CloudConnectorId: S.String, - AuthType: S.optional(AuthType), - AuthConfig: AuthConfig, - SecretsManager: S.optional(SecretsManager), - ClientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/connector-destinations" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateConnectorDestinationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.optional(S.String), + Description: S.optional(S.String), + CloudConnectorId: S.String, + AuthType: S.optional(AuthType), + AuthConfig: AuthConfig, + SecretsManager: S.optional(SecretsManager), + ClientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/connector-destinations" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateConnectorDestinationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateConnectorDestinationRequest", +}) as any as S.Schema; export interface CreateConnectorDestinationResponse { Id?: string; } -export const CreateConnectorDestinationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Id: S.optional(S.String) }), - ).annotate({ - identifier: "CreateConnectorDestinationResponse", - }) as any as S.Schema; +export const CreateConnectorDestinationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Id: S.optional(S.String) }), +).annotate({ + identifier: "CreateConnectorDestinationResponse", +}) as any as S.Schema; export interface GetConnectorDestinationRequest { Identifier: string; } -export const GetConnectorDestinationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Identifier: S.String.pipe(T.HttpLabel("Identifier")) }).pipe( - T.all( - T.Http({ method: "GET", uri: "/connector-destinations/{Identifier}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetConnectorDestinationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Identifier: S.String.pipe(T.HttpLabel("Identifier")) }).pipe( + T.all( + T.Http({ method: "GET", uri: "/connector-destinations/{Identifier}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetConnectorDestinationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetConnectorDestinationRequest", +}) as any as S.Schema; export interface GetConnectorDestinationResponse { Name?: string; Description?: string; @@ -1197,21 +1184,20 @@ export interface GetConnectorDestinationResponse { SecretsManager?: SecretsManager; OAuthCompleteRedirectUrl?: string; } -export const GetConnectorDestinationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Name: S.optional(S.String), - Description: S.optional(S.String), - CloudConnectorId: S.optional(S.String), - Id: S.optional(S.String), - AuthType: S.optional(AuthType), - AuthConfig: S.optional(AuthConfig), - SecretsManager: S.optional(SecretsManager), - OAuthCompleteRedirectUrl: S.optional(S.String), - }), - ).annotate({ - identifier: "GetConnectorDestinationResponse", - }) as any as S.Schema; +export const GetConnectorDestinationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.optional(S.String), + Description: S.optional(S.String), + CloudConnectorId: S.optional(S.String), + Id: S.optional(S.String), + AuthType: S.optional(AuthType), + AuthConfig: S.optional(AuthConfig), + SecretsManager: S.optional(SecretsManager), + OAuthCompleteRedirectUrl: S.optional(S.String), + }), +).annotate({ + identifier: "GetConnectorDestinationResponse", +}) as any as S.Schema; export interface OAuthUpdate { oAuthCompleteRedirectUrl?: string; proactiveRefreshTokenRenewal?: ProactiveRefreshTokenRenewal; @@ -1254,157 +1240,150 @@ export interface UpdateConnectorDestinationRequest { AuthConfig?: AuthConfigUpdate; SecretsManager?: SecretsManager; } -export const UpdateConnectorDestinationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Identifier: S.String.pipe(T.HttpLabel("Identifier")), - Description: S.optional(S.String), - Name: S.optional(S.String), - AuthType: S.optional(AuthType), - AuthConfig: S.optional(AuthConfigUpdate), - SecretsManager: S.optional(SecretsManager), - }).pipe( - T.all( - T.Http({ method: "PUT", uri: "/connector-destinations/{Identifier}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateConnectorDestinationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Identifier: S.String.pipe(T.HttpLabel("Identifier")), + Description: S.optional(S.String), + Name: S.optional(S.String), + AuthType: S.optional(AuthType), + AuthConfig: S.optional(AuthConfigUpdate), + SecretsManager: S.optional(SecretsManager), + }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/connector-destinations/{Identifier}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateConnectorDestinationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateConnectorDestinationRequest", +}) as any as S.Schema; export interface UpdateConnectorDestinationResponse {} -export const UpdateConnectorDestinationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateConnectorDestinationResponse", - }) as any as S.Schema; +export const UpdateConnectorDestinationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "UpdateConnectorDestinationResponse", +}) as any as S.Schema; export interface DeleteConnectorDestinationRequest { Identifier: string; } -export const DeleteConnectorDestinationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Identifier: S.String.pipe(T.HttpLabel("Identifier")) }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/connector-destinations/{Identifier}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteConnectorDestinationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Identifier: S.String.pipe(T.HttpLabel("Identifier")) }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/connector-destinations/{Identifier}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteConnectorDestinationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteConnectorDestinationRequest", +}) as any as S.Schema; export interface DeleteConnectorDestinationResponse {} -export const DeleteConnectorDestinationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteConnectorDestinationResponse", - }) as any as S.Schema; +export const DeleteConnectorDestinationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteConnectorDestinationResponse", +}) as any as S.Schema; export interface ListConnectorDestinationsRequest { CloudConnectorId?: string; NextToken?: string; MaxResults?: number; } -export const ListConnectorDestinationsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CloudConnectorId: S.optional(S.String).pipe( - T.HttpQuery("CloudConnectorId"), - ), - NextToken: S.optional(S.String).pipe(T.HttpQuery("NextToken")), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("MaxResults")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/connector-destinations" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListConnectorDestinationsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CloudConnectorId: S.optional(S.String).pipe( + T.HttpQuery("CloudConnectorId"), ), - ).annotate({ - identifier: "ListConnectorDestinationsRequest", - }) as any as S.Schema; + NextToken: S.optional(S.String).pipe(T.HttpQuery("NextToken")), + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("MaxResults")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/connector-destinations" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "ListConnectorDestinationsRequest", +}) as any as S.Schema; export interface ConnectorDestinationSummary { Name?: string; Description?: string; CloudConnectorId?: string; Id?: string; } -export const ConnectorDestinationSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Name: S.optional(S.String), - Description: S.optional(S.String), - CloudConnectorId: S.optional(S.String), - Id: S.optional(S.String), - }), - ).annotate({ - identifier: "ConnectorDestinationSummary", - }) as any as S.Schema; +export const ConnectorDestinationSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.optional(S.String), + Description: S.optional(S.String), + CloudConnectorId: S.optional(S.String), + Id: S.optional(S.String), + }), +).annotate({ + identifier: "ConnectorDestinationSummary", +}) as any as S.Schema; export type ConnectorDestinationListDefinition = ConnectorDestinationSummary[]; -export const ConnectorDestinationListDefinition = - /*@__PURE__*/ S.Array(ConnectorDestinationSummary); +export const ConnectorDestinationListDefinition = /*@__PURE__*/ S.Array( + ConnectorDestinationSummary, +); export interface ListConnectorDestinationsResponse { ConnectorDestinationList?: ConnectorDestinationSummary[]; NextToken?: string; } -export const ListConnectorDestinationsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ConnectorDestinationList: S.optional(ConnectorDestinationListDefinition), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListConnectorDestinationsResponse", - }) as any as S.Schema; +export const ListConnectorDestinationsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ConnectorDestinationList: S.optional(ConnectorDestinationListDefinition), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListConnectorDestinationsResponse", +}) as any as S.Schema; export interface CreateCredentialLockerRequest { Name?: string | redacted.Redacted; ClientToken?: string; Tags?: { [key: string]: string | undefined }; } -export const CreateCredentialLockerRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Name: S.optional(SensitiveString), - ClientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - Tags: S.optional(TagsMap), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/credential-lockers" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateCredentialLockerRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.optional(SensitiveString), + ClientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + Tags: S.optional(TagsMap), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/credential-lockers" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateCredentialLockerRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateCredentialLockerRequest", +}) as any as S.Schema; export interface CreateCredentialLockerResponse { Id?: string; Arn?: string; CreatedAt?: Date; } -export const CreateCredentialLockerResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Id: S.optional(S.String), - Arn: S.optional(S.String), - CreatedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - }), - ).annotate({ - identifier: "CreateCredentialLockerResponse", - }) as any as S.Schema; +export const CreateCredentialLockerResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Id: S.optional(S.String), + Arn: S.optional(S.String), + CreatedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + }), +).annotate({ + identifier: "CreateCredentialLockerResponse", +}) as any as S.Schema; export interface GetCredentialLockerRequest { Identifier: string; } @@ -1429,63 +1408,61 @@ export interface GetCredentialLockerResponse { CreatedAt?: Date; Tags?: { [key: string]: string | undefined }; } -export const GetCredentialLockerResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Id: S.optional(S.String), - Arn: S.optional(S.String), - Name: S.optional(SensitiveString), - CreatedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - Tags: S.optional(TagsMap), - }), - ).annotate({ - identifier: "GetCredentialLockerResponse", - }) as any as S.Schema; +export const GetCredentialLockerResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Id: S.optional(S.String), + Arn: S.optional(S.String), + Name: S.optional(SensitiveString), + CreatedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + Tags: S.optional(TagsMap), + }), +).annotate({ + identifier: "GetCredentialLockerResponse", +}) as any as S.Schema; export interface DeleteCredentialLockerRequest { Identifier: string; } -export const DeleteCredentialLockerRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Identifier: S.String.pipe(T.HttpLabel("Identifier")) }).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/credential-lockers/{Identifier}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteCredentialLockerRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Identifier: S.String.pipe(T.HttpLabel("Identifier")) }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/credential-lockers/{Identifier}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteCredentialLockerRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteCredentialLockerRequest", +}) as any as S.Schema; export interface DeleteCredentialLockerResponse {} -export const DeleteCredentialLockerResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteCredentialLockerResponse", - }) as any as S.Schema; -export interface ListCredentialLockersRequest { - NextToken?: string; - MaxResults?: number; -} -export const ListCredentialLockersRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - NextToken: S.optional(S.String).pipe(T.HttpQuery("NextToken")), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("MaxResults")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/credential-lockers" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteCredentialLockerResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteCredentialLockerResponse", +}) as any as S.Schema; +export interface ListCredentialLockersRequest { + NextToken?: string; + MaxResults?: number; +} +export const ListCredentialLockersRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + NextToken: S.optional(S.String).pipe(T.HttpQuery("NextToken")), + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("MaxResults")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/credential-lockers" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListCredentialLockersRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListCredentialLockersRequest", +}) as any as S.Schema; export interface CredentialLockerSummary { Id?: string; Arn?: string; @@ -1503,21 +1480,21 @@ export const CredentialLockerSummary = /*@__PURE__*/ S.suspend(() => identifier: "CredentialLockerSummary", }) as any as S.Schema; export type CredentialLockerListDefinition = CredentialLockerSummary[]; -export const CredentialLockerListDefinition = - /*@__PURE__*/ S.Array(CredentialLockerSummary); +export const CredentialLockerListDefinition = /*@__PURE__*/ S.Array( + CredentialLockerSummary, +); export interface ListCredentialLockersResponse { Items?: CredentialLockerSummary[]; NextToken?: string; } -export const ListCredentialLockersResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Items: S.optional(CredentialLockerListDefinition), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListCredentialLockersResponse", - }) as any as S.Schema; +export const ListCredentialLockersResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Items: S.optional(CredentialLockerListDefinition), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListCredentialLockersResponse", +}) as any as S.Schema; export type DeliveryDestinationType = "KINESIS" | (string & {}); export const DeliveryDestinationType = /*@__PURE__*/ S.String; export interface CreateDestinationRequest { @@ -1725,7 +1702,7 @@ export const CustomProtocolDetail = /*@__PURE__*/ S.Record( ); export type DiscoveryAuthMaterialType = "ZWAVE_INSTALL_CODE" | (string & {}); export const DiscoveryAuthMaterialType = /*@__PURE__*/ S.String; -export type ConnectorDeviceIdList = string | redacted.Redacted[]; +export type ConnectorDeviceIdList = (string | redacted.Redacted)[]; export const ConnectorDeviceIdList = /*@__PURE__*/ S.Array(SensitiveString); export type ProtocolType = "ZWAVE" | "ZIGBEE" | "CUSTOM" | (string & {}); export const ProtocolType = /*@__PURE__*/ S.String; @@ -1739,51 +1716,49 @@ export interface StartDeviceDiscoveryRequest { AuthenticationMaterialType?: DiscoveryAuthMaterialType; ClientToken?: string; Tags?: { [key: string]: string | undefined }; - ConnectorDeviceIdList?: string | redacted.Redacted[]; + ConnectorDeviceIdList?: (string | redacted.Redacted)[]; Protocol?: ProtocolType; EndDeviceIdentifier?: string; } -export const StartDeviceDiscoveryRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DiscoveryType: DiscoveryType, - CustomProtocolDetail: S.optional(CustomProtocolDetail), - ControllerIdentifier: S.optional(S.String), - ConnectorAssociationIdentifier: S.optional(S.String), - AccountAssociationId: S.optional(S.String), - AuthenticationMaterial: S.optional(SensitiveString), - AuthenticationMaterialType: S.optional(DiscoveryAuthMaterialType), - ClientToken: S.optional(S.String), - Tags: S.optional(TagsMap), - ConnectorDeviceIdList: S.optional(ConnectorDeviceIdList), - Protocol: S.optional(ProtocolType), - EndDeviceIdentifier: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/device-discoveries" }), - svc, - auth, - proto, - ver, - rules, - ), +export const StartDeviceDiscoveryRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DiscoveryType: DiscoveryType, + CustomProtocolDetail: S.optional(CustomProtocolDetail), + ControllerIdentifier: S.optional(S.String), + ConnectorAssociationIdentifier: S.optional(S.String), + AccountAssociationId: S.optional(S.String), + AuthenticationMaterial: S.optional(SensitiveString), + AuthenticationMaterialType: S.optional(DiscoveryAuthMaterialType), + ClientToken: S.optional(S.String), + Tags: S.optional(TagsMap), + ConnectorDeviceIdList: S.optional(ConnectorDeviceIdList), + Protocol: S.optional(ProtocolType), + EndDeviceIdentifier: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/device-discoveries" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "StartDeviceDiscoveryRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "StartDeviceDiscoveryRequest", +}) as any as S.Schema; export interface StartDeviceDiscoveryResponse { Id?: string; StartedAt?: Date; } -export const StartDeviceDiscoveryResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Id: S.optional(S.String), - StartedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - }), - ).annotate({ - identifier: "StartDeviceDiscoveryResponse", - }) as any as S.Schema; +export const StartDeviceDiscoveryResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Id: S.optional(S.String), + StartedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + }), +).annotate({ + identifier: "StartDeviceDiscoveryResponse", +}) as any as S.Schema; export interface GetDeviceDiscoveryRequest { Identifier: string; } @@ -1842,28 +1817,27 @@ export interface ListDeviceDiscoveriesRequest { TypeFilter?: DiscoveryType; StatusFilter?: DeviceDiscoveryStatus; } -export const ListDeviceDiscoveriesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - NextToken: S.optional(S.String).pipe(T.HttpQuery("NextToken")), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("MaxResults")), - TypeFilter: S.optional(DiscoveryType).pipe(T.HttpQuery("TypeFilter")), - StatusFilter: S.optional(DeviceDiscoveryStatus).pipe( - T.HttpQuery("StatusFilter"), - ), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/device-discoveries" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListDeviceDiscoveriesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + NextToken: S.optional(S.String).pipe(T.HttpQuery("NextToken")), + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("MaxResults")), + TypeFilter: S.optional(DiscoveryType).pipe(T.HttpQuery("TypeFilter")), + StatusFilter: S.optional(DeviceDiscoveryStatus).pipe( + T.HttpQuery("StatusFilter"), ), - ).annotate({ - identifier: "ListDeviceDiscoveriesRequest", - }) as any as S.Schema; + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/device-discoveries" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "ListDeviceDiscoveriesRequest", +}) as any as S.Schema; export interface DeviceDiscoverySummary { Id?: string; DiscoveryType?: DiscoveryType; @@ -1879,48 +1853,47 @@ export const DeviceDiscoverySummary = /*@__PURE__*/ S.suspend(() => identifier: "DeviceDiscoverySummary", }) as any as S.Schema; export type DeviceDiscoveryListDefinition = DeviceDiscoverySummary[]; -export const DeviceDiscoveryListDefinition = - /*@__PURE__*/ S.Array(DeviceDiscoverySummary); +export const DeviceDiscoveryListDefinition = /*@__PURE__*/ S.Array( + DeviceDiscoverySummary, +); export interface ListDeviceDiscoveriesResponse { Items?: DeviceDiscoverySummary[]; NextToken?: string; } -export const ListDeviceDiscoveriesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Items: S.optional(DeviceDiscoveryListDefinition), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListDeviceDiscoveriesResponse", - }) as any as S.Schema; +export const ListDeviceDiscoveriesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Items: S.optional(DeviceDiscoveryListDefinition), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListDeviceDiscoveriesResponse", +}) as any as S.Schema; export interface ListDiscoveredDevicesRequest { Identifier: string; NextToken?: string; MaxResults?: number; } -export const ListDiscoveredDevicesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Identifier: S.String.pipe(T.HttpLabel("Identifier")), - NextToken: S.optional(S.String).pipe(T.HttpQuery("NextToken")), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("MaxResults")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/device-discoveries/{Identifier}/devices", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListDiscoveredDevicesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Identifier: S.String.pipe(T.HttpLabel("Identifier")), + NextToken: S.optional(S.String).pipe(T.HttpQuery("NextToken")), + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("MaxResults")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/device-discoveries/{Identifier}/devices", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListDiscoveredDevicesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListDiscoveredDevicesRequest", +}) as any as S.Schema; export type DeviceTypeList = string[]; export const DeviceTypeList = /*@__PURE__*/ S.Array(S.String); export type DiscoveryModification = @@ -1956,21 +1929,21 @@ export const DiscoveredDeviceSummary = /*@__PURE__*/ S.suspend(() => identifier: "DiscoveredDeviceSummary", }) as any as S.Schema; export type DiscoveredDeviceListDefinition = DiscoveredDeviceSummary[]; -export const DiscoveredDeviceListDefinition = - /*@__PURE__*/ S.Array(DiscoveredDeviceSummary); +export const DiscoveredDeviceListDefinition = /*@__PURE__*/ S.Array( + DiscoveredDeviceSummary, +); export interface ListDiscoveredDevicesResponse { Items?: DiscoveredDeviceSummary[]; NextToken?: string; } -export const ListDiscoveredDevicesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Items: S.optional(DiscoveredDeviceListDefinition), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListDiscoveredDevicesResponse", - }) as any as S.Schema; +export const ListDiscoveredDevicesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Items: S.optional(DiscoveredDeviceListDefinition), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListDiscoveredDevicesResponse", +}) as any as S.Schema; export type LogLevel = "DEBUG" | "ERROR" | "INFO" | "WARN" | (string & {}); export const LogLevel = /*@__PURE__*/ S.String; export interface CreateEventLogConfigurationRequest { @@ -1979,178 +1952,170 @@ export interface CreateEventLogConfigurationRequest { EventLogLevel: LogLevel; ClientToken?: string; } -export const CreateEventLogConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResourceType: S.String, - ResourceId: S.optional(S.String), - EventLogLevel: LogLevel, - ClientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/event-log-configurations" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateEventLogConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResourceType: S.String, + ResourceId: S.optional(S.String), + EventLogLevel: LogLevel, + ClientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/event-log-configurations" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateEventLogConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateEventLogConfigurationRequest", +}) as any as S.Schema; export interface CreateEventLogConfigurationResponse { Id?: string; } -export const CreateEventLogConfigurationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Id: S.optional(S.String) }), - ).annotate({ - identifier: "CreateEventLogConfigurationResponse", - }) as any as S.Schema; +export const CreateEventLogConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Id: S.optional(S.String) }), +).annotate({ + identifier: "CreateEventLogConfigurationResponse", +}) as any as S.Schema; export interface DeleteEventLogConfigurationRequest { Id: string; } -export const DeleteEventLogConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/event-log-configurations/{Id}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteEventLogConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/event-log-configurations/{Id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteEventLogConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteEventLogConfigurationRequest", +}) as any as S.Schema; export interface DeleteEventLogConfigurationResponse {} -export const DeleteEventLogConfigurationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteEventLogConfigurationResponse", - }) as any as S.Schema; +export const DeleteEventLogConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteEventLogConfigurationResponse", +}) as any as S.Schema; export interface GetEventLogConfigurationRequest { Id: string; } -export const GetEventLogConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( - T.all( - T.Http({ method: "GET", uri: "/event-log-configurations/{Id}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetEventLogConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( + T.all( + T.Http({ method: "GET", uri: "/event-log-configurations/{Id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetEventLogConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetEventLogConfigurationRequest", +}) as any as S.Schema; export interface GetEventLogConfigurationResponse { Id?: string; ResourceType?: string; ResourceId?: string; EventLogLevel?: LogLevel; } -export const GetEventLogConfigurationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Id: S.optional(S.String), - ResourceType: S.optional(S.String), - ResourceId: S.optional(S.String), - EventLogLevel: S.optional(LogLevel), - }), - ).annotate({ - identifier: "GetEventLogConfigurationResponse", - }) as any as S.Schema; +export const GetEventLogConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Id: S.optional(S.String), + ResourceType: S.optional(S.String), + ResourceId: S.optional(S.String), + EventLogLevel: S.optional(LogLevel), + }), +).annotate({ + identifier: "GetEventLogConfigurationResponse", +}) as any as S.Schema; export interface ListEventLogConfigurationsRequest { NextToken?: string; MaxResults?: number; } -export const ListEventLogConfigurationsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - NextToken: S.optional(S.String).pipe(T.HttpQuery("NextToken")), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("MaxResults")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/event-log-configurations" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListEventLogConfigurationsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + NextToken: S.optional(S.String).pipe(T.HttpQuery("NextToken")), + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("MaxResults")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/event-log-configurations" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListEventLogConfigurationsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListEventLogConfigurationsRequest", +}) as any as S.Schema; export interface EventLogConfigurationSummary { Id?: string; ResourceType?: string; ResourceId?: string; EventLogLevel?: LogLevel; } -export const EventLogConfigurationSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Id: S.optional(S.String), - ResourceType: S.optional(S.String), - ResourceId: S.optional(S.String), - EventLogLevel: S.optional(LogLevel), - }), - ).annotate({ - identifier: "EventLogConfigurationSummary", - }) as any as S.Schema; +export const EventLogConfigurationSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Id: S.optional(S.String), + ResourceType: S.optional(S.String), + ResourceId: S.optional(S.String), + EventLogLevel: S.optional(LogLevel), + }), +).annotate({ + identifier: "EventLogConfigurationSummary", +}) as any as S.Schema; export type EventLogConfigurationListDefinition = EventLogConfigurationSummary[]; -export const EventLogConfigurationListDefinition = - /*@__PURE__*/ S.Array(EventLogConfigurationSummary); +export const EventLogConfigurationListDefinition = /*@__PURE__*/ S.Array( + EventLogConfigurationSummary, +); export interface ListEventLogConfigurationsResponse { EventLogConfigurationList?: EventLogConfigurationSummary[]; NextToken?: string; } -export const ListEventLogConfigurationsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - EventLogConfigurationList: S.optional( - EventLogConfigurationListDefinition, - ), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListEventLogConfigurationsResponse", - }) as any as S.Schema; +export const ListEventLogConfigurationsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + EventLogConfigurationList: S.optional(EventLogConfigurationListDefinition), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListEventLogConfigurationsResponse", +}) as any as S.Schema; export interface UpdateEventLogConfigurationRequest { Id: string; EventLogLevel: LogLevel; } -export const UpdateEventLogConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Id: S.String.pipe(T.HttpLabel("Id")), - EventLogLevel: LogLevel, - }).pipe( - T.all( - T.Http({ method: "PATCH", uri: "/event-log-configurations/{Id}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateEventLogConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Id: S.String.pipe(T.HttpLabel("Id")), + EventLogLevel: LogLevel, + }).pipe( + T.all( + T.Http({ method: "PATCH", uri: "/event-log-configurations/{Id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateEventLogConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateEventLogConfigurationRequest", +}) as any as S.Schema; export interface UpdateEventLogConfigurationResponse {} -export const UpdateEventLogConfigurationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateEventLogConfigurationResponse", - }) as any as S.Schema; +export const UpdateEventLogConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "UpdateEventLogConfigurationResponse", +}) as any as S.Schema; export interface GetHubConfigurationRequest {} export const GetHubConfigurationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe( @@ -2170,15 +2135,14 @@ export interface GetHubConfigurationResponse { HubTokenTimerExpirySettingInSeconds?: number; UpdatedAt?: Date; } -export const GetHubConfigurationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - HubTokenTimerExpirySettingInSeconds: S.optional(S.Number), - UpdatedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - }), - ).annotate({ - identifier: "GetHubConfigurationResponse", - }) as any as S.Schema; +export const GetHubConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + HubTokenTimerExpirySettingInSeconds: S.optional(S.Number), + UpdatedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + }), +).annotate({ + identifier: "GetHubConfigurationResponse", +}) as any as S.Schema; export interface PutHubConfigurationRequest { HubTokenTimerExpirySettingInSeconds: number; } @@ -2199,15 +2163,14 @@ export const PutHubConfigurationRequest = /*@__PURE__*/ S.suspend(() => export interface PutHubConfigurationResponse { HubTokenTimerExpirySettingInSeconds?: number; } -export const PutHubConfigurationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ HubTokenTimerExpirySettingInSeconds: S.optional(S.Number) }), - ).annotate({ - identifier: "PutHubConfigurationResponse", - }) as any as S.Schema; +export const PutHubConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ HubTokenTimerExpirySettingInSeconds: S.optional(S.Number) }), +).annotate({ + identifier: "PutHubConfigurationResponse", +}) as any as S.Schema; export interface GetDefaultEncryptionConfigurationRequest {} -export const GetDefaultEncryptionConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const GetDefaultEncryptionConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({}).pipe( T.all( T.Http({ method: "GET", uri: "/configuration/account/encryption" }), @@ -2218,9 +2181,9 @@ export const GetDefaultEncryptionConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "GetDefaultEncryptionConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "GetDefaultEncryptionConfigurationRequest", +}) as any as S.Schema; export interface ConfigurationError { code?: string; message?: string; @@ -2272,8 +2235,8 @@ export interface PutDefaultEncryptionConfigurationRequest { encryptionType: EncryptionType; kmsKeyArn?: string; } -export const PutDefaultEncryptionConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const PutDefaultEncryptionConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ encryptionType: EncryptionType, kmsKeyArn: S.optional(S.String), @@ -2287,9 +2250,9 @@ export const PutDefaultEncryptionConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "PutDefaultEncryptionConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "PutDefaultEncryptionConfigurationRequest", +}) as any as S.Schema; export interface PutDefaultEncryptionConfigurationResponse { configurationStatus: ConfigurationStatus; encryptionType: EncryptionType; @@ -2309,29 +2272,26 @@ export interface DeregisterAccountAssociationRequest { ManagedThingId: string; AccountAssociationId: string; } -export const DeregisterAccountAssociationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ManagedThingId: S.String, AccountAssociationId: S.String }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/managed-thing-associations/deregister", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeregisterAccountAssociationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ ManagedThingId: S.String, AccountAssociationId: S.String }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/managed-thing-associations/deregister" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeregisterAccountAssociationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeregisterAccountAssociationRequest", +}) as any as S.Schema; export interface DeregisterAccountAssociationResponse {} -export const DeregisterAccountAssociationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeregisterAccountAssociationResponse", - }) as any as S.Schema; +export const DeregisterAccountAssociationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}), +).annotate({ + identifier: "DeregisterAccountAssociationResponse", +}) as any as S.Schema; export interface ListManagedThingAccountAssociationsRequest { ManagedThingId?: string; AccountAssociationId?: string; @@ -2401,40 +2361,38 @@ export interface RegisterAccountAssociationRequest { AccountAssociationId: string; DeviceDiscoveryId: string; } -export const RegisterAccountAssociationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ManagedThingId: S.String, - AccountAssociationId: S.String, - DeviceDiscoveryId: S.String, - }).pipe( - T.all( - T.Http({ method: "PUT", uri: "/managed-thing-associations/register" }), - svc, - auth, - proto, - ver, - rules, - ), +export const RegisterAccountAssociationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ManagedThingId: S.String, + AccountAssociationId: S.String, + DeviceDiscoveryId: S.String, + }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/managed-thing-associations/register" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "RegisterAccountAssociationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "RegisterAccountAssociationRequest", +}) as any as S.Schema; export interface RegisterAccountAssociationResponse { AccountAssociationId?: string; DeviceDiscoveryId?: string; ManagedThingId?: string; } -export const RegisterAccountAssociationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AccountAssociationId: S.optional(S.String), - DeviceDiscoveryId: S.optional(S.String), - ManagedThingId: S.optional(S.String), - }), - ).annotate({ - identifier: "RegisterAccountAssociationResponse", - }) as any as S.Schema; +export const RegisterAccountAssociationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AccountAssociationId: S.optional(S.String), + DeviceDiscoveryId: S.optional(S.String), + ManagedThingId: S.optional(S.String), + }), +).annotate({ + identifier: "RegisterAccountAssociationResponse", +}) as any as S.Schema; export interface CapabilityAction { name: string; ref?: string; @@ -2488,38 +2446,36 @@ export interface SendManagedThingCommandRequest { ConnectorAssociationId?: string; AccountAssociationId?: string; } -export const SendManagedThingCommandRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ManagedThingId: S.String.pipe(T.HttpLabel("ManagedThingId")), - Endpoints: CommandEndpoints, - ConnectorAssociationId: S.optional(S.String), - AccountAssociationId: S.optional(S.String), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/managed-things-command/{ManagedThingId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const SendManagedThingCommandRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ManagedThingId: S.String.pipe(T.HttpLabel("ManagedThingId")), + Endpoints: CommandEndpoints, + ConnectorAssociationId: S.optional(S.String), + AccountAssociationId: S.optional(S.String), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/managed-things-command/{ManagedThingId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "SendManagedThingCommandRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "SendManagedThingCommandRequest", +}) as any as S.Schema; export interface SendManagedThingCommandResponse { TraceId?: string; } -export const SendManagedThingCommandResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ TraceId: S.optional(S.String) }), - ).annotate({ - identifier: "SendManagedThingCommandResponse", - }) as any as S.Schema; +export const SendManagedThingCommandResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ TraceId: S.optional(S.String) }), +).annotate({ + identifier: "SendManagedThingCommandResponse", +}) as any as S.Schema; export type Role = "CONTROLLER" | "DEVICE" | (string & {}); export const Role = /*@__PURE__*/ S.String; export type AuthMaterialType = @@ -2536,16 +2492,15 @@ export interface WiFiSimpleSetupConfiguration { EnableAsProvisionee?: boolean; TimeoutInMinutes?: number; } -export const WiFiSimpleSetupConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - EnableAsProvisioner: S.optional(S.Boolean), - EnableAsProvisionee: S.optional(S.Boolean), - TimeoutInMinutes: S.optional(S.Number), - }), - ).annotate({ - identifier: "WiFiSimpleSetupConfiguration", - }) as any as S.Schema; +export const WiFiSimpleSetupConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + EnableAsProvisioner: S.optional(S.Boolean), + EnableAsProvisionee: S.optional(S.Boolean), + TimeoutInMinutes: S.optional(S.Number), + }), +).annotate({ + identifier: "WiFiSimpleSetupConfiguration", +}) as any as S.Schema; export type CapabilityReportProperties = string[]; export const CapabilityReportProperties = /*@__PURE__*/ S.Array(S.String); export type CapabilityReportActions = string[]; @@ -2968,78 +2923,74 @@ export const ListManagedThingsResponse = /*@__PURE__*/ S.suspend(() => export interface GetManagedThingCapabilitiesRequest { Identifier: string; } -export const GetManagedThingCapabilitiesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Identifier: S.String.pipe(T.HttpLabel("Identifier")) }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/managed-things-capabilities/{Identifier}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetManagedThingCapabilitiesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Identifier: S.String.pipe(T.HttpLabel("Identifier")) }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/managed-things-capabilities/{Identifier}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetManagedThingCapabilitiesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetManagedThingCapabilitiesRequest", +}) as any as S.Schema; export interface GetManagedThingCapabilitiesResponse { ManagedThingId?: string; Capabilities?: string; CapabilityReport?: CapabilityReport; } -export const GetManagedThingCapabilitiesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ManagedThingId: S.optional(S.String), - Capabilities: S.optional(S.String), - CapabilityReport: S.optional(CapabilityReport), - }), - ).annotate({ - identifier: "GetManagedThingCapabilitiesResponse", - }) as any as S.Schema; +export const GetManagedThingCapabilitiesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ManagedThingId: S.optional(S.String), + Capabilities: S.optional(S.String), + CapabilityReport: S.optional(CapabilityReport), + }), +).annotate({ + identifier: "GetManagedThingCapabilitiesResponse", +}) as any as S.Schema; export interface GetManagedThingCertificateRequest { Identifier: string; } -export const GetManagedThingCertificateRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Identifier: S.String.pipe(T.HttpLabel("Identifier")) }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/managed-things-certificate/{Identifier}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetManagedThingCertificateRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Identifier: S.String.pipe(T.HttpLabel("Identifier")) }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/managed-things-certificate/{Identifier}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetManagedThingCertificateRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetManagedThingCertificateRequest", +}) as any as S.Schema; export interface GetManagedThingCertificateResponse { ManagedThingId?: string; CertificatePem?: string; } -export const GetManagedThingCertificateResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ManagedThingId: S.optional(S.String), - CertificatePem: S.optional(S.String), - }), - ).annotate({ - identifier: "GetManagedThingCertificateResponse", - }) as any as S.Schema; +export const GetManagedThingCertificateResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ManagedThingId: S.optional(S.String), + CertificatePem: S.optional(S.String), + }), +).annotate({ + identifier: "GetManagedThingCertificateResponse", +}) as any as S.Schema; export interface GetManagedThingConnectivityDataRequest { Identifier: string; } -export const GetManagedThingConnectivityDataRequest = - /*@__PURE__*/ S.suspend(() => +export const GetManagedThingConnectivityDataRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Identifier: S.String.pipe(T.HttpLabel("Identifier")) }).pipe( T.all( T.Http({ @@ -3053,9 +3004,9 @@ export const GetManagedThingConnectivityDataRequest = rules, ), ), - ).annotate({ - identifier: "GetManagedThingConnectivityDataRequest", - }) as any as S.Schema; +).annotate({ + identifier: "GetManagedThingConnectivityDataRequest", +}) as any as S.Schema; export type DisconnectReasonValue = | "AUTH_ERROR" | "CLIENT_INITIATED_DISCONNECT" @@ -3079,48 +3030,46 @@ export interface GetManagedThingConnectivityDataResponse { Timestamp?: Date; DisconnectReason?: DisconnectReasonValue; } -export const GetManagedThingConnectivityDataResponse = - /*@__PURE__*/ S.suspend(() => +export const GetManagedThingConnectivityDataResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ ManagedThingId: S.optional(S.String), Connected: S.optional(S.Boolean), Timestamp: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), DisconnectReason: S.optional(DisconnectReasonValue), }), - ).annotate({ - identifier: "GetManagedThingConnectivityDataResponse", - }) as any as S.Schema; +).annotate({ + identifier: "GetManagedThingConnectivityDataResponse", +}) as any as S.Schema; export interface GetManagedThingMetaDataRequest { Identifier: string; } -export const GetManagedThingMetaDataRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Identifier: S.String.pipe(T.HttpLabel("Identifier")) }).pipe( - T.all( - T.Http({ method: "GET", uri: "/managed-things-metadata/{Identifier}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetManagedThingMetaDataRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Identifier: S.String.pipe(T.HttpLabel("Identifier")) }).pipe( + T.all( + T.Http({ method: "GET", uri: "/managed-things-metadata/{Identifier}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetManagedThingMetaDataRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetManagedThingMetaDataRequest", +}) as any as S.Schema; export interface GetManagedThingMetaDataResponse { ManagedThingId?: string; MetaData?: { [key: string]: string | undefined }; } -export const GetManagedThingMetaDataResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ManagedThingId: S.optional(S.String), - MetaData: S.optional(MetaData), - }), - ).annotate({ - identifier: "GetManagedThingMetaDataResponse", - }) as any as S.Schema; +export const GetManagedThingMetaDataResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ManagedThingId: S.optional(S.String), + MetaData: S.optional(MetaData), + }), +).annotate({ + identifier: "GetManagedThingMetaDataResponse", +}) as any as S.Schema; export interface ListManagedThingSchemasRequest { Identifier: string; EndpointIdFilter?: string; @@ -3128,31 +3077,30 @@ export interface ListManagedThingSchemasRequest { NextToken?: string; MaxResults?: number; } -export const ListManagedThingSchemasRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Identifier: S.String.pipe(T.HttpLabel("Identifier")), - EndpointIdFilter: S.optional(S.String).pipe( - T.HttpQuery("EndpointIdFilter"), - ), - CapabilityIdFilter: S.optional(S.String).pipe( - T.HttpQuery("CapabilityIdFilter"), - ), - NextToken: S.optional(S.String).pipe(T.HttpQuery("NextToken")), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("MaxResults")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/managed-thing-schemas/{Identifier}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListManagedThingSchemasRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Identifier: S.String.pipe(T.HttpLabel("Identifier")), + EndpointIdFilter: S.optional(S.String).pipe( + T.HttpQuery("EndpointIdFilter"), + ), + CapabilityIdFilter: S.optional(S.String).pipe( + T.HttpQuery("CapabilityIdFilter"), ), - ).annotate({ - identifier: "ListManagedThingSchemasRequest", - }) as any as S.Schema; + NextToken: S.optional(S.String).pipe(T.HttpQuery("NextToken")), + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("MaxResults")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/managed-thing-schemas/{Identifier}" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "ListManagedThingSchemasRequest", +}) as any as S.Schema; export interface ManagedThingSchemaListItem { EndpointId?: string; CapabilityId?: string; @@ -3168,44 +3116,40 @@ export const ManagedThingSchemaListItem = /*@__PURE__*/ S.suspend(() => identifier: "ManagedThingSchemaListItem", }) as any as S.Schema; export type ManagedThingSchemaListDefinition = ManagedThingSchemaListItem[]; -export const ManagedThingSchemaListDefinition = - /*@__PURE__*/ S.Array(ManagedThingSchemaListItem); +export const ManagedThingSchemaListDefinition = /*@__PURE__*/ S.Array( + ManagedThingSchemaListItem, +); export interface ListManagedThingSchemasResponse { Items?: ManagedThingSchemaListItem[]; NextToken?: string; } -export const ListManagedThingSchemasResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Items: S.optional(ManagedThingSchemaListDefinition), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListManagedThingSchemasResponse", - }) as any as S.Schema; +export const ListManagedThingSchemasResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Items: S.optional(ManagedThingSchemaListDefinition), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListManagedThingSchemasResponse", +}) as any as S.Schema; export interface GetManagedThingStateRequest { ManagedThingId: string; } -export const GetManagedThingStateRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ManagedThingId: S.String.pipe(T.HttpLabel("ManagedThingId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/managed-thing-states/{ManagedThingId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetManagedThingStateRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ManagedThingId: S.String.pipe(T.HttpLabel("ManagedThingId")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/managed-thing-states/{ManagedThingId}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetManagedThingStateRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetManagedThingStateRequest", +}) as any as S.Schema; export interface StateCapability { id: string; name: string; @@ -3236,12 +3180,11 @@ export const StateEndpoints = /*@__PURE__*/ S.Array(StateEndpoint); export interface GetManagedThingStateResponse { Endpoints: StateEndpoint[]; } -export const GetManagedThingStateResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Endpoints: StateEndpoints }), - ).annotate({ - identifier: "GetManagedThingStateResponse", - }) as any as S.Schema; +export const GetManagedThingStateResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Endpoints: StateEndpoints }), +).annotate({ + identifier: "GetManagedThingStateResponse", +}) as any as S.Schema; export type EventType = | "DEVICE_COMMAND" | "DEVICE_COMMAND_REQUEST" @@ -3262,8 +3205,8 @@ export interface CreateNotificationConfigurationRequest { ClientToken?: string; Tags?: { [key: string]: string | undefined }; } -export const CreateNotificationConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const CreateNotificationConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ EventType: EventType, DestinationName: S.String, @@ -3279,23 +3222,22 @@ export const CreateNotificationConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "CreateNotificationConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "CreateNotificationConfigurationRequest", +}) as any as S.Schema; export interface CreateNotificationConfigurationResponse { EventType?: EventType; } -export const CreateNotificationConfigurationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ EventType: S.optional(EventType) }), - ).annotate({ - identifier: "CreateNotificationConfigurationResponse", - }) as any as S.Schema; +export const CreateNotificationConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ EventType: S.optional(EventType) }), +).annotate({ + identifier: "CreateNotificationConfigurationResponse", +}) as any as S.Schema; export interface DeleteNotificationConfigurationRequest { EventType: EventType; } -export const DeleteNotificationConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const DeleteNotificationConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ EventType: EventType.pipe(T.HttpLabel("EventType")) }).pipe( T.all( T.Http({ @@ -3309,35 +3251,35 @@ export const DeleteNotificationConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "DeleteNotificationConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteNotificationConfigurationRequest", +}) as any as S.Schema; export interface DeleteNotificationConfigurationResponse {} -export const DeleteNotificationConfigurationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteNotificationConfigurationResponse", - }) as any as S.Schema; +export const DeleteNotificationConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}), +).annotate({ + identifier: "DeleteNotificationConfigurationResponse", +}) as any as S.Schema; export interface GetNotificationConfigurationRequest { EventType: EventType; } -export const GetNotificationConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ EventType: EventType.pipe(T.HttpLabel("EventType")) }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/notification-configurations/{EventType}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetNotificationConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ EventType: EventType.pipe(T.HttpLabel("EventType")) }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/notification-configurations/{EventType}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetNotificationConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetNotificationConfigurationRequest", +}) as any as S.Schema; export interface GetNotificationConfigurationResponse { EventType?: EventType; DestinationName?: string; @@ -3345,8 +3287,8 @@ export interface GetNotificationConfigurationResponse { UpdatedAt?: Date; Tags?: { [key: string]: string | undefined }; } -export const GetNotificationConfigurationResponse = - /*@__PURE__*/ S.suspend(() => +export const GetNotificationConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ EventType: S.optional(EventType), DestinationName: S.optional(S.String), @@ -3354,15 +3296,15 @@ export const GetNotificationConfigurationResponse = UpdatedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), Tags: S.optional(TagsMap), }), - ).annotate({ - identifier: "GetNotificationConfigurationResponse", - }) as any as S.Schema; +).annotate({ + identifier: "GetNotificationConfigurationResponse", +}) as any as S.Schema; export interface ListNotificationConfigurationsRequest { MaxResults?: number; NextToken?: string; } -export const ListNotificationConfigurationsRequest = - /*@__PURE__*/ S.suspend(() => +export const ListNotificationConfigurationsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ MaxResults: S.optional(S.Number).pipe(T.HttpQuery("MaxResults")), NextToken: S.optional(S.String).pipe(T.HttpQuery("NextToken")), @@ -3376,47 +3318,47 @@ export const ListNotificationConfigurationsRequest = rules, ), ), - ).annotate({ - identifier: "ListNotificationConfigurationsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListNotificationConfigurationsRequest", +}) as any as S.Schema; export interface NotificationConfigurationSummary { EventType?: EventType; DestinationName?: string; } -export const NotificationConfigurationSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - EventType: S.optional(EventType), - DestinationName: S.optional(S.String), - }), - ).annotate({ - identifier: "NotificationConfigurationSummary", - }) as any as S.Schema; +export const NotificationConfigurationSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + EventType: S.optional(EventType), + DestinationName: S.optional(S.String), + }), +).annotate({ + identifier: "NotificationConfigurationSummary", +}) as any as S.Schema; export type NotificationConfigurationListDefinition = NotificationConfigurationSummary[]; -export const NotificationConfigurationListDefinition = - /*@__PURE__*/ S.Array(NotificationConfigurationSummary); +export const NotificationConfigurationListDefinition = /*@__PURE__*/ S.Array( + NotificationConfigurationSummary, +); export interface ListNotificationConfigurationsResponse { NotificationConfigurationList?: NotificationConfigurationSummary[]; NextToken?: string; } -export const ListNotificationConfigurationsResponse = - /*@__PURE__*/ S.suspend(() => +export const ListNotificationConfigurationsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ NotificationConfigurationList: S.optional( NotificationConfigurationListDefinition, ), NextToken: S.optional(S.String), }), - ).annotate({ - identifier: "ListNotificationConfigurationsResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListNotificationConfigurationsResponse", +}) as any as S.Schema; export interface UpdateNotificationConfigurationRequest { EventType: EventType; DestinationName: string; } -export const UpdateNotificationConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const UpdateNotificationConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ EventType: EventType.pipe(T.HttpLabel("EventType")), DestinationName: S.String, @@ -3433,14 +3375,15 @@ export const UpdateNotificationConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "UpdateNotificationConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateNotificationConfigurationRequest", +}) as any as S.Schema; export interface UpdateNotificationConfigurationResponse {} -export const UpdateNotificationConfigurationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateNotificationConfigurationResponse", - }) as any as S.Schema; +export const UpdateNotificationConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}), +).annotate({ + identifier: "UpdateNotificationConfigurationResponse", +}) as any as S.Schema; export type AbortCriteriaAction = "CANCEL" | (string & {}); export const AbortCriteriaAction = /*@__PURE__*/ S.String; export type AbortCriteriaFailureType = @@ -3481,15 +3424,14 @@ export interface RolloutRateIncreaseCriteria { numberOfNotifiedThings?: number; numberOfSucceededThings?: number; } -export const RolloutRateIncreaseCriteria = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - numberOfNotifiedThings: S.optional(S.Number), - numberOfSucceededThings: S.optional(S.Number), - }), - ).annotate({ - identifier: "RolloutRateIncreaseCriteria", - }) as any as S.Schema; +export const RolloutRateIncreaseCriteria = /*@__PURE__*/ S.suspend(() => + S.Struct({ + numberOfNotifiedThings: S.optional(S.Number), + numberOfSucceededThings: S.optional(S.Number), + }), +).annotate({ + identifier: "RolloutRateIncreaseCriteria", +}) as any as S.Schema; export interface ExponentialRolloutRate { BaseRatePerMinute?: number; IncrementFactor?: number; @@ -3508,15 +3450,14 @@ export interface OtaTaskExecutionRolloutConfig { ExponentialRolloutRate?: ExponentialRolloutRate; MaximumPerMinute?: number; } -export const OtaTaskExecutionRolloutConfig = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ExponentialRolloutRate: S.optional(ExponentialRolloutRate), - MaximumPerMinute: S.optional(S.Number), - }), - ).annotate({ - identifier: "OtaTaskExecutionRolloutConfig", - }) as any as S.Schema; +export const OtaTaskExecutionRolloutConfig = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ExponentialRolloutRate: S.optional(ExponentialRolloutRate), + MaximumPerMinute: S.optional(S.Number), + }), +).annotate({ + identifier: "OtaTaskExecutionRolloutConfig", +}) as any as S.Schema; export interface OtaTaskTimeoutConfig { InProgressTimeoutInMinutes?: number; } @@ -3543,79 +3484,76 @@ export interface CreateOtaTaskConfigurationRequest { PushConfig?: PushConfig; ClientToken?: string; } -export const CreateOtaTaskConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Description: S.optional(S.String), - Name: S.optional(SensitiveString), - PushConfig: S.optional(PushConfig), - ClientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/ota-task-configurations" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateOtaTaskConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Description: S.optional(S.String), + Name: S.optional(SensitiveString), + PushConfig: S.optional(PushConfig), + ClientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/ota-task-configurations" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateOtaTaskConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateOtaTaskConfigurationRequest", +}) as any as S.Schema; export interface CreateOtaTaskConfigurationResponse { TaskConfigurationId?: string; } -export const CreateOtaTaskConfigurationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ TaskConfigurationId: S.optional(S.String) }), - ).annotate({ - identifier: "CreateOtaTaskConfigurationResponse", - }) as any as S.Schema; +export const CreateOtaTaskConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ TaskConfigurationId: S.optional(S.String) }), +).annotate({ + identifier: "CreateOtaTaskConfigurationResponse", +}) as any as S.Schema; export interface DeleteOtaTaskConfigurationRequest { Identifier: string; } -export const DeleteOtaTaskConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Identifier: S.String.pipe(T.HttpLabel("Identifier")) }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/ota-task-configurations/{Identifier}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteOtaTaskConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Identifier: S.String.pipe(T.HttpLabel("Identifier")) }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/ota-task-configurations/{Identifier}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteOtaTaskConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteOtaTaskConfigurationRequest", +}) as any as S.Schema; export interface DeleteOtaTaskConfigurationResponse {} -export const DeleteOtaTaskConfigurationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteOtaTaskConfigurationResponse", - }) as any as S.Schema; +export const DeleteOtaTaskConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteOtaTaskConfigurationResponse", +}) as any as S.Schema; export interface GetOtaTaskConfigurationRequest { Identifier: string; } -export const GetOtaTaskConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Identifier: S.String.pipe(T.HttpLabel("Identifier")) }).pipe( - T.all( - T.Http({ method: "GET", uri: "/ota-task-configurations/{Identifier}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetOtaTaskConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Identifier: S.String.pipe(T.HttpLabel("Identifier")) }).pipe( + T.all( + T.Http({ method: "GET", uri: "/ota-task-configurations/{Identifier}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetOtaTaskConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetOtaTaskConfigurationRequest", +}) as any as S.Schema; export interface GetOtaTaskConfigurationResponse { TaskConfigurationId?: string; Name?: string | redacted.Redacted; @@ -3623,71 +3561,68 @@ export interface GetOtaTaskConfigurationResponse { Description?: string; CreatedAt?: Date; } -export const GetOtaTaskConfigurationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TaskConfigurationId: S.optional(S.String), - Name: S.optional(SensitiveString), - PushConfig: S.optional(PushConfig), - Description: S.optional(S.String), - CreatedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - }), - ).annotate({ - identifier: "GetOtaTaskConfigurationResponse", - }) as any as S.Schema; +export const GetOtaTaskConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TaskConfigurationId: S.optional(S.String), + Name: S.optional(SensitiveString), + PushConfig: S.optional(PushConfig), + Description: S.optional(S.String), + CreatedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + }), +).annotate({ + identifier: "GetOtaTaskConfigurationResponse", +}) as any as S.Schema; export interface ListOtaTaskConfigurationsRequest { NextToken?: string; MaxResults?: number; } -export const ListOtaTaskConfigurationsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - NextToken: S.optional(S.String).pipe(T.HttpQuery("NextToken")), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("MaxResults")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/ota-task-configurations" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListOtaTaskConfigurationsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + NextToken: S.optional(S.String).pipe(T.HttpQuery("NextToken")), + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("MaxResults")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/ota-task-configurations" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListOtaTaskConfigurationsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListOtaTaskConfigurationsRequest", +}) as any as S.Schema; export interface OtaTaskConfigurationSummary { TaskConfigurationId?: string; Name?: string | redacted.Redacted; CreatedAt?: Date; } -export const OtaTaskConfigurationSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TaskConfigurationId: S.optional(S.String), - Name: S.optional(SensitiveString), - CreatedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - }), - ).annotate({ - identifier: "OtaTaskConfigurationSummary", - }) as any as S.Schema; +export const OtaTaskConfigurationSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TaskConfigurationId: S.optional(S.String), + Name: S.optional(SensitiveString), + CreatedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + }), +).annotate({ + identifier: "OtaTaskConfigurationSummary", +}) as any as S.Schema; export type OtaTaskConfigurationListDefinition = OtaTaskConfigurationSummary[]; -export const OtaTaskConfigurationListDefinition = - /*@__PURE__*/ S.Array(OtaTaskConfigurationSummary); +export const OtaTaskConfigurationListDefinition = /*@__PURE__*/ S.Array( + OtaTaskConfigurationSummary, +); export interface ListOtaTaskConfigurationsResponse { Items?: OtaTaskConfigurationSummary[]; NextToken?: string; } -export const ListOtaTaskConfigurationsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Items: S.optional(OtaTaskConfigurationListDefinition), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListOtaTaskConfigurationsResponse", - }) as any as S.Schema; +export const ListOtaTaskConfigurationsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Items: S.optional(OtaTaskConfigurationListDefinition), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListOtaTaskConfigurationsResponse", +}) as any as S.Schema; export type OtaProtocol = "HTTP" | (string & {}); export const OtaProtocol = /*@__PURE__*/ S.String; export type Target = string[]; @@ -3715,8 +3650,9 @@ export const ScheduleMaintenanceWindow = /*@__PURE__*/ S.suspend(() => identifier: "ScheduleMaintenanceWindow", }) as any as S.Schema; export type ScheduleMaintenanceWindowList = ScheduleMaintenanceWindow[]; -export const ScheduleMaintenanceWindowList = - /*@__PURE__*/ S.Array(ScheduleMaintenanceWindow); +export const ScheduleMaintenanceWindowList = /*@__PURE__*/ S.Array( + ScheduleMaintenanceWindow, +); export interface OtaTaskSchedulingConfig { EndBehavior?: SchedulingConfigEndBehavior; EndTime?: string; @@ -3757,12 +3693,11 @@ export const RetryConfigCriteriaList = export interface OtaTaskExecutionRetryConfig { RetryConfigCriteria?: RetryConfigCriteria[]; } -export const OtaTaskExecutionRetryConfig = - /*@__PURE__*/ S.suspend(() => - S.Struct({ RetryConfigCriteria: S.optional(RetryConfigCriteriaList) }), - ).annotate({ - identifier: "OtaTaskExecutionRetryConfig", - }) as any as S.Schema; +export const OtaTaskExecutionRetryConfig = /*@__PURE__*/ S.suspend(() => + S.Struct({ RetryConfigCriteria: S.optional(RetryConfigCriteriaList) }), +).annotate({ + identifier: "OtaTaskExecutionRetryConfig", +}) as any as S.Schema; export interface CreateOtaTaskRequest { Description?: string; S3Url: string; @@ -4021,25 +3956,24 @@ export interface ListOtaTaskExecutionsRequest { NextToken?: string; MaxResults?: number; } -export const ListOtaTaskExecutionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Identifier: S.String.pipe(T.HttpLabel("Identifier")), - NextToken: S.optional(S.String).pipe(T.HttpQuery("NextToken")), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("MaxResults")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/ota-tasks/{Identifier}/devices" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListOtaTaskExecutionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Identifier: S.String.pipe(T.HttpLabel("Identifier")), + NextToken: S.optional(S.String).pipe(T.HttpQuery("NextToken")), + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("MaxResults")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/ota-tasks/{Identifier}/devices" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListOtaTaskExecutionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListOtaTaskExecutionsRequest", +}) as any as S.Schema; export type OtaTaskExecutionStatus = | "QUEUED" | "IN_PROGRESS" @@ -4085,21 +4019,21 @@ export const OtaTaskExecutionSummaries = /*@__PURE__*/ S.suspend(() => }) as any as S.Schema; export type OtaTaskExecutionSummariesListDefinition = OtaTaskExecutionSummaries[]; -export const OtaTaskExecutionSummariesListDefinition = - /*@__PURE__*/ S.Array(OtaTaskExecutionSummaries); +export const OtaTaskExecutionSummariesListDefinition = /*@__PURE__*/ S.Array( + OtaTaskExecutionSummaries, +); export interface ListOtaTaskExecutionsResponse { ExecutionSummaries?: OtaTaskExecutionSummaries[]; NextToken?: string; } -export const ListOtaTaskExecutionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ExecutionSummaries: S.optional(OtaTaskExecutionSummariesListDefinition), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListOtaTaskExecutionsResponse", - }) as any as S.Schema; +export const ListOtaTaskExecutionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ExecutionSummaries: S.optional(OtaTaskExecutionSummariesListDefinition), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListOtaTaskExecutionsResponse", +}) as any as S.Schema; export type ProvisioningType = "FLEET_PROVISIONING" | "JITR" | (string & {}); export const ProvisioningType = /*@__PURE__*/ S.String; export interface CreateProvisioningProfileRequest { @@ -4110,28 +4044,27 @@ export interface CreateProvisioningProfileRequest { ClientToken?: string; Tags?: { [key: string]: string | undefined }; } -export const CreateProvisioningProfileRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ProvisioningType: ProvisioningType, - CaCertificate: S.optional(SensitiveString), - ClaimCertificate: S.optional(SensitiveString), - Name: S.optional(S.String), - ClientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - Tags: S.optional(TagsMap), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/provisioning-profiles" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateProvisioningProfileRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ProvisioningType: ProvisioningType, + CaCertificate: S.optional(SensitiveString), + ClaimCertificate: S.optional(SensitiveString), + Name: S.optional(S.String), + ClientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + Tags: S.optional(TagsMap), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/provisioning-profiles" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateProvisioningProfileRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateProvisioningProfileRequest", +}) as any as S.Schema; export type ProvisioningProfileStatus = | "CREATE_IN_PROGRESS" | "CREATE_FAILED" @@ -4149,38 +4082,36 @@ export interface CreateProvisioningProfileResponse { ClaimCertificate?: string | redacted.Redacted; ClaimCertificatePrivateKey?: string | redacted.Redacted; } -export const CreateProvisioningProfileResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Arn: S.optional(S.String), - Name: S.optional(S.String), - ProvisioningType: S.optional(ProvisioningType), - Id: S.optional(S.String), - Status: S.optional(ProvisioningProfileStatus), - ClaimCertificate: S.optional(SensitiveString), - ClaimCertificatePrivateKey: S.optional(SensitiveString), - }), - ).annotate({ - identifier: "CreateProvisioningProfileResponse", - }) as any as S.Schema; +export const CreateProvisioningProfileResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Arn: S.optional(S.String), + Name: S.optional(S.String), + ProvisioningType: S.optional(ProvisioningType), + Id: S.optional(S.String), + Status: S.optional(ProvisioningProfileStatus), + ClaimCertificate: S.optional(SensitiveString), + ClaimCertificatePrivateKey: S.optional(SensitiveString), + }), +).annotate({ + identifier: "CreateProvisioningProfileResponse", +}) as any as S.Schema; export interface GetProvisioningProfileRequest { Identifier: string; } -export const GetProvisioningProfileRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Identifier: S.String.pipe(T.HttpLabel("Identifier")) }).pipe( - T.all( - T.Http({ method: "GET", uri: "/provisioning-profiles/{Identifier}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetProvisioningProfileRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Identifier: S.String.pipe(T.HttpLabel("Identifier")) }).pipe( + T.all( + T.Http({ method: "GET", uri: "/provisioning-profiles/{Identifier}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetProvisioningProfileRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetProvisioningProfileRequest", +}) as any as S.Schema; export interface GetProvisioningProfileResponse { Arn?: string; Name?: string; @@ -4190,68 +4121,63 @@ export interface GetProvisioningProfileResponse { ClaimCertificate?: string | redacted.Redacted; Tags?: { [key: string]: string | undefined }; } -export const GetProvisioningProfileResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Arn: S.optional(S.String), - Name: S.optional(S.String), - ProvisioningType: S.optional(ProvisioningType), - Id: S.optional(S.String), - Status: S.optional(ProvisioningProfileStatus), - ClaimCertificate: S.optional(SensitiveString), - Tags: S.optional(TagsMap), - }), - ).annotate({ - identifier: "GetProvisioningProfileResponse", - }) as any as S.Schema; +export const GetProvisioningProfileResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Arn: S.optional(S.String), + Name: S.optional(S.String), + ProvisioningType: S.optional(ProvisioningType), + Id: S.optional(S.String), + Status: S.optional(ProvisioningProfileStatus), + ClaimCertificate: S.optional(SensitiveString), + Tags: S.optional(TagsMap), + }), +).annotate({ + identifier: "GetProvisioningProfileResponse", +}) as any as S.Schema; export interface DeleteProvisioningProfileRequest { Identifier: string; } -export const DeleteProvisioningProfileRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Identifier: S.String.pipe(T.HttpLabel("Identifier")) }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/provisioning-profiles/{Identifier}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteProvisioningProfileRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Identifier: S.String.pipe(T.HttpLabel("Identifier")) }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/provisioning-profiles/{Identifier}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteProvisioningProfileRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteProvisioningProfileRequest", +}) as any as S.Schema; export interface DeleteProvisioningProfileResponse {} -export const DeleteProvisioningProfileResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteProvisioningProfileResponse", - }) as any as S.Schema; +export const DeleteProvisioningProfileResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteProvisioningProfileResponse", +}) as any as S.Schema; export interface ListProvisioningProfilesRequest { NextToken?: string; MaxResults?: number; } -export const ListProvisioningProfilesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - NextToken: S.optional(S.String).pipe(T.HttpQuery("NextToken")), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("MaxResults")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/provisioning-profiles" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListProvisioningProfilesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + NextToken: S.optional(S.String).pipe(T.HttpQuery("NextToken")), + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("MaxResults")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/provisioning-profiles" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListProvisioningProfilesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListProvisioningProfilesRequest", +}) as any as S.Schema; export interface ProvisioningProfileSummary { Name?: string; Id?: string; @@ -4271,44 +4197,43 @@ export const ProvisioningProfileSummary = /*@__PURE__*/ S.suspend(() => identifier: "ProvisioningProfileSummary", }) as any as S.Schema; export type ProvisioningProfileListDefinition = ProvisioningProfileSummary[]; -export const ProvisioningProfileListDefinition = - /*@__PURE__*/ S.Array(ProvisioningProfileSummary); +export const ProvisioningProfileListDefinition = /*@__PURE__*/ S.Array( + ProvisioningProfileSummary, +); export interface ListProvisioningProfilesResponse { Items?: ProvisioningProfileSummary[]; NextToken?: string; } -export const ListProvisioningProfilesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Items: S.optional(ProvisioningProfileListDefinition), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListProvisioningProfilesResponse", - }) as any as S.Schema; +export const ListProvisioningProfilesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Items: S.optional(ProvisioningProfileListDefinition), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListProvisioningProfilesResponse", +}) as any as S.Schema; export interface GetRuntimeLogConfigurationRequest { ManagedThingId: string; } -export const GetRuntimeLogConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ManagedThingId: S.String.pipe(T.HttpLabel("ManagedThingId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/runtime-log-configurations/{ManagedThingId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetRuntimeLogConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ManagedThingId: S.String.pipe(T.HttpLabel("ManagedThingId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/runtime-log-configurations/{ManagedThingId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetRuntimeLogConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetRuntimeLogConfigurationRequest", +}) as any as S.Schema; export interface RuntimeLogConfigurations { LogLevel?: LogLevel; LogFlushLevel?: LogLevel; @@ -4337,73 +4262,72 @@ export interface GetRuntimeLogConfigurationResponse { ManagedThingId?: string; RuntimeLogConfigurations?: RuntimeLogConfigurations; } -export const GetRuntimeLogConfigurationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ManagedThingId: S.optional(S.String), - RuntimeLogConfigurations: S.optional(RuntimeLogConfigurations), - }), - ).annotate({ - identifier: "GetRuntimeLogConfigurationResponse", - }) as any as S.Schema; +export const GetRuntimeLogConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ManagedThingId: S.optional(S.String), + RuntimeLogConfigurations: S.optional(RuntimeLogConfigurations), + }), +).annotate({ + identifier: "GetRuntimeLogConfigurationResponse", +}) as any as S.Schema; export interface PutRuntimeLogConfigurationRequest { ManagedThingId: string; RuntimeLogConfigurations: RuntimeLogConfigurations; } -export const PutRuntimeLogConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ManagedThingId: S.String.pipe(T.HttpLabel("ManagedThingId")), - RuntimeLogConfigurations: RuntimeLogConfigurations, - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/runtime-log-configurations/{ManagedThingId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const PutRuntimeLogConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ManagedThingId: S.String.pipe(T.HttpLabel("ManagedThingId")), + RuntimeLogConfigurations: RuntimeLogConfigurations, + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/runtime-log-configurations/{ManagedThingId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "PutRuntimeLogConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "PutRuntimeLogConfigurationRequest", +}) as any as S.Schema; export interface PutRuntimeLogConfigurationResponse {} -export const PutRuntimeLogConfigurationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "PutRuntimeLogConfigurationResponse", - }) as any as S.Schema; +export const PutRuntimeLogConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "PutRuntimeLogConfigurationResponse", +}) as any as S.Schema; export interface ResetRuntimeLogConfigurationRequest { ManagedThingId: string; } -export const ResetRuntimeLogConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ManagedThingId: S.String.pipe(T.HttpLabel("ManagedThingId")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/runtime-log-configurations/{ManagedThingId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ResetRuntimeLogConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ManagedThingId: S.String.pipe(T.HttpLabel("ManagedThingId")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/runtime-log-configurations/{ManagedThingId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ResetRuntimeLogConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ResetRuntimeLogConfigurationRequest", +}) as any as S.Schema; export interface ResetRuntimeLogConfigurationResponse {} -export const ResetRuntimeLogConfigurationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "ResetRuntimeLogConfigurationResponse", - }) as any as S.Schema; +export const ResetRuntimeLogConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}), +).annotate({ + identifier: "ResetRuntimeLogConfigurationResponse", +}) as any as S.Schema; export type SchemaVersionType = "capability" | "definition" | (string & {}); export const SchemaVersionType = /*@__PURE__*/ S.String; export interface GetSchemaVersionRequest { @@ -4530,10 +4454,12 @@ export const ListSchemaVersionsResponse = /*@__PURE__*/ S.suspend(() => export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { Message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", @@ -4542,42 +4468,52 @@ export class ResourceNotFoundException extends S.TaggedErrorClass()( "ServiceUnavailableException", { Message: S.optional(S.String) }, + T.HttpError(503), ).pipe(C.withServerError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", { Message: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class UnauthorizedException extends S.TaggedErrorClass()( "UnauthorizedException", { Message: S.optional(S.String) }, + T.HttpError(401), ).pipe(C.withAuthError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidRequestException extends S.TaggedErrorClass()( "InvalidRequestException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", { Message: S.optional(S.String) }, + T.HttpError(402), ).pipe(C.withQuotaError) {} export class InternalFailureException extends S.TaggedErrorClass()( "InternalFailureException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class LimitExceededException extends S.TaggedErrorClass()( "LimitExceededException", { Message: S.optional(S.String) }, + T.HttpError(410), ).pipe(C.withBadRequestError) {} //# Operations diff --git a/packages/aws/src/services/iot-wireless.ts b/packages/aws/src/services/iot-wireless.ts index 21e6e182c1..8f6e034920 100644 --- a/packages/aws/src/services/iot-wireless.ts +++ b/packages/aws/src/services/iot-wireless.ts @@ -468,8 +468,8 @@ export interface AssociateWirelessDeviceWithThingRequest { Id: string; ThingArn: string; } -export const AssociateWirelessDeviceWithThingRequest = - /*@__PURE__*/ S.suspend(() => +export const AssociateWirelessDeviceWithThingRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")), ThingArn: S.String }).pipe( T.all( T.Http({ method: "PUT", uri: "/wireless-devices/{Id}/thing" }), @@ -480,14 +480,15 @@ export const AssociateWirelessDeviceWithThingRequest = rules, ), ), - ).annotate({ - identifier: "AssociateWirelessDeviceWithThingRequest", - }) as any as S.Schema; +).annotate({ + identifier: "AssociateWirelessDeviceWithThingRequest", +}) as any as S.Schema; export interface AssociateWirelessDeviceWithThingResponse {} -export const AssociateWirelessDeviceWithThingResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "AssociateWirelessDeviceWithThingResponse", - }) as any as S.Schema; +export const AssociateWirelessDeviceWithThingResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}), +).annotate({ + identifier: "AssociateWirelessDeviceWithThingResponse", +}) as any as S.Schema; export interface AssociateWirelessGatewayWithCertificateRequest { Id: string; IotCertificateId: string; @@ -523,8 +524,8 @@ export interface AssociateWirelessGatewayWithThingRequest { Id: string; ThingArn: string; } -export const AssociateWirelessGatewayWithThingRequest = - /*@__PURE__*/ S.suspend(() => +export const AssociateWirelessGatewayWithThingRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")), ThingArn: S.String }).pipe( T.all( T.Http({ method: "PUT", uri: "/wireless-gateways/{Id}/thing" }), @@ -535,9 +536,9 @@ export const AssociateWirelessGatewayWithThingRequest = rules, ), ), - ).annotate({ - identifier: "AssociateWirelessGatewayWithThingRequest", - }) as any as S.Schema; +).annotate({ + identifier: "AssociateWirelessGatewayWithThingRequest", +}) as any as S.Schema; export interface AssociateWirelessGatewayWithThingResponse {} export const AssociateWirelessGatewayWithThingResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ @@ -546,26 +547,26 @@ export const AssociateWirelessGatewayWithThingResponse = export interface CancelMulticastGroupSessionRequest { Id: string; } -export const CancelMulticastGroupSessionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/multicast-groups/{Id}/session" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CancelMulticastGroupSessionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/multicast-groups/{Id}/session" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CancelMulticastGroupSessionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CancelMulticastGroupSessionRequest", +}) as any as S.Schema; export interface CancelMulticastGroupSessionResponse {} -export const CancelMulticastGroupSessionResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "CancelMulticastGroupSessionResponse", - }) as any as S.Schema; +export const CancelMulticastGroupSessionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "CancelMulticastGroupSessionResponse", +}) as any as S.Schema; export type ExpressionType = "RuleName" | "MqttTopic" | (string & {}); export const ExpressionType = /*@__PURE__*/ S.String; export interface CreateDestinationRequest { @@ -657,10 +658,11 @@ export const LoRaWANDeviceProfile = /*@__PURE__*/ S.suspend(() => identifier: "LoRaWANDeviceProfile", }) as any as S.Schema; export interface SidewalkCreateDeviceProfile {} -export const SidewalkCreateDeviceProfile = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "SidewalkCreateDeviceProfile", - }) as any as S.Schema; +export const SidewalkCreateDeviceProfile = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "SidewalkCreateDeviceProfile", +}) as any as S.Schema; export interface CreateDeviceProfileRequest { Name?: string; LoRaWAN?: LoRaWANDeviceProfile; @@ -692,12 +694,11 @@ export interface CreateDeviceProfileResponse { Arn?: string; Id?: string; } -export const CreateDeviceProfileResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Arn: S.optional(S.String), Id: S.optional(S.String) }), - ).annotate({ - identifier: "CreateDeviceProfileResponse", - }) as any as S.Schema; +export const CreateDeviceProfileResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Arn: S.optional(S.String), Id: S.optional(S.String) }), +).annotate({ + identifier: "CreateDeviceProfileResponse", +}) as any as S.Schema; export type SupportedRfRegion = | "EU868" | "US915" @@ -778,15 +779,14 @@ export interface ParticipatingGatewaysMulticast { GatewayList?: string[]; TransmissionInterval?: number; } -export const ParticipatingGatewaysMulticast = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - GatewayList: S.optional(GatewayListMulticast), - TransmissionInterval: S.optional(S.Number), - }), - ).annotate({ - identifier: "ParticipatingGatewaysMulticast", - }) as any as S.Schema; +export const ParticipatingGatewaysMulticast = /*@__PURE__*/ S.suspend(() => + S.Struct({ + GatewayList: S.optional(GatewayListMulticast), + TransmissionInterval: S.optional(S.Number), + }), +).annotate({ + identifier: "ParticipatingGatewaysMulticast", +}) as any as S.Schema; export interface LoRaWANMulticast { RfRegion?: SupportedRfRegion; DlClass?: DlClass; @@ -808,37 +808,35 @@ export interface CreateMulticastGroupRequest { LoRaWAN: LoRaWANMulticast; Tags?: Tag[]; } -export const CreateMulticastGroupRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Name: S.optional(S.String), - Description: S.optional(S.String), - ClientRequestToken: S.optional(S.String).pipe(T.IdempotencyToken()), - LoRaWAN: LoRaWANMulticast, - Tags: S.optional(TagList), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/multicast-groups" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateMulticastGroupRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.optional(S.String), + Description: S.optional(S.String), + ClientRequestToken: S.optional(S.String).pipe(T.IdempotencyToken()), + LoRaWAN: LoRaWANMulticast, + Tags: S.optional(TagList), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/multicast-groups" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateMulticastGroupRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateMulticastGroupRequest", +}) as any as S.Schema; export interface CreateMulticastGroupResponse { Arn?: string; Id?: string; } -export const CreateMulticastGroupResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Arn: S.optional(S.String), Id: S.optional(S.String) }), - ).annotate({ - identifier: "CreateMulticastGroupResponse", - }) as any as S.Schema; +export const CreateMulticastGroupResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Arn: S.optional(S.String), Id: S.optional(S.String) }), +).annotate({ + identifier: "CreateMulticastGroupResponse", +}) as any as S.Schema; export type WirelessDeviceFrameInfo = "ENABLED" | "DISABLED" | (string & {}); export const WirelessDeviceFrameInfo = /*@__PURE__*/ S.String; export type LogLevel = "INFO" | "ERROR" | "DISABLED" | (string & {}); @@ -862,8 +860,9 @@ export const WirelessDeviceList = /*@__PURE__*/ S.Array(S.String); export type WirelessGatewayList = string[]; export const WirelessGatewayList = /*@__PURE__*/ S.Array(S.String); export type NetworkAnalyzerMulticastGroupList = string[]; -export const NetworkAnalyzerMulticastGroupList = - /*@__PURE__*/ S.Array(S.String); +export const NetworkAnalyzerMulticastGroupList = /*@__PURE__*/ S.Array( + S.String, +); export interface CreateNetworkAnalyzerConfigurationRequest { Name: string; TraceContent?: TraceContent; @@ -940,76 +939,74 @@ export interface CreateServiceProfileRequest { Tags?: Tag[]; ClientRequestToken?: string; } -export const CreateServiceProfileRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Name: S.optional(S.String), - LoRaWAN: S.optional(LoRaWANServiceProfile), - Tags: S.optional(TagList), - ClientRequestToken: S.optional(S.String).pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/service-profiles" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateServiceProfileRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.optional(S.String), + LoRaWAN: S.optional(LoRaWANServiceProfile), + Tags: S.optional(TagList), + ClientRequestToken: S.optional(S.String).pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/service-profiles" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateServiceProfileRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateServiceProfileRequest", +}) as any as S.Schema; export interface CreateServiceProfileResponse { Arn?: string; Id?: string; } -export const CreateServiceProfileResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Arn: S.optional(S.String), Id: S.optional(S.String) }), - ).annotate({ - identifier: "CreateServiceProfileResponse", - }) as any as S.Schema; +export const CreateServiceProfileResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Arn: S.optional(S.String), Id: S.optional(S.String) }), +).annotate({ + identifier: "CreateServiceProfileResponse", +}) as any as S.Schema; export type WirelessDeviceType = "Sidewalk" | "LoRaWAN" | (string & {}); export const WirelessDeviceType = /*@__PURE__*/ S.String; export interface OtaaV1_1 { - AppKey?: string; - NwkKey?: string; + AppKey?: string | redacted.Redacted; + NwkKey?: string | redacted.Redacted; JoinEui?: string; } export const OtaaV1_1 = /*@__PURE__*/ S.suspend(() => S.Struct({ - AppKey: S.optional(S.String), - NwkKey: S.optional(S.String), + AppKey: S.optional(SensitiveString), + NwkKey: S.optional(SensitiveString), JoinEui: S.optional(S.String), }), ).annotate({ identifier: "OtaaV1_1" }) as any as S.Schema; export interface OtaaV1_0_x { - AppKey?: string; + AppKey?: string | redacted.Redacted; AppEui?: string; JoinEui?: string; - GenAppKey?: string; + GenAppKey?: string | redacted.Redacted; } export const OtaaV1_0_x = /*@__PURE__*/ S.suspend(() => S.Struct({ - AppKey: S.optional(S.String), + AppKey: S.optional(SensitiveString), AppEui: S.optional(S.String), JoinEui: S.optional(S.String), - GenAppKey: S.optional(S.String), + GenAppKey: S.optional(SensitiveString), }), ).annotate({ identifier: "OtaaV1_0_x" }) as any as S.Schema; export interface SessionKeysAbpV1_1 { - FNwkSIntKey?: string; - SNwkSIntKey?: string; - NwkSEncKey?: string; - AppSKey?: string; + FNwkSIntKey?: string | redacted.Redacted; + SNwkSIntKey?: string | redacted.Redacted; + NwkSEncKey?: string | redacted.Redacted; + AppSKey?: string | redacted.Redacted; } export const SessionKeysAbpV1_1 = /*@__PURE__*/ S.suspend(() => S.Struct({ - FNwkSIntKey: S.optional(S.String), - SNwkSIntKey: S.optional(S.String), - NwkSEncKey: S.optional(S.String), - AppSKey: S.optional(S.String), + FNwkSIntKey: S.optional(SensitiveString), + SNwkSIntKey: S.optional(SensitiveString), + NwkSEncKey: S.optional(SensitiveString), + AppSKey: S.optional(SensitiveString), }), ).annotate({ identifier: "SessionKeysAbpV1_1", @@ -1027,11 +1024,14 @@ export const AbpV1_1 = /*@__PURE__*/ S.suspend(() => }), ).annotate({ identifier: "AbpV1_1" }) as any as S.Schema; export interface SessionKeysAbpV1_0_x { - NwkSKey?: string; - AppSKey?: string; + NwkSKey?: string | redacted.Redacted; + AppSKey?: string | redacted.Redacted; } export const SessionKeysAbpV1_0_x = /*@__PURE__*/ S.suspend(() => - S.Struct({ NwkSKey: S.optional(S.String), AppSKey: S.optional(S.String) }), + S.Struct({ + NwkSKey: S.optional(SensitiveString), + AppSKey: S.optional(SensitiveString), + }), ).annotate({ identifier: "SessionKeysAbpV1_0_x", }) as any as S.Schema; @@ -1130,16 +1130,15 @@ export interface SidewalkCreateWirelessDevice { Positioning?: SidewalkPositioning; SidewalkManufacturingSn?: string; } -export const SidewalkCreateWirelessDevice = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DeviceProfileId: S.optional(S.String), - Positioning: S.optional(SidewalkPositioning), - SidewalkManufacturingSn: S.optional(S.String), - }), - ).annotate({ - identifier: "SidewalkCreateWirelessDevice", - }) as any as S.Schema; +export const SidewalkCreateWirelessDevice = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DeviceProfileId: S.optional(S.String), + Positioning: S.optional(SidewalkPositioning), + SidewalkManufacturingSn: S.optional(S.String), + }), +).annotate({ + identifier: "SidewalkCreateWirelessDevice", +}) as any as S.Schema; export interface CreateWirelessDeviceRequest { Type: WirelessDeviceType; Name?: string; @@ -1151,41 +1150,39 @@ export interface CreateWirelessDeviceRequest { Positioning?: PositioningConfigStatus; Sidewalk?: SidewalkCreateWirelessDevice; } -export const CreateWirelessDeviceRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Type: WirelessDeviceType, - Name: S.optional(S.String), - Description: S.optional(S.String), - DestinationName: S.String, - ClientRequestToken: S.optional(S.String).pipe(T.IdempotencyToken()), - LoRaWAN: S.optional(LoRaWANDevice), - Tags: S.optional(TagList), - Positioning: S.optional(PositioningConfigStatus), - Sidewalk: S.optional(SidewalkCreateWirelessDevice), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/wireless-devices" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateWirelessDeviceRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Type: WirelessDeviceType, + Name: S.optional(S.String), + Description: S.optional(S.String), + DestinationName: S.String, + ClientRequestToken: S.optional(S.String).pipe(T.IdempotencyToken()), + LoRaWAN: S.optional(LoRaWANDevice), + Tags: S.optional(TagList), + Positioning: S.optional(PositioningConfigStatus), + Sidewalk: S.optional(SidewalkCreateWirelessDevice), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/wireless-devices" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateWirelessDeviceRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateWirelessDeviceRequest", +}) as any as S.Schema; export interface CreateWirelessDeviceResponse { Arn?: string; Id?: string; } -export const CreateWirelessDeviceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Arn: S.optional(S.String), Id: S.optional(S.String) }), - ).annotate({ - identifier: "CreateWirelessDeviceResponse", - }) as any as S.Schema; +export const CreateWirelessDeviceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Arn: S.optional(S.String), Id: S.optional(S.String) }), +).annotate({ + identifier: "CreateWirelessDeviceResponse", +}) as any as S.Schema; export type JoinEuiRange = string[]; export const JoinEuiRange = /*@__PURE__*/ S.Array(S.String); export type JoinEuiFilters = string[][]; @@ -1233,59 +1230,56 @@ export interface CreateWirelessGatewayRequest { Tags?: Tag[]; ClientRequestToken?: string; } -export const CreateWirelessGatewayRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Name: S.optional(S.String), - Description: S.optional(S.String), - LoRaWAN: LoRaWANGateway, - Tags: S.optional(TagList), - ClientRequestToken: S.optional(S.String).pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/wireless-gateways" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateWirelessGatewayRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.optional(S.String), + Description: S.optional(S.String), + LoRaWAN: LoRaWANGateway, + Tags: S.optional(TagList), + ClientRequestToken: S.optional(S.String).pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/wireless-gateways" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateWirelessGatewayRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateWirelessGatewayRequest", +}) as any as S.Schema; export interface CreateWirelessGatewayResponse { Arn?: string; Id?: string; } -export const CreateWirelessGatewayResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Arn: S.optional(S.String), Id: S.optional(S.String) }), - ).annotate({ - identifier: "CreateWirelessGatewayResponse", - }) as any as S.Schema; +export const CreateWirelessGatewayResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Arn: S.optional(S.String), Id: S.optional(S.String) }), +).annotate({ + identifier: "CreateWirelessGatewayResponse", +}) as any as S.Schema; export interface CreateWirelessGatewayTaskRequest { Id: string; WirelessGatewayTaskDefinitionId: string; } -export const CreateWirelessGatewayTaskRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Id: S.String.pipe(T.HttpLabel("Id")), - WirelessGatewayTaskDefinitionId: S.String, - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/wireless-gateways/{Id}/tasks" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateWirelessGatewayTaskRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Id: S.String.pipe(T.HttpLabel("Id")), + WirelessGatewayTaskDefinitionId: S.String, + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/wireless-gateways/{Id}/tasks" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateWirelessGatewayTaskRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateWirelessGatewayTaskRequest", +}) as any as S.Schema; export type WirelessGatewayTaskStatus = | "PENDING" | "IN_PROGRESS" @@ -1299,15 +1293,14 @@ export interface CreateWirelessGatewayTaskResponse { WirelessGatewayTaskDefinitionId?: string; Status?: WirelessGatewayTaskStatus; } -export const CreateWirelessGatewayTaskResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - WirelessGatewayTaskDefinitionId: S.optional(S.String), - Status: S.optional(WirelessGatewayTaskStatus), - }), - ).annotate({ - identifier: "CreateWirelessGatewayTaskResponse", - }) as any as S.Schema; +export const CreateWirelessGatewayTaskResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + WirelessGatewayTaskDefinitionId: S.optional(S.String), + Status: S.optional(WirelessGatewayTaskStatus), + }), +).annotate({ + identifier: "CreateWirelessGatewayTaskResponse", +}) as any as S.Schema; export interface LoRaWANGatewayVersion { PackageVersion?: string; Model?: string; @@ -1328,32 +1321,30 @@ export interface LoRaWANUpdateGatewayTaskCreate { CurrentVersion?: LoRaWANGatewayVersion; UpdateVersion?: LoRaWANGatewayVersion; } -export const LoRaWANUpdateGatewayTaskCreate = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - UpdateSignature: S.optional(S.String), - SigKeyCrc: S.optional(S.Number), - CurrentVersion: S.optional(LoRaWANGatewayVersion), - UpdateVersion: S.optional(LoRaWANGatewayVersion), - }), - ).annotate({ - identifier: "LoRaWANUpdateGatewayTaskCreate", - }) as any as S.Schema; +export const LoRaWANUpdateGatewayTaskCreate = /*@__PURE__*/ S.suspend(() => + S.Struct({ + UpdateSignature: S.optional(S.String), + SigKeyCrc: S.optional(S.Number), + CurrentVersion: S.optional(LoRaWANGatewayVersion), + UpdateVersion: S.optional(LoRaWANGatewayVersion), + }), +).annotate({ + identifier: "LoRaWANUpdateGatewayTaskCreate", +}) as any as S.Schema; export interface UpdateWirelessGatewayTaskCreate { UpdateDataSource?: string; UpdateDataRole?: string; LoRaWAN?: LoRaWANUpdateGatewayTaskCreate; } -export const UpdateWirelessGatewayTaskCreate = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - UpdateDataSource: S.optional(S.String), - UpdateDataRole: S.optional(S.String), - LoRaWAN: S.optional(LoRaWANUpdateGatewayTaskCreate), - }), - ).annotate({ - identifier: "UpdateWirelessGatewayTaskCreate", - }) as any as S.Schema; +export const UpdateWirelessGatewayTaskCreate = /*@__PURE__*/ S.suspend(() => + S.Struct({ + UpdateDataSource: S.optional(S.String), + UpdateDataRole: S.optional(S.String), + LoRaWAN: S.optional(LoRaWANUpdateGatewayTaskCreate), + }), +).annotate({ + identifier: "UpdateWirelessGatewayTaskCreate", +}) as any as S.Schema; export interface CreateWirelessGatewayTaskDefinitionRequest { AutoCreateTasks: boolean; Name?: string; @@ -1433,10 +1424,11 @@ export const DeleteDeviceProfileRequest = /*@__PURE__*/ S.suspend(() => identifier: "DeleteDeviceProfileRequest", }) as any as S.Schema; export interface DeleteDeviceProfileResponse {} -export const DeleteDeviceProfileResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteDeviceProfileResponse", - }) as any as S.Schema; +export const DeleteDeviceProfileResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteDeviceProfileResponse", +}) as any as S.Schema; export interface DeleteFuotaTaskRequest { Id: string; } @@ -1463,26 +1455,26 @@ export const DeleteFuotaTaskResponse = /*@__PURE__*/ S.suspend(() => export interface DeleteMulticastGroupRequest { Id: string; } -export const DeleteMulticastGroupRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/multicast-groups/{Id}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteMulticastGroupRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/multicast-groups/{Id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteMulticastGroupRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteMulticastGroupRequest", +}) as any as S.Schema; export interface DeleteMulticastGroupResponse {} -export const DeleteMulticastGroupResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteMulticastGroupResponse", - }) as any as S.Schema; +export const DeleteMulticastGroupResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteMulticastGroupResponse", +}) as any as S.Schema; export interface DeleteNetworkAnalyzerConfigurationRequest { ConfigurationName: string; } @@ -1516,83 +1508,83 @@ export interface DeleteQueuedMessagesRequest { MessageId: string; WirelessDeviceType?: WirelessDeviceType; } -export const DeleteQueuedMessagesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Id: S.String.pipe(T.HttpLabel("Id")), - MessageId: S.String.pipe(T.HttpQuery("messageId")), - WirelessDeviceType: S.optional(WirelessDeviceType).pipe( - T.HttpQuery("WirelessDeviceType"), - ), - }).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/wireless-devices/{Id}/data" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteQueuedMessagesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Id: S.String.pipe(T.HttpLabel("Id")), + MessageId: S.String.pipe(T.HttpQuery("messageId")), + WirelessDeviceType: S.optional(WirelessDeviceType).pipe( + T.HttpQuery("WirelessDeviceType"), ), - ).annotate({ - identifier: "DeleteQueuedMessagesRequest", - }) as any as S.Schema; + }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/wireless-devices/{Id}/data" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "DeleteQueuedMessagesRequest", +}) as any as S.Schema; export interface DeleteQueuedMessagesResponse {} -export const DeleteQueuedMessagesResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteQueuedMessagesResponse", - }) as any as S.Schema; +export const DeleteQueuedMessagesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteQueuedMessagesResponse", +}) as any as S.Schema; export interface DeleteServiceProfileRequest { Id: string; } -export const DeleteServiceProfileRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/service-profiles/{Id}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteServiceProfileRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/service-profiles/{Id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteServiceProfileRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteServiceProfileRequest", +}) as any as S.Schema; export interface DeleteServiceProfileResponse {} -export const DeleteServiceProfileResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteServiceProfileResponse", - }) as any as S.Schema; +export const DeleteServiceProfileResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteServiceProfileResponse", +}) as any as S.Schema; export interface DeleteWirelessDeviceRequest { Id: string; } -export const DeleteWirelessDeviceRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/wireless-devices/{Id}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteWirelessDeviceRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/wireless-devices/{Id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteWirelessDeviceRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteWirelessDeviceRequest", +}) as any as S.Schema; export interface DeleteWirelessDeviceResponse {} -export const DeleteWirelessDeviceResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteWirelessDeviceResponse", - }) as any as S.Schema; +export const DeleteWirelessDeviceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteWirelessDeviceResponse", +}) as any as S.Schema; export interface DeleteWirelessDeviceImportTaskRequest { Id: string; } -export const DeleteWirelessDeviceImportTaskRequest = - /*@__PURE__*/ S.suspend(() => +export const DeleteWirelessDeviceImportTaskRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( T.all( T.Http({ method: "DELETE", uri: "/wireless_device_import_task/{Id}" }), @@ -1603,60 +1595,61 @@ export const DeleteWirelessDeviceImportTaskRequest = rules, ), ), - ).annotate({ - identifier: "DeleteWirelessDeviceImportTaskRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteWirelessDeviceImportTaskRequest", +}) as any as S.Schema; export interface DeleteWirelessDeviceImportTaskResponse {} -export const DeleteWirelessDeviceImportTaskResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteWirelessDeviceImportTaskResponse", - }) as any as S.Schema; +export const DeleteWirelessDeviceImportTaskResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}), +).annotate({ + identifier: "DeleteWirelessDeviceImportTaskResponse", +}) as any as S.Schema; export interface DeleteWirelessGatewayRequest { Id: string; } -export const DeleteWirelessGatewayRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/wireless-gateways/{Id}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteWirelessGatewayRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/wireless-gateways/{Id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteWirelessGatewayRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteWirelessGatewayRequest", +}) as any as S.Schema; export interface DeleteWirelessGatewayResponse {} -export const DeleteWirelessGatewayResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteWirelessGatewayResponse", - }) as any as S.Schema; +export const DeleteWirelessGatewayResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteWirelessGatewayResponse", +}) as any as S.Schema; export interface DeleteWirelessGatewayTaskRequest { Id: string; } -export const DeleteWirelessGatewayTaskRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/wireless-gateways/{Id}/tasks" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteWirelessGatewayTaskRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/wireless-gateways/{Id}/tasks" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteWirelessGatewayTaskRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteWirelessGatewayTaskRequest", +}) as any as S.Schema; export interface DeleteWirelessGatewayTaskResponse {} -export const DeleteWirelessGatewayTaskResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteWirelessGatewayTaskResponse", - }) as any as S.Schema; +export const DeleteWirelessGatewayTaskResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteWirelessGatewayTaskResponse", +}) as any as S.Schema; export interface DeleteWirelessGatewayTaskDefinitionRequest { Id: string; } @@ -1687,34 +1680,34 @@ export interface DeregisterWirelessDeviceRequest { Identifier: string; WirelessDeviceType?: WirelessDeviceType; } -export const DeregisterWirelessDeviceRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Identifier: S.String.pipe(T.HttpLabel("Identifier")), - WirelessDeviceType: S.optional(WirelessDeviceType).pipe( - T.HttpQuery("WirelessDeviceType"), - ), - }).pipe( - T.all( - T.Http({ - method: "PATCH", - uri: "/wireless-devices/{Identifier}/deregister", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeregisterWirelessDeviceRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Identifier: S.String.pipe(T.HttpLabel("Identifier")), + WirelessDeviceType: S.optional(WirelessDeviceType).pipe( + T.HttpQuery("WirelessDeviceType"), ), - ).annotate({ - identifier: "DeregisterWirelessDeviceRequest", - }) as any as S.Schema; + }).pipe( + T.all( + T.Http({ + method: "PATCH", + uri: "/wireless-devices/{Identifier}/deregister", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "DeregisterWirelessDeviceRequest", +}) as any as S.Schema; export interface DeregisterWirelessDeviceResponse {} -export const DeregisterWirelessDeviceResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeregisterWirelessDeviceResponse", - }) as any as S.Schema; +export const DeregisterWirelessDeviceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeregisterWirelessDeviceResponse", +}) as any as S.Schema; export type PartnerType = "Sidewalk" | (string & {}); export const PartnerType = /*@__PURE__*/ S.String; export interface DisassociateAwsAccountFromPartnerAccountRequest { @@ -2041,14 +2034,14 @@ export const EventNotificationTopicStatus = /*@__PURE__*/ S.String; export interface SidewalkResourceTypeEventConfiguration { WirelessDeviceEventTopic?: EventNotificationTopicStatus; } -export const SidewalkResourceTypeEventConfiguration = - /*@__PURE__*/ S.suspend(() => +export const SidewalkResourceTypeEventConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ WirelessDeviceEventTopic: S.optional(EventNotificationTopicStatus), }), - ).annotate({ - identifier: "SidewalkResourceTypeEventConfiguration", - }) as any as S.Schema; +).annotate({ + identifier: "SidewalkResourceTypeEventConfiguration", +}) as any as S.Schema; export interface DeviceRegistrationStateResourceTypeEventConfiguration { Sidewalk?: SidewalkResourceTypeEventConfiguration; } @@ -2061,12 +2054,12 @@ export const DeviceRegistrationStateResourceTypeEventConfiguration = export interface ProximityResourceTypeEventConfiguration { Sidewalk?: SidewalkResourceTypeEventConfiguration; } -export const ProximityResourceTypeEventConfiguration = - /*@__PURE__*/ S.suspend(() => +export const ProximityResourceTypeEventConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ Sidewalk: S.optional(SidewalkResourceTypeEventConfiguration) }), - ).annotate({ - identifier: "ProximityResourceTypeEventConfiguration", - }) as any as S.Schema; +).annotate({ + identifier: "ProximityResourceTypeEventConfiguration", +}) as any as S.Schema; export interface LoRaWANJoinResourceTypeEventConfiguration { WirelessDeviceEventTopic?: EventNotificationTopicStatus; } @@ -2081,14 +2074,11 @@ export const LoRaWANJoinResourceTypeEventConfiguration = export interface JoinResourceTypeEventConfiguration { LoRaWAN?: LoRaWANJoinResourceTypeEventConfiguration; } -export const JoinResourceTypeEventConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - LoRaWAN: S.optional(LoRaWANJoinResourceTypeEventConfiguration), - }), - ).annotate({ - identifier: "JoinResourceTypeEventConfiguration", - }) as any as S.Schema; +export const JoinResourceTypeEventConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ LoRaWAN: S.optional(LoRaWANJoinResourceTypeEventConfiguration) }), +).annotate({ + identifier: "JoinResourceTypeEventConfiguration", +}) as any as S.Schema; export interface LoRaWANConnectionStatusResourceTypeEventConfiguration { WirelessGatewayEventTopic?: EventNotificationTopicStatus; } @@ -2221,21 +2211,20 @@ export const GetFuotaTaskResponse = /*@__PURE__*/ S.suspend(() => identifier: "GetFuotaTaskResponse", }) as any as S.Schema; export interface GetLogLevelsByResourceTypesRequest {} -export const GetLogLevelsByResourceTypesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({}).pipe( - T.all( - T.Http({ method: "GET", uri: "/log-levels" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetLogLevelsByResourceTypesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe( + T.all( + T.Http({ method: "GET", uri: "/log-levels" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetLogLevelsByResourceTypesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetLogLevelsByResourceTypesRequest", +}) as any as S.Schema; export type WirelessGatewayType = "LoRaWAN" | (string & {}); export const WirelessGatewayType = /*@__PURE__*/ S.String; export type WirelessGatewayEvent = @@ -2247,15 +2236,15 @@ export interface WirelessGatewayEventLogOption { Event: WirelessGatewayEvent; LogLevel: LogLevel; } -export const WirelessGatewayEventLogOption = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Event: WirelessGatewayEvent, LogLevel: LogLevel }), - ).annotate({ - identifier: "WirelessGatewayEventLogOption", - }) as any as S.Schema; +export const WirelessGatewayEventLogOption = /*@__PURE__*/ S.suspend(() => + S.Struct({ Event: WirelessGatewayEvent, LogLevel: LogLevel }), +).annotate({ + identifier: "WirelessGatewayEventLogOption", +}) as any as S.Schema; export type WirelessGatewayEventLogOptionList = WirelessGatewayEventLogOption[]; -export const WirelessGatewayEventLogOptionList = - /*@__PURE__*/ S.Array(WirelessGatewayEventLogOption); +export const WirelessGatewayEventLogOptionList = /*@__PURE__*/ S.Array( + WirelessGatewayEventLogOption, +); export interface WirelessGatewayLogOption { Type: WirelessGatewayType; LogLevel: LogLevel; @@ -2286,15 +2275,15 @@ export interface WirelessDeviceEventLogOption { Event: WirelessDeviceEvent; LogLevel: LogLevel; } -export const WirelessDeviceEventLogOption = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Event: WirelessDeviceEvent, LogLevel: LogLevel }), - ).annotate({ - identifier: "WirelessDeviceEventLogOption", - }) as any as S.Schema; +export const WirelessDeviceEventLogOption = /*@__PURE__*/ S.suspend(() => + S.Struct({ Event: WirelessDeviceEvent, LogLevel: LogLevel }), +).annotate({ + identifier: "WirelessDeviceEventLogOption", +}) as any as S.Schema; export type WirelessDeviceEventLogOptionList = WirelessDeviceEventLogOption[]; -export const WirelessDeviceEventLogOptionList = - /*@__PURE__*/ S.Array(WirelessDeviceEventLogOption); +export const WirelessDeviceEventLogOptionList = /*@__PURE__*/ S.Array( + WirelessDeviceEventLogOption, +); export interface WirelessDeviceLogOption { Type: WirelessDeviceType; LogLevel: LogLevel; @@ -2352,33 +2341,31 @@ export interface GetLogLevelsByResourceTypesResponse { WirelessDeviceLogOptions?: WirelessDeviceLogOption[]; FuotaTaskLogOptions?: FuotaTaskLogOption[]; } -export const GetLogLevelsByResourceTypesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DefaultLogLevel: S.optional(LogLevel), - WirelessGatewayLogOptions: S.optional(WirelessGatewayLogOptionList), - WirelessDeviceLogOptions: S.optional(WirelessDeviceLogOptionList), - FuotaTaskLogOptions: S.optional(FuotaTaskLogOptionList), - }), - ).annotate({ - identifier: "GetLogLevelsByResourceTypesResponse", - }) as any as S.Schema; +export const GetLogLevelsByResourceTypesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DefaultLogLevel: S.optional(LogLevel), + WirelessGatewayLogOptions: S.optional(WirelessGatewayLogOptionList), + WirelessDeviceLogOptions: S.optional(WirelessDeviceLogOptionList), + FuotaTaskLogOptions: S.optional(FuotaTaskLogOptionList), + }), +).annotate({ + identifier: "GetLogLevelsByResourceTypesResponse", +}) as any as S.Schema; export interface GetMetricConfigurationRequest {} -export const GetMetricConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({}).pipe( - T.all( - T.Http({ method: "GET", uri: "/metric-configuration" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetMetricConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe( + T.all( + T.Http({ method: "GET", uri: "/metric-configuration" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetMetricConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetMetricConfigurationRequest", +}) as any as S.Schema; export type SummaryMetricConfigurationStatus = | "Enabled" | "Disabled" @@ -2395,12 +2382,11 @@ export const SummaryMetricConfiguration = /*@__PURE__*/ S.suspend(() => export interface GetMetricConfigurationResponse { SummaryMetric?: SummaryMetricConfiguration; } -export const GetMetricConfigurationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ SummaryMetric: S.optional(SummaryMetricConfiguration) }), - ).annotate({ - identifier: "GetMetricConfigurationResponse", - }) as any as S.Schema; +export const GetMetricConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ SummaryMetric: S.optional(SummaryMetricConfiguration) }), +).annotate({ + identifier: "GetMetricConfigurationResponse", +}) as any as S.Schema; export type MetricName = | "DeviceRSSI" | "DeviceSNR" @@ -2624,21 +2610,20 @@ export const GetMulticastGroupResponse = /*@__PURE__*/ S.suspend(() => export interface GetMulticastGroupSessionRequest { Id: string; } -export const GetMulticastGroupSessionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( - T.all( - T.Http({ method: "GET", uri: "/multicast-groups/{Id}/session" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetMulticastGroupSessionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( + T.all( + T.Http({ method: "GET", uri: "/multicast-groups/{Id}/session" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetMulticastGroupSessionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetMulticastGroupSessionRequest", +}) as any as S.Schema; export interface LoRaWANMulticastSession { DlDr?: number; DlFreq?: number; @@ -2662,17 +2647,16 @@ export const LoRaWANMulticastSession = /*@__PURE__*/ S.suspend(() => export interface GetMulticastGroupSessionResponse { LoRaWAN?: LoRaWANMulticastSession; } -export const GetMulticastGroupSessionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ LoRaWAN: S.optional(LoRaWANMulticastSession) }), - ).annotate({ - identifier: "GetMulticastGroupSessionResponse", - }) as any as S.Schema; +export const GetMulticastGroupSessionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ LoRaWAN: S.optional(LoRaWANMulticastSession) }), +).annotate({ + identifier: "GetMulticastGroupSessionResponse", +}) as any as S.Schema; export interface GetNetworkAnalyzerConfigurationRequest { ConfigurationName: string; } -export const GetNetworkAnalyzerConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const GetNetworkAnalyzerConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ ConfigurationName: S.String.pipe(T.HttpLabel("ConfigurationName")), }).pipe( @@ -2688,9 +2672,9 @@ export const GetNetworkAnalyzerConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "GetNetworkAnalyzerConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "GetNetworkAnalyzerConfigurationRequest", +}) as any as S.Schema; export interface GetNetworkAnalyzerConfigurationResponse { TraceContent?: TraceContent; WirelessDevices?: string[]; @@ -2700,8 +2684,8 @@ export interface GetNetworkAnalyzerConfigurationResponse { Name?: string; MulticastGroups?: string[]; } -export const GetNetworkAnalyzerConfigurationResponse = - /*@__PURE__*/ S.suspend(() => +export const GetNetworkAnalyzerConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ TraceContent: S.optional(TraceContent), WirelessDevices: S.optional(WirelessDeviceList), @@ -2711,9 +2695,9 @@ export const GetNetworkAnalyzerConfigurationResponse = Name: S.optional(S.String), MulticastGroups: S.optional(NetworkAnalyzerMulticastGroupList), }), - ).annotate({ - identifier: "GetNetworkAnalyzerConfigurationResponse", - }) as any as S.Schema; +).annotate({ + identifier: "GetNetworkAnalyzerConfigurationResponse", +}) as any as S.Schema; export interface GetPartnerAccountRequest { PartnerAccountId: string; PartnerType: PartnerType; @@ -2740,16 +2724,15 @@ export interface SidewalkAccountInfoWithFingerprint { Fingerprint?: string | redacted.Redacted; Arn?: string; } -export const SidewalkAccountInfoWithFingerprint = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AmazonId: S.optional(S.String), - Fingerprint: S.optional(SensitiveString), - Arn: S.optional(S.String), - }), - ).annotate({ - identifier: "SidewalkAccountInfoWithFingerprint", - }) as any as S.Schema; +export const SidewalkAccountInfoWithFingerprint = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AmazonId: S.optional(S.String), + Fingerprint: S.optional(SensitiveString), + Arn: S.optional(S.String), + }), +).annotate({ + identifier: "SidewalkAccountInfoWithFingerprint", +}) as any as S.Schema; export interface GetPartnerAccountResponse { Sidewalk?: SidewalkAccountInfoWithFingerprint; AccountLinked?: boolean; @@ -2828,27 +2811,26 @@ export interface GetPositionConfigurationRequest { ResourceIdentifier: string; ResourceType: PositionResourceType; } -export const GetPositionConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResourceIdentifier: S.String.pipe(T.HttpLabel("ResourceIdentifier")), - ResourceType: PositionResourceType.pipe(T.HttpQuery("resourceType")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/position-configurations/{ResourceIdentifier}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetPositionConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResourceIdentifier: S.String.pipe(T.HttpLabel("ResourceIdentifier")), + ResourceType: PositionResourceType.pipe(T.HttpQuery("resourceType")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/position-configurations/{ResourceIdentifier}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetPositionConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetPositionConfigurationRequest", +}) as any as S.Schema; export type PositionConfigurationStatus = | "Enabled" | "Disabled" @@ -2884,15 +2866,14 @@ export interface GetPositionConfigurationResponse { Solvers?: PositionSolverDetails; Destination?: string; } -export const GetPositionConfigurationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Solvers: S.optional(PositionSolverDetails), - Destination: S.optional(S.String), - }), - ).annotate({ - identifier: "GetPositionConfigurationResponse", - }) as any as S.Schema; +export const GetPositionConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Solvers: S.optional(PositionSolverDetails), + Destination: S.optional(S.String), + }), +).annotate({ + identifier: "GetPositionConfigurationResponse", +}) as any as S.Schema; export interface WiFiAccessPoint { MacAddress: string; Rss: number; @@ -3248,14 +3229,13 @@ export const GetPositionEstimateRequest = /*@__PURE__*/ S.suspend(() => export interface GetPositionEstimateResponse { GeoJsonPayload?: T.StreamingOutputBody; } -export const GetPositionEstimateResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - GeoJsonPayload: S.optional(T.StreamingOutput).pipe(T.HttpPayload()), - }), - ).annotate({ - identifier: "GetPositionEstimateResponse", - }) as any as S.Schema; +export const GetPositionEstimateResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + GeoJsonPayload: S.optional(T.StreamingOutput).pipe(T.HttpPayload()), + }), +).annotate({ + identifier: "GetPositionEstimateResponse", +}) as any as S.Schema; export type IdentifierType = | "PartnerAccountId" | "DevEui" @@ -3271,8 +3251,8 @@ export interface GetResourceEventConfigurationRequest { IdentifierType: IdentifierType; PartnerType?: EventNotificationPartnerType; } -export const GetResourceEventConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const GetResourceEventConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Identifier: S.String.pipe(T.HttpLabel("Identifier")), IdentifierType: IdentifierType.pipe(T.HttpQuery("identifierType")), @@ -3289,18 +3269,18 @@ export const GetResourceEventConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "GetResourceEventConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "GetResourceEventConfigurationRequest", +}) as any as S.Schema; export interface SidewalkEventNotificationConfigurations { AmazonIdEventTopic?: EventNotificationTopicStatus; } -export const SidewalkEventNotificationConfigurations = - /*@__PURE__*/ S.suspend(() => +export const SidewalkEventNotificationConfigurations = /*@__PURE__*/ S.suspend( + () => S.Struct({ AmazonIdEventTopic: S.optional(EventNotificationTopicStatus) }), - ).annotate({ - identifier: "SidewalkEventNotificationConfigurations", - }) as any as S.Schema; +).annotate({ + identifier: "SidewalkEventNotificationConfigurations", +}) as any as S.Schema; export interface DeviceRegistrationStateEventConfiguration { Sidewalk?: SidewalkEventNotificationConfigurations; WirelessDeviceIdEventTopic?: EventNotificationTopicStatus; @@ -3318,15 +3298,14 @@ export interface ProximityEventConfiguration { Sidewalk?: SidewalkEventNotificationConfigurations; WirelessDeviceIdEventTopic?: EventNotificationTopicStatus; } -export const ProximityEventConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Sidewalk: S.optional(SidewalkEventNotificationConfigurations), - WirelessDeviceIdEventTopic: S.optional(EventNotificationTopicStatus), - }), - ).annotate({ - identifier: "ProximityEventConfiguration", - }) as any as S.Schema; +export const ProximityEventConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Sidewalk: S.optional(SidewalkEventNotificationConfigurations), + WirelessDeviceIdEventTopic: S.optional(EventNotificationTopicStatus), + }), +).annotate({ + identifier: "ProximityEventConfiguration", +}) as any as S.Schema; export interface LoRaWANJoinEventNotificationConfigurations { DevEuiEventTopic?: EventNotificationTopicStatus; } @@ -3363,30 +3342,27 @@ export interface ConnectionStatusEventConfiguration { LoRaWAN?: LoRaWANConnectionStatusEventNotificationConfigurations; WirelessGatewayIdEventTopic?: EventNotificationTopicStatus; } -export const ConnectionStatusEventConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - LoRaWAN: S.optional( - LoRaWANConnectionStatusEventNotificationConfigurations, - ), - WirelessGatewayIdEventTopic: S.optional(EventNotificationTopicStatus), - }), - ).annotate({ - identifier: "ConnectionStatusEventConfiguration", - }) as any as S.Schema; +export const ConnectionStatusEventConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + LoRaWAN: S.optional(LoRaWANConnectionStatusEventNotificationConfigurations), + WirelessGatewayIdEventTopic: S.optional(EventNotificationTopicStatus), + }), +).annotate({ + identifier: "ConnectionStatusEventConfiguration", +}) as any as S.Schema; export interface MessageDeliveryStatusEventConfiguration { Sidewalk?: SidewalkEventNotificationConfigurations; WirelessDeviceIdEventTopic?: EventNotificationTopicStatus; } -export const MessageDeliveryStatusEventConfiguration = - /*@__PURE__*/ S.suspend(() => +export const MessageDeliveryStatusEventConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ Sidewalk: S.optional(SidewalkEventNotificationConfigurations), WirelessDeviceIdEventTopic: S.optional(EventNotificationTopicStatus), }), - ).annotate({ - identifier: "MessageDeliveryStatusEventConfiguration", - }) as any as S.Schema; +).annotate({ + identifier: "MessageDeliveryStatusEventConfiguration", +}) as any as S.Schema; export interface GetResourceEventConfigurationResponse { DeviceRegistrationState?: DeviceRegistrationStateEventConfiguration; Proximity?: ProximityEventConfiguration; @@ -3394,8 +3370,8 @@ export interface GetResourceEventConfigurationResponse { ConnectionStatus?: ConnectionStatusEventConfiguration; MessageDeliveryStatus?: MessageDeliveryStatusEventConfiguration; } -export const GetResourceEventConfigurationResponse = - /*@__PURE__*/ S.suspend(() => +export const GetResourceEventConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ DeviceRegistrationState: S.optional( DeviceRegistrationStateEventConfiguration, @@ -3407,9 +3383,9 @@ export const GetResourceEventConfigurationResponse = MessageDeliveryStatusEventConfiguration, ), }), - ).annotate({ - identifier: "GetResourceEventConfigurationResponse", - }) as any as S.Schema; +).annotate({ + identifier: "GetResourceEventConfigurationResponse", +}) as any as S.Schema; export interface GetResourceLogLevelRequest { ResourceIdentifier: string; ResourceType: string; @@ -3434,12 +3410,11 @@ export const GetResourceLogLevelRequest = /*@__PURE__*/ S.suspend(() => export interface GetResourceLogLevelResponse { LogLevel?: LogLevel; } -export const GetResourceLogLevelResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ LogLevel: S.optional(LogLevel) }), - ).annotate({ - identifier: "GetResourceLogLevelResponse", - }) as any as S.Schema; +export const GetResourceLogLevelResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ LogLevel: S.optional(LogLevel) }), +).annotate({ + identifier: "GetResourceLogLevelResponse", +}) as any as S.Schema; export interface GetResourcePositionRequest { ResourceIdentifier: string; ResourceType: PositionResourceType; @@ -3467,14 +3442,13 @@ export const GetResourcePositionRequest = /*@__PURE__*/ S.suspend(() => export interface GetResourcePositionResponse { GeoJsonPayload?: T.StreamingOutputBody; } -export const GetResourcePositionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - GeoJsonPayload: S.optional(T.StreamingOutput).pipe(T.HttpPayload()), - }), - ).annotate({ - identifier: "GetResourcePositionResponse", - }) as any as S.Schema; +export const GetResourcePositionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + GeoJsonPayload: S.optional(T.StreamingOutput).pipe(T.HttpPayload()), + }), +).annotate({ + identifier: "GetResourcePositionResponse", +}) as any as S.Schema; export type WirelessGatewayServiceType = "CUPS" | "LNS" | (string & {}); export const WirelessGatewayServiceType = /*@__PURE__*/ S.String; export interface GetServiceEndpointRequest { @@ -3554,36 +3528,35 @@ export interface LoRaWANGetServiceProfileInfo { NbTransMin?: number; NbTransMax?: number; } -export const LoRaWANGetServiceProfileInfo = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - UlRate: S.optional(S.Number), - UlBucketSize: S.optional(S.Number), - UlRatePolicy: S.optional(S.String), - DlRate: S.optional(S.Number), - DlBucketSize: S.optional(S.Number), - DlRatePolicy: S.optional(S.String), - AddGwMetadata: S.optional(S.Boolean), - DevStatusReqFreq: S.optional(S.Number), - ReportDevStatusBattery: S.optional(S.Boolean), - ReportDevStatusMargin: S.optional(S.Boolean), - DrMin: S.optional(S.Number), - DrMax: S.optional(S.Number), - ChannelMask: S.optional(S.String), - PrAllowed: S.optional(S.Boolean), - HrAllowed: S.optional(S.Boolean), - RaAllowed: S.optional(S.Boolean), - NwkGeoLoc: S.optional(S.Boolean), - TargetPer: S.optional(S.Number), - MinGwDiversity: S.optional(S.Number), - TxPowerIndexMin: S.optional(S.Number), - TxPowerIndexMax: S.optional(S.Number), - NbTransMin: S.optional(S.Number), - NbTransMax: S.optional(S.Number), - }), - ).annotate({ - identifier: "LoRaWANGetServiceProfileInfo", - }) as any as S.Schema; +export const LoRaWANGetServiceProfileInfo = /*@__PURE__*/ S.suspend(() => + S.Struct({ + UlRate: S.optional(S.Number), + UlBucketSize: S.optional(S.Number), + UlRatePolicy: S.optional(S.String), + DlRate: S.optional(S.Number), + DlBucketSize: S.optional(S.Number), + DlRatePolicy: S.optional(S.String), + AddGwMetadata: S.optional(S.Boolean), + DevStatusReqFreq: S.optional(S.Number), + ReportDevStatusBattery: S.optional(S.Boolean), + ReportDevStatusMargin: S.optional(S.Boolean), + DrMin: S.optional(S.Number), + DrMax: S.optional(S.Number), + ChannelMask: S.optional(S.String), + PrAllowed: S.optional(S.Boolean), + HrAllowed: S.optional(S.Boolean), + RaAllowed: S.optional(S.Boolean), + NwkGeoLoc: S.optional(S.Boolean), + TargetPer: S.optional(S.Number), + MinGwDiversity: S.optional(S.Number), + TxPowerIndexMin: S.optional(S.Number), + TxPowerIndexMax: S.optional(S.Number), + NbTransMin: S.optional(S.Number), + NbTransMax: S.optional(S.Number), + }), +).annotate({ + identifier: "LoRaWANGetServiceProfileInfo", +}) as any as S.Schema; export interface GetServiceProfileResponse { Arn?: string; Name?: string; @@ -3707,21 +3680,20 @@ export const GetWirelessDeviceResponse = /*@__PURE__*/ S.suspend(() => export interface GetWirelessDeviceImportTaskRequest { Id: string; } -export const GetWirelessDeviceImportTaskRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( - T.all( - T.Http({ method: "GET", uri: "/wireless_device_import_task/{Id}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetWirelessDeviceImportTaskRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( + T.all( + T.Http({ method: "GET", uri: "/wireless_device_import_task/{Id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetWirelessDeviceImportTaskRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetWirelessDeviceImportTaskRequest", +}) as any as S.Schema; export type DeviceCreationFileList = string[]; export const DeviceCreationFileList = /*@__PURE__*/ S.Array(S.String); export interface SidewalkGetStartImportInfo { @@ -3761,50 +3733,48 @@ export interface GetWirelessDeviceImportTaskResponse { OnboardedImportedDeviceCount?: number; FailedImportedDeviceCount?: number; } -export const GetWirelessDeviceImportTaskResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Id: S.optional(S.String), - Arn: S.optional(S.String), - DestinationName: S.optional(S.String), - Positioning: S.optional(PositioningConfigStatus), - Sidewalk: S.optional(SidewalkGetStartImportInfo), - CreationTime: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - Status: S.optional(ImportTaskStatus), - StatusReason: S.optional(S.String), - InitializedImportedDeviceCount: S.optional(S.Number), - PendingImportedDeviceCount: S.optional(S.Number), - OnboardedImportedDeviceCount: S.optional(S.Number), - FailedImportedDeviceCount: S.optional(S.Number), - }), - ).annotate({ - identifier: "GetWirelessDeviceImportTaskResponse", - }) as any as S.Schema; +export const GetWirelessDeviceImportTaskResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Id: S.optional(S.String), + Arn: S.optional(S.String), + DestinationName: S.optional(S.String), + Positioning: S.optional(PositioningConfigStatus), + Sidewalk: S.optional(SidewalkGetStartImportInfo), + CreationTime: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + Status: S.optional(ImportTaskStatus), + StatusReason: S.optional(S.String), + InitializedImportedDeviceCount: S.optional(S.Number), + PendingImportedDeviceCount: S.optional(S.Number), + OnboardedImportedDeviceCount: S.optional(S.Number), + FailedImportedDeviceCount: S.optional(S.Number), + }), +).annotate({ + identifier: "GetWirelessDeviceImportTaskResponse", +}) as any as S.Schema; export interface GetWirelessDeviceStatisticsRequest { WirelessDeviceId: string; } -export const GetWirelessDeviceStatisticsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - WirelessDeviceId: S.String.pipe(T.HttpLabel("WirelessDeviceId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/wireless-devices/{WirelessDeviceId}/statistics", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetWirelessDeviceStatisticsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + WirelessDeviceId: S.String.pipe(T.HttpLabel("WirelessDeviceId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/wireless-devices/{WirelessDeviceId}/statistics", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetWirelessDeviceStatisticsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetWirelessDeviceStatisticsRequest", +}) as any as S.Schema; export interface LoRaWANGatewayMetadata { GatewayEui?: string; Snr?: number; @@ -3831,22 +3801,22 @@ export interface LoRaWANPublicGatewayMetadata { RfRegion?: string; DlAllowed?: boolean; } -export const LoRaWANPublicGatewayMetadata = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ProviderNetId: S.optional(S.String), - Id: S.optional(S.String), - Rssi: S.optional(S.Number), - Snr: S.optional(S.Number), - RfRegion: S.optional(S.String), - DlAllowed: S.optional(S.Boolean), - }), - ).annotate({ - identifier: "LoRaWANPublicGatewayMetadata", - }) as any as S.Schema; +export const LoRaWANPublicGatewayMetadata = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ProviderNetId: S.optional(S.String), + Id: S.optional(S.String), + Rssi: S.optional(S.Number), + Snr: S.optional(S.Number), + RfRegion: S.optional(S.String), + DlAllowed: S.optional(S.Boolean), + }), +).annotate({ + identifier: "LoRaWANPublicGatewayMetadata", +}) as any as S.Schema; export type LoRaWANPublicGatewayMetadataList = LoRaWANPublicGatewayMetadata[]; -export const LoRaWANPublicGatewayMetadataList = - /*@__PURE__*/ S.Array(LoRaWANPublicGatewayMetadata); +export const LoRaWANPublicGatewayMetadataList = /*@__PURE__*/ S.Array( + LoRaWANPublicGatewayMetadata, +); export interface LoRaWANDeviceMetadata { DevEui?: string; FPort?: number; @@ -3908,17 +3878,16 @@ export interface GetWirelessDeviceStatisticsResponse { LoRaWAN?: LoRaWANDeviceMetadata; Sidewalk?: SidewalkDeviceMetadata; } -export const GetWirelessDeviceStatisticsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - WirelessDeviceId: S.optional(S.String), - LastUplinkReceivedAt: S.optional(S.String), - LoRaWAN: S.optional(LoRaWANDeviceMetadata), - Sidewalk: S.optional(SidewalkDeviceMetadata), - }), - ).annotate({ - identifier: "GetWirelessDeviceStatisticsResponse", - }) as any as S.Schema; +export const GetWirelessDeviceStatisticsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + WirelessDeviceId: S.optional(S.String), + LastUplinkReceivedAt: S.optional(S.String), + LoRaWAN: S.optional(LoRaWANDeviceMetadata), + Sidewalk: S.optional(SidewalkDeviceMetadata), + }), +).annotate({ + identifier: "GetWirelessDeviceStatisticsResponse", +}) as any as S.Schema; export type WirelessGatewayIdType = | "GatewayEui" | "WirelessGatewayId" @@ -3971,8 +3940,8 @@ export const GetWirelessGatewayResponse = /*@__PURE__*/ S.suspend(() => export interface GetWirelessGatewayCertificateRequest { Id: string; } -export const GetWirelessGatewayCertificateRequest = - /*@__PURE__*/ S.suspend(() => +export const GetWirelessGatewayCertificateRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( T.all( T.Http({ method: "GET", uri: "/wireless-gateways/{Id}/certificate" }), @@ -3983,22 +3952,22 @@ export const GetWirelessGatewayCertificateRequest = rules, ), ), - ).annotate({ - identifier: "GetWirelessGatewayCertificateRequest", - }) as any as S.Schema; +).annotate({ + identifier: "GetWirelessGatewayCertificateRequest", +}) as any as S.Schema; export interface GetWirelessGatewayCertificateResponse { IotCertificateId?: string; LoRaWANNetworkServerCertificateId?: string; } -export const GetWirelessGatewayCertificateResponse = - /*@__PURE__*/ S.suspend(() => +export const GetWirelessGatewayCertificateResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ IotCertificateId: S.optional(S.String), LoRaWANNetworkServerCertificateId: S.optional(S.String), }), - ).annotate({ - identifier: "GetWirelessGatewayCertificateResponse", - }) as any as S.Schema; +).annotate({ + identifier: "GetWirelessGatewayCertificateResponse", +}) as any as S.Schema; export interface GetWirelessGatewayFirmwareInformationRequest { Id: string; } @@ -4023,12 +3992,11 @@ export const GetWirelessGatewayFirmwareInformationRequest = export interface LoRaWANGatewayCurrentVersion { CurrentVersion?: LoRaWANGatewayVersion; } -export const LoRaWANGatewayCurrentVersion = - /*@__PURE__*/ S.suspend(() => - S.Struct({ CurrentVersion: S.optional(LoRaWANGatewayVersion) }), - ).annotate({ - identifier: "LoRaWANGatewayCurrentVersion", - }) as any as S.Schema; +export const LoRaWANGatewayCurrentVersion = /*@__PURE__*/ S.suspend(() => + S.Struct({ CurrentVersion: S.optional(LoRaWANGatewayVersion) }), +).annotate({ + identifier: "LoRaWANGatewayCurrentVersion", +}) as any as S.Schema; export interface GetWirelessGatewayFirmwareInformationResponse { LoRaWAN?: LoRaWANGatewayCurrentVersion; } @@ -4041,26 +4009,25 @@ export const GetWirelessGatewayFirmwareInformationResponse = export interface GetWirelessGatewayStatisticsRequest { WirelessGatewayId: string; } -export const GetWirelessGatewayStatisticsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - WirelessGatewayId: S.String.pipe(T.HttpLabel("WirelessGatewayId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/wireless-gateways/{WirelessGatewayId}/statistics", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetWirelessGatewayStatisticsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + WirelessGatewayId: S.String.pipe(T.HttpLabel("WirelessGatewayId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/wireless-gateways/{WirelessGatewayId}/statistics", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetWirelessGatewayStatisticsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetWirelessGatewayStatisticsRequest", +}) as any as S.Schema; export type ConnectionStatus = "Connected" | "Disconnected" | (string & {}); export const ConnectionStatus = /*@__PURE__*/ S.String; export interface GetWirelessGatewayStatisticsResponse { @@ -4068,34 +4035,33 @@ export interface GetWirelessGatewayStatisticsResponse { LastUplinkReceivedAt?: string; ConnectionStatus?: ConnectionStatus; } -export const GetWirelessGatewayStatisticsResponse = - /*@__PURE__*/ S.suspend(() => +export const GetWirelessGatewayStatisticsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ WirelessGatewayId: S.optional(S.String), LastUplinkReceivedAt: S.optional(S.String), ConnectionStatus: S.optional(ConnectionStatus), }), - ).annotate({ - identifier: "GetWirelessGatewayStatisticsResponse", - }) as any as S.Schema; +).annotate({ + identifier: "GetWirelessGatewayStatisticsResponse", +}) as any as S.Schema; export interface GetWirelessGatewayTaskRequest { Id: string; } -export const GetWirelessGatewayTaskRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( - T.all( - T.Http({ method: "GET", uri: "/wireless-gateways/{Id}/tasks" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetWirelessGatewayTaskRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( + T.all( + T.Http({ method: "GET", uri: "/wireless-gateways/{Id}/tasks" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetWirelessGatewayTaskRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetWirelessGatewayTaskRequest", +}) as any as S.Schema; export interface GetWirelessGatewayTaskResponse { WirelessGatewayId?: string; WirelessGatewayTaskDefinitionId?: string; @@ -4103,23 +4069,22 @@ export interface GetWirelessGatewayTaskResponse { TaskCreatedAt?: string; Status?: WirelessGatewayTaskStatus; } -export const GetWirelessGatewayTaskResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - WirelessGatewayId: S.optional(S.String), - WirelessGatewayTaskDefinitionId: S.optional(S.String), - LastUplinkReceivedAt: S.optional(S.String), - TaskCreatedAt: S.optional(S.String), - Status: S.optional(WirelessGatewayTaskStatus), - }), - ).annotate({ - identifier: "GetWirelessGatewayTaskResponse", - }) as any as S.Schema; +export const GetWirelessGatewayTaskResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + WirelessGatewayId: S.optional(S.String), + WirelessGatewayTaskDefinitionId: S.optional(S.String), + LastUplinkReceivedAt: S.optional(S.String), + TaskCreatedAt: S.optional(S.String), + Status: S.optional(WirelessGatewayTaskStatus), + }), +).annotate({ + identifier: "GetWirelessGatewayTaskResponse", +}) as any as S.Schema; export interface GetWirelessGatewayTaskDefinitionRequest { Id: string; } -export const GetWirelessGatewayTaskDefinitionRequest = - /*@__PURE__*/ S.suspend(() => +export const GetWirelessGatewayTaskDefinitionRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( T.all( T.Http({ @@ -4133,26 +4098,26 @@ export const GetWirelessGatewayTaskDefinitionRequest = rules, ), ), - ).annotate({ - identifier: "GetWirelessGatewayTaskDefinitionRequest", - }) as any as S.Schema; +).annotate({ + identifier: "GetWirelessGatewayTaskDefinitionRequest", +}) as any as S.Schema; export interface GetWirelessGatewayTaskDefinitionResponse { AutoCreateTasks?: boolean; Name?: string; Update?: UpdateWirelessGatewayTaskCreate; Arn?: string; } -export const GetWirelessGatewayTaskDefinitionResponse = - /*@__PURE__*/ S.suspend(() => +export const GetWirelessGatewayTaskDefinitionResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ AutoCreateTasks: S.optional(S.Boolean), Name: S.optional(S.String), Update: S.optional(UpdateWirelessGatewayTaskCreate), Arn: S.optional(S.String), }), - ).annotate({ - identifier: "GetWirelessGatewayTaskDefinitionResponse", - }) as any as S.Schema; +).annotate({ + identifier: "GetWirelessGatewayTaskDefinitionResponse", +}) as any as S.Schema; export interface ListDestinationsRequest { MaxResults?: number; NextToken?: string; @@ -4295,12 +4260,11 @@ export const ListDevicesForWirelessDeviceImportTaskRequest = export interface SidewalkListDevicesForImportInfo { Positioning?: SidewalkPositioning; } -export const SidewalkListDevicesForImportInfo = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Positioning: S.optional(SidewalkPositioning) }), - ).annotate({ - identifier: "SidewalkListDevicesForImportInfo", - }) as any as S.Schema; +export const SidewalkListDevicesForImportInfo = /*@__PURE__*/ S.suspend(() => + S.Struct({ Positioning: S.optional(SidewalkPositioning) }), +).annotate({ + identifier: "SidewalkListDevicesForImportInfo", +}) as any as S.Schema; export interface ImportedSidewalkDevice { SidewalkManufacturingSn?: string; OnboardingStatus?: OnboardStatus; @@ -4361,27 +4325,26 @@ export interface ListEventConfigurationsRequest { MaxResults?: number; NextToken?: string; } -export const ListEventConfigurationsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResourceType: EventNotificationResourceType.pipe( - T.HttpQuery("resourceType"), - ), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - NextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/event-configurations" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListEventConfigurationsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResourceType: EventNotificationResourceType.pipe( + T.HttpQuery("resourceType"), ), - ).annotate({ - identifier: "ListEventConfigurationsRequest", - }) as any as S.Schema; + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + NextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/event-configurations" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "ListEventConfigurationsRequest", +}) as any as S.Schema; export interface EventNotificationItemConfigurations { DeviceRegistrationState?: DeviceRegistrationStateEventConfiguration; Proximity?: ProximityEventConfiguration; @@ -4389,22 +4352,19 @@ export interface EventNotificationItemConfigurations { ConnectionStatus?: ConnectionStatusEventConfiguration; MessageDeliveryStatus?: MessageDeliveryStatusEventConfiguration; } -export const EventNotificationItemConfigurations = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DeviceRegistrationState: S.optional( - DeviceRegistrationStateEventConfiguration, - ), - Proximity: S.optional(ProximityEventConfiguration), - Join: S.optional(JoinEventConfiguration), - ConnectionStatus: S.optional(ConnectionStatusEventConfiguration), - MessageDeliveryStatus: S.optional( - MessageDeliveryStatusEventConfiguration, - ), - }), - ).annotate({ - identifier: "EventNotificationItemConfigurations", - }) as any as S.Schema; +export const EventNotificationItemConfigurations = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DeviceRegistrationState: S.optional( + DeviceRegistrationStateEventConfiguration, + ), + Proximity: S.optional(ProximityEventConfiguration), + Join: S.optional(JoinEventConfiguration), + ConnectionStatus: S.optional(ConnectionStatusEventConfiguration), + MessageDeliveryStatus: S.optional(MessageDeliveryStatusEventConfiguration), + }), +).annotate({ + identifier: "EventNotificationItemConfigurations", +}) as any as S.Schema; export interface EventConfigurationItem { Identifier?: string; IdentifierType?: IdentifierType; @@ -4429,15 +4389,14 @@ export interface ListEventConfigurationsResponse { NextToken?: string; EventConfigurationsList?: EventConfigurationItem[]; } -export const ListEventConfigurationsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - NextToken: S.optional(S.String), - EventConfigurationsList: S.optional(EventConfigurationsList), - }), - ).annotate({ - identifier: "ListEventConfigurationsResponse", - }) as any as S.Schema; +export const ListEventConfigurationsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + NextToken: S.optional(S.String), + EventConfigurationsList: S.optional(EventConfigurationsList), + }), +).annotate({ + identifier: "ListEventConfigurationsResponse", +}) as any as S.Schema; export interface ListFuotaTasksRequest { NextToken?: string; MaxResults?: number; @@ -4524,22 +4483,21 @@ export interface ListMulticastGroupsResponse { NextToken?: string; MulticastGroupList?: MulticastGroup[]; } -export const ListMulticastGroupsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - NextToken: S.optional(S.String), - MulticastGroupList: S.optional(MulticastGroupList), - }), - ).annotate({ - identifier: "ListMulticastGroupsResponse", - }) as any as S.Schema; +export const ListMulticastGroupsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + NextToken: S.optional(S.String), + MulticastGroupList: S.optional(MulticastGroupList), + }), +).annotate({ + identifier: "ListMulticastGroupsResponse", +}) as any as S.Schema; export interface ListMulticastGroupsByFuotaTaskRequest { Id: string; NextToken?: string; MaxResults?: number; } -export const ListMulticastGroupsByFuotaTaskRequest = - /*@__PURE__*/ S.suspend(() => +export const ListMulticastGroupsByFuotaTaskRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")), NextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), @@ -4554,9 +4512,9 @@ export const ListMulticastGroupsByFuotaTaskRequest = rules, ), ), - ).annotate({ - identifier: "ListMulticastGroupsByFuotaTaskRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListMulticastGroupsByFuotaTaskRequest", +}) as any as S.Schema; export interface MulticastGroupByFuotaTask { Id?: string; } @@ -4566,27 +4524,28 @@ export const MulticastGroupByFuotaTask = /*@__PURE__*/ S.suspend(() => identifier: "MulticastGroupByFuotaTask", }) as any as S.Schema; export type MulticastGroupListByFuotaTask = MulticastGroupByFuotaTask[]; -export const MulticastGroupListByFuotaTask = - /*@__PURE__*/ S.Array(MulticastGroupByFuotaTask); +export const MulticastGroupListByFuotaTask = /*@__PURE__*/ S.Array( + MulticastGroupByFuotaTask, +); export interface ListMulticastGroupsByFuotaTaskResponse { NextToken?: string; MulticastGroupList?: MulticastGroupByFuotaTask[]; } -export const ListMulticastGroupsByFuotaTaskResponse = - /*@__PURE__*/ S.suspend(() => +export const ListMulticastGroupsByFuotaTaskResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ NextToken: S.optional(S.String), MulticastGroupList: S.optional(MulticastGroupListByFuotaTask), }), - ).annotate({ - identifier: "ListMulticastGroupsByFuotaTaskResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListMulticastGroupsByFuotaTaskResponse", +}) as any as S.Schema; export interface ListNetworkAnalyzerConfigurationsRequest { MaxResults?: number; NextToken?: string; } -export const ListNetworkAnalyzerConfigurationsRequest = - /*@__PURE__*/ S.suspend(() => +export const ListNetworkAnalyzerConfigurationsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ MaxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), NextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), @@ -4600,22 +4559,22 @@ export const ListNetworkAnalyzerConfigurationsRequest = rules, ), ), - ).annotate({ - identifier: "ListNetworkAnalyzerConfigurationsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListNetworkAnalyzerConfigurationsRequest", +}) as any as S.Schema; export interface NetworkAnalyzerConfigurations { Arn?: string; Name?: string; } -export const NetworkAnalyzerConfigurations = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Arn: S.optional(S.String), Name: S.optional(S.String) }), - ).annotate({ - identifier: "NetworkAnalyzerConfigurations", - }) as any as S.Schema; +export const NetworkAnalyzerConfigurations = /*@__PURE__*/ S.suspend(() => + S.Struct({ Arn: S.optional(S.String), Name: S.optional(S.String) }), +).annotate({ + identifier: "NetworkAnalyzerConfigurations", +}) as any as S.Schema; export type NetworkAnalyzerConfigurationList = NetworkAnalyzerConfigurations[]; -export const NetworkAnalyzerConfigurationList = - /*@__PURE__*/ S.Array(NetworkAnalyzerConfigurations); +export const NetworkAnalyzerConfigurationList = /*@__PURE__*/ S.Array( + NetworkAnalyzerConfigurations, +); export interface ListNetworkAnalyzerConfigurationsResponse { NextToken?: string; NetworkAnalyzerConfigurationList?: NetworkAnalyzerConfigurations[]; @@ -4660,41 +4619,39 @@ export interface ListPartnerAccountsResponse { NextToken?: string; Sidewalk?: SidewalkAccountInfoWithFingerprint[]; } -export const ListPartnerAccountsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - NextToken: S.optional(S.String), - Sidewalk: S.optional(SidewalkAccountList), - }), - ).annotate({ - identifier: "ListPartnerAccountsResponse", - }) as any as S.Schema; +export const ListPartnerAccountsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + NextToken: S.optional(S.String), + Sidewalk: S.optional(SidewalkAccountList), + }), +).annotate({ + identifier: "ListPartnerAccountsResponse", +}) as any as S.Schema; export interface ListPositionConfigurationsRequest { ResourceType?: PositionResourceType; MaxResults?: number; NextToken?: string; } -export const ListPositionConfigurationsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResourceType: S.optional(PositionResourceType).pipe( - T.HttpQuery("resourceType"), - ), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - NextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/position-configurations" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListPositionConfigurationsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResourceType: S.optional(PositionResourceType).pipe( + T.HttpQuery("resourceType"), ), - ).annotate({ - identifier: "ListPositionConfigurationsRequest", - }) as any as S.Schema; + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + NextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/position-configurations" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "ListPositionConfigurationsRequest", +}) as any as S.Schema; export interface PositionConfigurationItem { ResourceIdentifier?: string; ResourceType?: PositionResourceType; @@ -4719,15 +4676,14 @@ export interface ListPositionConfigurationsResponse { PositionConfigurationList?: PositionConfigurationItem[]; NextToken?: string; } -export const ListPositionConfigurationsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - PositionConfigurationList: S.optional(PositionConfigurationList), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListPositionConfigurationsResponse", - }) as any as S.Schema; +export const ListPositionConfigurationsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + PositionConfigurationList: S.optional(PositionConfigurationList), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListPositionConfigurationsResponse", +}) as any as S.Schema; export interface ListQueuedMessagesRequest { Id: string; NextToken?: string; @@ -4868,15 +4824,14 @@ export interface ListServiceProfilesResponse { NextToken?: string; ServiceProfileList?: ServiceProfile[]; } -export const ListServiceProfilesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - NextToken: S.optional(S.String), - ServiceProfileList: S.optional(ServiceProfileList), - }), - ).annotate({ - identifier: "ListServiceProfilesResponse", - }) as any as S.Schema; +export const ListServiceProfilesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + NextToken: S.optional(S.String), + ServiceProfileList: S.optional(ServiceProfileList), + }), +).annotate({ + identifier: "ListServiceProfilesResponse", +}) as any as S.Schema; export interface ListTagsForResourceRequest { ResourceArn: string; } @@ -4897,18 +4852,17 @@ export const ListTagsForResourceRequest = /*@__PURE__*/ S.suspend(() => export interface ListTagsForResourceResponse { Tags?: Tag[]; } -export const ListTagsForResourceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Tags: S.optional(TagList) }), - ).annotate({ - identifier: "ListTagsForResourceResponse", - }) as any as S.Schema; +export const ListTagsForResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Tags: S.optional(TagList) }), +).annotate({ + identifier: "ListTagsForResourceResponse", +}) as any as S.Schema; export interface ListWirelessDeviceImportTasksRequest { MaxResults?: number; NextToken?: string; } -export const ListWirelessDeviceImportTasksRequest = - /*@__PURE__*/ S.suspend(() => +export const ListWirelessDeviceImportTasksRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ MaxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), NextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), @@ -4922,9 +4876,9 @@ export const ListWirelessDeviceImportTasksRequest = rules, ), ), - ).annotate({ - identifier: "ListWirelessDeviceImportTasksRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListWirelessDeviceImportTasksRequest", +}) as any as S.Schema; export interface WirelessDeviceImportTask { Id?: string; Arn?: string; @@ -4967,15 +4921,15 @@ export interface ListWirelessDeviceImportTasksResponse { NextToken?: string; WirelessDeviceImportTaskList?: WirelessDeviceImportTask[]; } -export const ListWirelessDeviceImportTasksResponse = - /*@__PURE__*/ S.suspend(() => +export const ListWirelessDeviceImportTasksResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ NextToken: S.optional(S.String), WirelessDeviceImportTaskList: S.optional(WirelessDeviceImportTaskList), }), - ).annotate({ - identifier: "ListWirelessDeviceImportTasksResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListWirelessDeviceImportTasksResponse", +}) as any as S.Schema; export interface ListWirelessDevicesRequest { MaxResults?: number; NextToken?: string; @@ -5100,37 +5054,35 @@ export interface ListWirelessDevicesResponse { NextToken?: string; WirelessDeviceList?: WirelessDeviceStatistics[]; } -export const ListWirelessDevicesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - NextToken: S.optional(S.String), - WirelessDeviceList: S.optional(WirelessDeviceStatisticsList), - }), - ).annotate({ - identifier: "ListWirelessDevicesResponse", - }) as any as S.Schema; +export const ListWirelessDevicesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + NextToken: S.optional(S.String), + WirelessDeviceList: S.optional(WirelessDeviceStatisticsList), + }), +).annotate({ + identifier: "ListWirelessDevicesResponse", +}) as any as S.Schema; export interface ListWirelessGatewaysRequest { NextToken?: string; MaxResults?: number; } -export const ListWirelessGatewaysRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - NextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/wireless-gateways" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListWirelessGatewaysRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + NextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/wireless-gateways" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListWirelessGatewaysRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListWirelessGatewaysRequest", +}) as any as S.Schema; export interface WirelessGatewayStatistics { Arn?: string; Id?: string; @@ -5152,21 +5104,21 @@ export const WirelessGatewayStatistics = /*@__PURE__*/ S.suspend(() => identifier: "WirelessGatewayStatistics", }) as any as S.Schema; export type WirelessGatewayStatisticsList = WirelessGatewayStatistics[]; -export const WirelessGatewayStatisticsList = - /*@__PURE__*/ S.Array(WirelessGatewayStatistics); +export const WirelessGatewayStatisticsList = /*@__PURE__*/ S.Array( + WirelessGatewayStatistics, +); export interface ListWirelessGatewaysResponse { NextToken?: string; WirelessGatewayList?: WirelessGatewayStatistics[]; } -export const ListWirelessGatewaysResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - NextToken: S.optional(S.String), - WirelessGatewayList: S.optional(WirelessGatewayStatisticsList), - }), - ).annotate({ - identifier: "ListWirelessGatewaysResponse", - }) as any as S.Schema; +export const ListWirelessGatewaysResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + NextToken: S.optional(S.String), + WirelessGatewayList: S.optional(WirelessGatewayStatisticsList), + }), +).annotate({ + identifier: "ListWirelessGatewaysResponse", +}) as any as S.Schema; export type WirelessGatewayTaskDefinitionType = "UPDATE" | (string & {}); export const WirelessGatewayTaskDefinitionType = /*@__PURE__*/ S.String; export interface ListWirelessGatewayTaskDefinitionsRequest { @@ -5199,34 +5151,33 @@ export interface LoRaWANUpdateGatewayTaskEntry { CurrentVersion?: LoRaWANGatewayVersion; UpdateVersion?: LoRaWANGatewayVersion; } -export const LoRaWANUpdateGatewayTaskEntry = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CurrentVersion: S.optional(LoRaWANGatewayVersion), - UpdateVersion: S.optional(LoRaWANGatewayVersion), - }), - ).annotate({ - identifier: "LoRaWANUpdateGatewayTaskEntry", - }) as any as S.Schema; +export const LoRaWANUpdateGatewayTaskEntry = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CurrentVersion: S.optional(LoRaWANGatewayVersion), + UpdateVersion: S.optional(LoRaWANGatewayVersion), + }), +).annotate({ + identifier: "LoRaWANUpdateGatewayTaskEntry", +}) as any as S.Schema; export interface UpdateWirelessGatewayTaskEntry { Id?: string; LoRaWAN?: LoRaWANUpdateGatewayTaskEntry; Arn?: string; } -export const UpdateWirelessGatewayTaskEntry = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Id: S.optional(S.String), - LoRaWAN: S.optional(LoRaWANUpdateGatewayTaskEntry), - Arn: S.optional(S.String), - }), - ).annotate({ - identifier: "UpdateWirelessGatewayTaskEntry", - }) as any as S.Schema; +export const UpdateWirelessGatewayTaskEntry = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Id: S.optional(S.String), + LoRaWAN: S.optional(LoRaWANUpdateGatewayTaskEntry), + Arn: S.optional(S.String), + }), +).annotate({ + identifier: "UpdateWirelessGatewayTaskEntry", +}) as any as S.Schema; export type WirelessGatewayTaskDefinitionList = UpdateWirelessGatewayTaskEntry[]; -export const WirelessGatewayTaskDefinitionList = - /*@__PURE__*/ S.Array(UpdateWirelessGatewayTaskEntry); +export const WirelessGatewayTaskDefinitionList = /*@__PURE__*/ S.Array( + UpdateWirelessGatewayTaskEntry, +); export interface ListWirelessGatewayTaskDefinitionsResponse { NextToken?: string; TaskDefinitions?: UpdateWirelessGatewayTaskEntry[]; @@ -5255,49 +5206,48 @@ export const SemtechGnssConfiguration = /*@__PURE__*/ S.suspend(() => export interface PositionSolverConfigurations { SemtechGnss?: SemtechGnssConfiguration; } -export const PositionSolverConfigurations = - /*@__PURE__*/ S.suspend(() => - S.Struct({ SemtechGnss: S.optional(SemtechGnssConfiguration) }), - ).annotate({ - identifier: "PositionSolverConfigurations", - }) as any as S.Schema; +export const PositionSolverConfigurations = /*@__PURE__*/ S.suspend(() => + S.Struct({ SemtechGnss: S.optional(SemtechGnssConfiguration) }), +).annotate({ + identifier: "PositionSolverConfigurations", +}) as any as S.Schema; export interface PutPositionConfigurationRequest { ResourceIdentifier: string; ResourceType: PositionResourceType; Solvers?: PositionSolverConfigurations; Destination?: string; } -export const PutPositionConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResourceIdentifier: S.String.pipe(T.HttpLabel("ResourceIdentifier")), - ResourceType: PositionResourceType.pipe(T.HttpQuery("resourceType")), - Solvers: S.optional(PositionSolverConfigurations), - Destination: S.optional(S.String), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/position-configurations/{ResourceIdentifier}", - }), - svc, - auth, - proto, - ver, - rules, - ), - ), - ).annotate({ - identifier: "PutPositionConfigurationRequest", - }) as any as S.Schema; -export interface PutPositionConfigurationResponse {} -export const PutPositionConfigurationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "PutPositionConfigurationResponse", - }) as any as S.Schema; -export interface PutResourceLogLevelRequest { - ResourceIdentifier: string; - ResourceType: string; +export const PutPositionConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResourceIdentifier: S.String.pipe(T.HttpLabel("ResourceIdentifier")), + ResourceType: PositionResourceType.pipe(T.HttpQuery("resourceType")), + Solvers: S.optional(PositionSolverConfigurations), + Destination: S.optional(S.String), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/position-configurations/{ResourceIdentifier}", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "PutPositionConfigurationRequest", +}) as any as S.Schema; +export interface PutPositionConfigurationResponse {} +export const PutPositionConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "PutPositionConfigurationResponse", +}) as any as S.Schema; +export interface PutResourceLogLevelRequest { + ResourceIdentifier: string; + ResourceType: string; LogLevel: LogLevel; } export const PutResourceLogLevelRequest = /*@__PURE__*/ S.suspend(() => @@ -5319,58 +5269,59 @@ export const PutResourceLogLevelRequest = /*@__PURE__*/ S.suspend(() => identifier: "PutResourceLogLevelRequest", }) as any as S.Schema; export interface PutResourceLogLevelResponse {} -export const PutResourceLogLevelResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "PutResourceLogLevelResponse", - }) as any as S.Schema; +export const PutResourceLogLevelResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "PutResourceLogLevelResponse", +}) as any as S.Schema; export interface ResetAllResourceLogLevelsRequest {} -export const ResetAllResourceLogLevelsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({}).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/log-levels" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ResetAllResourceLogLevelsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/log-levels" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ResetAllResourceLogLevelsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ResetAllResourceLogLevelsRequest", +}) as any as S.Schema; export interface ResetAllResourceLogLevelsResponse {} -export const ResetAllResourceLogLevelsResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "ResetAllResourceLogLevelsResponse", - }) as any as S.Schema; +export const ResetAllResourceLogLevelsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "ResetAllResourceLogLevelsResponse", +}) as any as S.Schema; export interface ResetResourceLogLevelRequest { ResourceIdentifier: string; ResourceType: string; } -export const ResetResourceLogLevelRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResourceIdentifier: S.String.pipe(T.HttpLabel("ResourceIdentifier")), - ResourceType: S.String.pipe(T.HttpQuery("resourceType")), - }).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/log-levels/{ResourceIdentifier}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ResetResourceLogLevelRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResourceIdentifier: S.String.pipe(T.HttpLabel("ResourceIdentifier")), + ResourceType: S.String.pipe(T.HttpQuery("resourceType")), + }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/log-levels/{ResourceIdentifier}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ResetResourceLogLevelRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ResetResourceLogLevelRequest", +}) as any as S.Schema; export interface ResetResourceLogLevelResponse {} -export const ResetResourceLogLevelResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "ResetResourceLogLevelResponse", - }) as any as S.Schema; +export const ResetResourceLogLevelResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "ResetResourceLogLevelResponse", +}) as any as S.Schema; export interface LoRaWANMulticastMetadata { FPort?: number; } @@ -5392,34 +5343,32 @@ export interface SendDataToMulticastGroupRequest { PayloadData: string; WirelessMetadata: MulticastWirelessMetadata; } -export const SendDataToMulticastGroupRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Id: S.String.pipe(T.HttpLabel("Id")), - PayloadData: S.String, - WirelessMetadata: MulticastWirelessMetadata, - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/multicast-groups/{Id}/data" }), - svc, - auth, - proto, - ver, - rules, - ), +export const SendDataToMulticastGroupRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Id: S.String.pipe(T.HttpLabel("Id")), + PayloadData: S.String, + WirelessMetadata: MulticastWirelessMetadata, + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/multicast-groups/{Id}/data" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "SendDataToMulticastGroupRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "SendDataToMulticastGroupRequest", +}) as any as S.Schema; export interface SendDataToMulticastGroupResponse { MessageId?: string; } -export const SendDataToMulticastGroupResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ MessageId: S.optional(S.String) }), - ).annotate({ - identifier: "SendDataToMulticastGroupResponse", - }) as any as S.Schema; +export const SendDataToMulticastGroupResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ MessageId: S.optional(S.String) }), +).annotate({ + identifier: "SendDataToMulticastGroupResponse", +}) as any as S.Schema; export type MessageType = | "CUSTOM_COMMAND_ID_NOTIFY" | "CUSTOM_COMMAND_ID_GET" @@ -5459,35 +5408,33 @@ export interface SendDataToWirelessDeviceRequest { PayloadData: string; WirelessMetadata?: WirelessMetadata; } -export const SendDataToWirelessDeviceRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Id: S.String.pipe(T.HttpLabel("Id")), - TransmitMode: S.Number, - PayloadData: S.String, - WirelessMetadata: S.optional(WirelessMetadata), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/wireless-devices/{Id}/data" }), - svc, - auth, - proto, - ver, - rules, - ), +export const SendDataToWirelessDeviceRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Id: S.String.pipe(T.HttpLabel("Id")), + TransmitMode: S.Number, + PayloadData: S.String, + WirelessMetadata: S.optional(WirelessMetadata), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/wireless-devices/{Id}/data" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "SendDataToWirelessDeviceRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "SendDataToWirelessDeviceRequest", +}) as any as S.Schema; export interface SendDataToWirelessDeviceResponse { MessageId?: string; } -export const SendDataToWirelessDeviceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ MessageId: S.optional(S.String) }), - ).annotate({ - identifier: "SendDataToWirelessDeviceResponse", - }) as any as S.Schema; +export const SendDataToWirelessDeviceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ MessageId: S.optional(S.String) }), +).annotate({ + identifier: "SendDataToWirelessDeviceResponse", +}) as any as S.Schema; export interface StartBulkAssociateWirelessDeviceWithMulticastGroupRequest { Id: string; QueryString?: string; @@ -5589,42 +5536,41 @@ export interface StartMulticastGroupSessionRequest { Id: string; LoRaWAN: LoRaWANMulticastSession; } -export const StartMulticastGroupSessionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Id: S.String.pipe(T.HttpLabel("Id")), - LoRaWAN: LoRaWANMulticastSession, - }).pipe( - T.all( - T.Http({ method: "PUT", uri: "/multicast-groups/{Id}/session" }), - svc, - auth, - proto, - ver, - rules, - ), +export const StartMulticastGroupSessionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Id: S.String.pipe(T.HttpLabel("Id")), + LoRaWAN: LoRaWANMulticastSession, + }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/multicast-groups/{Id}/session" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "StartMulticastGroupSessionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "StartMulticastGroupSessionRequest", +}) as any as S.Schema; export interface StartMulticastGroupSessionResponse {} -export const StartMulticastGroupSessionResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "StartMulticastGroupSessionResponse", - }) as any as S.Schema; +export const StartMulticastGroupSessionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "StartMulticastGroupSessionResponse", +}) as any as S.Schema; export interface SidewalkSingleStartImportInfo { SidewalkManufacturingSn?: string; Positioning?: SidewalkPositioning; } -export const SidewalkSingleStartImportInfo = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SidewalkManufacturingSn: S.optional(S.String), - Positioning: S.optional(SidewalkPositioning), - }), - ).annotate({ - identifier: "SidewalkSingleStartImportInfo", - }) as any as S.Schema; +export const SidewalkSingleStartImportInfo = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SidewalkManufacturingSn: S.optional(S.String), + Positioning: S.optional(SidewalkPositioning), + }), +).annotate({ + identifier: "SidewalkSingleStartImportInfo", +}) as any as S.Schema; export interface StartSingleWirelessDeviceImportTaskRequest { DestinationName: string; ClientRequestToken?: string; @@ -5686,8 +5632,8 @@ export interface StartWirelessDeviceImportTaskRequest { Positioning?: PositioningConfigStatus; Sidewalk: SidewalkStartImportInfo; } -export const StartWirelessDeviceImportTaskRequest = - /*@__PURE__*/ S.suspend(() => +export const StartWirelessDeviceImportTaskRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ DestinationName: S.String, ClientRequestToken: S.optional(S.String).pipe(T.IdempotencyToken()), @@ -5704,19 +5650,18 @@ export const StartWirelessDeviceImportTaskRequest = rules, ), ), - ).annotate({ - identifier: "StartWirelessDeviceImportTaskRequest", - }) as any as S.Schema; +).annotate({ + identifier: "StartWirelessDeviceImportTaskRequest", +}) as any as S.Schema; export interface StartWirelessDeviceImportTaskResponse { Id?: string; Arn?: string; } -export const StartWirelessDeviceImportTaskResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Id: S.optional(S.String), Arn: S.optional(S.String) }), - ).annotate({ - identifier: "StartWirelessDeviceImportTaskResponse", - }) as any as S.Schema; +export const StartWirelessDeviceImportTaskResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ Id: S.optional(S.String), Arn: S.optional(S.String) }), +).annotate({ + identifier: "StartWirelessDeviceImportTaskResponse", +}) as any as S.Schema; export interface TagResourceRequest { ResourceArn: string; Tags: Tag[]; @@ -5922,8 +5867,8 @@ export interface UpdateLogLevelsByResourceTypesRequest { WirelessDeviceLogOptions?: WirelessDeviceLogOption[]; WirelessGatewayLogOptions?: WirelessGatewayLogOption[]; } -export const UpdateLogLevelsByResourceTypesRequest = - /*@__PURE__*/ S.suspend(() => +export const UpdateLogLevelsByResourceTypesRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ DefaultLogLevel: S.optional(LogLevel), FuotaTaskLogOptions: S.optional(FuotaTaskLogOptionList), @@ -5939,68 +5884,69 @@ export const UpdateLogLevelsByResourceTypesRequest = rules, ), ), - ).annotate({ - identifier: "UpdateLogLevelsByResourceTypesRequest", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateLogLevelsByResourceTypesRequest", +}) as any as S.Schema; export interface UpdateLogLevelsByResourceTypesResponse {} -export const UpdateLogLevelsByResourceTypesResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateLogLevelsByResourceTypesResponse", - }) as any as S.Schema; +export const UpdateLogLevelsByResourceTypesResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}), +).annotate({ + identifier: "UpdateLogLevelsByResourceTypesResponse", +}) as any as S.Schema; export interface UpdateMetricConfigurationRequest { SummaryMetric?: SummaryMetricConfiguration; } -export const UpdateMetricConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ SummaryMetric: S.optional(SummaryMetricConfiguration) }).pipe( - T.all( - T.Http({ method: "PUT", uri: "/metric-configuration" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateMetricConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ SummaryMetric: S.optional(SummaryMetricConfiguration) }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/metric-configuration" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateMetricConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateMetricConfigurationRequest", +}) as any as S.Schema; export interface UpdateMetricConfigurationResponse {} -export const UpdateMetricConfigurationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateMetricConfigurationResponse", - }) as any as S.Schema; +export const UpdateMetricConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "UpdateMetricConfigurationResponse", +}) as any as S.Schema; export interface UpdateMulticastGroupRequest { Id: string; Name?: string; Description?: string; LoRaWAN?: LoRaWANMulticast; } -export const UpdateMulticastGroupRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Id: S.String.pipe(T.HttpLabel("Id")), - Name: S.optional(S.String), - Description: S.optional(S.String), - LoRaWAN: S.optional(LoRaWANMulticast), - }).pipe( - T.all( - T.Http({ method: "PATCH", uri: "/multicast-groups/{Id}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateMulticastGroupRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Id: S.String.pipe(T.HttpLabel("Id")), + Name: S.optional(S.String), + Description: S.optional(S.String), + LoRaWAN: S.optional(LoRaWANMulticast), + }).pipe( + T.all( + T.Http({ method: "PATCH", uri: "/multicast-groups/{Id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateMulticastGroupRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateMulticastGroupRequest", +}) as any as S.Schema; export interface UpdateMulticastGroupResponse {} -export const UpdateMulticastGroupResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateMulticastGroupResponse", - }) as any as S.Schema; +export const UpdateMulticastGroupResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "UpdateMulticastGroupResponse", +}) as any as S.Schema; export interface UpdateNetworkAnalyzerConfigurationRequest { ConfigurationName: string; TraceContent?: TraceContent; @@ -6058,33 +6004,30 @@ export interface UpdatePartnerAccountRequest { PartnerAccountId: string; PartnerType: PartnerType; } -export const UpdatePartnerAccountRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Sidewalk: SidewalkUpdateAccount, - PartnerAccountId: S.String.pipe(T.HttpLabel("PartnerAccountId")), - PartnerType: PartnerType.pipe(T.HttpQuery("partnerType")), - }).pipe( - T.all( - T.Http({ - method: "PATCH", - uri: "/partner-accounts/{PartnerAccountId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdatePartnerAccountRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Sidewalk: SidewalkUpdateAccount, + PartnerAccountId: S.String.pipe(T.HttpLabel("PartnerAccountId")), + PartnerType: PartnerType.pipe(T.HttpQuery("partnerType")), + }).pipe( + T.all( + T.Http({ method: "PATCH", uri: "/partner-accounts/{PartnerAccountId}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdatePartnerAccountRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdatePartnerAccountRequest", +}) as any as S.Schema; export interface UpdatePartnerAccountResponse {} -export const UpdatePartnerAccountResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdatePartnerAccountResponse", - }) as any as S.Schema; +export const UpdatePartnerAccountResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "UpdatePartnerAccountResponse", +}) as any as S.Schema; export interface UpdatePositionRequest { ResourceIdentifier: string; ResourceType: PositionResourceType; @@ -6124,8 +6067,8 @@ export interface UpdateResourceEventConfigurationRequest { ConnectionStatus?: ConnectionStatusEventConfiguration; MessageDeliveryStatus?: MessageDeliveryStatusEventConfiguration; } -export const UpdateResourceEventConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const UpdateResourceEventConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Identifier: S.String.pipe(T.HttpLabel("Identifier")), IdentifierType: IdentifierType.pipe(T.HttpQuery("identifierType")), @@ -6151,46 +6094,47 @@ export const UpdateResourceEventConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "UpdateResourceEventConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateResourceEventConfigurationRequest", +}) as any as S.Schema; export interface UpdateResourceEventConfigurationResponse {} -export const UpdateResourceEventConfigurationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateResourceEventConfigurationResponse", - }) as any as S.Schema; +export const UpdateResourceEventConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}), +).annotate({ + identifier: "UpdateResourceEventConfigurationResponse", +}) as any as S.Schema; export interface UpdateResourcePositionRequest { ResourceIdentifier: string; ResourceType: PositionResourceType; GeoJsonPayload?: T.StreamingInputBody; } -export const UpdateResourcePositionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResourceIdentifier: S.String.pipe(T.HttpLabel("ResourceIdentifier")), - ResourceType: PositionResourceType.pipe(T.HttpQuery("resourceType")), - GeoJsonPayload: S.optional(T.StreamingInput).pipe(T.HttpPayload()), - }).pipe( - T.all( - T.Http({ - method: "PATCH", - uri: "/resource-positions/{ResourceIdentifier}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateResourcePositionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResourceIdentifier: S.String.pipe(T.HttpLabel("ResourceIdentifier")), + ResourceType: PositionResourceType.pipe(T.HttpQuery("resourceType")), + GeoJsonPayload: S.optional(T.StreamingInput).pipe(T.HttpPayload()), + }).pipe( + T.all( + T.Http({ + method: "PATCH", + uri: "/resource-positions/{ResourceIdentifier}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateResourcePositionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateResourcePositionRequest", +}) as any as S.Schema; export interface UpdateResourcePositionResponse {} -export const UpdateResourcePositionResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateResourcePositionResponse", - }) as any as S.Schema; +export const UpdateResourcePositionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "UpdateResourcePositionResponse", +}) as any as S.Schema; export interface UpdateAbpV1_1 { FCntStart?: number; } @@ -6236,12 +6180,11 @@ export const LoRaWANUpdateDevice = /*@__PURE__*/ S.suspend(() => export interface SidewalkUpdateWirelessDevice { Positioning?: SidewalkPositioning; } -export const SidewalkUpdateWirelessDevice = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Positioning: S.optional(SidewalkPositioning) }), - ).annotate({ - identifier: "SidewalkUpdateWirelessDevice", - }) as any as S.Schema; +export const SidewalkUpdateWirelessDevice = /*@__PURE__*/ S.suspend(() => + S.Struct({ Positioning: S.optional(SidewalkPositioning) }), +).annotate({ + identifier: "SidewalkUpdateWirelessDevice", +}) as any as S.Schema; export interface UpdateWirelessDeviceRequest { Id: string; DestinationName?: string; @@ -6251,34 +6194,34 @@ export interface UpdateWirelessDeviceRequest { Positioning?: PositioningConfigStatus; Sidewalk?: SidewalkUpdateWirelessDevice; } -export const UpdateWirelessDeviceRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Id: S.String.pipe(T.HttpLabel("Id")), - DestinationName: S.optional(S.String), - Name: S.optional(S.String), - Description: S.optional(S.String), - LoRaWAN: S.optional(LoRaWANUpdateDevice), - Positioning: S.optional(PositioningConfigStatus), - Sidewalk: S.optional(SidewalkUpdateWirelessDevice), - }).pipe( - T.all( - T.Http({ method: "PATCH", uri: "/wireless-devices/{Id}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateWirelessDeviceRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Id: S.String.pipe(T.HttpLabel("Id")), + DestinationName: S.optional(S.String), + Name: S.optional(S.String), + Description: S.optional(S.String), + LoRaWAN: S.optional(LoRaWANUpdateDevice), + Positioning: S.optional(PositioningConfigStatus), + Sidewalk: S.optional(SidewalkUpdateWirelessDevice), + }).pipe( + T.all( + T.Http({ method: "PATCH", uri: "/wireless-devices/{Id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateWirelessDeviceRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateWirelessDeviceRequest", +}) as any as S.Schema; export interface UpdateWirelessDeviceResponse {} -export const UpdateWirelessDeviceResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateWirelessDeviceResponse", - }) as any as S.Schema; +export const UpdateWirelessDeviceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "UpdateWirelessDeviceResponse", +}) as any as S.Schema; export interface SidewalkUpdateImportInfo { DeviceCreationFile?: string; } @@ -6291,8 +6234,8 @@ export interface UpdateWirelessDeviceImportTaskRequest { Id: string; Sidewalk: SidewalkUpdateImportInfo; } -export const UpdateWirelessDeviceImportTaskRequest = - /*@__PURE__*/ S.suspend(() => +export const UpdateWirelessDeviceImportTaskRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")), Sidewalk: SidewalkUpdateImportInfo, @@ -6306,14 +6249,15 @@ export const UpdateWirelessDeviceImportTaskRequest = rules, ), ), - ).annotate({ - identifier: "UpdateWirelessDeviceImportTaskRequest", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateWirelessDeviceImportTaskRequest", +}) as any as S.Schema; export interface UpdateWirelessDeviceImportTaskResponse {} -export const UpdateWirelessDeviceImportTaskResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateWirelessDeviceImportTaskResponse", - }) as any as S.Schema; +export const UpdateWirelessDeviceImportTaskResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}), +).annotate({ + identifier: "UpdateWirelessDeviceImportTaskResponse", +}) as any as S.Schema; export interface UpdateWirelessGatewayRequest { Id: string; Name?: string; @@ -6322,38 +6266,39 @@ export interface UpdateWirelessGatewayRequest { NetIdFilters?: string[]; MaxEirp?: number; } -export const UpdateWirelessGatewayRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Id: S.String.pipe(T.HttpLabel("Id")), - Name: S.optional(S.String), - Description: S.optional(S.String), - JoinEuiFilters: S.optional(JoinEuiFilters), - NetIdFilters: S.optional(NetIdFilters), - MaxEirp: S.optional(S.Number), - }).pipe( - T.all( - T.Http({ method: "PATCH", uri: "/wireless-gateways/{Id}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateWirelessGatewayRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Id: S.String.pipe(T.HttpLabel("Id")), + Name: S.optional(S.String), + Description: S.optional(S.String), + JoinEuiFilters: S.optional(JoinEuiFilters), + NetIdFilters: S.optional(NetIdFilters), + MaxEirp: S.optional(S.Number), + }).pipe( + T.all( + T.Http({ method: "PATCH", uri: "/wireless-gateways/{Id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateWirelessGatewayRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateWirelessGatewayRequest", +}) as any as S.Schema; export interface UpdateWirelessGatewayResponse {} -export const UpdateWirelessGatewayResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateWirelessGatewayResponse", - }) as any as S.Schema; +export const UpdateWirelessGatewayResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "UpdateWirelessGatewayResponse", +}) as any as S.Schema; //# Errors export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { Message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", @@ -6362,10 +6307,12 @@ export class ConflictException extends S.TaggedErrorClass()( ResourceId: S.optional(S.String), ResourceType: S.optional(S.String), }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", @@ -6374,18 +6321,22 @@ export class ResourceNotFoundException extends S.TaggedErrorClass()( "ThrottlingException", { Message: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyTagsException extends S.TaggedErrorClass()( "TooManyTagsException", { Message: S.optional(S.String), ResourceName: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} //# Operations diff --git a/packages/aws/src/services/iot.ts b/packages/aws/src/services/iot.ts index c64182ba2d..86909dcad9 100644 --- a/packages/aws/src/services/iot.ts +++ b/packages/aws/src/services/iot.ts @@ -15011,6 +15011,14 @@ export class CertificateStateException extends S.TaggedErrorClass()( + "TopicRuleNotFound", + { message: S.optional(S.String) }, + T.SyntheticError({ + from: "UnauthorizedException", + message: { includes: "Access to topic rule" }, + }), +).pipe(C.withNotFoundError) {} export class NotConfiguredException extends S.TaggedErrorClass()( "NotConfiguredException", { message: S.optional(S.String) }, @@ -17696,6 +17704,7 @@ export type DeleteTopicRuleError = | InvalidRequestException | ServiceUnavailableException | UnauthorizedException + | TopicRuleNotFound | CommonErrors; /** * Deletes the rule. @@ -17716,6 +17725,7 @@ export const deleteTopicRule: API.OperationMethod< InvalidRequestException, ServiceUnavailableException, UnauthorizedException, + TopicRuleNotFound, ], operationName: "DeleteTopicRule", })); @@ -19622,6 +19632,7 @@ export type GetTopicRuleError = | InvalidRequestException | ServiceUnavailableException | UnauthorizedException + | TopicRuleNotFound | CommonErrors; /** * Gets information about the rule. @@ -19641,6 +19652,7 @@ export const getTopicRule: API.OperationMethod< InvalidRequestException, ServiceUnavailableException, UnauthorizedException, + TopicRuleNotFound, ], operationName: "GetTopicRule", })); diff --git a/packages/aws/src/services/iotfleetwise.ts b/packages/aws/src/services/iotfleetwise.ts index 05912527c2..be17eb3ba9 100644 --- a/packages/aws/src/services/iotfleetwise.ts +++ b/packages/aws/src/services/iotfleetwise.ts @@ -188,17 +188,17 @@ export const TimePeriod = /*@__PURE__*/ S.suspend(() => export interface PeriodicStateTemplateUpdateStrategy { stateTemplateUpdateRate: TimePeriod; } -export const PeriodicStateTemplateUpdateStrategy = - /*@__PURE__*/ S.suspend(() => - S.Struct({ stateTemplateUpdateRate: TimePeriod }), - ).annotate({ - identifier: "PeriodicStateTemplateUpdateStrategy", - }) as any as S.Schema; +export const PeriodicStateTemplateUpdateStrategy = /*@__PURE__*/ S.suspend(() => + S.Struct({ stateTemplateUpdateRate: TimePeriod }), +).annotate({ + identifier: "PeriodicStateTemplateUpdateStrategy", +}) as any as S.Schema; export interface OnChangeStateTemplateUpdateStrategy {} -export const OnChangeStateTemplateUpdateStrategy = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "OnChangeStateTemplateUpdateStrategy", - }) as any as S.Schema; +export const OnChangeStateTemplateUpdateStrategy = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "OnChangeStateTemplateUpdateStrategy", +}) as any as S.Schema; export type StateTemplateUpdateStrategy = | { periodic: PeriodicStateTemplateUpdateStrategy; onChange?: never } | { periodic?: never; onChange: OnChangeStateTemplateUpdateStrategy }; @@ -334,8 +334,9 @@ export const ValidationExceptionFieldList = /*@__PURE__*/ S.Array( export type UpdateMode = "Overwrite" | "Merge" | (string & {}); export const UpdateMode = /*@__PURE__*/ S.String; export type StateTemplateAssociationIdentifiers = string[]; -export const StateTemplateAssociationIdentifiers = - /*@__PURE__*/ S.Array(S.String); +export const StateTemplateAssociationIdentifiers = /*@__PURE__*/ S.Array( + S.String, +); export interface UpdateVehicleRequestItem { vehicleName: string; modelManifestArn?: string; @@ -423,21 +424,20 @@ export const BatchUpdateVehicleResponse = /*@__PURE__*/ S.suspend(() => identifier: "BatchUpdateVehicleResponse", }) as any as S.Schema; export interface GetEncryptionConfigurationRequest {} -export const GetEncryptionConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({}).pipe( - T.all( - T.Http({ method: "GET", uri: "/encryptionConfiguration" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetEncryptionConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe( + T.all( + T.Http({ method: "GET", uri: "/encryptionConfiguration" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetEncryptionConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetEncryptionConfigurationRequest", +}) as any as S.Schema; export type EncryptionStatus = | "PENDING" | "SUCCESS" @@ -457,21 +457,20 @@ export interface GetEncryptionConfigurationResponse { creationTime?: Date; lastModificationTime?: Date; } -export const GetEncryptionConfigurationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - kmsKeyId: S.optional(S.String), - encryptionStatus: EncryptionStatus, - encryptionType: EncryptionType, - errorMessage: S.optional(S.String), - creationTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - lastModificationTime: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - }), - ).annotate({ - identifier: "GetEncryptionConfigurationResponse", - }) as any as S.Schema; +export const GetEncryptionConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + kmsKeyId: S.optional(S.String), + encryptionStatus: EncryptionStatus, + encryptionType: EncryptionType, + errorMessage: S.optional(S.String), + creationTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + lastModificationTime: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + }), +).annotate({ + identifier: "GetEncryptionConfigurationResponse", +}) as any as S.Schema; export interface GetLoggingOptionsRequest {} export const GetLoggingOptionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe( @@ -493,12 +492,11 @@ export interface CloudWatchLogDeliveryOptions { logType: LogType; logGroupName?: string; } -export const CloudWatchLogDeliveryOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ logType: LogType, logGroupName: S.optional(S.String) }), - ).annotate({ - identifier: "CloudWatchLogDeliveryOptions", - }) as any as S.Schema; +export const CloudWatchLogDeliveryOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ logType: LogType, logGroupName: S.optional(S.String) }), +).annotate({ + identifier: "CloudWatchLogDeliveryOptions", +}) as any as S.Schema; export interface GetLoggingOptionsResponse { cloudWatchLogDelivery: CloudWatchLogDeliveryOptions; } @@ -508,21 +506,20 @@ export const GetLoggingOptionsResponse = /*@__PURE__*/ S.suspend(() => identifier: "GetLoggingOptionsResponse", }) as any as S.Schema; export interface GetRegisterAccountStatusRequest {} -export const GetRegisterAccountStatusRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({}).pipe( - T.all( - T.Http({ method: "GET", uri: "/account/registration_status" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetRegisterAccountStatusRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe( + T.all( + T.Http({ method: "GET", uri: "/account/registration_status" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetRegisterAccountStatusRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetRegisterAccountStatusRequest", +}) as any as S.Schema; export type RegistrationStatus = | "REGISTRATION_PENDING" | "REGISTRATION_SUCCESS" @@ -537,19 +534,18 @@ export interface TimestreamRegistrationResponse { registrationStatus: RegistrationStatus; errorMessage?: string; } -export const TimestreamRegistrationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - timestreamDatabaseName: S.String, - timestreamTableName: S.String, - timestreamDatabaseArn: S.optional(S.String), - timestreamTableArn: S.optional(S.String), - registrationStatus: RegistrationStatus, - errorMessage: S.optional(S.String), - }), - ).annotate({ - identifier: "TimestreamRegistrationResponse", - }) as any as S.Schema; +export const TimestreamRegistrationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + timestreamDatabaseName: S.String, + timestreamTableName: S.String, + timestreamDatabaseArn: S.optional(S.String), + timestreamTableArn: S.optional(S.String), + registrationStatus: RegistrationStatus, + errorMessage: S.optional(S.String), + }), +).annotate({ + identifier: "TimestreamRegistrationResponse", +}) as any as S.Schema; export interface IamRegistrationResponse { roleArn: string; registrationStatus: RegistrationStatus; @@ -572,21 +568,18 @@ export interface GetRegisterAccountStatusResponse { creationTime: Date; lastModificationTime: Date; } -export const GetRegisterAccountStatusResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - customerAccountId: S.String, - accountStatus: RegistrationStatus, - timestreamRegistrationResponse: S.optional( - TimestreamRegistrationResponse, - ), - iamRegistrationResponse: IamRegistrationResponse, - creationTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - lastModificationTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - }), - ).annotate({ - identifier: "GetRegisterAccountStatusResponse", - }) as any as S.Schema; +export const GetRegisterAccountStatusResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + customerAccountId: S.String, + accountStatus: RegistrationStatus, + timestreamRegistrationResponse: S.optional(TimestreamRegistrationResponse), + iamRegistrationResponse: IamRegistrationResponse, + creationTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + lastModificationTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + }), +).annotate({ + identifier: "GetRegisterAccountStatusResponse", +}) as any as S.Schema; export interface GetVehicleStatusRequest { nextToken?: string; maxResults?: number; @@ -665,49 +658,46 @@ export const ListTagsForResourceRequest = /*@__PURE__*/ S.suspend(() => export interface ListTagsForResourceResponse { Tags?: Tag[]; } -export const ListTagsForResourceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Tags: S.optional(TagList) }), - ).annotate({ - identifier: "ListTagsForResourceResponse", - }) as any as S.Schema; +export const ListTagsForResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Tags: S.optional(TagList) }), +).annotate({ + identifier: "ListTagsForResourceResponse", +}) as any as S.Schema; export interface PutEncryptionConfigurationRequest { kmsKeyId?: string; encryptionType: EncryptionType; } -export const PutEncryptionConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - kmsKeyId: S.optional(S.String), - encryptionType: EncryptionType, - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/encryptionConfiguration" }), - svc, - auth, - proto, - ver, - rules, - ), +export const PutEncryptionConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + kmsKeyId: S.optional(S.String), + encryptionType: EncryptionType, + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/encryptionConfiguration" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "PutEncryptionConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "PutEncryptionConfigurationRequest", +}) as any as S.Schema; export interface PutEncryptionConfigurationResponse { kmsKeyId?: string; encryptionStatus: EncryptionStatus; encryptionType: EncryptionType; } -export const PutEncryptionConfigurationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - kmsKeyId: S.optional(S.String), - encryptionStatus: EncryptionStatus, - encryptionType: EncryptionType, - }), - ).annotate({ - identifier: "PutEncryptionConfigurationResponse", - }) as any as S.Schema; +export const PutEncryptionConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + kmsKeyId: S.optional(S.String), + encryptionStatus: EncryptionStatus, + encryptionType: EncryptionType, + }), +).annotate({ + identifier: "PutEncryptionConfigurationResponse", +}) as any as S.Schema; export interface PutLoggingOptionsRequest { cloudWatchLogDelivery: CloudWatchLogDeliveryOptions; } @@ -881,17 +871,16 @@ export interface ConditionBasedCollectionScheme { triggerMode?: TriggerMode; conditionLanguageVersion?: number; } -export const ConditionBasedCollectionScheme = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - expression: SensitiveString, - minimumTriggerIntervalMs: S.optional(S.Number), - triggerMode: S.optional(TriggerMode), - conditionLanguageVersion: S.optional(S.Number), - }), - ).annotate({ - identifier: "ConditionBasedCollectionScheme", - }) as any as S.Schema; +export const ConditionBasedCollectionScheme = /*@__PURE__*/ S.suspend(() => + S.Struct({ + expression: SensitiveString, + minimumTriggerIntervalMs: S.optional(S.Number), + triggerMode: S.optional(TriggerMode), + conditionLanguageVersion: S.optional(S.Number), + }), +).annotate({ + identifier: "ConditionBasedCollectionScheme", +}) as any as S.Schema; export type CollectionScheme = | { timeBasedCollectionScheme: TimeBasedCollectionScheme; @@ -995,16 +984,15 @@ export interface DataPartitionStorageOptions { storageLocation: string | redacted.Redacted; minimumTimeToLive: StorageMinimumTimeToLive; } -export const DataPartitionStorageOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - maximumSize: StorageMaximumSize, - storageLocation: SensitiveString, - minimumTimeToLive: StorageMinimumTimeToLive, - }), - ).annotate({ - identifier: "DataPartitionStorageOptions", - }) as any as S.Schema; +export const DataPartitionStorageOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + maximumSize: StorageMaximumSize, + storageLocation: SensitiveString, + minimumTimeToLive: StorageMinimumTimeToLive, + }), +).annotate({ + identifier: "DataPartitionStorageOptions", +}) as any as S.Schema; export interface DataPartitionUploadOptions { expression: string | redacted.Redacted; conditionLanguageVersion?: number; @@ -1043,15 +1031,11 @@ export interface ConditionBasedSignalFetchConfig { conditionExpression: string | redacted.Redacted; triggerMode: TriggerMode; } -export const ConditionBasedSignalFetchConfig = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - conditionExpression: SensitiveString, - triggerMode: TriggerMode, - }), - ).annotate({ - identifier: "ConditionBasedSignalFetchConfig", - }) as any as S.Schema; +export const ConditionBasedSignalFetchConfig = /*@__PURE__*/ S.suspend(() => + S.Struct({ conditionExpression: SensitiveString, triggerMode: TriggerMode }), +).annotate({ + identifier: "ConditionBasedSignalFetchConfig", +}) as any as S.Schema; export type SignalFetchConfig = | { timeBased: TimeBasedSignalFetchConfig; conditionBased?: never } | { timeBased?: never; conditionBased: ConditionBasedSignalFetchConfig }; @@ -1059,13 +1043,13 @@ export const SignalFetchConfig = /*@__PURE__*/ S.Union([ S.Struct({ timeBased: TimeBasedSignalFetchConfig }), S.Struct({ conditionBased: ConditionBasedSignalFetchConfig }), ]); -export type EventExpressionList = string | redacted.Redacted[]; +export type EventExpressionList = (string | redacted.Redacted)[]; export const EventExpressionList = /*@__PURE__*/ S.Array(SensitiveString); export interface SignalFetchInformation { fullyQualifiedName: string; signalFetchConfig: SignalFetchConfig; conditionLanguageVersion?: number; - actions: string | redacted.Redacted[]; + actions: (string | redacted.Redacted)[]; } export const SignalFetchInformation = /*@__PURE__*/ S.suspend(() => S.Struct({ @@ -1443,17 +1427,16 @@ export interface ROS2PrimitiveMessageDefinition { scaling?: number; upperBound?: number; } -export const ROS2PrimitiveMessageDefinition = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - primitiveType: ROS2PrimitiveType, - offset: S.optional(S.Number), - scaling: S.optional(S.Number), - upperBound: S.optional(S.Number), - }), - ).annotate({ - identifier: "ROS2PrimitiveMessageDefinition", - }) as any as S.Schema; +export const ROS2PrimitiveMessageDefinition = /*@__PURE__*/ S.suspend(() => + S.Struct({ + primitiveType: ROS2PrimitiveType, + offset: S.optional(S.Number), + scaling: S.optional(S.Number), + upperBound: S.optional(S.Number), + }), +).annotate({ + identifier: "ROS2PrimitiveMessageDefinition", +}) as any as S.Schema; export type PrimitiveMessageDefinition = { ros2PrimitiveMessageDefinition: ROS2PrimitiveMessageDefinition; }; @@ -1472,19 +1455,18 @@ export interface StructuredMessageListDefinition { listType: StructuredMessageListType; capacity?: number; } -export const StructuredMessageListDefinition = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.String, - memberType: S.suspend(() => StructuredMessage).annotate({ - identifier: "StructuredMessage", - }), - listType: StructuredMessageListType, - capacity: S.optional(S.Number), +export const StructuredMessageListDefinition = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.String, + memberType: S.suspend(() => StructuredMessage).annotate({ + identifier: "StructuredMessage", }), - ).annotate({ - identifier: "StructuredMessageListDefinition", - }) as any as S.Schema; + listType: StructuredMessageListType, + capacity: S.optional(S.Number), + }), +).annotate({ + identifier: "StructuredMessageListDefinition", +}) as any as S.Schema; export interface StructuredMessageFieldNameAndDataTypePair { fieldName: string; dataType: StructuredMessage; @@ -1666,39 +1648,37 @@ export interface CreateDecoderManifestRequest { defaultForUnmappedSignals?: DefaultForUnmappedSignalsType; tags?: Tag[]; } -export const CreateDecoderManifestRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.String.pipe(T.HttpLabel("name")), - description: S.optional(S.String), - modelManifestArn: S.String, - signalDecoders: S.optional(SignalDecoders), - networkInterfaces: S.optional(NetworkInterfaces), - defaultForUnmappedSignals: S.optional(DefaultForUnmappedSignalsType), - tags: S.optional(TagList), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/decoder-manifests/{name}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateDecoderManifestRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.String.pipe(T.HttpLabel("name")), + description: S.optional(S.String), + modelManifestArn: S.String, + signalDecoders: S.optional(SignalDecoders), + networkInterfaces: S.optional(NetworkInterfaces), + defaultForUnmappedSignals: S.optional(DefaultForUnmappedSignalsType), + tags: S.optional(TagList), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/decoder-manifests/{name}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateDecoderManifestRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateDecoderManifestRequest", +}) as any as S.Schema; export interface CreateDecoderManifestResponse { name: string; arn: string; } -export const CreateDecoderManifestResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ name: S.String, arn: S.String }), - ).annotate({ - identifier: "CreateDecoderManifestResponse", - }) as any as S.Schema; +export const CreateDecoderManifestResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ name: S.String, arn: S.String }), +).annotate({ + identifier: "CreateDecoderManifestResponse", +}) as any as S.Schema; export type SignalDecoderFailureReason = | "DUPLICATE_SIGNAL" | "CONFLICTING_SIGNAL" @@ -1826,115 +1806,110 @@ export interface UpdateDecoderManifestRequest { status?: ManifestStatus; defaultForUnmappedSignals?: DefaultForUnmappedSignalsType; } -export const UpdateDecoderManifestRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.String.pipe(T.HttpLabel("name")), - description: S.optional(S.String), - signalDecodersToAdd: S.optional(SignalDecoders), - signalDecodersToUpdate: S.optional(SignalDecoders), - signalDecodersToRemove: S.optional(Fqns), - networkInterfacesToAdd: S.optional(NetworkInterfaces), - networkInterfacesToUpdate: S.optional(NetworkInterfaces), - networkInterfacesToRemove: S.optional(InterfaceIds), - status: S.optional(ManifestStatus), - defaultForUnmappedSignals: S.optional(DefaultForUnmappedSignalsType), - }).pipe( - T.all( - T.Http({ method: "PATCH", uri: "/decoder-manifests/{name}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateDecoderManifestRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.String.pipe(T.HttpLabel("name")), + description: S.optional(S.String), + signalDecodersToAdd: S.optional(SignalDecoders), + signalDecodersToUpdate: S.optional(SignalDecoders), + signalDecodersToRemove: S.optional(Fqns), + networkInterfacesToAdd: S.optional(NetworkInterfaces), + networkInterfacesToUpdate: S.optional(NetworkInterfaces), + networkInterfacesToRemove: S.optional(InterfaceIds), + status: S.optional(ManifestStatus), + defaultForUnmappedSignals: S.optional(DefaultForUnmappedSignalsType), + }).pipe( + T.all( + T.Http({ method: "PATCH", uri: "/decoder-manifests/{name}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateDecoderManifestRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateDecoderManifestRequest", +}) as any as S.Schema; export interface UpdateDecoderManifestResponse { name: string; arn: string; } -export const UpdateDecoderManifestResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ name: S.String, arn: S.String }), - ).annotate({ - identifier: "UpdateDecoderManifestResponse", - }) as any as S.Schema; +export const UpdateDecoderManifestResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ name: S.String, arn: S.String }), +).annotate({ + identifier: "UpdateDecoderManifestResponse", +}) as any as S.Schema; export interface DeleteDecoderManifestRequest { name: string; } -export const DeleteDecoderManifestRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ name: S.String.pipe(T.HttpLabel("name")) }).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/decoder-manifests/{name}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteDecoderManifestRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ name: S.String.pipe(T.HttpLabel("name")) }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/decoder-manifests/{name}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteDecoderManifestRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteDecoderManifestRequest", +}) as any as S.Schema; export interface DeleteDecoderManifestResponse { name: string; arn: string; } -export const DeleteDecoderManifestResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ name: S.String, arn: S.String }), - ).annotate({ - identifier: "DeleteDecoderManifestResponse", - }) as any as S.Schema; +export const DeleteDecoderManifestResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ name: S.String, arn: S.String }), +).annotate({ + identifier: "DeleteDecoderManifestResponse", +}) as any as S.Schema; export interface ListDecoderManifestsRequest { modelManifestArn?: string; nextToken?: string; maxResults?: number; listResponseScope?: ListResponseScope; } -export const ListDecoderManifestsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - modelManifestArn: S.optional(S.String).pipe( - T.HttpQuery("modelManifestArn"), - ), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - listResponseScope: S.optional(ListResponseScope).pipe( - T.HttpQuery("listResponseScope"), - ), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/decoder-manifests" }), - svc, - auth, - proto, - ver, - rules, - ), - ), - ).annotate({ - identifier: "ListDecoderManifestsRequest", - }) as any as S.Schema; -export interface DecoderManifestSummary { - name?: string; - arn?: string; - modelManifestArn?: string; - description?: string; - status?: ManifestStatus; - creationTime: Date; - lastModificationTime: Date; - message?: string; -} -export const DecoderManifestSummary = /*@__PURE__*/ S.suspend(() => +export const ListDecoderManifestsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ - name: S.optional(S.String), - arn: S.optional(S.String), - modelManifestArn: S.optional(S.String), + modelManifestArn: S.optional(S.String).pipe( + T.HttpQuery("modelManifestArn"), + ), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + listResponseScope: S.optional(ListResponseScope).pipe( + T.HttpQuery("listResponseScope"), + ), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/decoder-manifests" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "ListDecoderManifestsRequest", +}) as any as S.Schema; +export interface DecoderManifestSummary { + name?: string; + arn?: string; + modelManifestArn?: string; + description?: string; + status?: ManifestStatus; + creationTime: Date; + lastModificationTime: Date; + message?: string; +} +export const DecoderManifestSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.optional(S.String), + arn: S.optional(S.String), + modelManifestArn: S.optional(S.String), description: S.optional(S.String), status: S.optional(ManifestStatus), creationTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), @@ -1952,15 +1927,14 @@ export interface ListDecoderManifestsResponse { summaries?: DecoderManifestSummary[]; nextToken?: string; } -export const ListDecoderManifestsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - summaries: S.optional(DecoderManifestSummaries), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListDecoderManifestsResponse", - }) as any as S.Schema; +export const ListDecoderManifestsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + summaries: S.optional(DecoderManifestSummaries), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListDecoderManifestsResponse", +}) as any as S.Schema; export type NetworkFilesList = Uint8Array[]; export const NetworkFilesList = /*@__PURE__*/ S.Array(T.Blob); export type ModelSignalsMap = { [key: string]: string | undefined }; @@ -1994,34 +1968,32 @@ export interface ImportDecoderManifestRequest { name: string; networkFileDefinitions: NetworkFileDefinition[]; } -export const ImportDecoderManifestRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.String.pipe(T.HttpLabel("name")), - networkFileDefinitions: NetworkFileDefinitions, - }).pipe( - T.all( - T.Http({ method: "PUT", uri: "/decoder-manifests/{name}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ImportDecoderManifestRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.String.pipe(T.HttpLabel("name")), + networkFileDefinitions: NetworkFileDefinitions, + }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/decoder-manifests/{name}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ImportDecoderManifestRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ImportDecoderManifestRequest", +}) as any as S.Schema; export interface ImportDecoderManifestResponse { name: string; arn: string; } -export const ImportDecoderManifestResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ name: S.String, arn: S.String }), - ).annotate({ - identifier: "ImportDecoderManifestResponse", - }) as any as S.Schema; +export const ImportDecoderManifestResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ name: S.String, arn: S.String }), +).annotate({ + identifier: "ImportDecoderManifestResponse", +}) as any as S.Schema; export interface InvalidSignal { name?: string; reason?: string; @@ -2076,38 +2048,36 @@ export interface ListDecoderManifestSignalsRequest { nextToken?: string; maxResults?: number; } -export const ListDecoderManifestSignalsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.String.pipe(T.HttpLabel("name")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/decoder-manifests/{name}/signals" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListDecoderManifestSignalsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.String.pipe(T.HttpLabel("name")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/decoder-manifests/{name}/signals" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListDecoderManifestSignalsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListDecoderManifestSignalsRequest", +}) as any as S.Schema; export interface ListDecoderManifestSignalsResponse { signalDecoders?: SignalDecoder[]; nextToken?: string; } -export const ListDecoderManifestSignalsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - signalDecoders: S.optional(SignalDecoders), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListDecoderManifestSignalsResponse", - }) as any as S.Schema; +export const ListDecoderManifestSignalsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + signalDecoders: S.optional(SignalDecoders), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListDecoderManifestSignalsResponse", +}) as any as S.Schema; export interface CreateFleetRequest { fleetId: string; description?: string; @@ -2323,15 +2293,11 @@ export interface ListVehiclesInFleetResponse { vehicles?: string[]; nextToken?: string; } -export const ListVehiclesInFleetResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - vehicles: S.optional(Vehicles), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListVehiclesInFleetResponse", - }) as any as S.Schema; +export const ListVehiclesInFleetResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ vehicles: S.optional(Vehicles), nextToken: S.optional(S.String) }), +).annotate({ + identifier: "ListVehiclesInFleetResponse", +}) as any as S.Schema; export type ListOfStrings = string[]; export const ListOfStrings = /*@__PURE__*/ S.Array(S.String); export interface CreateModelManifestRequest { @@ -2365,12 +2331,11 @@ export interface CreateModelManifestResponse { name: string; arn: string; } -export const CreateModelManifestResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ name: S.String, arn: S.String }), - ).annotate({ - identifier: "CreateModelManifestResponse", - }) as any as S.Schema; +export const CreateModelManifestResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ name: S.String, arn: S.String }), +).annotate({ + identifier: "CreateModelManifestResponse", +}) as any as S.Schema; export interface GetModelManifestRequest { name: string; } @@ -2443,12 +2408,11 @@ export interface UpdateModelManifestResponse { name: string; arn: string; } -export const UpdateModelManifestResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ name: S.String, arn: S.String }), - ).annotate({ - identifier: "UpdateModelManifestResponse", - }) as any as S.Schema; +export const UpdateModelManifestResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ name: S.String, arn: S.String }), +).annotate({ + identifier: "UpdateModelManifestResponse", +}) as any as S.Schema; export interface DeleteModelManifestRequest { name: string; } @@ -2470,12 +2434,11 @@ export interface DeleteModelManifestResponse { name: string; arn: string; } -export const DeleteModelManifestResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ name: S.String, arn: S.String }), - ).annotate({ - identifier: "DeleteModelManifestResponse", - }) as any as S.Schema; +export const DeleteModelManifestResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ name: S.String, arn: S.String }), +).annotate({ + identifier: "DeleteModelManifestResponse", +}) as any as S.Schema; export interface ListModelManifestsRequest { signalCatalogArn?: string; nextToken?: string; @@ -2547,25 +2510,24 @@ export interface ListModelManifestNodesRequest { nextToken?: string; maxResults?: number; } -export const ListModelManifestNodesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.String.pipe(T.HttpLabel("name")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/model-manifests/{name}/nodes" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListModelManifestNodesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.String.pipe(T.HttpLabel("name")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/model-manifests/{name}/nodes" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListModelManifestNodesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListModelManifestNodesRequest", +}) as any as S.Schema; export interface Branch { fullyQualifiedName: string; description?: string; @@ -2793,12 +2755,11 @@ export interface ListModelManifestNodesResponse { nodes?: Node[]; nextToken?: string; } -export const ListModelManifestNodesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ nodes: S.optional(Nodes), nextToken: S.optional(S.String) }), - ).annotate({ - identifier: "ListModelManifestNodesResponse", - }) as any as S.Schema; +export const ListModelManifestNodesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ nodes: S.optional(Nodes), nextToken: S.optional(S.String) }), +).annotate({ + identifier: "ListModelManifestNodesResponse", +}) as any as S.Schema; export interface CreateSignalCatalogRequest { name: string; description?: string; @@ -2828,12 +2789,11 @@ export interface CreateSignalCatalogResponse { name: string; arn: string; } -export const CreateSignalCatalogResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ name: S.String, arn: S.String }), - ).annotate({ - identifier: "CreateSignalCatalogResponse", - }) as any as S.Schema; +export const CreateSignalCatalogResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ name: S.String, arn: S.String }), +).annotate({ + identifier: "CreateSignalCatalogResponse", +}) as any as S.Schema; export interface GetSignalCatalogRequest { name: string; } @@ -2922,12 +2882,11 @@ export interface UpdateSignalCatalogResponse { name: string; arn: string; } -export const UpdateSignalCatalogResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ name: S.String, arn: S.String }), - ).annotate({ - identifier: "UpdateSignalCatalogResponse", - }) as any as S.Schema; +export const UpdateSignalCatalogResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ name: S.String, arn: S.String }), +).annotate({ + identifier: "UpdateSignalCatalogResponse", +}) as any as S.Schema; export interface DeleteSignalCatalogRequest { name: string; } @@ -2949,12 +2908,11 @@ export interface DeleteSignalCatalogResponse { name: string; arn: string; } -export const DeleteSignalCatalogResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ name: S.String, arn: S.String }), - ).annotate({ - identifier: "DeleteSignalCatalogResponse", - }) as any as S.Schema; +export const DeleteSignalCatalogResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ name: S.String, arn: S.String }), +).annotate({ + identifier: "DeleteSignalCatalogResponse", +}) as any as S.Schema; export interface ListSignalCatalogsRequest { nextToken?: string; maxResults?: number; @@ -3042,12 +3000,11 @@ export interface ImportSignalCatalogResponse { name: string; arn: string; } -export const ImportSignalCatalogResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ name: S.String, arn: S.String }), - ).annotate({ - identifier: "ImportSignalCatalogResponse", - }) as any as S.Schema; +export const ImportSignalCatalogResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ name: S.String, arn: S.String }), +).annotate({ + identifier: "ImportSignalCatalogResponse", +}) as any as S.Schema; export type SignalNodeType = | "SENSOR" | "ACTUATOR" @@ -3063,38 +3020,36 @@ export interface ListSignalCatalogNodesRequest { maxResults?: number; signalNodeType?: SignalNodeType; } -export const ListSignalCatalogNodesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.String.pipe(T.HttpLabel("name")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - signalNodeType: S.optional(SignalNodeType).pipe( - T.HttpQuery("signalNodeType"), - ), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/signal-catalogs/{name}/nodes" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListSignalCatalogNodesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.String.pipe(T.HttpLabel("name")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + signalNodeType: S.optional(SignalNodeType).pipe( + T.HttpQuery("signalNodeType"), ), - ).annotate({ - identifier: "ListSignalCatalogNodesRequest", - }) as any as S.Schema; + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/signal-catalogs/{name}/nodes" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "ListSignalCatalogNodesRequest", +}) as any as S.Schema; export interface ListSignalCatalogNodesResponse { nodes?: Node[]; nextToken?: string; } -export const ListSignalCatalogNodesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ nodes: S.optional(Nodes), nextToken: S.optional(S.String) }), - ).annotate({ - identifier: "ListSignalCatalogNodesResponse", - }) as any as S.Schema; +export const ListSignalCatalogNodesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ nodes: S.optional(Nodes), nextToken: S.optional(S.String) }), +).annotate({ + identifier: "ListSignalCatalogNodesResponse", +}) as any as S.Schema; export type StateTemplateProperties = string[]; export const StateTemplateProperties = /*@__PURE__*/ S.Array(S.String); export type StateTemplateDataExtraDimensionNodePathList = string[]; @@ -3143,16 +3098,15 @@ export interface CreateStateTemplateResponse { arn?: string; id?: string; } -export const CreateStateTemplateResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.optional(S.String), - arn: S.optional(S.String), - id: S.optional(S.String), - }), - ).annotate({ - identifier: "CreateStateTemplateResponse", - }) as any as S.Schema; +export const CreateStateTemplateResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.optional(S.String), + arn: S.optional(S.String), + id: S.optional(S.String), + }), +).annotate({ + identifier: "CreateStateTemplateResponse", +}) as any as S.Schema; export interface GetStateTemplateRequest { identifier: string; } @@ -3242,16 +3196,15 @@ export interface UpdateStateTemplateResponse { arn?: string; id?: string; } -export const UpdateStateTemplateResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.optional(S.String), - arn: S.optional(S.String), - id: S.optional(S.String), - }), - ).annotate({ - identifier: "UpdateStateTemplateResponse", - }) as any as S.Schema; +export const UpdateStateTemplateResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.optional(S.String), + arn: S.optional(S.String), + id: S.optional(S.String), + }), +).annotate({ + identifier: "UpdateStateTemplateResponse", +}) as any as S.Schema; export interface DeleteStateTemplateRequest { identifier: string; } @@ -3274,16 +3227,15 @@ export interface DeleteStateTemplateResponse { arn?: string; id?: string; } -export const DeleteStateTemplateResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.optional(S.String), - arn: S.optional(S.String), - id: S.optional(S.String), - }), - ).annotate({ - identifier: "DeleteStateTemplateResponse", - }) as any as S.Schema; +export const DeleteStateTemplateResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.optional(S.String), + arn: S.optional(S.String), + id: S.optional(S.String), + }), +).annotate({ + identifier: "DeleteStateTemplateResponse", +}) as any as S.Schema; export interface ListStateTemplatesRequest { nextToken?: string; maxResults?: number; @@ -3583,97 +3535,96 @@ export interface AssociateVehicleFleetRequest { vehicleName: string; fleetId: string; } -export const AssociateVehicleFleetRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - vehicleName: S.String.pipe(T.HttpLabel("vehicleName")), - fleetId: S.String, - }).pipe( - T.all( - T.Http({ method: "PUT", uri: "/vehicles/{vehicleName}/associate" }), - svc, - auth, - proto, - ver, - rules, - ), +export const AssociateVehicleFleetRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + vehicleName: S.String.pipe(T.HttpLabel("vehicleName")), + fleetId: S.String, + }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/vehicles/{vehicleName}/associate" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "AssociateVehicleFleetRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "AssociateVehicleFleetRequest", +}) as any as S.Schema; export interface AssociateVehicleFleetResponse {} -export const AssociateVehicleFleetResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "AssociateVehicleFleetResponse", - }) as any as S.Schema; +export const AssociateVehicleFleetResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "AssociateVehicleFleetResponse", +}) as any as S.Schema; export interface DisassociateVehicleFleetRequest { vehicleName: string; fleetId: string; } -export const DisassociateVehicleFleetRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - vehicleName: S.String.pipe(T.HttpLabel("vehicleName")), - fleetId: S.String, - }).pipe( - T.all( - T.Http({ method: "PUT", uri: "/vehicles/{vehicleName}/disassociate" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DisassociateVehicleFleetRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + vehicleName: S.String.pipe(T.HttpLabel("vehicleName")), + fleetId: S.String, + }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/vehicles/{vehicleName}/disassociate" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DisassociateVehicleFleetRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DisassociateVehicleFleetRequest", +}) as any as S.Schema; export interface DisassociateVehicleFleetResponse {} -export const DisassociateVehicleFleetResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DisassociateVehicleFleetResponse", - }) as any as S.Schema; +export const DisassociateVehicleFleetResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DisassociateVehicleFleetResponse", +}) as any as S.Schema; export interface ListFleetsForVehicleRequest { vehicleName: string; nextToken?: string; maxResults?: number; } -export const ListFleetsForVehicleRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - vehicleName: S.String.pipe(T.HttpLabel("vehicleName")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/vehicles/{vehicleName}/fleets" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListFleetsForVehicleRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + vehicleName: S.String.pipe(T.HttpLabel("vehicleName")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/vehicles/{vehicleName}/fleets" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListFleetsForVehicleRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListFleetsForVehicleRequest", +}) as any as S.Schema; export type Fleets = string[]; export const Fleets = /*@__PURE__*/ S.Array(S.String); export interface ListFleetsForVehicleResponse { fleets?: string[]; nextToken?: string; } -export const ListFleetsForVehicleResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ fleets: S.optional(Fleets), nextToken: S.optional(S.String) }), - ).annotate({ - identifier: "ListFleetsForVehicleResponse", - }) as any as S.Schema; +export const ListFleetsForVehicleResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ fleets: S.optional(Fleets), nextToken: S.optional(S.String) }), +).annotate({ + identifier: "ListFleetsForVehicleResponse", +}) as any as S.Schema; //# Errors export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.String }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", @@ -3681,10 +3632,12 @@ export class InternalServerException extends S.TaggedErrorClass()( "LimitExceededException", { message: S.String, resourceId: S.String, resourceType: S.String }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", @@ -3694,6 +3647,7 @@ export class ThrottlingException extends S.TaggedErrorClass serviceCode: S.optional(S.String), retryAfterSeconds: S.optional(S.Number).pipe(T.HttpHeader("Retry-After")), }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", @@ -3702,14 +3656,17 @@ export class ValidationException extends S.TaggedErrorClass reason: S.optional(ValidationExceptionReason), fieldList: S.optional(ValidationExceptionFieldList), }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.String, resourceId: S.String, resourceType: S.String }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { message: S.String, resource: S.String, resourceType: S.String }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class DecoderManifestValidationException extends S.TaggedErrorClass()( "DecoderManifestValidationException", @@ -3718,10 +3675,12 @@ export class DecoderManifestValidationException extends S.TaggedErrorClass()( "InvalidSignalsException", { message: S.optional(S.String), invalidSignals: S.optional(InvalidSignals) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidNodeException extends S.TaggedErrorClass()( "InvalidNodeException", @@ -3730,6 +3689,7 @@ export class InvalidNodeException extends S.TaggedErrorClass arn: S.String, name: S.String, assetModelType: S.optional(AssetModelType), - description: S.String, + description: S.optional(S.String), creationDate: S.Date.pipe(T.TimestampFormat("epoch-seconds")), lastUpdateDate: S.Date.pipe(T.TimestampFormat("epoch-seconds")), status: AssetModelStatus, @@ -7028,58 +7028,72 @@ export const UpdateProjectResponse = /*@__PURE__*/ S.suspend(() => export class ConflictingOperationException extends S.TaggedErrorClass()( "ConflictingOperationException", { message: S.String, resourceId: S.String, resourceArn: S.String }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class InternalFailureException extends S.TaggedErrorClass()( "InternalFailureException", { message: S.String }, + T.HttpError(500), ).pipe(C.withServerError) {} export class InvalidRequestException extends S.TaggedErrorClass()( "InvalidRequestException", { message: S.String }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class LimitExceededException extends S.TaggedErrorClass()( "LimitExceededException", { message: S.String }, + T.HttpError(410), ).pipe(C.withBadRequestError) {} export class ResourceAlreadyExistsException extends S.TaggedErrorClass()( "ResourceAlreadyExistsException", { message: S.String, resourceId: S.String, resourceArn: S.String }, + T.HttpError(409), ).pipe(C.withConflictError, C.withAlreadyExistsError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.String }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", { message: S.String }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class ServiceUnavailableException extends S.TaggedErrorClass()( "ServiceUnavailableException", { message: S.String }, + T.HttpError(503), ).pipe(C.withServerError) {} export class PreconditionFailedException extends S.TaggedErrorClass()( "PreconditionFailedException", { message: S.String, resourceId: S.String, resourceArn: S.String }, + T.HttpError(412), ) {} export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class QueryTimeoutException extends S.TaggedErrorClass()( "QueryTimeoutException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class UnauthorizedException extends S.TaggedErrorClass()( "UnauthorizedException", { message: S.String }, + T.HttpError(401), ).pipe(C.withAuthError) {} export class TooManyTagsException extends S.TaggedErrorClass()( "TooManyTagsException", { message: S.optional(S.String), resourceName: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} //# Operations @@ -7115,6 +7129,7 @@ export const associateAssets: API.OperationMethod< ThrottlingException, ], operationName: "AssociateAssets", + endpointHostPrefix: "api.", })); export type AssociateTimeSeriesToAssetPropertyError = | ConflictingOperationException @@ -7142,6 +7157,7 @@ export const associateTimeSeriesToAssetProperty: API.OperationMethod< ThrottlingException, ], operationName: "AssociateTimeSeriesToAssetProperty", + endpointHostPrefix: "api.", })); export type BatchAssociateProjectAssetsError = | InternalFailureException @@ -7169,6 +7185,7 @@ export const batchAssociateProjectAssets: API.OperationMethod< ThrottlingException, ], operationName: "BatchAssociateProjectAssets", + endpointHostPrefix: "monitor.", })); export type BatchDisassociateProjectAssetsError = | InternalFailureException @@ -7194,6 +7211,7 @@ export const batchDisassociateProjectAssets: API.OperationMethod< ThrottlingException, ], operationName: "BatchDisassociateProjectAssets", + endpointHostPrefix: "monitor.", })); export type BatchGetAssetPropertyAggregatesError = | InternalFailureException @@ -7236,6 +7254,7 @@ export const batchGetAssetPropertyAggregates: API.OperationMethod< ThrottlingException, ], operationName: "BatchGetAssetPropertyAggregates", + endpointHostPrefix: "data.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -7282,6 +7301,7 @@ export const batchGetAssetPropertyValue: API.OperationMethod< ThrottlingException, ], operationName: "BatchGetAssetPropertyValue", + endpointHostPrefix: "data.", pagination: { inputToken: "nextToken", outputToken: "nextToken" } as const, })); export type BatchGetAssetPropertyValueHistoryError = @@ -7324,6 +7344,7 @@ export const batchGetAssetPropertyValueHistory: API.OperationMethod< ThrottlingException, ], operationName: "BatchGetAssetPropertyValueHistory", + endpointHostPrefix: "data.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -7382,6 +7403,7 @@ export const batchPutAssetPropertyValue: API.OperationMethod< ThrottlingException, ], operationName: "BatchPutAssetPropertyValue", + endpointHostPrefix: "data.", })); export type CreateAccessPolicyError = | InternalFailureException @@ -7412,6 +7434,7 @@ export const createAccessPolicy: API.OperationMethod< ThrottlingException, ], operationName: "CreateAccessPolicy", + endpointHostPrefix: "monitor.", })); export type CreateAssetError = | ConflictingOperationException @@ -7444,6 +7467,7 @@ export const createAsset: API.OperationMethod< ThrottlingException, ], operationName: "CreateAsset", + endpointHostPrefix: "api.", })); export type CreateAssetModelError = | ConflictingOperationException @@ -7493,6 +7517,7 @@ export const createAssetModel: API.OperationMethod< ThrottlingException, ], operationName: "CreateAssetModel", + endpointHostPrefix: "api.", })); export type CreateAssetModelCompositeModelError = | ConflictingOperationException @@ -7546,6 +7571,7 @@ export const createAssetModelCompositeModel: API.OperationMethod< ThrottlingException, ], operationName: "CreateAssetModelCompositeModel", + endpointHostPrefix: "api.", })); export type CreateBulkImportJobError = | ConflictingOperationException @@ -7590,6 +7616,7 @@ export const createBulkImportJob: API.OperationMethod< ThrottlingException, ], operationName: "CreateBulkImportJob", + endpointHostPrefix: "data.", })); export type CreateComputationModelError = | ConflictingOperationException @@ -7621,6 +7648,7 @@ export const createComputationModel: API.OperationMethod< ThrottlingException, ], operationName: "CreateComputationModel", + endpointHostPrefix: "api.", })); export type CreateDashboardError = | InternalFailureException @@ -7648,6 +7676,7 @@ export const createDashboard: API.OperationMethod< ThrottlingException, ], operationName: "CreateDashboard", + endpointHostPrefix: "monitor.", })); export type CreateDatasetError = | ConflictingOperationException @@ -7679,6 +7708,7 @@ export const createDataset: API.OperationMethod< ThrottlingException, ], operationName: "CreateDataset", + endpointHostPrefix: "api.", })); export type CreateGatewayError = | InternalFailureException @@ -7708,6 +7738,7 @@ export const createGateway: API.OperationMethod< ThrottlingException, ], operationName: "CreateGateway", + endpointHostPrefix: "api.", })); export type CreatePortalError = | InternalFailureException @@ -7740,6 +7771,7 @@ export const createPortal: API.OperationMethod< ThrottlingException, ], operationName: "CreatePortal", + endpointHostPrefix: "monitor.", })); export type CreateProjectError = | InternalFailureException @@ -7770,6 +7802,7 @@ export const createProject: API.OperationMethod< ThrottlingException, ], operationName: "CreateProject", + endpointHostPrefix: "monitor.", })); export type DeleteAccessPolicyError = | InternalFailureException @@ -7797,6 +7830,7 @@ export const deleteAccessPolicy: API.OperationMethod< ThrottlingException, ], operationName: "DeleteAccessPolicy", + endpointHostPrefix: "monitor.", })); export type DeleteAssetError = | ConflictingOperationException @@ -7828,6 +7862,7 @@ export const deleteAsset: API.OperationMethod< ThrottlingException, ], operationName: "DeleteAsset", + endpointHostPrefix: "api.", })); export type DeleteAssetModelError = | ConflictingOperationException @@ -7861,6 +7896,7 @@ export const deleteAssetModel: API.OperationMethod< ThrottlingException, ], operationName: "DeleteAssetModel", + endpointHostPrefix: "api.", })); export type DeleteAssetModelCompositeModelError = | ConflictingOperationException @@ -7894,6 +7930,7 @@ export const deleteAssetModelCompositeModel: API.OperationMethod< ThrottlingException, ], operationName: "DeleteAssetModelCompositeModel", + endpointHostPrefix: "api.", })); export type DeleteAssetModelInterfaceRelationshipError = | ConflictingOperationException @@ -7922,6 +7959,7 @@ export const deleteAssetModelInterfaceRelationship: API.OperationMethod< ThrottlingException, ], operationName: "DeleteAssetModelInterfaceRelationship", + endpointHostPrefix: "api.", })); export type DeleteComputationModelError = | ConflictingOperationException @@ -7949,6 +7987,7 @@ export const deleteComputationModel: API.OperationMethod< ThrottlingException, ], operationName: "DeleteComputationModel", + endpointHostPrefix: "api.", })); export type DeleteDashboardError = | InternalFailureException @@ -7974,6 +8013,7 @@ export const deleteDashboard: API.OperationMethod< ThrottlingException, ], operationName: "DeleteDashboard", + endpointHostPrefix: "monitor.", })); export type DeleteDatasetError = | ConflictingOperationException @@ -8001,6 +8041,7 @@ export const deleteDataset: API.OperationMethod< ThrottlingException, ], operationName: "DeleteDataset", + endpointHostPrefix: "api.", })); export type DeleteGatewayError = | ConflictingOperationException @@ -8029,6 +8070,7 @@ export const deleteGateway: API.OperationMethod< ThrottlingException, ], operationName: "DeleteGateway", + endpointHostPrefix: "api.", })); export type DeletePortalError = | ConflictingOperationException @@ -8056,6 +8098,7 @@ export const deletePortal: API.OperationMethod< ThrottlingException, ], operationName: "DeletePortal", + endpointHostPrefix: "monitor.", })); export type DeleteProjectError = | InternalFailureException @@ -8081,6 +8124,7 @@ export const deleteProject: API.OperationMethod< ThrottlingException, ], operationName: "DeleteProject", + endpointHostPrefix: "monitor.", })); export type DeleteTimeSeriesError = | ConflictingOperationException @@ -8122,6 +8166,7 @@ export const deleteTimeSeries: API.OperationMethod< ThrottlingException, ], operationName: "DeleteTimeSeries", + endpointHostPrefix: "api.", })); export type DescribeAccessPolicyError = | InternalFailureException @@ -8148,6 +8193,7 @@ export const describeAccessPolicy: API.OperationMethod< ThrottlingException, ], operationName: "DescribeAccessPolicy", + endpointHostPrefix: "monitor.", })); export type DescribeActionError = | InternalFailureException @@ -8173,6 +8219,7 @@ export const describeAction: API.OperationMethod< ThrottlingException, ], operationName: "DescribeAction", + endpointHostPrefix: "api.", })); export type DescribeAssetError = | InternalFailureException @@ -8198,6 +8245,7 @@ export const describeAsset: API.OperationMethod< ThrottlingException, ], operationName: "DescribeAsset", + endpointHostPrefix: "api.", })); export type DescribeAssetCompositeModelError = | InternalFailureException @@ -8226,6 +8274,7 @@ export const describeAssetCompositeModel: API.OperationMethod< ThrottlingException, ], operationName: "DescribeAssetCompositeModel", + endpointHostPrefix: "api.", })); export type DescribeAssetModelError = | InternalFailureException @@ -8253,6 +8302,7 @@ export const describeAssetModel: API.OperationMethod< ThrottlingException, ], operationName: "DescribeAssetModel", + endpointHostPrefix: "api.", })); export type DescribeAssetModelCompositeModelError = | InternalFailureException @@ -8280,6 +8330,7 @@ export const describeAssetModelCompositeModel: API.OperationMethod< ThrottlingException, ], operationName: "DescribeAssetModelCompositeModel", + endpointHostPrefix: "api.", })); export type DescribeAssetModelInterfaceRelationshipError = | InternalFailureException @@ -8306,6 +8357,7 @@ export const describeAssetModelInterfaceRelationship: API.OperationMethod< ThrottlingException, ], operationName: "DescribeAssetModelInterfaceRelationship", + endpointHostPrefix: "api.", })); export type DescribeAssetPropertyError = | InternalFailureException @@ -8338,6 +8390,7 @@ export const describeAssetProperty: API.OperationMethod< ThrottlingException, ], operationName: "DescribeAssetProperty", + endpointHostPrefix: "api.", })); export type DescribeBulkImportJobError = | InternalFailureException @@ -8364,6 +8417,7 @@ export const describeBulkImportJob: API.OperationMethod< ThrottlingException, ], operationName: "DescribeBulkImportJob", + endpointHostPrefix: "data.", })); export type DescribeComputationModelError = | InternalFailureException @@ -8389,6 +8443,7 @@ export const describeComputationModel: API.OperationMethod< ThrottlingException, ], operationName: "DescribeComputationModel", + endpointHostPrefix: "api.", })); export type DescribeComputationModelExecutionSummaryError = | InternalFailureException @@ -8414,6 +8469,7 @@ export const describeComputationModelExecutionSummary: API.OperationMethod< ThrottlingException, ], operationName: "DescribeComputationModelExecutionSummary", + endpointHostPrefix: "api.", })); export type DescribeDashboardError = | InternalFailureException @@ -8439,6 +8495,7 @@ export const describeDashboard: API.OperationMethod< ThrottlingException, ], operationName: "DescribeDashboard", + endpointHostPrefix: "monitor.", })); export type DescribeDatasetError = | InternalFailureException @@ -8464,6 +8521,7 @@ export const describeDataset: API.OperationMethod< ThrottlingException, ], operationName: "DescribeDataset", + endpointHostPrefix: "api.", })); export type DescribeDefaultEncryptionConfigurationError = | InternalFailureException @@ -8489,6 +8547,7 @@ export const describeDefaultEncryptionConfiguration: API.OperationMethod< ThrottlingException, ], operationName: "DescribeDefaultEncryptionConfiguration", + endpointHostPrefix: "api.", })); export type DescribeExecutionError = | InternalFailureException @@ -8514,6 +8573,7 @@ export const describeExecution: API.OperationMethod< ThrottlingException, ], operationName: "DescribeExecution", + endpointHostPrefix: "api.", })); export type DescribeGatewayError = | InternalFailureException @@ -8539,6 +8599,7 @@ export const describeGateway: API.OperationMethod< ThrottlingException, ], operationName: "DescribeGateway", + endpointHostPrefix: "api.", })); export type DescribeGatewayCapabilityConfigurationError = | InternalFailureException @@ -8576,6 +8637,7 @@ export const describeGatewayCapabilityConfiguration: API.OperationMethod< ThrottlingException, ], operationName: "DescribeGatewayCapabilityConfiguration", + endpointHostPrefix: "api.", })); export type DescribeLoggingOptionsError = | InternalFailureException @@ -8601,6 +8663,7 @@ export const describeLoggingOptions: API.OperationMethod< ThrottlingException, ], operationName: "DescribeLoggingOptions", + endpointHostPrefix: "api.", })); export type DescribePortalError = | InternalFailureException @@ -8626,6 +8689,7 @@ export const describePortal: API.OperationMethod< ThrottlingException, ], operationName: "DescribePortal", + endpointHostPrefix: "monitor.", })); export type DescribeProjectError = | InternalFailureException @@ -8651,6 +8715,7 @@ export const describeProject: API.OperationMethod< ThrottlingException, ], operationName: "DescribeProject", + endpointHostPrefix: "monitor.", })); export type DescribeStorageConfigurationError = | ConflictingOperationException @@ -8680,6 +8745,7 @@ export const describeStorageConfiguration: API.OperationMethod< ThrottlingException, ], operationName: "DescribeStorageConfiguration", + endpointHostPrefix: "api.", })); export type DescribeTimeSeriesError = | InternalFailureException @@ -8717,6 +8783,7 @@ export const describeTimeSeries: API.OperationMethod< ThrottlingException, ], operationName: "DescribeTimeSeries", + endpointHostPrefix: "api.", })); export type DisassociateAssetsError = | ConflictingOperationException @@ -8745,6 +8812,7 @@ export const disassociateAssets: API.OperationMethod< ThrottlingException, ], operationName: "DisassociateAssets", + endpointHostPrefix: "api.", })); export type DisassociateTimeSeriesFromAssetPropertyError = | ConflictingOperationException @@ -8772,6 +8840,7 @@ export const disassociateTimeSeriesFromAssetProperty: API.OperationMethod< ThrottlingException, ], operationName: "DisassociateTimeSeriesFromAssetProperty", + endpointHostPrefix: "api.", })); export type ExecuteActionError = | ConflictingOperationException @@ -8801,6 +8870,7 @@ export const executeAction: API.OperationMethod< ThrottlingException, ], operationName: "ExecuteAction", + endpointHostPrefix: "api.", })); export type ExecuteQueryError = | AccessDeniedException @@ -8848,6 +8918,7 @@ export const executeQuery: API.OperationMethod< ValidationException, ], operationName: "ExecuteQuery", + endpointHostPrefix: "data.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -8904,6 +8975,7 @@ export const getAssetPropertyAggregates: API.OperationMethod< ThrottlingException, ], operationName: "GetAssetPropertyAggregates", + endpointHostPrefix: "data.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -8945,6 +9017,7 @@ export const getAssetPropertyValue: API.OperationMethod< ThrottlingException, ], operationName: "GetAssetPropertyValue", + endpointHostPrefix: "data.", })); export type GetAssetPropertyValueHistoryError = | InternalFailureException @@ -8995,6 +9068,7 @@ export const getAssetPropertyValueHistory: API.OperationMethod< ThrottlingException, ], operationName: "GetAssetPropertyValueHistory", + endpointHostPrefix: "data.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9055,6 +9129,7 @@ export const getInterpolatedAssetPropertyValues: API.OperationMethod< ThrottlingException, ], operationName: "GetInterpolatedAssetPropertyValues", + endpointHostPrefix: "data.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9092,6 +9167,7 @@ export const invokeAssistant: API.OperationMethod< ThrottlingException, ], operationName: "InvokeAssistant", + endpointHostPrefix: "data.", })); export type ListAccessPoliciesError = | InternalFailureException @@ -9131,6 +9207,7 @@ export const listAccessPolicies: API.OperationMethod< ThrottlingException, ], operationName: "ListAccessPolicies", + endpointHostPrefix: "monitor.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9177,6 +9254,7 @@ export const listActions: API.OperationMethod< ThrottlingException, ], operationName: "ListActions", + endpointHostPrefix: "api.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9223,6 +9301,7 @@ export const listAssetModelCompositeModels: API.OperationMethod< ThrottlingException, ], operationName: "ListAssetModelCompositeModels", + endpointHostPrefix: "api.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9271,6 +9350,7 @@ export const listAssetModelProperties: API.OperationMethod< ThrottlingException, ], operationName: "ListAssetModelProperties", + endpointHostPrefix: "api.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9315,6 +9395,7 @@ export const listAssetModels: API.OperationMethod< ThrottlingException, ], operationName: "ListAssetModels", + endpointHostPrefix: "api.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9363,6 +9444,7 @@ export const listAssetProperties: API.OperationMethod< ThrottlingException, ], operationName: "ListAssetProperties", + endpointHostPrefix: "api.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9411,6 +9493,7 @@ export const listAssetRelationships: API.OperationMethod< ThrottlingException, ], operationName: "ListAssetRelationships", + endpointHostPrefix: "api.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9467,6 +9550,7 @@ export const listAssets: API.OperationMethod< ThrottlingException, ], operationName: "ListAssets", + endpointHostPrefix: "api.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9519,6 +9603,7 @@ export const listAssociatedAssets: API.OperationMethod< ThrottlingException, ], operationName: "ListAssociatedAssets", + endpointHostPrefix: "api.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9566,6 +9651,7 @@ export const listBulkImportJobs: API.OperationMethod< ThrottlingException, ], operationName: "ListBulkImportJobs", + endpointHostPrefix: "data.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9613,6 +9699,7 @@ export const listCompositionRelationships: API.OperationMethod< ThrottlingException, ], operationName: "ListCompositionRelationships", + endpointHostPrefix: "api.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9659,6 +9746,7 @@ export const listComputationModelDataBindingUsages: API.OperationMethod< ThrottlingException, ], operationName: "ListComputationModelDataBindingUsages", + endpointHostPrefix: "api.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9706,6 +9794,7 @@ export const listComputationModelResolveToResources: API.OperationMethod< ThrottlingException, ], operationName: "ListComputationModelResolveToResources", + endpointHostPrefix: "api.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9750,6 +9839,7 @@ export const listComputationModels: API.OperationMethod< ThrottlingException, ], operationName: "ListComputationModels", + endpointHostPrefix: "api.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9794,6 +9884,7 @@ export const listDashboards: API.OperationMethod< ThrottlingException, ], operationName: "ListDashboards", + endpointHostPrefix: "monitor.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9838,6 +9929,7 @@ export const listDatasets: API.OperationMethod< ThrottlingException, ], operationName: "ListDatasets", + endpointHostPrefix: "api.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9884,6 +9976,7 @@ export const listExecutions: API.OperationMethod< ThrottlingException, ], operationName: "ListExecutions", + endpointHostPrefix: "api.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9928,6 +10021,7 @@ export const listGateways: API.OperationMethod< ThrottlingException, ], operationName: "ListGateways", + endpointHostPrefix: "api.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9975,6 +10069,7 @@ export const listInterfaceRelationships: API.OperationMethod< ThrottlingException, ], operationName: "ListInterfaceRelationships", + endpointHostPrefix: "api.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -10019,6 +10114,7 @@ export const listPortals: API.OperationMethod< ThrottlingException, ], operationName: "ListPortals", + endpointHostPrefix: "monitor.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -10063,6 +10159,7 @@ export const listProjectAssets: API.OperationMethod< ThrottlingException, ], operationName: "ListProjectAssets", + endpointHostPrefix: "monitor.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -10107,6 +10204,7 @@ export const listProjects: API.OperationMethod< ThrottlingException, ], operationName: "ListProjects", + endpointHostPrefix: "monitor.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -10144,6 +10242,7 @@ export const listTagsForResource: API.OperationMethod< UnauthorizedException, ], operationName: "ListTagsForResource", + endpointHostPrefix: "api.", })); export type ListTimeSeriesError = | InternalFailureException @@ -10184,6 +10283,7 @@ export const listTimeSeries: API.OperationMethod< ThrottlingException, ], operationName: "ListTimeSeries", + endpointHostPrefix: "api.", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -10220,6 +10320,7 @@ export const putAssetModelInterfaceRelationship: API.OperationMethod< ThrottlingException, ], operationName: "PutAssetModelInterfaceRelationship", + endpointHostPrefix: "api.", })); export type PutDefaultEncryptionConfigurationError = | ConflictingOperationException @@ -10249,6 +10350,7 @@ export const putDefaultEncryptionConfiguration: API.OperationMethod< ThrottlingException, ], operationName: "PutDefaultEncryptionConfiguration", + endpointHostPrefix: "api.", })); export type PutLoggingOptionsError = | ConflictingOperationException @@ -10276,6 +10378,7 @@ export const putLoggingOptions: API.OperationMethod< ThrottlingException, ], operationName: "PutLoggingOptions", + endpointHostPrefix: "api.", })); export type PutStorageConfigurationError = | ConflictingOperationException @@ -10307,6 +10410,7 @@ export const putStorageConfiguration: API.OperationMethod< ThrottlingException, ], operationName: "PutStorageConfiguration", + endpointHostPrefix: "api.", })); export type TagResourceError = | ConflictingOperationException @@ -10341,6 +10445,7 @@ export const tagResource: API.OperationMethod< UnauthorizedException, ], operationName: "TagResource", + endpointHostPrefix: "api.", })); export type UntagResourceError = | ConflictingOperationException @@ -10372,6 +10477,7 @@ export const untagResource: API.OperationMethod< UnauthorizedException, ], operationName: "UntagResource", + endpointHostPrefix: "api.", })); export type UpdateAccessPolicyError = | InternalFailureException @@ -10398,6 +10504,7 @@ export const updateAccessPolicy: API.OperationMethod< ThrottlingException, ], operationName: "UpdateAccessPolicy", + endpointHostPrefix: "monitor.", })); export type UpdateAssetError = | ConflictingOperationException @@ -10428,6 +10535,7 @@ export const updateAsset: API.OperationMethod< ThrottlingException, ], operationName: "UpdateAsset", + endpointHostPrefix: "api.", })); export type UpdateAssetModelError = | ConflictingOperationException @@ -10477,6 +10585,7 @@ export const updateAssetModel: API.OperationMethod< ThrottlingException, ], operationName: "UpdateAssetModel", + endpointHostPrefix: "api.", })); export type UpdateAssetModelCompositeModelError = | ConflictingOperationException @@ -10526,6 +10635,7 @@ export const updateAssetModelCompositeModel: API.OperationMethod< ThrottlingException, ], operationName: "UpdateAssetModelCompositeModel", + endpointHostPrefix: "api.", })); export type UpdateAssetPropertyError = | ConflictingOperationException @@ -10557,6 +10667,7 @@ export const updateAssetProperty: API.OperationMethod< ThrottlingException, ], operationName: "UpdateAssetProperty", + endpointHostPrefix: "api.", })); export type UpdateComputationModelError = | ConflictingOperationException @@ -10588,6 +10699,7 @@ export const updateComputationModel: API.OperationMethod< ThrottlingException, ], operationName: "UpdateComputationModel", + endpointHostPrefix: "api.", })); export type UpdateDashboardError = | InternalFailureException @@ -10613,6 +10725,7 @@ export const updateDashboard: API.OperationMethod< ThrottlingException, ], operationName: "UpdateDashboard", + endpointHostPrefix: "monitor.", })); export type UpdateDatasetError = | ConflictingOperationException @@ -10642,6 +10755,7 @@ export const updateDataset: API.OperationMethod< ThrottlingException, ], operationName: "UpdateDataset", + endpointHostPrefix: "api.", })); export type UpdateGatewayError = | ConflictingOperationException @@ -10669,6 +10783,7 @@ export const updateGateway: API.OperationMethod< ThrottlingException, ], operationName: "UpdateGateway", + endpointHostPrefix: "api.", })); export type UpdateGatewayCapabilityConfigurationError = | ConflictingOperationException @@ -10714,6 +10829,7 @@ export const updateGatewayCapabilityConfiguration: API.OperationMethod< ThrottlingException, ], operationName: "UpdateGatewayCapabilityConfiguration", + endpointHostPrefix: "api.", })); export type UpdatePortalError = | ConflictingOperationException @@ -10741,6 +10857,7 @@ export const updatePortal: API.OperationMethod< ThrottlingException, ], operationName: "UpdatePortal", + endpointHostPrefix: "monitor.", })); export type UpdateProjectError = | InternalFailureException @@ -10766,4 +10883,5 @@ export const updateProject: API.OperationMethod< ThrottlingException, ], operationName: "UpdateProject", + endpointHostPrefix: "monitor.", })); diff --git a/packages/aws/src/services/ivs-realtime.ts b/packages/aws/src/services/ivs-realtime.ts index cd8c59bec4..41cdcd895b 100644 --- a/packages/aws/src/services/ivs-realtime.ts +++ b/packages/aws/src/services/ivs-realtime.ts @@ -2311,6 +2311,7 @@ export class AccessDeniedException extends S.TaggedErrorClass()( "ConflictException", @@ -2335,6 +2336,7 @@ export class ConflictException extends S.TaggedErrorClass()( xAmznErrorType: S.optional(S.String).pipe(T.HttpHeader("x-amzn-ErrorType")), exceptionMessage: S.optional(S.String), }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", @@ -2359,6 +2361,7 @@ export class InternalServerException extends S.TaggedErrorClass()( "PendingVerification", @@ -2383,6 +2386,7 @@ export class PendingVerification extends S.TaggedErrorClass xAmznErrorType: S.optional(S.String).pipe(T.HttpHeader("x-amzn-ErrorType")), exceptionMessage: S.optional(S.String), }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", @@ -2407,6 +2411,7 @@ export class ResourceNotFoundException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", @@ -2431,6 +2436,7 @@ export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ValidationException", @@ -2455,7 +2461,12 @@ export class ValidationException extends S.TaggedErrorClass xAmznErrorType: S.optional(S.String).pipe(T.HttpHeader("x-amzn-ErrorType")), exceptionMessage: S.optional(S.String), }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} +export class ThrottlingException extends S.TaggedErrorClass()( + "ThrottlingException", + {}, +) {} //# Operations export type CreateEncoderConfigurationError = @@ -2551,6 +2562,7 @@ export type CreateStageError = | PendingVerification | ServiceQuotaExceededException | ValidationException + | ThrottlingException | CommonErrors; /** * Creates a new stage (and optionally participant tokens). @@ -2568,6 +2580,7 @@ export const createStage: API.OperationMethod< PendingVerification, ServiceQuotaExceededException, ValidationException, + ThrottlingException, ], operationName: "CreateStage", })); @@ -2695,6 +2708,7 @@ export type DeleteStageError = | PendingVerification | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Shuts down and deletes the specified stage (disconnecting all participants). This operation also @@ -2715,6 +2729,7 @@ export const deleteStage: API.OperationMethod< PendingVerification, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "DeleteStage", })); @@ -2909,6 +2924,7 @@ export type GetStageError = | AccessDeniedException | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Gets information for the specified stage. @@ -2925,6 +2941,7 @@ export const getStage: API.OperationMethod< AccessDeniedException, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "GetStage", })); @@ -3301,6 +3318,7 @@ export type ListStagesError = | AccessDeniedException | ConflictException | ValidationException + | ThrottlingException | CommonErrors; /** * Gets summary information about all stages in your account, in the AWS region where the @@ -3329,7 +3347,12 @@ export const listStages: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: ListStagesRequest, output: ListStagesResponse, - errors: [AccessDeniedException, ConflictException, ValidationException], + errors: [ + AccessDeniedException, + ConflictException, + ValidationException, + ThrottlingException, + ], operationName: "ListStages", pagination: { inputToken: "nextToken", @@ -3427,6 +3450,7 @@ export type ListTagsForResourceError = | InternalServerException | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Gets information about AWS tags for the specified ARN. @@ -3443,6 +3467,7 @@ export const listTagsForResource: API.OperationMethod< InternalServerException, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "ListTagsForResource", })); @@ -3584,6 +3609,7 @@ export type TagResourceError = | InternalServerException | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Adds or updates tags for the AWS resource with the specified ARN. @@ -3600,6 +3626,7 @@ export const tagResource: API.OperationMethod< InternalServerException, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "TagResource", })); @@ -3607,6 +3634,7 @@ export type UntagResourceError = | InternalServerException | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Removes tags from the resource with the specified ARN. @@ -3623,6 +3651,7 @@ export const untagResource: API.OperationMethod< InternalServerException, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "UntagResource", })); @@ -3660,6 +3689,7 @@ export type UpdateStageError = | ResourceNotFoundException | ServiceQuotaExceededException | ValidationException + | ThrottlingException | CommonErrors; /** * Updates a stage’s configuration. @@ -3679,6 +3709,7 @@ export const updateStage: API.OperationMethod< ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, + ThrottlingException, ], operationName: "UpdateStage", })); diff --git a/packages/aws/src/services/ivs.ts b/packages/aws/src/services/ivs.ts index 9a373e8cce..bc8ac3155f 100644 --- a/packages/aws/src/services/ivs.ts +++ b/packages/aws/src/services/ivs.ts @@ -2121,6 +2121,7 @@ export class AccessDeniedException extends S.TaggedErrorClass()( "ServiceUnavailable", @@ -2145,6 +2146,7 @@ export class ServiceUnavailable extends S.TaggedErrorClass() xAmznErrorType: S.optional(S.String).pipe(T.HttpHeader("x-amzn-ErrorType")), exceptionMessage: S.optional(S.String), }, + T.HttpError(503), ).pipe(C.withServerError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", @@ -2169,6 +2171,7 @@ export class ValidationException extends S.TaggedErrorClass xAmznErrorType: S.optional(S.String).pipe(T.HttpHeader("x-amzn-ErrorType")), exceptionMessage: S.optional(S.String), }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class PendingVerification extends S.TaggedErrorClass()( "PendingVerification", @@ -2193,6 +2196,7 @@ export class PendingVerification extends S.TaggedErrorClass xAmznErrorType: S.optional(S.String).pipe(T.HttpHeader("x-amzn-ErrorType")), exceptionMessage: S.optional(S.String), }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", @@ -2217,6 +2221,7 @@ export class ThrottlingException extends S.TaggedErrorClass xAmznErrorType: S.optional(S.String).pipe(T.HttpHeader("x-amzn-ErrorType")), exceptionMessage: S.optional(S.String), }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", @@ -2241,6 +2246,7 @@ export class ConflictException extends S.TaggedErrorClass()( xAmznErrorType: S.optional(S.String).pipe(T.HttpHeader("x-amzn-ErrorType")), exceptionMessage: S.optional(S.String), }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", @@ -2265,6 +2271,7 @@ export class InternalServerException extends S.TaggedErrorClass()( "ResourceNotFoundException", @@ -2289,6 +2296,7 @@ export class ResourceNotFoundException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", @@ -2313,6 +2321,7 @@ export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ChannelNotBroadcasting", @@ -2337,6 +2346,7 @@ export class ChannelNotBroadcasting extends S.TaggedErrorClass()( "StreamUnavailable", @@ -2361,6 +2371,7 @@ export class StreamUnavailable extends S.TaggedErrorClass()( xAmznErrorType: S.optional(S.String).pipe(T.HttpHeader("x-amzn-ErrorType")), exceptionMessage: S.optional(S.String), }, + T.HttpError(503), ).pipe(C.withServerError) {} //# Operations @@ -2466,6 +2477,7 @@ export type CreateChannelError = | ResourceNotFoundException | ServiceQuotaExceededException | ValidationException + | ThrottlingException | CommonErrors; /** * Creates a new channel and an associated stream key to start streaming. @@ -2484,6 +2496,7 @@ export const createChannel: API.OperationMethod< ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, + ThrottlingException, ], operationName: "CreateChannel", })); @@ -2521,6 +2534,7 @@ export type CreateRecordingConfigurationError = | PendingVerification | ServiceQuotaExceededException | ValidationException + | ThrottlingException | CommonErrors; /** * Creates a new recording configuration, used to enable recording to Amazon S3. @@ -2544,6 +2558,7 @@ export const createRecordingConfiguration: API.OperationMethod< PendingVerification, ServiceQuotaExceededException, ValidationException, + ThrottlingException, ], operationName: "CreateRecordingConfiguration", })); @@ -2553,6 +2568,7 @@ export type CreateStreamKeyError = | ResourceNotFoundException | ServiceQuotaExceededException | ValidationException + | ThrottlingException | CommonErrors; /** * Creates a stream key, used to initiate a stream, for the specified channel ARN. @@ -2573,6 +2589,7 @@ export const createStreamKey: API.OperationMethod< ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, + ThrottlingException, ], operationName: "CreateStreamKey", })); @@ -2582,6 +2599,7 @@ export type DeleteAdConfigurationError = | InternalServerException | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Deletes the specified ad configuration. @@ -2600,6 +2618,7 @@ export const deleteAdConfiguration: API.OperationMethod< InternalServerException, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "DeleteAdConfiguration", })); @@ -2609,6 +2628,7 @@ export type DeleteChannelError = | PendingVerification | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Deletes the specified channel and its associated stream keys. @@ -2629,6 +2649,7 @@ export const deleteChannel: API.OperationMethod< PendingVerification, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "DeleteChannel", })); @@ -2637,6 +2658,8 @@ export type DeletePlaybackKeyPairError = | PendingVerification | ResourceNotFoundException | ValidationException + | ThrottlingException + | InternalServerException | CommonErrors; /** * Deletes a specified authorization key pair. This invalidates future viewer tokens generated using the key pair’s `privateKey`. For more information, see Setting Up Private Channels in the *Amazon IVS User Guide*. @@ -2654,6 +2677,8 @@ export const deletePlaybackKeyPair: API.OperationMethod< PendingVerification, ResourceNotFoundException, ValidationException, + ThrottlingException, + InternalServerException, ], operationName: "DeletePlaybackKeyPair", })); @@ -2663,6 +2688,7 @@ export type DeletePlaybackRestrictionPolicyError = | PendingVerification | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Deletes the specified playback restriction policy. @@ -2681,6 +2707,7 @@ export const deletePlaybackRestrictionPolicy: API.OperationMethod< PendingVerification, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "DeletePlaybackRestrictionPolicy", })); @@ -2690,6 +2717,7 @@ export type DeleteRecordingConfigurationError = | InternalServerException | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Deletes the recording configuration for the specified ARN. @@ -2710,6 +2738,7 @@ export const deleteRecordingConfiguration: API.OperationMethod< InternalServerException, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "DeleteRecordingConfiguration", })); @@ -2718,6 +2747,7 @@ export type DeleteStreamKeyError = | PendingVerification | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Deletes the stream key for the specified ARN, so it can no longer be used to stream. @@ -2735,6 +2765,7 @@ export const deleteStreamKey: API.OperationMethod< PendingVerification, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "DeleteStreamKey", })); @@ -2743,6 +2774,7 @@ export type GetAdConfigurationError = | InternalServerException | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Gets the ad configuration represented by the specified ARN. @@ -2760,6 +2792,7 @@ export const getAdConfiguration: API.OperationMethod< InternalServerException, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "GetAdConfiguration", })); @@ -2767,6 +2800,7 @@ export type GetChannelError = | AccessDeniedException | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Gets the channel configuration for the specified channel ARN. See also BatchGetChannel. @@ -2783,6 +2817,7 @@ export const getChannel: API.OperationMethod< AccessDeniedException, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "GetChannel", })); @@ -2790,6 +2825,7 @@ export type GetPlaybackKeyPairError = | AccessDeniedException | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Gets a specified playback authorization key pair and returns the `arn` and `fingerprint`. The `privateKey` held by the caller can be used to generate viewer authorization tokens, to grant viewers access to private channels. For more information, see Setting Up Private Channels in the *Amazon IVS User Guide*. @@ -2806,6 +2842,7 @@ export const getPlaybackKeyPair: API.OperationMethod< AccessDeniedException, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "GetPlaybackKeyPair", })); @@ -2814,6 +2851,7 @@ export type GetPlaybackRestrictionPolicyError = | PendingVerification | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Gets the specified playback restriction policy. @@ -2831,6 +2869,7 @@ export const getPlaybackRestrictionPolicy: API.OperationMethod< PendingVerification, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "GetPlaybackRestrictionPolicy", })); @@ -2839,6 +2878,7 @@ export type GetRecordingConfigurationError = | InternalServerException | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Gets the recording configuration for the specified ARN. @@ -2856,6 +2896,7 @@ export const getRecordingConfiguration: API.OperationMethod< InternalServerException, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "GetRecordingConfiguration", })); @@ -2864,6 +2905,7 @@ export type GetStreamError = | ChannelNotBroadcasting | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Gets information about the active (live) stream on a specified channel. @@ -2881,6 +2923,7 @@ export const getStream: API.OperationMethod< ChannelNotBroadcasting, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "GetStream", })); @@ -2888,6 +2931,7 @@ export type GetStreamKeyError = | AccessDeniedException | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Gets stream-key information for a specified ARN. @@ -2904,6 +2948,7 @@ export const getStreamKey: API.OperationMethod< AccessDeniedException, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "GetStreamKey", })); @@ -2911,6 +2956,7 @@ export type GetStreamSessionError = | AccessDeniedException | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Gets metadata on a specified stream. @@ -2927,6 +2973,7 @@ export const getStreamSession: API.OperationMethod< AccessDeniedException, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "GetStreamSession", })); @@ -2936,6 +2983,7 @@ export type ImportPlaybackKeyPairError = | PendingVerification | ServiceQuotaExceededException | ValidationException + | ThrottlingException | CommonErrors; /** * Imports the public portion of a new key pair and returns its `arn` and `fingerprint`. The `privateKey` can then be used to generate viewer authorization tokens, to grant viewers access to private channels. For more information, see Setting Up Private Channels in the *Amazon IVS User Guide*. @@ -2954,6 +3002,7 @@ export const importPlaybackKeyPair: API.OperationMethod< PendingVerification, ServiceQuotaExceededException, ValidationException, + ThrottlingException, ], operationName: "ImportPlaybackKeyPair", })); @@ -2994,6 +3043,7 @@ export type ListAdConfigurationsError = | AccessDeniedException | InternalServerException | ValidationException + | ThrottlingException | CommonErrors; /** * Gets summary information about all ad configurations in your account, in the AWS region where the API request is processed. @@ -3021,7 +3071,12 @@ export const listAdConfigurations: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: ListAdConfigurationsRequest, output: ListAdConfigurationsResponse, - errors: [AccessDeniedException, InternalServerException, ValidationException], + errors: [ + AccessDeniedException, + InternalServerException, + ValidationException, + ThrottlingException, + ], operationName: "ListAdConfigurations", pagination: { inputToken: "nextToken", @@ -3034,6 +3089,7 @@ export type ListChannelsError = | AccessDeniedException | ConflictException | ValidationException + | ThrottlingException | CommonErrors; /** * Gets summary information about all channels in your account, in the Amazon Web Services region where the API request is processed. This list can be filtered to match a specified name or recording-configuration ARN. Filters are mutually exclusive and cannot be used together. If you try to use both filters, you will get an error (409 ConflictException). @@ -3061,7 +3117,12 @@ export const listChannels: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: ListChannelsRequest, output: ListChannelsResponse, - errors: [AccessDeniedException, ConflictException, ValidationException], + errors: [ + AccessDeniedException, + ConflictException, + ValidationException, + ThrottlingException, + ], operationName: "ListChannels", pagination: { inputToken: "nextToken", @@ -3072,6 +3133,7 @@ export const listChannels: API.OperationMethod< export type ListPlaybackKeyPairsError = | AccessDeniedException | ValidationException + | ThrottlingException | CommonErrors; /** * Gets summary information about playback key pairs. For more information, see Setting Up Private Channels in the *Amazon IVS User Guide*. @@ -3099,7 +3161,7 @@ export const listPlaybackKeyPairs: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: ListPlaybackKeyPairsRequest, output: ListPlaybackKeyPairsResponse, - errors: [AccessDeniedException, ValidationException], + errors: [AccessDeniedException, ValidationException, ThrottlingException], operationName: "ListPlaybackKeyPairs", pagination: { inputToken: "nextToken", @@ -3112,6 +3174,7 @@ export type ListPlaybackRestrictionPoliciesError = | ConflictException | PendingVerification | ValidationException + | ThrottlingException | CommonErrors; /** * Gets summary information about playback restriction policies. @@ -3144,6 +3207,7 @@ export const listPlaybackRestrictionPolicies: API.OperationMethod< ConflictException, PendingVerification, ValidationException, + ThrottlingException, ], operationName: "ListPlaybackRestrictionPolicies", pagination: { @@ -3156,6 +3220,7 @@ export type ListRecordingConfigurationsError = | AccessDeniedException | InternalServerException | ValidationException + | ThrottlingException | CommonErrors; /** * Gets summary information about all recording configurations in your account, in the Amazon Web Services region where the API request is processed. @@ -3183,7 +3248,12 @@ export const listRecordingConfigurations: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: ListRecordingConfigurationsRequest, output: ListRecordingConfigurationsResponse, - errors: [AccessDeniedException, InternalServerException, ValidationException], + errors: [ + AccessDeniedException, + InternalServerException, + ValidationException, + ThrottlingException, + ], operationName: "ListRecordingConfigurations", pagination: { inputToken: "nextToken", @@ -3195,6 +3265,7 @@ export type ListStreamKeysError = | AccessDeniedException | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Gets summary information about stream keys for the specified channel. @@ -3226,6 +3297,7 @@ export const listStreamKeys: API.OperationMethod< AccessDeniedException, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "ListStreamKeys", pagination: { @@ -3237,6 +3309,7 @@ export const listStreamKeys: API.OperationMethod< export type ListStreamsError = | AccessDeniedException | ValidationException + | ThrottlingException | CommonErrors; /** * Gets summary information about live streams in your account, in the Amazon Web Services region where the API request is processed. @@ -3264,7 +3337,7 @@ export const listStreams: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: ListStreamsRequest, output: ListStreamsResponse, - errors: [AccessDeniedException, ValidationException], + errors: [AccessDeniedException, ValidationException, ThrottlingException], operationName: "ListStreams", pagination: { inputToken: "nextToken", @@ -3276,6 +3349,7 @@ export type ListStreamSessionsError = | AccessDeniedException | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Gets a summary of current and previous streams for a specified channel in your account, in the AWS region where the API request is processed. @@ -3307,6 +3381,7 @@ export const listStreamSessions: API.OperationMethod< AccessDeniedException, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "ListStreamSessions", pagination: { @@ -3319,6 +3394,7 @@ export type ListTagsForResourceError = | InternalServerException | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Gets information about Amazon Web Services tags for the specified ARN. @@ -3335,6 +3411,7 @@ export const listTagsForResource: API.OperationMethod< InternalServerException, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "ListTagsForResource", })); @@ -3400,6 +3477,7 @@ export type StopStreamError = | ResourceNotFoundException | StreamUnavailable | ValidationException + | ThrottlingException | CommonErrors; /** * Disconnects the incoming RTMPS stream for the specified channel. Can be used in conjunction with DeleteStreamKey to prevent further streaming to a channel. @@ -3420,6 +3498,7 @@ export const stopStream: API.OperationMethod< ResourceNotFoundException, StreamUnavailable, ValidationException, + ThrottlingException, ], operationName: "StopStream", })); @@ -3427,6 +3506,7 @@ export type TagResourceError = | InternalServerException | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Adds or updates tags for the Amazon Web Services resource with the specified ARN. @@ -3443,6 +3523,7 @@ export const tagResource: API.OperationMethod< InternalServerException, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "TagResource", })); @@ -3450,6 +3531,7 @@ export type UntagResourceError = | InternalServerException | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Removes tags from the resource with the specified ARN. @@ -3466,6 +3548,7 @@ export const untagResource: API.OperationMethod< InternalServerException, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "UntagResource", })); @@ -3508,6 +3591,7 @@ export type UpdateChannelError = | PendingVerification | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Updates a channel's configuration. Live channels cannot be updated. You must stop the ongoing stream, update the channel, and restart the stream for the changes to take effect. @@ -3526,6 +3610,7 @@ export const updateChannel: API.OperationMethod< PendingVerification, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "UpdateChannel", })); diff --git a/packages/aws/src/services/ivschat.ts b/packages/aws/src/services/ivschat.ts index 89a7e7255b..98aff0de3f 100644 --- a/packages/aws/src/services/ivschat.ts +++ b/packages/aws/src/services/ivschat.ts @@ -939,26 +939,31 @@ export const UpdateRoomResponse = /*@__PURE__*/ S.suspend(() => export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.String }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class PendingVerification extends S.TaggedErrorClass()( "PendingVerification", { message: S.String }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.String, resourceId: S.String, resourceType: S.String }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", { message: S.String, - reason: S.String, + reason: S.optional(S.String), fieldList: S.optional(ValidationExceptionFieldList), }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { message: S.String, resourceId: S.String, resourceType: S.String }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", @@ -968,19 +973,16 @@ export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ThrottlingException", - { - message: S.String, - resourceId: S.String, - resourceType: S.String, - limit: S.Number, - }, -).pipe(C.withThrottlingError) {} + {}, +) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { message: S.String }, + T.HttpError(500), ).pipe(C.withServerError) {} //# Operations @@ -1030,6 +1032,7 @@ export type CreateLoggingConfigurationError = | ResourceNotFoundException | ServiceQuotaExceededException | ValidationException + | ThrottlingException | CommonErrors; /** * Creates a logging configuration that allows clients to store and record sent @@ -1050,6 +1053,7 @@ export const createLoggingConfiguration: API.OperationMethod< ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, + ThrottlingException, ], operationName: "CreateLoggingConfiguration", })); @@ -1060,6 +1064,7 @@ export type CreateRoomError = | ResourceNotFoundException | ServiceQuotaExceededException | ValidationException + | ThrottlingException | CommonErrors; /** * Creates a room that allows clients to connect and pass messages. @@ -1079,6 +1084,7 @@ export const createRoom: API.OperationMethod< ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, + ThrottlingException, ], operationName: "CreateRoom", })); @@ -1088,6 +1094,7 @@ export type DeleteLoggingConfigurationError = | PendingVerification | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Deletes the specified logging configuration. @@ -1106,6 +1113,7 @@ export const deleteLoggingConfiguration: API.OperationMethod< PendingVerification, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "DeleteLoggingConfiguration", })); @@ -1144,6 +1152,7 @@ export type DeleteRoomError = | PendingVerification | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Deletes the specified room. @@ -1161,6 +1170,7 @@ export const deleteRoom: API.OperationMethod< PendingVerification, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "DeleteRoom", })); @@ -1197,6 +1207,7 @@ export type GetLoggingConfigurationError = | AccessDeniedException | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Gets the specified logging configuration. @@ -1213,6 +1224,7 @@ export const getLoggingConfiguration: API.OperationMethod< AccessDeniedException, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "GetLoggingConfiguration", })); @@ -1220,6 +1232,7 @@ export type GetRoomError = | AccessDeniedException | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Gets the specified room. @@ -1236,12 +1249,14 @@ export const getRoom: API.OperationMethod< AccessDeniedException, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "GetRoom", })); export type ListLoggingConfigurationsError = | AccessDeniedException | ValidationException + | ThrottlingException | CommonErrors; /** * Gets summary information about all your logging configurations in the AWS region where @@ -1270,7 +1285,7 @@ export const listLoggingConfigurations: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: ListLoggingConfigurationsRequest, output: ListLoggingConfigurationsResponse, - errors: [AccessDeniedException, ValidationException], + errors: [AccessDeniedException, ValidationException, ThrottlingException], operationName: "ListLoggingConfigurations", pagination: { inputToken: "nextToken", @@ -1282,6 +1297,7 @@ export type ListRoomsError = | AccessDeniedException | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Gets summary information about all your rooms in the AWS region where the API request is @@ -1314,6 +1330,7 @@ export const listRooms: API.OperationMethod< AccessDeniedException, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "ListRooms", pagination: { @@ -1326,6 +1343,7 @@ export type ListTagsForResourceError = | InternalServerException | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Gets information about AWS tags for the specified ARN. @@ -1342,6 +1360,7 @@ export const listTagsForResource: API.OperationMethod< InternalServerException, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "ListTagsForResource", })); @@ -1378,6 +1397,7 @@ export type TagResourceError = | InternalServerException | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Adds or updates tags for the AWS resource with the specified ARN. @@ -1394,6 +1414,7 @@ export const tagResource: API.OperationMethod< InternalServerException, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "TagResource", })); @@ -1401,6 +1422,7 @@ export type UntagResourceError = | InternalServerException | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Removes tags from the resource with the specified ARN. @@ -1417,6 +1439,7 @@ export const untagResource: API.OperationMethod< InternalServerException, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "UntagResource", })); @@ -1426,6 +1449,7 @@ export type UpdateLoggingConfigurationError = | PendingVerification | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Updates a specified logging configuration. @@ -1444,6 +1468,7 @@ export const updateLoggingConfiguration: API.OperationMethod< PendingVerification, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "UpdateLoggingConfiguration", })); @@ -1452,6 +1477,7 @@ export type UpdateRoomError = | PendingVerification | ResourceNotFoundException | ValidationException + | ThrottlingException | CommonErrors; /** * Updates a room’s configuration. @@ -1469,6 +1495,7 @@ export const updateRoom: API.OperationMethod< PendingVerification, ResourceNotFoundException, ValidationException, + ThrottlingException, ], operationName: "UpdateRoom", })); diff --git a/packages/aws/src/services/kafka.ts b/packages/aws/src/services/kafka.ts index b3c009d7ea..a0db47f699 100644 --- a/packages/aws/src/services/kafka.ts +++ b/packages/aws/src/services/kafka.ts @@ -5239,70 +5239,87 @@ export const UpdateTopicResponse = /*@__PURE__*/ S.suspend(() => export class BadRequestException extends S.TaggedErrorClass()( "BadRequestException", { InvalidParameter: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ForbiddenException extends S.TaggedErrorClass()( "ForbiddenException", { InvalidParameter: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class InternalServerErrorException extends S.TaggedErrorClass()( "InternalServerErrorException", { InvalidParameter: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class NotFoundException extends S.TaggedErrorClass()( "NotFoundException", { InvalidParameter: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ServiceUnavailableException extends S.TaggedErrorClass()( "ServiceUnavailableException", { InvalidParameter: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(503), ).pipe(C.withServerError) {} export class TooManyRequestsException extends S.TaggedErrorClass()( "TooManyRequestsException", { InvalidParameter: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class UnauthorizedException extends S.TaggedErrorClass()( "UnauthorizedException", { InvalidParameter: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(401), ).pipe(C.withAuthError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { InvalidParameter: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ClusterConnectivityException extends S.TaggedErrorClass()( "ClusterConnectivityException", { InvalidParameter: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ControllerMovedException extends S.TaggedErrorClass()( "ControllerMovedException", { InvalidParameter: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class GroupSubscribedToTopicException extends S.TaggedErrorClass()( "GroupSubscribedToTopicException", { InvalidParameter: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class KafkaRequestException extends S.TaggedErrorClass()( "KafkaRequestException", { InvalidParameter: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class KafkaTimeoutException extends S.TaggedErrorClass()( "KafkaTimeoutException", { InvalidParameter: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class NotControllerException extends S.TaggedErrorClass()( "NotControllerException", { InvalidParameter: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ReassignmentInProgressException extends S.TaggedErrorClass()( "ReassignmentInProgressException", { InvalidParameter: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class TopicExistsException extends S.TaggedErrorClass()( "TopicExistsException", { InvalidParameter: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class UnknownTopicOrPartitionException extends S.TaggedErrorClass()( "UnknownTopicOrPartitionException", { InvalidParameter: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} //# Operations @@ -6055,6 +6072,7 @@ export type GetBootstrapBrokersError = | ForbiddenException | InternalServerErrorException | UnauthorizedException + | NotFoundException | CommonErrors; /** * A list of brokers that a client application can use to bootstrap. This list doesn't necessarily include all of the brokers in the cluster. The following Python 3.6 example shows how you can use the Amazon Resource Name (ARN) of a cluster to get its bootstrap brokers. If you don't know the ARN of your cluster, you can use the `ListClusters` operation to get the ARNs of all the clusters in this account and Region. @@ -6073,6 +6091,7 @@ export const getBootstrapBrokers: API.OperationMethod< ForbiddenException, InternalServerErrorException, UnauthorizedException, + NotFoundException, ], operationName: "GetBootstrapBrokers", })); @@ -6693,6 +6712,7 @@ export type ListTopicsError = | InternalServerErrorException | ServiceUnavailableException | UnauthorizedException + | NotFoundException | CommonErrors; /** * List topics in a MSK cluster. @@ -6726,6 +6746,7 @@ export const listTopics: API.OperationMethod< InternalServerErrorException, ServiceUnavailableException, UnauthorizedException, + NotFoundException, ], operationName: "ListTopics", pagination: { diff --git a/packages/aws/src/services/kendra.ts b/packages/aws/src/services/kendra.ts index 4b4a90be19..b8c7c91be9 100644 --- a/packages/aws/src/services/kendra.ts +++ b/packages/aws/src/services/kendra.ts @@ -3520,14 +3520,14 @@ export const DataSourceGroup = /*@__PURE__*/ S.suspend(() => export type DataSourceGroups = DataSourceGroup[]; export const DataSourceGroups = /*@__PURE__*/ S.Array(DataSourceGroup); export interface UserContext { - Token?: string; + Token?: string | redacted.Redacted; UserId?: string; Groups?: string[]; DataSourceGroups?: DataSourceGroup[]; } export const UserContext = /*@__PURE__*/ S.suspend(() => S.Struct({ - Token: S.optional(S.String), + Token: S.optional(SensitiveString), UserId: S.optional(S.String), Groups: S.optional(Groups), DataSourceGroups: S.optional(DataSourceGroups), @@ -5350,34 +5350,42 @@ export const UpdateThesaurusResponse = /*@__PURE__*/ S.suspend(() => export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { Message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class ResourceAlreadyExistException extends S.TaggedErrorClass()( "ResourceAlreadyExistException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", { Message: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", { Message: S.optional(S.String) }, + T.HttpError(402), ).pipe(C.withQuotaError) {} export class FeaturedResultsConflictException extends S.TaggedErrorClass()( "FeaturedResultsConflictException", @@ -5385,18 +5393,22 @@ export class FeaturedResultsConflictException extends S.TaggedErrorClass()( "InvalidRequestException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ResourceUnavailableException extends S.TaggedErrorClass()( "ResourceUnavailableException", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ResourceInUseException extends S.TaggedErrorClass()( "ResourceInUseException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} //# Operations @@ -7226,6 +7238,7 @@ export type ListTagsForResourceError = | ResourceUnavailableException | ThrottlingException | ValidationException + | ResourceNotFoundException | CommonErrors; /** * Gets a list of tags associated with a resource. Indexes, FAQs, data sources, and @@ -7245,6 +7258,7 @@ export const listTagsForResource: API.OperationMethod< ResourceUnavailableException, ThrottlingException, ValidationException, + ResourceNotFoundException, ], operationName: "ListTagsForResource", })); diff --git a/packages/aws/src/services/kinesis-video-signaling.ts b/packages/aws/src/services/kinesis-video-signaling.ts index a6a3aeaa77..3e1ed88a2f 100644 --- a/packages/aws/src/services/kinesis-video-signaling.ts +++ b/packages/aws/src/services/kinesis-video-signaling.ts @@ -1,4 +1,5 @@ import * as HttpClient from "effect/unstable/http/HttpClient"; +import * as redacted from "effect/Redacted"; import * as S from "@distilled.cloud/core/schema"; import * as API from "../client/api.ts"; import * as T from "../traits.ts"; @@ -6,6 +7,7 @@ import * as C from "../category.ts"; import type { Credentials } from "../credentials.ts"; import type { CommonErrors } from "../errors.ts"; import type { Region } from "../region.ts"; +import { SensitiveString } from "../sensitive.ts"; const svc = T.AwsApiService({ sdkId: "Kinesis Video Signaling", serviceShapeName: "AWSAcuitySignalingService", @@ -126,14 +128,14 @@ export const Uris = /*@__PURE__*/ S.Array(S.String); export interface IceServer { Uris?: string[]; Username?: string; - Password?: string; + Password?: string | redacted.Redacted; Ttl?: number; } export const IceServer = /*@__PURE__*/ S.suspend(() => S.Struct({ Uris: S.optional(Uris), Username: S.optional(S.String), - Password: S.optional(S.String), + Password: S.optional(SensitiveString), Ttl: S.optional(S.Number), }), ).annotate({ identifier: "IceServer" }) as any as S.Schema; @@ -185,26 +187,32 @@ export const SendAlexaOfferToMasterResponse = export class ClientLimitExceededException extends S.TaggedErrorClass()( "ClientLimitExceededException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidArgumentException extends S.TaggedErrorClass()( "InvalidArgumentException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidClientException extends S.TaggedErrorClass()( "InvalidClientException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class NotAuthorizedException extends S.TaggedErrorClass()( "NotAuthorizedException", { Message: S.optional(S.String) }, + T.HttpError(401), ).pipe(C.withAuthError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class SessionExpiredException extends S.TaggedErrorClass()( "SessionExpiredException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} //# Operations diff --git a/packages/aws/src/services/kinesis-video.ts b/packages/aws/src/services/kinesis-video.ts index 3832439aea..efb25da1a7 100644 --- a/packages/aws/src/services/kinesis-video.ts +++ b/packages/aws/src/services/kinesis-video.ts @@ -1713,6 +1713,14 @@ export class NoDataRetentionException extends S.TaggedErrorClass()( + "StreamNotActive", + { Message: S.optional(S.String) }, + T.SyntheticError({ + from: "ResourceNotFoundException", + message: { includes: "not active" }, + }), +).pipe(C.withConflictError, C.withRetryableError) {} //# Operations export type CreateSignalingChannelError = @@ -2438,6 +2446,7 @@ export type TagResourceError = | InvalidArgumentException | ResourceNotFoundException | TagsPerResourceExceededLimitException + | StreamNotActive | CommonErrors; /** * Adds one or more tags to a signaling channel. A *tag* is a @@ -2461,6 +2470,7 @@ export const tagResource: API.OperationMethod< InvalidArgumentException, ResourceNotFoundException, TagsPerResourceExceededLimitException, + StreamNotActive, ], operationName: "TagResource", })); @@ -2471,6 +2481,7 @@ export type TagStreamError = | NotAuthorizedException | ResourceNotFoundException | TagsPerResourceExceededLimitException + | StreamNotActive | CommonErrors; /** * Adds one or more tags to a stream. A *tag* is a key-value pair @@ -2502,6 +2513,7 @@ export const tagStream: API.OperationMethod< NotAuthorizedException, ResourceNotFoundException, TagsPerResourceExceededLimitException, + StreamNotActive, ], operationName: "TagStream", })); @@ -2510,6 +2522,7 @@ export type UntagResourceError = | ClientLimitExceededException | InvalidArgumentException | ResourceNotFoundException + | StreamNotActive | CommonErrors; /** * Removes one or more tags from a signaling channel. In the request, specify only a tag @@ -2529,6 +2542,7 @@ export const untagResource: API.OperationMethod< ClientLimitExceededException, InvalidArgumentException, ResourceNotFoundException, + StreamNotActive, ], operationName: "UntagResource", })); @@ -2538,6 +2552,7 @@ export type UntagStreamError = | InvalidResourceFormatException | NotAuthorizedException | ResourceNotFoundException + | StreamNotActive | CommonErrors; /** * Removes one or more tags from a stream. In the request, specify only a tag key or @@ -2561,6 +2576,7 @@ export const untagStream: API.OperationMethod< InvalidResourceFormatException, NotAuthorizedException, ResourceNotFoundException, + StreamNotActive, ], operationName: "UntagStream", })); @@ -2571,6 +2587,7 @@ export type UpdateDataRetentionError = | ResourceInUseException | ResourceNotFoundException | VersionMismatchException + | StreamNotActive | CommonErrors; /** * Increases or decreases the stream's data retention period by the value that you @@ -2609,6 +2626,7 @@ export const updateDataRetention: API.OperationMethod< ResourceInUseException, ResourceNotFoundException, VersionMismatchException, + StreamNotActive, ], operationName: "UpdateDataRetention", })); @@ -2719,6 +2737,7 @@ export type UpdateSignalingChannelError = | ResourceInUseException | ResourceNotFoundException | VersionMismatchException + | StreamNotActive | CommonErrors; /** * Updates the existing signaling channel. This is an asynchronous operation and takes @@ -2744,6 +2763,7 @@ export const updateSignalingChannel: API.OperationMethod< ResourceInUseException, ResourceNotFoundException, VersionMismatchException, + StreamNotActive, ], operationName: "UpdateSignalingChannel", })); @@ -2754,6 +2774,7 @@ export type UpdateStreamError = | ResourceInUseException | ResourceNotFoundException | VersionMismatchException + | StreamNotActive | CommonErrors; /** * Updates stream metadata, such as the device name and media type. @@ -2784,6 +2805,7 @@ export const updateStream: API.OperationMethod< ResourceInUseException, ResourceNotFoundException, VersionMismatchException, + StreamNotActive, ], operationName: "UpdateStream", })); diff --git a/packages/aws/src/services/lakeformation.ts b/packages/aws/src/services/lakeformation.ts index 46073d9735..40f6332c48 100644 --- a/packages/aws/src/services/lakeformation.ts +++ b/packages/aws/src/services/lakeformation.ts @@ -413,16 +413,16 @@ export const AssumeDecoratedRoleWithSAMLRequest = }) as any as S.Schema; export interface AssumeDecoratedRoleWithSAMLResponse { AccessKeyId?: string; - SecretAccessKey?: string; - SessionToken?: string; + SecretAccessKey?: string | redacted.Redacted; + SessionToken?: string | redacted.Redacted; Expiration?: Date; } export const AssumeDecoratedRoleWithSAMLResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ AccessKeyId: S.optional(S.String), - SecretAccessKey: S.optional(S.String), - SessionToken: S.optional(S.String), + SecretAccessKey: S.optional(SensitiveString), + SessionToken: S.optional(SensitiveString), Expiration: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), }), ).annotate({ @@ -1753,15 +1753,15 @@ export const GetTemporaryDataLocationCredentialsRequest = }) as any as S.Schema; export interface TemporaryCredentials { AccessKeyId?: string; - SecretAccessKey?: string; - SessionToken?: string; + SecretAccessKey?: string | redacted.Redacted; + SessionToken?: string | redacted.Redacted; Expiration?: Date; } export const TemporaryCredentials = /*@__PURE__*/ S.suspend(() => S.Struct({ AccessKeyId: S.optional(S.String), - SecretAccessKey: S.optional(S.String), - SessionToken: S.optional(S.String), + SecretAccessKey: S.optional(SensitiveString), + SessionToken: S.optional(SensitiveString), Expiration: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), }), ).annotate({ @@ -1836,16 +1836,16 @@ export const GetTemporaryGluePartitionCredentialsRequest = }) as any as S.Schema; export interface GetTemporaryGluePartitionCredentialsResponse { AccessKeyId?: string; - SecretAccessKey?: string; - SessionToken?: string; + SecretAccessKey?: string | redacted.Redacted; + SessionToken?: string | redacted.Redacted; Expiration?: Date; } export const GetTemporaryGluePartitionCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ AccessKeyId: S.optional(S.String), - SecretAccessKey: S.optional(S.String), - SessionToken: S.optional(S.String), + SecretAccessKey: S.optional(SensitiveString), + SessionToken: S.optional(SensitiveString), Expiration: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), }), ).annotate({ @@ -1908,8 +1908,8 @@ export const GetTemporaryGlueTableCredentialsRequest = }) as any as S.Schema; export interface GetTemporaryGlueTableCredentialsResponse { AccessKeyId?: string; - SecretAccessKey?: string; - SessionToken?: string; + SecretAccessKey?: string | redacted.Redacted; + SessionToken?: string | redacted.Redacted; Expiration?: Date; VendedS3Path?: string[]; } @@ -1917,8 +1917,8 @@ export const GetTemporaryGlueTableCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ AccessKeyId: S.optional(S.String), - SecretAccessKey: S.optional(S.String), - SessionToken: S.optional(S.String), + SecretAccessKey: S.optional(SensitiveString), + SessionToken: S.optional(SensitiveString), Expiration: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), VendedS3Path: S.optional(PathStringList), }), @@ -3081,6 +3081,7 @@ export const UpdateTableStorageOptimizerResponse = export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { Message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class ConcurrentModificationException extends S.TaggedErrorClass()( "ConcurrentModificationException", @@ -3093,10 +3094,12 @@ export class EntityNotFoundException extends S.TaggedErrorClass()( "InternalServiceException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class InvalidInputException extends S.TaggedErrorClass()( "InvalidInputException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class OperationTimeoutException extends S.TaggedErrorClass()( "OperationTimeoutException", @@ -3105,14 +3108,17 @@ export class OperationTimeoutException extends S.TaggedErrorClass()( "TransactionCommitInProgressException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TransactionCommittedException extends S.TaggedErrorClass()( "TransactionCommittedException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TransactionCanceledException extends S.TaggedErrorClass()( "TransactionCanceledException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class AlreadyExistsException extends S.TaggedErrorClass()( "AlreadyExistsException", @@ -3122,22 +3128,41 @@ export class ResourceNumberLimitExceededException extends S.TaggedErrorClass()( + "InvalidLakeFormationPrincipal", + { Message: S.optional(S.String) }, + T.SyntheticError({ + from: "InvalidInputException", + message: { includes: "Invalid principal" }, + }), +).pipe(C.withBadRequestError, C.withRetryableError) {} export class ResourceNotReadyException extends S.TaggedErrorClass()( "ResourceNotReadyException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} +export class LastServiceLinkedRoleRegistration extends S.TaggedErrorClass()( + "LastServiceLinkedRoleRegistration", + { Message: S.optional(S.String) }, + T.SyntheticError({ + from: "InvalidInputException", + message: { includes: "Must manually delete service-linked role" }, + }), +).pipe(C.withConflictError) {} export class ExpiredException extends S.TaggedErrorClass()( "ExpiredException", { Message: S.optional(S.String) }, + T.HttpError(410), ).pipe(C.withBadRequestError) {} export class StatisticsNotReadyYetException extends S.TaggedErrorClass()( "StatisticsNotReadyYetException", { Message: S.optional(S.String) }, + T.HttpError(420), ) {} export class ThrottledException extends S.TaggedErrorClass()( "ThrottledException", { Message: S.optional(S.String) }, - T.Retryable({ throttling: true }), + T.all(T.HttpError(429), T.Retryable({ throttling: true })), ).pipe(C.withThrottlingError, C.withRetryableError) {} export class GlueEncryptionException extends S.TaggedErrorClass()( "GlueEncryptionException", @@ -3154,6 +3179,7 @@ export class PermissionTypeMismatchException extends S.TaggedErrorClass()( "WorkUnitsNotReadyYetException", { Message: S.optional(S.String) }, + T.HttpError(420), ) {} //# Operations @@ -3392,6 +3418,7 @@ export type CreateLakeFormationOptInError = | InvalidInputException | OperationTimeoutException | ResourceNumberLimitExceededException + | InvalidLakeFormationPrincipal | CommonErrors; /** * Enforce Lake Formation permissions for the given databases, tables, and principals. @@ -3412,6 +3439,7 @@ export const createLakeFormationOptIn: API.OperationMethod< InvalidInputException, OperationTimeoutException, ResourceNumberLimitExceededException, + InvalidLakeFormationPrincipal, ], operationName: "CreateLakeFormationOptIn", })); @@ -3544,6 +3572,7 @@ export type DeleteLakeFormationOptInError = | InternalServiceException | InvalidInputException | OperationTimeoutException + | InvalidLakeFormationPrincipal | CommonErrors; /** * Remove the Lake Formation permissions enforcement of the given databases, tables, and principals. @@ -3563,6 +3592,7 @@ export const deleteLakeFormationOptIn: API.OperationMethod< InternalServiceException, InvalidInputException, OperationTimeoutException, + InvalidLakeFormationPrincipal, ], operationName: "DeleteLakeFormationOptIn", })); @@ -3670,6 +3700,7 @@ export type DeregisterResourceError = | InternalServiceException | InvalidInputException | OperationTimeoutException + | LastServiceLinkedRoleRegistration | CommonErrors; /** * Deregisters the resource as managed by the Data Catalog. @@ -3689,6 +3720,7 @@ export const deregisterResource: API.OperationMethod< InternalServiceException, InvalidInputException, OperationTimeoutException, + LastServiceLinkedRoleRegistration, ], operationName: "DeregisterResource", })); @@ -3997,6 +4029,7 @@ export const getQueryState: API.OperationMethod< InvalidInputException, ], operationName: "GetQueryState", + endpointHostPrefix: "query-", })); export type GetQueryStatisticsError = | AccessDeniedException @@ -4026,6 +4059,7 @@ export const getQueryStatistics: API.OperationMethod< ThrottledException, ], operationName: "GetQueryStatistics", + endpointHostPrefix: "query-", })); export type GetResourceLFTagsError = | AccessDeniedException @@ -4243,6 +4277,7 @@ export const getWorkUnitResults: API.OperationMethod< ThrottledException, ], operationName: "GetWorkUnitResults", + endpointHostPrefix: "data-", })); export type GetWorkUnitsError = | AccessDeniedException @@ -4285,6 +4320,7 @@ export const getWorkUnits: API.OperationMethod< WorkUnitsNotReadyYetException, ], operationName: "GetWorkUnits", + endpointHostPrefix: "query-", pagination: { inputToken: "NextToken", outputToken: "NextToken", @@ -4296,6 +4332,7 @@ export type GrantPermissionsError = | ConcurrentModificationException | EntityNotFoundException | InvalidInputException + | InvalidLakeFormationPrincipal | CommonErrors; /** * Grants permissions to the principal to access metadata in the Data Catalog and data organized in underlying data storage such as Amazon S3. @@ -4314,6 +4351,7 @@ export const grantPermissions: API.OperationMethod< ConcurrentModificationException, EntityNotFoundException, InvalidInputException, + InvalidLakeFormationPrincipal, ], operationName: "GrantPermissions", })); @@ -4368,6 +4406,8 @@ export type ListLakeFormationOptInsError = | InternalServiceException | InvalidInputException | OperationTimeoutException + | EntityNotFoundException + | InvalidLakeFormationPrincipal | CommonErrors; /** * Retrieve the current list of resources and principals that are opt in to enforce Lake Formation permissions. @@ -4400,6 +4440,8 @@ export const listLakeFormationOptIns: API.OperationMethod< InternalServiceException, InvalidInputException, OperationTimeoutException, + EntityNotFoundException, + InvalidLakeFormationPrincipal, ], operationName: "ListLakeFormationOptIns", pagination: { @@ -4508,6 +4550,7 @@ export type ListPermissionsError = | InternalServiceException | InvalidInputException | OperationTimeoutException + | InvalidLakeFormationPrincipal | CommonErrors; /** * Returns a list of the principal permissions on the resource, filtered by the permissions of the caller. For example, if you are granted an ALTER permission, you are able to see only the principal permissions for ALTER. @@ -4545,6 +4588,7 @@ export const listPermissions: API.OperationMethod< InternalServiceException, InvalidInputException, OperationTimeoutException, + InvalidLakeFormationPrincipal, ], operationName: "ListPermissions", pagination: { @@ -4689,6 +4733,7 @@ export const listTransactions: API.OperationMethod< export type PutDataLakeSettingsError = | InternalServiceException | InvalidInputException + | InvalidLakeFormationPrincipal | CommonErrors; /** * Sets the list of data lake administrators who have admin privileges on all resources managed by Lake Formation. For more information on admin privileges, see Granting Lake Formation Permissions. @@ -4703,7 +4748,11 @@ export const putDataLakeSettings: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: PutDataLakeSettingsRequest, output: PutDataLakeSettingsResponse, - errors: [InternalServiceException, InvalidInputException], + errors: [ + InternalServiceException, + InvalidInputException, + InvalidLakeFormationPrincipal, + ], operationName: "PutDataLakeSettings", })); export type RegisterResourceError = @@ -4783,6 +4832,7 @@ export type RevokePermissionsError = | ConcurrentModificationException | EntityNotFoundException | InvalidInputException + | InvalidLakeFormationPrincipal | CommonErrors; /** * Revokes permissions to the principal to access metadata in the Data Catalog and data organized in underlying data storage such as Amazon S3. @@ -4799,6 +4849,7 @@ export const revokePermissions: API.OperationMethod< ConcurrentModificationException, EntityNotFoundException, InvalidInputException, + InvalidLakeFormationPrincipal, ], operationName: "RevokePermissions", })); @@ -4928,6 +4979,7 @@ export const startQueryPlanning: API.OperationMethod< ThrottledException, ], operationName: "StartQueryPlanning", + endpointHostPrefix: "query-", })); export type StartTransactionError = | InternalServiceException diff --git a/packages/aws/src/services/lex-models-v2.ts b/packages/aws/src/services/lex-models-v2.ts index 511a712d4b..b9031001d1 100644 --- a/packages/aws/src/services/lex-models-v2.ts +++ b/packages/aws/src/services/lex-models-v2.ts @@ -10155,14 +10155,17 @@ export const UpdateTestSetResponse = /*@__PURE__*/ S.suspend(() => export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", { message: S.optional(S.String) }, + T.HttpError(402), ).pipe(C.withQuotaError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", @@ -10170,18 +10173,22 @@ export class ThrottlingException extends S.TaggedErrorClass retryAfterSeconds: S.optional(S.Number).pipe(T.HttpHeader("Retry-After")), message: S.optional(S.String), }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class PreconditionFailedException extends S.TaggedErrorClass()( "PreconditionFailedException", { message: S.optional(S.String) }, + T.HttpError(412), ) {} //# Operations @@ -11896,6 +11903,7 @@ export type ListBotAliasesError = | ServiceQuotaExceededException | ThrottlingException | ValidationException + | ResourceNotFoundException | CommonErrors; /** * Gets a list of aliases for the specified bot. @@ -11928,6 +11936,7 @@ export const listBotAliases: API.OperationMethod< ServiceQuotaExceededException, ThrottlingException, ValidationException, + ResourceNotFoundException, ], operationName: "ListBotAliases", pagination: { @@ -12656,6 +12665,7 @@ export type ListIntentsError = | ServiceQuotaExceededException | ThrottlingException | ValidationException + | ResourceNotFoundException | CommonErrors; /** * Get a list of intents that meet the specified criteria. @@ -12688,6 +12698,7 @@ export const listIntents: API.OperationMethod< ServiceQuotaExceededException, ThrottlingException, ValidationException, + ResourceNotFoundException, ], operationName: "ListIntents", pagination: { @@ -12964,6 +12975,7 @@ export type ListSlotTypesError = | ServiceQuotaExceededException | ThrottlingException | ValidationException + | ResourceNotFoundException | CommonErrors; /** * Gets a list of slot types that match the specified criteria. @@ -12996,6 +13008,7 @@ export const listSlotTypes: API.OperationMethod< ServiceQuotaExceededException, ThrottlingException, ValidationException, + ResourceNotFoundException, ], operationName: "ListSlotTypes", pagination: { diff --git a/packages/aws/src/services/license-manager.ts b/packages/aws/src/services/license-manager.ts index c35edd10be..12792f1b43 100644 --- a/packages/aws/src/services/license-manager.ts +++ b/packages/aws/src/services/license-manager.ts @@ -1,4 +1,5 @@ import * as HttpClient from "effect/unstable/http/HttpClient"; +import * as redacted from "effect/Redacted"; import * as S from "@distilled.cloud/core/schema"; import * as API from "../client/api.ts"; import * as T from "../traits.ts"; @@ -6,6 +7,7 @@ import * as C from "../category.ts"; import type { Credentials } from "../credentials.ts"; import type { CommonErrors } from "../errors.ts"; import type { Region } from "../region.ts"; +import { SensitiveString } from "../sensitive.ts"; const ns = T.XmlNamespace( "https://license-manager.amazonaws.com/doc/2018_08_01", ); @@ -246,29 +248,28 @@ export interface CheckoutBorrowLicenseRequest { CheckoutMetadata?: Metadata[]; ClientToken: string; } -export const CheckoutBorrowLicenseRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - LicenseArn: S.String, - Entitlements: EntitlementDataList, - DigitalSignatureMethod: DigitalSignatureMethod, - NodeId: S.optional(S.String), - CheckoutMetadata: S.optional(MetadataList), - ClientToken: S.String, - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CheckoutBorrowLicenseRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + LicenseArn: S.String, + Entitlements: EntitlementDataList, + DigitalSignatureMethod: DigitalSignatureMethod, + NodeId: S.optional(S.String), + CheckoutMetadata: S.optional(MetadataList), + ClientToken: S.String, + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CheckoutBorrowLicenseRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CheckoutBorrowLicenseRequest", +}) as any as S.Schema; export interface CheckoutBorrowLicenseResponse { LicenseArn?: string; LicenseConsumptionToken?: string; @@ -279,21 +280,20 @@ export interface CheckoutBorrowLicenseResponse { Expiration?: string; CheckoutMetadata?: Metadata[]; } -export const CheckoutBorrowLicenseResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - LicenseArn: S.optional(S.String), - LicenseConsumptionToken: S.optional(S.String), - EntitlementsAllowed: S.optional(EntitlementDataList), - NodeId: S.optional(S.String), - SignedToken: S.optional(S.String), - IssuedAt: S.optional(S.String), - Expiration: S.optional(S.String), - CheckoutMetadata: S.optional(MetadataList), - }).pipe(ns), - ).annotate({ - identifier: "CheckoutBorrowLicenseResponse", - }) as any as S.Schema; +export const CheckoutBorrowLicenseResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + LicenseArn: S.optional(S.String), + LicenseConsumptionToken: S.optional(S.String), + EntitlementsAllowed: S.optional(EntitlementDataList), + NodeId: S.optional(S.String), + SignedToken: S.optional(S.String), + IssuedAt: S.optional(S.String), + Expiration: S.optional(S.String), + CheckoutMetadata: S.optional(MetadataList), + }).pipe(ns), +).annotate({ + identifier: "CheckoutBorrowLicenseResponse", +}) as any as S.Schema; export type CheckoutType = "PROVISIONAL" | "PERPETUAL" | (string & {}); export const CheckoutType = /*@__PURE__*/ S.String; export interface CheckoutLicenseRequest { @@ -648,16 +648,16 @@ export const CreateLicenseResponse = /*@__PURE__*/ S.suspend(() => export interface LicenseAssetGroupConfiguration { UsageDimension?: string; } -export const LicenseAssetGroupConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ UsageDimension: S.optional(S.String) }), - ).annotate({ - identifier: "LicenseAssetGroupConfiguration", - }) as any as S.Schema; +export const LicenseAssetGroupConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ UsageDimension: S.optional(S.String) }), +).annotate({ + identifier: "LicenseAssetGroupConfiguration", +}) as any as S.Schema; export type LicenseAssetGroupConfigurationList = LicenseAssetGroupConfiguration[]; -export const LicenseAssetGroupConfigurationList = - /*@__PURE__*/ S.Array(LicenseAssetGroupConfiguration); +export const LicenseAssetGroupConfigurationList = /*@__PURE__*/ S.Array( + LicenseAssetGroupConfiguration, +); export type LicenseAssetRulesetArnList = string[]; export const LicenseAssetRulesetArnList = /*@__PURE__*/ S.Array(S.String); export interface LicenseAssetGroupProperty { @@ -670,8 +670,9 @@ export const LicenseAssetGroupProperty = /*@__PURE__*/ S.suspend(() => identifier: "LicenseAssetGroupProperty", }) as any as S.Schema; export type LicenseAssetGroupPropertyList = LicenseAssetGroupProperty[]; -export const LicenseAssetGroupPropertyList = - /*@__PURE__*/ S.Array(LicenseAssetGroupProperty); +export const LicenseAssetGroupPropertyList = /*@__PURE__*/ S.Array( + LicenseAssetGroupProperty, +); export interface CreateLicenseAssetGroupRequest { Name: string; Description?: string; @@ -681,40 +682,38 @@ export interface CreateLicenseAssetGroupRequest { Tags?: Tag[]; ClientToken: string; } -export const CreateLicenseAssetGroupRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Name: S.String, - Description: S.optional(S.String), - LicenseAssetGroupConfigurations: LicenseAssetGroupConfigurationList, - AssociatedLicenseAssetRulesetARNs: LicenseAssetRulesetArnList, - Properties: S.optional(LicenseAssetGroupPropertyList), - Tags: S.optional(TagList), - ClientToken: S.String, - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateLicenseAssetGroupRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.String, + Description: S.optional(S.String), + LicenseAssetGroupConfigurations: LicenseAssetGroupConfigurationList, + AssociatedLicenseAssetRulesetARNs: LicenseAssetRulesetArnList, + Properties: S.optional(LicenseAssetGroupPropertyList), + Tags: S.optional(TagList), + ClientToken: S.String, + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateLicenseAssetGroupRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateLicenseAssetGroupRequest", +}) as any as S.Schema; export interface CreateLicenseAssetGroupResponse { LicenseAssetGroupArn: string; Status: string; } -export const CreateLicenseAssetGroupResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ LicenseAssetGroupArn: S.String, Status: S.String }).pipe(ns), - ).annotate({ - identifier: "CreateLicenseAssetGroupResponse", - }) as any as S.Schema; +export const CreateLicenseAssetGroupResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ LicenseAssetGroupArn: S.String, Status: S.String }).pipe(ns), +).annotate({ + identifier: "CreateLicenseAssetGroupResponse", +}) as any as S.Schema; export type StringList = string[]; export const StringList = /*@__PURE__*/ S.Array(S.String); export interface MatchingRuleStatement { @@ -776,16 +775,15 @@ export interface LicenseConfigurationRuleStatement { OrRuleStatement?: OrRuleStatement; MatchingRuleStatement?: MatchingRuleStatement; } -export const LicenseConfigurationRuleStatement = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AndRuleStatement: S.optional(AndRuleStatement), - OrRuleStatement: S.optional(OrRuleStatement), - MatchingRuleStatement: S.optional(MatchingRuleStatement), - }), - ).annotate({ - identifier: "LicenseConfigurationRuleStatement", - }) as any as S.Schema; +export const LicenseConfigurationRuleStatement = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AndRuleStatement: S.optional(AndRuleStatement), + OrRuleStatement: S.optional(OrRuleStatement), + MatchingRuleStatement: S.optional(MatchingRuleStatement), + }), +).annotate({ + identifier: "LicenseConfigurationRuleStatement", +}) as any as S.Schema; export interface LicenseRuleStatement { AndRuleStatement?: AndRuleStatement; OrRuleStatement?: OrRuleStatement; @@ -847,37 +845,35 @@ export interface CreateLicenseAssetRulesetRequest { Tags?: Tag[]; ClientToken: string; } -export const CreateLicenseAssetRulesetRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Name: S.String, - Description: S.optional(S.String), - Rules: LicenseAssetRuleList, - Tags: S.optional(TagList), - ClientToken: S.String, - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateLicenseAssetRulesetRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.String, + Description: S.optional(S.String), + Rules: LicenseAssetRuleList, + Tags: S.optional(TagList), + ClientToken: S.String, + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateLicenseAssetRulesetRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateLicenseAssetRulesetRequest", +}) as any as S.Schema; export interface CreateLicenseAssetRulesetResponse { LicenseAssetRulesetArn: string; } -export const CreateLicenseAssetRulesetResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ LicenseAssetRulesetArn: S.String }).pipe(ns), - ).annotate({ - identifier: "CreateLicenseAssetRulesetResponse", - }) as any as S.Schema; +export const CreateLicenseAssetRulesetResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ LicenseAssetRulesetArn: S.String }).pipe(ns), +).annotate({ + identifier: "CreateLicenseAssetRulesetResponse", +}) as any as S.Schema; export type LicenseCountingType = | "vCPU" | "Instance" @@ -929,42 +925,40 @@ export interface CreateLicenseConfigurationRequest { ProductInformationList?: ProductInformation[]; LicenseExpiry?: number; } -export const CreateLicenseConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Name: S.String, - Description: S.optional(S.String), - LicenseCountingType: LicenseCountingType, - LicenseCount: S.optional(S.Number), - LicenseCountHardLimit: S.optional(S.Boolean), - LicenseRules: S.optional(StringList), - Tags: S.optional(TagList), - DisassociateWhenNotFound: S.optional(S.Boolean), - ProductInformationList: S.optional(ProductInformationList), - LicenseExpiry: S.optional(S.Number), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateLicenseConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.String, + Description: S.optional(S.String), + LicenseCountingType: LicenseCountingType, + LicenseCount: S.optional(S.Number), + LicenseCountHardLimit: S.optional(S.Boolean), + LicenseRules: S.optional(StringList), + Tags: S.optional(TagList), + DisassociateWhenNotFound: S.optional(S.Boolean), + ProductInformationList: S.optional(ProductInformationList), + LicenseExpiry: S.optional(S.Number), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateLicenseConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateLicenseConfigurationRequest", +}) as any as S.Schema; export interface CreateLicenseConfigurationResponse { LicenseConfigurationArn?: string; } -export const CreateLicenseConfigurationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ LicenseConfigurationArn: S.optional(S.String) }).pipe(ns), - ).annotate({ - identifier: "CreateLicenseConfigurationResponse", - }) as any as S.Schema; +export const CreateLicenseConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ LicenseConfigurationArn: S.optional(S.String) }).pipe(ns), +).annotate({ + identifier: "CreateLicenseConfigurationResponse", +}) as any as S.Schema; export type ProductCodeType = "marketplace" | (string & {}); export const ProductCodeType = /*@__PURE__*/ S.String; export interface ProductCodeListItem { @@ -1127,50 +1121,48 @@ export interface CreateLicenseVersionRequest { ClientToken: string; SourceVersion?: string; } -export const CreateLicenseVersionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - LicenseArn: S.String, - LicenseName: S.String, - ProductName: S.String, - Issuer: Issuer, - HomeRegion: S.String, - Validity: DatetimeRange, - LicenseMetadata: S.optional(MetadataList), - Entitlements: EntitlementList, - ConsumptionConfiguration: ConsumptionConfiguration, - Status: LicenseStatus, - ClientToken: S.String, - SourceVersion: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateLicenseVersionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + LicenseArn: S.String, + LicenseName: S.String, + ProductName: S.String, + Issuer: Issuer, + HomeRegion: S.String, + Validity: DatetimeRange, + LicenseMetadata: S.optional(MetadataList), + Entitlements: EntitlementList, + ConsumptionConfiguration: ConsumptionConfiguration, + Status: LicenseStatus, + ClientToken: S.String, + SourceVersion: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateLicenseVersionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateLicenseVersionRequest", +}) as any as S.Schema; export interface CreateLicenseVersionResponse { LicenseArn?: string; Version?: string; Status?: LicenseStatus; } -export const CreateLicenseVersionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - LicenseArn: S.optional(S.String), - Version: S.optional(S.String), - Status: S.optional(LicenseStatus), - }).pipe(ns), - ).annotate({ - identifier: "CreateLicenseVersionResponse", - }) as any as S.Schema; +export const CreateLicenseVersionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + LicenseArn: S.optional(S.String), + Version: S.optional(S.String), + Status: S.optional(LicenseStatus), + }).pipe(ns), +).annotate({ + identifier: "CreateLicenseVersionResponse", +}) as any as S.Schema; export type MaxSize3StringList = string[]; export const MaxSize3StringList = /*@__PURE__*/ S.Array(S.String); export interface CreateTokenRequest { @@ -1206,13 +1198,13 @@ export const TokenType = /*@__PURE__*/ S.String; export interface CreateTokenResponse { TokenId?: string; TokenType?: TokenType; - Token?: string; + Token?: string | redacted.Redacted; } export const CreateTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ TokenId: S.optional(S.String), TokenType: S.optional(TokenType), - Token: S.optional(S.String), + Token: S.optional(SensitiveString), }).pipe(ns), ).annotate({ identifier: "CreateTokenResponse", @@ -1294,22 +1286,21 @@ export const DeleteLicenseResponse = /*@__PURE__*/ S.suspend(() => export interface DeleteLicenseAssetGroupRequest { LicenseAssetGroupArn: string; } -export const DeleteLicenseAssetGroupRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ LicenseAssetGroupArn: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteLicenseAssetGroupRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ LicenseAssetGroupArn: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteLicenseAssetGroupRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteLicenseAssetGroupRequest", +}) as any as S.Schema; export type LicenseAssetGroupStatus = | "ACTIVE" | "DISABLED" @@ -1319,60 +1310,59 @@ export const LicenseAssetGroupStatus = /*@__PURE__*/ S.String; export interface DeleteLicenseAssetGroupResponse { Status: LicenseAssetGroupStatus; } -export const DeleteLicenseAssetGroupResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Status: LicenseAssetGroupStatus }).pipe(ns), - ).annotate({ - identifier: "DeleteLicenseAssetGroupResponse", - }) as any as S.Schema; +export const DeleteLicenseAssetGroupResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Status: LicenseAssetGroupStatus }).pipe(ns), +).annotate({ + identifier: "DeleteLicenseAssetGroupResponse", +}) as any as S.Schema; export interface DeleteLicenseAssetRulesetRequest { LicenseAssetRulesetArn: string; } -export const DeleteLicenseAssetRulesetRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ LicenseAssetRulesetArn: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), - ), - ).annotate({ - identifier: "DeleteLicenseAssetRulesetRequest", - }) as any as S.Schema; +export const DeleteLicenseAssetRulesetRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ LicenseAssetRulesetArn: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "DeleteLicenseAssetRulesetRequest", +}) as any as S.Schema; export interface DeleteLicenseAssetRulesetResponse {} -export const DeleteLicenseAssetRulesetResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteLicenseAssetRulesetResponse", - }) as any as S.Schema; +export const DeleteLicenseAssetRulesetResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteLicenseAssetRulesetResponse", +}) as any as S.Schema; export interface DeleteLicenseConfigurationRequest { LicenseConfigurationArn: string; } -export const DeleteLicenseConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ LicenseConfigurationArn: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteLicenseConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ LicenseConfigurationArn: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteLicenseConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteLicenseConfigurationRequest", +}) as any as S.Schema; export interface DeleteLicenseConfigurationResponse {} -export const DeleteLicenseConfigurationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteLicenseConfigurationResponse", - }) as any as S.Schema; +export const DeleteLicenseConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteLicenseConfigurationResponse", +}) as any as S.Schema; export interface DeleteLicenseManagerReportGeneratorRequest { LicenseManagerReportGeneratorArn: string; } @@ -1425,45 +1415,43 @@ export interface ExtendLicenseConsumptionRequest { LicenseConsumptionToken: string; DryRun?: boolean; } -export const ExtendLicenseConsumptionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - LicenseConsumptionToken: S.String, - DryRun: S.optional(S.Boolean), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ExtendLicenseConsumptionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + LicenseConsumptionToken: S.String, + DryRun: S.optional(S.Boolean), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ExtendLicenseConsumptionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ExtendLicenseConsumptionRequest", +}) as any as S.Schema; export interface ExtendLicenseConsumptionResponse { LicenseConsumptionToken?: string; Expiration?: string; } -export const ExtendLicenseConsumptionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - LicenseConsumptionToken: S.optional(S.String), - Expiration: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "ExtendLicenseConsumptionResponse", - }) as any as S.Schema; +export const ExtendLicenseConsumptionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + LicenseConsumptionToken: S.optional(S.String), + Expiration: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "ExtendLicenseConsumptionResponse", +}) as any as S.Schema; export interface GetAccessTokenRequest { - Token: string; + Token: string | redacted.Redacted; TokenProperties?: string[]; } export const GetAccessTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ - Token: S.String, + Token: SensitiveString, TokenProperties: S.optional(MaxSize3StringList), }).pipe( T.all( @@ -1480,10 +1468,10 @@ export const GetAccessTokenRequest = /*@__PURE__*/ S.suspend(() => identifier: "GetAccessTokenRequest", }) as any as S.Schema; export interface GetAccessTokenResponse { - AccessToken?: string; + AccessToken?: string | redacted.Redacted; } export const GetAccessTokenResponse = /*@__PURE__*/ S.suspend(() => - S.Struct({ AccessToken: S.optional(S.String) }).pipe(ns), + S.Struct({ AccessToken: S.optional(SensitiveString) }).pipe(ns), ).annotate({ identifier: "GetAccessTokenResponse", }) as any as S.Schema; @@ -1618,22 +1606,21 @@ export const GetLicenseResponse = /*@__PURE__*/ S.suspend(() => export interface GetLicenseAssetGroupRequest { LicenseAssetGroupArn: string; } -export const GetLicenseAssetGroupRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ LicenseAssetGroupArn: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetLicenseAssetGroupRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ LicenseAssetGroupArn: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetLicenseAssetGroupRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetLicenseAssetGroupRequest", +}) as any as S.Schema; export interface LicenseAssetGroup { Name: string; Description?: string; @@ -1671,31 +1658,29 @@ export const LicenseAssetGroup = /*@__PURE__*/ S.suspend(() => export interface GetLicenseAssetGroupResponse { LicenseAssetGroup: LicenseAssetGroup; } -export const GetLicenseAssetGroupResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ LicenseAssetGroup: LicenseAssetGroup }).pipe(ns), - ).annotate({ - identifier: "GetLicenseAssetGroupResponse", - }) as any as S.Schema; +export const GetLicenseAssetGroupResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ LicenseAssetGroup: LicenseAssetGroup }).pipe(ns), +).annotate({ + identifier: "GetLicenseAssetGroupResponse", +}) as any as S.Schema; export interface GetLicenseAssetRulesetRequest { LicenseAssetRulesetArn: string; } -export const GetLicenseAssetRulesetRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ LicenseAssetRulesetArn: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetLicenseAssetRulesetRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ LicenseAssetRulesetArn: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetLicenseAssetRulesetRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetLicenseAssetRulesetRequest", +}) as any as S.Schema; export interface LicenseAssetRuleset { Name: string; Description?: string; @@ -1715,31 +1700,29 @@ export const LicenseAssetRuleset = /*@__PURE__*/ S.suspend(() => export interface GetLicenseAssetRulesetResponse { LicenseAssetRuleset: LicenseAssetRuleset; } -export const GetLicenseAssetRulesetResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ LicenseAssetRuleset: LicenseAssetRuleset }).pipe(ns), - ).annotate({ - identifier: "GetLicenseAssetRulesetResponse", - }) as any as S.Schema; +export const GetLicenseAssetRulesetResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ LicenseAssetRuleset: LicenseAssetRuleset }).pipe(ns), +).annotate({ + identifier: "GetLicenseAssetRulesetResponse", +}) as any as S.Schema; export interface GetLicenseConfigurationRequest { LicenseConfigurationArn: string; } -export const GetLicenseConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ LicenseConfigurationArn: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetLicenseConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ LicenseConfigurationArn: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetLicenseConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetLicenseConfigurationRequest", +}) as any as S.Schema; export type ResourceType = | "EC2_INSTANCE" | "EC2_HOST" @@ -1783,14 +1766,13 @@ export const ManagedResourceSummaryList = /*@__PURE__*/ S.Array( export interface AutomatedDiscoveryInformation { LastRunTime?: Date; } -export const AutomatedDiscoveryInformation = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - LastRunTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - }), - ).annotate({ - identifier: "AutomatedDiscoveryInformation", - }) as any as S.Schema; +export const AutomatedDiscoveryInformation = /*@__PURE__*/ S.suspend(() => + S.Struct({ + LastRunTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + }), +).annotate({ + identifier: "AutomatedDiscoveryInformation", +}) as any as S.Schema; export interface GetLicenseConfigurationResponse { LicenseConfigurationId?: string; LicenseConfigurationArn?: string; @@ -1811,50 +1793,48 @@ export interface GetLicenseConfigurationResponse { DisassociateWhenNotFound?: boolean; LicenseExpiry?: number; } -export const GetLicenseConfigurationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - LicenseConfigurationId: S.optional(S.String), - LicenseConfigurationArn: S.optional(S.String), - Name: S.optional(S.String), - Description: S.optional(S.String), - LicenseCountingType: S.optional(LicenseCountingType), - LicenseRules: S.optional(StringList), - LicenseCount: S.optional(S.Number), - LicenseCountHardLimit: S.optional(S.Boolean), - ConsumedLicenses: S.optional(S.Number), - Status: S.optional(S.String), - OwnerAccountId: S.optional(S.String), - ConsumedLicenseSummaryList: S.optional(ConsumedLicenseSummaryList), - ManagedResourceSummaryList: S.optional(ManagedResourceSummaryList), - Tags: S.optional(TagList), - ProductInformationList: S.optional(ProductInformationList), - AutomatedDiscoveryInformation: S.optional(AutomatedDiscoveryInformation), - DisassociateWhenNotFound: S.optional(S.Boolean), - LicenseExpiry: S.optional(S.Number), - }).pipe(ns), - ).annotate({ - identifier: "GetLicenseConfigurationResponse", - }) as any as S.Schema; +export const GetLicenseConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + LicenseConfigurationId: S.optional(S.String), + LicenseConfigurationArn: S.optional(S.String), + Name: S.optional(S.String), + Description: S.optional(S.String), + LicenseCountingType: S.optional(LicenseCountingType), + LicenseRules: S.optional(StringList), + LicenseCount: S.optional(S.Number), + LicenseCountHardLimit: S.optional(S.Boolean), + ConsumedLicenses: S.optional(S.Number), + Status: S.optional(S.String), + OwnerAccountId: S.optional(S.String), + ConsumedLicenseSummaryList: S.optional(ConsumedLicenseSummaryList), + ManagedResourceSummaryList: S.optional(ManagedResourceSummaryList), + Tags: S.optional(TagList), + ProductInformationList: S.optional(ProductInformationList), + AutomatedDiscoveryInformation: S.optional(AutomatedDiscoveryInformation), + DisassociateWhenNotFound: S.optional(S.Boolean), + LicenseExpiry: S.optional(S.Number), + }).pipe(ns), +).annotate({ + identifier: "GetLicenseConfigurationResponse", +}) as any as S.Schema; export interface GetLicenseConversionTaskRequest { LicenseConversionTaskId: string; } -export const GetLicenseConversionTaskRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ LicenseConversionTaskId: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetLicenseConversionTaskRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ LicenseConversionTaskId: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetLicenseConversionTaskRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetLicenseConversionTaskRequest", +}) as any as S.Schema; export type LicenseConversionTaskStatus = | "IN_PROGRESS" | "SUCCEEDED" @@ -1872,29 +1852,28 @@ export interface GetLicenseConversionTaskResponse { LicenseConversionTime?: Date; EndTime?: Date; } -export const GetLicenseConversionTaskResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - LicenseConversionTaskId: S.optional(S.String), - ResourceArn: S.optional(S.String), - SourceLicenseContext: S.optional(LicenseConversionContext), - DestinationLicenseContext: S.optional(LicenseConversionContext), - StatusMessage: S.optional(S.String), - Status: S.optional(LicenseConversionTaskStatus), - StartTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - LicenseConversionTime: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - EndTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - }).pipe(ns), - ).annotate({ - identifier: "GetLicenseConversionTaskResponse", - }) as any as S.Schema; +export const GetLicenseConversionTaskResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + LicenseConversionTaskId: S.optional(S.String), + ResourceArn: S.optional(S.String), + SourceLicenseContext: S.optional(LicenseConversionContext), + DestinationLicenseContext: S.optional(LicenseConversionContext), + StatusMessage: S.optional(S.String), + Status: S.optional(LicenseConversionTaskStatus), + StartTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + LicenseConversionTime: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + EndTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + }).pipe(ns), +).annotate({ + identifier: "GetLicenseConversionTaskResponse", +}) as any as S.Schema; export interface GetLicenseManagerReportGeneratorRequest { LicenseManagerReportGeneratorArn: string; } -export const GetLicenseManagerReportGeneratorRequest = - /*@__PURE__*/ S.suspend(() => +export const GetLicenseManagerReportGeneratorRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ LicenseManagerReportGeneratorArn: S.String }).pipe( T.all( ns, @@ -1906,9 +1885,9 @@ export const GetLicenseManagerReportGeneratorRequest = rules, ), ), - ).annotate({ - identifier: "GetLicenseManagerReportGeneratorRequest", - }) as any as S.Schema; +).annotate({ + identifier: "GetLicenseManagerReportGeneratorRequest", +}) as any as S.Schema; export interface S3Location { bucket?: string; keyPrefix?: string; @@ -1953,12 +1932,11 @@ export const ReportGenerator = /*@__PURE__*/ S.suspend(() => export interface GetLicenseManagerReportGeneratorResponse { ReportGenerator?: ReportGenerator; } -export const GetLicenseManagerReportGeneratorResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ReportGenerator: S.optional(ReportGenerator) }).pipe(ns), - ).annotate({ - identifier: "GetLicenseManagerReportGeneratorResponse", - }) as any as S.Schema; +export const GetLicenseManagerReportGeneratorResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ ReportGenerator: S.optional(ReportGenerator) }).pipe(ns), +).annotate({ + identifier: "GetLicenseManagerReportGeneratorResponse", +}) as any as S.Schema; export interface GetLicenseUsageRequest { LicenseArn: string; } @@ -2036,12 +2014,11 @@ export const OrganizationConfiguration = /*@__PURE__*/ S.suspend(() => export interface CrossAccountDiscoveryServiceStatus { Message?: string; } -export const CrossAccountDiscoveryServiceStatus = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Message: S.optional(S.String) }), - ).annotate({ - identifier: "CrossAccountDiscoveryServiceStatus", - }) as any as S.Schema; +export const CrossAccountDiscoveryServiceStatus = /*@__PURE__*/ S.suspend(() => + S.Struct({ Message: S.optional(S.String) }), +).annotate({ + identifier: "CrossAccountDiscoveryServiceStatus", +}) as any as S.Schema; export interface RegionStatus { Status?: string; } @@ -2101,8 +2078,8 @@ export interface ListAssetsForLicenseAssetGroupRequest { MaxResults?: number; NextToken?: string; } -export const ListAssetsForLicenseAssetGroupRequest = - /*@__PURE__*/ S.suspend(() => +export const ListAssetsForLicenseAssetGroupRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ LicenseAssetGroupArn: S.String, AssetType: S.String, @@ -2119,9 +2096,9 @@ export const ListAssetsForLicenseAssetGroupRequest = rules, ), ), - ).annotate({ - identifier: "ListAssetsForLicenseAssetGroupRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListAssetsForLicenseAssetGroupRequest", +}) as any as S.Schema; export interface Asset { AssetArn?: string; LatestAssetDiscoveryTime?: Date; @@ -2140,15 +2117,15 @@ export interface ListAssetsForLicenseAssetGroupResponse { Assets?: Asset[]; NextToken?: string; } -export const ListAssetsForLicenseAssetGroupResponse = - /*@__PURE__*/ S.suspend(() => +export const ListAssetsForLicenseAssetGroupResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ Assets: S.optional(AssetList), NextToken: S.optional(S.String), }).pipe(ns), - ).annotate({ - identifier: "ListAssetsForLicenseAssetGroupResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListAssetsForLicenseAssetGroupResponse", +}) as any as S.Schema; export interface ListAssociationsForLicenseConfigurationRequest { LicenseConfigurationArn: string; MaxResults?: number; @@ -2181,24 +2158,24 @@ export interface LicenseConfigurationAssociation { AssociationTime?: Date; AmiAssociationScope?: string; } -export const LicenseConfigurationAssociation = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResourceArn: S.optional(S.String), - ResourceType: S.optional(ResourceType), - ResourceOwnerId: S.optional(S.String), - AssociationTime: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - AmiAssociationScope: S.optional(S.String), - }), - ).annotate({ - identifier: "LicenseConfigurationAssociation", - }) as any as S.Schema; +export const LicenseConfigurationAssociation = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResourceArn: S.optional(S.String), + ResourceType: S.optional(ResourceType), + ResourceOwnerId: S.optional(S.String), + AssociationTime: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + AmiAssociationScope: S.optional(S.String), + }), +).annotate({ + identifier: "LicenseConfigurationAssociation", +}) as any as S.Schema; export type LicenseConfigurationAssociations = LicenseConfigurationAssociation[]; -export const LicenseConfigurationAssociations = - /*@__PURE__*/ S.Array(LicenseConfigurationAssociation); +export const LicenseConfigurationAssociations = /*@__PURE__*/ S.Array( + LicenseConfigurationAssociation, +); export interface ListAssociationsForLicenseConfigurationResponse { LicenseConfigurationAssociations?: LicenseConfigurationAssociation[]; NextToken?: string; @@ -2233,42 +2210,40 @@ export interface ListDistributedGrantsRequest { NextToken?: string; MaxResults?: number; } -export const ListDistributedGrantsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - GrantArns: S.optional(ArnList), - Filters: S.optional(FilterList), - NextToken: S.optional(S.String), - MaxResults: S.optional(S.Number), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListDistributedGrantsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + GrantArns: S.optional(ArnList), + Filters: S.optional(FilterList), + NextToken: S.optional(S.String), + MaxResults: S.optional(S.Number), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListDistributedGrantsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListDistributedGrantsRequest", +}) as any as S.Schema; export type GrantList = Grant[]; export const GrantList = /*@__PURE__*/ S.Array(Grant); export interface ListDistributedGrantsResponse { Grants?: Grant[]; NextToken?: string; } -export const ListDistributedGrantsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Grants: S.optional(GrantList), - NextToken: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "ListDistributedGrantsResponse", - }) as any as S.Schema; +export const ListDistributedGrantsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Grants: S.optional(GrantList), + NextToken: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "ListDistributedGrantsResponse", +}) as any as S.Schema; export interface ListFailuresForLicenseConfigurationOperationsRequest { LicenseConfigurationArn: string; MaxResults?: number; @@ -2344,68 +2319,65 @@ export interface ListLicenseAssetGroupsRequest { MaxResults?: number; NextToken?: string; } -export const ListLicenseAssetGroupsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Filters: S.optional(Filters), - MaxResults: S.optional(S.Number), - NextToken: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListLicenseAssetGroupsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Filters: S.optional(Filters), + MaxResults: S.optional(S.Number), + NextToken: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListLicenseAssetGroupsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListLicenseAssetGroupsRequest", +}) as any as S.Schema; export type LicenseAssetGroupList = LicenseAssetGroup[]; export const LicenseAssetGroupList = /*@__PURE__*/ S.Array(LicenseAssetGroup); export interface ListLicenseAssetGroupsResponse { LicenseAssetGroups?: LicenseAssetGroup[]; NextToken?: string; } -export const ListLicenseAssetGroupsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - LicenseAssetGroups: S.optional(LicenseAssetGroupList), - NextToken: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "ListLicenseAssetGroupsResponse", - }) as any as S.Schema; +export const ListLicenseAssetGroupsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + LicenseAssetGroups: S.optional(LicenseAssetGroupList), + NextToken: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "ListLicenseAssetGroupsResponse", +}) as any as S.Schema; export interface ListLicenseAssetRulesetsRequest { Filters?: Filter[]; ShowAWSManagedLicenseAssetRulesets?: boolean; MaxResults?: number; NextToken?: string; } -export const ListLicenseAssetRulesetsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Filters: S.optional(Filters), - ShowAWSManagedLicenseAssetRulesets: S.optional(S.Boolean), - MaxResults: S.optional(S.Number), - NextToken: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListLicenseAssetRulesetsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Filters: S.optional(Filters), + ShowAWSManagedLicenseAssetRulesets: S.optional(S.Boolean), + MaxResults: S.optional(S.Number), + NextToken: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListLicenseAssetRulesetsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListLicenseAssetRulesetsRequest", +}) as any as S.Schema; export type LicenseAssetRulesetList = LicenseAssetRuleset[]; export const LicenseAssetRulesetList = /*@__PURE__*/ S.Array(LicenseAssetRuleset); @@ -2413,42 +2385,40 @@ export interface ListLicenseAssetRulesetsResponse { LicenseAssetRulesets?: LicenseAssetRuleset[]; NextToken?: string; } -export const ListLicenseAssetRulesetsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - LicenseAssetRulesets: S.optional(LicenseAssetRulesetList), - NextToken: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "ListLicenseAssetRulesetsResponse", - }) as any as S.Schema; +export const ListLicenseAssetRulesetsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + LicenseAssetRulesets: S.optional(LicenseAssetRulesetList), + NextToken: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "ListLicenseAssetRulesetsResponse", +}) as any as S.Schema; export interface ListLicenseConfigurationsRequest { LicenseConfigurationArns?: string[]; MaxResults?: number; NextToken?: string; Filters?: Filter[]; } -export const ListLicenseConfigurationsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - LicenseConfigurationArns: S.optional(StringList), - MaxResults: S.optional(S.Number), - NextToken: S.optional(S.String), - Filters: S.optional(Filters), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListLicenseConfigurationsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + LicenseConfigurationArns: S.optional(StringList), + MaxResults: S.optional(S.Number), + NextToken: S.optional(S.String), + Filters: S.optional(Filters), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListLicenseConfigurationsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListLicenseConfigurationsRequest", +}) as any as S.Schema; export interface LicenseConfiguration { LicenseConfigurationId?: string; LicenseConfigurationArn?: string; @@ -2498,15 +2468,14 @@ export interface ListLicenseConfigurationsResponse { LicenseConfigurations?: LicenseConfiguration[]; NextToken?: string; } -export const ListLicenseConfigurationsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - LicenseConfigurations: S.optional(LicenseConfigurations), - NextToken: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "ListLicenseConfigurationsResponse", - }) as any as S.Schema; +export const ListLicenseConfigurationsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + LicenseConfigurations: S.optional(LicenseConfigurations), + NextToken: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "ListLicenseConfigurationsResponse", +}) as any as S.Schema; export interface ListLicenseConfigurationsForOrganizationRequest { LicenseConfigurationArns?: string[]; MaxResults?: number; @@ -2552,26 +2521,25 @@ export interface ListLicenseConversionTasksRequest { MaxResults?: number; Filters?: Filter[]; } -export const ListLicenseConversionTasksRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - NextToken: S.optional(S.String), - MaxResults: S.optional(S.Number), - Filters: S.optional(Filters), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListLicenseConversionTasksRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + NextToken: S.optional(S.String), + MaxResults: S.optional(S.Number), + Filters: S.optional(Filters), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListLicenseConversionTasksRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListLicenseConversionTasksRequest", +}) as any as S.Schema; export interface LicenseConversionTask { LicenseConversionTaskId?: string; ResourceArn?: string; @@ -2608,15 +2576,14 @@ export interface ListLicenseConversionTasksResponse { LicenseConversionTasks?: LicenseConversionTask[]; NextToken?: string; } -export const ListLicenseConversionTasksResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - LicenseConversionTasks: S.optional(LicenseConversionTasks), - NextToken: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "ListLicenseConversionTasksResponse", - }) as any as S.Schema; +export const ListLicenseConversionTasksResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + LicenseConversionTasks: S.optional(LicenseConversionTasks), + NextToken: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "ListLicenseConversionTasksResponse", +}) as any as S.Schema; export interface ListLicenseManagerReportGeneratorsRequest { Filters?: Filter[]; NextToken?: string; @@ -2778,15 +2745,14 @@ export interface ListLicenseVersionsResponse { Licenses?: License[]; NextToken?: string; } -export const ListLicenseVersionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Licenses: S.optional(LicenseList), - NextToken: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "ListLicenseVersionsResponse", - }) as any as S.Schema; +export const ListLicenseVersionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Licenses: S.optional(LicenseList), + NextToken: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "ListLicenseVersionsResponse", +}) as any as S.Schema; export interface ListReceivedGrantsRequest { GrantArns?: string[]; Filters?: Filter[]; @@ -2831,8 +2797,8 @@ export interface ListReceivedGrantsForOrganizationRequest { NextToken?: string; MaxResults?: number; } -export const ListReceivedGrantsForOrganizationRequest = - /*@__PURE__*/ S.suspend(() => +export const ListReceivedGrantsForOrganizationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ LicenseArn: S.String, Filters: S.optional(FilterList), @@ -2849,9 +2815,9 @@ export const ListReceivedGrantsForOrganizationRequest = rules, ), ), - ).annotate({ - identifier: "ListReceivedGrantsForOrganizationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListReceivedGrantsForOrganizationRequest", +}) as any as S.Schema; export interface ListReceivedGrantsForOrganizationResponse { Grants?: Grant[]; NextToken?: string; @@ -2859,39 +2825,38 @@ export interface ListReceivedGrantsForOrganizationResponse { export const ListReceivedGrantsForOrganizationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ - Grants: S.optional(GrantList), - NextToken: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "ListReceivedGrantsForOrganizationResponse", - }) as any as S.Schema; -export interface ListReceivedLicensesRequest { - LicenseArns?: string[]; - Filters?: Filter[]; - NextToken?: string; - MaxResults?: number; -} -export const ListReceivedLicensesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - LicenseArns: S.optional(ArnList), - Filters: S.optional(FilterList), - NextToken: S.optional(S.String), - MaxResults: S.optional(S.Number), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), - ), + Grants: S.optional(GrantList), + NextToken: S.optional(S.String), + }).pipe(ns), ).annotate({ - identifier: "ListReceivedLicensesRequest", - }) as any as S.Schema; + identifier: "ListReceivedGrantsForOrganizationResponse", + }) as any as S.Schema; +export interface ListReceivedLicensesRequest { + LicenseArns?: string[]; + Filters?: Filter[]; + NextToken?: string; + MaxResults?: number; +} +export const ListReceivedLicensesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + LicenseArns: S.optional(ArnList), + Filters: S.optional(FilterList), + NextToken: S.optional(S.String), + MaxResults: S.optional(S.Number), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "ListReceivedLicensesRequest", +}) as any as S.Schema; export type ReceivedStatus = | "PENDING_WORKFLOW" | "PENDING_ACCEPT" @@ -2959,15 +2924,14 @@ export interface ListReceivedLicensesResponse { Licenses?: GrantedLicense[]; NextToken?: string; } -export const ListReceivedLicensesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Licenses: S.optional(GrantedLicenseList), - NextToken: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "ListReceivedLicensesResponse", - }) as any as S.Schema; +export const ListReceivedLicensesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Licenses: S.optional(GrantedLicenseList), + NextToken: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "ListReceivedLicensesResponse", +}) as any as S.Schema; export interface ListReceivedLicensesForOrganizationRequest { Filters?: Filter[]; NextToken?: string; @@ -3034,26 +2998,25 @@ export interface ListResourceInventoryRequest { NextToken?: string; Filters?: InventoryFilter[]; } -export const ListResourceInventoryRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - MaxResults: S.optional(S.Number), - NextToken: S.optional(S.String), - Filters: S.optional(InventoryFilterList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListResourceInventoryRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + MaxResults: S.optional(S.Number), + NextToken: S.optional(S.String), + Filters: S.optional(InventoryFilterList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListResourceInventoryRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListResourceInventoryRequest", +}) as any as S.Schema; export interface ResourceInventory { ResourceId?: string; ResourceType?: ResourceType; @@ -3092,15 +3055,14 @@ export interface ListResourceInventoryResponse { ResourceInventoryList?: ResourceInventory[]; NextToken?: string; } -export const ListResourceInventoryResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResourceInventoryList: S.optional(ResourceInventoryList), - NextToken: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "ListResourceInventoryResponse", - }) as any as S.Schema; +export const ListResourceInventoryResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResourceInventoryList: S.optional(ResourceInventoryList), + NextToken: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "ListResourceInventoryResponse", +}) as any as S.Schema; export interface ListTagsForResourceRequest { ResourceArn: string; } @@ -3122,12 +3084,11 @@ export const ListTagsForResourceRequest = /*@__PURE__*/ S.suspend(() => export interface ListTagsForResourceResponse { Tags?: Tag[]; } -export const ListTagsForResourceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Tags: S.optional(TagList) }).pipe(ns), - ).annotate({ - identifier: "ListTagsForResourceResponse", - }) as any as S.Schema; +export const ListTagsForResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Tags: S.optional(TagList) }).pipe(ns), +).annotate({ + identifier: "ListTagsForResourceResponse", +}) as any as S.Schema; export interface ListTokensRequest { TokenIds?: string[]; Filters?: Filter[]; @@ -3194,8 +3155,8 @@ export interface ListUsageForLicenseConfigurationRequest { NextToken?: string; Filters?: Filter[]; } -export const ListUsageForLicenseConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const ListUsageForLicenseConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ LicenseConfigurationArn: S.String, MaxResults: S.optional(S.Number), @@ -3212,9 +3173,9 @@ export const ListUsageForLicenseConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "ListUsageForLicenseConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListUsageForLicenseConfigurationRequest", +}) as any as S.Schema; export interface LicenseConfigurationUsage { ResourceArn?: string; ResourceType?: ResourceType; @@ -3238,21 +3199,22 @@ export const LicenseConfigurationUsage = /*@__PURE__*/ S.suspend(() => identifier: "LicenseConfigurationUsage", }) as any as S.Schema; export type LicenseConfigurationUsageList = LicenseConfigurationUsage[]; -export const LicenseConfigurationUsageList = - /*@__PURE__*/ S.Array(LicenseConfigurationUsage); +export const LicenseConfigurationUsageList = /*@__PURE__*/ S.Array( + LicenseConfigurationUsage, +); export interface ListUsageForLicenseConfigurationResponse { LicenseConfigurationUsageList?: LicenseConfigurationUsage[]; NextToken?: string; } -export const ListUsageForLicenseConfigurationResponse = - /*@__PURE__*/ S.suspend(() => +export const ListUsageForLicenseConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ LicenseConfigurationUsageList: S.optional(LicenseConfigurationUsageList), NextToken: S.optional(S.String), }).pipe(ns), - ).annotate({ - identifier: "ListUsageForLicenseConfigurationResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListUsageForLicenseConfigurationResponse", +}) as any as S.Schema; export interface RejectGrantRequest { GrantArn: string; } @@ -3347,43 +3309,41 @@ export interface UpdateLicenseAssetGroupRequest { Status?: LicenseAssetGroupStatus; ClientToken: string; } -export const UpdateLicenseAssetGroupRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Name: S.optional(S.String), - Description: S.optional(S.String), - LicenseAssetGroupConfigurations: S.optional( - LicenseAssetGroupConfigurationList, - ), - AssociatedLicenseAssetRulesetARNs: LicenseAssetRulesetArnList, - Properties: S.optional(LicenseAssetGroupPropertyList), - LicenseAssetGroupArn: S.String, - Status: S.optional(LicenseAssetGroupStatus), - ClientToken: S.String, - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateLicenseAssetGroupRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.optional(S.String), + Description: S.optional(S.String), + LicenseAssetGroupConfigurations: S.optional( + LicenseAssetGroupConfigurationList, ), - ).annotate({ - identifier: "UpdateLicenseAssetGroupRequest", - }) as any as S.Schema; + AssociatedLicenseAssetRulesetARNs: LicenseAssetRulesetArnList, + Properties: S.optional(LicenseAssetGroupPropertyList), + LicenseAssetGroupArn: S.String, + Status: S.optional(LicenseAssetGroupStatus), + ClientToken: S.String, + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "UpdateLicenseAssetGroupRequest", +}) as any as S.Schema; export interface UpdateLicenseAssetGroupResponse { LicenseAssetGroupArn: string; Status: string; } -export const UpdateLicenseAssetGroupResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ LicenseAssetGroupArn: S.String, Status: S.String }).pipe(ns), - ).annotate({ - identifier: "UpdateLicenseAssetGroupResponse", - }) as any as S.Schema; +export const UpdateLicenseAssetGroupResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ LicenseAssetGroupArn: S.String, Status: S.String }).pipe(ns), +).annotate({ + identifier: "UpdateLicenseAssetGroupResponse", +}) as any as S.Schema; export interface UpdateLicenseAssetRulesetRequest { Name?: string; Description?: string; @@ -3391,37 +3351,35 @@ export interface UpdateLicenseAssetRulesetRequest { LicenseAssetRulesetArn: string; ClientToken: string; } -export const UpdateLicenseAssetRulesetRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Name: S.optional(S.String), - Description: S.optional(S.String), - Rules: LicenseAssetRuleList, - LicenseAssetRulesetArn: S.String, - ClientToken: S.String, - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateLicenseAssetRulesetRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.optional(S.String), + Description: S.optional(S.String), + Rules: LicenseAssetRuleList, + LicenseAssetRulesetArn: S.String, + ClientToken: S.String, + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateLicenseAssetRulesetRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateLicenseAssetRulesetRequest", +}) as any as S.Schema; export interface UpdateLicenseAssetRulesetResponse { LicenseAssetRulesetArn: string; } -export const UpdateLicenseAssetRulesetResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ LicenseAssetRulesetArn: S.String }).pipe(ns), - ).annotate({ - identifier: "UpdateLicenseAssetRulesetResponse", - }) as any as S.Schema; +export const UpdateLicenseAssetRulesetResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ LicenseAssetRulesetArn: S.String }).pipe(ns), +).annotate({ + identifier: "UpdateLicenseAssetRulesetResponse", +}) as any as S.Schema; export type LicenseConfigurationStatus = | "AVAILABLE" | "DISABLED" @@ -3439,38 +3397,38 @@ export interface UpdateLicenseConfigurationRequest { DisassociateWhenNotFound?: boolean; LicenseExpiry?: number; } -export const UpdateLicenseConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - LicenseConfigurationArn: S.String, - LicenseConfigurationStatus: S.optional(LicenseConfigurationStatus), - LicenseRules: S.optional(StringList), - LicenseCount: S.optional(S.Number), - LicenseCountHardLimit: S.optional(S.Boolean), - Name: S.optional(S.String), - Description: S.optional(S.String), - ProductInformationList: S.optional(ProductInformationList), - DisassociateWhenNotFound: S.optional(S.Boolean), - LicenseExpiry: S.optional(S.Number), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateLicenseConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + LicenseConfigurationArn: S.String, + LicenseConfigurationStatus: S.optional(LicenseConfigurationStatus), + LicenseRules: S.optional(StringList), + LicenseCount: S.optional(S.Number), + LicenseCountHardLimit: S.optional(S.Boolean), + Name: S.optional(S.String), + Description: S.optional(S.String), + ProductInformationList: S.optional(ProductInformationList), + DisassociateWhenNotFound: S.optional(S.Boolean), + LicenseExpiry: S.optional(S.Number), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateLicenseConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateLicenseConfigurationRequest", +}) as any as S.Schema; export interface UpdateLicenseConfigurationResponse {} -export const UpdateLicenseConfigurationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "UpdateLicenseConfigurationResponse", - }) as any as S.Schema; +export const UpdateLicenseConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "UpdateLicenseConfigurationResponse", +}) as any as S.Schema; export interface UpdateLicenseManagerReportGeneratorRequest { LicenseManagerReportGeneratorArn: string; ReportGeneratorName: string; @@ -3546,89 +3504,119 @@ export interface UpdateServiceSettingsRequest { EnableCrossAccountsDiscovery?: boolean; EnabledDiscoverySourceRegions?: string[]; } -export const UpdateServiceSettingsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - S3BucketArn: S.optional(S.String), - SnsTopicArn: S.optional(S.String), - OrganizationConfiguration: S.optional(OrganizationConfiguration), - EnableCrossAccountsDiscovery: S.optional(S.Boolean), - EnabledDiscoverySourceRegions: S.optional(StringList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateServiceSettingsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + S3BucketArn: S.optional(S.String), + SnsTopicArn: S.optional(S.String), + OrganizationConfiguration: S.optional(OrganizationConfiguration), + EnableCrossAccountsDiscovery: S.optional(S.Boolean), + EnabledDiscoverySourceRegions: S.optional(StringList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateServiceSettingsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateServiceSettingsRequest", +}) as any as S.Schema; export interface UpdateServiceSettingsResponse {} -export const UpdateServiceSettingsResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "UpdateServiceSettingsResponse", - }) as any as S.Schema; +export const UpdateServiceSettingsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "UpdateServiceSettingsResponse", +}) as any as S.Schema; //# Errors export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "ServiceAccessDenied", httpResponseCode: 401 }), + T.all( + T.AwsQueryError({ code: "ServiceAccessDenied", httpResponseCode: 401 }), + T.HttpError(401), + ), ).pipe(C.withAuthError) {} export class AuthorizationException extends S.TaggedErrorClass()( "AuthorizationException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "AuthorizationFailure", httpResponseCode: 403 }), + T.all( + T.AwsQueryError({ code: "AuthorizationFailure", httpResponseCode: 403 }), + T.HttpError(403), + ), ).pipe(C.withAuthError) {} export class InvalidParameterValueException extends S.TaggedErrorClass()( "InvalidParameterValueException", { Message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidParameterValueProvided", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidParameterValueProvided", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class RateLimitExceededException extends S.TaggedErrorClass()( "RateLimitExceededException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "RateLimitExceeded", httpResponseCode: 429 }), + T.all( + T.AwsQueryError({ code: "RateLimitExceeded", httpResponseCode: 429 }), + T.HttpError(429), + ), ).pipe(C.withThrottlingError) {} export class ResourceLimitExceededException extends S.TaggedErrorClass()( "ResourceLimitExceededException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "ResourceLimitExceeded", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "ResourceLimitExceeded", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ServerInternalException extends S.TaggedErrorClass()( "ServerInternalException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "InternalError", httpResponseCode: 500 }), + T.all( + T.AwsQueryError({ code: "InternalError", httpResponseCode: 500 }), + T.HttpError(500), + ), ).pipe(C.withServerError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "ConflictException", httpResponseCode: 409 }), + T.all( + T.AwsQueryError({ code: "ConflictException", httpResponseCode: 409 }), + T.HttpError(409), + ), ).pipe(C.withConflictError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidResource.NotFound", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "InvalidResource.NotFound", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class EntitlementNotAllowedException extends S.TaggedErrorClass()( "EntitlementNotAllowedException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class NoEntitlementsAllowedException extends S.TaggedErrorClass()( "NoEntitlementsAllowedException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class RedirectException extends S.TaggedErrorClass()( "RedirectException", @@ -3636,30 +3624,52 @@ export class RedirectException extends S.TaggedErrorClass()( Location: S.optional(S.String).pipe(T.HttpHeader("Location")), Message: S.optional(S.String), }, + T.HttpError(308), ) {} export class UnsupportedDigitalSignatureMethodException extends S.TaggedErrorClass()( "UnsupportedDigitalSignatureMethodException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} +export class LicenseConfigurationNotFound extends S.TaggedErrorClass()( + "LicenseConfigurationNotFound", + { Message: S.optional(S.String) }, + T.SyntheticError({ + from: "InvalidParameterValueException", + message: { includes: "Invalid license configuration ARN" }, + }), +).pipe(C.withNotFoundError) {} export class FilterLimitExceededException extends S.TaggedErrorClass()( "FilterLimitExceededException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "FilterLimitExceeded", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "FilterLimitExceeded", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class FailedDependencyException extends S.TaggedErrorClass()( "FailedDependencyException", { Message: S.optional(S.String), ErrorCode: S.optional(S.String) }, - T.AwsQueryError({ code: "FailedDependency", httpResponseCode: 424 }), + T.all( + T.AwsQueryError({ code: "FailedDependency", httpResponseCode: 424 }), + T.HttpError(424), + ), ) {} export class InvalidResourceStateException extends S.TaggedErrorClass()( "InvalidResourceStateException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidResourceState", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidResourceState", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class LicenseUsageException extends S.TaggedErrorClass()( "LicenseUsageException", { Message: S.optional(S.String) }, - T.AwsQueryError({ code: "LicenseUsageFailure", httpResponseCode: 412 }), + T.all( + T.AwsQueryError({ code: "LicenseUsageFailure", httpResponseCode: 412 }), + T.HttpError(412), + ), ) {} //# Operations @@ -4255,6 +4265,7 @@ export type DeleteLicenseConfigurationError = | InvalidParameterValueException | RateLimitExceededException | ServerInternalException + | LicenseConfigurationNotFound | CommonErrors; /** * Deletes the specified license configuration. @@ -4275,6 +4286,7 @@ export const deleteLicenseConfiguration: API.OperationMethod< InvalidParameterValueException, RateLimitExceededException, ServerInternalException, + LicenseConfigurationNotFound, ], operationName: "DeleteLicenseConfiguration", })); @@ -4382,6 +4394,7 @@ export type GetAccessTokenError = | RateLimitExceededException | ServerInternalException | ValidationException + | InvalidParameterValueException | CommonErrors; /** * Gets a temporary access token to use with AssumeRoleWithWebIdentity. Access tokens @@ -4401,6 +4414,7 @@ export const getAccessToken: API.OperationMethod< RateLimitExceededException, ServerInternalException, ValidationException, + InvalidParameterValueException, ], operationName: "GetAccessToken", })); @@ -4412,6 +4426,7 @@ export type GetGrantError = | ResourceLimitExceededException | ServerInternalException | ValidationException + | ResourceNotFoundException | CommonErrors; /** * Gets detailed information about the specified grant. @@ -4432,6 +4447,7 @@ export const getGrant: API.OperationMethod< ResourceLimitExceededException, ServerInternalException, ValidationException, + ResourceNotFoundException, ], operationName: "GetGrant", })); @@ -4442,6 +4458,7 @@ export type GetLicenseError = | RateLimitExceededException | ServerInternalException | ValidationException + | ResourceNotFoundException | CommonErrors; /** * Gets detailed information about the specified license. @@ -4461,6 +4478,7 @@ export const getLicense: API.OperationMethod< RateLimitExceededException, ServerInternalException, ValidationException, + ResourceNotFoundException, ], operationName: "GetLicense", })); @@ -4528,6 +4546,7 @@ export type GetLicenseConfigurationError = | InvalidParameterValueException | RateLimitExceededException | ServerInternalException + | LicenseConfigurationNotFound | CommonErrors; /** * Gets detailed information about the specified license configuration. @@ -4546,6 +4565,7 @@ export const getLicenseConfiguration: API.OperationMethod< InvalidParameterValueException, RateLimitExceededException, ServerInternalException, + LicenseConfigurationNotFound, ], operationName: "GetLicenseConfiguration", })); @@ -5451,6 +5471,7 @@ export type UpdateLicenseConfigurationError = | RateLimitExceededException | ResourceLimitExceededException | ServerInternalException + | LicenseConfigurationNotFound | CommonErrors; /** * Modifies the attributes of an existing license configuration. @@ -5471,6 +5492,7 @@ export const updateLicenseConfiguration: API.OperationMethod< RateLimitExceededException, ResourceLimitExceededException, ServerInternalException, + LicenseConfigurationNotFound, ], operationName: "UpdateLicenseConfiguration", })); diff --git a/packages/aws/src/services/location.ts b/packages/aws/src/services/location.ts index 6ed45050f3..f6b3d3954d 100644 --- a/packages/aws/src/services/location.ts +++ b/packages/aws/src/services/location.ts @@ -156,7 +156,7 @@ export type ApiKeyActionList = string[]; export const ApiKeyActionList = /*@__PURE__*/ S.Array(S.String); export type GeoArnList = string[]; export const GeoArnList = /*@__PURE__*/ S.Array(S.String); -export type RefererPatternList = string | redacted.Redacted[]; +export type RefererPatternList = (string | redacted.Redacted)[]; export const RefererPatternList = /*@__PURE__*/ S.Array(SensitiveString); export interface AndroidApp { Package: string; @@ -178,7 +178,7 @@ export const AppleAppList = /*@__PURE__*/ S.Array(AppleApp); export interface ApiKeyRestrictions { AllowActions: string[]; AllowResources: string[]; - AllowReferers?: string | redacted.Redacted[]; + AllowReferers?: (string | redacted.Redacted)[]; AllowAndroidApps?: AndroidApp[]; AllowAppleApps?: AppleApp[]; } @@ -460,12 +460,11 @@ export const ListTagsForResourceRequest = /*@__PURE__*/ S.suspend(() => export interface ListTagsForResourceResponse { Tags?: { [key: string]: string | undefined }; } -export const ListTagsForResourceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Tags: S.optional(TagMap) }), - ).annotate({ - identifier: "ListTagsForResourceResponse", - }) as any as S.Schema; +export const ListTagsForResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Tags: S.optional(TagMap) }), +).annotate({ + identifier: "ListTagsForResourceResponse", +}) as any as S.Schema; export interface TagResourceRequest { ResourceArn: string; Tags: { [key: string]: string | undefined }; @@ -530,70 +529,67 @@ export interface CreateGeofenceCollectionRequest { Tags?: { [key: string]: string | undefined }; KmsKeyId?: string; } -export const CreateGeofenceCollectionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CollectionName: S.String, - PricingPlan: S.optional(S.String), - PricingPlanDataSource: S.optional(S.String), - Description: S.optional(S.String), - Tags: S.optional(TagMap), - KmsKeyId: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/geofencing/v0/collections" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateGeofenceCollectionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CollectionName: S.String, + PricingPlan: S.optional(S.String), + PricingPlanDataSource: S.optional(S.String), + Description: S.optional(S.String), + Tags: S.optional(TagMap), + KmsKeyId: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/geofencing/v0/collections" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateGeofenceCollectionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateGeofenceCollectionRequest", +}) as any as S.Schema; export interface CreateGeofenceCollectionResponse { CollectionName: string; CollectionArn: string; CreateTime: Date; } -export const CreateGeofenceCollectionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CollectionName: S.String, - CollectionArn: S.String, - CreateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), - }), - ).annotate({ - identifier: "CreateGeofenceCollectionResponse", - }) as any as S.Schema; +export const CreateGeofenceCollectionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CollectionName: S.String, + CollectionArn: S.String, + CreateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), + }), +).annotate({ + identifier: "CreateGeofenceCollectionResponse", +}) as any as S.Schema; export interface DescribeGeofenceCollectionRequest { CollectionName: string; } -export const DescribeGeofenceCollectionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CollectionName: S.String.pipe(T.HttpLabel("CollectionName")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/geofencing/v0/collections/{CollectionName}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeGeofenceCollectionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CollectionName: S.String.pipe(T.HttpLabel("CollectionName")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/geofencing/v0/collections/{CollectionName}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeGeofenceCollectionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeGeofenceCollectionRequest", +}) as any as S.Schema; export interface DescribeGeofenceCollectionResponse { CollectionName: string; CollectionArn: string; - Description: string; + Description?: string; PricingPlan?: string; PricingPlanDataSource?: string; KmsKeyId?: string; @@ -602,155 +598,151 @@ export interface DescribeGeofenceCollectionResponse { UpdateTime: Date; GeofenceCount?: number; } -export const DescribeGeofenceCollectionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CollectionName: S.String, - CollectionArn: S.String, - Description: S.String, - PricingPlan: S.optional(S.String), - PricingPlanDataSource: S.optional(S.String), - KmsKeyId: S.optional(S.String), - Tags: S.optional(TagMap), - CreateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), - UpdateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), - GeofenceCount: S.optional(S.Number), - }), - ).annotate({ - identifier: "DescribeGeofenceCollectionResponse", - }) as any as S.Schema; +export const DescribeGeofenceCollectionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CollectionName: S.String, + CollectionArn: S.String, + Description: S.optional(S.String), + PricingPlan: S.optional(S.String), + PricingPlanDataSource: S.optional(S.String), + KmsKeyId: S.optional(S.String), + Tags: S.optional(TagMap), + CreateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), + UpdateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), + GeofenceCount: S.optional(S.Number), + }), +).annotate({ + identifier: "DescribeGeofenceCollectionResponse", +}) as any as S.Schema; export interface UpdateGeofenceCollectionRequest { CollectionName: string; PricingPlan?: string; PricingPlanDataSource?: string; Description?: string; } -export const UpdateGeofenceCollectionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CollectionName: S.String.pipe(T.HttpLabel("CollectionName")), - PricingPlan: S.optional(S.String), - PricingPlanDataSource: S.optional(S.String), - Description: S.optional(S.String), - }).pipe( - T.all( - T.Http({ - method: "PATCH", - uri: "/geofencing/v0/collections/{CollectionName}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateGeofenceCollectionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CollectionName: S.String.pipe(T.HttpLabel("CollectionName")), + PricingPlan: S.optional(S.String), + PricingPlanDataSource: S.optional(S.String), + Description: S.optional(S.String), + }).pipe( + T.all( + T.Http({ + method: "PATCH", + uri: "/geofencing/v0/collections/{CollectionName}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateGeofenceCollectionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateGeofenceCollectionRequest", +}) as any as S.Schema; export interface UpdateGeofenceCollectionResponse { CollectionName: string; CollectionArn: string; UpdateTime: Date; } -export const UpdateGeofenceCollectionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CollectionName: S.String, - CollectionArn: S.String, - UpdateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), - }), - ).annotate({ - identifier: "UpdateGeofenceCollectionResponse", - }) as any as S.Schema; +export const UpdateGeofenceCollectionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CollectionName: S.String, + CollectionArn: S.String, + UpdateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), + }), +).annotate({ + identifier: "UpdateGeofenceCollectionResponse", +}) as any as S.Schema; export interface DeleteGeofenceCollectionRequest { CollectionName: string; } -export const DeleteGeofenceCollectionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CollectionName: S.String.pipe(T.HttpLabel("CollectionName")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/geofencing/v0/collections/{CollectionName}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteGeofenceCollectionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CollectionName: S.String.pipe(T.HttpLabel("CollectionName")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/geofencing/v0/collections/{CollectionName}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteGeofenceCollectionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteGeofenceCollectionRequest", +}) as any as S.Schema; export interface DeleteGeofenceCollectionResponse {} -export const DeleteGeofenceCollectionResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteGeofenceCollectionResponse", - }) as any as S.Schema; +export const DeleteGeofenceCollectionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteGeofenceCollectionResponse", +}) as any as S.Schema; export interface ListGeofenceCollectionsRequest { MaxResults?: number; NextToken?: string; } -export const ListGeofenceCollectionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - MaxResults: S.optional(S.Number), - NextToken: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/geofencing/v0/list-collections" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListGeofenceCollectionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + MaxResults: S.optional(S.Number), + NextToken: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/geofencing/v0/list-collections" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListGeofenceCollectionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListGeofenceCollectionsRequest", +}) as any as S.Schema; export interface ListGeofenceCollectionsResponseEntry { CollectionName: string; - Description: string; + Description?: string; PricingPlan?: string; PricingPlanDataSource?: string; CreateTime: Date; UpdateTime: Date; } -export const ListGeofenceCollectionsResponseEntry = - /*@__PURE__*/ S.suspend(() => +export const ListGeofenceCollectionsResponseEntry = /*@__PURE__*/ S.suspend( + () => S.Struct({ CollectionName: S.String, - Description: S.String, + Description: S.optional(S.String), PricingPlan: S.optional(S.String), PricingPlanDataSource: S.optional(S.String), CreateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), UpdateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), }), - ).annotate({ - identifier: "ListGeofenceCollectionsResponseEntry", - }) as any as S.Schema; +).annotate({ + identifier: "ListGeofenceCollectionsResponseEntry", +}) as any as S.Schema; export type ListGeofenceCollectionsResponseEntryList = ListGeofenceCollectionsResponseEntry[]; -export const ListGeofenceCollectionsResponseEntryList = - /*@__PURE__*/ S.Array(ListGeofenceCollectionsResponseEntry); +export const ListGeofenceCollectionsResponseEntryList = /*@__PURE__*/ S.Array( + ListGeofenceCollectionsResponseEntry, +); export interface ListGeofenceCollectionsResponse { Entries: ListGeofenceCollectionsResponseEntry[]; NextToken?: string; } -export const ListGeofenceCollectionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Entries: ListGeofenceCollectionsResponseEntryList, - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListGeofenceCollectionsResponse", - }) as any as S.Schema; +export const ListGeofenceCollectionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Entries: ListGeofenceCollectionsResponseEntryList, + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListGeofenceCollectionsResponse", +}) as any as S.Schema; export type IdList = string[]; export const IdList = /*@__PURE__*/ S.Array(S.String); export interface BatchDeleteGeofenceRequest { @@ -800,12 +792,11 @@ export const BatchDeleteGeofenceErrorList = /*@__PURE__*/ S.Array( export interface BatchDeleteGeofenceResponse { Errors: BatchDeleteGeofenceError_[]; } -export const BatchDeleteGeofenceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Errors: BatchDeleteGeofenceErrorList }), - ).annotate({ - identifier: "BatchDeleteGeofenceResponse", - }) as any as S.Schema; +export const BatchDeleteGeofenceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Errors: BatchDeleteGeofenceErrorList }), +).annotate({ + identifier: "BatchDeleteGeofenceResponse", +}) as any as S.Schema; export type Position = number[]; export const Position = /*@__PURE__*/ S.Array(S.Number); export interface PositionalAccuracy { @@ -846,54 +837,52 @@ export interface BatchEvaluateGeofencesRequest { CollectionName: string; DevicePositionUpdates: DevicePositionUpdate[]; } -export const BatchEvaluateGeofencesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CollectionName: S.String.pipe(T.HttpLabel("CollectionName")), - DevicePositionUpdates: DevicePositionUpdateList, - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/geofencing/v0/collections/{CollectionName}/positions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const BatchEvaluateGeofencesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CollectionName: S.String.pipe(T.HttpLabel("CollectionName")), + DevicePositionUpdates: DevicePositionUpdateList, + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/geofencing/v0/collections/{CollectionName}/positions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "BatchEvaluateGeofencesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "BatchEvaluateGeofencesRequest", +}) as any as S.Schema; export interface BatchEvaluateGeofencesError_ { DeviceId: string; SampleTime: Date; Error: BatchItemError; } -export const BatchEvaluateGeofencesError_ = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DeviceId: S.String, - SampleTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), - Error: BatchItemError, - }), - ).annotate({ - identifier: "BatchEvaluateGeofencesError", - }) as any as S.Schema; +export const BatchEvaluateGeofencesError_ = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DeviceId: S.String, + SampleTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), + Error: BatchItemError, + }), +).annotate({ + identifier: "BatchEvaluateGeofencesError", +}) as any as S.Schema; export type BatchEvaluateGeofencesErrorList = BatchEvaluateGeofencesError_[]; -export const BatchEvaluateGeofencesErrorList = - /*@__PURE__*/ S.Array(BatchEvaluateGeofencesError_); +export const BatchEvaluateGeofencesErrorList = /*@__PURE__*/ S.Array( + BatchEvaluateGeofencesError_, +); export interface BatchEvaluateGeofencesResponse { - Errors: BatchEvaluateGeofencesError_[]; -} -export const BatchEvaluateGeofencesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Errors: BatchEvaluateGeofencesErrorList }), - ).annotate({ - identifier: "BatchEvaluateGeofencesResponse", - }) as any as S.Schema; + Errors?: BatchEvaluateGeofencesError_[]; +} +export const BatchEvaluateGeofencesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Errors: S.optional(BatchEvaluateGeofencesErrorList) }), +).annotate({ + identifier: "BatchEvaluateGeofencesResponse", +}) as any as S.Schema; export type LinearRing = number[][]; export const LinearRing = /*@__PURE__*/ S.Array(Position); export type LinearRings = number[][][]; @@ -933,19 +922,19 @@ export interface BatchPutGeofenceRequestEntry { Geometry: GeofenceGeometry; GeofenceProperties?: { [key: string]: string | undefined }; } -export const BatchPutGeofenceRequestEntry = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - GeofenceId: S.String, - Geometry: GeofenceGeometry, - GeofenceProperties: S.optional(PropertyMap), - }), - ).annotate({ - identifier: "BatchPutGeofenceRequestEntry", - }) as any as S.Schema; +export const BatchPutGeofenceRequestEntry = /*@__PURE__*/ S.suspend(() => + S.Struct({ + GeofenceId: S.String, + Geometry: GeofenceGeometry, + GeofenceProperties: S.optional(PropertyMap), + }), +).annotate({ + identifier: "BatchPutGeofenceRequestEntry", +}) as any as S.Schema; export type BatchPutGeofenceRequestEntryList = BatchPutGeofenceRequestEntry[]; -export const BatchPutGeofenceRequestEntryList = - /*@__PURE__*/ S.Array(BatchPutGeofenceRequestEntry); +export const BatchPutGeofenceRequestEntryList = /*@__PURE__*/ S.Array( + BatchPutGeofenceRequestEntry, +); export interface BatchPutGeofenceRequest { CollectionName: string; Entries: BatchPutGeofenceRequestEntry[]; @@ -1017,12 +1006,11 @@ export interface ForecastGeofenceEventsDeviceState { Position: number[]; Speed?: number; } -export const ForecastGeofenceEventsDeviceState = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Position: Position, Speed: S.optional(S.Number) }), - ).annotate({ - identifier: "ForecastGeofenceEventsDeviceState", - }) as any as S.Schema; +export const ForecastGeofenceEventsDeviceState = /*@__PURE__*/ S.suspend(() => + S.Struct({ Position: Position, Speed: S.optional(S.Number) }), +).annotate({ + identifier: "ForecastGeofenceEventsDeviceState", +}) as any as S.Schema; export interface ForecastGeofenceEventsRequest { CollectionName: string; DeviceState: ForecastGeofenceEventsDeviceState; @@ -1032,32 +1020,31 @@ export interface ForecastGeofenceEventsRequest { NextToken?: string; MaxResults?: number; } -export const ForecastGeofenceEventsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CollectionName: S.String.pipe(T.HttpLabel("CollectionName")), - DeviceState: ForecastGeofenceEventsDeviceState, - TimeHorizonMinutes: S.optional(S.Number), - DistanceUnit: S.optional(S.String), - SpeedUnit: S.optional(S.String), - NextToken: S.optional(S.String), - MaxResults: S.optional(S.Number), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/geofencing/v0/collections/{CollectionName}/forecast-geofence-events", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ForecastGeofenceEventsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CollectionName: S.String.pipe(T.HttpLabel("CollectionName")), + DeviceState: ForecastGeofenceEventsDeviceState, + TimeHorizonMinutes: S.optional(S.Number), + DistanceUnit: S.optional(S.String), + SpeedUnit: S.optional(S.String), + NextToken: S.optional(S.String), + MaxResults: S.optional(S.Number), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/geofencing/v0/collections/{CollectionName}/forecast-geofence-events", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ForecastGeofenceEventsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ForecastGeofenceEventsRequest", +}) as any as S.Schema; export interface ForecastedEvent { EventId: string; GeofenceId: string; @@ -1090,17 +1077,16 @@ export interface ForecastGeofenceEventsResponse { DistanceUnit: string; SpeedUnit: string; } -export const ForecastGeofenceEventsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ForecastedEvents: ForecastedEventsList, - NextToken: S.optional(S.String), - DistanceUnit: S.String, - SpeedUnit: S.String, - }), - ).annotate({ - identifier: "ForecastGeofenceEventsResponse", - }) as any as S.Schema; +export const ForecastGeofenceEventsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ForecastedEvents: ForecastedEventsList, + NextToken: S.optional(S.String), + DistanceUnit: S.String, + SpeedUnit: S.String, + }), +).annotate({ + identifier: "ForecastGeofenceEventsResponse", +}) as any as S.Schema; export interface GetGeofenceRequest { CollectionName: string; GeofenceId: string; @@ -1192,8 +1178,9 @@ export const ListGeofenceResponseEntry = /*@__PURE__*/ S.suspend(() => identifier: "ListGeofenceResponseEntry", }) as any as S.Schema; export type ListGeofenceResponseEntryList = ListGeofenceResponseEntry[]; -export const ListGeofenceResponseEntryList = - /*@__PURE__*/ S.Array(ListGeofenceResponseEntry); +export const ListGeofenceResponseEntryList = /*@__PURE__*/ S.Array( + ListGeofenceResponseEntry, +); export interface ListGeofencesResponse { Entries: ListGeofenceResponseEntry[]; NextToken?: string; @@ -1249,19 +1236,19 @@ export const PutGeofenceResponse = /*@__PURE__*/ S.suspend(() => identifier: "PutGeofenceResponse", }) as any as S.Schema; export type ValidateAddressAdditionalFeatureList = string[]; -export const ValidateAddressAdditionalFeatureList = - /*@__PURE__*/ S.Array(S.String); +export const ValidateAddressAdditionalFeatureList = /*@__PURE__*/ S.Array( + S.String, +); export interface ValidateAddressActionOptions { AdditionalFeatures?: string[]; } -export const ValidateAddressActionOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AdditionalFeatures: S.optional(ValidateAddressAdditionalFeatureList), - }), - ).annotate({ - identifier: "ValidateAddressActionOptions", - }) as any as S.Schema; +export const ValidateAddressActionOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AdditionalFeatures: S.optional(ValidateAddressAdditionalFeatureList), + }), +).annotate({ + identifier: "ValidateAddressActionOptions", +}) as any as S.Schema; export interface JobActionOptions { ValidateAddress?: ValidateAddressActionOptions; } @@ -1581,7 +1568,7 @@ export interface DescribeMapResponse { PricingPlan?: string; DataSource: string; Configuration: MapConfiguration; - Description: string; + Description?: string; Tags?: { [key: string]: string | undefined }; CreateTime: Date; UpdateTime: Date; @@ -1593,7 +1580,7 @@ export const DescribeMapResponse = /*@__PURE__*/ S.suspend(() => PricingPlan: S.optional(S.String), DataSource: S.String, Configuration: MapConfiguration, - Description: S.String, + Description: S.optional(S.String), Tags: S.optional(TagMap), CreateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), UpdateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), @@ -1698,7 +1685,7 @@ export const ListMapsRequest = /*@__PURE__*/ S.suspend(() => }) as any as S.Schema; export interface ListMapsResponseEntry { MapName: string; - Description: string; + Description?: string; DataSource: string; PricingPlan?: string; CreateTime: Date; @@ -1707,7 +1694,7 @@ export interface ListMapsResponseEntry { export const ListMapsResponseEntry = /*@__PURE__*/ S.suspend(() => S.Struct({ MapName: S.String, - Description: S.String, + Description: S.optional(S.String), DataSource: S.String, PricingPlan: S.optional(S.String), CreateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), @@ -1818,42 +1805,40 @@ export interface GetMapStyleDescriptorRequest { MapName: string; Key?: string | redacted.Redacted; } -export const GetMapStyleDescriptorRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - MapName: S.String.pipe(T.HttpLabel("MapName")), - Key: S.optional(SensitiveString).pipe(T.HttpQuery("key")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/maps/v0/maps/{MapName}/style-descriptor", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetMapStyleDescriptorRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + MapName: S.String.pipe(T.HttpLabel("MapName")), + Key: S.optional(SensitiveString).pipe(T.HttpQuery("key")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/maps/v0/maps/{MapName}/style-descriptor", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetMapStyleDescriptorRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetMapStyleDescriptorRequest", +}) as any as S.Schema; export interface GetMapStyleDescriptorResponse { Blob?: Uint8Array; ContentType?: string; CacheControl?: string; } -export const GetMapStyleDescriptorResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Blob: S.optional(T.Blob).pipe(T.HttpPayload()), - ContentType: S.optional(S.String).pipe(T.HttpHeader("Content-Type")), - CacheControl: S.optional(S.String).pipe(T.HttpHeader("Cache-Control")), - }), - ).annotate({ - identifier: "GetMapStyleDescriptorResponse", - }) as any as S.Schema; +export const GetMapStyleDescriptorResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Blob: S.optional(T.Blob).pipe(T.HttpPayload()), + ContentType: S.optional(S.String).pipe(T.HttpHeader("Content-Type")), + CacheControl: S.optional(S.String).pipe(T.HttpHeader("Cache-Control")), + }), +).annotate({ + identifier: "GetMapStyleDescriptorResponse", +}) as any as S.Schema; export interface GetMapTileRequest { MapName: string; Z: string | redacted.Redacted; @@ -1970,7 +1955,7 @@ export interface DescribePlaceIndexResponse { IndexName: string; IndexArn: string; PricingPlan?: string; - Description: string; + Description?: string; CreateTime: Date; UpdateTime: Date; DataSource: string; @@ -1982,7 +1967,7 @@ export const DescribePlaceIndexResponse = /*@__PURE__*/ S.suspend(() => IndexName: S.String, IndexArn: S.String, PricingPlan: S.optional(S.String), - Description: S.String, + Description: S.optional(S.String), CreateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), UpdateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), DataSource: S.String, @@ -2077,28 +2062,28 @@ export const ListPlaceIndexesRequest = /*@__PURE__*/ S.suspend(() => }) as any as S.Schema; export interface ListPlaceIndexesResponseEntry { IndexName: string; - Description: string; + Description?: string; DataSource: string; PricingPlan?: string; CreateTime: Date; UpdateTime: Date; } -export const ListPlaceIndexesResponseEntry = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - IndexName: S.String, - Description: S.String, - DataSource: S.String, - PricingPlan: S.optional(S.String), - CreateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), - UpdateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), - }), - ).annotate({ - identifier: "ListPlaceIndexesResponseEntry", - }) as any as S.Schema; +export const ListPlaceIndexesResponseEntry = /*@__PURE__*/ S.suspend(() => + S.Struct({ + IndexName: S.String, + Description: S.optional(S.String), + DataSource: S.String, + PricingPlan: S.optional(S.String), + CreateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), + UpdateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), + }), +).annotate({ + identifier: "ListPlaceIndexesResponseEntry", +}) as any as S.Schema; export type ListPlaceIndexesResponseEntryList = ListPlaceIndexesResponseEntry[]; -export const ListPlaceIndexesResponseEntryList = - /*@__PURE__*/ S.Array(ListPlaceIndexesResponseEntry); +export const ListPlaceIndexesResponseEntryList = /*@__PURE__*/ S.Array( + ListPlaceIndexesResponseEntry, +); export interface ListPlaceIndexesResponse { Entries: ListPlaceIndexesResponseEntry[]; NextToken?: string; @@ -2152,11 +2137,12 @@ export interface TimeZone { export const TimeZone = /*@__PURE__*/ S.suspend(() => S.Struct({ Name: SensitiveString, Offset: S.optional(S.Number) }), ).annotate({ identifier: "TimeZone" }) as any as S.Schema; -export type PlaceCategoryList = string | redacted.Redacted[]; +export type PlaceCategoryList = (string | redacted.Redacted)[]; export const PlaceCategoryList = /*@__PURE__*/ S.Array(SensitiveString); -export type PlaceSupplementalCategoryList = +export type PlaceSupplementalCategoryList = ( | string - | redacted.Redacted[]; + | redacted.Redacted +)[]; export const PlaceSupplementalCategoryList = /*@__PURE__*/ S.Array(SensitiveString); export interface Place { @@ -2174,8 +2160,8 @@ export interface Place { TimeZone?: TimeZone; UnitType?: string | redacted.Redacted; UnitNumber?: string | redacted.Redacted; - Categories?: string | redacted.Redacted[]; - SupplementalCategories?: string | redacted.Redacted[]; + Categories?: (string | redacted.Redacted)[]; + SupplementalCategories?: (string | redacted.Redacted)[]; SubMunicipality?: string | redacted.Redacted; } export const Place = /*@__PURE__*/ S.suspend(() => @@ -2214,47 +2200,45 @@ export interface SearchPlaceIndexForPositionRequest { Language?: string; Key?: string | redacted.Redacted; } -export const SearchPlaceIndexForPositionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - IndexName: S.String.pipe(T.HttpLabel("IndexName")), - Position: Position, - MaxResults: S.optional(S.Number), - Language: S.optional(S.String), - Key: S.optional(SensitiveString).pipe(T.HttpQuery("key")), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/places/v0/indexes/{IndexName}/search/position", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const SearchPlaceIndexForPositionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + IndexName: S.String.pipe(T.HttpLabel("IndexName")), + Position: Position, + MaxResults: S.optional(S.Number), + Language: S.optional(S.String), + Key: S.optional(SensitiveString).pipe(T.HttpQuery("key")), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/places/v0/indexes/{IndexName}/search/position", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "SearchPlaceIndexForPositionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "SearchPlaceIndexForPositionRequest", +}) as any as S.Schema; export interface SearchPlaceIndexForPositionSummary { Position: number[]; MaxResults?: number; DataSource: string; Language?: string; } -export const SearchPlaceIndexForPositionSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Position: Position, - MaxResults: S.optional(S.Number), - DataSource: S.String, - Language: S.optional(S.String), - }), - ).annotate({ - identifier: "SearchPlaceIndexForPositionSummary", - }) as any as S.Schema; +export const SearchPlaceIndexForPositionSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Position: Position, + MaxResults: S.optional(S.Number), + DataSource: S.String, + Language: S.optional(S.String), + }), +).annotate({ + identifier: "SearchPlaceIndexForPositionSummary", +}) as any as S.Schema; export interface SearchForPositionResult { Place: Place; Distance: number; @@ -2277,34 +2261,33 @@ export interface SearchPlaceIndexForPositionResponse { Summary: SearchPlaceIndexForPositionSummary; Results: SearchForPositionResult[]; } -export const SearchPlaceIndexForPositionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Summary: SearchPlaceIndexForPositionSummary, - Results: SearchForPositionResultList, - }), - ).annotate({ - identifier: "SearchPlaceIndexForPositionResponse", - }) as any as S.Schema; +export const SearchPlaceIndexForPositionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Summary: SearchPlaceIndexForPositionSummary, + Results: SearchForPositionResultList, + }), +).annotate({ + identifier: "SearchPlaceIndexForPositionResponse", +}) as any as S.Schema; export type BoundingBox = number[]; export const BoundingBox = /*@__PURE__*/ S.Array(S.Number); -export type CountryCodeList = string | redacted.Redacted[]; +export type CountryCodeList = (string | redacted.Redacted)[]; export const CountryCodeList = /*@__PURE__*/ S.Array(SensitiveString); -export type FilterPlaceCategoryList = string | redacted.Redacted[]; +export type FilterPlaceCategoryList = (string | redacted.Redacted)[]; export const FilterPlaceCategoryList = /*@__PURE__*/ S.Array(SensitiveString); export interface SearchPlaceIndexForSuggestionsRequest { IndexName: string; Text: string | redacted.Redacted; BiasPosition?: number[]; FilterBBox?: number[]; - FilterCountries?: string | redacted.Redacted[]; + FilterCountries?: (string | redacted.Redacted)[]; MaxResults?: number; Language?: string; - FilterCategories?: string | redacted.Redacted[]; + FilterCategories?: (string | redacted.Redacted)[]; Key?: string | redacted.Redacted; } -export const SearchPlaceIndexForSuggestionsRequest = - /*@__PURE__*/ S.suspend(() => +export const SearchPlaceIndexForSuggestionsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ IndexName: S.String.pipe(T.HttpLabel("IndexName")), Text: SensitiveString, @@ -2328,21 +2311,21 @@ export const SearchPlaceIndexForSuggestionsRequest = rules, ), ), - ).annotate({ - identifier: "SearchPlaceIndexForSuggestionsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "SearchPlaceIndexForSuggestionsRequest", +}) as any as S.Schema; export interface SearchPlaceIndexForSuggestionsSummary { Text: string | redacted.Redacted; BiasPosition?: number[]; FilterBBox?: number[]; - FilterCountries?: string | redacted.Redacted[]; + FilterCountries?: (string | redacted.Redacted)[]; MaxResults?: number; DataSource: string; Language?: string; - FilterCategories?: string | redacted.Redacted[]; + FilterCategories?: (string | redacted.Redacted)[]; } -export const SearchPlaceIndexForSuggestionsSummary = - /*@__PURE__*/ S.suspend(() => +export const SearchPlaceIndexForSuggestionsSummary = /*@__PURE__*/ S.suspend( + () => S.Struct({ Text: SensitiveString, BiasPosition: S.optional(Position), @@ -2353,14 +2336,14 @@ export const SearchPlaceIndexForSuggestionsSummary = Language: S.optional(S.String), FilterCategories: S.optional(FilterPlaceCategoryList), }), - ).annotate({ - identifier: "SearchPlaceIndexForSuggestionsSummary", - }) as any as S.Schema; +).annotate({ + identifier: "SearchPlaceIndexForSuggestionsSummary", +}) as any as S.Schema; export interface SearchForSuggestionsResult { Text: string | redacted.Redacted; PlaceId?: string | redacted.Redacted; - Categories?: string | redacted.Redacted[]; - SupplementalCategories?: string | redacted.Redacted[]; + Categories?: (string | redacted.Redacted)[]; + SupplementalCategories?: (string | redacted.Redacted)[]; } export const SearchForSuggestionsResult = /*@__PURE__*/ S.suspend(() => S.Struct({ @@ -2373,87 +2356,86 @@ export const SearchForSuggestionsResult = /*@__PURE__*/ S.suspend(() => identifier: "SearchForSuggestionsResult", }) as any as S.Schema; export type SearchForSuggestionsResultList = SearchForSuggestionsResult[]; -export const SearchForSuggestionsResultList = - /*@__PURE__*/ S.Array(SearchForSuggestionsResult); +export const SearchForSuggestionsResultList = /*@__PURE__*/ S.Array( + SearchForSuggestionsResult, +); export interface SearchPlaceIndexForSuggestionsResponse { Summary: SearchPlaceIndexForSuggestionsSummary; Results: SearchForSuggestionsResult[]; } -export const SearchPlaceIndexForSuggestionsResponse = - /*@__PURE__*/ S.suspend(() => +export const SearchPlaceIndexForSuggestionsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ Summary: SearchPlaceIndexForSuggestionsSummary, Results: SearchForSuggestionsResultList, }), - ).annotate({ - identifier: "SearchPlaceIndexForSuggestionsResponse", - }) as any as S.Schema; +).annotate({ + identifier: "SearchPlaceIndexForSuggestionsResponse", +}) as any as S.Schema; export interface SearchPlaceIndexForTextRequest { IndexName: string; Text: string | redacted.Redacted; BiasPosition?: number[]; FilterBBox?: number[]; - FilterCountries?: string | redacted.Redacted[]; + FilterCountries?: (string | redacted.Redacted)[]; MaxResults?: number; Language?: string; - FilterCategories?: string | redacted.Redacted[]; + FilterCategories?: (string | redacted.Redacted)[]; Key?: string | redacted.Redacted; } -export const SearchPlaceIndexForTextRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - IndexName: S.String.pipe(T.HttpLabel("IndexName")), - Text: SensitiveString, - BiasPosition: S.optional(Position), - FilterBBox: S.optional(BoundingBox), - FilterCountries: S.optional(CountryCodeList), - MaxResults: S.optional(S.Number), - Language: S.optional(S.String), - FilterCategories: S.optional(FilterPlaceCategoryList), - Key: S.optional(SensitiveString).pipe(T.HttpQuery("key")), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/places/v0/indexes/{IndexName}/search/text", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const SearchPlaceIndexForTextRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + IndexName: S.String.pipe(T.HttpLabel("IndexName")), + Text: SensitiveString, + BiasPosition: S.optional(Position), + FilterBBox: S.optional(BoundingBox), + FilterCountries: S.optional(CountryCodeList), + MaxResults: S.optional(S.Number), + Language: S.optional(S.String), + FilterCategories: S.optional(FilterPlaceCategoryList), + Key: S.optional(SensitiveString).pipe(T.HttpQuery("key")), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/places/v0/indexes/{IndexName}/search/text", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "SearchPlaceIndexForTextRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "SearchPlaceIndexForTextRequest", +}) as any as S.Schema; export interface SearchPlaceIndexForTextSummary { Text: string | redacted.Redacted; BiasPosition?: number[]; FilterBBox?: number[]; - FilterCountries?: string | redacted.Redacted[]; + FilterCountries?: (string | redacted.Redacted)[]; MaxResults?: number; ResultBBox?: number[]; DataSource: string; Language?: string; - FilterCategories?: string | redacted.Redacted[]; + FilterCategories?: (string | redacted.Redacted)[]; } -export const SearchPlaceIndexForTextSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Text: SensitiveString, - BiasPosition: S.optional(Position), - FilterBBox: S.optional(BoundingBox), - FilterCountries: S.optional(CountryCodeList), - MaxResults: S.optional(S.Number), - ResultBBox: S.optional(BoundingBox), - DataSource: S.String, - Language: S.optional(S.String), - FilterCategories: S.optional(FilterPlaceCategoryList), - }), - ).annotate({ - identifier: "SearchPlaceIndexForTextSummary", - }) as any as S.Schema; +export const SearchPlaceIndexForTextSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Text: SensitiveString, + BiasPosition: S.optional(Position), + FilterBBox: S.optional(BoundingBox), + FilterCountries: S.optional(CountryCodeList), + MaxResults: S.optional(S.Number), + ResultBBox: S.optional(BoundingBox), + DataSource: S.String, + Language: S.optional(S.String), + FilterCategories: S.optional(FilterPlaceCategoryList), + }), +).annotate({ + identifier: "SearchPlaceIndexForTextSummary", +}) as any as S.Schema; export interface SearchForTextResult { Place: Place; Distance?: number; @@ -2477,251 +2459,238 @@ export interface SearchPlaceIndexForTextResponse { Summary: SearchPlaceIndexForTextSummary; Results: SearchForTextResult[]; } -export const SearchPlaceIndexForTextResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Summary: SearchPlaceIndexForTextSummary, - Results: SearchForTextResultList, - }), - ).annotate({ - identifier: "SearchPlaceIndexForTextResponse", - }) as any as S.Schema; +export const SearchPlaceIndexForTextResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Summary: SearchPlaceIndexForTextSummary, + Results: SearchForTextResultList, + }), +).annotate({ + identifier: "SearchPlaceIndexForTextResponse", +}) as any as S.Schema; export interface CreateRouteCalculatorRequest { CalculatorName: string; - DataSource: string; - PricingPlan?: string; - Description?: string; - Tags?: { [key: string]: string | undefined }; -} -export const CreateRouteCalculatorRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CalculatorName: S.String, - DataSource: S.String, - PricingPlan: S.optional(S.String), - Description: S.optional(S.String), - Tags: S.optional(TagMap), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/routes/v0/calculators" }), - svc, - auth, - proto, - ver, - rules, - ), + DataSource: string; + PricingPlan?: string; + Description?: string; + Tags?: { [key: string]: string | undefined }; +} +export const CreateRouteCalculatorRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CalculatorName: S.String, + DataSource: S.String, + PricingPlan: S.optional(S.String), + Description: S.optional(S.String), + Tags: S.optional(TagMap), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/routes/v0/calculators" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateRouteCalculatorRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateRouteCalculatorRequest", +}) as any as S.Schema; export interface CreateRouteCalculatorResponse { CalculatorName: string; CalculatorArn: string; CreateTime: Date; } -export const CreateRouteCalculatorResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CalculatorName: S.String, - CalculatorArn: S.String, - CreateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), - }), - ).annotate({ - identifier: "CreateRouteCalculatorResponse", - }) as any as S.Schema; +export const CreateRouteCalculatorResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CalculatorName: S.String, + CalculatorArn: S.String, + CreateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), + }), +).annotate({ + identifier: "CreateRouteCalculatorResponse", +}) as any as S.Schema; export interface DescribeRouteCalculatorRequest { CalculatorName: string; } -export const DescribeRouteCalculatorRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CalculatorName: S.String.pipe(T.HttpLabel("CalculatorName")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/routes/v0/calculators/{CalculatorName}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeRouteCalculatorRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CalculatorName: S.String.pipe(T.HttpLabel("CalculatorName")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/routes/v0/calculators/{CalculatorName}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeRouteCalculatorRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeRouteCalculatorRequest", +}) as any as S.Schema; export interface DescribeRouteCalculatorResponse { CalculatorName: string; CalculatorArn: string; PricingPlan?: string; - Description: string; + Description?: string; CreateTime: Date; UpdateTime: Date; DataSource: string; Tags?: { [key: string]: string | undefined }; } -export const DescribeRouteCalculatorResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CalculatorName: S.String, - CalculatorArn: S.String, - PricingPlan: S.optional(S.String), - Description: S.String, - CreateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), - UpdateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), - DataSource: S.String, - Tags: S.optional(TagMap), - }), - ).annotate({ - identifier: "DescribeRouteCalculatorResponse", - }) as any as S.Schema; +export const DescribeRouteCalculatorResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CalculatorName: S.String, + CalculatorArn: S.String, + PricingPlan: S.optional(S.String), + Description: S.optional(S.String), + CreateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), + UpdateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), + DataSource: S.String, + Tags: S.optional(TagMap), + }), +).annotate({ + identifier: "DescribeRouteCalculatorResponse", +}) as any as S.Schema; export interface UpdateRouteCalculatorRequest { CalculatorName: string; PricingPlan?: string; Description?: string; } -export const UpdateRouteCalculatorRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CalculatorName: S.String.pipe(T.HttpLabel("CalculatorName")), - PricingPlan: S.optional(S.String), - Description: S.optional(S.String), - }).pipe( - T.all( - T.Http({ - method: "PATCH", - uri: "/routes/v0/calculators/{CalculatorName}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateRouteCalculatorRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CalculatorName: S.String.pipe(T.HttpLabel("CalculatorName")), + PricingPlan: S.optional(S.String), + Description: S.optional(S.String), + }).pipe( + T.all( + T.Http({ + method: "PATCH", + uri: "/routes/v0/calculators/{CalculatorName}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateRouteCalculatorRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateRouteCalculatorRequest", +}) as any as S.Schema; export interface UpdateRouteCalculatorResponse { CalculatorName: string; CalculatorArn: string; UpdateTime: Date; } -export const UpdateRouteCalculatorResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CalculatorName: S.String, - CalculatorArn: S.String, - UpdateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), - }), - ).annotate({ - identifier: "UpdateRouteCalculatorResponse", - }) as any as S.Schema; +export const UpdateRouteCalculatorResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CalculatorName: S.String, + CalculatorArn: S.String, + UpdateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), + }), +).annotate({ + identifier: "UpdateRouteCalculatorResponse", +}) as any as S.Schema; export interface DeleteRouteCalculatorRequest { CalculatorName: string; } -export const DeleteRouteCalculatorRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CalculatorName: S.String.pipe(T.HttpLabel("CalculatorName")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/routes/v0/calculators/{CalculatorName}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteRouteCalculatorRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CalculatorName: S.String.pipe(T.HttpLabel("CalculatorName")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/routes/v0/calculators/{CalculatorName}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteRouteCalculatorRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteRouteCalculatorRequest", +}) as any as S.Schema; export interface DeleteRouteCalculatorResponse {} -export const DeleteRouteCalculatorResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteRouteCalculatorResponse", - }) as any as S.Schema; +export const DeleteRouteCalculatorResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteRouteCalculatorResponse", +}) as any as S.Schema; export interface ListRouteCalculatorsRequest { MaxResults?: number; NextToken?: string; } -export const ListRouteCalculatorsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - MaxResults: S.optional(S.Number), - NextToken: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/routes/v0/list-calculators" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListRouteCalculatorsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + MaxResults: S.optional(S.Number), + NextToken: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/routes/v0/list-calculators" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListRouteCalculatorsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListRouteCalculatorsRequest", +}) as any as S.Schema; export interface ListRouteCalculatorsResponseEntry { CalculatorName: string; - Description: string; + Description?: string; DataSource: string; PricingPlan?: string; CreateTime: Date; UpdateTime: Date; } -export const ListRouteCalculatorsResponseEntry = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CalculatorName: S.String, - Description: S.String, - DataSource: S.String, - PricingPlan: S.optional(S.String), - CreateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), - UpdateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), - }), - ).annotate({ - identifier: "ListRouteCalculatorsResponseEntry", - }) as any as S.Schema; +export const ListRouteCalculatorsResponseEntry = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CalculatorName: S.String, + Description: S.optional(S.String), + DataSource: S.String, + PricingPlan: S.optional(S.String), + CreateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), + UpdateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), + }), +).annotate({ + identifier: "ListRouteCalculatorsResponseEntry", +}) as any as S.Schema; export type ListRouteCalculatorsResponseEntryList = ListRouteCalculatorsResponseEntry[]; -export const ListRouteCalculatorsResponseEntryList = - /*@__PURE__*/ S.Array(ListRouteCalculatorsResponseEntry); +export const ListRouteCalculatorsResponseEntryList = /*@__PURE__*/ S.Array( + ListRouteCalculatorsResponseEntry, +); export interface ListRouteCalculatorsResponse { Entries: ListRouteCalculatorsResponseEntry[]; NextToken?: string; } -export const ListRouteCalculatorsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Entries: ListRouteCalculatorsResponseEntryList, - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListRouteCalculatorsResponse", - }) as any as S.Schema; +export const ListRouteCalculatorsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Entries: ListRouteCalculatorsResponseEntryList, + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListRouteCalculatorsResponse", +}) as any as S.Schema; export type WaypointPositionList = number[][]; export const WaypointPositionList = /*@__PURE__*/ S.Array(Position); export interface CalculateRouteCarModeOptions { AvoidFerries?: boolean; AvoidTolls?: boolean; } -export const CalculateRouteCarModeOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AvoidFerries: S.optional(S.Boolean), - AvoidTolls: S.optional(S.Boolean), - }), - ).annotate({ - identifier: "CalculateRouteCarModeOptions", - }) as any as S.Schema; +export const CalculateRouteCarModeOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AvoidFerries: S.optional(S.Boolean), + AvoidTolls: S.optional(S.Boolean), + }), +).annotate({ + identifier: "CalculateRouteCarModeOptions", +}) as any as S.Schema; export interface TruckDimensions { Length?: number; Height?: number; @@ -2751,17 +2720,16 @@ export interface CalculateRouteTruckModeOptions { Dimensions?: TruckDimensions; Weight?: TruckWeight; } -export const CalculateRouteTruckModeOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AvoidFerries: S.optional(S.Boolean), - AvoidTolls: S.optional(S.Boolean), - Dimensions: S.optional(TruckDimensions), - Weight: S.optional(TruckWeight), - }), - ).annotate({ - identifier: "CalculateRouteTruckModeOptions", - }) as any as S.Schema; +export const CalculateRouteTruckModeOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AvoidFerries: S.optional(S.Boolean), + AvoidTolls: S.optional(S.Boolean), + Dimensions: S.optional(TruckDimensions), + Weight: S.optional(TruckWeight), + }), +).annotate({ + identifier: "CalculateRouteTruckModeOptions", +}) as any as S.Schema; export interface CalculateRouteRequest { CalculatorName: string; DeparturePosition: number[]; @@ -2901,37 +2869,36 @@ export interface CalculateRouteMatrixRequest { TruckModeOptions?: CalculateRouteTruckModeOptions; Key?: string | redacted.Redacted; } -export const CalculateRouteMatrixRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CalculatorName: S.String.pipe(T.HttpLabel("CalculatorName")), - DeparturePositions: PositionList, - DestinationPositions: PositionList, - TravelMode: S.optional(S.String), - DepartureTime: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - DepartNow: S.optional(S.Boolean), - DistanceUnit: S.optional(S.String), - CarModeOptions: S.optional(CalculateRouteCarModeOptions), - TruckModeOptions: S.optional(CalculateRouteTruckModeOptions), - Key: S.optional(SensitiveString).pipe(T.HttpQuery("key")), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/routes/v0/calculators/{CalculatorName}/calculate/route-matrix", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const CalculateRouteMatrixRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CalculatorName: S.String.pipe(T.HttpLabel("CalculatorName")), + DeparturePositions: PositionList, + DestinationPositions: PositionList, + TravelMode: S.optional(S.String), + DepartureTime: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + DepartNow: S.optional(S.Boolean), + DistanceUnit: S.optional(S.String), + CarModeOptions: S.optional(CalculateRouteCarModeOptions), + TruckModeOptions: S.optional(CalculateRouteTruckModeOptions), + Key: S.optional(SensitiveString).pipe(T.HttpQuery("key")), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/routes/v0/calculators/{CalculatorName}/calculate/route-matrix", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CalculateRouteMatrixRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CalculateRouteMatrixRequest", +}) as any as S.Schema; export interface RouteMatrixEntryError { Code: string; Message?: string; @@ -2965,34 +2932,32 @@ export interface CalculateRouteMatrixSummary { ErrorCount: number; DistanceUnit: string; } -export const CalculateRouteMatrixSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DataSource: S.String, - RouteCount: S.Number, - ErrorCount: S.Number, - DistanceUnit: S.String, - }), - ).annotate({ - identifier: "CalculateRouteMatrixSummary", - }) as any as S.Schema; +export const CalculateRouteMatrixSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DataSource: S.String, + RouteCount: S.Number, + ErrorCount: S.Number, + DistanceUnit: S.String, + }), +).annotate({ + identifier: "CalculateRouteMatrixSummary", +}) as any as S.Schema; export interface CalculateRouteMatrixResponse { RouteMatrix: RouteMatrixEntry[][]; SnappedDeparturePositions?: number[][]; SnappedDestinationPositions?: number[][]; Summary: CalculateRouteMatrixSummary; } -export const CalculateRouteMatrixResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RouteMatrix: RouteMatrix, - SnappedDeparturePositions: S.optional(PositionList), - SnappedDestinationPositions: S.optional(PositionList), - Summary: CalculateRouteMatrixSummary, - }), - ).annotate({ - identifier: "CalculateRouteMatrixResponse", - }) as any as S.Schema; +export const CalculateRouteMatrixResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RouteMatrix: RouteMatrix, + SnappedDeparturePositions: S.optional(PositionList), + SnappedDestinationPositions: S.optional(PositionList), + Summary: CalculateRouteMatrixSummary, + }), +).annotate({ + identifier: "CalculateRouteMatrixResponse", +}) as any as S.Schema; export interface CreateTrackerRequest { TrackerName: string; PricingPlan?: string; @@ -3062,7 +3027,7 @@ export const DescribeTrackerRequest = /*@__PURE__*/ S.suspend(() => export interface DescribeTrackerResponse { TrackerName: string; TrackerArn: string; - Description: string; + Description?: string; PricingPlan?: string; PricingPlanDataSource?: string; Tags?: { [key: string]: string | undefined }; @@ -3077,7 +3042,7 @@ export const DescribeTrackerResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ TrackerName: S.String, TrackerArn: S.String, - Description: S.String, + Description: S.optional(S.String), PricingPlan: S.optional(S.String), PricingPlanDataSource: S.optional(S.String), Tags: S.optional(TagMap), @@ -3182,7 +3147,7 @@ export const ListTrackersRequest = /*@__PURE__*/ S.suspend(() => }) as any as S.Schema; export interface ListTrackersResponseEntry { TrackerName: string; - Description: string; + Description?: string; PricingPlan?: string; PricingPlanDataSource?: string; CreateTime: Date; @@ -3191,7 +3156,7 @@ export interface ListTrackersResponseEntry { export const ListTrackersResponseEntry = /*@__PURE__*/ S.suspend(() => S.Struct({ TrackerName: S.String, - Description: S.String, + Description: S.optional(S.String), PricingPlan: S.optional(S.String), PricingPlanDataSource: S.optional(S.String), CreateTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), @@ -3201,8 +3166,9 @@ export const ListTrackersResponseEntry = /*@__PURE__*/ S.suspend(() => identifier: "ListTrackersResponseEntry", }) as any as S.Schema; export type ListTrackersResponseEntryList = ListTrackersResponseEntry[]; -export const ListTrackersResponseEntryList = - /*@__PURE__*/ S.Array(ListTrackersResponseEntry); +export const ListTrackersResponseEntryList = /*@__PURE__*/ S.Array( + ListTrackersResponseEntry, +); export interface ListTrackersResponse { Entries: ListTrackersResponseEntry[]; NextToken?: string; @@ -3210,49 +3176,49 @@ export interface ListTrackersResponse { export const ListTrackersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ Entries: ListTrackersResponseEntryList, - NextToken: S.optional(S.String), - }), -).annotate({ - identifier: "ListTrackersResponse", -}) as any as S.Schema; -export interface AssociateTrackerConsumerRequest { - TrackerName: string; - ConsumerArn: string; -} -export const AssociateTrackerConsumerRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TrackerName: S.String.pipe(T.HttpLabel("TrackerName")), - ConsumerArn: S.String, - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/tracking/v0/trackers/{TrackerName}/consumers", - }), - svc, - auth, - proto, - ver, - rules, - ), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListTrackersResponse", +}) as any as S.Schema; +export interface AssociateTrackerConsumerRequest { + TrackerName: string; + ConsumerArn: string; +} +export const AssociateTrackerConsumerRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TrackerName: S.String.pipe(T.HttpLabel("TrackerName")), + ConsumerArn: S.String, + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/tracking/v0/trackers/{TrackerName}/consumers", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "AssociateTrackerConsumerRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "AssociateTrackerConsumerRequest", +}) as any as S.Schema; export interface AssociateTrackerConsumerResponse {} -export const AssociateTrackerConsumerResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "AssociateTrackerConsumerResponse", - }) as any as S.Schema; +export const AssociateTrackerConsumerResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "AssociateTrackerConsumerResponse", +}) as any as S.Schema; export type DeviceIdsList = string[]; export const DeviceIdsList = /*@__PURE__*/ S.Array(S.String); export interface BatchDeleteDevicePositionHistoryRequest { TrackerName: string; DeviceIds: string[]; } -export const BatchDeleteDevicePositionHistoryRequest = - /*@__PURE__*/ S.suspend(() => +export const BatchDeleteDevicePositionHistoryRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ TrackerName: S.String.pipe(T.HttpLabel("TrackerName")), DeviceIds: DeviceIdsList, @@ -3269,70 +3235,68 @@ export const BatchDeleteDevicePositionHistoryRequest = rules, ), ), - ).annotate({ - identifier: "BatchDeleteDevicePositionHistoryRequest", - }) as any as S.Schema; +).annotate({ + identifier: "BatchDeleteDevicePositionHistoryRequest", +}) as any as S.Schema; export interface BatchDeleteDevicePositionHistoryError_ { DeviceId: string; Error: BatchItemError; } -export const BatchDeleteDevicePositionHistoryError_ = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DeviceId: S.String, Error: BatchItemError }), - ).annotate({ - identifier: "BatchDeleteDevicePositionHistoryError", - }) as any as S.Schema; +export const BatchDeleteDevicePositionHistoryError_ = /*@__PURE__*/ S.suspend( + () => S.Struct({ DeviceId: S.String, Error: BatchItemError }), +).annotate({ + identifier: "BatchDeleteDevicePositionHistoryError", +}) as any as S.Schema; export type BatchDeleteDevicePositionHistoryErrorList = BatchDeleteDevicePositionHistoryError_[]; -export const BatchDeleteDevicePositionHistoryErrorList = - /*@__PURE__*/ S.Array(BatchDeleteDevicePositionHistoryError_); +export const BatchDeleteDevicePositionHistoryErrorList = /*@__PURE__*/ S.Array( + BatchDeleteDevicePositionHistoryError_, +); export interface BatchDeleteDevicePositionHistoryResponse { Errors: BatchDeleteDevicePositionHistoryError_[]; } -export const BatchDeleteDevicePositionHistoryResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Errors: BatchDeleteDevicePositionHistoryErrorList }), - ).annotate({ - identifier: "BatchDeleteDevicePositionHistoryResponse", - }) as any as S.Schema; +export const BatchDeleteDevicePositionHistoryResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ Errors: BatchDeleteDevicePositionHistoryErrorList }), +).annotate({ + identifier: "BatchDeleteDevicePositionHistoryResponse", +}) as any as S.Schema; export interface BatchGetDevicePositionRequest { TrackerName: string; DeviceIds: string[]; } -export const BatchGetDevicePositionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TrackerName: S.String.pipe(T.HttpLabel("TrackerName")), - DeviceIds: IdList, - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/tracking/v0/trackers/{TrackerName}/get-positions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const BatchGetDevicePositionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TrackerName: S.String.pipe(T.HttpLabel("TrackerName")), + DeviceIds: IdList, + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/tracking/v0/trackers/{TrackerName}/get-positions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "BatchGetDevicePositionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "BatchGetDevicePositionRequest", +}) as any as S.Schema; export interface BatchGetDevicePositionError_ { DeviceId: string; Error: BatchItemError; } -export const BatchGetDevicePositionError_ = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DeviceId: S.String, Error: BatchItemError }), - ).annotate({ - identifier: "BatchGetDevicePositionError", - }) as any as S.Schema; +export const BatchGetDevicePositionError_ = /*@__PURE__*/ S.suspend(() => + S.Struct({ DeviceId: S.String, Error: BatchItemError }), +).annotate({ + identifier: "BatchGetDevicePositionError", +}) as any as S.Schema; export type BatchGetDevicePositionErrorList = BatchGetDevicePositionError_[]; -export const BatchGetDevicePositionErrorList = - /*@__PURE__*/ S.Array(BatchGetDevicePositionError_); +export const BatchGetDevicePositionErrorList = /*@__PURE__*/ S.Array( + BatchGetDevicePositionError_, +); export interface DevicePosition { DeviceId?: string; SampleTime: Date; @@ -3357,98 +3321,95 @@ export interface BatchGetDevicePositionResponse { Errors: BatchGetDevicePositionError_[]; DevicePositions: DevicePosition[]; } -export const BatchGetDevicePositionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Errors: BatchGetDevicePositionErrorList, - DevicePositions: DevicePositionList, - }), - ).annotate({ - identifier: "BatchGetDevicePositionResponse", - }) as any as S.Schema; +export const BatchGetDevicePositionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Errors: BatchGetDevicePositionErrorList, + DevicePositions: DevicePositionList, + }), +).annotate({ + identifier: "BatchGetDevicePositionResponse", +}) as any as S.Schema; export interface BatchUpdateDevicePositionRequest { TrackerName: string; Updates: DevicePositionUpdate[]; } -export const BatchUpdateDevicePositionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TrackerName: S.String.pipe(T.HttpLabel("TrackerName")), - Updates: DevicePositionUpdateList, - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/tracking/v0/trackers/{TrackerName}/positions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const BatchUpdateDevicePositionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TrackerName: S.String.pipe(T.HttpLabel("TrackerName")), + Updates: DevicePositionUpdateList, + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/tracking/v0/trackers/{TrackerName}/positions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "BatchUpdateDevicePositionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "BatchUpdateDevicePositionRequest", +}) as any as S.Schema; export interface BatchUpdateDevicePositionError_ { DeviceId: string; SampleTime: Date; Error: BatchItemError; } -export const BatchUpdateDevicePositionError_ = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DeviceId: S.String, - SampleTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), - Error: BatchItemError, - }), - ).annotate({ - identifier: "BatchUpdateDevicePositionError", - }) as any as S.Schema; +export const BatchUpdateDevicePositionError_ = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DeviceId: S.String, + SampleTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), + Error: BatchItemError, + }), +).annotate({ + identifier: "BatchUpdateDevicePositionError", +}) as any as S.Schema; export type BatchUpdateDevicePositionErrorList = BatchUpdateDevicePositionError_[]; -export const BatchUpdateDevicePositionErrorList = - /*@__PURE__*/ S.Array(BatchUpdateDevicePositionError_); +export const BatchUpdateDevicePositionErrorList = /*@__PURE__*/ S.Array( + BatchUpdateDevicePositionError_, +); export interface BatchUpdateDevicePositionResponse { Errors: BatchUpdateDevicePositionError_[]; } -export const BatchUpdateDevicePositionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Errors: BatchUpdateDevicePositionErrorList }), - ).annotate({ - identifier: "BatchUpdateDevicePositionResponse", - }) as any as S.Schema; +export const BatchUpdateDevicePositionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Errors: BatchUpdateDevicePositionErrorList }), +).annotate({ + identifier: "BatchUpdateDevicePositionResponse", +}) as any as S.Schema; export interface DisassociateTrackerConsumerRequest { TrackerName: string; ConsumerArn: string; } -export const DisassociateTrackerConsumerRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TrackerName: S.String.pipe(T.HttpLabel("TrackerName")), - ConsumerArn: S.String.pipe(T.HttpLabel("ConsumerArn")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/tracking/v0/trackers/{TrackerName}/consumers/{ConsumerArn}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DisassociateTrackerConsumerRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TrackerName: S.String.pipe(T.HttpLabel("TrackerName")), + ConsumerArn: S.String.pipe(T.HttpLabel("ConsumerArn")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/tracking/v0/trackers/{TrackerName}/consumers/{ConsumerArn}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DisassociateTrackerConsumerRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DisassociateTrackerConsumerRequest", +}) as any as S.Schema; export interface DisassociateTrackerConsumerResponse {} -export const DisassociateTrackerConsumerResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DisassociateTrackerConsumerResponse", - }) as any as S.Schema; +export const DisassociateTrackerConsumerResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DisassociateTrackerConsumerResponse", +}) as any as S.Schema; export interface GetDevicePositionRequest { TrackerName: string; DeviceId: string; @@ -3501,48 +3462,46 @@ export interface GetDevicePositionHistoryRequest { EndTimeExclusive?: Date; MaxResults?: number; } -export const GetDevicePositionHistoryRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TrackerName: S.String.pipe(T.HttpLabel("TrackerName")), - DeviceId: S.String.pipe(T.HttpLabel("DeviceId")), - NextToken: S.optional(S.String), - StartTimeInclusive: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - EndTimeExclusive: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - MaxResults: S.optional(S.Number), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/tracking/v0/trackers/{TrackerName}/devices/{DeviceId}/list-positions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetDevicePositionHistoryRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TrackerName: S.String.pipe(T.HttpLabel("TrackerName")), + DeviceId: S.String.pipe(T.HttpLabel("DeviceId")), + NextToken: S.optional(S.String), + StartTimeInclusive: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + EndTimeExclusive: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + MaxResults: S.optional(S.Number), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/tracking/v0/trackers/{TrackerName}/devices/{DeviceId}/list-positions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetDevicePositionHistoryRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetDevicePositionHistoryRequest", +}) as any as S.Schema; export interface GetDevicePositionHistoryResponse { DevicePositions: DevicePosition[]; NextToken?: string; } -export const GetDevicePositionHistoryResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DevicePositions: DevicePositionList, - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "GetDevicePositionHistoryResponse", - }) as any as S.Schema; +export const GetDevicePositionHistoryResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DevicePositions: DevicePositionList, + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "GetDevicePositionHistoryResponse", +}) as any as S.Schema; export interface TrackingFilterGeometry { Polygon?: number[][][]; } @@ -3586,74 +3545,71 @@ export interface ListDevicePositionsResponseEntry { Accuracy?: PositionalAccuracy; PositionProperties?: { [key: string]: string | undefined }; } -export const ListDevicePositionsResponseEntry = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DeviceId: S.String, - SampleTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), - Position: Position, - Accuracy: S.optional(PositionalAccuracy), - PositionProperties: S.optional(PositionPropertyMap), - }), - ).annotate({ - identifier: "ListDevicePositionsResponseEntry", - }) as any as S.Schema; +export const ListDevicePositionsResponseEntry = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DeviceId: S.String, + SampleTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), + Position: Position, + Accuracy: S.optional(PositionalAccuracy), + PositionProperties: S.optional(PositionPropertyMap), + }), +).annotate({ + identifier: "ListDevicePositionsResponseEntry", +}) as any as S.Schema; export type ListDevicePositionsResponseEntryList = ListDevicePositionsResponseEntry[]; -export const ListDevicePositionsResponseEntryList = - /*@__PURE__*/ S.Array(ListDevicePositionsResponseEntry); +export const ListDevicePositionsResponseEntryList = /*@__PURE__*/ S.Array( + ListDevicePositionsResponseEntry, +); export interface ListDevicePositionsResponse { Entries: ListDevicePositionsResponseEntry[]; NextToken?: string; } -export const ListDevicePositionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Entries: ListDevicePositionsResponseEntryList, - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListDevicePositionsResponse", - }) as any as S.Schema; +export const ListDevicePositionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Entries: ListDevicePositionsResponseEntryList, + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListDevicePositionsResponse", +}) as any as S.Schema; export interface ListTrackerConsumersRequest { TrackerName: string; MaxResults?: number; NextToken?: string; } -export const ListTrackerConsumersRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TrackerName: S.String.pipe(T.HttpLabel("TrackerName")), - MaxResults: S.optional(S.Number), - NextToken: S.optional(S.String), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/tracking/v0/trackers/{TrackerName}/list-consumers", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListTrackerConsumersRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TrackerName: S.String.pipe(T.HttpLabel("TrackerName")), + MaxResults: S.optional(S.Number), + NextToken: S.optional(S.String), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/tracking/v0/trackers/{TrackerName}/list-consumers", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListTrackerConsumersRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListTrackerConsumersRequest", +}) as any as S.Schema; export type ArnList = string[]; export const ArnList = /*@__PURE__*/ S.Array(S.String); export interface ListTrackerConsumersResponse { ConsumerArns: string[]; NextToken?: string; } -export const ListTrackerConsumersResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ConsumerArns: ArnList, NextToken: S.optional(S.String) }), - ).annotate({ - identifier: "ListTrackerConsumersResponse", - }) as any as S.Schema; +export const ListTrackerConsumersResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ ConsumerArns: ArnList, NextToken: S.optional(S.String) }), +).annotate({ + identifier: "ListTrackerConsumersResponse", +}) as any as S.Schema; export interface WiFiAccessPoint { MacAddress: string; Rss: number; @@ -3753,28 +3709,27 @@ export interface VerifyDevicePositionRequest { DeviceState: DeviceState; DistanceUnit?: string; } -export const VerifyDevicePositionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TrackerName: S.String.pipe(T.HttpLabel("TrackerName")), - DeviceState: DeviceState, - DistanceUnit: S.optional(S.String), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/tracking/v0/trackers/{TrackerName}/positions/verify", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const VerifyDevicePositionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TrackerName: S.String.pipe(T.HttpLabel("TrackerName")), + DeviceState: DeviceState, + DistanceUnit: S.optional(S.String), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/tracking/v0/trackers/{TrackerName}/positions/verify", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "VerifyDevicePositionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "VerifyDevicePositionRequest", +}) as any as S.Schema; export interface InferredState { Position?: number[]; Accuracy?: PositionalAccuracy; @@ -3796,41 +3751,43 @@ export interface VerifyDevicePositionResponse { ReceivedTime: Date; DistanceUnit: string; } -export const VerifyDevicePositionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - InferredState: InferredState, - DeviceId: S.String, - SampleTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), - ReceivedTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), - DistanceUnit: S.String, - }), - ).annotate({ - identifier: "VerifyDevicePositionResponse", - }) as any as S.Schema; +export const VerifyDevicePositionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + InferredState: InferredState, + DeviceId: S.String, + SampleTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), + ReceivedTime: T.DateFromString.pipe(T.TimestampFormat("date-time")), + DistanceUnit: S.String, + }), +).annotate({ + identifier: "VerifyDevicePositionResponse", +}) as any as S.Schema; //# Errors export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { Message: S.String }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { Message: S.String }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { Message: S.String }, - T.Retryable(), + T.all(T.HttpError(500), T.Retryable()), ).pipe(C.withServerError, C.withRetryableError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", { Message: S.String }, + T.HttpError(402), ).pipe(C.withQuotaError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", { Message: S.String }, - T.Retryable(), + T.all(T.HttpError(429), T.Retryable()), ).pipe(C.withThrottlingError, C.withRetryableError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", @@ -3839,10 +3796,12 @@ export class ValidationException extends S.TaggedErrorClass Reason: S.String, FieldList: ValidationExceptionFieldList, }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { Message: S.String }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} //# Operations @@ -3876,6 +3835,7 @@ export const createKey: API.OperationMethod< ValidationException, ], operationName: "CreateKey", + endpointHostPrefix: "cp.metadata.", })); export type DescribeKeyError = | AccessDeniedException @@ -3905,6 +3865,7 @@ export const describeKey: API.OperationMethod< ValidationException, ], operationName: "DescribeKey", + endpointHostPrefix: "cp.metadata.", })); export type UpdateKeyError = | AccessDeniedException @@ -3932,6 +3893,7 @@ export const updateKey: API.OperationMethod< ValidationException, ], operationName: "UpdateKey", + endpointHostPrefix: "cp.metadata.", })); export type DeleteKeyError = | AccessDeniedException @@ -3961,6 +3923,7 @@ export const deleteKey: API.OperationMethod< ValidationException, ], operationName: "DeleteKey", + endpointHostPrefix: "cp.metadata.", })); export type ListKeysError = | AccessDeniedException @@ -4003,6 +3966,7 @@ export const listKeys: API.OperationMethod< ValidationException, ], operationName: "ListKeys", + endpointHostPrefix: "cp.metadata.", pagination: { inputToken: "NextToken", outputToken: "NextToken", @@ -4036,6 +4000,7 @@ export const listTagsForResource: API.OperationMethod< ValidationException, ], operationName: "ListTagsForResource", + endpointHostPrefix: "cp.metadata.", })); export type TagResourceError = | AccessDeniedException @@ -4069,6 +4034,7 @@ export const tagResource: API.OperationMethod< ValidationException, ], operationName: "TagResource", + endpointHostPrefix: "cp.metadata.", })); export type UntagResourceError = | AccessDeniedException @@ -4096,6 +4062,7 @@ export const untagResource: API.OperationMethod< ValidationException, ], operationName: "UntagResource", + endpointHostPrefix: "cp.metadata.", })); export type CreateGeofenceCollectionError = | AccessDeniedException @@ -4125,6 +4092,7 @@ export const createGeofenceCollection: API.OperationMethod< ValidationException, ], operationName: "CreateGeofenceCollection", + endpointHostPrefix: "cp.geofencing.", })); export type DescribeGeofenceCollectionError = | AccessDeniedException @@ -4152,6 +4120,7 @@ export const describeGeofenceCollection: API.OperationMethod< ValidationException, ], operationName: "DescribeGeofenceCollection", + endpointHostPrefix: "cp.geofencing.", })); export type UpdateGeofenceCollectionError = | AccessDeniedException @@ -4179,6 +4148,7 @@ export const updateGeofenceCollection: API.OperationMethod< ValidationException, ], operationName: "UpdateGeofenceCollection", + endpointHostPrefix: "cp.geofencing.", })); export type DeleteGeofenceCollectionError = | AccessDeniedException @@ -4208,6 +4178,7 @@ export const deleteGeofenceCollection: API.OperationMethod< ValidationException, ], operationName: "DeleteGeofenceCollection", + endpointHostPrefix: "cp.geofencing.", })); export type ListGeofenceCollectionsError = | AccessDeniedException @@ -4248,6 +4219,7 @@ export const listGeofenceCollections: API.OperationMethod< ValidationException, ], operationName: "ListGeofenceCollections", + endpointHostPrefix: "cp.geofencing.", pagination: { inputToken: "NextToken", outputToken: "NextToken", @@ -4283,6 +4255,7 @@ export const batchDeleteGeofence: API.OperationMethod< ValidationException, ], operationName: "BatchDeleteGeofence", + endpointHostPrefix: "geofencing.", })); export type BatchEvaluateGeofencesError = | AccessDeniedException @@ -4322,6 +4295,7 @@ export const batchEvaluateGeofences: API.OperationMethod< ValidationException, ], operationName: "BatchEvaluateGeofences", + endpointHostPrefix: "geofencing.", })); export type BatchPutGeofenceError = | AccessDeniedException @@ -4349,6 +4323,7 @@ export const batchPutGeofence: API.OperationMethod< ValidationException, ], operationName: "BatchPutGeofence", + endpointHostPrefix: "geofencing.", })); export type ForecastGeofenceEventsError = | AccessDeniedException @@ -4399,6 +4374,7 @@ export const forecastGeofenceEvents: API.OperationMethod< ValidationException, ], operationName: "ForecastGeofenceEvents", + endpointHostPrefix: "geofencing.", pagination: { inputToken: "NextToken", outputToken: "NextToken", @@ -4434,6 +4410,7 @@ export const getGeofence: API.OperationMethod< ValidationException, ], operationName: "GetGeofence", + endpointHostPrefix: "geofencing.", })); export type ListGeofencesError = | AccessDeniedException @@ -4476,6 +4453,7 @@ export const listGeofences: API.OperationMethod< ValidationException, ], operationName: "ListGeofences", + endpointHostPrefix: "geofencing.", pagination: { inputToken: "NextToken", outputToken: "NextToken", @@ -4511,6 +4489,7 @@ export const putGeofence: API.OperationMethod< ValidationException, ], operationName: "PutGeofence", + endpointHostPrefix: "geofencing.", })); export type StartJobError = | AccessDeniedException @@ -4538,6 +4517,7 @@ export const startJob: API.OperationMethod< ValidationException, ], operationName: "StartJob", + endpointHostPrefix: "metadata.", })); export type GetJobError = | AccessDeniedException @@ -4567,6 +4547,7 @@ export const getJob: API.OperationMethod< ValidationException, ], operationName: "GetJob", + endpointHostPrefix: "metadata.", })); export type ListJobsError = | AccessDeniedException @@ -4609,6 +4590,7 @@ export const listJobs: API.OperationMethod< ValidationException, ], operationName: "ListJobs", + endpointHostPrefix: "metadata.", pagination: { inputToken: "NextToken", outputToken: "NextToken", @@ -4621,6 +4603,7 @@ export type CancelJobError = | InternalServerException | ThrottlingException | ValidationException + | ResourceNotFoundException | CommonErrors; /** * `CancelJob` cancels a job that is currently running or pending. If the job is already in a terminal state (`Completed`, `Failed`, or `Cancelled`), the operation returns successfully with the current status. @@ -4640,8 +4623,10 @@ export const cancelJob: API.OperationMethod< InternalServerException, ThrottlingException, ValidationException, + ResourceNotFoundException, ], operationName: "CancelJob", + endpointHostPrefix: "metadata.", })); export type CreateMapError = | AccessDeniedException @@ -4685,6 +4670,7 @@ export const createMap: API.OperationMethod< ValidationException, ], operationName: "CreateMap", + endpointHostPrefix: "cp.maps.", })); export type DescribeMapError = | AccessDeniedException @@ -4724,6 +4710,7 @@ export const describeMap: API.OperationMethod< ValidationException, ], operationName: "DescribeMap", + endpointHostPrefix: "cp.maps.", })); export type UpdateMapError = | AccessDeniedException @@ -4763,6 +4750,7 @@ export const updateMap: API.OperationMethod< ValidationException, ], operationName: "UpdateMap", + endpointHostPrefix: "cp.maps.", })); export type DeleteMapError = | AccessDeniedException @@ -4804,6 +4792,7 @@ export const deleteMap: API.OperationMethod< ValidationException, ], operationName: "DeleteMap", + endpointHostPrefix: "cp.maps.", })); export type ListMapsError = | AccessDeniedException @@ -4856,6 +4845,7 @@ export const listMaps: API.OperationMethod< ValidationException, ], operationName: "ListMaps", + endpointHostPrefix: "cp.maps.", pagination: { inputToken: "NextToken", outputToken: "NextToken", @@ -4901,6 +4891,7 @@ export const getMapGlyphs: API.OperationMethod< ValidationException, ], operationName: "GetMapGlyphs", + endpointHostPrefix: "maps.", })); export type GetMapSpritesError = | AccessDeniedException @@ -4940,6 +4931,7 @@ export const getMapSprites: API.OperationMethod< ValidationException, ], operationName: "GetMapSprites", + endpointHostPrefix: "maps.", })); export type GetMapStyleDescriptorError = | AccessDeniedException @@ -4981,6 +4973,7 @@ export const getMapStyleDescriptor: API.OperationMethod< ValidationException, ], operationName: "GetMapStyleDescriptor", + endpointHostPrefix: "maps.", })); export type GetMapTileError = | AccessDeniedException @@ -5022,6 +5015,7 @@ export const getMapTile: API.OperationMethod< ValidationException, ], operationName: "GetMapTile", + endpointHostPrefix: "maps.", })); export type CreatePlaceIndexError = | AccessDeniedException @@ -5065,6 +5059,7 @@ export const createPlaceIndex: API.OperationMethod< ValidationException, ], operationName: "CreatePlaceIndex", + endpointHostPrefix: "cp.places.", })); export type DescribePlaceIndexError = | AccessDeniedException @@ -5104,6 +5099,7 @@ export const describePlaceIndex: API.OperationMethod< ValidationException, ], operationName: "DescribePlaceIndex", + endpointHostPrefix: "cp.places.", })); export type UpdatePlaceIndexError = | AccessDeniedException @@ -5143,6 +5139,7 @@ export const updatePlaceIndex: API.OperationMethod< ValidationException, ], operationName: "UpdatePlaceIndex", + endpointHostPrefix: "cp.places.", })); export type DeletePlaceIndexError = | AccessDeniedException @@ -5184,6 +5181,7 @@ export const deletePlaceIndex: API.OperationMethod< ValidationException, ], operationName: "DeletePlaceIndex", + endpointHostPrefix: "cp.places.", })); export type ListPlaceIndexesError = | AccessDeniedException @@ -5236,6 +5234,7 @@ export const listPlaceIndexes: API.OperationMethod< ValidationException, ], operationName: "ListPlaceIndexes", + endpointHostPrefix: "cp.places.", pagination: { inputToken: "NextToken", outputToken: "NextToken", @@ -5291,6 +5290,7 @@ export const getPlace: API.OperationMethod< ValidationException, ], operationName: "GetPlace", + endpointHostPrefix: "places.", })); export type SearchPlaceIndexForPositionError = | AccessDeniedException @@ -5328,6 +5328,7 @@ export const searchPlaceIndexForPosition: API.OperationMethod< ValidationException, ], operationName: "SearchPlaceIndexForPosition", + endpointHostPrefix: "places.", })); export type SearchPlaceIndexForSuggestionsError = | AccessDeniedException @@ -5369,6 +5370,7 @@ export const searchPlaceIndexForSuggestions: API.OperationMethod< ValidationException, ], operationName: "SearchPlaceIndexForSuggestions", + endpointHostPrefix: "places.", })); export type SearchPlaceIndexForTextError = | AccessDeniedException @@ -5412,6 +5414,7 @@ export const searchPlaceIndexForText: API.OperationMethod< ValidationException, ], operationName: "SearchPlaceIndexForText", + endpointHostPrefix: "places.", })); export type CreateRouteCalculatorError = | AccessDeniedException @@ -5457,6 +5460,7 @@ export const createRouteCalculator: API.OperationMethod< ValidationException, ], operationName: "CreateRouteCalculator", + endpointHostPrefix: "cp.routes.", })); export type DescribeRouteCalculatorError = | AccessDeniedException @@ -5496,6 +5500,7 @@ export const describeRouteCalculator: API.OperationMethod< ValidationException, ], operationName: "DescribeRouteCalculator", + endpointHostPrefix: "cp.routes.", })); export type UpdateRouteCalculatorError = | AccessDeniedException @@ -5535,6 +5540,7 @@ export const updateRouteCalculator: API.OperationMethod< ValidationException, ], operationName: "UpdateRouteCalculator", + endpointHostPrefix: "cp.routes.", })); export type DeleteRouteCalculatorError = | AccessDeniedException @@ -5576,6 +5582,7 @@ export const deleteRouteCalculator: API.OperationMethod< ValidationException, ], operationName: "DeleteRouteCalculator", + endpointHostPrefix: "cp.routes.", })); export type ListRouteCalculatorsError = | AccessDeniedException @@ -5628,6 +5635,7 @@ export const listRouteCalculators: API.OperationMethod< ValidationException, ], operationName: "ListRouteCalculators", + endpointHostPrefix: "cp.routes.", pagination: { inputToken: "NextToken", outputToken: "NextToken", @@ -5683,6 +5691,7 @@ export const calculateRoute: API.OperationMethod< ValidationException, ], operationName: "CalculateRoute", + endpointHostPrefix: "routes.", })); export type CalculateRouteMatrixError = | AccessDeniedException @@ -5736,6 +5745,7 @@ export const calculateRouteMatrix: API.OperationMethod< ValidationException, ], operationName: "CalculateRouteMatrix", + endpointHostPrefix: "routes.", })); export type CreateTrackerError = | AccessDeniedException @@ -5765,6 +5775,7 @@ export const createTracker: API.OperationMethod< ValidationException, ], operationName: "CreateTracker", + endpointHostPrefix: "cp.tracking.", })); export type DescribeTrackerError = | AccessDeniedException @@ -5792,6 +5803,7 @@ export const describeTracker: API.OperationMethod< ValidationException, ], operationName: "DescribeTracker", + endpointHostPrefix: "cp.tracking.", })); export type UpdateTrackerError = | AccessDeniedException @@ -5819,6 +5831,7 @@ export const updateTracker: API.OperationMethod< ValidationException, ], operationName: "UpdateTracker", + endpointHostPrefix: "cp.tracking.", })); export type DeleteTrackerError = | AccessDeniedException @@ -5848,6 +5861,7 @@ export const deleteTracker: API.OperationMethod< ValidationException, ], operationName: "DeleteTracker", + endpointHostPrefix: "cp.tracking.", })); export type ListTrackersError = | AccessDeniedException @@ -5888,6 +5902,7 @@ export const listTrackers: API.OperationMethod< ValidationException, ], operationName: "ListTrackers", + endpointHostPrefix: "cp.tracking.", pagination: { inputToken: "NextToken", outputToken: "NextToken", @@ -5929,6 +5944,7 @@ export const associateTrackerConsumer: API.OperationMethod< ValidationException, ], operationName: "AssociateTrackerConsumer", + endpointHostPrefix: "cp.tracking.", })); export type BatchDeleteDevicePositionHistoryError = | AccessDeniedException @@ -5956,6 +5972,7 @@ export const batchDeleteDevicePositionHistory: API.OperationMethod< ValidationException, ], operationName: "BatchDeleteDevicePositionHistory", + endpointHostPrefix: "tracking.", })); export type BatchGetDevicePositionError = | AccessDeniedException @@ -5983,6 +6000,7 @@ export const batchGetDevicePosition: API.OperationMethod< ValidationException, ], operationName: "BatchGetDevicePosition", + endpointHostPrefix: "tracking.", })); export type BatchUpdateDevicePositionError = | AccessDeniedException @@ -6016,6 +6034,7 @@ export const batchUpdateDevicePosition: API.OperationMethod< ValidationException, ], operationName: "BatchUpdateDevicePosition", + endpointHostPrefix: "tracking.", })); export type DisassociateTrackerConsumerError = | AccessDeniedException @@ -6045,6 +6064,7 @@ export const disassociateTrackerConsumer: API.OperationMethod< ValidationException, ], operationName: "DisassociateTrackerConsumer", + endpointHostPrefix: "cp.tracking.", })); export type GetDevicePositionError = | AccessDeniedException @@ -6074,6 +6094,7 @@ export const getDevicePosition: API.OperationMethod< ValidationException, ], operationName: "GetDevicePosition", + endpointHostPrefix: "tracking.", })); export type GetDevicePositionHistoryError = | AccessDeniedException @@ -6118,6 +6139,7 @@ export const getDevicePositionHistory: API.OperationMethod< ValidationException, ], operationName: "GetDevicePositionHistory", + endpointHostPrefix: "tracking.", pagination: { inputToken: "NextToken", outputToken: "NextToken", @@ -6164,6 +6186,7 @@ export const listDevicePositions: API.OperationMethod< ValidationException, ], operationName: "ListDevicePositions", + endpointHostPrefix: "tracking.", pagination: { inputToken: "NextToken", outputToken: "NextToken", @@ -6212,6 +6235,7 @@ export const listTrackerConsumers: API.OperationMethod< ValidationException, ], operationName: "ListTrackerConsumers", + endpointHostPrefix: "cp.tracking.", pagination: { inputToken: "NextToken", outputToken: "NextToken", @@ -6247,4 +6271,5 @@ export const verifyDevicePosition: API.OperationMethod< ValidationException, ], operationName: "VerifyDevicePosition", + endpointHostPrefix: "tracking.", })); diff --git a/packages/aws/src/services/macie2.ts b/packages/aws/src/services/macie2.ts index a3bf666127..2bfbf147cd 100644 --- a/packages/aws/src/services/macie2.ts +++ b/packages/aws/src/services/macie2.ts @@ -1,4 +1,5 @@ import * as HttpClient from "effect/unstable/http/HttpClient"; +import * as redacted from "effect/Redacted"; import * as S from "@distilled.cloud/core/schema"; import * as stream from "effect/Stream"; import * as API from "../client/api.ts"; @@ -7,6 +8,7 @@ import * as C from "../category.ts"; import type { Credentials } from "../credentials.ts"; import type { CommonErrors } from "../errors.ts"; import type { Region } from "../region.ts"; +import { SensitiveString } from "../sensitive.ts"; const svc = T.AwsApiService({ sdkId: "Macie2", serviceShapeName: "Macie2" }); const auth = T.AwsAuthSigv4({ name: "macie2" }); const ver = T.ServiceVersion("2020-01-01"); @@ -134,8 +136,8 @@ export const __listOf__string = /*@__PURE__*/ S.Array(S.String); export interface BatchGetCustomDataIdentifiersRequest { ids?: string[]; } -export const BatchGetCustomDataIdentifiersRequest = - /*@__PURE__*/ S.suspend(() => +export const BatchGetCustomDataIdentifiersRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ ids: S.optional(__listOf__string) }).pipe( T.all( T.Http({ method: "POST", uri: "/custom-data-identifiers/get" }), @@ -146,9 +148,9 @@ export const BatchGetCustomDataIdentifiersRequest = rules, ), ), - ).annotate({ - identifier: "BatchGetCustomDataIdentifiersRequest", - }) as any as S.Schema; +).annotate({ + identifier: "BatchGetCustomDataIdentifiersRequest", +}) as any as S.Schema; export interface BatchGetCustomDataIdentifierSummary { arn?: string; createdAt?: Date; @@ -157,21 +159,20 @@ export interface BatchGetCustomDataIdentifierSummary { id?: string; name?: string; } -export const BatchGetCustomDataIdentifierSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - arn: S.optional(S.String), - createdAt: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - deleted: S.optional(S.Boolean), - description: S.optional(S.String), - id: S.optional(S.String), - name: S.optional(S.String), - }), - ).annotate({ - identifier: "BatchGetCustomDataIdentifierSummary", - }) as any as S.Schema; +export const BatchGetCustomDataIdentifierSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + arn: S.optional(S.String), + createdAt: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + deleted: S.optional(S.Boolean), + description: S.optional(S.String), + id: S.optional(S.String), + name: S.optional(S.String), + }), +).annotate({ + identifier: "BatchGetCustomDataIdentifierSummary", +}) as any as S.Schema; export type __listOfBatchGetCustomDataIdentifierSummary = BatchGetCustomDataIdentifierSummary[]; export const __listOfBatchGetCustomDataIdentifierSummary = @@ -180,17 +181,17 @@ export interface BatchGetCustomDataIdentifiersResponse { customDataIdentifiers?: BatchGetCustomDataIdentifierSummary[]; notFoundIdentifierIds?: string[]; } -export const BatchGetCustomDataIdentifiersResponse = - /*@__PURE__*/ S.suspend(() => +export const BatchGetCustomDataIdentifiersResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ customDataIdentifiers: S.optional( __listOfBatchGetCustomDataIdentifierSummary, ), notFoundIdentifierIds: S.optional(__listOf__string), }), - ).annotate({ - identifier: "BatchGetCustomDataIdentifiersResponse", - }) as any as S.Schema; +).annotate({ + identifier: "BatchGetCustomDataIdentifiersResponse", +}) as any as S.Schema; export type AutomatedDiscoveryAccountStatus = | "ENABLED" | "DISABLED" @@ -200,19 +201,19 @@ export interface AutomatedDiscoveryAccountUpdate { accountId?: string; status?: AutomatedDiscoveryAccountStatus; } -export const AutomatedDiscoveryAccountUpdate = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - accountId: S.optional(S.String), - status: S.optional(AutomatedDiscoveryAccountStatus), - }), - ).annotate({ - identifier: "AutomatedDiscoveryAccountUpdate", - }) as any as S.Schema; +export const AutomatedDiscoveryAccountUpdate = /*@__PURE__*/ S.suspend(() => + S.Struct({ + accountId: S.optional(S.String), + status: S.optional(AutomatedDiscoveryAccountStatus), + }), +).annotate({ + identifier: "AutomatedDiscoveryAccountUpdate", +}) as any as S.Schema; export type __listOfAutomatedDiscoveryAccountUpdate = AutomatedDiscoveryAccountUpdate[]; -export const __listOfAutomatedDiscoveryAccountUpdate = - /*@__PURE__*/ S.Array(AutomatedDiscoveryAccountUpdate); +export const __listOfAutomatedDiscoveryAccountUpdate = /*@__PURE__*/ S.Array( + AutomatedDiscoveryAccountUpdate, +); export interface BatchUpdateAutomatedDiscoveryAccountsRequest { accounts?: AutomatedDiscoveryAccountUpdate[]; } @@ -242,15 +243,15 @@ export interface AutomatedDiscoveryAccountUpdateError { accountId?: string; errorCode?: AutomatedDiscoveryAccountUpdateErrorCode; } -export const AutomatedDiscoveryAccountUpdateError = - /*@__PURE__*/ S.suspend(() => +export const AutomatedDiscoveryAccountUpdateError = /*@__PURE__*/ S.suspend( + () => S.Struct({ accountId: S.optional(S.String), errorCode: S.optional(AutomatedDiscoveryAccountUpdateErrorCode), }), - ).annotate({ - identifier: "AutomatedDiscoveryAccountUpdateError", - }) as any as S.Schema; +).annotate({ + identifier: "AutomatedDiscoveryAccountUpdateError", +}) as any as S.Schema; export type __listOfAutomatedDiscoveryAccountUpdateError = AutomatedDiscoveryAccountUpdateError[]; export const __listOfAutomatedDiscoveryAccountUpdateError = @@ -381,8 +382,9 @@ export const TagCriterionPairForJob = /*@__PURE__*/ S.suspend(() => identifier: "TagCriterionPairForJob", }) as any as S.Schema; export type __listOfTagCriterionPairForJob = TagCriterionPairForJob[]; -export const __listOfTagCriterionPairForJob = - /*@__PURE__*/ S.Array(TagCriterionPairForJob); +export const __listOfTagCriterionPairForJob = /*@__PURE__*/ S.Array( + TagCriterionPairForJob, +); export interface TagCriterionForJob { comparator?: JobComparator; tagValues?: TagCriterionPairForJob[]; @@ -440,8 +442,9 @@ export const S3BucketDefinitionForJob = /*@__PURE__*/ S.suspend(() => identifier: "S3BucketDefinitionForJob", }) as any as S.Schema; export type __listOfS3BucketDefinitionForJob = S3BucketDefinitionForJob[]; -export const __listOfS3BucketDefinitionForJob = - /*@__PURE__*/ S.Array(S3BucketDefinitionForJob); +export const __listOfS3BucketDefinitionForJob = /*@__PURE__*/ S.Array( + S3BucketDefinitionForJob, +); export type ScopeFilterKey = | "OBJECT_EXTENSION" | "OBJECT_LAST_MODIFIED_DATE" @@ -589,45 +592,43 @@ export interface CreateClassificationJobRequest { scheduleFrequency?: JobScheduleFrequency; tags?: { [key: string]: string | undefined }; } -export const CreateClassificationJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - allowListIds: S.optional(__listOf__string), - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - customDataIdentifierIds: S.optional(__listOf__string), - description: S.optional(S.String), - initialRun: S.optional(S.Boolean), - jobType: S.optional(JobType), - managedDataIdentifierIds: S.optional(__listOf__string), - managedDataIdentifierSelector: S.optional(ManagedDataIdentifierSelector), - name: S.optional(S.String), - s3JobDefinition: S.optional(S3JobDefinition), - samplingPercentage: S.optional(S.Number), - scheduleFrequency: S.optional(JobScheduleFrequency), - tags: S.optional(TagMap), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/jobs" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateClassificationJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + allowListIds: S.optional(__listOf__string), + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + customDataIdentifierIds: S.optional(__listOf__string), + description: S.optional(S.String), + initialRun: S.optional(S.Boolean), + jobType: S.optional(JobType), + managedDataIdentifierIds: S.optional(__listOf__string), + managedDataIdentifierSelector: S.optional(ManagedDataIdentifierSelector), + name: S.optional(S.String), + s3JobDefinition: S.optional(S3JobDefinition), + samplingPercentage: S.optional(S.Number), + scheduleFrequency: S.optional(JobScheduleFrequency), + tags: S.optional(TagMap), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/jobs" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateClassificationJobRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateClassificationJobRequest", +}) as any as S.Schema; export interface CreateClassificationJobResponse { jobArn?: string; jobId?: string; } -export const CreateClassificationJobResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ jobArn: S.optional(S.String), jobId: S.optional(S.String) }), - ).annotate({ - identifier: "CreateClassificationJobResponse", - }) as any as S.Schema; +export const CreateClassificationJobResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ jobArn: S.optional(S.String), jobId: S.optional(S.String) }), +).annotate({ + identifier: "CreateClassificationJobResponse", +}) as any as S.Schema; export type DataIdentifierSeverity = "LOW" | "MEDIUM" | "HIGH" | (string & {}); export const DataIdentifierSeverity = /*@__PURE__*/ S.String; export interface SeverityLevel { @@ -653,40 +654,38 @@ export interface CreateCustomDataIdentifierRequest { severityLevels?: SeverityLevel[]; tags?: { [key: string]: string | undefined }; } -export const CreateCustomDataIdentifierRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - description: S.optional(S.String), - ignoreWords: S.optional(__listOf__string), - keywords: S.optional(__listOf__string), - maximumMatchDistance: S.optional(S.Number), - name: S.optional(S.String), - regex: S.optional(S.String), - severityLevels: S.optional(SeverityLevelList), - tags: S.optional(TagMap), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/custom-data-identifiers" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateCustomDataIdentifierRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + description: S.optional(S.String), + ignoreWords: S.optional(__listOf__string), + keywords: S.optional(__listOf__string), + maximumMatchDistance: S.optional(S.Number), + name: S.optional(S.String), + regex: S.optional(S.String), + severityLevels: S.optional(SeverityLevelList), + tags: S.optional(TagMap), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/custom-data-identifiers" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateCustomDataIdentifierRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateCustomDataIdentifierRequest", +}) as any as S.Schema; export interface CreateCustomDataIdentifierResponse { customDataIdentifierId?: string; } -export const CreateCustomDataIdentifierResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ customDataIdentifierId: S.optional(S.String) }), - ).annotate({ - identifier: "CreateCustomDataIdentifierResponse", - }) as any as S.Schema; +export const CreateCustomDataIdentifierResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ customDataIdentifierId: S.optional(S.String) }), +).annotate({ + identifier: "CreateCustomDataIdentifierResponse", +}) as any as S.Schema; export type FindingsFilterAction = "ARCHIVE" | "NOOP" | (string & {}); export const FindingsFilterAction = /*@__PURE__*/ S.String; export interface CriterionAdditionalProperties { @@ -698,20 +697,19 @@ export interface CriterionAdditionalProperties { lte?: number; neq?: string[]; } -export const CriterionAdditionalProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - eq: S.optional(__listOf__string), - eqExactMatch: S.optional(__listOf__string), - gt: S.optional(S.Number), - gte: S.optional(S.Number), - lt: S.optional(S.Number), - lte: S.optional(S.Number), - neq: S.optional(__listOf__string), - }), - ).annotate({ - identifier: "CriterionAdditionalProperties", - }) as any as S.Schema; +export const CriterionAdditionalProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + eq: S.optional(__listOf__string), + eqExactMatch: S.optional(__listOf__string), + gt: S.optional(S.Number), + gte: S.optional(S.Number), + lt: S.optional(S.Number), + lte: S.optional(S.Number), + neq: S.optional(__listOf__string), + }), +).annotate({ + identifier: "CriterionAdditionalProperties", +}) as any as S.Schema; export type Criterion = { [key: string]: CriterionAdditionalProperties | undefined; }; @@ -736,39 +734,37 @@ export interface CreateFindingsFilterRequest { position?: number; tags?: { [key: string]: string | undefined }; } -export const CreateFindingsFilterRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - action: S.optional(FindingsFilterAction), - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - description: S.optional(S.String), - findingCriteria: S.optional(FindingCriteria), - name: S.optional(S.String), - position: S.optional(S.Number), - tags: S.optional(TagMap), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/findingsfilters" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateFindingsFilterRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + action: S.optional(FindingsFilterAction), + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + description: S.optional(S.String), + findingCriteria: S.optional(FindingCriteria), + name: S.optional(S.String), + position: S.optional(S.Number), + tags: S.optional(TagMap), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/findingsfilters" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateFindingsFilterRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateFindingsFilterRequest", +}) as any as S.Schema; export interface CreateFindingsFilterResponse { arn?: string; id?: string; } -export const CreateFindingsFilterResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ arn: S.optional(S.String), id: S.optional(S.String) }), - ).annotate({ - identifier: "CreateFindingsFilterResponse", - }) as any as S.Schema; +export const CreateFindingsFilterResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ arn: S.optional(S.String), id: S.optional(S.String) }), +).annotate({ + identifier: "CreateFindingsFilterResponse", +}) as any as S.Schema; export interface CreateInvitationsRequest { accountIds?: string[]; disableEmailNotification?: boolean; @@ -874,26 +870,26 @@ export const __listOfFindingType = /*@__PURE__*/ S.Array(FindingType); export interface CreateSampleFindingsRequest { findingTypes?: FindingType[]; } -export const CreateSampleFindingsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ findingTypes: S.optional(__listOfFindingType) }).pipe( - T.all( - T.Http({ method: "POST", uri: "/findings/sample" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateSampleFindingsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ findingTypes: S.optional(__listOfFindingType) }).pipe( + T.all( + T.Http({ method: "POST", uri: "/findings/sample" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateSampleFindingsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateSampleFindingsRequest", +}) as any as S.Schema; export interface CreateSampleFindingsResponse {} -export const CreateSampleFindingsResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "CreateSampleFindingsResponse", - }) as any as S.Schema; +export const CreateSampleFindingsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "CreateSampleFindingsResponse", +}) as any as S.Schema; export interface DeclineInvitationsRequest { accountIds?: string[]; } @@ -949,49 +945,49 @@ export const DeleteAllowListResponse = /*@__PURE__*/ S.suspend(() => export interface DeleteCustomDataIdentifierRequest { id: string; } -export const DeleteCustomDataIdentifierRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ id: S.String.pipe(T.HttpLabel("id")) }).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/custom-data-identifiers/{id}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteCustomDataIdentifierRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ id: S.String.pipe(T.HttpLabel("id")) }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/custom-data-identifiers/{id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteCustomDataIdentifierRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteCustomDataIdentifierRequest", +}) as any as S.Schema; export interface DeleteCustomDataIdentifierResponse {} -export const DeleteCustomDataIdentifierResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteCustomDataIdentifierResponse", - }) as any as S.Schema; +export const DeleteCustomDataIdentifierResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteCustomDataIdentifierResponse", +}) as any as S.Schema; export interface DeleteFindingsFilterRequest { id: string; } -export const DeleteFindingsFilterRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ id: S.String.pipe(T.HttpLabel("id")) }).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/findingsfilters/{id}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteFindingsFilterRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ id: S.String.pipe(T.HttpLabel("id")) }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/findingsfilters/{id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteFindingsFilterRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteFindingsFilterRequest", +}) as any as S.Schema; export interface DeleteFindingsFilterResponse {} -export const DeleteFindingsFilterResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteFindingsFilterResponse", - }) as any as S.Schema; +export const DeleteFindingsFilterResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteFindingsFilterResponse", +}) as any as S.Schema; export interface DeleteInvitationsRequest { accountIds?: string[]; } @@ -1049,20 +1045,19 @@ export interface BucketCriteriaAdditionalProperties { neq?: string[]; prefix?: string; } -export const BucketCriteriaAdditionalProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - eq: S.optional(__listOf__string), - gt: S.optional(S.Number), - gte: S.optional(S.Number), - lt: S.optional(S.Number), - lte: S.optional(S.Number), - neq: S.optional(__listOf__string), - prefix: S.optional(S.String), - }), - ).annotate({ - identifier: "BucketCriteriaAdditionalProperties", - }) as any as S.Schema; +export const BucketCriteriaAdditionalProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + eq: S.optional(__listOf__string), + gt: S.optional(S.Number), + gte: S.optional(S.Number), + lt: S.optional(S.Number), + lte: S.optional(S.Number), + neq: S.optional(__listOf__string), + prefix: S.optional(S.String), + }), +).annotate({ + identifier: "BucketCriteriaAdditionalProperties", +}) as any as S.Schema; export type BucketCriteria = { [key: string]: BucketCriteriaAdditionalProperties | undefined; }; @@ -1152,18 +1147,17 @@ export interface ObjectCountByEncryptionType { unencrypted?: number; unknown?: number; } -export const ObjectCountByEncryptionType = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - customerManaged: S.optional(S.Number), - kmsManaged: S.optional(S.Number), - s3Managed: S.optional(S.Number), - unencrypted: S.optional(S.Number), - unknown: S.optional(S.Number), - }), - ).annotate({ - identifier: "ObjectCountByEncryptionType", - }) as any as S.Schema; +export const ObjectCountByEncryptionType = /*@__PURE__*/ S.suspend(() => + S.Struct({ + customerManaged: S.optional(S.Number), + kmsManaged: S.optional(S.Number), + s3Managed: S.optional(S.Number), + unencrypted: S.optional(S.Number), + unknown: S.optional(S.Number), + }), +).annotate({ + identifier: "ObjectCountByEncryptionType", +}) as any as S.Schema; export type EffectivePermission = | "PUBLIC" | "NOT_PUBLIC" @@ -1234,15 +1228,14 @@ export interface BucketPermissionConfiguration { accountLevelPermissions?: AccountLevelPermissions; bucketLevelPermissions?: BucketLevelPermissions; } -export const BucketPermissionConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - accountLevelPermissions: S.optional(AccountLevelPermissions), - bucketLevelPermissions: S.optional(BucketLevelPermissions), - }), - ).annotate({ - identifier: "BucketPermissionConfiguration", - }) as any as S.Schema; +export const BucketPermissionConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + accountLevelPermissions: S.optional(AccountLevelPermissions), + bucketLevelPermissions: S.optional(BucketLevelPermissions), + }), +).annotate({ + identifier: "BucketPermissionConfiguration", +}) as any as S.Schema; export interface BucketPublicAccess { effectivePermission?: EffectivePermission; permissionConfiguration?: BucketPermissionConfiguration; @@ -1400,21 +1393,20 @@ export const DescribeBucketsResponse = /*@__PURE__*/ S.suspend(() => export interface DescribeClassificationJobRequest { jobId: string; } -export const DescribeClassificationJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ jobId: S.String.pipe(T.HttpLabel("jobId")) }).pipe( - T.all( - T.Http({ method: "GET", uri: "/jobs/{jobId}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeClassificationJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ jobId: S.String.pipe(T.HttpLabel("jobId")) }).pipe( + T.all( + T.Http({ method: "GET", uri: "/jobs/{jobId}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeClassificationJobRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeClassificationJobRequest", +}) as any as S.Schema; export type JobStatus = | "RUNNING" | "PAUSED" @@ -1490,41 +1482,40 @@ export interface DescribeClassificationJobResponse { tags?: { [key: string]: string | undefined }; userPausedDetails?: UserPausedDetails; } -export const DescribeClassificationJobResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - allowListIds: S.optional(__listOf__string), - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - createdAt: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - customDataIdentifierIds: S.optional(__listOf__string), - description: S.optional(S.String), - initialRun: S.optional(S.Boolean), - jobArn: S.optional(S.String), - jobId: S.optional(S.String), - jobStatus: S.optional(JobStatus), - jobType: S.optional(JobType), - lastRunErrorStatus: S.optional(LastRunErrorStatus), - lastRunTime: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - managedDataIdentifierIds: S.optional(__listOf__string), - managedDataIdentifierSelector: S.optional(ManagedDataIdentifierSelector), - name: S.optional(S.String), - s3JobDefinition: S.optional(S3JobDefinition), - samplingPercentage: S.optional(S.Number), - scheduleFrequency: S.optional(JobScheduleFrequency), - statistics: S.optional(Statistics), - tags: S.optional(TagMap), - userPausedDetails: S.optional(UserPausedDetails), - }), - ).annotate({ - identifier: "DescribeClassificationJobResponse", - }) as any as S.Schema; +export const DescribeClassificationJobResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + allowListIds: S.optional(__listOf__string), + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + createdAt: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + customDataIdentifierIds: S.optional(__listOf__string), + description: S.optional(S.String), + initialRun: S.optional(S.Boolean), + jobArn: S.optional(S.String), + jobId: S.optional(S.String), + jobStatus: S.optional(JobStatus), + jobType: S.optional(JobType), + lastRunErrorStatus: S.optional(LastRunErrorStatus), + lastRunTime: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + managedDataIdentifierIds: S.optional(__listOf__string), + managedDataIdentifierSelector: S.optional(ManagedDataIdentifierSelector), + name: S.optional(S.String), + s3JobDefinition: S.optional(S3JobDefinition), + samplingPercentage: S.optional(S.Number), + scheduleFrequency: S.optional(JobScheduleFrequency), + statistics: S.optional(Statistics), + tags: S.optional(TagMap), + userPausedDetails: S.optional(UserPausedDetails), + }), +).annotate({ + identifier: "DescribeClassificationJobResponse", +}) as any as S.Schema; export interface DescribeOrganizationConfigurationRequest {} -export const DescribeOrganizationConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const DescribeOrganizationConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({}).pipe( T.all( T.Http({ method: "GET", uri: "/admin/configuration" }), @@ -1535,9 +1526,9 @@ export const DescribeOrganizationConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "DescribeOrganizationConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeOrganizationConfigurationRequest", +}) as any as S.Schema; export interface DescribeOrganizationConfigurationResponse { autoEnable?: boolean; maxAccountLimitReached?: boolean; @@ -1575,8 +1566,8 @@ export const DisableMacieResponse = /*@__PURE__*/ S.suspend(() => export interface DisableOrganizationAdminAccountRequest { adminAccountId?: string; } -export const DisableOrganizationAdminAccountRequest = - /*@__PURE__*/ S.suspend(() => +export const DisableOrganizationAdminAccountRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ adminAccountId: S.optional(S.String).pipe(T.HttpQuery("adminAccountId")), }).pipe( @@ -1589,14 +1580,15 @@ export const DisableOrganizationAdminAccountRequest = rules, ), ), - ).annotate({ - identifier: "DisableOrganizationAdminAccountRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DisableOrganizationAdminAccountRequest", +}) as any as S.Schema; export interface DisableOrganizationAdminAccountResponse {} -export const DisableOrganizationAdminAccountResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DisableOrganizationAdminAccountResponse", - }) as any as S.Schema; +export const DisableOrganizationAdminAccountResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}), +).annotate({ + identifier: "DisableOrganizationAdminAccountResponse", +}) as any as S.Schema; export interface DisassociateFromAdministratorAccountRequest {} export const DisassociateFromAdministratorAccountRequest = /*@__PURE__*/ S.suspend(() => @@ -1619,8 +1611,8 @@ export const DisassociateFromAdministratorAccountResponse = identifier: "DisassociateFromAdministratorAccountResponse", }) as any as S.Schema; export interface DisassociateFromMasterAccountRequest {} -export const DisassociateFromMasterAccountRequest = - /*@__PURE__*/ S.suspend(() => +export const DisassociateFromMasterAccountRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({}).pipe( T.all( T.Http({ method: "POST", uri: "/master/disassociate" }), @@ -1631,14 +1623,15 @@ export const DisassociateFromMasterAccountRequest = rules, ), ), - ).annotate({ - identifier: "DisassociateFromMasterAccountRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DisassociateFromMasterAccountRequest", +}) as any as S.Schema; export interface DisassociateFromMasterAccountResponse {} -export const DisassociateFromMasterAccountResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DisassociateFromMasterAccountResponse", - }) as any as S.Schema; +export const DisassociateFromMasterAccountResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}), +).annotate({ + identifier: "DisassociateFromMasterAccountResponse", +}) as any as S.Schema; export interface DisassociateMemberRequest { id: string; } @@ -1703,8 +1696,8 @@ export interface EnableOrganizationAdminAccountRequest { adminAccountId?: string; clientToken?: string; } -export const EnableOrganizationAdminAccountRequest = - /*@__PURE__*/ S.suspend(() => +export const EnableOrganizationAdminAccountRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ adminAccountId: S.optional(S.String), clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), @@ -1718,30 +1711,30 @@ export const EnableOrganizationAdminAccountRequest = rules, ), ), - ).annotate({ - identifier: "EnableOrganizationAdminAccountRequest", - }) as any as S.Schema; +).annotate({ + identifier: "EnableOrganizationAdminAccountRequest", +}) as any as S.Schema; export interface EnableOrganizationAdminAccountResponse {} -export const EnableOrganizationAdminAccountResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "EnableOrganizationAdminAccountResponse", - }) as any as S.Schema; +export const EnableOrganizationAdminAccountResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}), +).annotate({ + identifier: "EnableOrganizationAdminAccountResponse", +}) as any as S.Schema; export interface GetAdministratorAccountRequest {} -export const GetAdministratorAccountRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({}).pipe( - T.all( - T.Http({ method: "GET", uri: "/administrator" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetAdministratorAccountRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe( + T.all( + T.Http({ method: "GET", uri: "/administrator" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetAdministratorAccountRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetAdministratorAccountRequest", +}) as any as S.Schema; export type RelationshipStatus = | "Enabled" | "Paused" @@ -1774,12 +1767,11 @@ export const Invitation = /*@__PURE__*/ S.suspend(() => export interface GetAdministratorAccountResponse { administrator?: Invitation; } -export const GetAdministratorAccountResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ administrator: S.optional(Invitation) }), - ).annotate({ - identifier: "GetAdministratorAccountResponse", - }) as any as S.Schema; +export const GetAdministratorAccountResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ administrator: S.optional(Invitation) }), +).annotate({ + identifier: "GetAdministratorAccountResponse", +}) as any as S.Schema; export interface GetAllowListRequest { id: string; } @@ -1927,34 +1919,32 @@ export interface BucketCountByEffectivePermission { publiclyWritable?: number; unknown?: number; } -export const BucketCountByEffectivePermission = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - publiclyAccessible: S.optional(S.Number), - publiclyReadable: S.optional(S.Number), - publiclyWritable: S.optional(S.Number), - unknown: S.optional(S.Number), - }), - ).annotate({ - identifier: "BucketCountByEffectivePermission", - }) as any as S.Schema; +export const BucketCountByEffectivePermission = /*@__PURE__*/ S.suspend(() => + S.Struct({ + publiclyAccessible: S.optional(S.Number), + publiclyReadable: S.optional(S.Number), + publiclyWritable: S.optional(S.Number), + unknown: S.optional(S.Number), + }), +).annotate({ + identifier: "BucketCountByEffectivePermission", +}) as any as S.Schema; export interface BucketCountByEncryptionType { kmsManaged?: number; s3Managed?: number; unencrypted?: number; unknown?: number; } -export const BucketCountByEncryptionType = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - kmsManaged: S.optional(S.Number), - s3Managed: S.optional(S.Number), - unencrypted: S.optional(S.Number), - unknown: S.optional(S.Number), - }), - ).annotate({ - identifier: "BucketCountByEncryptionType", - }) as any as S.Schema; +export const BucketCountByEncryptionType = /*@__PURE__*/ S.suspend(() => + S.Struct({ + kmsManaged: S.optional(S.Number), + s3Managed: S.optional(S.Number), + unencrypted: S.optional(S.Number), + unknown: S.optional(S.Number), + }), +).annotate({ + identifier: "BucketCountByEncryptionType", +}) as any as S.Schema; export interface BucketCountPolicyAllowsUnencryptedObjectUploads { allowsUnencryptedObjectUploads?: number; deniesUnencryptedObjectUploads?: number; @@ -1976,17 +1966,16 @@ export interface BucketCountBySharedAccessType { notShared?: number; unknown?: number; } -export const BucketCountBySharedAccessType = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - external: S.optional(S.Number), - internal: S.optional(S.Number), - notShared: S.optional(S.Number), - unknown: S.optional(S.Number), - }), - ).annotate({ - identifier: "BucketCountBySharedAccessType", - }) as any as S.Schema; +export const BucketCountBySharedAccessType = /*@__PURE__*/ S.suspend(() => + S.Struct({ + external: S.optional(S.Number), + internal: S.optional(S.Number), + notShared: S.optional(S.Number), + unknown: S.optional(S.Number), + }), +).annotate({ + identifier: "BucketCountBySharedAccessType", +}) as any as S.Schema; export interface SensitivityAggregations { classifiableSizeInBytes?: number; publiclyAccessibleCount?: number; @@ -2009,17 +1998,16 @@ export interface BucketStatisticsBySensitivity { notSensitive?: SensitivityAggregations; sensitive?: SensitivityAggregations; } -export const BucketStatisticsBySensitivity = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - classificationError: S.optional(SensitivityAggregations), - notClassified: S.optional(SensitivityAggregations), - notSensitive: S.optional(SensitivityAggregations), - sensitive: S.optional(SensitivityAggregations), - }), - ).annotate({ - identifier: "BucketStatisticsBySensitivity", - }) as any as S.Schema; +export const BucketStatisticsBySensitivity = /*@__PURE__*/ S.suspend(() => + S.Struct({ + classificationError: S.optional(SensitivityAggregations), + notClassified: S.optional(SensitivityAggregations), + notSensitive: S.optional(SensitivityAggregations), + sensitive: S.optional(SensitivityAggregations), + }), +).annotate({ + identifier: "BucketStatisticsBySensitivity", +}) as any as S.Schema; export interface GetBucketStatisticsResponse { bucketCount?: number; bucketCountByEffectivePermission?: BucketCountByEffectivePermission; @@ -2036,33 +2024,32 @@ export interface GetBucketStatisticsResponse { unclassifiableObjectCount?: ObjectLevelStatistics; unclassifiableObjectSizeInBytes?: ObjectLevelStatistics; } -export const GetBucketStatisticsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - bucketCount: S.optional(S.Number), - bucketCountByEffectivePermission: S.optional( - BucketCountByEffectivePermission, - ), - bucketCountByEncryptionType: S.optional(BucketCountByEncryptionType), - bucketCountByObjectEncryptionRequirement: S.optional( - BucketCountPolicyAllowsUnencryptedObjectUploads, - ), - bucketCountBySharedAccessType: S.optional(BucketCountBySharedAccessType), - bucketStatisticsBySensitivity: S.optional(BucketStatisticsBySensitivity), - classifiableObjectCount: S.optional(S.Number), - classifiableSizeInBytes: S.optional(S.Number), - lastUpdated: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - objectCount: S.optional(S.Number), - sizeInBytes: S.optional(S.Number), - sizeInBytesCompressed: S.optional(S.Number), - unclassifiableObjectCount: S.optional(ObjectLevelStatistics), - unclassifiableObjectSizeInBytes: S.optional(ObjectLevelStatistics), - }), - ).annotate({ - identifier: "GetBucketStatisticsResponse", - }) as any as S.Schema; +export const GetBucketStatisticsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + bucketCount: S.optional(S.Number), + bucketCountByEffectivePermission: S.optional( + BucketCountByEffectivePermission, + ), + bucketCountByEncryptionType: S.optional(BucketCountByEncryptionType), + bucketCountByObjectEncryptionRequirement: S.optional( + BucketCountPolicyAllowsUnencryptedObjectUploads, + ), + bucketCountBySharedAccessType: S.optional(BucketCountBySharedAccessType), + bucketStatisticsBySensitivity: S.optional(BucketStatisticsBySensitivity), + classifiableObjectCount: S.optional(S.Number), + classifiableSizeInBytes: S.optional(S.Number), + lastUpdated: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + objectCount: S.optional(S.Number), + sizeInBytes: S.optional(S.Number), + sizeInBytesCompressed: S.optional(S.Number), + unclassifiableObjectCount: S.optional(ObjectLevelStatistics), + unclassifiableObjectSizeInBytes: S.optional(ObjectLevelStatistics), + }), +).annotate({ + identifier: "GetBucketStatisticsResponse", +}) as any as S.Schema; export interface GetClassificationExportConfigurationRequest {} export const GetClassificationExportConfigurationRequest = /*@__PURE__*/ S.suspend(() => @@ -2096,12 +2083,11 @@ export const S3Destination = /*@__PURE__*/ S.suspend(() => export interface ClassificationExportConfiguration { s3Destination?: S3Destination; } -export const ClassificationExportConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ s3Destination: S.optional(S3Destination) }), - ).annotate({ - identifier: "ClassificationExportConfiguration", - }) as any as S.Schema; +export const ClassificationExportConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ s3Destination: S.optional(S3Destination) }), +).annotate({ + identifier: "ClassificationExportConfiguration", +}) as any as S.Schema; export interface GetClassificationExportConfigurationResponse { configuration?: ClassificationExportConfiguration & { s3Destination: S3Destination & { bucketName: string; kmsKeyArn: string }; @@ -2116,32 +2102,30 @@ export const GetClassificationExportConfigurationResponse = export interface GetClassificationScopeRequest { id: string; } -export const GetClassificationScopeRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ id: S.String.pipe(T.HttpLabel("id")) }).pipe( - T.all( - T.Http({ method: "GET", uri: "/classification-scopes/{id}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetClassificationScopeRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ id: S.String.pipe(T.HttpLabel("id")) }).pipe( + T.all( + T.Http({ method: "GET", uri: "/classification-scopes/{id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetClassificationScopeRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetClassificationScopeRequest", +}) as any as S.Schema; export type __listOfS3BucketName = string[]; export const __listOfS3BucketName = /*@__PURE__*/ S.Array(S.String); export interface S3ClassificationScopeExclusion { bucketNames?: string[]; } -export const S3ClassificationScopeExclusion = - /*@__PURE__*/ S.suspend(() => - S.Struct({ bucketNames: S.optional(__listOfS3BucketName) }), - ).annotate({ - identifier: "S3ClassificationScopeExclusion", - }) as any as S.Schema; +export const S3ClassificationScopeExclusion = /*@__PURE__*/ S.suspend(() => + S.Struct({ bucketNames: S.optional(__listOfS3BucketName) }), +).annotate({ + identifier: "S3ClassificationScopeExclusion", +}) as any as S.Schema; export interface S3ClassificationScope { excludes?: S3ClassificationScopeExclusion; } @@ -2159,34 +2143,32 @@ export interface GetClassificationScopeResponse { }; }; } -export const GetClassificationScopeResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.optional(S.String), - name: S.optional(S.String), - s3: S.optional(S3ClassificationScope), - }), - ).annotate({ - identifier: "GetClassificationScopeResponse", - }) as any as S.Schema; +export const GetClassificationScopeResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.optional(S.String), + name: S.optional(S.String), + s3: S.optional(S3ClassificationScope), + }), +).annotate({ + identifier: "GetClassificationScopeResponse", +}) as any as S.Schema; export interface GetCustomDataIdentifierRequest { id: string; } -export const GetCustomDataIdentifierRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ id: S.String.pipe(T.HttpLabel("id")) }).pipe( - T.all( - T.Http({ method: "GET", uri: "/custom-data-identifiers/{id}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetCustomDataIdentifierRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ id: S.String.pipe(T.HttpLabel("id")) }).pipe( + T.all( + T.Http({ method: "GET", uri: "/custom-data-identifiers/{id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetCustomDataIdentifierRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetCustomDataIdentifierRequest", +}) as any as S.Schema; export interface GetCustomDataIdentifierResponse { arn?: string; createdAt?: Date; @@ -2204,27 +2186,26 @@ export interface GetCustomDataIdentifierResponse { })[]; tags?: { [key: string]: string | undefined }; } -export const GetCustomDataIdentifierResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - arn: S.optional(S.String), - createdAt: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - deleted: S.optional(S.Boolean), - description: S.optional(S.String), - id: S.optional(S.String), - ignoreWords: S.optional(__listOf__string), - keywords: S.optional(__listOf__string), - maximumMatchDistance: S.optional(S.Number), - name: S.optional(S.String), - regex: S.optional(S.String), - severityLevels: S.optional(SeverityLevelList), - tags: S.optional(TagMap), - }), - ).annotate({ - identifier: "GetCustomDataIdentifierResponse", - }) as any as S.Schema; +export const GetCustomDataIdentifierResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + arn: S.optional(S.String), + createdAt: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + deleted: S.optional(S.Boolean), + description: S.optional(S.String), + id: S.optional(S.String), + ignoreWords: S.optional(__listOf__string), + keywords: S.optional(__listOf__string), + maximumMatchDistance: S.optional(S.Number), + name: S.optional(S.String), + regex: S.optional(S.String), + severityLevels: S.optional(SeverityLevelList), + tags: S.optional(TagMap), + }), +).annotate({ + identifier: "GetCustomDataIdentifierResponse", +}) as any as S.Schema; export interface SortCriteria { attributeName?: string; orderBy?: OrderBy; @@ -2977,41 +2958,39 @@ export interface FindingStatisticsSortCriteria { attributeName?: FindingStatisticsSortAttributeName; orderBy?: OrderBy; } -export const FindingStatisticsSortCriteria = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - attributeName: S.optional(FindingStatisticsSortAttributeName), - orderBy: S.optional(OrderBy), - }), - ).annotate({ - identifier: "FindingStatisticsSortCriteria", - }) as any as S.Schema; +export const FindingStatisticsSortCriteria = /*@__PURE__*/ S.suspend(() => + S.Struct({ + attributeName: S.optional(FindingStatisticsSortAttributeName), + orderBy: S.optional(OrderBy), + }), +).annotate({ + identifier: "FindingStatisticsSortCriteria", +}) as any as S.Schema; export interface GetFindingStatisticsRequest { findingCriteria?: FindingCriteria; groupBy?: GroupBy; size?: number; sortCriteria?: FindingStatisticsSortCriteria; } -export const GetFindingStatisticsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - findingCriteria: S.optional(FindingCriteria), - groupBy: S.optional(GroupBy), - size: S.optional(S.Number), - sortCriteria: S.optional(FindingStatisticsSortCriteria), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/findings/statistics" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetFindingStatisticsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + findingCriteria: S.optional(FindingCriteria), + groupBy: S.optional(GroupBy), + size: S.optional(S.Number), + sortCriteria: S.optional(FindingStatisticsSortCriteria), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/findings/statistics" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetFindingStatisticsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetFindingStatisticsRequest", +}) as any as S.Schema; export interface GroupCount { count?: number; groupKey?: string; @@ -3024,12 +3003,11 @@ export const __listOfGroupCount = /*@__PURE__*/ S.Array(GroupCount); export interface GetFindingStatisticsResponse { countsByGroup?: GroupCount[]; } -export const GetFindingStatisticsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ countsByGroup: S.optional(__listOfGroupCount) }), - ).annotate({ - identifier: "GetFindingStatisticsResponse", - }) as any as S.Schema; +export const GetFindingStatisticsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ countsByGroup: S.optional(__listOfGroupCount) }), +).annotate({ + identifier: "GetFindingStatisticsResponse", +}) as any as S.Schema; export interface GetInvitationsCountRequest {} export const GetInvitationsCountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe( @@ -3048,12 +3026,11 @@ export const GetInvitationsCountRequest = /*@__PURE__*/ S.suspend(() => export interface GetInvitationsCountResponse { invitationsCount?: number; } -export const GetInvitationsCountResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ invitationsCount: S.optional(S.Number) }), - ).annotate({ - identifier: "GetInvitationsCountResponse", - }) as any as S.Schema; +export const GetInvitationsCountResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ invitationsCount: S.optional(S.Number) }), +).annotate({ + identifier: "GetInvitationsCountResponse", +}) as any as S.Schema; export interface GetMacieSessionRequest {} export const GetMacieSessionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe( @@ -3225,21 +3202,20 @@ export const GetResourceProfileResponse = /*@__PURE__*/ S.suspend(() => identifier: "GetResourceProfileResponse", }) as any as S.Schema; export interface GetRevealConfigurationRequest {} -export const GetRevealConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({}).pipe( - T.all( - T.Http({ method: "GET", uri: "/reveal-configuration" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetRevealConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe( + T.all( + T.Http({ method: "GET", uri: "/reveal-configuration" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetRevealConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetRevealConfigurationRequest", +}) as any as S.Schema; export type RevealStatus = "ENABLED" | "DISABLED" | (string & {}); export const RevealStatus = /*@__PURE__*/ S.String; export interface RevealConfiguration { @@ -3279,38 +3255,36 @@ export interface GetRevealConfigurationResponse { retrievalMode: RetrievalMode; }; } -export const GetRevealConfigurationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - configuration: S.optional(RevealConfiguration), - retrievalConfiguration: S.optional(RetrievalConfiguration), - }), - ).annotate({ - identifier: "GetRevealConfigurationResponse", - }) as any as S.Schema; +export const GetRevealConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + configuration: S.optional(RevealConfiguration), + retrievalConfiguration: S.optional(RetrievalConfiguration), + }), +).annotate({ + identifier: "GetRevealConfigurationResponse", +}) as any as S.Schema; export interface GetSensitiveDataOccurrencesRequest { findingId: string; } -export const GetSensitiveDataOccurrencesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ findingId: S.String.pipe(T.HttpLabel("findingId")) }).pipe( - T.all( - T.Http({ method: "GET", uri: "/findings/{findingId}/reveal" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetSensitiveDataOccurrencesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ findingId: S.String.pipe(T.HttpLabel("findingId")) }).pipe( + T.all( + T.Http({ method: "GET", uri: "/findings/{findingId}/reveal" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetSensitiveDataOccurrencesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetSensitiveDataOccurrencesRequest", +}) as any as S.Schema; export interface DetectedDataDetails { - value?: string; + value?: string | redacted.Redacted; } export const DetectedDataDetails = /*@__PURE__*/ S.suspend(() => - S.Struct({ value: S.optional(S.String) }), + S.Struct({ value: S.optional(SensitiveString) }), ).annotate({ identifier: "DetectedDataDetails", }) as any as S.Schema; @@ -3339,16 +3313,15 @@ export interface GetSensitiveDataOccurrencesResponse { }; status?: RevealRequestStatus; } -export const GetSensitiveDataOccurrencesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - error: S.optional(S.String), - sensitiveDataOccurrences: S.optional(SensitiveDataOccurrences), - status: S.optional(RevealRequestStatus), - }), - ).annotate({ - identifier: "GetSensitiveDataOccurrencesResponse", - }) as any as S.Schema; +export const GetSensitiveDataOccurrencesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + error: S.optional(S.String), + sensitiveDataOccurrences: S.optional(SensitiveDataOccurrences), + status: S.optional(RevealRequestStatus), + }), +).annotate({ + identifier: "GetSensitiveDataOccurrencesResponse", +}) as any as S.Schema; export interface GetSensitiveDataOccurrencesAvailabilityRequest { findingId: string; } @@ -3387,8 +3360,9 @@ export type UnavailabilityReasonCode = | (string & {}); export const UnavailabilityReasonCode = /*@__PURE__*/ S.String; export type __listOfUnavailabilityReasonCode = UnavailabilityReasonCode[]; -export const __listOfUnavailabilityReasonCode = - /*@__PURE__*/ S.Array(UnavailabilityReasonCode); +export const __listOfUnavailabilityReasonCode = /*@__PURE__*/ S.Array( + UnavailabilityReasonCode, +); export interface GetSensitiveDataOccurrencesAvailabilityResponse { code?: AvailabilityCode; reasons?: UnavailabilityReasonCode[]; @@ -3405,8 +3379,8 @@ export const GetSensitiveDataOccurrencesAvailabilityResponse = export interface GetSensitivityInspectionTemplateRequest { id: string; } -export const GetSensitivityInspectionTemplateRequest = - /*@__PURE__*/ S.suspend(() => +export const GetSensitivityInspectionTemplateRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ id: S.String.pipe(T.HttpLabel("id")) }).pipe( T.all( T.Http({ @@ -3420,33 +3394,32 @@ export const GetSensitivityInspectionTemplateRequest = rules, ), ), - ).annotate({ - identifier: "GetSensitivityInspectionTemplateRequest", - }) as any as S.Schema; +).annotate({ + identifier: "GetSensitivityInspectionTemplateRequest", +}) as any as S.Schema; export interface SensitivityInspectionTemplateExcludes { managedDataIdentifierIds?: string[]; } -export const SensitivityInspectionTemplateExcludes = - /*@__PURE__*/ S.suspend(() => - S.Struct({ managedDataIdentifierIds: S.optional(__listOf__string) }), - ).annotate({ - identifier: "SensitivityInspectionTemplateExcludes", - }) as any as S.Schema; +export const SensitivityInspectionTemplateExcludes = /*@__PURE__*/ S.suspend( + () => S.Struct({ managedDataIdentifierIds: S.optional(__listOf__string) }), +).annotate({ + identifier: "SensitivityInspectionTemplateExcludes", +}) as any as S.Schema; export interface SensitivityInspectionTemplateIncludes { allowListIds?: string[]; customDataIdentifierIds?: string[]; managedDataIdentifierIds?: string[]; } -export const SensitivityInspectionTemplateIncludes = - /*@__PURE__*/ S.suspend(() => +export const SensitivityInspectionTemplateIncludes = /*@__PURE__*/ S.suspend( + () => S.Struct({ allowListIds: S.optional(__listOf__string), customDataIdentifierIds: S.optional(__listOf__string), managedDataIdentifierIds: S.optional(__listOf__string), }), - ).annotate({ - identifier: "SensitivityInspectionTemplateIncludes", - }) as any as S.Schema; +).annotate({ + identifier: "SensitivityInspectionTemplateIncludes", +}) as any as S.Schema; export interface GetSensitivityInspectionTemplateResponse { description?: string; excludes?: SensitivityInspectionTemplateExcludes; @@ -3454,8 +3427,8 @@ export interface GetSensitivityInspectionTemplateResponse { name?: string; sensitivityInspectionTemplateId?: string; } -export const GetSensitivityInspectionTemplateResponse = - /*@__PURE__*/ S.suspend(() => +export const GetSensitivityInspectionTemplateResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ description: S.optional(S.String), excludes: S.optional(SensitivityInspectionTemplateExcludes), @@ -3463,9 +3436,9 @@ export const GetSensitivityInspectionTemplateResponse = name: S.optional(S.String), sensitivityInspectionTemplateId: S.optional(S.String), }), - ).annotate({ - identifier: "GetSensitivityInspectionTemplateResponse", - }) as any as S.Schema; +).annotate({ + identifier: "GetSensitivityInspectionTemplateResponse", +}) as any as S.Schema; export type UsageStatisticsFilterComparator = | "GT" | "GTE" @@ -3498,8 +3471,9 @@ export const UsageStatisticsFilter = /*@__PURE__*/ S.suspend(() => identifier: "UsageStatisticsFilter", }) as any as S.Schema; export type __listOfUsageStatisticsFilter = UsageStatisticsFilter[]; -export const __listOfUsageStatisticsFilter = - /*@__PURE__*/ S.Array(UsageStatisticsFilter); +export const __listOfUsageStatisticsFilter = /*@__PURE__*/ S.Array( + UsageStatisticsFilter, +); export type UsageStatisticsSortKey = | "accountId" | "total" @@ -3730,8 +3704,8 @@ export interface ListAutomatedDiscoveryAccountsRequest { maxResults?: number; nextToken?: string; } -export const ListAutomatedDiscoveryAccountsRequest = - /*@__PURE__*/ S.suspend(() => +export const ListAutomatedDiscoveryAccountsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ accountIds: S.optional(__listOf__string).pipe(T.HttpQuery("accountIds")), maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), @@ -3746,9 +3720,9 @@ export const ListAutomatedDiscoveryAccountsRequest = rules, ), ), - ).annotate({ - identifier: "ListAutomatedDiscoveryAccountsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListAutomatedDiscoveryAccountsRequest", +}) as any as S.Schema; export interface AutomatedDiscoveryAccount { accountId?: string; status?: AutomatedDiscoveryAccountStatus; @@ -3762,21 +3736,22 @@ export const AutomatedDiscoveryAccount = /*@__PURE__*/ S.suspend(() => identifier: "AutomatedDiscoveryAccount", }) as any as S.Schema; export type __listOfAutomatedDiscoveryAccount = AutomatedDiscoveryAccount[]; -export const __listOfAutomatedDiscoveryAccount = - /*@__PURE__*/ S.Array(AutomatedDiscoveryAccount); +export const __listOfAutomatedDiscoveryAccount = /*@__PURE__*/ S.Array( + AutomatedDiscoveryAccount, +); export interface ListAutomatedDiscoveryAccountsResponse { items?: AutomatedDiscoveryAccount[]; nextToken?: string; } -export const ListAutomatedDiscoveryAccountsResponse = - /*@__PURE__*/ S.suspend(() => +export const ListAutomatedDiscoveryAccountsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ items: S.optional(__listOfAutomatedDiscoveryAccount), nextToken: S.optional(S.String), }), - ).annotate({ - identifier: "ListAutomatedDiscoveryAccountsResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListAutomatedDiscoveryAccountsResponse", +}) as any as S.Schema; export type ListJobsFilterKey = | "jobType" | "jobStatus" @@ -3838,26 +3813,25 @@ export interface ListClassificationJobsRequest { nextToken?: string; sortCriteria?: ListJobsSortCriteria; } -export const ListClassificationJobsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - filterCriteria: S.optional(ListJobsFilterCriteria), - maxResults: S.optional(S.Number), - nextToken: S.optional(S.String), - sortCriteria: S.optional(ListJobsSortCriteria), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/jobs/list" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListClassificationJobsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + filterCriteria: S.optional(ListJobsFilterCriteria), + maxResults: S.optional(S.Number), + nextToken: S.optional(S.String), + sortCriteria: S.optional(ListJobsSortCriteria), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/jobs/list" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListClassificationJobsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListClassificationJobsRequest", +}) as any as S.Schema; export interface JobSummary { bucketCriteria?: S3BucketCriteriaForJob; bucketDefinitions?: S3BucketDefinitionForJob[]; @@ -3895,37 +3869,35 @@ export interface ListClassificationJobsResponse { })[]; nextToken?: string; } -export const ListClassificationJobsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - items: S.optional(__listOfJobSummary), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListClassificationJobsResponse", - }) as any as S.Schema; +export const ListClassificationJobsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + items: S.optional(__listOfJobSummary), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListClassificationJobsResponse", +}) as any as S.Schema; export interface ListClassificationScopesRequest { name?: string; nextToken?: string; } -export const ListClassificationScopesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.optional(S.String).pipe(T.HttpQuery("name")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/classification-scopes" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListClassificationScopesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.optional(S.String).pipe(T.HttpQuery("name")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/classification-scopes" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListClassificationScopesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListClassificationScopesRequest", +}) as any as S.Schema; export interface ClassificationScopeSummary { id?: string; name?: string; @@ -3936,43 +3908,42 @@ export const ClassificationScopeSummary = /*@__PURE__*/ S.suspend(() => identifier: "ClassificationScopeSummary", }) as any as S.Schema; export type __listOfClassificationScopeSummary = ClassificationScopeSummary[]; -export const __listOfClassificationScopeSummary = - /*@__PURE__*/ S.Array(ClassificationScopeSummary); +export const __listOfClassificationScopeSummary = /*@__PURE__*/ S.Array( + ClassificationScopeSummary, +); export interface ListClassificationScopesResponse { classificationScopes?: ClassificationScopeSummary[]; nextToken?: string; } -export const ListClassificationScopesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - classificationScopes: S.optional(__listOfClassificationScopeSummary), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListClassificationScopesResponse", - }) as any as S.Schema; +export const ListClassificationScopesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + classificationScopes: S.optional(__listOfClassificationScopeSummary), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListClassificationScopesResponse", +}) as any as S.Schema; export interface ListCustomDataIdentifiersRequest { maxResults?: number; nextToken?: string; } -export const ListCustomDataIdentifiersRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - maxResults: S.optional(S.Number), - nextToken: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/custom-data-identifiers/list" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListCustomDataIdentifiersRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + maxResults: S.optional(S.Number), + nextToken: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/custom-data-identifiers/list" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListCustomDataIdentifiersRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListCustomDataIdentifiersRequest", +}) as any as S.Schema; export interface CustomDataIdentifierSummary { arn?: string; createdAt?: Date; @@ -3980,36 +3951,35 @@ export interface CustomDataIdentifierSummary { id?: string; name?: string; } -export const CustomDataIdentifierSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - arn: S.optional(S.String), - createdAt: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - description: S.optional(S.String), - id: S.optional(S.String), - name: S.optional(S.String), - }), - ).annotate({ - identifier: "CustomDataIdentifierSummary", - }) as any as S.Schema; +export const CustomDataIdentifierSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + arn: S.optional(S.String), + createdAt: S.optional( + T.DateFromString.pipe(T.TimestampFormat("date-time")), + ), + description: S.optional(S.String), + id: S.optional(S.String), + name: S.optional(S.String), + }), +).annotate({ + identifier: "CustomDataIdentifierSummary", +}) as any as S.Schema; export type __listOfCustomDataIdentifierSummary = CustomDataIdentifierSummary[]; -export const __listOfCustomDataIdentifierSummary = - /*@__PURE__*/ S.Array(CustomDataIdentifierSummary); +export const __listOfCustomDataIdentifierSummary = /*@__PURE__*/ S.Array( + CustomDataIdentifierSummary, +); export interface ListCustomDataIdentifiersResponse { items?: CustomDataIdentifierSummary[]; nextToken?: string; } -export const ListCustomDataIdentifiersResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - items: S.optional(__listOfCustomDataIdentifierSummary), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListCustomDataIdentifiersResponse", - }) as any as S.Schema; +export const ListCustomDataIdentifiersResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + items: S.optional(__listOfCustomDataIdentifierSummary), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListCustomDataIdentifiersResponse", +}) as any as S.Schema; export interface ListFindingsRequest { findingCriteria?: FindingCriteria; maxResults?: number; @@ -4087,21 +4057,21 @@ export const FindingsFilterListItem = /*@__PURE__*/ S.suspend(() => identifier: "FindingsFilterListItem", }) as any as S.Schema; export type __listOfFindingsFilterListItem = FindingsFilterListItem[]; -export const __listOfFindingsFilterListItem = - /*@__PURE__*/ S.Array(FindingsFilterListItem); +export const __listOfFindingsFilterListItem = /*@__PURE__*/ S.Array( + FindingsFilterListItem, +); export interface ListFindingsFiltersResponse { findingsFilterListItems?: FindingsFilterListItem[]; nextToken?: string; } -export const ListFindingsFiltersResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - findingsFilterListItems: S.optional(__listOfFindingsFilterListItem), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListFindingsFiltersResponse", - }) as any as S.Schema; +export const ListFindingsFiltersResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + findingsFilterListItems: S.optional(__listOfFindingsFilterListItem), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListFindingsFiltersResponse", +}) as any as S.Schema; export interface ListInvitationsRequest { maxResults?: number; nextToken?: string; @@ -4140,51 +4110,49 @@ export const ListInvitationsResponse = /*@__PURE__*/ S.suspend(() => export interface ListManagedDataIdentifiersRequest { nextToken?: string; } -export const ListManagedDataIdentifiersRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ nextToken: S.optional(S.String) }).pipe( - T.all( - T.Http({ method: "POST", uri: "/managed-data-identifiers/list" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListManagedDataIdentifiersRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ nextToken: S.optional(S.String) }).pipe( + T.all( + T.Http({ method: "POST", uri: "/managed-data-identifiers/list" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListManagedDataIdentifiersRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListManagedDataIdentifiersRequest", +}) as any as S.Schema; export interface ManagedDataIdentifierSummary { category?: SensitiveDataItemCategory; id?: string; } -export const ManagedDataIdentifierSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - category: S.optional(SensitiveDataItemCategory), - id: S.optional(S.String), - }), - ).annotate({ - identifier: "ManagedDataIdentifierSummary", - }) as any as S.Schema; +export const ManagedDataIdentifierSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + category: S.optional(SensitiveDataItemCategory), + id: S.optional(S.String), + }), +).annotate({ + identifier: "ManagedDataIdentifierSummary", +}) as any as S.Schema; export type __listOfManagedDataIdentifierSummary = ManagedDataIdentifierSummary[]; -export const __listOfManagedDataIdentifierSummary = - /*@__PURE__*/ S.Array(ManagedDataIdentifierSummary); +export const __listOfManagedDataIdentifierSummary = /*@__PURE__*/ S.Array( + ManagedDataIdentifierSummary, +); export interface ListManagedDataIdentifiersResponse { items?: ManagedDataIdentifierSummary[]; nextToken?: string; } -export const ListManagedDataIdentifiersResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - items: S.optional(__listOfManagedDataIdentifierSummary), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListManagedDataIdentifiersResponse", - }) as any as S.Schema; +export const ListManagedDataIdentifiersResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + items: S.optional(__listOfManagedDataIdentifierSummary), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListManagedDataIdentifiersResponse", +}) as any as S.Schema; export interface ListMembersRequest { maxResults?: number; nextToken?: string; @@ -4254,8 +4222,8 @@ export interface ListOrganizationAdminAccountsRequest { maxResults?: number; nextToken?: string; } -export const ListOrganizationAdminAccountsRequest = - /*@__PURE__*/ S.suspend(() => +export const ListOrganizationAdminAccountsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), @@ -4269,9 +4237,9 @@ export const ListOrganizationAdminAccountsRequest = rules, ), ), - ).annotate({ - identifier: "ListOrganizationAdminAccountsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListOrganizationAdminAccountsRequest", +}) as any as S.Schema; export type AdminStatus = "ENABLED" | "DISABLING_IN_PROGRESS" | (string & {}); export const AdminStatus = /*@__PURE__*/ S.String; export interface AdminAccount { @@ -4290,37 +4258,36 @@ export interface ListOrganizationAdminAccountsResponse { adminAccounts?: AdminAccount[]; nextToken?: string; } -export const ListOrganizationAdminAccountsResponse = - /*@__PURE__*/ S.suspend(() => +export const ListOrganizationAdminAccountsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ adminAccounts: S.optional(__listOfAdminAccount), nextToken: S.optional(S.String), }), - ).annotate({ - identifier: "ListOrganizationAdminAccountsResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListOrganizationAdminAccountsResponse", +}) as any as S.Schema; export interface ListResourceProfileArtifactsRequest { nextToken?: string; resourceArn?: string; } -export const ListResourceProfileArtifactsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - resourceArn: S.optional(S.String).pipe(T.HttpQuery("resourceArn")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/resource-profiles/artifacts" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListResourceProfileArtifactsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + resourceArn: S.optional(S.String).pipe(T.HttpQuery("resourceArn")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/resource-profiles/artifacts" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListResourceProfileArtifactsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListResourceProfileArtifactsRequest", +}) as any as S.Schema; export interface ResourceProfileArtifact { arn?: string; classificationResultStatus?: string; @@ -4336,8 +4303,9 @@ export const ResourceProfileArtifact = /*@__PURE__*/ S.suspend(() => identifier: "ResourceProfileArtifact", }) as any as S.Schema; export type __listOfResourceProfileArtifact = ResourceProfileArtifact[]; -export const __listOfResourceProfileArtifact = - /*@__PURE__*/ S.Array(ResourceProfileArtifact); +export const __listOfResourceProfileArtifact = /*@__PURE__*/ S.Array( + ResourceProfileArtifact, +); export interface ListResourceProfileArtifactsResponse { artifacts?: (ResourceProfileArtifact & { arn: string; @@ -4345,22 +4313,22 @@ export interface ListResourceProfileArtifactsResponse { })[]; nextToken?: string; } -export const ListResourceProfileArtifactsResponse = - /*@__PURE__*/ S.suspend(() => +export const ListResourceProfileArtifactsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ artifacts: S.optional(__listOfResourceProfileArtifact), nextToken: S.optional(S.String), }), - ).annotate({ - identifier: "ListResourceProfileArtifactsResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListResourceProfileArtifactsResponse", +}) as any as S.Schema; export interface ListResourceProfileDetectionsRequest { maxResults?: number; nextToken?: string; resourceArn?: string; } -export const ListResourceProfileDetectionsRequest = - /*@__PURE__*/ S.suspend(() => +export const ListResourceProfileDetectionsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), @@ -4375,9 +4343,9 @@ export const ListResourceProfileDetectionsRequest = rules, ), ), - ).annotate({ - identifier: "ListResourceProfileDetectionsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListResourceProfileDetectionsRequest", +}) as any as S.Schema; export type DataIdentifierType = "CUSTOM" | "MANAGED" | (string & {}); export const DataIdentifierType = /*@__PURE__*/ S.String; export interface Detection { @@ -4404,15 +4372,15 @@ export interface ListResourceProfileDetectionsResponse { detections?: Detection[]; nextToken?: string; } -export const ListResourceProfileDetectionsResponse = - /*@__PURE__*/ S.suspend(() => +export const ListResourceProfileDetectionsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ detections: S.optional(__listOfDetection), nextToken: S.optional(S.String), }), - ).annotate({ - identifier: "ListResourceProfileDetectionsResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListResourceProfileDetectionsResponse", +}) as any as S.Schema; export interface ListSensitivityInspectionTemplatesRequest { maxResults?: number; nextToken?: string; @@ -4439,12 +4407,11 @@ export interface SensitivityInspectionTemplatesEntry { id?: string; name?: string; } -export const SensitivityInspectionTemplatesEntry = - /*@__PURE__*/ S.suspend(() => - S.Struct({ id: S.optional(S.String), name: S.optional(S.String) }), - ).annotate({ - identifier: "SensitivityInspectionTemplatesEntry", - }) as any as S.Schema; +export const SensitivityInspectionTemplatesEntry = /*@__PURE__*/ S.suspend(() => + S.Struct({ id: S.optional(S.String), name: S.optional(S.String) }), +).annotate({ + identifier: "SensitivityInspectionTemplatesEntry", +}) as any as S.Schema; export type __listOfSensitivityInspectionTemplatesEntry = SensitivityInspectionTemplatesEntry[]; export const __listOfSensitivityInspectionTemplatesEntry = @@ -4484,12 +4451,11 @@ export const ListTagsForResourceRequest = /*@__PURE__*/ S.suspend(() => export interface ListTagsForResourceResponse { tags?: { [key: string]: string | undefined }; } -export const ListTagsForResourceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ tags: S.optional(TagMap) }), - ).annotate({ - identifier: "ListTagsForResourceResponse", - }) as any as S.Schema; +export const ListTagsForResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ tags: S.optional(TagMap) }), +).annotate({ + identifier: "ListTagsForResourceResponse", +}) as any as S.Schema; export interface PutClassificationExportConfigurationRequest { configuration?: ClassificationExportConfiguration; } @@ -4563,43 +4529,41 @@ export interface SearchResourcesSimpleCriterion { key?: SearchResourcesSimpleCriterionKey; values?: string[]; } -export const SearchResourcesSimpleCriterion = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - comparator: S.optional(SearchResourcesComparator), - key: S.optional(SearchResourcesSimpleCriterionKey), - values: S.optional(__listOf__string), - }), - ).annotate({ - identifier: "SearchResourcesSimpleCriterion", - }) as any as S.Schema; +export const SearchResourcesSimpleCriterion = /*@__PURE__*/ S.suspend(() => + S.Struct({ + comparator: S.optional(SearchResourcesComparator), + key: S.optional(SearchResourcesSimpleCriterionKey), + values: S.optional(__listOf__string), + }), +).annotate({ + identifier: "SearchResourcesSimpleCriterion", +}) as any as S.Schema; export interface SearchResourcesTagCriterionPair { key?: string; value?: string; } -export const SearchResourcesTagCriterionPair = - /*@__PURE__*/ S.suspend(() => - S.Struct({ key: S.optional(S.String), value: S.optional(S.String) }), - ).annotate({ - identifier: "SearchResourcesTagCriterionPair", - }) as any as S.Schema; +export const SearchResourcesTagCriterionPair = /*@__PURE__*/ S.suspend(() => + S.Struct({ key: S.optional(S.String), value: S.optional(S.String) }), +).annotate({ + identifier: "SearchResourcesTagCriterionPair", +}) as any as S.Schema; export type __listOfSearchResourcesTagCriterionPair = SearchResourcesTagCriterionPair[]; -export const __listOfSearchResourcesTagCriterionPair = - /*@__PURE__*/ S.Array(SearchResourcesTagCriterionPair); +export const __listOfSearchResourcesTagCriterionPair = /*@__PURE__*/ S.Array( + SearchResourcesTagCriterionPair, +); export interface SearchResourcesTagCriterion { comparator?: SearchResourcesComparator; tagValues?: SearchResourcesTagCriterionPair[]; } -export const SearchResourcesTagCriterion = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - comparator: S.optional(SearchResourcesComparator), - tagValues: S.optional(__listOfSearchResourcesTagCriterionPair), - }), - ).annotate({ - identifier: "SearchResourcesTagCriterion", - }) as any as S.Schema; +export const SearchResourcesTagCriterion = /*@__PURE__*/ S.suspend(() => + S.Struct({ + comparator: S.optional(SearchResourcesComparator), + tagValues: S.optional(__listOfSearchResourcesTagCriterionPair), + }), +).annotate({ + identifier: "SearchResourcesTagCriterion", +}) as any as S.Schema; export interface SearchResourcesCriteria { simpleCriterion?: SearchResourcesSimpleCriterion; tagCriterion?: SearchResourcesTagCriterion; @@ -4613,30 +4577,29 @@ export const SearchResourcesCriteria = /*@__PURE__*/ S.suspend(() => identifier: "SearchResourcesCriteria", }) as any as S.Schema; export type __listOfSearchResourcesCriteria = SearchResourcesCriteria[]; -export const __listOfSearchResourcesCriteria = - /*@__PURE__*/ S.Array(SearchResourcesCriteria); +export const __listOfSearchResourcesCriteria = /*@__PURE__*/ S.Array( + SearchResourcesCriteria, +); export interface SearchResourcesCriteriaBlock { and?: SearchResourcesCriteria[]; } -export const SearchResourcesCriteriaBlock = - /*@__PURE__*/ S.suspend(() => - S.Struct({ and: S.optional(__listOfSearchResourcesCriteria) }), - ).annotate({ - identifier: "SearchResourcesCriteriaBlock", - }) as any as S.Schema; +export const SearchResourcesCriteriaBlock = /*@__PURE__*/ S.suspend(() => + S.Struct({ and: S.optional(__listOfSearchResourcesCriteria) }), +).annotate({ + identifier: "SearchResourcesCriteriaBlock", +}) as any as S.Schema; export interface SearchResourcesBucketCriteria { excludes?: SearchResourcesCriteriaBlock; includes?: SearchResourcesCriteriaBlock; } -export const SearchResourcesBucketCriteria = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - excludes: S.optional(SearchResourcesCriteriaBlock), - includes: S.optional(SearchResourcesCriteriaBlock), - }), - ).annotate({ - identifier: "SearchResourcesBucketCriteria", - }) as any as S.Schema; +export const SearchResourcesBucketCriteria = /*@__PURE__*/ S.suspend(() => + S.Struct({ + excludes: S.optional(SearchResourcesCriteriaBlock), + includes: S.optional(SearchResourcesCriteriaBlock), + }), +).annotate({ + identifier: "SearchResourcesBucketCriteria", +}) as any as S.Schema; export type SearchResourcesSortAttributeName = | "ACCOUNT_ID" | "RESOURCE_NAME" @@ -4648,15 +4611,14 @@ export interface SearchResourcesSortCriteria { attributeName?: SearchResourcesSortAttributeName; orderBy?: OrderBy; } -export const SearchResourcesSortCriteria = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - attributeName: S.optional(SearchResourcesSortAttributeName), - orderBy: S.optional(OrderBy), - }), - ).annotate({ - identifier: "SearchResourcesSortCriteria", - }) as any as S.Schema; +export const SearchResourcesSortCriteria = /*@__PURE__*/ S.suspend(() => + S.Struct({ + attributeName: S.optional(SearchResourcesSortAttributeName), + orderBy: S.optional(OrderBy), + }), +).annotate({ + identifier: "SearchResourcesSortCriteria", +}) as any as S.Schema; export interface SearchResourcesRequest { bucketCriteria?: SearchResourcesBucketCriteria; maxResults?: number; @@ -4780,36 +4742,34 @@ export interface TestCustomDataIdentifierRequest { regex?: string; sampleText?: string; } -export const TestCustomDataIdentifierRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ignoreWords: S.optional(__listOf__string), - keywords: S.optional(__listOf__string), - maximumMatchDistance: S.optional(S.Number), - regex: S.optional(S.String), - sampleText: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/custom-data-identifiers/test" }), - svc, - auth, - proto, - ver, - rules, - ), +export const TestCustomDataIdentifierRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ignoreWords: S.optional(__listOf__string), + keywords: S.optional(__listOf__string), + maximumMatchDistance: S.optional(S.Number), + regex: S.optional(S.String), + sampleText: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/custom-data-identifiers/test" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "TestCustomDataIdentifierRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "TestCustomDataIdentifierRequest", +}) as any as S.Schema; export interface TestCustomDataIdentifierResponse { matchCount?: number; } -export const TestCustomDataIdentifierResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ matchCount: S.optional(S.Number) }), - ).annotate({ - identifier: "TestCustomDataIdentifierResponse", - }) as any as S.Schema; +export const TestCustomDataIdentifierResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ matchCount: S.optional(S.Number) }), +).annotate({ + identifier: "TestCustomDataIdentifierResponse", +}) as any as S.Schema; export interface UntagResourceRequest { resourceArn: string; tagKeys?: string[]; @@ -4902,29 +4862,29 @@ export interface UpdateClassificationJobRequest { jobId: string; jobStatus?: JobStatus; } -export const UpdateClassificationJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - jobId: S.String.pipe(T.HttpLabel("jobId")), - jobStatus: S.optional(JobStatus), - }).pipe( - T.all( - T.Http({ method: "PATCH", uri: "/jobs/{jobId}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateClassificationJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + jobId: S.String.pipe(T.HttpLabel("jobId")), + jobStatus: S.optional(JobStatus), + }).pipe( + T.all( + T.Http({ method: "PATCH", uri: "/jobs/{jobId}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateClassificationJobRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateClassificationJobRequest", +}) as any as S.Schema; export interface UpdateClassificationJobResponse {} -export const UpdateClassificationJobResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateClassificationJobResponse", - }) as any as S.Schema; +export const UpdateClassificationJobResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "UpdateClassificationJobResponse", +}) as any as S.Schema; export type ClassificationScopeUpdateOperation = | "ADD" | "REPLACE" @@ -4935,51 +4895,50 @@ export interface S3ClassificationScopeExclusionUpdate { bucketNames?: string[]; operation?: ClassificationScopeUpdateOperation; } -export const S3ClassificationScopeExclusionUpdate = - /*@__PURE__*/ S.suspend(() => +export const S3ClassificationScopeExclusionUpdate = /*@__PURE__*/ S.suspend( + () => S.Struct({ bucketNames: S.optional(__listOfS3BucketName), operation: S.optional(ClassificationScopeUpdateOperation), }), - ).annotate({ - identifier: "S3ClassificationScopeExclusionUpdate", - }) as any as S.Schema; +).annotate({ + identifier: "S3ClassificationScopeExclusionUpdate", +}) as any as S.Schema; export interface S3ClassificationScopeUpdate { excludes?: S3ClassificationScopeExclusionUpdate; } -export const S3ClassificationScopeUpdate = - /*@__PURE__*/ S.suspend(() => - S.Struct({ excludes: S.optional(S3ClassificationScopeExclusionUpdate) }), - ).annotate({ - identifier: "S3ClassificationScopeUpdate", - }) as any as S.Schema; +export const S3ClassificationScopeUpdate = /*@__PURE__*/ S.suspend(() => + S.Struct({ excludes: S.optional(S3ClassificationScopeExclusionUpdate) }), +).annotate({ + identifier: "S3ClassificationScopeUpdate", +}) as any as S.Schema; export interface UpdateClassificationScopeRequest { id: string; s3?: S3ClassificationScopeUpdate; } -export const UpdateClassificationScopeRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String.pipe(T.HttpLabel("id")), - s3: S.optional(S3ClassificationScopeUpdate), - }).pipe( - T.all( - T.Http({ method: "PATCH", uri: "/classification-scopes/{id}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateClassificationScopeRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String.pipe(T.HttpLabel("id")), + s3: S.optional(S3ClassificationScopeUpdate), + }).pipe( + T.all( + T.Http({ method: "PATCH", uri: "/classification-scopes/{id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateClassificationScopeRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateClassificationScopeRequest", +}) as any as S.Schema; export interface UpdateClassificationScopeResponse {} -export const UpdateClassificationScopeResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateClassificationScopeResponse", - }) as any as S.Schema; +export const UpdateClassificationScopeResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "UpdateClassificationScopeResponse", +}) as any as S.Schema; export interface UpdateFindingsFilterRequest { action?: FindingsFilterAction; clientToken?: string; @@ -4989,39 +4948,37 @@ export interface UpdateFindingsFilterRequest { name?: string; position?: number; } -export const UpdateFindingsFilterRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - action: S.optional(FindingsFilterAction), - clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - description: S.optional(S.String), - findingCriteria: S.optional(FindingCriteria), - id: S.String.pipe(T.HttpLabel("id")), - name: S.optional(S.String), - position: S.optional(S.Number), - }).pipe( - T.all( - T.Http({ method: "PATCH", uri: "/findingsfilters/{id}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateFindingsFilterRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + action: S.optional(FindingsFilterAction), + clientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + description: S.optional(S.String), + findingCriteria: S.optional(FindingCriteria), + id: S.String.pipe(T.HttpLabel("id")), + name: S.optional(S.String), + position: S.optional(S.Number), + }).pipe( + T.all( + T.Http({ method: "PATCH", uri: "/findingsfilters/{id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateFindingsFilterRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateFindingsFilterRequest", +}) as any as S.Schema; export interface UpdateFindingsFilterResponse { arn?: string; id?: string; } -export const UpdateFindingsFilterResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ arn: S.optional(S.String), id: S.optional(S.String) }), - ).annotate({ - identifier: "UpdateFindingsFilterResponse", - }) as any as S.Schema; +export const UpdateFindingsFilterResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ arn: S.optional(S.String), id: S.optional(S.String) }), +).annotate({ + identifier: "UpdateFindingsFilterResponse", +}) as any as S.Schema; export interface UpdateMacieSessionRequest { findingPublishingFrequency?: FindingPublishingFrequency; status?: MacieStatus; @@ -5071,15 +5028,16 @@ export const UpdateMemberSessionRequest = /*@__PURE__*/ S.suspend(() => identifier: "UpdateMemberSessionRequest", }) as any as S.Schema; export interface UpdateMemberSessionResponse {} -export const UpdateMemberSessionResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateMemberSessionResponse", - }) as any as S.Schema; +export const UpdateMemberSessionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "UpdateMemberSessionResponse", +}) as any as S.Schema; export interface UpdateOrganizationConfigurationRequest { autoEnable?: boolean; } -export const UpdateOrganizationConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const UpdateOrganizationConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ autoEnable: S.optional(S.Boolean) }).pipe( T.all( T.Http({ method: "PATCH", uri: "/admin/configuration" }), @@ -5090,62 +5048,61 @@ export const UpdateOrganizationConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "UpdateOrganizationConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateOrganizationConfigurationRequest", +}) as any as S.Schema; export interface UpdateOrganizationConfigurationResponse {} -export const UpdateOrganizationConfigurationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateOrganizationConfigurationResponse", - }) as any as S.Schema; +export const UpdateOrganizationConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}), +).annotate({ + identifier: "UpdateOrganizationConfigurationResponse", +}) as any as S.Schema; export interface UpdateResourceProfileRequest { resourceArn?: string; sensitivityScoreOverride?: number; } -export const UpdateResourceProfileRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - resourceArn: S.optional(S.String).pipe(T.HttpQuery("resourceArn")), - sensitivityScoreOverride: S.optional(S.Number), - }).pipe( - T.all( - T.Http({ method: "PATCH", uri: "/resource-profiles" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateResourceProfileRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + resourceArn: S.optional(S.String).pipe(T.HttpQuery("resourceArn")), + sensitivityScoreOverride: S.optional(S.Number), + }).pipe( + T.all( + T.Http({ method: "PATCH", uri: "/resource-profiles" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateResourceProfileRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateResourceProfileRequest", +}) as any as S.Schema; export interface UpdateResourceProfileResponse {} -export const UpdateResourceProfileResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateResourceProfileResponse", - }) as any as S.Schema; +export const UpdateResourceProfileResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "UpdateResourceProfileResponse", +}) as any as S.Schema; export interface SuppressDataIdentifier { id?: string; type?: DataIdentifierType; } export const SuppressDataIdentifier = /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.optional(S.String), - type: S.optional(DataIdentifierType), - }), + S.Struct({ id: S.optional(S.String), type: S.optional(DataIdentifierType) }), ).annotate({ identifier: "SuppressDataIdentifier", }) as any as S.Schema; export type __listOfSuppressDataIdentifier = SuppressDataIdentifier[]; -export const __listOfSuppressDataIdentifier = - /*@__PURE__*/ S.Array(SuppressDataIdentifier); +export const __listOfSuppressDataIdentifier = /*@__PURE__*/ S.Array( + SuppressDataIdentifier, +); export interface UpdateResourceProfileDetectionsRequest { resourceArn?: string; suppressDataIdentifiers?: SuppressDataIdentifier[]; } -export const UpdateResourceProfileDetectionsRequest = - /*@__PURE__*/ S.suspend(() => +export const UpdateResourceProfileDetectionsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ resourceArn: S.optional(S.String).pipe(T.HttpQuery("resourceArn")), suppressDataIdentifiers: S.optional(__listOfSuppressDataIdentifier), @@ -5159,64 +5116,62 @@ export const UpdateResourceProfileDetectionsRequest = rules, ), ), - ).annotate({ - identifier: "UpdateResourceProfileDetectionsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateResourceProfileDetectionsRequest", +}) as any as S.Schema; export interface UpdateResourceProfileDetectionsResponse {} -export const UpdateResourceProfileDetectionsResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateResourceProfileDetectionsResponse", - }) as any as S.Schema; +export const UpdateResourceProfileDetectionsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}), +).annotate({ + identifier: "UpdateResourceProfileDetectionsResponse", +}) as any as S.Schema; export interface UpdateRetrievalConfiguration { retrievalMode?: RetrievalMode; roleName?: string; } -export const UpdateRetrievalConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - retrievalMode: S.optional(RetrievalMode), - roleName: S.optional(S.String), - }), - ).annotate({ - identifier: "UpdateRetrievalConfiguration", - }) as any as S.Schema; +export const UpdateRetrievalConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + retrievalMode: S.optional(RetrievalMode), + roleName: S.optional(S.String), + }), +).annotate({ + identifier: "UpdateRetrievalConfiguration", +}) as any as S.Schema; export interface UpdateRevealConfigurationRequest { configuration?: RevealConfiguration; retrievalConfiguration?: UpdateRetrievalConfiguration; } -export const UpdateRevealConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - configuration: S.optional(RevealConfiguration), - retrievalConfiguration: S.optional(UpdateRetrievalConfiguration), - }).pipe( - T.all( - T.Http({ method: "PUT", uri: "/reveal-configuration" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateRevealConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + configuration: S.optional(RevealConfiguration), + retrievalConfiguration: S.optional(UpdateRetrievalConfiguration), + }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/reveal-configuration" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateRevealConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateRevealConfigurationRequest", +}) as any as S.Schema; export interface UpdateRevealConfigurationResponse { configuration?: RevealConfiguration & { status: RevealStatus }; retrievalConfiguration?: RetrievalConfiguration & { retrievalMode: RetrievalMode; }; } -export const UpdateRevealConfigurationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - configuration: S.optional(RevealConfiguration), - retrievalConfiguration: S.optional(RetrievalConfiguration), - }), - ).annotate({ - identifier: "UpdateRevealConfigurationResponse", - }) as any as S.Schema; +export const UpdateRevealConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + configuration: S.optional(RevealConfiguration), + retrievalConfiguration: S.optional(RetrievalConfiguration), + }), +).annotate({ + identifier: "UpdateRevealConfigurationResponse", +}) as any as S.Schema; export interface UpdateSensitivityInspectionTemplateRequest { description?: string; excludes?: SensitivityInspectionTemplateExcludes; @@ -5256,34 +5211,50 @@ export const UpdateSensitivityInspectionTemplateResponse = export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", { message: S.optional(S.String) }, + T.HttpError(402), ).pipe(C.withQuotaError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", { message: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} +export class MacieNotEnabled extends S.TaggedErrorClass()( + "MacieNotEnabled", + { message: S.optional(S.String) }, + T.SyntheticError({ + from: "AccessDeniedException", + message: { matches: "Macie is(n[’']t| not) enabled" }, + }), +).pipe(C.withRetryableError) {} export class UnprocessableEntityException extends S.TaggedErrorClass()( "UnprocessableEntityException", { message: S.optional(S.String) }, + T.HttpError(422), ).pipe(C.withBadRequestError) {} //# Operations @@ -5384,6 +5355,7 @@ export type CreateAllowListError = | ServiceQuotaExceededException | ThrottlingException | ValidationException + | MacieNotEnabled | CommonErrors; /** * Creates and defines the settings for an allow list. @@ -5404,6 +5376,7 @@ export const createAllowList: API.OperationMethod< ServiceQuotaExceededException, ThrottlingException, ValidationException, + MacieNotEnabled, ], operationName: "CreateAllowList", })); @@ -5415,6 +5388,7 @@ export type CreateClassificationJobError = | ServiceQuotaExceededException | ThrottlingException | ValidationException + | MacieNotEnabled | CommonErrors; /** * Creates and defines the settings for a classification job. @@ -5435,6 +5409,7 @@ export const createClassificationJob: API.OperationMethod< ServiceQuotaExceededException, ThrottlingException, ValidationException, + MacieNotEnabled, ], operationName: "CreateClassificationJob", })); @@ -5446,6 +5421,7 @@ export type CreateCustomDataIdentifierError = | ServiceQuotaExceededException | ThrottlingException | ValidationException + | MacieNotEnabled | CommonErrors; /** * Creates and defines the criteria and other settings for a custom data identifier. @@ -5466,6 +5442,7 @@ export const createCustomDataIdentifier: API.OperationMethod< ServiceQuotaExceededException, ThrottlingException, ValidationException, + MacieNotEnabled, ], operationName: "CreateCustomDataIdentifier", })); @@ -5477,6 +5454,7 @@ export type CreateFindingsFilterError = | ServiceQuotaExceededException | ThrottlingException | ValidationException + | MacieNotEnabled | CommonErrors; /** * Creates and defines the criteria and other settings for a findings filter. @@ -5497,6 +5475,7 @@ export const createFindingsFilter: API.OperationMethod< ServiceQuotaExceededException, ThrottlingException, ValidationException, + MacieNotEnabled, ], operationName: "CreateFindingsFilter", })); diff --git a/packages/aws/src/services/mailmanager.ts b/packages/aws/src/services/mailmanager.ts index 4eb612d2e3..c20471e7b1 100644 --- a/packages/aws/src/services/mailmanager.ts +++ b/packages/aws/src/services/mailmanager.ts @@ -187,57 +187,55 @@ export interface CreateAddressListImportJobRequest { Name: string; ImportDataFormat: ImportDataFormat; } -export const CreateAddressListImportJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ClientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - AddressListId: S.String, - Name: S.String, - ImportDataFormat: ImportDataFormat, - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "CreateAddressListImportJobRequest", - }) as any as S.Schema; +export const CreateAddressListImportJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ClientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + AddressListId: S.String, + Name: S.String, + ImportDataFormat: ImportDataFormat, + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "CreateAddressListImportJobRequest", +}) as any as S.Schema; export interface CreateAddressListImportJobResponse { JobId: string; PreSignedUrl: string | redacted.Redacted; } -export const CreateAddressListImportJobResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ JobId: S.String, PreSignedUrl: SensitiveString }), - ).annotate({ - identifier: "CreateAddressListImportJobResponse", - }) as any as S.Schema; +export const CreateAddressListImportJobResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ JobId: S.String, PreSignedUrl: SensitiveString }), +).annotate({ + identifier: "CreateAddressListImportJobResponse", +}) as any as S.Schema; export interface DeregisterMemberFromAddressListRequest { AddressListId: string; Address: string | redacted.Redacted; } -export const DeregisterMemberFromAddressListRequest = - /*@__PURE__*/ S.suspend(() => +export const DeregisterMemberFromAddressListRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AddressListId: S.String, Address: SensitiveString }).pipe( T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), ), - ).annotate({ - identifier: "DeregisterMemberFromAddressListRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DeregisterMemberFromAddressListRequest", +}) as any as S.Schema; export interface DeregisterMemberFromAddressListResponse {} -export const DeregisterMemberFromAddressListResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeregisterMemberFromAddressListResponse", - }) as any as S.Schema; +export const DeregisterMemberFromAddressListResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}), +).annotate({ + identifier: "DeregisterMemberFromAddressListResponse", +}) as any as S.Schema; export interface GetAddressListImportJobRequest { JobId: string; } -export const GetAddressListImportJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ JobId: S.String }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "GetAddressListImportJobRequest", - }) as any as S.Schema; +export const GetAddressListImportJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ JobId: S.String }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "GetAddressListImportJobRequest", +}) as any as S.Schema; export type ImportJobStatus = | "CREATED" | "PROCESSING" @@ -260,29 +258,26 @@ export interface GetAddressListImportJobResponse { CompletedTimestamp?: Date; Error?: string; } -export const GetAddressListImportJobResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - JobId: S.String, - Name: S.String, - Status: ImportJobStatus, - PreSignedUrl: SensitiveString, - ImportedItemsCount: S.optional(S.Number), - FailedItemsCount: S.optional(S.Number), - ImportDataFormat: ImportDataFormat, - AddressListId: S.String, - CreatedTimestamp: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - StartTimestamp: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - CompletedTimestamp: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - Error: S.optional(S.String), - }), - ).annotate({ - identifier: "GetAddressListImportJobResponse", - }) as any as S.Schema; +export const GetAddressListImportJobResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + JobId: S.String, + Name: S.String, + Status: ImportJobStatus, + PreSignedUrl: SensitiveString, + ImportedItemsCount: S.optional(S.Number), + FailedItemsCount: S.optional(S.Number), + ImportDataFormat: ImportDataFormat, + AddressListId: S.String, + CreatedTimestamp: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + StartTimestamp: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + CompletedTimestamp: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + Error: S.optional(S.String), + }), +).annotate({ + identifier: "GetAddressListImportJobResponse", +}) as any as S.Schema; export interface GetArchiveExportRequest { ExportId: string; } @@ -372,17 +367,17 @@ export const ArchiveFilters = /*@__PURE__*/ S.suspend(() => export interface S3ExportDestinationConfiguration { S3Location?: string; } -export const S3ExportDestinationConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ S3Location: S.optional(S.String) }), - ).annotate({ - identifier: "S3ExportDestinationConfiguration", - }) as any as S.Schema; +export const S3ExportDestinationConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ S3Location: S.optional(S.String) }), +).annotate({ + identifier: "S3ExportDestinationConfiguration", +}) as any as S.Schema; export type ExportDestinationConfiguration = { S3: S3ExportDestinationConfiguration; }; -export const ExportDestinationConfiguration = - /*@__PURE__*/ S.Union([S.Struct({ S3: S3ExportDestinationConfiguration })]); +export const ExportDestinationConfiguration = /*@__PURE__*/ S.Union([ + S.Struct({ S3: S3ExportDestinationConfiguration }), +]); export type ExportState = | "QUEUED" | "PREPROCESSING" @@ -505,14 +500,13 @@ export const GetArchiveMessageResponse = /*@__PURE__*/ S.suspend(() => export interface GetArchiveMessageContentRequest { ArchivedMessageId: string; } -export const GetArchiveMessageContentRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ArchivedMessageId: S.String }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "GetArchiveMessageContentRequest", - }) as any as S.Schema; +export const GetArchiveMessageContentRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ ArchivedMessageId: S.String }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "GetArchiveMessageContentRequest", +}) as any as S.Schema; export interface MessageBody { Text?: string; Html?: string; @@ -528,12 +522,11 @@ export const MessageBody = /*@__PURE__*/ S.suspend(() => export interface GetArchiveMessageContentResponse { Body?: MessageBody; } -export const GetArchiveMessageContentResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Body: S.optional(MessageBody) }), - ).annotate({ - identifier: "GetArchiveMessageContentResponse", - }) as any as S.Schema; +export const GetArchiveMessageContentResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Body: S.optional(MessageBody) }), +).annotate({ + identifier: "GetArchiveMessageContentResponse", +}) as any as S.Schema; export interface GetArchiveSearchRequest { SearchId: string; } @@ -593,14 +586,13 @@ export const GetArchiveSearchResponse = /*@__PURE__*/ S.suspend(() => export interface GetArchiveSearchResultsRequest { SearchId: string; } -export const GetArchiveSearchResultsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ SearchId: S.String }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "GetArchiveSearchResultsRequest", - }) as any as S.Schema; +export const GetArchiveSearchResultsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ SearchId: S.String }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "GetArchiveSearchResultsRequest", +}) as any as S.Schema; export type EmailReceivedHeadersList = string[]; export const EmailReceivedHeadersList = /*@__PURE__*/ S.Array(S.String); export interface Row { @@ -654,54 +646,50 @@ export const RowsList = /*@__PURE__*/ S.Array(Row); export interface GetArchiveSearchResultsResponse { Rows?: Row[]; } -export const GetArchiveSearchResultsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Rows: S.optional(RowsList) }), - ).annotate({ - identifier: "GetArchiveSearchResultsResponse", - }) as any as S.Schema; +export const GetArchiveSearchResultsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Rows: S.optional(RowsList) }), +).annotate({ + identifier: "GetArchiveSearchResultsResponse", +}) as any as S.Schema; export interface GetMemberOfAddressListRequest { AddressListId: string; Address: string | redacted.Redacted; } -export const GetMemberOfAddressListRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ AddressListId: S.String, Address: SensitiveString }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "GetMemberOfAddressListRequest", - }) as any as S.Schema; +export const GetMemberOfAddressListRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ AddressListId: S.String, Address: SensitiveString }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "GetMemberOfAddressListRequest", +}) as any as S.Schema; export interface GetMemberOfAddressListResponse { Address: string | redacted.Redacted; CreatedTimestamp: Date; } -export const GetMemberOfAddressListResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Address: SensitiveString, - CreatedTimestamp: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - }), - ).annotate({ - identifier: "GetMemberOfAddressListResponse", - }) as any as S.Schema; +export const GetMemberOfAddressListResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Address: SensitiveString, + CreatedTimestamp: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + }), +).annotate({ + identifier: "GetMemberOfAddressListResponse", +}) as any as S.Schema; export interface ListAddressListImportJobsRequest { AddressListId: string; NextToken?: string; PageSize?: number; } -export const ListAddressListImportJobsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AddressListId: S.String, - NextToken: S.optional(S.String), - PageSize: S.optional(S.Number), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "ListAddressListImportJobsRequest", - }) as any as S.Schema; +export const ListAddressListImportJobsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AddressListId: S.String, + NextToken: S.optional(S.String), + PageSize: S.optional(S.Number), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "ListAddressListImportJobsRequest", +}) as any as S.Schema; export interface ImportJob { JobId: string; Name: string; @@ -740,12 +728,11 @@ export interface ListAddressListImportJobsResponse { ImportJobs: ImportJob[]; NextToken?: string; } -export const ListAddressListImportJobsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ImportJobs: ImportJobs, NextToken: S.optional(S.String) }), - ).annotate({ - identifier: "ListAddressListImportJobsResponse", - }) as any as S.Schema; +export const ListAddressListImportJobsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ ImportJobs: ImportJobs, NextToken: S.optional(S.String) }), +).annotate({ + identifier: "ListAddressListImportJobsResponse", +}) as any as S.Schema; export interface ListArchiveExportsRequest { ArchiveId: string; NextToken?: string; @@ -818,15 +805,14 @@ export interface ListArchiveSearchesResponse { Searches?: SearchSummary[]; NextToken?: string; } -export const ListArchiveSearchesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Searches: S.optional(SearchSummaryList), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListArchiveSearchesResponse", - }) as any as S.Schema; +export const ListArchiveSearchesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Searches: S.optional(SearchSummaryList), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListArchiveSearchesResponse", +}) as any as S.Schema; export interface AddressFilter { AddressPrefix?: string | redacted.Redacted; } @@ -839,19 +825,18 @@ export interface ListMembersOfAddressListRequest { NextToken?: string; PageSize?: number; } -export const ListMembersOfAddressListRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AddressListId: S.String, - Filter: S.optional(AddressFilter), - NextToken: S.optional(S.String), - PageSize: S.optional(S.Number), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "ListMembersOfAddressListRequest", - }) as any as S.Schema; +export const ListMembersOfAddressListRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AddressListId: S.String, + Filter: S.optional(AddressFilter), + NextToken: S.optional(S.String), + PageSize: S.optional(S.Number), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "ListMembersOfAddressListRequest", +}) as any as S.Schema; export interface SavedAddress { Address: string | redacted.Redacted; CreatedTimestamp: Date; @@ -868,12 +853,11 @@ export interface ListMembersOfAddressListResponse { Addresses: SavedAddress[]; NextToken?: string; } -export const ListMembersOfAddressListResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Addresses: SavedAddresses, NextToken: S.optional(S.String) }), - ).annotate({ - identifier: "ListMembersOfAddressListResponse", - }) as any as S.Schema; +export const ListMembersOfAddressListResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Addresses: SavedAddresses, NextToken: S.optional(S.String) }), +).annotate({ + identifier: "ListMembersOfAddressListResponse", +}) as any as S.Schema; export interface ListTagsForResourceRequest { ResourceArn: string; } @@ -896,43 +880,44 @@ export const TagList = /*@__PURE__*/ S.Array(Tag); export interface ListTagsForResourceResponse { Tags: Tag[]; } -export const ListTagsForResourceResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({ Tags: TagList })).annotate({ - identifier: "ListTagsForResourceResponse", - }) as any as S.Schema; +export const ListTagsForResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Tags: TagList }), +).annotate({ + identifier: "ListTagsForResourceResponse", +}) as any as S.Schema; export interface RegisterMemberToAddressListRequest { AddressListId: string; Address: string | redacted.Redacted; } -export const RegisterMemberToAddressListRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ AddressListId: S.String, Address: SensitiveString }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "RegisterMemberToAddressListRequest", - }) as any as S.Schema; +export const RegisterMemberToAddressListRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ AddressListId: S.String, Address: SensitiveString }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "RegisterMemberToAddressListRequest", +}) as any as S.Schema; export interface RegisterMemberToAddressListResponse {} -export const RegisterMemberToAddressListResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "RegisterMemberToAddressListResponse", - }) as any as S.Schema; +export const RegisterMemberToAddressListResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "RegisterMemberToAddressListResponse", +}) as any as S.Schema; export interface StartAddressListImportJobRequest { JobId: string; } -export const StartAddressListImportJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ JobId: S.String }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "StartAddressListImportJobRequest", - }) as any as S.Schema; +export const StartAddressListImportJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ JobId: S.String }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "StartAddressListImportJobRequest", +}) as any as S.Schema; export interface StartAddressListImportJobResponse {} -export const StartAddressListImportJobResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "StartAddressListImportJobResponse", - }) as any as S.Schema; +export const StartAddressListImportJobResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "StartAddressListImportJobResponse", +}) as any as S.Schema; export interface StartArchiveExportRequest { ArchiveId: string; Filters?: ArchiveFilters; @@ -996,19 +981,19 @@ export const StartArchiveSearchResponse = /*@__PURE__*/ S.suspend(() => export interface StopAddressListImportJobRequest { JobId: string; } -export const StopAddressListImportJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ JobId: S.String }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "StopAddressListImportJobRequest", - }) as any as S.Schema; +export const StopAddressListImportJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ JobId: S.String }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "StopAddressListImportJobRequest", +}) as any as S.Schema; export interface StopAddressListImportJobResponse {} -export const StopAddressListImportJobResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "StopAddressListImportJobResponse", - }) as any as S.Schema; +export const StopAddressListImportJobResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "StopAddressListImportJobResponse", +}) as any as S.Schema; export interface StopArchiveExportRequest { ExportId: string; } @@ -1096,12 +1081,11 @@ export const CreateAddonInstanceRequest = /*@__PURE__*/ S.suspend(() => export interface CreateAddonInstanceResponse { AddonInstanceId: string; } -export const CreateAddonInstanceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ AddonInstanceId: S.String }), - ).annotate({ - identifier: "CreateAddonInstanceResponse", - }) as any as S.Schema; +export const CreateAddonInstanceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ AddonInstanceId: S.String }), +).annotate({ + identifier: "CreateAddonInstanceResponse", +}) as any as S.Schema; export interface GetAddonInstanceRequest { AddonInstanceId: string; } @@ -1141,10 +1125,11 @@ export const DeleteAddonInstanceRequest = /*@__PURE__*/ S.suspend(() => identifier: "DeleteAddonInstanceRequest", }) as any as S.Schema; export interface DeleteAddonInstanceResponse {} -export const DeleteAddonInstanceResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteAddonInstanceResponse", - }) as any as S.Schema; +export const DeleteAddonInstanceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteAddonInstanceResponse", +}) as any as S.Schema; export interface ListAddonInstancesRequest { NextToken?: string; PageSize?: number; @@ -1196,86 +1181,81 @@ export interface CreateAddonSubscriptionRequest { AddonName: string; Tags?: Tag[]; } -export const CreateAddonSubscriptionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ClientToken: S.optional(S.String).pipe(T.IdempotencyToken()), - AddonName: S.String, - Tags: S.optional(TagList), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "CreateAddonSubscriptionRequest", - }) as any as S.Schema; +export const CreateAddonSubscriptionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ClientToken: S.optional(S.String).pipe(T.IdempotencyToken()), + AddonName: S.String, + Tags: S.optional(TagList), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "CreateAddonSubscriptionRequest", +}) as any as S.Schema; export interface CreateAddonSubscriptionResponse { AddonSubscriptionId: string; } -export const CreateAddonSubscriptionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ AddonSubscriptionId: S.String }), - ).annotate({ - identifier: "CreateAddonSubscriptionResponse", - }) as any as S.Schema; +export const CreateAddonSubscriptionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ AddonSubscriptionId: S.String }), +).annotate({ + identifier: "CreateAddonSubscriptionResponse", +}) as any as S.Schema; export interface GetAddonSubscriptionRequest { AddonSubscriptionId: string; } -export const GetAddonSubscriptionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ AddonSubscriptionId: S.String }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "GetAddonSubscriptionRequest", - }) as any as S.Schema; +export const GetAddonSubscriptionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ AddonSubscriptionId: S.String }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "GetAddonSubscriptionRequest", +}) as any as S.Schema; export interface GetAddonSubscriptionResponse { AddonName?: string; AddonSubscriptionArn?: string; CreatedTimestamp?: Date; } -export const GetAddonSubscriptionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AddonName: S.optional(S.String), - AddonSubscriptionArn: S.optional(S.String), - CreatedTimestamp: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - }), - ).annotate({ - identifier: "GetAddonSubscriptionResponse", - }) as any as S.Schema; +export const GetAddonSubscriptionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AddonName: S.optional(S.String), + AddonSubscriptionArn: S.optional(S.String), + CreatedTimestamp: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + }), +).annotate({ + identifier: "GetAddonSubscriptionResponse", +}) as any as S.Schema; export interface DeleteAddonSubscriptionRequest { AddonSubscriptionId: string; } -export const DeleteAddonSubscriptionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ AddonSubscriptionId: S.String }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "DeleteAddonSubscriptionRequest", - }) as any as S.Schema; +export const DeleteAddonSubscriptionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ AddonSubscriptionId: S.String }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "DeleteAddonSubscriptionRequest", +}) as any as S.Schema; export interface DeleteAddonSubscriptionResponse {} -export const DeleteAddonSubscriptionResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteAddonSubscriptionResponse", - }) as any as S.Schema; +export const DeleteAddonSubscriptionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteAddonSubscriptionResponse", +}) as any as S.Schema; export interface ListAddonSubscriptionsRequest { NextToken?: string; PageSize?: number; } -export const ListAddonSubscriptionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - NextToken: S.optional(S.String), - PageSize: S.optional(S.Number), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "ListAddonSubscriptionsRequest", - }) as any as S.Schema; +export const ListAddonSubscriptionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + NextToken: S.optional(S.String), + PageSize: S.optional(S.Number), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "ListAddonSubscriptionsRequest", +}) as any as S.Schema; export interface AddonSubscription { AddonSubscriptionId?: string; AddonName?: string; @@ -1300,15 +1280,14 @@ export interface ListAddonSubscriptionsResponse { AddonSubscriptions?: AddonSubscription[]; NextToken?: string; } -export const ListAddonSubscriptionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AddonSubscriptions: S.optional(AddonSubscriptions), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListAddonSubscriptionsResponse", - }) as any as S.Schema; +export const ListAddonSubscriptionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AddonSubscriptions: S.optional(AddonSubscriptions), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListAddonSubscriptionsResponse", +}) as any as S.Schema; export interface CreateAddressListRequest { ClientToken?: string; AddressListName: string; @@ -1640,12 +1619,11 @@ export const PublicNetworkConfiguration = /*@__PURE__*/ S.suspend(() => export interface PrivateNetworkConfiguration { VpcEndpointId: string; } -export const PrivateNetworkConfiguration = - /*@__PURE__*/ S.suspend(() => S.Struct({ VpcEndpointId: S.String })).annotate( - { - identifier: "PrivateNetworkConfiguration", - }, - ) as any as S.Schema; +export const PrivateNetworkConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ VpcEndpointId: S.String }), +).annotate({ + identifier: "PrivateNetworkConfiguration", +}) as any as S.Schema; export type NetworkConfiguration = | { PublicNetworkConfiguration: PublicNetworkConfiguration; @@ -1728,35 +1706,33 @@ export interface IngressPointPasswordConfiguration { PreviousSmtpPasswordVersion?: string; PreviousSmtpPasswordExpiryTimestamp?: Date; } -export const IngressPointPasswordConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SmtpPasswordVersion: S.optional(S.String), - PreviousSmtpPasswordVersion: S.optional(S.String), - PreviousSmtpPasswordExpiryTimestamp: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - }), - ).annotate({ - identifier: "IngressPointPasswordConfiguration", - }) as any as S.Schema; +export const IngressPointPasswordConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SmtpPasswordVersion: S.optional(S.String), + PreviousSmtpPasswordVersion: S.optional(S.String), + PreviousSmtpPasswordExpiryTimestamp: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + }), +).annotate({ + identifier: "IngressPointPasswordConfiguration", +}) as any as S.Schema; export interface IngressPointAuthConfiguration { IngressPointPasswordConfiguration?: IngressPointPasswordConfiguration; SecretArn?: string; TlsAuthConfiguration?: TlsAuthConfiguration; } -export const IngressPointAuthConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - IngressPointPasswordConfiguration: S.optional( - IngressPointPasswordConfiguration, - ), - SecretArn: S.optional(S.String), - TlsAuthConfiguration: S.optional(TlsAuthConfiguration), - }), - ).annotate({ - identifier: "IngressPointAuthConfiguration", - }) as any as S.Schema; +export const IngressPointAuthConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + IngressPointPasswordConfiguration: S.optional( + IngressPointPasswordConfiguration, + ), + SecretArn: S.optional(S.String), + TlsAuthConfiguration: S.optional(TlsAuthConfiguration), + }), +).annotate({ + identifier: "IngressPointAuthConfiguration", +}) as any as S.Schema; export interface GetIngressPointResponse { IngressPointId: string; IngressPointName: string; @@ -2174,12 +2150,12 @@ export type RuleStringOperator = | "CONTAINS" | (string & {}); export const RuleStringOperator = /*@__PURE__*/ S.String; -export type RuleStringList = string | redacted.Redacted[]; +export type RuleStringList = (string | redacted.Redacted)[]; export const RuleStringList = /*@__PURE__*/ S.Array(SensitiveString); export interface RuleStringExpression { Evaluate: RuleStringToEvaluate; Operator: RuleStringOperator; - Values: string | redacted.Redacted[]; + Values: (string | redacted.Redacted)[]; } export const RuleStringExpression = /*@__PURE__*/ S.suspend(() => S.Struct({ @@ -2419,10 +2395,10 @@ export const AddHeaderAction = /*@__PURE__*/ S.suspend(() => ).annotate({ identifier: "AddHeaderAction", }) as any as S.Schema; -export type Recipients = string | redacted.Redacted[]; +export type Recipients = (string | redacted.Redacted)[]; export const Recipients = /*@__PURE__*/ S.Array(SensitiveString); export interface ReplaceRecipientAction { - ReplaceWith?: string | redacted.Redacted[]; + ReplaceWith?: (string | redacted.Redacted)[]; } export const ReplaceRecipientAction = /*@__PURE__*/ S.suspend(() => S.Struct({ ReplaceWith: S.optional(Recipients) }), @@ -2960,16 +2936,15 @@ export interface IngressTlsProtocolExpression { Operator: IngressTlsProtocolOperator; Value: IngressTlsProtocolAttribute; } -export const IngressTlsProtocolExpression = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Evaluate: IngressTlsProtocolToEvaluate, - Operator: IngressTlsProtocolOperator, - Value: IngressTlsProtocolAttribute, - }), - ).annotate({ - identifier: "IngressTlsProtocolExpression", - }) as any as S.Schema; +export const IngressTlsProtocolExpression = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Evaluate: IngressTlsProtocolToEvaluate, + Operator: IngressTlsProtocolOperator, + Value: IngressTlsProtocolAttribute, + }), +).annotate({ + identifier: "IngressTlsProtocolExpression", +}) as any as S.Schema; export type IngressAddressListEmailAttribute = "RECIPIENT" | (string & {}); export const IngressAddressListEmailAttribute = /*@__PURE__*/ S.String; export type IngressAddressListArnList = string[]; @@ -3090,12 +3065,11 @@ export const CreateTrafficPolicyRequest = /*@__PURE__*/ S.suspend(() => export interface CreateTrafficPolicyResponse { TrafficPolicyId: string; } -export const CreateTrafficPolicyResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ TrafficPolicyId: S.String }), - ).annotate({ - identifier: "CreateTrafficPolicyResponse", - }) as any as S.Schema; +export const CreateTrafficPolicyResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ TrafficPolicyId: S.String }), +).annotate({ + identifier: "CreateTrafficPolicyResponse", +}) as any as S.Schema; export interface GetTrafficPolicyRequest { TrafficPolicyId: string; } @@ -3155,10 +3129,11 @@ export const UpdateTrafficPolicyRequest = /*@__PURE__*/ S.suspend(() => identifier: "UpdateTrafficPolicyRequest", }) as any as S.Schema; export interface UpdateTrafficPolicyResponse {} -export const UpdateTrafficPolicyResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateTrafficPolicyResponse", - }) as any as S.Schema; +export const UpdateTrafficPolicyResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "UpdateTrafficPolicyResponse", +}) as any as S.Schema; export interface DeleteTrafficPolicyRequest { TrafficPolicyId: string; } @@ -3170,10 +3145,11 @@ export const DeleteTrafficPolicyRequest = /*@__PURE__*/ S.suspend(() => identifier: "DeleteTrafficPolicyRequest", }) as any as S.Schema; export interface DeleteTrafficPolicyResponse {} -export const DeleteTrafficPolicyResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteTrafficPolicyResponse", - }) as any as S.Schema; +export const DeleteTrafficPolicyResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteTrafficPolicyResponse", +}) as any as S.Schema; export interface ListTrafficPoliciesRequest { PageSize?: number; NextToken?: string; @@ -3206,40 +3182,45 @@ export interface ListTrafficPoliciesResponse { TrafficPolicies?: TrafficPolicy[]; NextToken?: string; } -export const ListTrafficPoliciesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TrafficPolicies: S.optional(TrafficPolicyList), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListTrafficPoliciesResponse", - }) as any as S.Schema; +export const ListTrafficPoliciesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TrafficPolicies: S.optional(TrafficPolicyList), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListTrafficPoliciesResponse", +}) as any as S.Schema; //# Errors export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { Message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", { Message: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", { Message: S.optional(S.String) }, + T.HttpError(402), ).pipe(C.withQuotaError) {} //# Operations diff --git a/packages/aws/src/services/mediaconvert.ts b/packages/aws/src/services/mediaconvert.ts index e84c13590b..c2dc01ccbf 100644 --- a/packages/aws/src/services/mediaconvert.ts +++ b/packages/aws/src/services/mediaconvert.ts @@ -1,4 +1,5 @@ import * as HttpClient from "effect/unstable/http/HttpClient"; +import * as redacted from "effect/Redacted"; import * as S from "@distilled.cloud/core/schema"; import * as stream from "effect/Stream"; import * as API from "../client/api.ts"; @@ -7,6 +8,7 @@ import * as C from "../category.ts"; import type { Credentials } from "../credentials.ts"; import type { CommonErrors } from "../errors.ts"; import type { Region } from "../region.ts"; +import { SensitiveString } from "../sensitive.ts"; const svc = T.AwsApiService({ sdkId: "MediaConvert", serviceShapeName: "MediaConvert", @@ -2293,14 +2295,14 @@ export const SpekeKeyProviderCmaf = /*@__PURE__*/ S.suspend(() => export interface StaticKeyProvider { KeyFormat?: string; KeyFormatVersions?: string; - StaticKeyValue?: string; + StaticKeyValue?: string | redacted.Redacted; Url?: string; } export const StaticKeyProvider = /*@__PURE__*/ S.suspend(() => S.Struct({ KeyFormat: S.optional(S.String), KeyFormatVersions: S.optional(S.String), - StaticKeyValue: S.optional(S.String), + StaticKeyValue: S.optional(SensitiveString), Url: S.optional(S.String), }).pipe( S.encodeKeys({ @@ -10556,30 +10558,37 @@ export const UpdateQueueResponse = /*@__PURE__*/ S.suspend(() => export class BadRequestException extends S.TaggedErrorClass()( "BadRequestException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ForbiddenException extends S.TaggedErrorClass()( "ForbiddenException", { Message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class InternalServerErrorException extends S.TaggedErrorClass()( "InternalServerErrorException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class NotFoundException extends S.TaggedErrorClass()( "NotFoundException", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", { Message: S.optional(S.String) }, + T.HttpError(402), ).pipe(C.withQuotaError) {} export class TooManyRequestsException extends S.TaggedErrorClass()( "TooManyRequestsException", { Message: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} //# Operations diff --git a/packages/aws/src/services/medialive.ts b/packages/aws/src/services/medialive.ts index 5a2ef0d4d0..4052bfd649 100644 --- a/packages/aws/src/services/medialive.ts +++ b/packages/aws/src/services/medialive.ts @@ -1,4 +1,5 @@ import * as HttpClient from "effect/unstable/http/HttpClient"; +import * as redacted from "effect/Redacted"; import * as S from "@distilled.cloud/core/schema"; import * as stream from "effect/Stream"; import * as API from "../client/api.ts"; @@ -7,6 +8,7 @@ import * as C from "../category.ts"; import type { Credentials } from "../credentials.ts"; import type { CommonErrors } from "../errors.ts"; import type { Region } from "../region.ts"; +import { SensitiveString } from "../sensitive.ts"; const svc = T.AwsApiService({ sdkId: "MediaLive", serviceShapeName: "MediaLive", @@ -3412,12 +3414,12 @@ export type HlsIvSource = "EXPLICIT" | "FOLLOWS_SEGMENT_NUMBER" | (string & {}); export const HlsIvSource = /*@__PURE__*/ S.String; export interface StaticKeySettings { KeyProviderServer?: InputLocation; - StaticKeyValue?: string; + StaticKeyValue?: string | redacted.Redacted; } export const StaticKeySettings = /*@__PURE__*/ S.suspend(() => S.Struct({ KeyProviderServer: S.optional(InputLocation), - StaticKeyValue: S.optional(S.String), + StaticKeyValue: S.optional(SensitiveString), }).pipe( S.encodeKeys({ KeyProviderServer: "keyProviderServer", @@ -19908,34 +19910,42 @@ export const UpdateSdiSourceResponse = /*@__PURE__*/ S.suspend(() => export class BadGatewayException extends S.TaggedErrorClass()( "BadGatewayException", { Message: S.optional(S.String) }, + T.HttpError(502), ).pipe(C.withServerError) {} export class BadRequestException extends S.TaggedErrorClass()( "BadRequestException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ForbiddenException extends S.TaggedErrorClass()( "ForbiddenException", { Message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class GatewayTimeoutException extends S.TaggedErrorClass()( "GatewayTimeoutException", { Message: S.optional(S.String) }, + T.HttpError(504), ).pipe(C.withTimeoutError) {} export class InternalServerErrorException extends S.TaggedErrorClass()( "InternalServerErrorException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class NotFoundException extends S.TaggedErrorClass()( "NotFoundException", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class TooManyRequestsException extends S.TaggedErrorClass()( "TooManyRequestsException", { Message: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class UnprocessableEntityException extends S.TaggedErrorClass()( "UnprocessableEntityException", @@ -19943,7 +19953,19 @@ export class UnprocessableEntityException extends S.TaggedErrorClass()( + "MediaLiveRoleNotYetTrusted", + { + Message: S.optional(S.String), + ValidationErrors: S.optional(__listOfValidationError), + }, + T.SyntheticError({ + from: "UnprocessableEntityException", + message: { includes: "is a trusted service" }, + }), +).pipe(C.withRetryableError) {} //# Operations export type AcceptInputDeviceTransferError = @@ -20190,6 +20212,7 @@ export type CreateChannelError = | InternalServerErrorException | TooManyRequestsException | UnprocessableEntityException + | MediaLiveRoleNotYetTrusted | CommonErrors; /** * Creates a new channel @@ -20211,6 +20234,7 @@ export const createChannel: API.OperationMethod< InternalServerErrorException, TooManyRequestsException, UnprocessableEntityException, + MediaLiveRoleNotYetTrusted, ], operationName: "CreateChannel", })); diff --git a/packages/aws/src/services/mediatailor.ts b/packages/aws/src/services/mediatailor.ts index ad7faab779..f85b358b8e 100644 --- a/packages/aws/src/services/mediatailor.ts +++ b/packages/aws/src/services/mediatailor.ts @@ -3486,8 +3486,31 @@ export const ListVodSourcesResponse = /*@__PURE__*/ S.suspend(() => //# Errors export class BadRequestException extends S.TaggedErrorClass()( "BadRequestException", - { Message: S.optional(S.String) }, -).pipe(C.withBadRequestError) {} + {}, +) {} +export class ChannelNotFound extends S.TaggedErrorClass()( + "ChannelNotFound", + { message: S.optional(S.String) }, + T.SyntheticError({ from: "NotFoundException", message: { matches: ".*" } }), +).pipe(C.withNotFoundError) {} +export class ProgramNotFound extends S.TaggedErrorClass()( + "ProgramNotFound", + { message: S.optional(S.String) }, + T.SyntheticError({ from: "NotFoundException", message: { matches: ".*" } }), +).pipe(C.withNotFoundError) {} +export class PlaybackConfigurationNotFound extends S.TaggedErrorClass()( + "PlaybackConfigurationNotFound", + { message: S.optional(S.String) }, + T.SyntheticError({ + from: "NotFoundException", + message: { includes: "not found" }, + }), +).pipe(C.withNotFoundError) {} +export class PrefetchScheduleNotFound extends S.TaggedErrorClass()( + "PrefetchScheduleNotFound", + { message: S.optional(S.String) }, + T.SyntheticError({ from: "NotFoundException", message: { matches: ".*" } }), +).pipe(C.withNotFoundError) {} //# Operations export type ConfigureLogsForPlaybackConfigurationError = CommonErrors; @@ -3505,7 +3528,7 @@ export const configureLogsForPlaybackConfiguration: API.OperationMethod< errors: [], operationName: "ConfigureLogsForPlaybackConfiguration", })); -export type ListAlertsError = CommonErrors; +export type ListAlertsError = BadRequestException | CommonErrors; /** * Lists the alerts that are associated with a MediaTailor channel assembly resource. */ @@ -3532,7 +3555,7 @@ export const listAlerts: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: ListAlertsRequest, output: ListAlertsResponse, - errors: [], + errors: [BadRequestException], operationName: "ListAlerts", pagination: { inputToken: "NextToken", @@ -3697,7 +3720,10 @@ export const configureLogsForChannel: API.OperationMethod< errors: [], operationName: "ConfigureLogsForChannel", })); -export type GetChannelScheduleError = CommonErrors; +export type GetChannelScheduleError = + | BadRequestException + | ChannelNotFound + | CommonErrors; /** * Retrieves information about your channel's schedule. */ @@ -3724,7 +3750,7 @@ export const getChannelSchedule: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: GetChannelScheduleRequest, output: GetChannelScheduleResponse, - errors: [], + errors: [BadRequestException, ChannelNotFound], operationName: "GetChannelSchedule", pagination: { inputToken: "NextToken", @@ -3733,7 +3759,10 @@ export const getChannelSchedule: API.OperationMethod< pageSize: "MaxResults", } as const, })); -export type StartChannelError = CommonErrors; +export type StartChannelError = + | BadRequestException + | ChannelNotFound + | CommonErrors; /** * Starts a channel. For information about MediaTailor channels, see Working with channels in the *MediaTailor User Guide*. */ @@ -3745,10 +3774,13 @@ export const startChannel: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: StartChannelRequest, output: StartChannelResponse, - errors: [], + errors: [BadRequestException, ChannelNotFound], operationName: "StartChannel", })); -export type StopChannelError = CommonErrors; +export type StopChannelError = + | BadRequestException + | ChannelNotFound + | CommonErrors; /** * Stops a channel. For information about MediaTailor channels, see Working with channels in the *MediaTailor User Guide*. */ @@ -3760,7 +3792,7 @@ export const stopChannel: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: StopChannelRequest, output: StopChannelResponse, - errors: [], + errors: [BadRequestException, ChannelNotFound], operationName: "StopChannel", })); export type PutChannelPolicyError = CommonErrors; @@ -3808,7 +3840,10 @@ export const deleteChannelPolicy: API.OperationMethod< errors: [], operationName: "DeleteChannelPolicy", })); -export type CreateProgramError = CommonErrors; +export type CreateProgramError = + | BadRequestException + | ChannelNotFound + | CommonErrors; /** * Creates a program within a channel. For information about programs, see Working with programs in the *MediaTailor User Guide*. */ @@ -3820,10 +3855,13 @@ export const createProgram: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateProgramRequest, output: CreateProgramResponse, - errors: [], + errors: [BadRequestException, ChannelNotFound], operationName: "CreateProgram", })); -export type DescribeProgramError = CommonErrors; +export type DescribeProgramError = + | BadRequestException + | ProgramNotFound + | CommonErrors; /** * Describes a program within a channel. For information about programs, see Working with programs in the *MediaTailor User Guide*. */ @@ -3835,10 +3873,13 @@ export const describeProgram: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeProgramRequest, output: DescribeProgramResponse, - errors: [], + errors: [BadRequestException, ProgramNotFound], operationName: "DescribeProgram", })); -export type UpdateProgramError = CommonErrors; +export type UpdateProgramError = + | BadRequestException + | ProgramNotFound + | CommonErrors; /** * Updates a program within a channel. */ @@ -3850,10 +3891,13 @@ export const updateProgram: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: UpdateProgramRequest, output: UpdateProgramResponse, - errors: [], + errors: [BadRequestException, ProgramNotFound], operationName: "UpdateProgram", })); -export type DeleteProgramError = CommonErrors; +export type DeleteProgramError = + | BadRequestException + | ProgramNotFound + | CommonErrors; /** * Deletes a program within a channel. For information about programs, see Working with programs in the *MediaTailor User Guide*. */ @@ -3865,7 +3909,7 @@ export const deleteProgram: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteProgramRequest, output: DeleteProgramResponse, - errors: [], + errors: [BadRequestException, ProgramNotFound], operationName: "DeleteProgram", })); export type PutFunctionError = CommonErrors; @@ -4060,7 +4104,9 @@ export const putPlaybackConfiguration: API.OperationMethod< errors: [], operationName: "PutPlaybackConfiguration", })); -export type GetPlaybackConfigurationError = CommonErrors; +export type GetPlaybackConfigurationError = + | PlaybackConfigurationNotFound + | CommonErrors; /** * Retrieves a playback configuration. For information about MediaTailor configurations, see Working with configurations in AWS Elemental MediaTailor. */ @@ -4072,7 +4118,7 @@ export const getPlaybackConfiguration: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetPlaybackConfigurationRequest, output: GetPlaybackConfigurationResponse, - errors: [], + errors: [PlaybackConfigurationNotFound], operationName: "GetPlaybackConfiguration", })); export type DeletePlaybackConfigurationError = CommonErrors; @@ -4126,7 +4172,10 @@ export const listPlaybackConfigurations: API.OperationMethod< pageSize: "MaxResults", } as const, })); -export type CreatePrefetchScheduleError = CommonErrors; +export type CreatePrefetchScheduleError = + | BadRequestException + | PlaybackConfigurationNotFound + | CommonErrors; /** * Creates a prefetch schedule for a playback configuration. A prefetch schedule allows you to tell MediaTailor to fetch and prepare certain ads before an ad break happens. For more information about ad prefetching, see Using ad prefetching in the *MediaTailor User Guide*. */ @@ -4138,10 +4187,13 @@ export const createPrefetchSchedule: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreatePrefetchScheduleRequest, output: CreatePrefetchScheduleResponse, - errors: [], + errors: [BadRequestException, PlaybackConfigurationNotFound], operationName: "CreatePrefetchSchedule", })); -export type GetPrefetchScheduleError = CommonErrors; +export type GetPrefetchScheduleError = + | BadRequestException + | PrefetchScheduleNotFound + | CommonErrors; /** * Retrieves a prefetch schedule for a playback configuration. A prefetch schedule allows you to tell MediaTailor to fetch and prepare certain ads before an ad break happens. For more information about ad prefetching, see Using ad prefetching in the *MediaTailor User Guide*. */ @@ -4153,10 +4205,13 @@ export const getPrefetchSchedule: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetPrefetchScheduleRequest, output: GetPrefetchScheduleResponse, - errors: [], + errors: [BadRequestException, PrefetchScheduleNotFound], operationName: "GetPrefetchSchedule", })); -export type DeletePrefetchScheduleError = CommonErrors; +export type DeletePrefetchScheduleError = + | BadRequestException + | PrefetchScheduleNotFound + | CommonErrors; /** * Deletes a prefetch schedule for a specific playback configuration. If you call `DeletePrefetchSchedule` on an expired prefetch schedule, MediaTailor returns an HTTP 404 status code. For more information about ad prefetching, see Using ad prefetching in the *MediaTailor User Guide*. */ @@ -4168,10 +4223,13 @@ export const deletePrefetchSchedule: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeletePrefetchScheduleRequest, output: DeletePrefetchScheduleResponse, - errors: [], + errors: [BadRequestException, PrefetchScheduleNotFound], operationName: "DeletePrefetchSchedule", })); -export type ListPrefetchSchedulesError = CommonErrors; +export type ListPrefetchSchedulesError = + | BadRequestException + | PlaybackConfigurationNotFound + | CommonErrors; /** * Lists the prefetch schedules for a playback configuration. */ @@ -4198,7 +4256,7 @@ export const listPrefetchSchedules: API.OperationMethod< } = /*@__PURE__*/ API.makePaginated(() => ({ input: ListPrefetchSchedulesRequest, output: ListPrefetchSchedulesResponse, - errors: [], + errors: [BadRequestException, PlaybackConfigurationNotFound], operationName: "ListPrefetchSchedules", pagination: { inputToken: "NextToken", diff --git a/packages/aws/src/services/memorydb.ts b/packages/aws/src/services/memorydb.ts index 3b936bbcf5..6f8aaa83a6 100644 --- a/packages/aws/src/services/memorydb.ts +++ b/packages/aws/src/services/memorydb.ts @@ -1,4 +1,5 @@ import * as HttpClient from "effect/unstable/http/HttpClient"; +import * as redacted from "effect/Redacted"; import * as S from "@distilled.cloud/core/schema"; import * as stream from "effect/Stream"; import * as API from "../client/api.ts"; @@ -7,6 +8,7 @@ import * as C from "../category.ts"; import type { Credentials } from "../credentials.ts"; import type { CommonErrors } from "../errors.ts"; import type { Region } from "../region.ts"; +import { SensitiveString } from "../sensitive.ts"; const ns = T.XmlNamespace("http://memorydb.amazonaws.com/doc/2021-01-01/"); const svc = T.AwsApiService({ sdkId: "MemoryDB", @@ -941,12 +943,12 @@ export type PasswordListInput = string[]; export const PasswordListInput = /*@__PURE__*/ S.Array(S.String); export interface AuthenticationMode { Type?: InputAuthenticationType; - Passwords?: string[]; + Passwords?: Array>; } export const AuthenticationMode = /*@__PURE__*/ S.suspend(() => S.Struct({ Type: S.optional(InputAuthenticationType), - Passwords: S.optional(PasswordListInput), + Passwords: S.optional(S.Array(SensitiveString)), }), ).annotate({ identifier: "AuthenticationMode", @@ -2594,362 +2596,545 @@ export const UpdateUserResponse = /*@__PURE__*/ S.suspend(() => export class InvalidParameterValueException extends S.TaggedErrorClass()( "InvalidParameterValueException", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidParameterValue", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidParameterValue", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ServiceUpdateNotFoundFault extends S.TaggedErrorClass()( "ServiceUpdateNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "ServiceUpdateNotFoundFault", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "ServiceUpdateNotFoundFault", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class InvalidParameterCombinationException extends S.TaggedErrorClass()( "InvalidParameterCombinationException", - { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidParameterCombination", - httpResponseCode: 400, - }), -).pipe(C.withBadRequestError) {} + {}, +) {} export class InvalidSnapshotStateFault extends S.TaggedErrorClass()( "InvalidSnapshotStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidSnapshotState", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidSnapshotState", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ServiceLinkedRoleNotFoundFault extends S.TaggedErrorClass()( "ServiceLinkedRoleNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "ServiceLinkedRoleNotFoundFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "ServiceLinkedRoleNotFoundFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SnapshotAlreadyExistsFault extends S.TaggedErrorClass()( "SnapshotAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "SnapshotAlreadyExistsFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "SnapshotAlreadyExistsFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class SnapshotNotFoundFault extends S.TaggedErrorClass()( "SnapshotNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SnapshotNotFoundFault", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "SnapshotNotFoundFault", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class SnapshotQuotaExceededFault extends S.TaggedErrorClass()( "SnapshotQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "SnapshotQuotaExceededFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "SnapshotQuotaExceededFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class TagQuotaPerResourceExceeded extends S.TaggedErrorClass()( "TagQuotaPerResourceExceeded", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "TagQuotaPerResourceExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "TagQuotaPerResourceExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ACLAlreadyExistsFault extends S.TaggedErrorClass()( "ACLAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "ACLAlreadyExists", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "ACLAlreadyExists", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class ACLQuotaExceededFault extends S.TaggedErrorClass()( "ACLQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "ACLQuotaExceeded", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "ACLQuotaExceeded", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DefaultUserRequired extends S.TaggedErrorClass()( "DefaultUserRequired", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DefaultUserRequired", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "DefaultUserRequired", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DuplicateUserNameFault extends S.TaggedErrorClass()( "DuplicateUserNameFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DuplicateUserName", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "DuplicateUserName", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class UserNotFoundFault extends S.TaggedErrorClass()( "UserNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "UserNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "UserNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class ACLNotFoundFault extends S.TaggedErrorClass()( "ACLNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "ACLNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "ACLNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class ClusterAlreadyExistsFault extends S.TaggedErrorClass()( "ClusterAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "ClusterAlreadyExists", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "ClusterAlreadyExists", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class ClusterQuotaForCustomerExceededFault extends S.TaggedErrorClass()( "ClusterQuotaForCustomerExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "ClusterQuotaForCustomerExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "ClusterQuotaForCustomerExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InsufficientClusterCapacityFault extends S.TaggedErrorClass()( "InsufficientClusterCapacityFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InsufficientClusterCapacity", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InsufficientClusterCapacity", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidACLStateFault extends S.TaggedErrorClass()( "InvalidACLStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidACLState", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidACLState", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidCredentialsException extends S.TaggedErrorClass()( "InvalidCredentialsException", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidCredentialsException", - httpResponseCode: 408, - }), + T.all( + T.AwsQueryError({ + code: "InvalidCredentialsException", + httpResponseCode: 408, + }), + T.HttpError(408), + ), ).pipe(C.withTimeoutError) {} export class InvalidMultiRegionClusterStateFault extends S.TaggedErrorClass()( "InvalidMultiRegionClusterStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidMultiRegionClusterState", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidMultiRegionClusterState", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidVPCNetworkStateFault extends S.TaggedErrorClass()( "InvalidVPCNetworkStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidVPCNetworkStateFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidVPCNetworkStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class MultiRegionClusterNotFoundFault extends S.TaggedErrorClass()( "MultiRegionClusterNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "MultiRegionClusterNotFound", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "MultiRegionClusterNotFound", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class NodeQuotaForClusterExceededFault extends S.TaggedErrorClass()( "NodeQuotaForClusterExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "NodeQuotaForClusterExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "NodeQuotaForClusterExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class NodeQuotaForCustomerExceededFault extends S.TaggedErrorClass()( "NodeQuotaForCustomerExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "NodeQuotaForCustomerExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "NodeQuotaForCustomerExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ParameterGroupNotFoundFault extends S.TaggedErrorClass()( "ParameterGroupNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "ParameterGroupNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "ParameterGroupNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class ShardsPerClusterQuotaExceededFault extends S.TaggedErrorClass()( "ShardsPerClusterQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "ShardsPerClusterQuotaExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "ShardsPerClusterQuotaExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SubnetGroupNotFoundFault extends S.TaggedErrorClass()( "SubnetGroupNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SubnetGroupNotFoundFault", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ + code: "SubnetGroupNotFoundFault", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class MultiRegionClusterAlreadyExistsFault extends S.TaggedErrorClass()( "MultiRegionClusterAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "MultiRegionClusterAlreadyExistsFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "MultiRegionClusterAlreadyExistsFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class MultiRegionParameterGroupNotFoundFault extends S.TaggedErrorClass()( "MultiRegionParameterGroupNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "MultiRegionParameterGroupNotFoundFault", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "MultiRegionParameterGroupNotFoundFault", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class InvalidParameterGroupStateFault extends S.TaggedErrorClass()( "InvalidParameterGroupStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidParameterGroupState", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidParameterGroupState", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ParameterGroupAlreadyExistsFault extends S.TaggedErrorClass()( "ParameterGroupAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "ParameterGroupAlreadyExists", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "ParameterGroupAlreadyExists", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class ParameterGroupQuotaExceededFault extends S.TaggedErrorClass()( "ParameterGroupQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "ParameterGroupQuotaExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "ParameterGroupQuotaExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ClusterNotFoundFault extends S.TaggedErrorClass()( "ClusterNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "ClusterNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "ClusterNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class InvalidClusterStateFault extends S.TaggedErrorClass()( "InvalidClusterStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidClusterState", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidClusterState", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidSubnet extends S.TaggedErrorClass()( "InvalidSubnet", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidSubnet", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidSubnet", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SubnetGroupAlreadyExistsFault extends S.TaggedErrorClass()( "SubnetGroupAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SubnetGroupAlreadyExists", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "SubnetGroupAlreadyExists", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class SubnetGroupQuotaExceededFault extends S.TaggedErrorClass()( "SubnetGroupQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SubnetGroupQuotaExceeded", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "SubnetGroupQuotaExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SubnetNotAllowedFault extends S.TaggedErrorClass()( "SubnetNotAllowedFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SubnetNotAllowedFault", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "SubnetNotAllowedFault", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SubnetQuotaExceededFault extends S.TaggedErrorClass()( "SubnetQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SubnetQuotaExceededFault", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "SubnetQuotaExceededFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class UserAlreadyExistsFault extends S.TaggedErrorClass()( "UserAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "UserAlreadyExists", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "UserAlreadyExists", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class UserQuotaExceededFault extends S.TaggedErrorClass()( "UserQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "UserQuotaExceeded", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "UserQuotaExceeded", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SubnetGroupInUseFault extends S.TaggedErrorClass()( "SubnetGroupInUseFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SubnetGroupInUse", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "SubnetGroupInUse", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidUserStateFault extends S.TaggedErrorClass()( "InvalidUserStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidUserState", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidUserState", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ReservedNodeNotFoundFault extends S.TaggedErrorClass()( "ReservedNodeNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "ReservedNodeNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "ReservedNodeNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class ReservedNodesOfferingNotFoundFault extends S.TaggedErrorClass()( "ReservedNodesOfferingNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "ReservedNodesOfferingNotFound", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "ReservedNodesOfferingNotFound", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class APICallRateForCustomerExceededFault extends S.TaggedErrorClass()( "APICallRateForCustomerExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "APICallRateForCustomerExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "APICallRateForCustomerExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidKMSKeyFault extends S.TaggedErrorClass()( "InvalidKMSKeyFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidKMSKeyFault", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidKMSKeyFault", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ShardNotFoundFault extends S.TaggedErrorClass()( "ShardNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "ShardNotFoundFault", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "ShardNotFoundFault", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class TestFailoverNotAvailableFault extends S.TaggedErrorClass()( "TestFailoverNotAvailableFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "TestFailoverNotAvailableFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "TestFailoverNotAvailableFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidARNFault extends S.TaggedErrorClass()( "InvalidARNFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidARN", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidARN", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ReservedNodeAlreadyExistsFault extends S.TaggedErrorClass()( "ReservedNodeAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "ReservedNodeAlreadyExists", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ + code: "ReservedNodeAlreadyExists", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class ReservedNodeQuotaExceededFault extends S.TaggedErrorClass()( "ReservedNodeQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "ReservedNodeQuotaExceeded", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "ReservedNodeQuotaExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class TagNotFoundFault extends S.TaggedErrorClass()( "TagNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "TagNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "TagNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class InvalidNodeStateFault extends S.TaggedErrorClass()( "InvalidNodeStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidNodeState", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidNodeState", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class NoOperationFault extends S.TaggedErrorClass()( "NoOperationFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "NoOperationFault", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "NoOperationFault", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SubnetInUse extends S.TaggedErrorClass()( "SubnetInUse", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SubnetInUse", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "SubnetInUse", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withDependencyViolationError) {} //# Operations export type BatchUpdateClusterError = | InvalidParameterValueException | ServiceUpdateNotFoundFault + | InvalidParameterCombinationException | CommonErrors; /** * Apply the service update to a list of clusters supplied. For more information on service updates and applying them, see Applying the service updates. @@ -2962,7 +3147,11 @@ export const batchUpdateCluster: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: BatchUpdateClusterRequest, output: BatchUpdateClusterResponse, - errors: [InvalidParameterValueException, ServiceUpdateNotFoundFault], + errors: [ + InvalidParameterValueException, + ServiceUpdateNotFoundFault, + InvalidParameterCombinationException, + ], operationName: "BatchUpdateCluster", })); export type CopySnapshotError = diff --git a/packages/aws/src/services/mq.ts b/packages/aws/src/services/mq.ts index 7c69ebd0e5..bf0603a227 100644 --- a/packages/aws/src/services/mq.ts +++ b/packages/aws/src/services/mq.ts @@ -1,4 +1,5 @@ import * as HttpClient from "effect/unstable/http/HttpClient"; +import * as redacted from "effect/Redacted"; import * as S from "@distilled.cloud/core/schema"; import * as stream from "effect/Stream"; import * as API from "../client/api.ts"; @@ -7,6 +8,7 @@ import * as C from "../category.ts"; import type { Credentials } from "../credentials.ts"; import type { CommonErrors } from "../errors.ts"; import type { Region } from "../region.ts"; +import { SensitiveString } from "../sensitive.ts"; const svc = T.AwsApiService({ sdkId: "mq", serviceShapeName: "mq" }); const auth = T.AwsAuthSigv4({ name: "mq" }); const ver = T.ServiceVersion("2017-11-27"); @@ -133,7 +135,7 @@ export interface LdapServerMetadataInput { RoleName?: string; RoleSearchMatching?: string; RoleSearchSubtree?: boolean; - ServiceAccountPassword?: string; + ServiceAccountPassword?: string | redacted.Redacted; ServiceAccountUsername?: string; UserBase?: string; UserRoleName?: string; @@ -147,7 +149,7 @@ export const LdapServerMetadataInput = /*@__PURE__*/ S.suspend(() => RoleName: S.optional(S.String), RoleSearchMatching: S.optional(S.String), RoleSearchSubtree: S.optional(S.Boolean), - ServiceAccountPassword: S.optional(S.String), + ServiceAccountPassword: S.optional(SensitiveString), ServiceAccountUsername: S.optional(S.String), UserBase: S.optional(S.String), UserRoleName: S.optional(S.String), @@ -221,7 +223,7 @@ export const __mapOf__string = /*@__PURE__*/ S.Record( export interface User { ConsoleAccess?: boolean; Groups?: string[]; - Password?: string; + Password?: string | redacted.Redacted; Username?: string; ReplicationUser?: boolean; } @@ -229,7 +231,7 @@ export const User = /*@__PURE__*/ S.suspend(() => S.Struct({ ConsoleAccess: S.optional(S.Boolean), Groups: S.optional(__listOf__string), - Password: S.optional(S.String), + Password: S.optional(SensitiveString), Username: S.optional(S.String), ReplicationUser: S.optional(S.Boolean), }).pipe( @@ -434,30 +436,27 @@ export interface CreateConfigurationResponse { }; Name?: string; } -export const CreateConfigurationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Arn: S.optional(S.String), - AuthenticationStrategy: S.optional(AuthenticationStrategy), - Created: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - Id: S.optional(S.String), - LatestRevision: S.optional(ConfigurationRevision), - Name: S.optional(S.String), - }).pipe( - S.encodeKeys({ - Arn: "arn", - AuthenticationStrategy: "authenticationStrategy", - Created: "created", - Id: "id", - LatestRevision: "latestRevision", - Name: "name", - }), - ), - ).annotate({ - identifier: "CreateConfigurationResponse", - }) as any as S.Schema; +export const CreateConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Arn: S.optional(S.String), + AuthenticationStrategy: S.optional(AuthenticationStrategy), + Created: S.optional(T.DateFromString.pipe(T.TimestampFormat("date-time"))), + Id: S.optional(S.String), + LatestRevision: S.optional(ConfigurationRevision), + Name: S.optional(S.String), + }).pipe( + S.encodeKeys({ + Arn: "arn", + AuthenticationStrategy: "authenticationStrategy", + Created: "created", + Id: "id", + LatestRevision: "latestRevision", + Name: "name", + }), + ), +).annotate({ + identifier: "CreateConfigurationResponse", +}) as any as S.Schema; export interface CreateTagsRequest { ResourceArn: string; Tags?: { [key: string]: string | undefined }; @@ -491,7 +490,7 @@ export interface CreateUserRequest { BrokerId: string; ConsoleAccess?: boolean; Groups?: string[]; - Password?: string; + Password?: string | redacted.Redacted; Username: string; ReplicationUser?: boolean; } @@ -500,7 +499,7 @@ export const CreateUserRequest = /*@__PURE__*/ S.suspend(() => BrokerId: S.String.pipe(T.HttpLabel("BrokerId")), ConsoleAccess: S.optional(S.Boolean), Groups: S.optional(__listOf__string), - Password: S.optional(S.String), + Password: S.optional(SensitiveString), Username: S.String.pipe(T.HttpLabel("Username")), ReplicationUser: S.optional(S.Boolean), }) @@ -569,10 +568,7 @@ export const DeleteConfigurationRequest = /*@__PURE__*/ S.suspend(() => ConfigurationId: S.String.pipe(T.HttpLabel("ConfigurationId")), }).pipe( T.all( - T.Http({ - method: "DELETE", - uri: "/v1/configurations/{ConfigurationId}", - }), + T.Http({ method: "DELETE", uri: "/v1/configurations/{ConfigurationId}" }), svc, auth, proto, @@ -586,14 +582,13 @@ export const DeleteConfigurationRequest = /*@__PURE__*/ S.suspend(() => export interface DeleteConfigurationResponse { ConfigurationId?: string; } -export const DeleteConfigurationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ConfigurationId: S.optional(S.String) }).pipe( - S.encodeKeys({ ConfigurationId: "configurationId" }), - ), - ).annotate({ - identifier: "DeleteConfigurationResponse", - }) as any as S.Schema; +export const DeleteConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ ConfigurationId: S.optional(S.String) }).pipe( + S.encodeKeys({ ConfigurationId: "configurationId" }), + ), +).annotate({ + identifier: "DeleteConfigurationResponse", +}) as any as S.Schema; export interface DeleteTagsRequest { ResourceArn: string; TagKeys?: string[]; @@ -842,20 +837,19 @@ export interface DataReplicationMetadataOutput { DataReplicationCounterpart?: DataReplicationCounterpart; DataReplicationRole?: string; } -export const DataReplicationMetadataOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DataReplicationCounterpart: S.optional(DataReplicationCounterpart), - DataReplicationRole: S.optional(S.String), - }).pipe( - S.encodeKeys({ - DataReplicationCounterpart: "dataReplicationCounterpart", - DataReplicationRole: "dataReplicationRole", - }), - ), - ).annotate({ - identifier: "DataReplicationMetadataOutput", - }) as any as S.Schema; +export const DataReplicationMetadataOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DataReplicationCounterpart: S.optional(DataReplicationCounterpart), + DataReplicationRole: S.optional(S.String), + }).pipe( + S.encodeKeys({ + DataReplicationCounterpart: "dataReplicationCounterpart", + DataReplicationRole: "dataReplicationRole", + }), + ), +).annotate({ + identifier: "DataReplicationMetadataOutput", +}) as any as S.Schema; export interface DescribeBrokerResponse { ActionsRequired?: ActionRequired[]; AuthenticationStrategy?: AuthenticationStrategy; @@ -1004,25 +998,24 @@ export interface DescribeBrokerEngineTypesRequest { MaxResults?: number; NextToken?: string; } -export const DescribeBrokerEngineTypesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - EngineType: S.optional(S.String).pipe(T.HttpQuery("engineType")), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - NextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/v1/broker-engine-types" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeBrokerEngineTypesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + EngineType: S.optional(S.String).pipe(T.HttpQuery("engineType")), + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + NextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/v1/broker-engine-types" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeBrokerEngineTypesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeBrokerEngineTypesRequest", +}) as any as S.Schema; export interface EngineVersion { Name?: string; } @@ -1055,22 +1048,21 @@ export interface DescribeBrokerEngineTypesResponse { MaxResults?: number; NextToken?: string; } -export const DescribeBrokerEngineTypesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - BrokerEngineTypes: S.optional(__listOfBrokerEngineType), - MaxResults: S.optional(S.Number), - NextToken: S.optional(S.String), - }).pipe( - S.encodeKeys({ - BrokerEngineTypes: "brokerEngineTypes", - MaxResults: "maxResults", - NextToken: "nextToken", - }), - ), - ).annotate({ - identifier: "DescribeBrokerEngineTypesResponse", - }) as any as S.Schema; +export const DescribeBrokerEngineTypesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + BrokerEngineTypes: S.optional(__listOfBrokerEngineType), + MaxResults: S.optional(S.Number), + NextToken: S.optional(S.String), + }).pipe( + S.encodeKeys({ + BrokerEngineTypes: "brokerEngineTypes", + MaxResults: "maxResults", + NextToken: "nextToken", + }), + ), +).annotate({ + identifier: "DescribeBrokerEngineTypesResponse", +}) as any as S.Schema; export interface DescribeBrokerInstanceOptionsRequest { EngineType?: string; HostInstanceType?: string; @@ -1078,8 +1070,8 @@ export interface DescribeBrokerInstanceOptionsRequest { NextToken?: string; StorageType?: string; } -export const DescribeBrokerInstanceOptionsRequest = - /*@__PURE__*/ S.suspend(() => +export const DescribeBrokerInstanceOptionsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ EngineType: S.optional(S.String).pipe(T.HttpQuery("engineType")), HostInstanceType: S.optional(S.String).pipe( @@ -1098,9 +1090,9 @@ export const DescribeBrokerInstanceOptionsRequest = rules, ), ), - ).annotate({ - identifier: "DescribeBrokerInstanceOptionsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeBrokerInstanceOptionsRequest", +}) as any as S.Schema; export interface AvailabilityZone { Name?: string; } @@ -1150,8 +1142,8 @@ export interface DescribeBrokerInstanceOptionsResponse { MaxResults?: number; NextToken?: string; } -export const DescribeBrokerInstanceOptionsResponse = - /*@__PURE__*/ S.suspend(() => +export const DescribeBrokerInstanceOptionsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ BrokerInstanceOptions: S.optional(__listOfBrokerInstanceOption), MaxResults: S.optional(S.Number), @@ -1163,29 +1155,28 @@ export const DescribeBrokerInstanceOptionsResponse = NextToken: "nextToken", }), ), - ).annotate({ - identifier: "DescribeBrokerInstanceOptionsResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeBrokerInstanceOptionsResponse", +}) as any as S.Schema; export interface DescribeConfigurationRequest { ConfigurationId: string; } -export const DescribeConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ConfigurationId: S.String.pipe(T.HttpLabel("ConfigurationId")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/v1/configurations/{ConfigurationId}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ConfigurationId: S.String.pipe(T.HttpLabel("ConfigurationId")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/v1/configurations/{ConfigurationId}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeConfigurationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeConfigurationRequest", +}) as any as S.Schema; export interface DescribeConfigurationResponse { Arn?: string; AuthenticationStrategy?: AuthenticationStrategy; @@ -1201,44 +1192,41 @@ export interface DescribeConfigurationResponse { Name?: string; Tags?: { [key: string]: string | undefined }; } -export const DescribeConfigurationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Arn: S.optional(S.String), - AuthenticationStrategy: S.optional(AuthenticationStrategy), - Created: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - Description: S.optional(S.String), - EngineType: S.optional(EngineType), - EngineVersion: S.optional(S.String), - Id: S.optional(S.String), - LatestRevision: S.optional(ConfigurationRevision), - Name: S.optional(S.String), - Tags: S.optional(__mapOf__string), - }).pipe( - S.encodeKeys({ - Arn: "arn", - AuthenticationStrategy: "authenticationStrategy", - Created: "created", - Description: "description", - EngineType: "engineType", - EngineVersion: "engineVersion", - Id: "id", - LatestRevision: "latestRevision", - Name: "name", - Tags: "tags", - }), - ), - ).annotate({ - identifier: "DescribeConfigurationResponse", - }) as any as S.Schema; +export const DescribeConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Arn: S.optional(S.String), + AuthenticationStrategy: S.optional(AuthenticationStrategy), + Created: S.optional(T.DateFromString.pipe(T.TimestampFormat("date-time"))), + Description: S.optional(S.String), + EngineType: S.optional(EngineType), + EngineVersion: S.optional(S.String), + Id: S.optional(S.String), + LatestRevision: S.optional(ConfigurationRevision), + Name: S.optional(S.String), + Tags: S.optional(__mapOf__string), + }).pipe( + S.encodeKeys({ + Arn: "arn", + AuthenticationStrategy: "authenticationStrategy", + Created: "created", + Description: "description", + EngineType: "engineType", + EngineVersion: "engineVersion", + Id: "id", + LatestRevision: "latestRevision", + Name: "name", + Tags: "tags", + }), + ), +).annotate({ + identifier: "DescribeConfigurationResponse", +}) as any as S.Schema; export interface DescribeConfigurationRevisionRequest { ConfigurationId: string; ConfigurationRevision: string; } -export const DescribeConfigurationRevisionRequest = - /*@__PURE__*/ S.suspend(() => +export const DescribeConfigurationRevisionRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ ConfigurationId: S.String.pipe(T.HttpLabel("ConfigurationId")), ConfigurationRevision: S.String.pipe( @@ -1257,17 +1245,17 @@ export const DescribeConfigurationRevisionRequest = rules, ), ), - ).annotate({ - identifier: "DescribeConfigurationRevisionRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeConfigurationRevisionRequest", +}) as any as S.Schema; export interface DescribeConfigurationRevisionResponse { ConfigurationId?: string; Created?: Date; Data?: string; Description?: string; } -export const DescribeConfigurationRevisionResponse = - /*@__PURE__*/ S.suspend(() => +export const DescribeConfigurationRevisionResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ ConfigurationId: S.optional(S.String), Created: S.optional( @@ -1283,36 +1271,32 @@ export const DescribeConfigurationRevisionResponse = Description: "description", }), ), - ).annotate({ - identifier: "DescribeConfigurationRevisionResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeConfigurationRevisionResponse", +}) as any as S.Schema; export interface DescribeSharedResourcesRequest { BrokerId: string; MaxResults?: number; NextToken?: string; } -export const DescribeSharedResourcesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - BrokerId: S.String.pipe(T.HttpLabel("BrokerId")), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - NextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/v1/brokers/{BrokerId}/shared-resources", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeSharedResourcesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + BrokerId: S.String.pipe(T.HttpLabel("BrokerId")), + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + NextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/v1/brokers/{BrokerId}/shared-resources" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeSharedResourcesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeSharedResourcesRequest", +}) as any as S.Schema; export type SharedResourceErrorCode = | "QUOTA_EXCEEDED" | "SHARE_NOT_FOUND" @@ -1387,20 +1371,19 @@ export interface DescribeSharedResourcesResponse { }; })[]; } -export const DescribeSharedResourcesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - NextToken: S.optional(S.String), - SharedResources: S.optional(__listOfSharedResource), - }).pipe( - S.encodeKeys({ - NextToken: "nextToken", - SharedResources: "sharedResources", - }), - ), - ).annotate({ - identifier: "DescribeSharedResourcesResponse", - }) as any as S.Schema; +export const DescribeSharedResourcesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + NextToken: S.optional(S.String), + SharedResources: S.optional(__listOfSharedResource), + }).pipe( + S.encodeKeys({ + NextToken: "nextToken", + SharedResources: "sharedResources", + }), + ), +).annotate({ + identifier: "DescribeSharedResourcesResponse", +}) as any as S.Schema; export interface DescribeUserRequest { BrokerId: string; Username: string; @@ -1552,31 +1535,31 @@ export interface ListConfigurationRevisionsRequest { MaxResults?: number; NextToken?: string; } -export const ListConfigurationRevisionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ConfigurationId: S.String.pipe(T.HttpLabel("ConfigurationId")), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - NextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/v1/configurations/{ConfigurationId}/revisions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListConfigurationRevisionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ConfigurationId: S.String.pipe(T.HttpLabel("ConfigurationId")), + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + NextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/v1/configurations/{ConfigurationId}/revisions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListConfigurationRevisionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListConfigurationRevisionsRequest", +}) as any as S.Schema; export type __listOfConfigurationRevision = ConfigurationRevision[]; -export const __listOfConfigurationRevision = - /*@__PURE__*/ S.Array(ConfigurationRevision); +export const __listOfConfigurationRevision = /*@__PURE__*/ S.Array( + ConfigurationRevision, +); export interface ListConfigurationRevisionsResponse { ConfigurationId?: string; MaxResults?: number; @@ -1586,24 +1569,23 @@ export interface ListConfigurationRevisionsResponse { Revision: number; })[]; } -export const ListConfigurationRevisionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ConfigurationId: S.optional(S.String), - MaxResults: S.optional(S.Number), - NextToken: S.optional(S.String), - Revisions: S.optional(__listOfConfigurationRevision), - }).pipe( - S.encodeKeys({ - ConfigurationId: "configurationId", - MaxResults: "maxResults", - NextToken: "nextToken", - Revisions: "revisions", - }), - ), - ).annotate({ - identifier: "ListConfigurationRevisionsResponse", - }) as any as S.Schema; +export const ListConfigurationRevisionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ConfigurationId: S.optional(S.String), + MaxResults: S.optional(S.Number), + NextToken: S.optional(S.String), + Revisions: S.optional(__listOfConfigurationRevision), + }).pipe( + S.encodeKeys({ + ConfigurationId: "configurationId", + MaxResults: "maxResults", + NextToken: "nextToken", + Revisions: "revisions", + }), + ), +).annotate({ + identifier: "ListConfigurationRevisionsResponse", +}) as any as S.Schema; export interface ListConfigurationsRequest { MaxResults?: number; NextToken?: string; @@ -1977,10 +1959,7 @@ export const UpdateConfigurationRequest = /*@__PURE__*/ S.suspend(() => .pipe(S.encodeKeys({ Data: "data", Description: "description" })) .pipe( T.all( - T.Http({ - method: "PUT", - uri: "/v1/configurations/{ConfigurationId}", - }), + T.Http({ method: "PUT", uri: "/v1/configurations/{ConfigurationId}" }), svc, auth, proto, @@ -2031,35 +2010,32 @@ export interface UpdateConfigurationResponse { Name?: string; Warnings?: (SanitizationWarning & { Reason: SanitizationWarningReason })[]; } -export const UpdateConfigurationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Arn: S.optional(S.String), - Created: S.optional( - T.DateFromString.pipe(T.TimestampFormat("date-time")), - ), - Id: S.optional(S.String), - LatestRevision: S.optional(ConfigurationRevision), - Name: S.optional(S.String), - Warnings: S.optional(__listOfSanitizationWarning), - }).pipe( - S.encodeKeys({ - Arn: "arn", - Created: "created", - Id: "id", - LatestRevision: "latestRevision", - Name: "name", - Warnings: "warnings", - }), - ), - ).annotate({ - identifier: "UpdateConfigurationResponse", - }) as any as S.Schema; +export const UpdateConfigurationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Arn: S.optional(S.String), + Created: S.optional(T.DateFromString.pipe(T.TimestampFormat("date-time"))), + Id: S.optional(S.String), + LatestRevision: S.optional(ConfigurationRevision), + Name: S.optional(S.String), + Warnings: S.optional(__listOfSanitizationWarning), + }).pipe( + S.encodeKeys({ + Arn: "arn", + Created: "created", + Id: "id", + LatestRevision: "latestRevision", + Name: "name", + Warnings: "warnings", + }), + ), +).annotate({ + identifier: "UpdateConfigurationResponse", +}) as any as S.Schema; export interface UpdateUserRequest { BrokerId: string; ConsoleAccess?: boolean; Groups?: string[]; - Password?: string; + Password?: string | redacted.Redacted; Username: string; ReplicationUser?: boolean; } @@ -2068,7 +2044,7 @@ export const UpdateUserRequest = /*@__PURE__*/ S.suspend(() => BrokerId: S.String.pipe(T.HttpLabel("BrokerId")), ConsoleAccess: S.optional(S.Boolean), Groups: S.optional(__listOf__string), - Password: S.optional(S.String), + Password: S.optional(SensitiveString), Username: S.String.pipe(T.HttpLabel("Username")), ReplicationUser: S.optional(S.Boolean), }) @@ -2111,6 +2087,7 @@ export class BadRequestException extends S.TaggedErrorClass Message: S.optional(S.String), ResourceShareErrors: S.optional(__listOfResourceShareError), }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", @@ -2119,6 +2096,7 @@ export class ConflictException extends S.TaggedErrorClass()( Message: S.optional(S.String), ResourceShareErrors: S.optional(__listOfResourceShareError), }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ForbiddenException extends S.TaggedErrorClass()( "ForbiddenException", @@ -2127,6 +2105,7 @@ export class ForbiddenException extends S.TaggedErrorClass() Message: S.optional(S.String), ResourceShareErrors: S.optional(__listOfResourceShareError), }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class InternalServerErrorException extends S.TaggedErrorClass()( "InternalServerErrorException", @@ -2135,6 +2114,7 @@ export class InternalServerErrorException extends S.TaggedErrorClass()( "UnauthorizedException", @@ -2143,6 +2123,7 @@ export class UnauthorizedException extends S.TaggedErrorClass()( "NotFoundException", @@ -2151,6 +2132,7 @@ export class NotFoundException extends S.TaggedErrorClass()( Message: S.optional(S.String), ResourceShareErrors: S.optional(__listOfResourceShareError), }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} //# Operations diff --git a/packages/aws/src/services/mwaa.ts b/packages/aws/src/services/mwaa.ts index 15cf764d92..e126cae056 100644 --- a/packages/aws/src/services/mwaa.ts +++ b/packages/aws/src/services/mwaa.ts @@ -825,22 +825,27 @@ export const UpdateEnvironmentOutput = /*@__PURE__*/ S.suspend(() => export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class ServiceUnavailableException extends S.TaggedErrorClass()( "ServiceUnavailableException", { message: S.optional(S.String) }, + T.HttpError(503), ).pipe(C.withServerError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { Message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class RestApiClientException extends S.TaggedErrorClass()( "RestApiClientException", @@ -848,6 +853,7 @@ export class RestApiClientException extends S.TaggedErrorClass()( "RestApiServerException", @@ -855,6 +861,7 @@ export class RestApiServerException extends S.TaggedErrorClass +export const AddSourceIdentifierToSubscriptionMessage = /*@__PURE__*/ S.suspend( + () => S.Struct({ SubscriptionName: S.optional(S.String), SourceIdentifier: S.optional(S.String), @@ -145,9 +145,9 @@ export const AddSourceIdentifierToSubscriptionMessage = rules, ), ), - ).annotate({ - identifier: "AddSourceIdentifierToSubscriptionMessage", - }) as any as S.Schema; +).annotate({ + identifier: "AddSourceIdentifierToSubscriptionMessage", +}) as any as S.Schema; export type SourceIdsList = string[]; export const SourceIdsList = /*@__PURE__*/ S.Array( S.String.pipe(T.XmlName("SourceId")), @@ -187,12 +187,11 @@ export const EventSubscription = /*@__PURE__*/ S.suspend(() => export interface AddSourceIdentifierToSubscriptionResult { EventSubscription?: EventSubscription; } -export const AddSourceIdentifierToSubscriptionResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ EventSubscription: S.optional(EventSubscription) }).pipe(ns), - ).annotate({ - identifier: "AddSourceIdentifierToSubscriptionResult", - }) as any as S.Schema; +export const AddSourceIdentifierToSubscriptionResult = /*@__PURE__*/ S.suspend( + () => S.Struct({ EventSubscription: S.optional(EventSubscription) }).pipe(ns), +).annotate({ + identifier: "AddSourceIdentifierToSubscriptionResult", +}) as any as S.Schema; export interface Tag { Key?: string; Value?: string; @@ -237,8 +236,8 @@ export interface ApplyPendingMaintenanceActionMessage { ApplyAction?: string; OptInType?: string; } -export const ApplyPendingMaintenanceActionMessage = - /*@__PURE__*/ S.suspend(() => +export const ApplyPendingMaintenanceActionMessage = /*@__PURE__*/ S.suspend( + () => S.Struct({ ResourceIdentifier: S.optional(S.String), ApplyAction: S.optional(S.String), @@ -254,9 +253,9 @@ export const ApplyPendingMaintenanceActionMessage = rules, ), ), - ).annotate({ - identifier: "ApplyPendingMaintenanceActionMessage", - }) as any as S.Schema; +).annotate({ + identifier: "ApplyPendingMaintenanceActionMessage", +}) as any as S.Schema; export interface PendingMaintenanceAction { Action?: string; AutoAppliedAfterDate?: Date; @@ -284,67 +283,63 @@ export const PendingMaintenanceAction = /*@__PURE__*/ S.suspend(() => identifier: "PendingMaintenanceAction", }) as any as S.Schema; export type PendingMaintenanceActionDetails = PendingMaintenanceAction[]; -export const PendingMaintenanceActionDetails = - /*@__PURE__*/ S.Array( - PendingMaintenanceAction.pipe( - T.XmlName("PendingMaintenanceAction"), - ).annotate({ identifier: "PendingMaintenanceAction" }), - ); +export const PendingMaintenanceActionDetails = /*@__PURE__*/ S.Array( + PendingMaintenanceAction.pipe(T.XmlName("PendingMaintenanceAction")).annotate( + { identifier: "PendingMaintenanceAction" }, + ), +); export interface ResourcePendingMaintenanceActions { ResourceIdentifier?: string; PendingMaintenanceActionDetails?: PendingMaintenanceAction[]; } -export const ResourcePendingMaintenanceActions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResourceIdentifier: S.optional(S.String), - PendingMaintenanceActionDetails: S.optional( - PendingMaintenanceActionDetails, - ), - }), - ).annotate({ - identifier: "ResourcePendingMaintenanceActions", - }) as any as S.Schema; +export const ResourcePendingMaintenanceActions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResourceIdentifier: S.optional(S.String), + PendingMaintenanceActionDetails: S.optional( + PendingMaintenanceActionDetails, + ), + }), +).annotate({ + identifier: "ResourcePendingMaintenanceActions", +}) as any as S.Schema; export interface ApplyPendingMaintenanceActionResult { ResourcePendingMaintenanceActions?: ResourcePendingMaintenanceActions; } -export const ApplyPendingMaintenanceActionResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResourcePendingMaintenanceActions: S.optional( - ResourcePendingMaintenanceActions, - ), - }).pipe(ns), - ).annotate({ - identifier: "ApplyPendingMaintenanceActionResult", - }) as any as S.Schema; +export const ApplyPendingMaintenanceActionResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResourcePendingMaintenanceActions: S.optional( + ResourcePendingMaintenanceActions, + ), + }).pipe(ns), +).annotate({ + identifier: "ApplyPendingMaintenanceActionResult", +}) as any as S.Schema; export interface CopyDBClusterParameterGroupMessage { SourceDBClusterParameterGroupIdentifier?: string; TargetDBClusterParameterGroupIdentifier?: string; TargetDBClusterParameterGroupDescription?: string; Tags?: Tag[]; } -export const CopyDBClusterParameterGroupMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SourceDBClusterParameterGroupIdentifier: S.optional(S.String), - TargetDBClusterParameterGroupIdentifier: S.optional(S.String), - TargetDBClusterParameterGroupDescription: S.optional(S.String), - Tags: S.optional(TagList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CopyDBClusterParameterGroupMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SourceDBClusterParameterGroupIdentifier: S.optional(S.String), + TargetDBClusterParameterGroupIdentifier: S.optional(S.String), + TargetDBClusterParameterGroupDescription: S.optional(S.String), + Tags: S.optional(TagList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CopyDBClusterParameterGroupMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CopyDBClusterParameterGroupMessage", +}) as any as S.Schema; export interface DBClusterParameterGroup { DBClusterParameterGroupName?: string; DBParameterGroupFamily?: string; @@ -364,14 +359,13 @@ export const DBClusterParameterGroup = /*@__PURE__*/ S.suspend(() => export interface CopyDBClusterParameterGroupResult { DBClusterParameterGroup?: DBClusterParameterGroup; } -export const CopyDBClusterParameterGroupResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DBClusterParameterGroup: S.optional(DBClusterParameterGroup), - }).pipe(ns), - ).annotate({ - identifier: "CopyDBClusterParameterGroupResult", - }) as any as S.Schema; +export const CopyDBClusterParameterGroupResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DBClusterParameterGroup: S.optional(DBClusterParameterGroup), + }).pipe(ns), +).annotate({ + identifier: "CopyDBClusterParameterGroupResult", +}) as any as S.Schema; export interface CopyDBClusterSnapshotMessage { SourceDBClusterSnapshotIdentifier?: string; TargetDBClusterSnapshotIdentifier?: string; @@ -380,29 +374,28 @@ export interface CopyDBClusterSnapshotMessage { CopyTags?: boolean; Tags?: Tag[]; } -export const CopyDBClusterSnapshotMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SourceDBClusterSnapshotIdentifier: S.optional(S.String), - TargetDBClusterSnapshotIdentifier: S.optional(S.String), - KmsKeyId: S.optional(S.String), - PreSignedUrl: S.optional(S.String), - CopyTags: S.optional(S.Boolean), - Tags: S.optional(TagList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CopyDBClusterSnapshotMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SourceDBClusterSnapshotIdentifier: S.optional(S.String), + TargetDBClusterSnapshotIdentifier: S.optional(S.String), + KmsKeyId: S.optional(S.String), + PreSignedUrl: S.optional(S.String), + CopyTags: S.optional(S.Boolean), + Tags: S.optional(TagList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CopyDBClusterSnapshotMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CopyDBClusterSnapshotMessage", +}) as any as S.Schema; export type AvailabilityZones = string[]; export const AvailabilityZones = /*@__PURE__*/ S.Array( S.String.pipe(T.XmlName("AvailabilityZone")), @@ -464,39 +457,37 @@ export const DBClusterSnapshot = /*@__PURE__*/ S.suspend(() => export interface CopyDBClusterSnapshotResult { DBClusterSnapshot?: DBClusterSnapshot; } -export const CopyDBClusterSnapshotResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DBClusterSnapshot: S.optional(DBClusterSnapshot) }).pipe(ns), - ).annotate({ - identifier: "CopyDBClusterSnapshotResult", - }) as any as S.Schema; +export const CopyDBClusterSnapshotResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ DBClusterSnapshot: S.optional(DBClusterSnapshot) }).pipe(ns), +).annotate({ + identifier: "CopyDBClusterSnapshotResult", +}) as any as S.Schema; export interface CopyDBParameterGroupMessage { SourceDBParameterGroupIdentifier?: string; TargetDBParameterGroupIdentifier?: string; TargetDBParameterGroupDescription?: string; Tags?: Tag[]; } -export const CopyDBParameterGroupMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SourceDBParameterGroupIdentifier: S.optional(S.String), - TargetDBParameterGroupIdentifier: S.optional(S.String), - TargetDBParameterGroupDescription: S.optional(S.String), - Tags: S.optional(TagList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CopyDBParameterGroupMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SourceDBParameterGroupIdentifier: S.optional(S.String), + TargetDBParameterGroupIdentifier: S.optional(S.String), + TargetDBParameterGroupDescription: S.optional(S.String), + Tags: S.optional(TagList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CopyDBParameterGroupMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CopyDBParameterGroupMessage", +}) as any as S.Schema; export interface DBParameterGroup { DBParameterGroupName?: string; DBParameterGroupFamily?: string; @@ -531,15 +522,14 @@ export interface ServerlessV2ScalingConfiguration { MinCapacity?: number; MaxCapacity?: number; } -export const ServerlessV2ScalingConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - MinCapacity: S.optional(S.Number), - MaxCapacity: S.optional(S.Number), - }), - ).annotate({ - identifier: "ServerlessV2ScalingConfiguration", - }) as any as S.Schema; +export const ServerlessV2ScalingConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + MinCapacity: S.optional(S.Number), + MaxCapacity: S.optional(S.Number), + }), +).annotate({ + identifier: "ServerlessV2ScalingConfiguration", +}) as any as S.Schema; export interface CreateDBClusterMessage { AvailabilityZones?: string[]; BackupRetentionPeriod?: number; @@ -554,7 +544,7 @@ export interface CreateDBClusterMessage { EngineVersion?: string; Port?: number; MasterUsername?: string; - MasterUserPassword?: string; + MasterUserPassword?: string | redacted.Redacted; OptionGroupName?: string; PreferredBackupWindow?: string; PreferredMaintenanceWindow?: string; @@ -586,7 +576,7 @@ export const CreateDBClusterMessage = /*@__PURE__*/ S.suspend(() => EngineVersion: S.optional(S.String), Port: S.optional(S.Number), MasterUsername: S.optional(S.String), - MasterUserPassword: S.optional(S.String), + MasterUserPassword: S.optional(SensitiveString), OptionGroupName: S.optional(S.String), PreferredBackupWindow: S.optional(S.String), PreferredMaintenanceWindow: S.optional(S.String), @@ -631,12 +621,11 @@ export const DBClusterOptionGroupStatus = /*@__PURE__*/ S.suspend(() => identifier: "DBClusterOptionGroupStatus", }) as any as S.Schema; export type DBClusterOptionGroupMemberships = DBClusterOptionGroupStatus[]; -export const DBClusterOptionGroupMemberships = - /*@__PURE__*/ S.Array( - DBClusterOptionGroupStatus.pipe(T.XmlName("DBClusterOptionGroup")).annotate( - { identifier: "DBClusterOptionGroupStatus" }, - ), - ); +export const DBClusterOptionGroupMemberships = /*@__PURE__*/ S.Array( + DBClusterOptionGroupStatus.pipe(T.XmlName("DBClusterOptionGroup")).annotate({ + identifier: "DBClusterOptionGroupStatus", + }), +); export type ReadReplicaIdentifierList = string[]; export const ReadReplicaIdentifierList = /*@__PURE__*/ S.Array( S.String.pipe(T.XmlName("ReadReplicaIdentifier")), @@ -676,12 +665,11 @@ export const VpcSecurityGroupMembership = /*@__PURE__*/ S.suspend(() => identifier: "VpcSecurityGroupMembership", }) as any as S.Schema; export type VpcSecurityGroupMembershipList = VpcSecurityGroupMembership[]; -export const VpcSecurityGroupMembershipList = - /*@__PURE__*/ S.Array( - VpcSecurityGroupMembership.pipe( - T.XmlName("VpcSecurityGroupMembership"), - ).annotate({ identifier: "VpcSecurityGroupMembership" }), - ); +export const VpcSecurityGroupMembershipList = /*@__PURE__*/ S.Array( + VpcSecurityGroupMembership.pipe( + T.XmlName("VpcSecurityGroupMembership"), + ).annotate({ identifier: "VpcSecurityGroupMembership" }), +); export interface DBClusterRole { RoleArn?: string; Status?: string; @@ -704,15 +692,14 @@ export interface PendingCloudwatchLogsExports { LogTypesToEnable?: string[]; LogTypesToDisable?: string[]; } -export const PendingCloudwatchLogsExports = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - LogTypesToEnable: S.optional(LogTypeList), - LogTypesToDisable: S.optional(LogTypeList), - }), - ).annotate({ - identifier: "PendingCloudwatchLogsExports", - }) as any as S.Schema; +export const PendingCloudwatchLogsExports = /*@__PURE__*/ S.suspend(() => + S.Struct({ + LogTypesToEnable: S.optional(LogTypeList), + LogTypesToDisable: S.optional(LogTypeList), + }), +).annotate({ + identifier: "PendingCloudwatchLogsExports", +}) as any as S.Schema; export interface ClusterPendingModifiedValues { PendingCloudwatchLogsExports?: PendingCloudwatchLogsExports; DBClusterIdentifier?: string; @@ -724,35 +711,34 @@ export interface ClusterPendingModifiedValues { Iops?: number; NetworkType?: string; } -export const ClusterPendingModifiedValues = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - PendingCloudwatchLogsExports: S.optional(PendingCloudwatchLogsExports), - DBClusterIdentifier: S.optional(S.String), - IAMDatabaseAuthenticationEnabled: S.optional(S.Boolean), - EngineVersion: S.optional(S.String), - BackupRetentionPeriod: S.optional(S.Number), - StorageType: S.optional(S.String), - AllocatedStorage: S.optional(S.Number), - Iops: S.optional(S.Number), - NetworkType: S.optional(S.String), - }), - ).annotate({ - identifier: "ClusterPendingModifiedValues", - }) as any as S.Schema; +export const ClusterPendingModifiedValues = /*@__PURE__*/ S.suspend(() => + S.Struct({ + PendingCloudwatchLogsExports: S.optional(PendingCloudwatchLogsExports), + DBClusterIdentifier: S.optional(S.String), + IAMDatabaseAuthenticationEnabled: S.optional(S.Boolean), + EngineVersion: S.optional(S.String), + BackupRetentionPeriod: S.optional(S.Number), + StorageType: S.optional(S.String), + AllocatedStorage: S.optional(S.Number), + Iops: S.optional(S.Number), + NetworkType: S.optional(S.String), + }), +).annotate({ + identifier: "ClusterPendingModifiedValues", +}) as any as S.Schema; export interface ServerlessV2ScalingConfigurationInfo { MinCapacity?: number; MaxCapacity?: number; } -export const ServerlessV2ScalingConfigurationInfo = - /*@__PURE__*/ S.suspend(() => +export const ServerlessV2ScalingConfigurationInfo = /*@__PURE__*/ S.suspend( + () => S.Struct({ MinCapacity: S.optional(S.Number), MaxCapacity: S.optional(S.Number), }), - ).annotate({ - identifier: "ServerlessV2ScalingConfigurationInfo", - }) as any as S.Schema; +).annotate({ + identifier: "ServerlessV2ScalingConfigurationInfo", +}) as any as S.Schema; export interface DBCluster { AllocatedStorage?: number; AvailabilityZones?: string[]; @@ -883,29 +869,28 @@ export interface CreateDBClusterEndpointMessage { ExcludedMembers?: string[]; Tags?: Tag[]; } -export const CreateDBClusterEndpointMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DBClusterIdentifier: S.optional(S.String), - DBClusterEndpointIdentifier: S.optional(S.String), - EndpointType: S.optional(S.String), - StaticMembers: S.optional(StringList), - ExcludedMembers: S.optional(StringList), - Tags: S.optional(TagList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateDBClusterEndpointMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DBClusterIdentifier: S.optional(S.String), + DBClusterEndpointIdentifier: S.optional(S.String), + EndpointType: S.optional(S.String), + StaticMembers: S.optional(StringList), + ExcludedMembers: S.optional(StringList), + Tags: S.optional(TagList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateDBClusterEndpointMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateDBClusterEndpointMessage", +}) as any as S.Schema; export interface CreateDBClusterEndpointOutput { DBClusterEndpointIdentifier?: string; DBClusterIdentifier?: string; @@ -918,31 +903,30 @@ export interface CreateDBClusterEndpointOutput { ExcludedMembers?: string[]; DBClusterEndpointArn?: string; } -export const CreateDBClusterEndpointOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DBClusterEndpointIdentifier: S.optional(S.String), - DBClusterIdentifier: S.optional(S.String), - DBClusterEndpointResourceIdentifier: S.optional(S.String), - Endpoint: S.optional(S.String), - Status: S.optional(S.String), - EndpointType: S.optional(S.String), - CustomEndpointType: S.optional(S.String), - StaticMembers: S.optional(StringList), - ExcludedMembers: S.optional(StringList), - DBClusterEndpointArn: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "CreateDBClusterEndpointOutput", - }) as any as S.Schema; +export const CreateDBClusterEndpointOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DBClusterEndpointIdentifier: S.optional(S.String), + DBClusterIdentifier: S.optional(S.String), + DBClusterEndpointResourceIdentifier: S.optional(S.String), + Endpoint: S.optional(S.String), + Status: S.optional(S.String), + EndpointType: S.optional(S.String), + CustomEndpointType: S.optional(S.String), + StaticMembers: S.optional(StringList), + ExcludedMembers: S.optional(StringList), + DBClusterEndpointArn: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "CreateDBClusterEndpointOutput", +}) as any as S.Schema; export interface CreateDBClusterParameterGroupMessage { DBClusterParameterGroupName?: string; DBParameterGroupFamily?: string; Description?: string; Tags?: Tag[]; } -export const CreateDBClusterParameterGroupMessage = - /*@__PURE__*/ S.suspend(() => +export const CreateDBClusterParameterGroupMessage = /*@__PURE__*/ S.suspend( + () => S.Struct({ DBClusterParameterGroupName: S.optional(S.String), DBParameterGroupFamily: S.optional(S.String), @@ -959,66 +943,63 @@ export const CreateDBClusterParameterGroupMessage = rules, ), ), - ).annotate({ - identifier: "CreateDBClusterParameterGroupMessage", - }) as any as S.Schema; +).annotate({ + identifier: "CreateDBClusterParameterGroupMessage", +}) as any as S.Schema; export interface CreateDBClusterParameterGroupResult { DBClusterParameterGroup?: DBClusterParameterGroup; } -export const CreateDBClusterParameterGroupResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DBClusterParameterGroup: S.optional(DBClusterParameterGroup), - }).pipe(ns), - ).annotate({ - identifier: "CreateDBClusterParameterGroupResult", - }) as any as S.Schema; +export const CreateDBClusterParameterGroupResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DBClusterParameterGroup: S.optional(DBClusterParameterGroup), + }).pipe(ns), +).annotate({ + identifier: "CreateDBClusterParameterGroupResult", +}) as any as S.Schema; export interface CreateDBClusterSnapshotMessage { DBClusterSnapshotIdentifier?: string; DBClusterIdentifier?: string; Tags?: Tag[]; } -export const CreateDBClusterSnapshotMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DBClusterSnapshotIdentifier: S.optional(S.String), - DBClusterIdentifier: S.optional(S.String), - Tags: S.optional(TagList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), - ), - ).annotate({ - identifier: "CreateDBClusterSnapshotMessage", - }) as any as S.Schema; -export interface CreateDBClusterSnapshotResult { - DBClusterSnapshot?: DBClusterSnapshot; -} -export const CreateDBClusterSnapshotResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DBClusterSnapshot: S.optional(DBClusterSnapshot) }).pipe(ns), - ).annotate({ - identifier: "CreateDBClusterSnapshotResult", - }) as any as S.Schema; -export type DBSecurityGroupNameList = string[]; -export const DBSecurityGroupNameList = /*@__PURE__*/ S.Array( - S.String.pipe(T.XmlName("DBSecurityGroupName")), -); -export interface CreateDBInstanceMessage { +export const CreateDBClusterSnapshotMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DBClusterSnapshotIdentifier: S.optional(S.String), + DBClusterIdentifier: S.optional(S.String), + Tags: S.optional(TagList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "CreateDBClusterSnapshotMessage", +}) as any as S.Schema; +export interface CreateDBClusterSnapshotResult { + DBClusterSnapshot?: DBClusterSnapshot; +} +export const CreateDBClusterSnapshotResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ DBClusterSnapshot: S.optional(DBClusterSnapshot) }).pipe(ns), +).annotate({ + identifier: "CreateDBClusterSnapshotResult", +}) as any as S.Schema; +export type DBSecurityGroupNameList = string[]; +export const DBSecurityGroupNameList = /*@__PURE__*/ S.Array( + S.String.pipe(T.XmlName("DBSecurityGroupName")), +); +export interface CreateDBInstanceMessage { DBName?: string; DBInstanceIdentifier?: string; AllocatedStorage?: number; DBInstanceClass?: string; Engine?: string; MasterUsername?: string; - MasterUserPassword?: string; + MasterUserPassword?: string | redacted.Redacted; DBSecurityGroups?: string[]; VpcSecurityGroupIds?: string[]; AvailabilityZone?: string; @@ -1064,7 +1045,7 @@ export const CreateDBInstanceMessage = /*@__PURE__*/ S.suspend(() => DBInstanceClass: S.optional(S.String), Engine: S.optional(S.String), MasterUsername: S.optional(S.String), - MasterUserPassword: S.optional(S.String), + MasterUserPassword: S.optional(SensitiveString), DBSecurityGroups: S.optional(DBSecurityGroupNameList), VpcSecurityGroupIds: S.optional(VpcSecurityGroupIdList), AvailabilityZone: S.optional(S.String), @@ -1140,12 +1121,11 @@ export const DBSecurityGroupMembership = /*@__PURE__*/ S.suspend(() => identifier: "DBSecurityGroupMembership", }) as any as S.Schema; export type DBSecurityGroupMembershipList = DBSecurityGroupMembership[]; -export const DBSecurityGroupMembershipList = - /*@__PURE__*/ S.Array( - DBSecurityGroupMembership.pipe(T.XmlName("DBSecurityGroup")).annotate({ - identifier: "DBSecurityGroupMembership", - }), - ); +export const DBSecurityGroupMembershipList = /*@__PURE__*/ S.Array( + DBSecurityGroupMembership.pipe(T.XmlName("DBSecurityGroup")).annotate({ + identifier: "DBSecurityGroupMembership", + }), +); export interface DBParameterGroupStatus { DBParameterGroupName?: string; ParameterApplyStatus?: string; @@ -1211,7 +1191,7 @@ export const DBSubnetGroup = /*@__PURE__*/ S.suspend(() => export interface PendingModifiedValues { DBInstanceClass?: string; AllocatedStorage?: number; - MasterUserPassword?: string; + MasterUserPassword?: string | redacted.Redacted; Port?: number; BackupRetentionPeriod?: number; MultiAZ?: boolean; @@ -1228,7 +1208,7 @@ export const PendingModifiedValues = /*@__PURE__*/ S.suspend(() => S.Struct({ DBInstanceClass: S.optional(S.String), AllocatedStorage: S.optional(S.Number), - MasterUserPassword: S.optional(S.String), + MasterUserPassword: S.optional(SensitiveString), Port: S.optional(S.Number), BackupRetentionPeriod: S.optional(S.Number), MultiAZ: S.optional(S.Boolean), @@ -1245,15 +1225,13 @@ export const PendingModifiedValues = /*@__PURE__*/ S.suspend(() => identifier: "PendingModifiedValues", }) as any as S.Schema; export type ReadReplicaDBInstanceIdentifierList = string[]; -export const ReadReplicaDBInstanceIdentifierList = - /*@__PURE__*/ S.Array( - S.String.pipe(T.XmlName("ReadReplicaDBInstanceIdentifier")), - ); +export const ReadReplicaDBInstanceIdentifierList = /*@__PURE__*/ S.Array( + S.String.pipe(T.XmlName("ReadReplicaDBInstanceIdentifier")), +); export type ReadReplicaDBClusterIdentifierList = string[]; -export const ReadReplicaDBClusterIdentifierList = - /*@__PURE__*/ S.Array( - S.String.pipe(T.XmlName("ReadReplicaDBClusterIdentifier")), - ); +export const ReadReplicaDBClusterIdentifierList = /*@__PURE__*/ S.Array( + S.String.pipe(T.XmlName("ReadReplicaDBClusterIdentifier")), +); export interface OptionGroupMembership { OptionGroupName?: string; Status?: string; @@ -1452,36 +1430,34 @@ export interface CreateDBParameterGroupMessage { Description?: string; Tags?: Tag[]; } -export const CreateDBParameterGroupMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DBParameterGroupName: S.optional(S.String), - DBParameterGroupFamily: S.optional(S.String), - Description: S.optional(S.String), - Tags: S.optional(TagList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateDBParameterGroupMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DBParameterGroupName: S.optional(S.String), + DBParameterGroupFamily: S.optional(S.String), + Description: S.optional(S.String), + Tags: S.optional(TagList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateDBParameterGroupMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateDBParameterGroupMessage", +}) as any as S.Schema; export interface CreateDBParameterGroupResult { DBParameterGroup?: DBParameterGroup; } -export const CreateDBParameterGroupResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DBParameterGroup: S.optional(DBParameterGroup) }).pipe(ns), - ).annotate({ - identifier: "CreateDBParameterGroupResult", - }) as any as S.Schema; +export const CreateDBParameterGroupResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ DBParameterGroup: S.optional(DBParameterGroup) }).pipe(ns), +).annotate({ + identifier: "CreateDBParameterGroupResult", +}) as any as S.Schema; export type SubnetIdentifierList = string[]; export const SubnetIdentifierList = /*@__PURE__*/ S.Array( S.String.pipe(T.XmlName("SubnetIdentifier")), @@ -1529,39 +1505,37 @@ export interface CreateEventSubscriptionMessage { Enabled?: boolean; Tags?: Tag[]; } -export const CreateEventSubscriptionMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SubscriptionName: S.optional(S.String), - SnsTopicArn: S.optional(S.String), - SourceType: S.optional(S.String), - EventCategories: S.optional(EventCategoriesList), - SourceIds: S.optional(SourceIdsList), - Enabled: S.optional(S.Boolean), - Tags: S.optional(TagList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateEventSubscriptionMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SubscriptionName: S.optional(S.String), + SnsTopicArn: S.optional(S.String), + SourceType: S.optional(S.String), + EventCategories: S.optional(EventCategoriesList), + SourceIds: S.optional(SourceIdsList), + Enabled: S.optional(S.Boolean), + Tags: S.optional(TagList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateEventSubscriptionMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateEventSubscriptionMessage", +}) as any as S.Schema; export interface CreateEventSubscriptionResult { EventSubscription?: EventSubscription; } -export const CreateEventSubscriptionResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ EventSubscription: S.optional(EventSubscription) }).pipe(ns), - ).annotate({ - identifier: "CreateEventSubscriptionResult", - }) as any as S.Schema; +export const CreateEventSubscriptionResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ EventSubscription: S.optional(EventSubscription) }).pipe(ns), +).annotate({ + identifier: "CreateEventSubscriptionResult", +}) as any as S.Schema; export interface CreateGlobalClusterMessage { GlobalClusterIdentifier?: string; SourceDBClusterIdentifier?: string; @@ -1711,22 +1685,21 @@ export const DeleteDBClusterResult = /*@__PURE__*/ S.suspend(() => export interface DeleteDBClusterEndpointMessage { DBClusterEndpointIdentifier?: string; } -export const DeleteDBClusterEndpointMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DBClusterEndpointIdentifier: S.optional(S.String) }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteDBClusterEndpointMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ DBClusterEndpointIdentifier: S.optional(S.String) }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteDBClusterEndpointMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteDBClusterEndpointMessage", +}) as any as S.Schema; export interface DeleteDBClusterEndpointOutput { DBClusterEndpointIdentifier?: string; DBClusterIdentifier?: string; @@ -1739,28 +1712,27 @@ export interface DeleteDBClusterEndpointOutput { ExcludedMembers?: string[]; DBClusterEndpointArn?: string; } -export const DeleteDBClusterEndpointOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DBClusterEndpointIdentifier: S.optional(S.String), - DBClusterIdentifier: S.optional(S.String), - DBClusterEndpointResourceIdentifier: S.optional(S.String), - Endpoint: S.optional(S.String), - Status: S.optional(S.String), - EndpointType: S.optional(S.String), - CustomEndpointType: S.optional(S.String), - StaticMembers: S.optional(StringList), - ExcludedMembers: S.optional(StringList), - DBClusterEndpointArn: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "DeleteDBClusterEndpointOutput", - }) as any as S.Schema; +export const DeleteDBClusterEndpointOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DBClusterEndpointIdentifier: S.optional(S.String), + DBClusterIdentifier: S.optional(S.String), + DBClusterEndpointResourceIdentifier: S.optional(S.String), + Endpoint: S.optional(S.String), + Status: S.optional(S.String), + EndpointType: S.optional(S.String), + CustomEndpointType: S.optional(S.String), + StaticMembers: S.optional(StringList), + ExcludedMembers: S.optional(StringList), + DBClusterEndpointArn: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "DeleteDBClusterEndpointOutput", +}) as any as S.Schema; export interface DeleteDBClusterParameterGroupMessage { DBClusterParameterGroupName?: string; } -export const DeleteDBClusterParameterGroupMessage = - /*@__PURE__*/ S.suspend(() => +export const DeleteDBClusterParameterGroupMessage = /*@__PURE__*/ S.suspend( + () => S.Struct({ DBClusterParameterGroupName: S.optional(S.String) }).pipe( T.all( ns, @@ -1772,42 +1744,41 @@ export const DeleteDBClusterParameterGroupMessage = rules, ), ), - ).annotate({ - identifier: "DeleteDBClusterParameterGroupMessage", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteDBClusterParameterGroupMessage", +}) as any as S.Schema; export interface DeleteDBClusterParameterGroupResponse {} -export const DeleteDBClusterParameterGroupResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteDBClusterParameterGroupResponse", - }) as any as S.Schema; +export const DeleteDBClusterParameterGroupResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteDBClusterParameterGroupResponse", +}) as any as S.Schema; export interface DeleteDBClusterSnapshotMessage { DBClusterSnapshotIdentifier?: string; } -export const DeleteDBClusterSnapshotMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DBClusterSnapshotIdentifier: S.optional(S.String) }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteDBClusterSnapshotMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ DBClusterSnapshotIdentifier: S.optional(S.String) }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteDBClusterSnapshotMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteDBClusterSnapshotMessage", +}) as any as S.Schema; export interface DeleteDBClusterSnapshotResult { DBClusterSnapshot?: DBClusterSnapshot; } -export const DeleteDBClusterSnapshotResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DBClusterSnapshot: S.optional(DBClusterSnapshot) }).pipe(ns), - ).annotate({ - identifier: "DeleteDBClusterSnapshotResult", - }) as any as S.Schema; +export const DeleteDBClusterSnapshotResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ DBClusterSnapshot: S.optional(DBClusterSnapshot) }).pipe(ns), +).annotate({ + identifier: "DeleteDBClusterSnapshotResult", +}) as any as S.Schema; export interface DeleteDBInstanceMessage { DBInstanceIdentifier?: string; SkipFinalSnapshot?: boolean; @@ -1843,27 +1814,27 @@ export const DeleteDBInstanceResult = /*@__PURE__*/ S.suspend(() => export interface DeleteDBParameterGroupMessage { DBParameterGroupName?: string; } -export const DeleteDBParameterGroupMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DBParameterGroupName: S.optional(S.String) }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteDBParameterGroupMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ DBParameterGroupName: S.optional(S.String) }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteDBParameterGroupMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteDBParameterGroupMessage", +}) as any as S.Schema; export interface DeleteDBParameterGroupResponse {} -export const DeleteDBParameterGroupResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteDBParameterGroupResponse", - }) as any as S.Schema; +export const DeleteDBParameterGroupResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteDBParameterGroupResponse", +}) as any as S.Schema; export interface DeleteDBSubnetGroupMessage { DBSubnetGroupName?: string; } @@ -1883,38 +1854,37 @@ export const DeleteDBSubnetGroupMessage = /*@__PURE__*/ S.suspend(() => identifier: "DeleteDBSubnetGroupMessage", }) as any as S.Schema; export interface DeleteDBSubnetGroupResponse {} -export const DeleteDBSubnetGroupResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteDBSubnetGroupResponse", - }) as any as S.Schema; +export const DeleteDBSubnetGroupResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteDBSubnetGroupResponse", +}) as any as S.Schema; export interface DeleteEventSubscriptionMessage { SubscriptionName?: string; } -export const DeleteEventSubscriptionMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ SubscriptionName: S.optional(S.String) }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteEventSubscriptionMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ SubscriptionName: S.optional(S.String) }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteEventSubscriptionMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteEventSubscriptionMessage", +}) as any as S.Schema; export interface DeleteEventSubscriptionResult { EventSubscription?: EventSubscription; } -export const DeleteEventSubscriptionResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ EventSubscription: S.optional(EventSubscription) }).pipe(ns), - ).annotate({ - identifier: "DeleteEventSubscriptionResult", - }) as any as S.Schema; +export const DeleteEventSubscriptionResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ EventSubscription: S.optional(EventSubscription) }).pipe(ns), +).annotate({ + identifier: "DeleteEventSubscriptionResult", +}) as any as S.Schema; export interface DeleteGlobalClusterMessage { GlobalClusterIdentifier?: string; } @@ -1963,28 +1933,27 @@ export interface DescribeDBClusterEndpointsMessage { MaxRecords?: number; Marker?: string; } -export const DescribeDBClusterEndpointsMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DBClusterIdentifier: S.optional(S.String), - DBClusterEndpointIdentifier: S.optional(S.String), - Filters: S.optional(FilterList), - MaxRecords: S.optional(S.Number), - Marker: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeDBClusterEndpointsMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DBClusterIdentifier: S.optional(S.String), + DBClusterEndpointIdentifier: S.optional(S.String), + Filters: S.optional(FilterList), + MaxRecords: S.optional(S.Number), + Marker: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeDBClusterEndpointsMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeDBClusterEndpointsMessage", +}) as any as S.Schema; export interface DBClusterEndpoint { DBClusterEndpointIdentifier?: string; DBClusterIdentifier?: string; @@ -2037,8 +2006,8 @@ export interface DescribeDBClusterParameterGroupsMessage { MaxRecords?: number; Marker?: string; } -export const DescribeDBClusterParameterGroupsMessage = - /*@__PURE__*/ S.suspend(() => +export const DescribeDBClusterParameterGroupsMessage = /*@__PURE__*/ S.suspend( + () => S.Struct({ DBClusterParameterGroupName: S.optional(S.String), Filters: S.optional(FilterList), @@ -2055,9 +2024,9 @@ export const DescribeDBClusterParameterGroupsMessage = rules, ), ), - ).annotate({ - identifier: "DescribeDBClusterParameterGroupsMessage", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeDBClusterParameterGroupsMessage", +}) as any as S.Schema; export type DBClusterParameterGroupList = DBClusterParameterGroup[]; export const DBClusterParameterGroupList = /*@__PURE__*/ S.Array( DBClusterParameterGroup.pipe(T.XmlName("DBClusterParameterGroup")).annotate({ @@ -2068,15 +2037,14 @@ export interface DBClusterParameterGroupsMessage { Marker?: string; DBClusterParameterGroups?: DBClusterParameterGroup[]; } -export const DBClusterParameterGroupsMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Marker: S.optional(S.String), - DBClusterParameterGroups: S.optional(DBClusterParameterGroupList), - }).pipe(ns), - ).annotate({ - identifier: "DBClusterParameterGroupsMessage", - }) as any as S.Schema; +export const DBClusterParameterGroupsMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Marker: S.optional(S.String), + DBClusterParameterGroups: S.optional(DBClusterParameterGroupList), + }).pipe(ns), +).annotate({ + identifier: "DBClusterParameterGroupsMessage", +}) as any as S.Schema; export interface DescribeDBClusterParametersMessage { DBClusterParameterGroupName?: string; Source?: string; @@ -2084,28 +2052,27 @@ export interface DescribeDBClusterParametersMessage { MaxRecords?: number; Marker?: string; } -export const DescribeDBClusterParametersMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DBClusterParameterGroupName: S.optional(S.String), - Source: S.optional(S.String), - Filters: S.optional(FilterList), - MaxRecords: S.optional(S.Number), - Marker: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeDBClusterParametersMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DBClusterParameterGroupName: S.optional(S.String), + Source: S.optional(S.String), + Filters: S.optional(FilterList), + MaxRecords: S.optional(S.Number), + Marker: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeDBClusterParametersMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeDBClusterParametersMessage", +}) as any as S.Schema; export type ApplyMethod = "immediate" | "pending-reboot" | (string & {}); export const ApplyMethod = /*@__PURE__*/ S.String; export interface Parameter { @@ -2142,15 +2109,14 @@ export interface DBClusterParameterGroupDetails { Parameters?: Parameter[]; Marker?: string; } -export const DBClusterParameterGroupDetails = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Parameters: S.optional(ParametersList), - Marker: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "DBClusterParameterGroupDetails", - }) as any as S.Schema; +export const DBClusterParameterGroupDetails = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Parameters: S.optional(ParametersList), + Marker: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "DBClusterParameterGroupDetails", +}) as any as S.Schema; export interface DescribeDBClustersMessage { DBClusterIdentifier?: string; Filters?: Filter[]; @@ -2229,25 +2195,23 @@ export const DBClusterSnapshotAttribute = /*@__PURE__*/ S.suspend(() => identifier: "DBClusterSnapshotAttribute", }) as any as S.Schema; export type DBClusterSnapshotAttributeList = DBClusterSnapshotAttribute[]; -export const DBClusterSnapshotAttributeList = - /*@__PURE__*/ S.Array( - DBClusterSnapshotAttribute.pipe( - T.XmlName("DBClusterSnapshotAttribute"), - ).annotate({ identifier: "DBClusterSnapshotAttribute" }), - ); +export const DBClusterSnapshotAttributeList = /*@__PURE__*/ S.Array( + DBClusterSnapshotAttribute.pipe( + T.XmlName("DBClusterSnapshotAttribute"), + ).annotate({ identifier: "DBClusterSnapshotAttribute" }), +); export interface DBClusterSnapshotAttributesResult { DBClusterSnapshotIdentifier?: string; DBClusterSnapshotAttributes?: DBClusterSnapshotAttribute[]; } -export const DBClusterSnapshotAttributesResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DBClusterSnapshotIdentifier: S.optional(S.String), - DBClusterSnapshotAttributes: S.optional(DBClusterSnapshotAttributeList), - }), - ).annotate({ - identifier: "DBClusterSnapshotAttributesResult", - }) as any as S.Schema; +export const DBClusterSnapshotAttributesResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DBClusterSnapshotIdentifier: S.optional(S.String), + DBClusterSnapshotAttributes: S.optional(DBClusterSnapshotAttributeList), + }), +).annotate({ + identifier: "DBClusterSnapshotAttributesResult", +}) as any as S.Schema; export interface DescribeDBClusterSnapshotAttributesResult { DBClusterSnapshotAttributesResult?: DBClusterSnapshotAttributesResult; } @@ -2271,31 +2235,30 @@ export interface DescribeDBClusterSnapshotsMessage { IncludeShared?: boolean; IncludePublic?: boolean; } -export const DescribeDBClusterSnapshotsMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DBClusterIdentifier: S.optional(S.String), - DBClusterSnapshotIdentifier: S.optional(S.String), - SnapshotType: S.optional(S.String), - Filters: S.optional(FilterList), - MaxRecords: S.optional(S.Number), - Marker: S.optional(S.String), - IncludeShared: S.optional(S.Boolean), - IncludePublic: S.optional(S.Boolean), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeDBClusterSnapshotsMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DBClusterIdentifier: S.optional(S.String), + DBClusterSnapshotIdentifier: S.optional(S.String), + SnapshotType: S.optional(S.String), + Filters: S.optional(FilterList), + MaxRecords: S.optional(S.Number), + Marker: S.optional(S.String), + IncludeShared: S.optional(S.Boolean), + IncludePublic: S.optional(S.Boolean), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeDBClusterSnapshotsMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeDBClusterSnapshotsMessage", +}) as any as S.Schema; export type DBClusterSnapshotList = DBClusterSnapshot[]; export const DBClusterSnapshotList = /*@__PURE__*/ S.Array( DBClusterSnapshot.pipe(T.XmlName("DBClusterSnapshot")).annotate({ @@ -2325,32 +2288,31 @@ export interface DescribeDBEngineVersionsMessage { ListSupportedCharacterSets?: boolean; ListSupportedTimezones?: boolean; } -export const DescribeDBEngineVersionsMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Engine: S.optional(S.String), - EngineVersion: S.optional(S.String), - DBParameterGroupFamily: S.optional(S.String), - Filters: S.optional(FilterList), - MaxRecords: S.optional(S.Number), - Marker: S.optional(S.String), - DefaultOnly: S.optional(S.Boolean), - ListSupportedCharacterSets: S.optional(S.Boolean), - ListSupportedTimezones: S.optional(S.Boolean), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeDBEngineVersionsMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Engine: S.optional(S.String), + EngineVersion: S.optional(S.String), + DBParameterGroupFamily: S.optional(S.String), + Filters: S.optional(FilterList), + MaxRecords: S.optional(S.Number), + Marker: S.optional(S.String), + DefaultOnly: S.optional(S.Boolean), + ListSupportedCharacterSets: S.optional(S.Boolean), + ListSupportedTimezones: S.optional(S.Boolean), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeDBEngineVersionsMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeDBEngineVersionsMessage", +}) as any as S.Schema; export interface CharacterSet { CharacterSetName?: string; CharacterSetDescription?: string; @@ -2503,27 +2465,26 @@ export interface DescribeDBParameterGroupsMessage { MaxRecords?: number; Marker?: string; } -export const DescribeDBParameterGroupsMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DBParameterGroupName: S.optional(S.String), - Filters: S.optional(FilterList), - MaxRecords: S.optional(S.Number), - Marker: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeDBParameterGroupsMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DBParameterGroupName: S.optional(S.String), + Filters: S.optional(FilterList), + MaxRecords: S.optional(S.Number), + Marker: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeDBParameterGroupsMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeDBParameterGroupsMessage", +}) as any as S.Schema; export type DBParameterGroupList = DBParameterGroup[]; export const DBParameterGroupList = /*@__PURE__*/ S.Array( DBParameterGroup.pipe(T.XmlName("DBParameterGroup")).annotate({ @@ -2549,28 +2510,27 @@ export interface DescribeDBParametersMessage { MaxRecords?: number; Marker?: string; } -export const DescribeDBParametersMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DBParameterGroupName: S.optional(S.String), - Source: S.optional(S.String), - Filters: S.optional(FilterList), - MaxRecords: S.optional(S.Number), - Marker: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeDBParametersMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DBParameterGroupName: S.optional(S.String), + Source: S.optional(S.String), + Filters: S.optional(FilterList), + MaxRecords: S.optional(S.Number), + Marker: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeDBParametersMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeDBParametersMessage", +}) as any as S.Schema; export interface DBParameterGroupDetails { Parameters?: Parameter[]; Marker?: string; @@ -2589,27 +2549,26 @@ export interface DescribeDBSubnetGroupsMessage { MaxRecords?: number; Marker?: string; } -export const DescribeDBSubnetGroupsMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DBSubnetGroupName: S.optional(S.String), - Filters: S.optional(FilterList), - MaxRecords: S.optional(S.Number), - Marker: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeDBSubnetGroupsMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DBSubnetGroupName: S.optional(S.String), + Filters: S.optional(FilterList), + MaxRecords: S.optional(S.Number), + Marker: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeDBSubnetGroupsMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeDBSubnetGroupsMessage", +}) as any as S.Schema; export type DBSubnetGroups = DBSubnetGroup[]; export const DBSubnetGroups = /*@__PURE__*/ S.Array( DBSubnetGroup.pipe(T.XmlName("DBSubnetGroup")).annotate({ @@ -2682,8 +2641,8 @@ export interface DescribeEngineDefaultParametersMessage { MaxRecords?: number; Marker?: string; } -export const DescribeEngineDefaultParametersMessage = - /*@__PURE__*/ S.suspend(() => +export const DescribeEngineDefaultParametersMessage = /*@__PURE__*/ S.suspend( + () => S.Struct({ DBParameterGroupFamily: S.optional(S.String), Filters: S.optional(FilterList), @@ -2700,41 +2659,39 @@ export const DescribeEngineDefaultParametersMessage = rules, ), ), - ).annotate({ - identifier: "DescribeEngineDefaultParametersMessage", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeEngineDefaultParametersMessage", +}) as any as S.Schema; export interface DescribeEngineDefaultParametersResult { EngineDefaults?: EngineDefaults; } -export const DescribeEngineDefaultParametersResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ EngineDefaults: S.optional(EngineDefaults) }).pipe(ns), - ).annotate({ - identifier: "DescribeEngineDefaultParametersResult", - }) as any as S.Schema; +export const DescribeEngineDefaultParametersResult = /*@__PURE__*/ S.suspend( + () => S.Struct({ EngineDefaults: S.optional(EngineDefaults) }).pipe(ns), +).annotate({ + identifier: "DescribeEngineDefaultParametersResult", +}) as any as S.Schema; export interface DescribeEventCategoriesMessage { SourceType?: string; Filters?: Filter[]; } -export const DescribeEventCategoriesMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SourceType: S.optional(S.String), - Filters: S.optional(FilterList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeEventCategoriesMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SourceType: S.optional(S.String), + Filters: S.optional(FilterList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeEventCategoriesMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeEventCategoriesMessage", +}) as any as S.Schema; export interface EventCategoriesMap { SourceType?: string; EventCategories?: string[]; @@ -2757,9 +2714,9 @@ export interface EventCategoriesMessage { EventCategoriesMapList?: EventCategoriesMap[]; } export const EventCategoriesMessage = /*@__PURE__*/ S.suspend(() => - S.Struct({ - EventCategoriesMapList: S.optional(EventCategoriesMapList), - }).pipe(ns), + S.Struct({ EventCategoriesMapList: S.optional(EventCategoriesMapList) }).pipe( + ns, + ), ).annotate({ identifier: "EventCategoriesMessage", }) as any as S.Schema; @@ -2848,27 +2805,26 @@ export interface DescribeEventSubscriptionsMessage { MaxRecords?: number; Marker?: string; } -export const DescribeEventSubscriptionsMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SubscriptionName: S.optional(S.String), - Filters: S.optional(FilterList), - MaxRecords: S.optional(S.Number), - Marker: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeEventSubscriptionsMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SubscriptionName: S.optional(S.String), + Filters: S.optional(FilterList), + MaxRecords: S.optional(S.Number), + Marker: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeEventSubscriptionsMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeEventSubscriptionsMessage", +}) as any as S.Schema; export type EventSubscriptionsList = EventSubscription[]; export const EventSubscriptionsList = /*@__PURE__*/ S.Array( EventSubscription.pipe(T.XmlName("EventSubscription")).annotate({ @@ -2892,26 +2848,25 @@ export interface DescribeGlobalClustersMessage { MaxRecords?: number; Marker?: string; } -export const DescribeGlobalClustersMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - GlobalClusterIdentifier: S.optional(S.String), - MaxRecords: S.optional(S.Number), - Marker: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeGlobalClustersMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + GlobalClusterIdentifier: S.optional(S.String), + MaxRecords: S.optional(S.Number), + Marker: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeGlobalClustersMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeGlobalClustersMessage", +}) as any as S.Schema; export type GlobalClusterList = GlobalCluster[]; export const GlobalClusterList = /*@__PURE__*/ S.Array( GlobalCluster.pipe(T.XmlName("GlobalClusterMember")).annotate({ @@ -3024,33 +2979,31 @@ export const OrderableDBInstanceOption = /*@__PURE__*/ S.suspend(() => identifier: "OrderableDBInstanceOption", }) as any as S.Schema; export type OrderableDBInstanceOptionsList = OrderableDBInstanceOption[]; -export const OrderableDBInstanceOptionsList = - /*@__PURE__*/ S.Array( - OrderableDBInstanceOption.pipe( - T.XmlName("OrderableDBInstanceOption"), - ).annotate({ identifier: "OrderableDBInstanceOption" }), - ); +export const OrderableDBInstanceOptionsList = /*@__PURE__*/ S.Array( + OrderableDBInstanceOption.pipe( + T.XmlName("OrderableDBInstanceOption"), + ).annotate({ identifier: "OrderableDBInstanceOption" }), +); export interface OrderableDBInstanceOptionsMessage { OrderableDBInstanceOptions?: OrderableDBInstanceOption[]; Marker?: string; } -export const OrderableDBInstanceOptionsMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - OrderableDBInstanceOptions: S.optional(OrderableDBInstanceOptionsList), - Marker: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "OrderableDBInstanceOptionsMessage", - }) as any as S.Schema; +export const OrderableDBInstanceOptionsMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + OrderableDBInstanceOptions: S.optional(OrderableDBInstanceOptionsList), + Marker: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "OrderableDBInstanceOptionsMessage", +}) as any as S.Schema; export interface DescribePendingMaintenanceActionsMessage { ResourceIdentifier?: string; Filters?: Filter[]; Marker?: string; MaxRecords?: number; } -export const DescribePendingMaintenanceActionsMessage = - /*@__PURE__*/ S.suspend(() => +export const DescribePendingMaintenanceActionsMessage = /*@__PURE__*/ S.suspend( + () => S.Struct({ ResourceIdentifier: S.optional(S.String), Filters: S.optional(FilterList), @@ -3067,9 +3020,9 @@ export const DescribePendingMaintenanceActionsMessage = rules, ), ), - ).annotate({ - identifier: "DescribePendingMaintenanceActionsMessage", - }) as any as S.Schema; +).annotate({ + identifier: "DescribePendingMaintenanceActionsMessage", +}) as any as S.Schema; export type PendingMaintenanceActions = ResourcePendingMaintenanceActions[]; export const PendingMaintenanceActions = /*@__PURE__*/ S.Array( ResourcePendingMaintenanceActions.pipe( @@ -3080,15 +3033,14 @@ export interface PendingMaintenanceActionsMessage { PendingMaintenanceActions?: ResourcePendingMaintenanceActions[]; Marker?: string; } -export const PendingMaintenanceActionsMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - PendingMaintenanceActions: S.optional(PendingMaintenanceActions), - Marker: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "PendingMaintenanceActionsMessage", - }) as any as S.Schema; +export const PendingMaintenanceActionsMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + PendingMaintenanceActions: S.optional(PendingMaintenanceActions), + Marker: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "PendingMaintenanceActionsMessage", +}) as any as S.Schema; export interface DescribeValidDBInstanceModificationsMessage { DBInstanceIdentifier?: string; } @@ -3162,12 +3114,11 @@ export const ValidStorageOptionsList = /*@__PURE__*/ S.Array( export interface ValidDBInstanceModificationsMessage { Storage?: ValidStorageOptions[]; } -export const ValidDBInstanceModificationsMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Storage: S.optional(ValidStorageOptionsList) }), - ).annotate({ - identifier: "ValidDBInstanceModificationsMessage", - }) as any as S.Schema; +export const ValidDBInstanceModificationsMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ Storage: S.optional(ValidStorageOptionsList) }), +).annotate({ + identifier: "ValidDBInstanceModificationsMessage", +}) as any as S.Schema; export interface DescribeValidDBInstanceModificationsResult { ValidDBInstanceModificationsMessage?: ValidDBInstanceModificationsMessage; } @@ -3217,36 +3168,34 @@ export interface FailoverGlobalClusterMessage { AllowDataLoss?: boolean; Switchover?: boolean; } -export const FailoverGlobalClusterMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - GlobalClusterIdentifier: S.optional(S.String), - TargetDbClusterIdentifier: S.optional(S.String), - AllowDataLoss: S.optional(S.Boolean), - Switchover: S.optional(S.Boolean), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const FailoverGlobalClusterMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + GlobalClusterIdentifier: S.optional(S.String), + TargetDbClusterIdentifier: S.optional(S.String), + AllowDataLoss: S.optional(S.Boolean), + Switchover: S.optional(S.Boolean), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "FailoverGlobalClusterMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "FailoverGlobalClusterMessage", +}) as any as S.Schema; export interface FailoverGlobalClusterResult { GlobalCluster?: GlobalCluster; } -export const FailoverGlobalClusterResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ GlobalCluster: S.optional(GlobalCluster) }).pipe(ns), - ).annotate({ - identifier: "FailoverGlobalClusterResult", - }) as any as S.Schema; +export const FailoverGlobalClusterResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ GlobalCluster: S.optional(GlobalCluster) }).pipe(ns), +).annotate({ + identifier: "FailoverGlobalClusterResult", +}) as any as S.Schema; export interface ListTagsForResourceMessage { ResourceName?: string; Filters?: Filter[]; @@ -3279,15 +3228,14 @@ export interface CloudwatchLogsExportConfiguration { EnableLogTypes?: string[]; DisableLogTypes?: string[]; } -export const CloudwatchLogsExportConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - EnableLogTypes: S.optional(LogTypeList), - DisableLogTypes: S.optional(LogTypeList), - }), - ).annotate({ - identifier: "CloudwatchLogsExportConfiguration", - }) as any as S.Schema; +export const CloudwatchLogsExportConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + EnableLogTypes: S.optional(LogTypeList), + DisableLogTypes: S.optional(LogTypeList), + }), +).annotate({ + identifier: "CloudwatchLogsExportConfiguration", +}) as any as S.Schema; export interface ModifyDBClusterMessage { DBClusterIdentifier?: string; NewDBClusterIdentifier?: string; @@ -3296,7 +3244,7 @@ export interface ModifyDBClusterMessage { DBClusterParameterGroupName?: string; VpcSecurityGroupIds?: string[]; Port?: number; - MasterUserPassword?: string; + MasterUserPassword?: string | redacted.Redacted; OptionGroupName?: string; PreferredBackupWindow?: string; PreferredMaintenanceWindow?: string; @@ -3320,7 +3268,7 @@ export const ModifyDBClusterMessage = /*@__PURE__*/ S.suspend(() => DBClusterParameterGroupName: S.optional(S.String), VpcSecurityGroupIds: S.optional(VpcSecurityGroupIdList), Port: S.optional(S.Number), - MasterUserPassword: S.optional(S.String), + MasterUserPassword: S.optional(SensitiveString), OptionGroupName: S.optional(S.String), PreferredBackupWindow: S.optional(S.String), PreferredMaintenanceWindow: S.optional(S.String), @@ -3366,27 +3314,26 @@ export interface ModifyDBClusterEndpointMessage { StaticMembers?: string[]; ExcludedMembers?: string[]; } -export const ModifyDBClusterEndpointMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DBClusterEndpointIdentifier: S.optional(S.String), - EndpointType: S.optional(S.String), - StaticMembers: S.optional(StringList), - ExcludedMembers: S.optional(StringList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ModifyDBClusterEndpointMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DBClusterEndpointIdentifier: S.optional(S.String), + EndpointType: S.optional(S.String), + StaticMembers: S.optional(StringList), + ExcludedMembers: S.optional(StringList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ModifyDBClusterEndpointMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ModifyDBClusterEndpointMessage", +}) as any as S.Schema; export interface ModifyDBClusterEndpointOutput { DBClusterEndpointIdentifier?: string; DBClusterIdentifier?: string; @@ -3399,29 +3346,28 @@ export interface ModifyDBClusterEndpointOutput { ExcludedMembers?: string[]; DBClusterEndpointArn?: string; } -export const ModifyDBClusterEndpointOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DBClusterEndpointIdentifier: S.optional(S.String), - DBClusterIdentifier: S.optional(S.String), - DBClusterEndpointResourceIdentifier: S.optional(S.String), - Endpoint: S.optional(S.String), - Status: S.optional(S.String), - EndpointType: S.optional(S.String), - CustomEndpointType: S.optional(S.String), - StaticMembers: S.optional(StringList), - ExcludedMembers: S.optional(StringList), - DBClusterEndpointArn: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "ModifyDBClusterEndpointOutput", - }) as any as S.Schema; +export const ModifyDBClusterEndpointOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DBClusterEndpointIdentifier: S.optional(S.String), + DBClusterIdentifier: S.optional(S.String), + DBClusterEndpointResourceIdentifier: S.optional(S.String), + Endpoint: S.optional(S.String), + Status: S.optional(S.String), + EndpointType: S.optional(S.String), + CustomEndpointType: S.optional(S.String), + StaticMembers: S.optional(StringList), + ExcludedMembers: S.optional(StringList), + DBClusterEndpointArn: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "ModifyDBClusterEndpointOutput", +}) as any as S.Schema; export interface ModifyDBClusterParameterGroupMessage { DBClusterParameterGroupName?: string; Parameters?: Parameter[]; } -export const ModifyDBClusterParameterGroupMessage = - /*@__PURE__*/ S.suspend(() => +export const ModifyDBClusterParameterGroupMessage = /*@__PURE__*/ S.suspend( + () => S.Struct({ DBClusterParameterGroupName: S.optional(S.String), Parameters: S.optional(ParametersList), @@ -3436,26 +3382,25 @@ export const ModifyDBClusterParameterGroupMessage = rules, ), ), - ).annotate({ - identifier: "ModifyDBClusterParameterGroupMessage", - }) as any as S.Schema; +).annotate({ + identifier: "ModifyDBClusterParameterGroupMessage", +}) as any as S.Schema; export interface DBClusterParameterGroupNameMessage { DBClusterParameterGroupName?: string; } -export const DBClusterParameterGroupNameMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DBClusterParameterGroupName: S.optional(S.String) }).pipe(ns), - ).annotate({ - identifier: "DBClusterParameterGroupNameMessage", - }) as any as S.Schema; +export const DBClusterParameterGroupNameMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ DBClusterParameterGroupName: S.optional(S.String) }).pipe(ns), +).annotate({ + identifier: "DBClusterParameterGroupNameMessage", +}) as any as S.Schema; export interface ModifyDBClusterSnapshotAttributeMessage { DBClusterSnapshotIdentifier?: string; AttributeName?: string; ValuesToAdd?: string[]; ValuesToRemove?: string[]; } -export const ModifyDBClusterSnapshotAttributeMessage = - /*@__PURE__*/ S.suspend(() => +export const ModifyDBClusterSnapshotAttributeMessage = /*@__PURE__*/ S.suspend( + () => S.Struct({ DBClusterSnapshotIdentifier: S.optional(S.String), AttributeName: S.optional(S.String), @@ -3472,22 +3417,22 @@ export const ModifyDBClusterSnapshotAttributeMessage = rules, ), ), - ).annotate({ - identifier: "ModifyDBClusterSnapshotAttributeMessage", - }) as any as S.Schema; +).annotate({ + identifier: "ModifyDBClusterSnapshotAttributeMessage", +}) as any as S.Schema; export interface ModifyDBClusterSnapshotAttributeResult { DBClusterSnapshotAttributesResult?: DBClusterSnapshotAttributesResult; } -export const ModifyDBClusterSnapshotAttributeResult = - /*@__PURE__*/ S.suspend(() => +export const ModifyDBClusterSnapshotAttributeResult = /*@__PURE__*/ S.suspend( + () => S.Struct({ DBClusterSnapshotAttributesResult: S.optional( DBClusterSnapshotAttributesResult, ), }).pipe(ns), - ).annotate({ - identifier: "ModifyDBClusterSnapshotAttributeResult", - }) as any as S.Schema; +).annotate({ + identifier: "ModifyDBClusterSnapshotAttributeResult", +}) as any as S.Schema; export interface ModifyDBInstanceMessage { DBInstanceIdentifier?: string; AllocatedStorage?: number; @@ -3496,7 +3441,7 @@ export interface ModifyDBInstanceMessage { DBSecurityGroups?: string[]; VpcSecurityGroupIds?: string[]; ApplyImmediately?: boolean; - MasterUserPassword?: string; + MasterUserPassword?: string | redacted.Redacted; DBParameterGroupName?: string; BackupRetentionPeriod?: number; PreferredBackupWindow?: string; @@ -3536,7 +3481,7 @@ export const ModifyDBInstanceMessage = /*@__PURE__*/ S.suspend(() => DBSecurityGroups: S.optional(DBSecurityGroupNameList), VpcSecurityGroupIds: S.optional(VpcSecurityGroupIdList), ApplyImmediately: S.optional(S.Boolean), - MasterUserPassword: S.optional(S.String), + MasterUserPassword: S.optional(SensitiveString), DBParameterGroupName: S.optional(S.String), BackupRetentionPeriod: S.optional(S.Number), PreferredBackupWindow: S.optional(S.String), @@ -3594,34 +3539,32 @@ export interface ModifyDBParameterGroupMessage { DBParameterGroupName?: string; Parameters?: Parameter[]; } -export const ModifyDBParameterGroupMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DBParameterGroupName: S.optional(S.String), - Parameters: S.optional(ParametersList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ModifyDBParameterGroupMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DBParameterGroupName: S.optional(S.String), + Parameters: S.optional(ParametersList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ModifyDBParameterGroupMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ModifyDBParameterGroupMessage", +}) as any as S.Schema; export interface DBParameterGroupNameMessage { DBParameterGroupName?: string; } -export const DBParameterGroupNameMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DBParameterGroupName: S.optional(S.String) }).pipe(ns), - ).annotate({ - identifier: "DBParameterGroupNameMessage", - }) as any as S.Schema; +export const DBParameterGroupNameMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ DBParameterGroupName: S.optional(S.String) }).pipe(ns), +).annotate({ + identifier: "DBParameterGroupNameMessage", +}) as any as S.Schema; export interface ModifyDBSubnetGroupMessage { DBSubnetGroupName?: string; DBSubnetGroupDescription?: string; @@ -3661,40 +3604,38 @@ export interface ModifyEventSubscriptionMessage { EventCategories?: string[]; Enabled?: boolean; } -export const ModifyEventSubscriptionMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SubscriptionName: S.optional(S.String), - SnsTopicArn: S.optional(S.String), - SourceType: S.optional(S.String), - EventCategories: S.optional(EventCategoriesList), - Enabled: S.optional(S.Boolean), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), - ), - ).annotate({ - identifier: "ModifyEventSubscriptionMessage", - }) as any as S.Schema; -export interface ModifyEventSubscriptionResult { - EventSubscription?: EventSubscription; -} -export const ModifyEventSubscriptionResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ EventSubscription: S.optional(EventSubscription) }).pipe(ns), - ).annotate({ - identifier: "ModifyEventSubscriptionResult", - }) as any as S.Schema; -export interface ModifyGlobalClusterMessage { - GlobalClusterIdentifier?: string; - NewGlobalClusterIdentifier?: string; +export const ModifyEventSubscriptionMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SubscriptionName: S.optional(S.String), + SnsTopicArn: S.optional(S.String), + SourceType: S.optional(S.String), + EventCategories: S.optional(EventCategoriesList), + Enabled: S.optional(S.Boolean), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "ModifyEventSubscriptionMessage", +}) as any as S.Schema; +export interface ModifyEventSubscriptionResult { + EventSubscription?: EventSubscription; +} +export const ModifyEventSubscriptionResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ EventSubscription: S.optional(EventSubscription) }).pipe(ns), +).annotate({ + identifier: "ModifyEventSubscriptionResult", +}) as any as S.Schema; +export interface ModifyGlobalClusterMessage { + GlobalClusterIdentifier?: string; + NewGlobalClusterIdentifier?: string; DeletionProtection?: boolean; EngineVersion?: string; AllowMajorVersionUpgrade?: boolean; @@ -3731,31 +3672,29 @@ export const ModifyGlobalClusterResult = /*@__PURE__*/ S.suspend(() => export interface PromoteReadReplicaDBClusterMessage { DBClusterIdentifier?: string; } -export const PromoteReadReplicaDBClusterMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DBClusterIdentifier: S.optional(S.String) }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const PromoteReadReplicaDBClusterMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ DBClusterIdentifier: S.optional(S.String) }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "PromoteReadReplicaDBClusterMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "PromoteReadReplicaDBClusterMessage", +}) as any as S.Schema; export interface PromoteReadReplicaDBClusterResult { DBCluster?: DBCluster; } -export const PromoteReadReplicaDBClusterResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DBCluster: S.optional(DBCluster) }).pipe(ns), - ).annotate({ - identifier: "PromoteReadReplicaDBClusterResult", - }) as any as S.Schema; +export const PromoteReadReplicaDBClusterResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ DBCluster: S.optional(DBCluster) }).pipe(ns), +).annotate({ + identifier: "PromoteReadReplicaDBClusterResult", +}) as any as S.Schema; export interface RebootDBInstanceMessage { DBInstanceIdentifier?: string; ForceFailover?: boolean; @@ -3790,64 +3729,62 @@ export interface RemoveFromGlobalClusterMessage { GlobalClusterIdentifier?: string; DbClusterIdentifier?: string; } -export const RemoveFromGlobalClusterMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - GlobalClusterIdentifier: S.optional(S.String), - DbClusterIdentifier: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const RemoveFromGlobalClusterMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + GlobalClusterIdentifier: S.optional(S.String), + DbClusterIdentifier: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "RemoveFromGlobalClusterMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "RemoveFromGlobalClusterMessage", +}) as any as S.Schema; export interface RemoveFromGlobalClusterResult { GlobalCluster?: GlobalCluster; } -export const RemoveFromGlobalClusterResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ GlobalCluster: S.optional(GlobalCluster) }).pipe(ns), - ).annotate({ - identifier: "RemoveFromGlobalClusterResult", - }) as any as S.Schema; +export const RemoveFromGlobalClusterResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ GlobalCluster: S.optional(GlobalCluster) }).pipe(ns), +).annotate({ + identifier: "RemoveFromGlobalClusterResult", +}) as any as S.Schema; export interface RemoveRoleFromDBClusterMessage { DBClusterIdentifier?: string; RoleArn?: string; FeatureName?: string; } -export const RemoveRoleFromDBClusterMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DBClusterIdentifier: S.optional(S.String), - RoleArn: S.optional(S.String), - FeatureName: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const RemoveRoleFromDBClusterMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DBClusterIdentifier: S.optional(S.String), + RoleArn: S.optional(S.String), + FeatureName: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "RemoveRoleFromDBClusterMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "RemoveRoleFromDBClusterMessage", +}) as any as S.Schema; export interface RemoveRoleFromDBClusterResponse {} -export const RemoveRoleFromDBClusterResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "RemoveRoleFromDBClusterResponse", - }) as any as S.Schema; +export const RemoveRoleFromDBClusterResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "RemoveRoleFromDBClusterResponse", +}) as any as S.Schema; export interface RemoveSourceIdentifierFromSubscriptionMessage { SubscriptionName?: string; SourceIdentifier?: string; @@ -3886,80 +3823,78 @@ export interface RemoveTagsFromResourceMessage { ResourceName?: string; TagKeys?: string[]; } -export const RemoveTagsFromResourceMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResourceName: S.optional(S.String), - TagKeys: S.optional(KeyList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const RemoveTagsFromResourceMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResourceName: S.optional(S.String), + TagKeys: S.optional(KeyList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "RemoveTagsFromResourceMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "RemoveTagsFromResourceMessage", +}) as any as S.Schema; export interface RemoveTagsFromResourceResponse {} -export const RemoveTagsFromResourceResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "RemoveTagsFromResourceResponse", - }) as any as S.Schema; +export const RemoveTagsFromResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "RemoveTagsFromResourceResponse", +}) as any as S.Schema; export interface ResetDBClusterParameterGroupMessage { DBClusterParameterGroupName?: string; ResetAllParameters?: boolean; Parameters?: Parameter[]; } -export const ResetDBClusterParameterGroupMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DBClusterParameterGroupName: S.optional(S.String), - ResetAllParameters: S.optional(S.Boolean), - Parameters: S.optional(ParametersList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ResetDBClusterParameterGroupMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DBClusterParameterGroupName: S.optional(S.String), + ResetAllParameters: S.optional(S.Boolean), + Parameters: S.optional(ParametersList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ResetDBClusterParameterGroupMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ResetDBClusterParameterGroupMessage", +}) as any as S.Schema; export interface ResetDBParameterGroupMessage { DBParameterGroupName?: string; ResetAllParameters?: boolean; Parameters?: Parameter[]; } -export const ResetDBParameterGroupMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DBParameterGroupName: S.optional(S.String), - ResetAllParameters: S.optional(S.Boolean), - Parameters: S.optional(ParametersList), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ResetDBParameterGroupMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DBParameterGroupName: S.optional(S.String), + ResetAllParameters: S.optional(S.Boolean), + Parameters: S.optional(ParametersList), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ResetDBParameterGroupMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ResetDBParameterGroupMessage", +}) as any as S.Schema; export interface RestoreDBClusterFromSnapshotMessage { AvailabilityZones?: string[]; DBClusterIdentifier?: string; @@ -3982,54 +3917,52 @@ export interface RestoreDBClusterFromSnapshotMessage { StorageType?: string; NetworkType?: string; } -export const RestoreDBClusterFromSnapshotMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AvailabilityZones: S.optional(AvailabilityZones), - DBClusterIdentifier: S.optional(S.String), - SnapshotIdentifier: S.optional(S.String), - Engine: S.optional(S.String), - EngineVersion: S.optional(S.String), - Port: S.optional(S.Number), - DBSubnetGroupName: S.optional(S.String), - DatabaseName: S.optional(S.String), - OptionGroupName: S.optional(S.String), - VpcSecurityGroupIds: S.optional(VpcSecurityGroupIdList), - Tags: S.optional(TagList), - KmsKeyId: S.optional(S.String), - EnableIAMDatabaseAuthentication: S.optional(S.Boolean), - EnableCloudwatchLogsExports: S.optional(LogTypeList), - DBClusterParameterGroupName: S.optional(S.String), - DeletionProtection: S.optional(S.Boolean), - CopyTagsToSnapshot: S.optional(S.Boolean), - ServerlessV2ScalingConfiguration: S.optional( - ServerlessV2ScalingConfiguration, - ), - StorageType: S.optional(S.String), - NetworkType: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const RestoreDBClusterFromSnapshotMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AvailabilityZones: S.optional(AvailabilityZones), + DBClusterIdentifier: S.optional(S.String), + SnapshotIdentifier: S.optional(S.String), + Engine: S.optional(S.String), + EngineVersion: S.optional(S.String), + Port: S.optional(S.Number), + DBSubnetGroupName: S.optional(S.String), + DatabaseName: S.optional(S.String), + OptionGroupName: S.optional(S.String), + VpcSecurityGroupIds: S.optional(VpcSecurityGroupIdList), + Tags: S.optional(TagList), + KmsKeyId: S.optional(S.String), + EnableIAMDatabaseAuthentication: S.optional(S.Boolean), + EnableCloudwatchLogsExports: S.optional(LogTypeList), + DBClusterParameterGroupName: S.optional(S.String), + DeletionProtection: S.optional(S.Boolean), + CopyTagsToSnapshot: S.optional(S.Boolean), + ServerlessV2ScalingConfiguration: S.optional( + ServerlessV2ScalingConfiguration, ), - ).annotate({ - identifier: "RestoreDBClusterFromSnapshotMessage", - }) as any as S.Schema; + StorageType: S.optional(S.String), + NetworkType: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "RestoreDBClusterFromSnapshotMessage", +}) as any as S.Schema; export interface RestoreDBClusterFromSnapshotResult { DBCluster?: DBCluster; } -export const RestoreDBClusterFromSnapshotResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DBCluster: S.optional(DBCluster) }).pipe(ns), - ).annotate({ - identifier: "RestoreDBClusterFromSnapshotResult", - }) as any as S.Schema; +export const RestoreDBClusterFromSnapshotResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ DBCluster: S.optional(DBCluster) }).pipe(ns), +).annotate({ + identifier: "RestoreDBClusterFromSnapshotResult", +}) as any as S.Schema; export interface RestoreDBClusterToPointInTimeMessage { DBClusterIdentifier?: string; RestoreType?: string; @@ -4050,8 +3983,8 @@ export interface RestoreDBClusterToPointInTimeMessage { StorageType?: string; NetworkType?: string; } -export const RestoreDBClusterToPointInTimeMessage = - /*@__PURE__*/ S.suspend(() => +export const RestoreDBClusterToPointInTimeMessage = /*@__PURE__*/ S.suspend( + () => S.Struct({ DBClusterIdentifier: S.optional(S.String), RestoreType: S.optional(S.String), @@ -4086,18 +4019,17 @@ export const RestoreDBClusterToPointInTimeMessage = rules, ), ), - ).annotate({ - identifier: "RestoreDBClusterToPointInTimeMessage", - }) as any as S.Schema; +).annotate({ + identifier: "RestoreDBClusterToPointInTimeMessage", +}) as any as S.Schema; export interface RestoreDBClusterToPointInTimeResult { DBCluster?: DBCluster; } -export const RestoreDBClusterToPointInTimeResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DBCluster: S.optional(DBCluster) }).pipe(ns), - ).annotate({ - identifier: "RestoreDBClusterToPointInTimeResult", - }) as any as S.Schema; +export const RestoreDBClusterToPointInTimeResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ DBCluster: S.optional(DBCluster) }).pipe(ns), +).annotate({ + identifier: "RestoreDBClusterToPointInTimeResult", +}) as any as S.Schema; export interface StartDBClusterMessage { DBClusterIdentifier?: string; } @@ -4154,486 +4086,703 @@ export interface SwitchoverGlobalClusterMessage { GlobalClusterIdentifier?: string; TargetDbClusterIdentifier?: string; } -export const SwitchoverGlobalClusterMessage = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - GlobalClusterIdentifier: S.optional(S.String), - TargetDbClusterIdentifier: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/" }), - svc, - auth, - proto, - ver, - rules, - ), +export const SwitchoverGlobalClusterMessage = /*@__PURE__*/ S.suspend(() => + S.Struct({ + GlobalClusterIdentifier: S.optional(S.String), + TargetDbClusterIdentifier: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "SwitchoverGlobalClusterMessage", - }) as any as S.Schema; + ), +).annotate({ + identifier: "SwitchoverGlobalClusterMessage", +}) as any as S.Schema; export interface SwitchoverGlobalClusterResult { GlobalCluster?: GlobalCluster; } -export const SwitchoverGlobalClusterResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ GlobalCluster: S.optional(GlobalCluster) }).pipe(ns), - ).annotate({ - identifier: "SwitchoverGlobalClusterResult", - }) as any as S.Schema; +export const SwitchoverGlobalClusterResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ GlobalCluster: S.optional(GlobalCluster) }).pipe(ns), +).annotate({ + identifier: "SwitchoverGlobalClusterResult", +}) as any as S.Schema; //# Errors export class DBClusterNotFoundFault extends S.TaggedErrorClass()( "DBClusterNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBClusterNotFoundFault", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "DBClusterNotFoundFault", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class DBClusterRoleAlreadyExistsFault extends S.TaggedErrorClass()( "DBClusterRoleAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBClusterRoleAlreadyExists", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBClusterRoleAlreadyExists", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class DBClusterRoleQuotaExceededFault extends S.TaggedErrorClass()( "DBClusterRoleQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBClusterRoleQuotaExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBClusterRoleQuotaExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidDBClusterStateFault extends S.TaggedErrorClass()( "InvalidDBClusterStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidDBClusterStateFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidDBClusterStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SourceNotFoundFault extends S.TaggedErrorClass()( "SourceNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SourceNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "SourceNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class SubscriptionNotFoundFault extends S.TaggedErrorClass()( "SubscriptionNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SubscriptionNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "SubscriptionNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class DBInstanceNotFoundFault extends S.TaggedErrorClass()( "DBInstanceNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBInstanceNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "DBInstanceNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class DBSnapshotNotFoundFault extends S.TaggedErrorClass()( "DBSnapshotNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBSnapshotNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "DBSnapshotNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class ResourceNotFoundFault extends S.TaggedErrorClass()( "ResourceNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "ResourceNotFoundFault", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "ResourceNotFoundFault", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class DBParameterGroupAlreadyExistsFault extends S.TaggedErrorClass()( "DBParameterGroupAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBParameterGroupAlreadyExists", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBParameterGroupAlreadyExists", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class DBParameterGroupNotFoundFault extends S.TaggedErrorClass()( "DBParameterGroupNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBParameterGroupNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ + code: "DBParameterGroupNotFound", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class DBParameterGroupQuotaExceededFault extends S.TaggedErrorClass()( "DBParameterGroupQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBParameterGroupQuotaExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBParameterGroupQuotaExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBClusterSnapshotAlreadyExistsFault extends S.TaggedErrorClass()( "DBClusterSnapshotAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBClusterSnapshotAlreadyExistsFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBClusterSnapshotAlreadyExistsFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class DBClusterSnapshotNotFoundFault extends S.TaggedErrorClass()( "DBClusterSnapshotNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBClusterSnapshotNotFoundFault", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "DBClusterSnapshotNotFoundFault", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class InvalidDBClusterSnapshotStateFault extends S.TaggedErrorClass()( "InvalidDBClusterSnapshotStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidDBClusterSnapshotStateFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidDBClusterSnapshotStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class KMSKeyNotAccessibleFault extends S.TaggedErrorClass()( "KMSKeyNotAccessibleFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "KMSKeyNotAccessibleFault", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "KMSKeyNotAccessibleFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SnapshotQuotaExceededFault extends S.TaggedErrorClass()( "SnapshotQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SnapshotQuotaExceeded", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "SnapshotQuotaExceeded", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBClusterAlreadyExistsFault extends S.TaggedErrorClass()( "DBClusterAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBClusterAlreadyExistsFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBClusterAlreadyExistsFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class DBClusterParameterGroupNotFoundFault extends S.TaggedErrorClass()( "DBClusterParameterGroupNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBClusterParameterGroupNotFound", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "DBClusterParameterGroupNotFound", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class DBClusterQuotaExceededFault extends S.TaggedErrorClass()( "DBClusterQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBClusterQuotaExceededFault", - httpResponseCode: 403, - }), + T.all( + T.AwsQueryError({ + code: "DBClusterQuotaExceededFault", + httpResponseCode: 403, + }), + T.HttpError(403), + ), ).pipe(C.withAuthError) {} export class DBSubnetGroupDoesNotCoverEnoughAZs extends S.TaggedErrorClass()( "DBSubnetGroupDoesNotCoverEnoughAZs", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBSubnetGroupDoesNotCoverEnoughAZs", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBSubnetGroupDoesNotCoverEnoughAZs", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBSubnetGroupNotFoundFault extends S.TaggedErrorClass()( "DBSubnetGroupNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBSubnetGroupNotFoundFault", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "DBSubnetGroupNotFoundFault", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class GlobalClusterNotFoundFault extends S.TaggedErrorClass()( "GlobalClusterNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "GlobalClusterNotFoundFault", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "GlobalClusterNotFoundFault", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class InsufficientStorageClusterCapacityFault extends S.TaggedErrorClass()( "InsufficientStorageClusterCapacityFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InsufficientStorageClusterCapacity", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InsufficientStorageClusterCapacity", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidDBInstanceStateFault extends S.TaggedErrorClass()( "InvalidDBInstanceStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidDBInstanceState", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidDBInstanceState", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidDBSubnetGroupStateFault extends S.TaggedErrorClass()( "InvalidDBSubnetGroupStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidDBSubnetGroupStateFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidDBSubnetGroupStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidGlobalClusterStateFault extends S.TaggedErrorClass()( "InvalidGlobalClusterStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidGlobalClusterStateFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidGlobalClusterStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidSubnet extends S.TaggedErrorClass()( "InvalidSubnet", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidSubnet", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidSubnet", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidVPCNetworkStateFault extends S.TaggedErrorClass()( "InvalidVPCNetworkStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidVPCNetworkStateFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidVPCNetworkStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class NetworkTypeNotSupportedFault extends S.TaggedErrorClass()( "NetworkTypeNotSupportedFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "NetworkTypeNotSupported", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "NetworkTypeNotSupported", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class StorageQuotaExceededFault extends S.TaggedErrorClass()( "StorageQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "StorageQuotaExceeded", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "StorageQuotaExceeded", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBClusterEndpointAlreadyExistsFault extends S.TaggedErrorClass()( "DBClusterEndpointAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBClusterEndpointAlreadyExistsFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBClusterEndpointAlreadyExistsFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class DBClusterEndpointQuotaExceededFault extends S.TaggedErrorClass()( "DBClusterEndpointQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBClusterEndpointQuotaExceededFault", - httpResponseCode: 403, - }), + T.all( + T.AwsQueryError({ + code: "DBClusterEndpointQuotaExceededFault", + httpResponseCode: 403, + }), + T.HttpError(403), + ), ).pipe(C.withAuthError) {} export class AuthorizationNotFoundFault extends S.TaggedErrorClass()( "AuthorizationNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "AuthorizationNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "AuthorizationNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class DBInstanceAlreadyExistsFault extends S.TaggedErrorClass()( "DBInstanceAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBInstanceAlreadyExists", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "DBInstanceAlreadyExists", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class DBSecurityGroupNotFoundFault extends S.TaggedErrorClass()( "DBSecurityGroupNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBSecurityGroupNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "DBSecurityGroupNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class DomainNotFoundFault extends S.TaggedErrorClass()( "DomainNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DomainNotFoundFault", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "DomainNotFoundFault", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class InstanceQuotaExceededFault extends S.TaggedErrorClass()( "InstanceQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InstanceQuotaExceeded", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InstanceQuotaExceeded", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InsufficientDBInstanceCapacityFault extends S.TaggedErrorClass()( "InsufficientDBInstanceCapacityFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InsufficientDBInstanceCapacity", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InsufficientDBInstanceCapacity", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class OptionGroupNotFoundFault extends S.TaggedErrorClass()( "OptionGroupNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "OptionGroupNotFoundFault", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ + code: "OptionGroupNotFoundFault", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class ProvisionedIopsNotAvailableInAZFault extends S.TaggedErrorClass()( "ProvisionedIopsNotAvailableInAZFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "ProvisionedIopsNotAvailableInAZFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "ProvisionedIopsNotAvailableInAZFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class StorageTypeNotSupportedFault extends S.TaggedErrorClass()( "StorageTypeNotSupportedFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "StorageTypeNotSupported", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "StorageTypeNotSupported", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBSubnetGroupAlreadyExistsFault extends S.TaggedErrorClass()( "DBSubnetGroupAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBSubnetGroupAlreadyExists", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBSubnetGroupAlreadyExists", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class DBSubnetGroupQuotaExceededFault extends S.TaggedErrorClass()( "DBSubnetGroupQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBSubnetGroupQuotaExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBSubnetGroupQuotaExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBSubnetQuotaExceededFault extends S.TaggedErrorClass()( "DBSubnetQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBSubnetQuotaExceededFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBSubnetQuotaExceededFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class EventSubscriptionQuotaExceededFault extends S.TaggedErrorClass()( "EventSubscriptionQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "EventSubscriptionQuotaExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "EventSubscriptionQuotaExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SNSInvalidTopicFault extends S.TaggedErrorClass()( "SNSInvalidTopicFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SNSInvalidTopic", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "SNSInvalidTopic", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SNSNoAuthorizationFault extends S.TaggedErrorClass()( "SNSNoAuthorizationFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SNSNoAuthorization", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "SNSNoAuthorization", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SNSTopicArnNotFoundFault extends S.TaggedErrorClass()( "SNSTopicArnNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SNSTopicArnNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "SNSTopicArnNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class SubscriptionAlreadyExistFault extends S.TaggedErrorClass()( "SubscriptionAlreadyExistFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SubscriptionAlreadyExist", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "SubscriptionAlreadyExist", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SubscriptionCategoryNotFoundFault extends S.TaggedErrorClass()( "SubscriptionCategoryNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "SubscriptionCategoryNotFound", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "SubscriptionCategoryNotFound", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class GlobalClusterAlreadyExistsFault extends S.TaggedErrorClass()( "GlobalClusterAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "GlobalClusterAlreadyExistsFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "GlobalClusterAlreadyExistsFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class GlobalClusterQuotaExceededFault extends S.TaggedErrorClass()( "GlobalClusterQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "GlobalClusterQuotaExceededFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "GlobalClusterQuotaExceededFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBClusterEndpointNotFoundFault extends S.TaggedErrorClass()( "DBClusterEndpointNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBClusterEndpointNotFoundFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBClusterEndpointNotFoundFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidDBClusterEndpointStateFault extends S.TaggedErrorClass()( "InvalidDBClusterEndpointStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidDBClusterEndpointStateFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidDBClusterEndpointStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidDBParameterGroupStateFault extends S.TaggedErrorClass()( "InvalidDBParameterGroupStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidDBParameterGroupState", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidDBParameterGroupState", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBSnapshotAlreadyExistsFault extends S.TaggedErrorClass()( "DBSnapshotAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBSnapshotAlreadyExists", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "DBSnapshotAlreadyExists", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class InvalidDBSubnetStateFault extends S.TaggedErrorClass()( "InvalidDBSubnetStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidDBSubnetStateFault", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "InvalidDBSubnetStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidEventSubscriptionStateFault extends S.TaggedErrorClass()( "InvalidEventSubscriptionStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidEventSubscriptionState", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidEventSubscriptionState", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidDBSecurityGroupStateFault extends S.TaggedErrorClass()( "InvalidDBSecurityGroupStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidDBSecurityGroupState", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidDBSecurityGroupState", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SharedSnapshotQuotaExceededFault extends S.TaggedErrorClass()( "SharedSnapshotQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "SharedSnapshotQuotaExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "SharedSnapshotQuotaExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class CertificateNotFoundFault extends S.TaggedErrorClass()( "CertificateNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "CertificateNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "CertificateNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class DBUpgradeDependencyFailureFault extends S.TaggedErrorClass()( "DBUpgradeDependencyFailureFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBUpgradeDependencyFailure", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBUpgradeDependencyFailure", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SubnetAlreadyInUse extends S.TaggedErrorClass()( "SubnetAlreadyInUse", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SubnetAlreadyInUse", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "SubnetAlreadyInUse", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withDependencyViolationError) {} export class DBClusterRoleNotFoundFault extends S.TaggedErrorClass()( "DBClusterRoleNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBClusterRoleNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "DBClusterRoleNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class InsufficientDBClusterCapacityFault extends S.TaggedErrorClass()( "InsufficientDBClusterCapacityFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InsufficientDBClusterCapacityFault", - httpResponseCode: 403, - }), + T.all( + T.AwsQueryError({ + code: "InsufficientDBClusterCapacityFault", + httpResponseCode: 403, + }), + T.HttpError(403), + ), ).pipe(C.withAuthError) {} export class InvalidDBSnapshotStateFault extends S.TaggedErrorClass()( "InvalidDBSnapshotStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidDBSnapshotState", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidDBSnapshotState", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidRestoreFault extends S.TaggedErrorClass()( "InvalidRestoreFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidRestoreFault", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidRestoreFault", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} //# Operations diff --git a/packages/aws/src/services/notifications.ts b/packages/aws/src/services/notifications.ts index 43df51b810..e3f7ccae2c 100644 --- a/packages/aws/src/services/notifications.ts +++ b/packages/aws/src/services/notifications.ts @@ -2166,15 +2166,17 @@ export const ListOrganizationalUnitsResponse = export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.String }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { message: S.String }, - T.Retryable(), + T.all(T.HttpError(500), T.Retryable()), ).pipe(C.withServerError, C.withRetryableError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.String, resourceId: S.String }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", @@ -2184,7 +2186,7 @@ export class ThrottlingException extends S.TaggedErrorClass quotaCode: S.optional(S.String), retryAfterSeconds: S.optional(S.Number).pipe(T.HttpHeader("Retry-After")), }, - T.Retryable({ throttling: true }), + T.all(T.HttpError(429), T.Retryable({ throttling: true })), ).pipe(C.withThrottlingError, C.withRetryableError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", @@ -2193,10 +2195,12 @@ export class ValidationException extends S.TaggedErrorClass reason: S.optional(S.String), fieldList: S.optional(ValidationExceptionFieldList), }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { message: S.String, resourceId: S.String }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", @@ -2207,6 +2211,7 @@ export class ServiceQuotaExceededException extends S.TaggedErrorClass - S.Struct({ - Items: ListAttachedLinksItems, - NextToken: S.optional(S.String), - }), + S.Struct({ Items: ListAttachedLinksItems, NextToken: S.optional(S.String) }), ).annotate({ identifier: "ListAttachedLinksOutput", }) as any as S.Schema; @@ -690,6 +687,7 @@ export class ConflictException extends S.TaggedErrorClass()( Message: S.optional(S.String), amznErrorType: S.optional(S.String).pipe(T.HttpHeader("x-amzn-ErrorType")), }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class InternalServiceFault extends S.TaggedErrorClass()( "InternalServiceFault", @@ -697,6 +695,7 @@ export class InternalServiceFault extends S.TaggedErrorClass()( "InvalidParameterException", @@ -704,6 +703,7 @@ export class InvalidParameterException extends S.TaggedErrorClass()( "MissingRequiredParameterException", @@ -711,6 +711,7 @@ export class MissingRequiredParameterException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", @@ -718,21 +719,29 @@ export class ServiceQuotaExceededException extends S.TaggedErrorClass()( + "TooManyRequestsException", + {}, +).pipe(C.withThrottlingError, C.withRetryableError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { Message: S.optional(S.String), amznErrorType: S.optional(S.String).pipe(T.HttpHeader("x-amzn-ErrorType")), }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyTagsException extends S.TaggedErrorClass()( "TooManyTagsException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} //# Operations @@ -742,6 +751,7 @@ export type CreateLinkError = | InvalidParameterException | MissingRequiredParameterException | ServiceQuotaExceededException + | TooManyRequestsException | CommonErrors; /** * Creates a link between a source account and a sink that you have created in a monitoring account. After the link is created, data is sent from the source account to the monitoring account. When you create a link, you can optionally specify filters that specify which metric namespaces and which log groups are shared from the source account to the monitoring account. @@ -768,6 +778,7 @@ export const createLink: API.OperationMethod< InvalidParameterException, MissingRequiredParameterException, ServiceQuotaExceededException, + TooManyRequestsException, ], operationName: "CreateLink", })); @@ -777,6 +788,7 @@ export type CreateSinkError = | InvalidParameterException | MissingRequiredParameterException | ServiceQuotaExceededException + | TooManyRequestsException | CommonErrors; /** * Use this to create a *sink* in the current account, so that it can be used as a monitoring account in CloudWatch cross-account observability. A sink is a resource that represents an attachment point in a monitoring account. Source accounts can link to the sink to send observability data. @@ -799,6 +811,7 @@ export const createSink: API.OperationMethod< InvalidParameterException, MissingRequiredParameterException, ServiceQuotaExceededException, + TooManyRequestsException, ], operationName: "CreateSink", })); @@ -807,6 +820,7 @@ export type DeleteLinkError = | InvalidParameterException | MissingRequiredParameterException | ResourceNotFoundException + | TooManyRequestsException | CommonErrors; /** * Deletes a link between a monitoring account sink and a source account. You must run this operation in the source account. @@ -824,6 +838,7 @@ export const deleteLink: API.OperationMethod< InvalidParameterException, MissingRequiredParameterException, ResourceNotFoundException, + TooManyRequestsException, ], operationName: "DeleteLink", })); @@ -833,6 +848,7 @@ export type DeleteSinkError = | InvalidParameterException | MissingRequiredParameterException | ResourceNotFoundException + | TooManyRequestsException | CommonErrors; /** * Deletes a sink. You must delete all links to a sink before you can delete that sink. @@ -851,6 +867,7 @@ export const deleteSink: API.OperationMethod< InvalidParameterException, MissingRequiredParameterException, ResourceNotFoundException, + TooManyRequestsException, ], operationName: "DeleteSink", })); @@ -859,6 +876,7 @@ export type GetLinkError = | InvalidParameterException | MissingRequiredParameterException | ResourceNotFoundException + | TooManyRequestsException | CommonErrors; /** * Returns complete information about one link. @@ -878,6 +896,7 @@ export const getLink: API.OperationMethod< InvalidParameterException, MissingRequiredParameterException, ResourceNotFoundException, + TooManyRequestsException, ], operationName: "GetLink", })); @@ -886,6 +905,7 @@ export type GetSinkError = | InvalidParameterException | MissingRequiredParameterException | ResourceNotFoundException + | TooManyRequestsException | CommonErrors; /** * Returns complete information about one monitoring account sink. @@ -905,6 +925,7 @@ export const getSink: API.OperationMethod< InvalidParameterException, MissingRequiredParameterException, ResourceNotFoundException, + TooManyRequestsException, ], operationName: "GetSink", })); @@ -913,6 +934,7 @@ export type GetSinkPolicyError = | InvalidParameterException | MissingRequiredParameterException | ResourceNotFoundException + | TooManyRequestsException | CommonErrors; /** * Returns the current sink policy attached to this sink. The sink policy specifies what accounts can attach to this sink as source accounts, and what types of data they can share. @@ -930,6 +952,7 @@ export const getSinkPolicy: API.OperationMethod< InvalidParameterException, MissingRequiredParameterException, ResourceNotFoundException, + TooManyRequestsException, ], operationName: "GetSinkPolicy", })); @@ -938,6 +961,7 @@ export type ListAttachedLinksError = | InvalidParameterException | MissingRequiredParameterException | ResourceNotFoundException + | TooManyRequestsException | CommonErrors; /** * Returns a list of source account links that are linked to this monitoring account sink. @@ -974,6 +998,7 @@ export const listAttachedLinks: API.OperationMethod< InvalidParameterException, MissingRequiredParameterException, ResourceNotFoundException, + TooManyRequestsException, ], operationName: "ListAttachedLinks", pagination: { @@ -987,6 +1012,7 @@ export type ListLinksError = | InternalServiceFault | InvalidParameterException | ResourceNotFoundException + | TooManyRequestsException | CommonErrors; /** * Use this operation in a source account to return a list of links to monitoring account sinks that this source account has. @@ -1020,6 +1046,7 @@ export const listLinks: API.OperationMethod< InternalServiceFault, InvalidParameterException, ResourceNotFoundException, + TooManyRequestsException, ], operationName: "ListLinks", pagination: { @@ -1033,6 +1060,7 @@ export type ListSinksError = | InternalServiceFault | InvalidParameterException | ResourceNotFoundException + | TooManyRequestsException | CommonErrors; /** * Use this operation in a monitoring account to return the list of sinks created in that account. @@ -1064,6 +1092,7 @@ export const listSinks: API.OperationMethod< InternalServiceFault, InvalidParameterException, ResourceNotFoundException, + TooManyRequestsException, ], operationName: "ListSinks", pagination: { @@ -1076,6 +1105,7 @@ export const listSinks: API.OperationMethod< export type ListTagsForResourceError = | ResourceNotFoundException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Displays the tags associated with a resource. Both sinks and links support tagging. @@ -1088,7 +1118,11 @@ export const listTagsForResource: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ListTagsForResourceInput, output: ListTagsForResourceOutput, - errors: [ResourceNotFoundException, ValidationException], + errors: [ + ResourceNotFoundException, + ValidationException, + TooManyRequestsException, + ], operationName: "ListTagsForResource", })); export type PutSinkPolicyError = @@ -1096,6 +1130,7 @@ export type PutSinkPolicyError = | InvalidParameterException | MissingRequiredParameterException | ResourceNotFoundException + | TooManyRequestsException | CommonErrors; /** * Creates or updates the resource policy that grants permissions to source accounts to link to the monitoring account sink. When you create a sink policy, you can grant permissions to all accounts in an organization or to individual accounts. @@ -1129,6 +1164,7 @@ export const putSinkPolicy: API.OperationMethod< InvalidParameterException, MissingRequiredParameterException, ResourceNotFoundException, + TooManyRequestsException, ], operationName: "PutSinkPolicy", })); @@ -1136,6 +1172,7 @@ export type TagResourceError = | ResourceNotFoundException | TooManyTagsException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Assigns one or more tags (key-value pairs) to the specified resource. Both sinks and links can be tagged. @@ -1162,12 +1199,14 @@ export const tagResource: API.OperationMethod< ResourceNotFoundException, TooManyTagsException, ValidationException, + TooManyRequestsException, ], operationName: "TagResource", })); export type UntagResourceError = | ResourceNotFoundException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Removes one or more tags from the specified resource. @@ -1182,7 +1221,11 @@ export const untagResource: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: UntagResourceInput, output: UntagResourceOutput, - errors: [ResourceNotFoundException, ValidationException], + errors: [ + ResourceNotFoundException, + ValidationException, + TooManyRequestsException, + ], operationName: "UntagResource", })); export type UpdateLinkError = @@ -1190,6 +1233,7 @@ export type UpdateLinkError = | InvalidParameterException | MissingRequiredParameterException | ResourceNotFoundException + | TooManyRequestsException | CommonErrors; /** * Use this operation to change what types of data are shared from a source account to its linked monitoring account sink. You can't change the sink or change the monitoring account with this operation. @@ -1211,6 +1255,7 @@ export const updateLink: API.OperationMethod< InvalidParameterException, MissingRequiredParameterException, ResourceNotFoundException, + TooManyRequestsException, ], operationName: "UpdateLink", })); diff --git a/packages/aws/src/services/observabilityadmin.ts b/packages/aws/src/services/observabilityadmin.ts index f4d0ef6fbe..733349d9c0 100644 --- a/packages/aws/src/services/observabilityadmin.ts +++ b/packages/aws/src/services/observabilityadmin.ts @@ -935,7 +935,14 @@ export interface GetTelemetryEnrichmentStatusRequest {} export const GetTelemetryEnrichmentStatusRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + T.all( + T.Http({ method: "POST", uri: "/GetTelemetryEnrichmentStatus" }), + svc, + auth, + proto, + ver, + rules, + ), ), ).annotate({ identifier: "GetTelemetryEnrichmentStatusRequest", @@ -963,7 +970,14 @@ export interface GetTelemetryEvaluationStatusRequest {} export const GetTelemetryEvaluationStatusRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + T.all( + T.Http({ method: "POST", uri: "/GetTelemetryEvaluationStatus" }), + svc, + auth, + proto, + ver, + rules, + ), ), ).annotate({ identifier: "GetTelemetryEvaluationStatusRequest", @@ -1015,7 +1029,17 @@ export interface GetTelemetryEvaluationStatusForOrganizationRequest {} export const GetTelemetryEvaluationStatusForOrganizationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + T.all( + T.Http({ + method: "POST", + uri: "/GetTelemetryEvaluationStatusForOrganization", + }), + svc, + auth, + proto, + ver, + rules, + ), ), ).annotate({ identifier: "GetTelemetryEvaluationStatusForOrganizationRequest", @@ -1514,7 +1538,14 @@ export interface StartTelemetryEnrichmentRequest {} export const StartTelemetryEnrichmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + T.all( + T.Http({ method: "POST", uri: "/StartTelemetryEnrichment" }), + svc, + auth, + proto, + ver, + rules, + ), ), ).annotate({ identifier: "StartTelemetryEnrichmentRequest", @@ -1593,7 +1624,14 @@ export interface StopTelemetryEnrichmentRequest {} export const StopTelemetryEnrichmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + T.all( + T.Http({ method: "POST", uri: "/StopTelemetryEnrichment" }), + svc, + auth, + proto, + ver, + rules, + ), ), ).annotate({ identifier: "StopTelemetryEnrichmentRequest", @@ -1611,7 +1649,14 @@ export interface StopTelemetryEvaluationRequest {} export const StopTelemetryEvaluationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + T.all( + T.Http({ method: "POST", uri: "/StopTelemetryEvaluation" }), + svc, + auth, + proto, + ver, + rules, + ), ), ).annotate({ identifier: "StopTelemetryEvaluationRequest", @@ -1625,7 +1670,17 @@ export interface StopTelemetryEvaluationForOrganizationRequest {} export const StopTelemetryEvaluationForOrganizationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + T.all( + T.Http({ + method: "POST", + uri: "/StopTelemetryEvaluationForOrganization", + }), + svc, + auth, + proto, + ver, + rules, + ), ), ).annotate({ identifier: "StopTelemetryEvaluationForOrganizationRequest", diff --git a/packages/aws/src/services/omics.ts b/packages/aws/src/services/omics.ts index dfacd0178d..714a0ef915 100644 --- a/packages/aws/src/services/omics.ts +++ b/packages/aws/src/services/omics.ts @@ -6648,46 +6648,57 @@ export const ListWorkflowVersionsResponse = export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.String }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { message: S.String }, - T.Retryable(), + T.all(T.HttpError(500), T.Retryable()), ).pipe(C.withServerError, C.withRetryableError) {} export class NotSupportedOperationException extends S.TaggedErrorClass()( "NotSupportedOperationException", { message: S.String }, + T.HttpError(405), ).pipe(C.withBadRequestError) {} export class RequestTimeoutException extends S.TaggedErrorClass()( "RequestTimeoutException", { message: S.String }, + T.HttpError(408), ).pipe(C.withTimeoutError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.String }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", { message: S.String }, - T.Retryable({ throttling: true }), + T.all(T.HttpError(429), T.Retryable({ throttling: true })), ).pipe(C.withThrottlingError, C.withRetryableError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", { message: S.String }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", { message: S.String }, + T.HttpError(402), ).pipe(C.withQuotaError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { message: S.String }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class RangeNotSatisfiableException extends S.TaggedErrorClass()( "RangeNotSatisfiableException", { message: S.String }, - T.Retryable(), + T.all(T.HttpError(416), T.Retryable()), ).pipe(C.withRetryableError) {} +export class TooManyRequestsException extends S.TaggedErrorClass()( + "TooManyRequestsException", + {}, +).pipe(C.withThrottlingError, C.withRetryableError) {} //# Operations export type DeleteS3AccessPolicyError = @@ -6720,6 +6731,7 @@ export const deleteS3AccessPolicy: API.OperationMethod< ValidationException, ], operationName: "DeleteS3AccessPolicy", + endpointHostPrefix: "control-storage-", })); export type GetS3AccessPolicyError = | AccessDeniedException @@ -6753,6 +6765,7 @@ export const getS3AccessPolicy: API.OperationMethod< ValidationException, ], operationName: "GetS3AccessPolicy", + endpointHostPrefix: "control-storage-", })); export type PutS3AccessPolicyError = | AccessDeniedException @@ -6784,6 +6797,7 @@ export const putS3AccessPolicy: API.OperationMethod< ValidationException, ], operationName: "PutS3AccessPolicy", + endpointHostPrefix: "control-storage-", })); export type StartAnnotationImportJobError = | AccessDeniedException @@ -6815,6 +6829,7 @@ export const startAnnotationImportJob: API.OperationMethod< ValidationException, ], operationName: "StartAnnotationImportJob", + endpointHostPrefix: "analytics-", })); export type GetAnnotationImportJobError = | AccessDeniedException @@ -6844,6 +6859,7 @@ export const getAnnotationImportJob: API.OperationMethod< ValidationException, ], operationName: "GetAnnotationImportJob", + endpointHostPrefix: "analytics-", })); export type CancelAnnotationImportJobError = | AccessDeniedException @@ -6873,6 +6889,7 @@ export const cancelAnnotationImportJob: API.OperationMethod< ValidationException, ], operationName: "CancelAnnotationImportJob", + endpointHostPrefix: "analytics-", })); export type ListAnnotationImportJobsError = | AccessDeniedException @@ -6917,6 +6934,7 @@ export const listAnnotationImportJobs: API.OperationMethod< ValidationException, ], operationName: "ListAnnotationImportJobs", + endpointHostPrefix: "analytics-", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -6956,6 +6974,7 @@ export const createAnnotationStore: API.OperationMethod< ValidationException, ], operationName: "CreateAnnotationStore", + endpointHostPrefix: "analytics-", })); export type GetAnnotationStoreError = | AccessDeniedException @@ -6985,6 +7004,7 @@ export const getAnnotationStore: API.OperationMethod< ValidationException, ], operationName: "GetAnnotationStore", + endpointHostPrefix: "analytics-", })); export type UpdateAnnotationStoreError = | AccessDeniedException @@ -7014,6 +7034,7 @@ export const updateAnnotationStore: API.OperationMethod< ValidationException, ], operationName: "UpdateAnnotationStore", + endpointHostPrefix: "analytics-", })); export type DeleteAnnotationStoreError = | AccessDeniedException @@ -7045,6 +7066,7 @@ export const deleteAnnotationStore: API.OperationMethod< ValidationException, ], operationName: "DeleteAnnotationStore", + endpointHostPrefix: "analytics-", })); export type ListAnnotationStoresError = | AccessDeniedException @@ -7089,6 +7111,7 @@ export const listAnnotationStores: API.OperationMethod< ValidationException, ], operationName: "ListAnnotationStores", + endpointHostPrefix: "analytics-", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -7126,6 +7149,7 @@ export const createAnnotationStoreVersion: API.OperationMethod< ValidationException, ], operationName: "CreateAnnotationStoreVersion", + endpointHostPrefix: "analytics-", })); export type GetAnnotationStoreVersionError = | AccessDeniedException @@ -7153,6 +7177,7 @@ export const getAnnotationStoreVersion: API.OperationMethod< ValidationException, ], operationName: "GetAnnotationStoreVersion", + endpointHostPrefix: "analytics-", })); export type UpdateAnnotationStoreVersionError = | AccessDeniedException @@ -7180,6 +7205,7 @@ export const updateAnnotationStoreVersion: API.OperationMethod< ValidationException, ], operationName: "UpdateAnnotationStoreVersion", + endpointHostPrefix: "analytics-", })); export type ListAnnotationStoreVersionsError = | AccessDeniedException @@ -7222,6 +7248,7 @@ export const listAnnotationStoreVersions: API.OperationMethod< ValidationException, ], operationName: "ListAnnotationStoreVersions", + endpointHostPrefix: "analytics-", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -7257,6 +7284,7 @@ export const deleteAnnotationStoreVersions: API.OperationMethod< ValidationException, ], operationName: "DeleteAnnotationStoreVersions", + endpointHostPrefix: "analytics-", })); export type CreateConfigurationError = | AccessDeniedException @@ -7290,6 +7318,7 @@ export const createConfiguration: API.OperationMethod< ValidationException, ], operationName: "CreateConfiguration", + endpointHostPrefix: "workflows-", })); export type GetConfigurationError = | AccessDeniedException @@ -7323,6 +7352,7 @@ export const getConfiguration: API.OperationMethod< ValidationException, ], operationName: "GetConfiguration", + endpointHostPrefix: "workflows-", })); export type DeleteConfigurationError = | AccessDeniedException @@ -7356,6 +7386,7 @@ export const deleteConfiguration: API.OperationMethod< ValidationException, ], operationName: "DeleteConfiguration", + endpointHostPrefix: "workflows-", })); export type ListConfigurationsError = | AccessDeniedException @@ -7404,6 +7435,7 @@ export const listConfigurations: API.OperationMethod< ValidationException, ], operationName: "ListConfigurations", + endpointHostPrefix: "workflows-", pagination: { inputToken: "startingToken", outputToken: "nextToken", @@ -7441,6 +7473,7 @@ export const createReferenceStore: API.OperationMethod< ValidationException, ], operationName: "CreateReferenceStore", + endpointHostPrefix: "control-storage-", })); export type GetReferenceStoreError = | AccessDeniedException @@ -7470,6 +7503,7 @@ export const getReferenceStore: API.OperationMethod< ValidationException, ], operationName: "GetReferenceStore", + endpointHostPrefix: "control-storage-", })); export type DeleteReferenceStoreError = | AccessDeniedException @@ -7503,6 +7537,7 @@ export const deleteReferenceStore: API.OperationMethod< ValidationException, ], operationName: "DeleteReferenceStore", + endpointHostPrefix: "control-storage-", })); export type ListReferenceStoresError = | AccessDeniedException @@ -7547,6 +7582,7 @@ export const listReferenceStores: API.OperationMethod< ValidationException, ], operationName: "ListReferenceStores", + endpointHostPrefix: "control-storage-", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -7582,6 +7618,7 @@ export const getReferenceImportJob: API.OperationMethod< ValidationException, ], operationName: "GetReferenceImportJob", + endpointHostPrefix: "control-storage-", })); export type ListReferenceImportJobsError = | AccessDeniedException @@ -7626,6 +7663,7 @@ export const listReferenceImportJobs: API.OperationMethod< ValidationException, ], operationName: "ListReferenceImportJobs", + endpointHostPrefix: "control-storage-", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -7663,6 +7701,7 @@ export const startReferenceImportJob: API.OperationMethod< ValidationException, ], operationName: "StartReferenceImportJob", + endpointHostPrefix: "control-storage-", })); export type GetReferenceMetadataError = | AccessDeniedException @@ -7692,6 +7731,7 @@ export const getReferenceMetadata: API.OperationMethod< ValidationException, ], operationName: "GetReferenceMetadata", + endpointHostPrefix: "control-storage-", })); export type DeleteReferenceError = | AccessDeniedException @@ -7725,6 +7765,7 @@ export const deleteReference: API.OperationMethod< ValidationException, ], operationName: "DeleteReference", + endpointHostPrefix: "control-storage-", })); export type ListReferencesError = | AccessDeniedException @@ -7771,6 +7812,7 @@ export const listReferences: API.OperationMethod< ValidationException, ], operationName: "ListReferences", + endpointHostPrefix: "control-storage-", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -7810,6 +7852,7 @@ export const getReference: API.OperationMethod< ValidationException, ], operationName: "GetReference", + endpointHostPrefix: "storage-", })); export type StartRunBatchError = | AccessDeniedException @@ -7845,6 +7888,7 @@ export const startRunBatch: API.OperationMethod< ValidationException, ], operationName: "StartRunBatch", + endpointHostPrefix: "workflows-", })); export type GetBatchError = | AccessDeniedException @@ -7874,6 +7918,7 @@ export const getBatch: API.OperationMethod< ValidationException, ], operationName: "GetBatch", + endpointHostPrefix: "workflows-", })); export type DeleteBatchError = | AccessDeniedException @@ -7909,6 +7954,7 @@ export const deleteBatch: API.OperationMethod< ValidationException, ], operationName: "DeleteBatch", + endpointHostPrefix: "workflows-", })); export type ListBatchError = | AccessDeniedException @@ -7951,6 +7997,7 @@ export const listBatch: API.OperationMethod< ValidationException, ], operationName: "ListBatch", + endpointHostPrefix: "workflows-", pagination: { inputToken: "startingToken", outputToken: "nextToken", @@ -7992,6 +8039,7 @@ export const cancelRunBatch: API.OperationMethod< ValidationException, ], operationName: "CancelRunBatch", + endpointHostPrefix: "workflows-", })); export type DeleteRunBatchError = | AccessDeniedException @@ -8027,6 +8075,7 @@ export const deleteRunBatch: API.OperationMethod< ValidationException, ], operationName: "DeleteRunBatch", + endpointHostPrefix: "workflows-", })); export type ListRunsInBatchError = | AccessDeniedException @@ -8075,6 +8124,7 @@ export const listRunsInBatch: API.OperationMethod< ValidationException, ], operationName: "ListRunsInBatch", + endpointHostPrefix: "workflows-", pagination: { inputToken: "startingToken", outputToken: "nextToken", @@ -8116,6 +8166,7 @@ export const createRunCache: API.OperationMethod< ValidationException, ], operationName: "CreateRunCache", + endpointHostPrefix: "workflows-", })); export type GetRunCacheError = | AccessDeniedException @@ -8151,6 +8202,7 @@ export const getRunCache: API.OperationMethod< ValidationException, ], operationName: "GetRunCache", + endpointHostPrefix: "workflows-", })); export type UpdateRunCacheError = | AccessDeniedException @@ -8186,6 +8238,7 @@ export const updateRunCache: API.OperationMethod< ValidationException, ], operationName: "UpdateRunCache", + endpointHostPrefix: "workflows-", })); export type DeleteRunCacheError = | AccessDeniedException @@ -8221,6 +8274,7 @@ export const deleteRunCache: API.OperationMethod< ValidationException, ], operationName: "DeleteRunCache", + endpointHostPrefix: "workflows-", })); export type ListRunCachesError = | AccessDeniedException @@ -8269,6 +8323,7 @@ export const listRunCaches: API.OperationMethod< ValidationException, ], operationName: "ListRunCaches", + endpointHostPrefix: "workflows-", pagination: { inputToken: "startingToken", outputToken: "nextToken", @@ -8308,6 +8363,7 @@ export const createRunGroup: API.OperationMethod< ValidationException, ], operationName: "CreateRunGroup", + endpointHostPrefix: "workflows-", })); export type GetRunGroupError = | AccessDeniedException @@ -8341,6 +8397,7 @@ export const getRunGroup: API.OperationMethod< ValidationException, ], operationName: "GetRunGroup", + endpointHostPrefix: "workflows-", })); export type UpdateRunGroupError = | AccessDeniedException @@ -8388,6 +8445,7 @@ export const updateRunGroup: API.OperationMethod< ValidationException, ], operationName: "UpdateRunGroup", + endpointHostPrefix: "workflows-", })); export type DeleteRunGroupError = | AccessDeniedException @@ -8427,6 +8485,7 @@ export const deleteRunGroup: API.OperationMethod< ValidationException, ], operationName: "DeleteRunGroup", + endpointHostPrefix: "workflows-", })); export type ListRunGroupsError = | AccessDeniedException @@ -8475,6 +8534,7 @@ export const listRunGroups: API.OperationMethod< ValidationException, ], operationName: "ListRunGroups", + endpointHostPrefix: "workflows-", pagination: { inputToken: "startingToken", outputToken: "nextToken", @@ -8546,6 +8606,7 @@ export const startRun: API.OperationMethod< ValidationException, ], operationName: "StartRun", + endpointHostPrefix: "workflows-", })); export type GetRunError = | AccessDeniedException @@ -8581,6 +8642,7 @@ export const getRun: API.OperationMethod< ValidationException, ], operationName: "GetRun", + endpointHostPrefix: "workflows-", })); export type DeleteRunError = | AccessDeniedException @@ -8620,6 +8682,7 @@ export const deleteRun: API.OperationMethod< ValidationException, ], operationName: "DeleteRun", + endpointHostPrefix: "workflows-", })); export type ListRunsError = | AccessDeniedException @@ -8670,6 +8733,7 @@ export const listRuns: API.OperationMethod< ValidationException, ], operationName: "ListRuns", + endpointHostPrefix: "workflows-", pagination: { inputToken: "startingToken", outputToken: "nextToken", @@ -8709,6 +8773,7 @@ export const cancelRun: API.OperationMethod< ValidationException, ], operationName: "CancelRun", + endpointHostPrefix: "workflows-", })); export type GetRunTaskError = | AccessDeniedException @@ -8742,6 +8807,7 @@ export const getRunTask: API.OperationMethod< ValidationException, ], operationName: "GetRunTask", + endpointHostPrefix: "workflows-", })); export type ListRunTasksError = | AccessDeniedException @@ -8790,6 +8856,7 @@ export const listRunTasks: API.OperationMethod< ValidationException, ], operationName: "ListRunTasks", + endpointHostPrefix: "workflows-", pagination: { inputToken: "startingToken", outputToken: "nextToken", @@ -8839,6 +8906,7 @@ export const createSequenceStore: API.OperationMethod< ValidationException, ], operationName: "CreateSequenceStore", + endpointHostPrefix: "control-storage-", })); export type GetSequenceStoreError = | AccessDeniedException @@ -8868,6 +8936,7 @@ export const getSequenceStore: API.OperationMethod< ValidationException, ], operationName: "GetSequenceStore", + endpointHostPrefix: "control-storage-", })); export type UpdateSequenceStoreError = | AccessDeniedException @@ -8899,6 +8968,7 @@ export const updateSequenceStore: API.OperationMethod< ValidationException, ], operationName: "UpdateSequenceStore", + endpointHostPrefix: "control-storage-", })); export type DeleteSequenceStoreError = | AccessDeniedException @@ -8934,6 +9004,7 @@ export const deleteSequenceStore: API.OperationMethod< ValidationException, ], operationName: "DeleteSequenceStore", + endpointHostPrefix: "control-storage-", })); export type ListSequenceStoresError = | AccessDeniedException @@ -8978,6 +9049,7 @@ export const listSequenceStores: API.OperationMethod< ValidationException, ], operationName: "ListSequenceStores", + endpointHostPrefix: "control-storage-", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9017,6 +9089,7 @@ export const abortMultipartReadSetUpload: API.OperationMethod< ValidationException, ], operationName: "AbortMultipartReadSetUpload", + endpointHostPrefix: "control-storage-", })); export type CompleteMultipartReadSetUploadError = | AccessDeniedException @@ -9052,6 +9125,7 @@ export const completeMultipartReadSetUpload: API.OperationMethod< ValidationException, ], operationName: "CompleteMultipartReadSetUpload", + endpointHostPrefix: "storage-", })); export type CreateMultipartReadSetUploadError = | AccessDeniedException @@ -9095,6 +9169,7 @@ export const createMultipartReadSetUpload: API.OperationMethod< ValidationException, ], operationName: "CreateMultipartReadSetUpload", + endpointHostPrefix: "control-storage-", })); export type GetReadSetActivationJobError = | AccessDeniedException @@ -9124,6 +9199,7 @@ export const getReadSetActivationJob: API.OperationMethod< ValidationException, ], operationName: "GetReadSetActivationJob", + endpointHostPrefix: "control-storage-", })); export type GetReadSetExportJobError = | AccessDeniedException @@ -9153,6 +9229,7 @@ export const getReadSetExportJob: API.OperationMethod< ValidationException, ], operationName: "GetReadSetExportJob", + endpointHostPrefix: "control-storage-", })); export type GetReadSetImportJobError = | AccessDeniedException @@ -9182,6 +9259,7 @@ export const getReadSetImportJob: API.OperationMethod< ValidationException, ], operationName: "GetReadSetImportJob", + endpointHostPrefix: "control-storage-", })); export type ListMultipartReadSetUploadsError = | AccessDeniedException @@ -9230,6 +9308,7 @@ export const listMultipartReadSetUploads: API.OperationMethod< ValidationException, ], operationName: "ListMultipartReadSetUploads", + endpointHostPrefix: "control-storage-", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9280,6 +9359,7 @@ export const listReadSetActivationJobs: API.OperationMethod< ValidationException, ], operationName: "ListReadSetActivationJobs", + endpointHostPrefix: "control-storage-", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9330,6 +9410,7 @@ export const listReadSetExportJobs: API.OperationMethod< ValidationException, ], operationName: "ListReadSetExportJobs", + endpointHostPrefix: "control-storage-", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9380,6 +9461,7 @@ export const listReadSetImportJobs: API.OperationMethod< ValidationException, ], operationName: "ListReadSetImportJobs", + endpointHostPrefix: "control-storage-", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9434,6 +9516,7 @@ export const listReadSetUploadParts: API.OperationMethod< ValidationException, ], operationName: "ListReadSetUploadParts", + endpointHostPrefix: "control-storage-", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9473,6 +9556,7 @@ export const startReadSetActivationJob: API.OperationMethod< ValidationException, ], operationName: "StartReadSetActivationJob", + endpointHostPrefix: "control-storage-", })); export type StartReadSetExportJobError = | AccessDeniedException @@ -9506,6 +9590,7 @@ export const startReadSetExportJob: API.OperationMethod< ValidationException, ], operationName: "StartReadSetExportJob", + endpointHostPrefix: "control-storage-", })); export type StartReadSetImportJobError = | AccessDeniedException @@ -9537,6 +9622,7 @@ export const startReadSetImportJob: API.OperationMethod< ValidationException, ], operationName: "StartReadSetImportJob", + endpointHostPrefix: "control-storage-", })); export type UploadReadSetPartError = | AccessDeniedException @@ -9572,6 +9658,7 @@ export const uploadReadSetPart: API.OperationMethod< ValidationException, ], operationName: "UploadReadSetPart", + endpointHostPrefix: "storage-", })); export type GetReadSetMetadataError = | AccessDeniedException @@ -9601,6 +9688,7 @@ export const getReadSetMetadata: API.OperationMethod< ValidationException, ], operationName: "GetReadSetMetadata", + endpointHostPrefix: "control-storage-", })); export type ListReadSetsError = | AccessDeniedException @@ -9645,6 +9733,7 @@ export const listReadSets: API.OperationMethod< ValidationException, ], operationName: "ListReadSets", + endpointHostPrefix: "control-storage-", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9684,6 +9773,7 @@ export const getReadSet: API.OperationMethod< ValidationException, ], operationName: "GetReadSet", + endpointHostPrefix: "storage-", })); export type BatchDeleteReadSetError = | AccessDeniedException @@ -9713,6 +9803,7 @@ export const batchDeleteReadSet: API.OperationMethod< ValidationException, ], operationName: "BatchDeleteReadSet", + endpointHostPrefix: "control-storage-", })); export type CreateShareError = | AccessDeniedException @@ -9752,6 +9843,7 @@ export const createShare: API.OperationMethod< ValidationException, ], operationName: "CreateShare", + endpointHostPrefix: "analytics-", })); export type GetShareError = | AccessDeniedException @@ -9783,6 +9875,7 @@ export const getShare: API.OperationMethod< ValidationException, ], operationName: "GetShare", + endpointHostPrefix: "analytics-", })); export type AcceptShareError = | AccessDeniedException @@ -9814,6 +9907,7 @@ export const acceptShare: API.OperationMethod< ValidationException, ], operationName: "AcceptShare", + endpointHostPrefix: "analytics-", })); export type DeleteShareError = | AccessDeniedException @@ -9845,6 +9939,7 @@ export const deleteShare: API.OperationMethod< ValidationException, ], operationName: "DeleteShare", + endpointHostPrefix: "analytics-", })); export type ListSharesError = | AccessDeniedException @@ -9891,6 +9986,7 @@ export const listShares: API.OperationMethod< ValidationException, ], operationName: "ListShares", + endpointHostPrefix: "analytics-", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -9930,6 +10026,7 @@ export const listTagsForResource: API.OperationMethod< ValidationException, ], operationName: "ListTagsForResource", + endpointHostPrefix: "tags-", })); export type TagResourceError = | AccessDeniedException @@ -9963,6 +10060,7 @@ export const tagResource: API.OperationMethod< ValidationException, ], operationName: "TagResource", + endpointHostPrefix: "tags-", })); export type UntagResourceError = | AccessDeniedException @@ -9996,6 +10094,7 @@ export const untagResource: API.OperationMethod< ValidationException, ], operationName: "UntagResource", + endpointHostPrefix: "tags-", })); export type StartVariantImportJobError = | AccessDeniedException @@ -10027,6 +10126,7 @@ export const startVariantImportJob: API.OperationMethod< ValidationException, ], operationName: "StartVariantImportJob", + endpointHostPrefix: "analytics-", })); export type GetVariantImportJobError = | AccessDeniedException @@ -10056,6 +10156,7 @@ export const getVariantImportJob: API.OperationMethod< ValidationException, ], operationName: "GetVariantImportJob", + endpointHostPrefix: "analytics-", })); export type CancelVariantImportJobError = | AccessDeniedException @@ -10085,6 +10186,7 @@ export const cancelVariantImportJob: API.OperationMethod< ValidationException, ], operationName: "CancelVariantImportJob", + endpointHostPrefix: "analytics-", })); export type ListVariantImportJobsError = | AccessDeniedException @@ -10129,6 +10231,7 @@ export const listVariantImportJobs: API.OperationMethod< ValidationException, ], operationName: "ListVariantImportJobs", + endpointHostPrefix: "analytics-", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -10168,6 +10271,7 @@ export const createVariantStore: API.OperationMethod< ValidationException, ], operationName: "CreateVariantStore", + endpointHostPrefix: "analytics-", })); export type GetVariantStoreError = | AccessDeniedException @@ -10175,6 +10279,7 @@ export type GetVariantStoreError = | ResourceNotFoundException | ThrottlingException | ValidationException + | TooManyRequestsException | CommonErrors; /** * Amazon Web Services HealthOmics variant stores and annotation stores are no longer open to new customers. Existing customers can continue to use the service as normal. For more information, see Amazon Web Services HealthOmics variant store and annotation store availability change. @@ -10195,8 +10300,10 @@ export const getVariantStore: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + TooManyRequestsException, ], operationName: "GetVariantStore", + endpointHostPrefix: "analytics-", })); export type UpdateVariantStoreError = | AccessDeniedException @@ -10226,6 +10333,7 @@ export const updateVariantStore: API.OperationMethod< ValidationException, ], operationName: "UpdateVariantStore", + endpointHostPrefix: "analytics-", })); export type DeleteVariantStoreError = | AccessDeniedException @@ -10257,6 +10365,7 @@ export const deleteVariantStore: API.OperationMethod< ValidationException, ], operationName: "DeleteVariantStore", + endpointHostPrefix: "analytics-", })); export type ListVariantStoresError = | AccessDeniedException @@ -10301,6 +10410,7 @@ export const listVariantStores: API.OperationMethod< ValidationException, ], operationName: "ListVariantStores", + endpointHostPrefix: "analytics-", pagination: { inputToken: "nextToken", outputToken: "nextToken", @@ -10352,6 +10462,7 @@ export const createWorkflow: API.OperationMethod< ValidationException, ], operationName: "CreateWorkflow", + endpointHostPrefix: "workflows-", })); export type GetWorkflowError = | AccessDeniedException @@ -10389,6 +10500,7 @@ export const getWorkflow: API.OperationMethod< ValidationException, ], operationName: "GetWorkflow", + endpointHostPrefix: "workflows-", })); export type UpdateWorkflowError = | AccessDeniedException @@ -10436,6 +10548,7 @@ export const updateWorkflow: API.OperationMethod< ValidationException, ], operationName: "UpdateWorkflow", + endpointHostPrefix: "workflows-", })); export type DeleteWorkflowError = | AccessDeniedException @@ -10475,6 +10588,7 @@ export const deleteWorkflow: API.OperationMethod< ValidationException, ], operationName: "DeleteWorkflow", + endpointHostPrefix: "workflows-", })); export type ListWorkflowsError = | AccessDeniedException @@ -10523,6 +10637,7 @@ export const listWorkflows: API.OperationMethod< ValidationException, ], operationName: "ListWorkflows", + endpointHostPrefix: "workflows-", pagination: { inputToken: "startingToken", outputToken: "nextToken", @@ -10570,6 +10685,7 @@ export const createWorkflowVersion: API.OperationMethod< ValidationException, ], operationName: "CreateWorkflowVersion", + endpointHostPrefix: "workflows-", })); export type GetWorkflowVersionError = | AccessDeniedException @@ -10603,6 +10719,7 @@ export const getWorkflowVersion: API.OperationMethod< ValidationException, ], operationName: "GetWorkflowVersion", + endpointHostPrefix: "workflows-", })); export type UpdateWorkflowVersionError = | AccessDeniedException @@ -10636,6 +10753,7 @@ export const updateWorkflowVersion: API.OperationMethod< ValidationException, ], operationName: "UpdateWorkflowVersion", + endpointHostPrefix: "workflows-", })); export type DeleteWorkflowVersionError = | AccessDeniedException @@ -10671,6 +10789,7 @@ export const deleteWorkflowVersion: API.OperationMethod< ValidationException, ], operationName: "DeleteWorkflowVersion", + endpointHostPrefix: "workflows-", })); export type ListWorkflowVersionsError = | AccessDeniedException @@ -10719,6 +10838,7 @@ export const listWorkflowVersions: API.OperationMethod< ValidationException, ], operationName: "ListWorkflowVersions", + endpointHostPrefix: "workflows-", pagination: { inputToken: "startingToken", outputToken: "nextToken", diff --git a/packages/aws/src/services/qbusiness.ts b/packages/aws/src/services/qbusiness.ts index d29353ffd6..c6ae7eba66 100644 --- a/packages/aws/src/services/qbusiness.ts +++ b/packages/aws/src/services/qbusiness.ts @@ -3972,13 +3972,13 @@ export const AppliedAttachmentsConfiguration = export type AutoSubscriptionStatus = "ENABLED" | "DISABLED" | (string & {}); export const AutoSubscriptionStatus = /*@__PURE__*/ S.String; export interface AutoSubscriptionConfiguration { - autoSubscribe: AutoSubscriptionStatus; + autoSubscribe?: AutoSubscriptionStatus; defaultSubscriptionType?: SubscriptionType; } export const AutoSubscriptionConfiguration = /*@__PURE__*/ S.suspend(() => S.Struct({ - autoSubscribe: AutoSubscriptionStatus, + autoSubscribe: S.optional(AutoSubscriptionStatus), defaultSubscriptionType: S.optional(SubscriptionType), }), ).annotate({ @@ -6109,26 +6109,32 @@ export const ListWebExperiencesResponse = /*@__PURE__*/ S.suspend(() => export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.String }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { message: S.String, resourceId: S.String, resourceType: S.String }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { message: S.String }, + T.HttpError(500), ).pipe(C.withServerError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.String, resourceId: S.String, resourceType: S.String }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", { message: S.String, resourceId: S.String, resourceType: S.String }, + T.HttpError(402), ).pipe(C.withQuotaError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", { message: S.String }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", @@ -6137,18 +6143,22 @@ export class ValidationException extends S.TaggedErrorClass reason: ValidationExceptionReason, fields: S.optional(ValidationExceptionFields), }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ExternalResourceException extends S.TaggedErrorClass()( "ExternalResourceException", { message: S.String }, + T.HttpError(424), ) {} export class LicenseNotFoundException extends S.TaggedErrorClass()( "LicenseNotFoundException", { message: S.String }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class MediaTooLargeException extends S.TaggedErrorClass()( "MediaTooLargeException", { message: S.String }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} //# Operations diff --git a/packages/aws/src/services/quicksight.ts b/packages/aws/src/services/quicksight.ts index c6214f906d..3e0aff0d7b 100644 --- a/packages/aws/src/services/quicksight.ts +++ b/packages/aws/src/services/quicksight.ts @@ -812,21 +812,21 @@ export const ContributionAnalysisFactor = /*@__PURE__*/ S.suspend(() => identifier: "ContributionAnalysisFactor", }) as any as S.Schema; export type ContributionAnalysisFactorsList = ContributionAnalysisFactor[]; -export const ContributionAnalysisFactorsList = - /*@__PURE__*/ S.Array(ContributionAnalysisFactor); +export const ContributionAnalysisFactorsList = /*@__PURE__*/ S.Array( + ContributionAnalysisFactor, +); export interface ContributionAnalysisTimeRanges { StartRange?: TopicIRFilterOption; EndRange?: TopicIRFilterOption; } -export const ContributionAnalysisTimeRanges = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - StartRange: S.optional(TopicIRFilterOption), - EndRange: S.optional(TopicIRFilterOption), - }), - ).annotate({ - identifier: "ContributionAnalysisTimeRanges", - }) as any as S.Schema; +export const ContributionAnalysisTimeRanges = /*@__PURE__*/ S.suspend(() => + S.Struct({ + StartRange: S.optional(TopicIRFilterOption), + EndRange: S.optional(TopicIRFilterOption), + }), +).annotate({ + identifier: "ContributionAnalysisTimeRanges", +}) as any as S.Schema; export type ContributionAnalysisDirection = | "INCREASE" | "DECREASE" @@ -846,17 +846,16 @@ export interface TopicIRContributionAnalysis { Direction?: ContributionAnalysisDirection; SortType?: ContributionAnalysisSortType; } -export const TopicIRContributionAnalysis = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Factors: S.optional(ContributionAnalysisFactorsList), - TimeRanges: S.optional(ContributionAnalysisTimeRanges), - Direction: S.optional(ContributionAnalysisDirection), - SortType: S.optional(ContributionAnalysisSortType), - }), - ).annotate({ - identifier: "TopicIRContributionAnalysis", - }) as any as S.Schema; +export const TopicIRContributionAnalysis = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Factors: S.optional(ContributionAnalysisFactorsList), + TimeRanges: S.optional(ContributionAnalysisTimeRanges), + Direction: S.optional(ContributionAnalysisDirection), + SortType: S.optional(ContributionAnalysisSortType), + }), +).annotate({ + identifier: "TopicIRContributionAnalysis", +}) as any as S.Schema; export interface VisualOptions { type?: string; } @@ -956,8 +955,8 @@ export interface BatchCreateTopicReviewedAnswerRequest { TopicId: string; Answers: CreateTopicReviewedAnswer[]; } -export const BatchCreateTopicReviewedAnswerRequest = - /*@__PURE__*/ S.suspend(() => +export const BatchCreateTopicReviewedAnswerRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), TopicId: S.String.pipe(T.HttpLabel("TopicId")), @@ -975,21 +974,21 @@ export const BatchCreateTopicReviewedAnswerRequest = rules, ), ), - ).annotate({ - identifier: "BatchCreateTopicReviewedAnswerRequest", - }) as any as S.Schema; +).annotate({ + identifier: "BatchCreateTopicReviewedAnswerRequest", +}) as any as S.Schema; export interface SucceededTopicReviewedAnswer { AnswerId?: string; } -export const SucceededTopicReviewedAnswer = - /*@__PURE__*/ S.suspend(() => - S.Struct({ AnswerId: S.optional(S.String) }), - ).annotate({ - identifier: "SucceededTopicReviewedAnswer", - }) as any as S.Schema; +export const SucceededTopicReviewedAnswer = /*@__PURE__*/ S.suspend(() => + S.Struct({ AnswerId: S.optional(S.String) }), +).annotate({ + identifier: "SucceededTopicReviewedAnswer", +}) as any as S.Schema; export type SucceededTopicReviewedAnswers = SucceededTopicReviewedAnswer[]; -export const SucceededTopicReviewedAnswers = - /*@__PURE__*/ S.Array(SucceededTopicReviewedAnswer); +export const SucceededTopicReviewedAnswers = /*@__PURE__*/ S.Array( + SucceededTopicReviewedAnswer, +); export type ReviewedAnswerErrorCode = | "INTERNAL_ERROR" | "MISSING_ANSWER" @@ -1024,8 +1023,8 @@ export interface BatchCreateTopicReviewedAnswerResponse { Status?: number; RequestId?: string; } -export const BatchCreateTopicReviewedAnswerResponse = - /*@__PURE__*/ S.suspend(() => +export const BatchCreateTopicReviewedAnswerResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ TopicId: S.optional(S.String), TopicArn: S.optional(S.String), @@ -1034,9 +1033,9 @@ export const BatchCreateTopicReviewedAnswerResponse = Status: S.optional(S.Number).pipe(T.HttpResponseCode()), RequestId: S.optional(S.String), }), - ).annotate({ - identifier: "BatchCreateTopicReviewedAnswerResponse", - }) as any as S.Schema; +).annotate({ + identifier: "BatchCreateTopicReviewedAnswerResponse", +}) as any as S.Schema; export type ExceptionResourceType = | "USER" | "GROUP" @@ -1056,77 +1055,75 @@ export interface BatchDeleteKnowledgeBaseRequest { AwsAccountId: string; KnowledgeBaseIds: string[]; } -export const BatchDeleteKnowledgeBaseRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - KnowledgeBaseIds: BatchDeleteKnowledgeBaseRequestKnowledgeBaseIdsList, - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/v1/accounts/{AwsAccountId}/knowledge-bases/batch-delete", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const BatchDeleteKnowledgeBaseRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + KnowledgeBaseIds: BatchDeleteKnowledgeBaseRequestKnowledgeBaseIdsList, + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/v1/accounts/{AwsAccountId}/knowledge-bases/batch-delete", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "BatchDeleteKnowledgeBaseRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "BatchDeleteKnowledgeBaseRequest", +}) as any as S.Schema; export interface BatchDeleteKnowledgeBaseSuccess { KnowledgeBaseId: string; KnowledgeBaseArn: string; } -export const BatchDeleteKnowledgeBaseSuccess = - /*@__PURE__*/ S.suspend(() => - S.Struct({ KnowledgeBaseId: S.String, KnowledgeBaseArn: S.String }), - ).annotate({ - identifier: "BatchDeleteKnowledgeBaseSuccess", - }) as any as S.Schema; +export const BatchDeleteKnowledgeBaseSuccess = /*@__PURE__*/ S.suspend(() => + S.Struct({ KnowledgeBaseId: S.String, KnowledgeBaseArn: S.String }), +).annotate({ + identifier: "BatchDeleteKnowledgeBaseSuccess", +}) as any as S.Schema; export type BatchDeleteKnowledgeBaseSuccessList = BatchDeleteKnowledgeBaseSuccess[]; -export const BatchDeleteKnowledgeBaseSuccessList = - /*@__PURE__*/ S.Array(BatchDeleteKnowledgeBaseSuccess); +export const BatchDeleteKnowledgeBaseSuccessList = /*@__PURE__*/ S.Array( + BatchDeleteKnowledgeBaseSuccess, +); export interface BatchDeleteKnowledgeBaseFailure { KnowledgeBaseId: string; ErrorCode: string; ErrorMessage: string; } -export const BatchDeleteKnowledgeBaseFailure = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - KnowledgeBaseId: S.String, - ErrorCode: S.String, - ErrorMessage: S.String, - }), - ).annotate({ - identifier: "BatchDeleteKnowledgeBaseFailure", - }) as any as S.Schema; +export const BatchDeleteKnowledgeBaseFailure = /*@__PURE__*/ S.suspend(() => + S.Struct({ + KnowledgeBaseId: S.String, + ErrorCode: S.String, + ErrorMessage: S.String, + }), +).annotate({ + identifier: "BatchDeleteKnowledgeBaseFailure", +}) as any as S.Schema; export type BatchDeleteKnowledgeBaseFailureList = BatchDeleteKnowledgeBaseFailure[]; -export const BatchDeleteKnowledgeBaseFailureList = - /*@__PURE__*/ S.Array(BatchDeleteKnowledgeBaseFailure); +export const BatchDeleteKnowledgeBaseFailureList = /*@__PURE__*/ S.Array( + BatchDeleteKnowledgeBaseFailure, +); export interface BatchDeleteKnowledgeBaseResponse { Deleted: BatchDeleteKnowledgeBaseSuccess[]; Errors: BatchDeleteKnowledgeBaseFailure[]; RequestId?: string; Status?: number; } -export const BatchDeleteKnowledgeBaseResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Deleted: BatchDeleteKnowledgeBaseSuccessList, - Errors: BatchDeleteKnowledgeBaseFailureList, - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "BatchDeleteKnowledgeBaseResponse", - }) as any as S.Schema; +export const BatchDeleteKnowledgeBaseResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Deleted: BatchDeleteKnowledgeBaseSuccessList, + Errors: BatchDeleteKnowledgeBaseFailureList, + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "BatchDeleteKnowledgeBaseResponse", +}) as any as S.Schema; export type AnswerIds = string[]; export const AnswerIds = /*@__PURE__*/ S.Array(S.String); export interface BatchDeleteTopicReviewedAnswerRequest { @@ -1134,8 +1131,8 @@ export interface BatchDeleteTopicReviewedAnswerRequest { TopicId: string; AnswerIds?: string[]; } -export const BatchDeleteTopicReviewedAnswerRequest = - /*@__PURE__*/ S.suspend(() => +export const BatchDeleteTopicReviewedAnswerRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), TopicId: S.String.pipe(T.HttpLabel("TopicId")), @@ -1153,9 +1150,9 @@ export const BatchDeleteTopicReviewedAnswerRequest = rules, ), ), - ).annotate({ - identifier: "BatchDeleteTopicReviewedAnswerRequest", - }) as any as S.Schema; +).annotate({ + identifier: "BatchDeleteTopicReviewedAnswerRequest", +}) as any as S.Schema; export interface BatchDeleteTopicReviewedAnswerResponse { TopicId?: string; TopicArn?: string; @@ -1164,8 +1161,8 @@ export interface BatchDeleteTopicReviewedAnswerResponse { RequestId?: string; Status?: number; } -export const BatchDeleteTopicReviewedAnswerResponse = - /*@__PURE__*/ S.suspend(() => +export const BatchDeleteTopicReviewedAnswerResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ TopicId: S.optional(S.String), TopicArn: S.optional(S.String), @@ -1174,9 +1171,9 @@ export const BatchDeleteTopicReviewedAnswerResponse = RequestId: S.optional(S.String), Status: S.optional(S.Number).pipe(T.HttpResponseCode()), }), - ).annotate({ - identifier: "BatchDeleteTopicReviewedAnswerResponse", - }) as any as S.Schema; +).annotate({ + identifier: "BatchDeleteTopicReviewedAnswerResponse", +}) as any as S.Schema; export interface CancelIngestionRequest { AwsAccountId: string; DataSetId: string; @@ -1246,29 +1243,28 @@ export interface CreateAccountCustomizationRequest { AccountCustomization: AccountCustomization; Tags?: Tag[]; } -export const CreateAccountCustomizationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - Namespace: S.optional(S.String).pipe(T.HttpQuery("namespace")), - AccountCustomization: AccountCustomization, - Tags: S.optional(TagList), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/accounts/{AwsAccountId}/customizations", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateAccountCustomizationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + Namespace: S.optional(S.String).pipe(T.HttpQuery("namespace")), + AccountCustomization: AccountCustomization, + Tags: S.optional(TagList), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/accounts/{AwsAccountId}/customizations", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateAccountCustomizationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateAccountCustomizationRequest", +}) as any as S.Schema; export interface CreateAccountCustomizationResponse { Arn?: string; AwsAccountId?: string; @@ -1277,19 +1273,18 @@ export interface CreateAccountCustomizationResponse { RequestId?: string; Status?: number; } -export const CreateAccountCustomizationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Arn: S.optional(S.String), - AwsAccountId: S.optional(S.String), - Namespace: S.optional(S.String), - AccountCustomization: S.optional(AccountCustomization), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "CreateAccountCustomizationResponse", - }) as any as S.Schema; +export const CreateAccountCustomizationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Arn: S.optional(S.String), + AwsAccountId: S.optional(S.String), + Namespace: S.optional(S.String), + AccountCustomization: S.optional(AccountCustomization), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "CreateAccountCustomizationResponse", +}) as any as S.Schema; export type Edition = | "STANDARD" | "ENTERPRISE" @@ -1326,41 +1321,40 @@ export interface CreateAccountSubscriptionRequest { ContactNumber?: string; IAMIdentityCenterInstanceArn?: string; } -export const CreateAccountSubscriptionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Edition: S.optional(Edition), - AuthenticationMethod: AuthenticationMethodOption, - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - AccountName: S.String, - NotificationEmail: S.String, - ActiveDirectoryName: S.optional(S.String), - Realm: S.optional(S.String), - DirectoryId: S.optional(S.String), - AdminGroup: S.optional(GroupsList), - AuthorGroup: S.optional(GroupsList), - ReaderGroup: S.optional(GroupsList), - AdminProGroup: S.optional(GroupsList), - AuthorProGroup: S.optional(GroupsList), - ReaderProGroup: S.optional(GroupsList), - FirstName: S.optional(S.String), - LastName: S.optional(S.String), - EmailAddress: S.optional(S.String), - ContactNumber: S.optional(S.String), - IAMIdentityCenterInstanceArn: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/account/{AwsAccountId}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateAccountSubscriptionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Edition: S.optional(Edition), + AuthenticationMethod: AuthenticationMethodOption, + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + AccountName: S.String, + NotificationEmail: S.String, + ActiveDirectoryName: S.optional(S.String), + Realm: S.optional(S.String), + DirectoryId: S.optional(S.String), + AdminGroup: S.optional(GroupsList), + AuthorGroup: S.optional(GroupsList), + ReaderGroup: S.optional(GroupsList), + AdminProGroup: S.optional(GroupsList), + AuthorProGroup: S.optional(GroupsList), + ReaderProGroup: S.optional(GroupsList), + FirstName: S.optional(S.String), + LastName: S.optional(S.String), + EmailAddress: S.optional(S.String), + ContactNumber: S.optional(S.String), + IAMIdentityCenterInstanceArn: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/account/{AwsAccountId}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateAccountSubscriptionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateAccountSubscriptionRequest", +}) as any as S.Schema; export interface SignupResponse { IAMUser?: boolean; userLoginName?: string; @@ -1380,16 +1374,15 @@ export interface CreateAccountSubscriptionResponse { Status?: number; RequestId?: string; } -export const CreateAccountSubscriptionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SignupResponse: S.optional(SignupResponse), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "CreateAccountSubscriptionResponse", - }) as any as S.Schema; +export const CreateAccountSubscriptionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SignupResponse: S.optional(SignupResponse), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "CreateAccountSubscriptionResponse", +}) as any as S.Schema; export type ActionConnectorType = | "GENERIC_HTTP" | "SERVICENOW_NOW_PLATFORM" @@ -1439,45 +1432,42 @@ export interface AuthorizationCodeGrantDetails { TokenEndpoint: string; AuthorizationEndpoint: string; } -export const AuthorizationCodeGrantDetails = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ClientId: S.String, - ClientSecret: SensitiveString, - TokenEndpoint: S.String, - AuthorizationEndpoint: S.String, - }), - ).annotate({ - identifier: "AuthorizationCodeGrantDetails", - }) as any as S.Schema; +export const AuthorizationCodeGrantDetails = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ClientId: S.String, + ClientSecret: SensitiveString, + TokenEndpoint: S.String, + AuthorizationEndpoint: S.String, + }), +).annotate({ + identifier: "AuthorizationCodeGrantDetails", +}) as any as S.Schema; export type AuthorizationCodeGrantCredentialsDetails = { AuthorizationCodeGrantDetails: AuthorizationCodeGrantDetails; }; -export const AuthorizationCodeGrantCredentialsDetails = - /*@__PURE__*/ S.Union([ - S.Struct({ AuthorizationCodeGrantDetails: AuthorizationCodeGrantDetails }), - ]); +export const AuthorizationCodeGrantCredentialsDetails = /*@__PURE__*/ S.Union([ + S.Struct({ AuthorizationCodeGrantDetails: AuthorizationCodeGrantDetails }), +]); export interface AuthorizationCodeGrantMetadata { BaseEndpoint: string; RedirectUrl: string; AuthorizationCodeGrantCredentialsSource?: AuthorizationCodeGrantCredentialsSource; AuthorizationCodeGrantCredentialsDetails?: AuthorizationCodeGrantCredentialsDetails; } -export const AuthorizationCodeGrantMetadata = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - BaseEndpoint: S.String, - RedirectUrl: S.String, - AuthorizationCodeGrantCredentialsSource: S.optional( - AuthorizationCodeGrantCredentialsSource, - ), - AuthorizationCodeGrantCredentialsDetails: S.optional( - AuthorizationCodeGrantCredentialsDetails, - ), - }), - ).annotate({ - identifier: "AuthorizationCodeGrantMetadata", - }) as any as S.Schema; +export const AuthorizationCodeGrantMetadata = /*@__PURE__*/ S.suspend(() => + S.Struct({ + BaseEndpoint: S.String, + RedirectUrl: S.String, + AuthorizationCodeGrantCredentialsSource: S.optional( + AuthorizationCodeGrantCredentialsSource, + ), + AuthorizationCodeGrantCredentialsDetails: S.optional( + AuthorizationCodeGrantCredentialsDetails, + ), + }), +).annotate({ + identifier: "AuthorizationCodeGrantMetadata", +}) as any as S.Schema; export type ClientCredentialsSource = "PLAIN_CREDENTIALS" | (string & {}); export const ClientCredentialsSource = /*@__PURE__*/ S.String; export interface ClientCredentialsGrantDetails { @@ -1485,16 +1475,15 @@ export interface ClientCredentialsGrantDetails { ClientSecret: string | redacted.Redacted; TokenEndpoint: string; } -export const ClientCredentialsGrantDetails = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ClientId: S.String, - ClientSecret: SensitiveString, - TokenEndpoint: S.String, - }), - ).annotate({ - identifier: "ClientCredentialsGrantDetails", - }) as any as S.Schema; +export const ClientCredentialsGrantDetails = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ClientId: S.String, + ClientSecret: SensitiveString, + TokenEndpoint: S.String, + }), +).annotate({ + identifier: "ClientCredentialsGrantDetails", +}) as any as S.Schema; export type ClientCredentialsDetails = { ClientCredentialsGrantDetails: ClientCredentialsGrantDetails; }; @@ -1506,31 +1495,29 @@ export interface ClientCredentialsGrantMetadata { ClientCredentialsSource?: ClientCredentialsSource; ClientCredentialsDetails?: ClientCredentialsDetails; } -export const ClientCredentialsGrantMetadata = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - BaseEndpoint: S.String, - ClientCredentialsSource: S.optional(ClientCredentialsSource), - ClientCredentialsDetails: S.optional(ClientCredentialsDetails), - }), - ).annotate({ - identifier: "ClientCredentialsGrantMetadata", - }) as any as S.Schema; +export const ClientCredentialsGrantMetadata = /*@__PURE__*/ S.suspend(() => + S.Struct({ + BaseEndpoint: S.String, + ClientCredentialsSource: S.optional(ClientCredentialsSource), + ClientCredentialsDetails: S.optional(ClientCredentialsDetails), + }), +).annotate({ + identifier: "ClientCredentialsGrantMetadata", +}) as any as S.Schema; export interface BasicAuthConnectionMetadata { BaseEndpoint: string; Username: string | redacted.Redacted; Password: string | redacted.Redacted; } -export const BasicAuthConnectionMetadata = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - BaseEndpoint: S.String, - Username: SensitiveString, - Password: SensitiveString, - }), - ).annotate({ - identifier: "BasicAuthConnectionMetadata", - }) as any as S.Schema; +export const BasicAuthConnectionMetadata = /*@__PURE__*/ S.suspend(() => + S.Struct({ + BaseEndpoint: S.String, + Username: SensitiveString, + Password: SensitiveString, + }), +).annotate({ + identifier: "BasicAuthConnectionMetadata", +}) as any as S.Schema; export interface APIKeyConnectionMetadata { BaseEndpoint: string; ApiKey: string | redacted.Redacted; @@ -1652,34 +1639,33 @@ export interface CreateActionConnectorRequest { VpcConnectionArn?: string; Tags?: Tag[]; } -export const CreateActionConnectorRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - ActionConnectorId: S.String, - Name: SensitiveString, - Type: ActionConnectorType, - AuthenticationConfig: AuthConfig, - Description: S.optional(SensitiveString), - Permissions: S.optional(ResourcePermissionList), - VpcConnectionArn: S.optional(S.String), - Tags: S.optional(TagList), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/accounts/{AwsAccountId}/action-connectors", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateActionConnectorRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + ActionConnectorId: S.String, + Name: SensitiveString, + Type: ActionConnectorType, + AuthenticationConfig: AuthConfig, + Description: S.optional(SensitiveString), + Permissions: S.optional(ResourcePermissionList), + VpcConnectionArn: S.optional(S.String), + Tags: S.optional(TagList), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/accounts/{AwsAccountId}/action-connectors", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateActionConnectorRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateActionConnectorRequest", +}) as any as S.Schema; export type ResourceStatus = | "CREATION_IN_PROGRESS" | "CREATION_SUCCESSFUL" @@ -1697,23 +1683,23 @@ export interface CreateActionConnectorResponse { RequestId?: string; Status?: number; } -export const CreateActionConnectorResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Arn: S.optional(S.String), - CreationStatus: S.optional(ResourceStatus), - ActionConnectorId: S.optional(S.String), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "CreateActionConnectorResponse", - }) as any as S.Schema; +export const CreateActionConnectorResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Arn: S.optional(S.String), + CreationStatus: S.optional(ResourceStatus), + ActionConnectorId: S.optional(S.String), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "CreateActionConnectorResponse", +}) as any as S.Schema; export type CreateAgentRequestSpacesList = string[]; export const CreateAgentRequestSpacesList = /*@__PURE__*/ S.Array(S.String); export type CreateAgentRequestActionConnectorsList = string[]; -export const CreateAgentRequestActionConnectorsList = - /*@__PURE__*/ S.Array(S.String); +export const CreateAgentRequestActionConnectorsList = /*@__PURE__*/ S.Array( + S.String, +); export type StarterPromptList = string[]; export const StarterPromptList = /*@__PURE__*/ S.Array(S.String); export type AgentLifecycle = "PREVIEW" | "PUBLISHED" | (string & {}); @@ -1739,18 +1725,17 @@ export interface CustomPromptInputParameters { Tone?: string | redacted.Redacted; CustomInstructions?: string | redacted.Redacted; } -export const CustomPromptInputParameters = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResponseLength: S.optional(SensitiveString), - OutputStyle: S.optional(SensitiveString), - Identity: S.optional(SensitiveString), - Tone: S.optional(SensitiveString), - CustomInstructions: S.optional(SensitiveString), - }), - ).annotate({ - identifier: "CustomPromptInputParameters", - }) as any as S.Schema; +export const CustomPromptInputParameters = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResponseLength: S.optional(SensitiveString), + OutputStyle: S.optional(SensitiveString), + Identity: S.optional(SensitiveString), + Tone: S.optional(SensitiveString), + CustomInstructions: S.optional(SensitiveString), + }), +).annotate({ + identifier: "CustomPromptInputParameters", +}) as any as S.Schema; export type CustomPromptInput = | { ExistingPrompt: CustomPromptProfile; NewPrompt?: never } | { ExistingPrompt?: never; NewPrompt: CustomPromptInputParameters }; @@ -1822,11 +1807,11 @@ export const CreateAgentResponse = /*@__PURE__*/ S.suspend(() => ).annotate({ identifier: "CreateAgentResponse", }) as any as S.Schema; -export type SensitiveStringList = string | redacted.Redacted[]; +export type SensitiveStringList = (string | redacted.Redacted)[]; export const SensitiveStringList = /*@__PURE__*/ S.Array(SensitiveString); export interface StringParameter { Name: string; - Values: string | redacted.Redacted[]; + Values: (string | redacted.Redacted)[]; } export const StringParameter = /*@__PURE__*/ S.suspend(() => S.Struct({ Name: S.String, Values: SensitiveStringList }), @@ -1922,15 +1907,15 @@ export interface DataSetIdentifierDeclaration { Identifier: string; DataSetArn: string; } -export const DataSetIdentifierDeclaration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Identifier: S.String, DataSetArn: S.String }), - ).annotate({ - identifier: "DataSetIdentifierDeclaration", - }) as any as S.Schema; +export const DataSetIdentifierDeclaration = /*@__PURE__*/ S.suspend(() => + S.Struct({ Identifier: S.String, DataSetArn: S.String }), +).annotate({ + identifier: "DataSetIdentifierDeclaration", +}) as any as S.Schema; export type DataSetIdentifierDeclarationList = DataSetIdentifierDeclaration[]; -export const DataSetIdentifierDeclarationList = - /*@__PURE__*/ S.Array(DataSetIdentifierDeclaration); +export const DataSetIdentifierDeclarationList = /*@__PURE__*/ S.Array( + DataSetIdentifierDeclaration, +); export type Visibility = "HIDDEN" | "VISIBLE" | (string & {}); export const Visibility = /*@__PURE__*/ S.String; export type RelativeFontSize = @@ -1999,15 +1984,14 @@ export interface SheetControlInfoIconLabelOptions { Visibility?: Visibility; InfoIconText?: string; } -export const SheetControlInfoIconLabelOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Visibility: S.optional(Visibility), - InfoIconText: S.optional(S.String), - }), - ).annotate({ - identifier: "SheetControlInfoIconLabelOptions", - }) as any as S.Schema; +export const SheetControlInfoIconLabelOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Visibility: S.optional(Visibility), + InfoIconText: S.optional(S.String), + }), +).annotate({ + identifier: "SheetControlInfoIconLabelOptions", +}) as any as S.Schema; export interface DateTimePickerControlDisplayOptions { TitleOptions?: LabelOptions; DateTimeFormat?: string; @@ -2015,27 +1999,23 @@ export interface DateTimePickerControlDisplayOptions { HelperTextVisibility?: Visibility; DateIconVisibility?: Visibility; } -export const DateTimePickerControlDisplayOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TitleOptions: S.optional(LabelOptions), - DateTimeFormat: S.optional(S.String), - InfoIconLabelOptions: S.optional(SheetControlInfoIconLabelOptions), - HelperTextVisibility: S.optional(Visibility), - DateIconVisibility: S.optional(Visibility), - }), - ).annotate({ - identifier: "DateTimePickerControlDisplayOptions", - }) as any as S.Schema; +export const DateTimePickerControlDisplayOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TitleOptions: S.optional(LabelOptions), + DateTimeFormat: S.optional(S.String), + InfoIconLabelOptions: S.optional(SheetControlInfoIconLabelOptions), + HelperTextVisibility: S.optional(Visibility), + DateIconVisibility: S.optional(Visibility), + }), +).annotate({ + identifier: "DateTimePickerControlDisplayOptions", +}) as any as S.Schema; export interface ControlTitleFormatText { PlainText?: string; RichText?: string; } export const ControlTitleFormatText = /*@__PURE__*/ S.suspend(() => - S.Struct({ - PlainText: S.optional(S.String), - RichText: S.optional(S.String), - }), + S.Struct({ PlainText: S.optional(S.String), RichText: S.optional(S.String) }), ).annotate({ identifier: "ControlTitleFormatText", }) as any as S.Schema; @@ -2046,18 +2026,17 @@ export interface ParameterDateTimePickerControl { DisplayOptions?: DateTimePickerControlDisplayOptions; ControlTitleFormatText?: ControlTitleFormatText; } -export const ParameterDateTimePickerControl = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ParameterControlId: S.String, - Title: S.optional(S.String), - SourceParameterName: S.String, - DisplayOptions: S.optional(DateTimePickerControlDisplayOptions), - ControlTitleFormatText: S.optional(ControlTitleFormatText), - }), - ).annotate({ - identifier: "ParameterDateTimePickerControl", - }) as any as S.Schema; +export const ParameterDateTimePickerControl = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ParameterControlId: S.String, + Title: S.optional(S.String), + SourceParameterName: S.String, + DisplayOptions: S.optional(DateTimePickerControlDisplayOptions), + ControlTitleFormatText: S.optional(ControlTitleFormatText), + }), +).annotate({ + identifier: "ParameterDateTimePickerControl", +}) as any as S.Schema; export interface ListControlSearchOptions { Visibility?: Visibility; } @@ -2069,12 +2048,11 @@ export const ListControlSearchOptions = /*@__PURE__*/ S.suspend(() => export interface ListControlSelectAllOptions { Visibility?: Visibility; } -export const ListControlSelectAllOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Visibility: S.optional(Visibility) }), - ).annotate({ - identifier: "ListControlSelectAllOptions", - }) as any as S.Schema; +export const ListControlSelectAllOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ Visibility: S.optional(Visibility) }), +).annotate({ + identifier: "ListControlSelectAllOptions", +}) as any as S.Schema; export interface ListControlDisplayOptions { SearchOptions?: ListControlSearchOptions; SelectAllOptions?: ListControlSelectAllOptions; @@ -2138,12 +2116,11 @@ export const CascadingControlSourceList = /*@__PURE__*/ S.Array( export interface CascadingControlConfiguration { SourceControls?: CascadingControlSource[]; } -export const CascadingControlConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ SourceControls: S.optional(CascadingControlSourceList) }), - ).annotate({ - identifier: "CascadingControlConfiguration", - }) as any as S.Schema; +export const CascadingControlConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ SourceControls: S.optional(CascadingControlSourceList) }), +).annotate({ + identifier: "CascadingControlConfiguration", +}) as any as S.Schema; export type ControlSortDirection = | "ASC" | "DESC" @@ -2186,17 +2163,14 @@ export interface NumericalAggregationFunction { SimpleNumericalAggregation?: SimpleNumericalAggregationFunction; PercentileAggregation?: PercentileAggregation; } -export const NumericalAggregationFunction = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SimpleNumericalAggregation: S.optional( - SimpleNumericalAggregationFunction, - ), - PercentileAggregation: S.optional(PercentileAggregation), - }), - ).annotate({ - identifier: "NumericalAggregationFunction", - }) as any as S.Schema; +export const NumericalAggregationFunction = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SimpleNumericalAggregation: S.optional(SimpleNumericalAggregationFunction), + PercentileAggregation: S.optional(PercentileAggregation), + }), +).annotate({ + identifier: "NumericalAggregationFunction", +}) as any as S.Schema; export type CategoricalAggregationFunction = | "COUNT" | "DISTINCT_COUNT" @@ -2215,17 +2189,14 @@ export interface AttributeAggregationFunction { SimpleAttributeAggregation?: SimpleAttributeAggregationFunction; ValueForMultipleValues?: string; } -export const AttributeAggregationFunction = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SimpleAttributeAggregation: S.optional( - SimpleAttributeAggregationFunction, - ), - ValueForMultipleValues: S.optional(S.String), - }), - ).annotate({ - identifier: "AttributeAggregationFunction", - }) as any as S.Schema; +export const AttributeAggregationFunction = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SimpleAttributeAggregation: S.optional(SimpleAttributeAggregationFunction), + ValueForMultipleValues: S.optional(S.String), + }), +).annotate({ + identifier: "AttributeAggregationFunction", +}) as any as S.Schema; export interface AggregationFunction { NumericalAggregationFunction?: NumericalAggregationFunction; CategoricalAggregationFunction?: CategoricalAggregationFunction; @@ -2247,16 +2218,15 @@ export interface AggregationSortConfiguration { SortDirection: SortDirection; AggregationFunction?: AggregationFunction; } -export const AggregationSortConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Column: ColumnIdentifier, - SortDirection: SortDirection, - AggregationFunction: S.optional(AggregationFunction), - }), - ).annotate({ - identifier: "AggregationSortConfiguration", - }) as any as S.Schema; +export const AggregationSortConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Column: ColumnIdentifier, + SortDirection: SortDirection, + AggregationFunction: S.optional(AggregationFunction), + }), +).annotate({ + identifier: "AggregationSortConfiguration", +}) as any as S.Schema; export interface ControlSortConfiguration { SelectableValuesSort?: SelectableValuesSort; ControlColumnSort?: AggregationSortConfiguration; @@ -2304,16 +2274,15 @@ export interface DropDownControlDisplayOptions { TitleOptions?: LabelOptions; InfoIconLabelOptions?: SheetControlInfoIconLabelOptions; } -export const DropDownControlDisplayOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SelectAllOptions: S.optional(ListControlSelectAllOptions), - TitleOptions: S.optional(LabelOptions), - InfoIconLabelOptions: S.optional(SheetControlInfoIconLabelOptions), - }), - ).annotate({ - identifier: "DropDownControlDisplayOptions", - }) as any as S.Schema; +export const DropDownControlDisplayOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SelectAllOptions: S.optional(ListControlSelectAllOptions), + TitleOptions: S.optional(LabelOptions), + InfoIconLabelOptions: S.optional(SheetControlInfoIconLabelOptions), + }), +).annotate({ + identifier: "DropDownControlDisplayOptions", +}) as any as S.Schema; export type CommitMode = "AUTO" | "MANUAL" | (string & {}); export const CommitMode = /*@__PURE__*/ S.String; export interface ParameterDropDownControl { @@ -2347,27 +2316,25 @@ export const ParameterDropDownControl = /*@__PURE__*/ S.suspend(() => export interface TextControlPlaceholderOptions { Visibility?: Visibility; } -export const TextControlPlaceholderOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Visibility: S.optional(Visibility) }), - ).annotate({ - identifier: "TextControlPlaceholderOptions", - }) as any as S.Schema; +export const TextControlPlaceholderOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ Visibility: S.optional(Visibility) }), +).annotate({ + identifier: "TextControlPlaceholderOptions", +}) as any as S.Schema; export interface TextFieldControlDisplayOptions { TitleOptions?: LabelOptions; PlaceholderOptions?: TextControlPlaceholderOptions; InfoIconLabelOptions?: SheetControlInfoIconLabelOptions; } -export const TextFieldControlDisplayOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TitleOptions: S.optional(LabelOptions), - PlaceholderOptions: S.optional(TextControlPlaceholderOptions), - InfoIconLabelOptions: S.optional(SheetControlInfoIconLabelOptions), - }), - ).annotate({ - identifier: "TextFieldControlDisplayOptions", - }) as any as S.Schema; +export const TextFieldControlDisplayOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TitleOptions: S.optional(LabelOptions), + PlaceholderOptions: S.optional(TextControlPlaceholderOptions), + InfoIconLabelOptions: S.optional(SheetControlInfoIconLabelOptions), + }), +).annotate({ + identifier: "TextFieldControlDisplayOptions", +}) as any as S.Schema; export interface ParameterTextFieldControl { ParameterControlId: string; Title?: string; @@ -2391,16 +2358,15 @@ export interface TextAreaControlDisplayOptions { PlaceholderOptions?: TextControlPlaceholderOptions; InfoIconLabelOptions?: SheetControlInfoIconLabelOptions; } -export const TextAreaControlDisplayOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TitleOptions: S.optional(LabelOptions), - PlaceholderOptions: S.optional(TextControlPlaceholderOptions), - InfoIconLabelOptions: S.optional(SheetControlInfoIconLabelOptions), - }), - ).annotate({ - identifier: "TextAreaControlDisplayOptions", - }) as any as S.Schema; +export const TextAreaControlDisplayOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TitleOptions: S.optional(LabelOptions), + PlaceholderOptions: S.optional(TextControlPlaceholderOptions), + InfoIconLabelOptions: S.optional(SheetControlInfoIconLabelOptions), + }), +).annotate({ + identifier: "TextAreaControlDisplayOptions", +}) as any as S.Schema; export interface ParameterTextAreaControl { ParameterControlId: string; Title?: string; @@ -2425,15 +2391,14 @@ export interface SliderControlDisplayOptions { TitleOptions?: LabelOptions; InfoIconLabelOptions?: SheetControlInfoIconLabelOptions; } -export const SliderControlDisplayOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TitleOptions: S.optional(LabelOptions), - InfoIconLabelOptions: S.optional(SheetControlInfoIconLabelOptions), - }), - ).annotate({ - identifier: "SliderControlDisplayOptions", - }) as any as S.Schema; +export const SliderControlDisplayOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TitleOptions: S.optional(LabelOptions), + InfoIconLabelOptions: S.optional(SheetControlInfoIconLabelOptions), + }), +).annotate({ + identifier: "SliderControlDisplayOptions", +}) as any as S.Schema; export interface ParameterSliderControl { ParameterControlId: string; Title?: string; @@ -2494,20 +2459,19 @@ export interface FilterDateTimePickerControl { CommitMode?: CommitMode; ControlTitleFormatText?: ControlTitleFormatText; } -export const FilterDateTimePickerControl = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - FilterControlId: S.String, - Title: S.optional(S.String), - SourceFilterId: S.String, - DisplayOptions: S.optional(DateTimePickerControlDisplayOptions), - Type: S.optional(SheetControlDateTimePickerType), - CommitMode: S.optional(CommitMode), - ControlTitleFormatText: S.optional(ControlTitleFormatText), - }), - ).annotate({ - identifier: "FilterDateTimePickerControl", - }) as any as S.Schema; +export const FilterDateTimePickerControl = /*@__PURE__*/ S.suspend(() => + S.Struct({ + FilterControlId: S.String, + Title: S.optional(S.String), + SourceFilterId: S.String, + DisplayOptions: S.optional(DateTimePickerControlDisplayOptions), + Type: S.optional(SheetControlDateTimePickerType), + CommitMode: S.optional(CommitMode), + ControlTitleFormatText: S.optional(ControlTitleFormatText), + }), +).annotate({ + identifier: "FilterDateTimePickerControl", +}) as any as S.Schema; export interface FilterSelectableValues { Values?: string[]; } @@ -2641,16 +2605,16 @@ export interface RelativeDateTimeControlDisplayOptions { DateTimeFormat?: string; InfoIconLabelOptions?: SheetControlInfoIconLabelOptions; } -export const RelativeDateTimeControlDisplayOptions = - /*@__PURE__*/ S.suspend(() => +export const RelativeDateTimeControlDisplayOptions = /*@__PURE__*/ S.suspend( + () => S.Struct({ TitleOptions: S.optional(LabelOptions), DateTimeFormat: S.optional(S.String), InfoIconLabelOptions: S.optional(SheetControlInfoIconLabelOptions), }), - ).annotate({ - identifier: "RelativeDateTimeControlDisplayOptions", - }) as any as S.Schema; +).annotate({ + identifier: "RelativeDateTimeControlDisplayOptions", +}) as any as S.Schema; export interface FilterRelativeDateTimeControl { FilterControlId: string; Title?: string; @@ -2659,19 +2623,18 @@ export interface FilterRelativeDateTimeControl { CommitMode?: CommitMode; ControlTitleFormatText?: ControlTitleFormatText; } -export const FilterRelativeDateTimeControl = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - FilterControlId: S.String, - Title: S.optional(S.String), - SourceFilterId: S.String, - DisplayOptions: S.optional(RelativeDateTimeControlDisplayOptions), - CommitMode: S.optional(CommitMode), - ControlTitleFormatText: S.optional(ControlTitleFormatText), - }), - ).annotate({ - identifier: "FilterRelativeDateTimeControl", - }) as any as S.Schema; +export const FilterRelativeDateTimeControl = /*@__PURE__*/ S.suspend(() => + S.Struct({ + FilterControlId: S.String, + Title: S.optional(S.String), + SourceFilterId: S.String, + DisplayOptions: S.optional(RelativeDateTimeControlDisplayOptions), + CommitMode: S.optional(CommitMode), + ControlTitleFormatText: S.optional(ControlTitleFormatText), + }), +).annotate({ + identifier: "FilterRelativeDateTimeControl", +}) as any as S.Schema; export interface FilterCrossSheetControl { FilterControlId: string; SourceFilterId: string; @@ -2772,15 +2735,14 @@ export interface NumericSeparatorConfiguration { DecimalSeparator?: NumericSeparatorSymbol; ThousandsSeparator?: ThousandSeparatorOptions; } -export const NumericSeparatorConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DecimalSeparator: S.optional(NumericSeparatorSymbol), - ThousandsSeparator: S.optional(ThousandSeparatorOptions), - }), - ).annotate({ - identifier: "NumericSeparatorConfiguration", - }) as any as S.Schema; +export const NumericSeparatorConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DecimalSeparator: S.optional(NumericSeparatorSymbol), + ThousandsSeparator: S.optional(ThousandSeparatorOptions), + }), +).annotate({ + identifier: "NumericSeparatorConfiguration", +}) as any as S.Schema; export interface DecimalPlacesConfiguration { DecimalPlaces: number; } @@ -2802,12 +2764,11 @@ export const NegativeValueConfiguration = /*@__PURE__*/ S.suspend(() => export interface NullValueFormatConfiguration { NullString: string | redacted.Redacted; } -export const NullValueFormatConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ NullString: SensitiveString }), - ).annotate({ - identifier: "NullValueFormatConfiguration", - }) as any as S.Schema; +export const NullValueFormatConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ NullString: SensitiveString }), +).annotate({ + identifier: "NullValueFormatConfiguration", +}) as any as S.Schema; export interface NumberDisplayFormatConfiguration { Prefix?: string | redacted.Redacted; Suffix?: string | redacted.Redacted; @@ -2817,20 +2778,19 @@ export interface NumberDisplayFormatConfiguration { NegativeValueConfiguration?: NegativeValueConfiguration; NullValueFormatConfiguration?: NullValueFormatConfiguration; } -export const NumberDisplayFormatConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Prefix: S.optional(SensitiveString), - Suffix: S.optional(SensitiveString), - SeparatorConfiguration: S.optional(NumericSeparatorConfiguration), - DecimalPlacesConfiguration: S.optional(DecimalPlacesConfiguration), - NumberScale: S.optional(NumberScale), - NegativeValueConfiguration: S.optional(NegativeValueConfiguration), - NullValueFormatConfiguration: S.optional(NullValueFormatConfiguration), - }), - ).annotate({ - identifier: "NumberDisplayFormatConfiguration", - }) as any as S.Schema; +export const NumberDisplayFormatConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Prefix: S.optional(SensitiveString), + Suffix: S.optional(SensitiveString), + SeparatorConfiguration: S.optional(NumericSeparatorConfiguration), + DecimalPlacesConfiguration: S.optional(DecimalPlacesConfiguration), + NumberScale: S.optional(NumberScale), + NegativeValueConfiguration: S.optional(NegativeValueConfiguration), + NullValueFormatConfiguration: S.optional(NullValueFormatConfiguration), + }), +).annotate({ + identifier: "NumberDisplayFormatConfiguration", +}) as any as S.Schema; export interface CurrencyDisplayFormatConfiguration { Prefix?: string | redacted.Redacted; Suffix?: string | redacted.Redacted; @@ -2841,21 +2801,20 @@ export interface CurrencyDisplayFormatConfiguration { NegativeValueConfiguration?: NegativeValueConfiguration; NullValueFormatConfiguration?: NullValueFormatConfiguration; } -export const CurrencyDisplayFormatConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Prefix: S.optional(SensitiveString), - Suffix: S.optional(SensitiveString), - SeparatorConfiguration: S.optional(NumericSeparatorConfiguration), - Symbol: S.optional(S.String), - DecimalPlacesConfiguration: S.optional(DecimalPlacesConfiguration), - NumberScale: S.optional(NumberScale), - NegativeValueConfiguration: S.optional(NegativeValueConfiguration), - NullValueFormatConfiguration: S.optional(NullValueFormatConfiguration), - }), - ).annotate({ - identifier: "CurrencyDisplayFormatConfiguration", - }) as any as S.Schema; +export const CurrencyDisplayFormatConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Prefix: S.optional(SensitiveString), + Suffix: S.optional(SensitiveString), + SeparatorConfiguration: S.optional(NumericSeparatorConfiguration), + Symbol: S.optional(S.String), + DecimalPlacesConfiguration: S.optional(DecimalPlacesConfiguration), + NumberScale: S.optional(NumberScale), + NegativeValueConfiguration: S.optional(NegativeValueConfiguration), + NullValueFormatConfiguration: S.optional(NullValueFormatConfiguration), + }), +).annotate({ + identifier: "CurrencyDisplayFormatConfiguration", +}) as any as S.Schema; export interface PercentageDisplayFormatConfiguration { Prefix?: string | redacted.Redacted; Suffix?: string | redacted.Redacted; @@ -2864,8 +2823,8 @@ export interface PercentageDisplayFormatConfiguration { NegativeValueConfiguration?: NegativeValueConfiguration; NullValueFormatConfiguration?: NullValueFormatConfiguration; } -export const PercentageDisplayFormatConfiguration = - /*@__PURE__*/ S.suspend(() => +export const PercentageDisplayFormatConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ Prefix: S.optional(SensitiveString), Suffix: S.optional(SensitiveString), @@ -2874,9 +2833,9 @@ export const PercentageDisplayFormatConfiguration = NegativeValueConfiguration: S.optional(NegativeValueConfiguration), NullValueFormatConfiguration: S.optional(NullValueFormatConfiguration), }), - ).annotate({ - identifier: "PercentageDisplayFormatConfiguration", - }) as any as S.Schema; +).annotate({ + identifier: "PercentageDisplayFormatConfiguration", +}) as any as S.Schema; export interface NumericFormatConfiguration { NumberDisplayFormatConfiguration?: NumberDisplayFormatConfiguration; CurrencyDisplayFormatConfiguration?: CurrencyDisplayFormatConfiguration; @@ -2954,16 +2913,15 @@ export interface DateTimeFormatConfiguration { NullValueFormatConfiguration?: NullValueFormatConfiguration; NumericFormatConfiguration?: NumericFormatConfiguration; } -export const DateTimeFormatConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DateTimeFormat: S.optional(S.String), - NullValueFormatConfiguration: S.optional(NullValueFormatConfiguration), - NumericFormatConfiguration: S.optional(NumericFormatConfiguration), - }), - ).annotate({ - identifier: "DateTimeFormatConfiguration", - }) as any as S.Schema; +export const DateTimeFormatConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DateTimeFormat: S.optional(S.String), + NullValueFormatConfiguration: S.optional(NullValueFormatConfiguration), + NumericFormatConfiguration: S.optional(NumericFormatConfiguration), + }), +).annotate({ + identifier: "DateTimeFormatConfiguration", +}) as any as S.Schema; export interface DateDimensionField { FieldId: string; Column: ColumnIdentifier; @@ -3115,12 +3073,11 @@ export const TableUnaggregatedFieldList = export interface TableUnaggregatedFieldWells { Values?: UnaggregatedField[]; } -export const TableUnaggregatedFieldWells = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Values: S.optional(TableUnaggregatedFieldList) }), - ).annotate({ - identifier: "TableUnaggregatedFieldWells", - }) as any as S.Schema; +export const TableUnaggregatedFieldWells = /*@__PURE__*/ S.suspend(() => + S.Struct({ Values: S.optional(TableUnaggregatedFieldList) }), +).annotate({ + identifier: "TableUnaggregatedFieldWells", +}) as any as S.Schema; export interface TableFieldWells { TableAggregatedFieldWells?: TableAggregatedFieldWells; TableUnaggregatedFieldWells?: TableUnaggregatedFieldWells; @@ -3374,53 +3331,49 @@ export interface TableFieldCustomTextContent { Value?: string; FontConfiguration: FontConfiguration; } -export const TableFieldCustomTextContent = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Value: S.optional(S.String), - FontConfiguration: FontConfiguration, - }), - ).annotate({ - identifier: "TableFieldCustomTextContent", - }) as any as S.Schema; +export const TableFieldCustomTextContent = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Value: S.optional(S.String), + FontConfiguration: FontConfiguration, + }), +).annotate({ + identifier: "TableFieldCustomTextContent", +}) as any as S.Schema; export type TableFieldIconSetType = "LINK" | (string & {}); export const TableFieldIconSetType = /*@__PURE__*/ S.String; export interface TableFieldCustomIconContent { Icon?: TableFieldIconSetType; } -export const TableFieldCustomIconContent = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Icon: S.optional(TableFieldIconSetType) }), - ).annotate({ - identifier: "TableFieldCustomIconContent", - }) as any as S.Schema; +export const TableFieldCustomIconContent = /*@__PURE__*/ S.suspend(() => + S.Struct({ Icon: S.optional(TableFieldIconSetType) }), +).annotate({ + identifier: "TableFieldCustomIconContent", +}) as any as S.Schema; export interface TableFieldLinkContentConfiguration { CustomTextContent?: TableFieldCustomTextContent; CustomIconContent?: TableFieldCustomIconContent; } -export const TableFieldLinkContentConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CustomTextContent: S.optional(TableFieldCustomTextContent), - CustomIconContent: S.optional(TableFieldCustomIconContent), - }), - ).annotate({ - identifier: "TableFieldLinkContentConfiguration", - }) as any as S.Schema; +export const TableFieldLinkContentConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CustomTextContent: S.optional(TableFieldCustomTextContent), + CustomIconContent: S.optional(TableFieldCustomIconContent), + }), +).annotate({ + identifier: "TableFieldLinkContentConfiguration", +}) as any as S.Schema; export interface TableFieldLinkConfiguration { Target: URLTargetConfiguration; Content: TableFieldLinkContentConfiguration; } -export const TableFieldLinkConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Target: URLTargetConfiguration, - Content: TableFieldLinkContentConfiguration, - }), - ).annotate({ - identifier: "TableFieldLinkConfiguration", - }) as any as S.Schema; -export type TableCellImageScalingConfiguration = +export const TableFieldLinkConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Target: URLTargetConfiguration, + Content: TableFieldLinkContentConfiguration, + }), +).annotate({ + identifier: "TableFieldLinkConfiguration", +}) as any as S.Schema; +export type TableCellImageScalingConfiguration = | "FIT_TO_CELL_HEIGHT" | "FIT_TO_CELL_WIDTH" | "DO_NOT_SCALE" @@ -3429,25 +3382,23 @@ export const TableCellImageScalingConfiguration = /*@__PURE__*/ S.String; export interface TableCellImageSizingConfiguration { TableCellImageScalingConfiguration?: TableCellImageScalingConfiguration; } -export const TableCellImageSizingConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TableCellImageScalingConfiguration: S.optional( - TableCellImageScalingConfiguration, - ), - }), - ).annotate({ - identifier: "TableCellImageSizingConfiguration", - }) as any as S.Schema; +export const TableCellImageSizingConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TableCellImageScalingConfiguration: S.optional( + TableCellImageScalingConfiguration, + ), + }), +).annotate({ + identifier: "TableCellImageSizingConfiguration", +}) as any as S.Schema; export interface TableFieldImageConfiguration { SizingOptions?: TableCellImageSizingConfiguration; } -export const TableFieldImageConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ SizingOptions: S.optional(TableCellImageSizingConfiguration) }), - ).annotate({ - identifier: "TableFieldImageConfiguration", - }) as any as S.Schema; +export const TableFieldImageConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ SizingOptions: S.optional(TableCellImageSizingConfiguration) }), +).annotate({ + identifier: "TableFieldImageConfiguration", +}) as any as S.Schema; export interface TableFieldURLConfiguration { LinkConfiguration?: TableFieldLinkConfiguration; ImageConfiguration?: TableFieldImageConfiguration; @@ -3535,15 +3486,14 @@ export interface TablePaginatedReportOptions { VerticalOverflowVisibility?: Visibility; OverflowColumnHeaderVisibility?: Visibility; } -export const TablePaginatedReportOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - VerticalOverflowVisibility: S.optional(Visibility), - OverflowColumnHeaderVisibility: S.optional(Visibility), - }), - ).annotate({ - identifier: "TablePaginatedReportOptions", - }) as any as S.Schema; +export const TablePaginatedReportOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + VerticalOverflowVisibility: S.optional(Visibility), + OverflowColumnHeaderVisibility: S.optional(Visibility), + }), +).annotate({ + identifier: "TablePaginatedReportOptions", +}) as any as S.Schema; export interface DataBarsOptions { FieldId: string; PositiveColor?: string; @@ -3578,17 +3528,16 @@ export interface LineChartMarkerStyleSettings { MarkerSize?: string; MarkerColor?: string; } -export const LineChartMarkerStyleSettings = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - MarkerVisibility: S.optional(Visibility), - MarkerShape: S.optional(LineChartMarkerShape), - MarkerSize: S.optional(S.String), - MarkerColor: S.optional(S.String), - }), - ).annotate({ - identifier: "LineChartMarkerStyleSettings", - }) as any as S.Schema; +export const LineChartMarkerStyleSettings = /*@__PURE__*/ S.suspend(() => + S.Struct({ + MarkerVisibility: S.optional(Visibility), + MarkerShape: S.optional(LineChartMarkerShape), + MarkerSize: S.optional(S.String), + MarkerColor: S.optional(S.String), + }), +).annotate({ + identifier: "LineChartMarkerStyleSettings", +}) as any as S.Schema; export interface SparklinesOptions { FieldId: string; XAxisField: DimensionField; @@ -3733,26 +3682,25 @@ export interface VisualCustomizationFieldsConfiguration { Status?: DashboardCustomizationStatus; AdditionalFields?: ColumnIdentifier[]; } -export const VisualCustomizationFieldsConfiguration = - /*@__PURE__*/ S.suspend(() => +export const VisualCustomizationFieldsConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ Status: S.optional(DashboardCustomizationStatus), AdditionalFields: S.optional(VisualCustomizationAdditionalFieldsList), }), - ).annotate({ - identifier: "VisualCustomizationFieldsConfiguration", - }) as any as S.Schema; +).annotate({ + identifier: "VisualCustomizationFieldsConfiguration", +}) as any as S.Schema; export interface DashboardCustomizationVisualOptions { FieldsConfiguration?: VisualCustomizationFieldsConfiguration; } -export const DashboardCustomizationVisualOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - FieldsConfiguration: S.optional(VisualCustomizationFieldsConfiguration), - }), - ).annotate({ - identifier: "DashboardCustomizationVisualOptions", - }) as any as S.Schema; +export const DashboardCustomizationVisualOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + FieldsConfiguration: S.optional(VisualCustomizationFieldsConfiguration), + }), +).annotate({ + identifier: "DashboardCustomizationVisualOptions", +}) as any as S.Schema; export type DashboardBehavior = "ENABLED" | "DISABLED" | (string & {}); export const DashboardBehavior = /*@__PURE__*/ S.String; export interface VisualMenuOption { @@ -3817,12 +3765,11 @@ export interface ConditionalFormattingSolidColor { Expression: string | redacted.Redacted; Color?: string; } -export const ConditionalFormattingSolidColor = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Expression: SensitiveString, Color: S.optional(S.String) }), - ).annotate({ - identifier: "ConditionalFormattingSolidColor", - }) as any as S.Schema; +export const ConditionalFormattingSolidColor = /*@__PURE__*/ S.suspend(() => + S.Struct({ Expression: SensitiveString, Color: S.optional(S.String) }), +).annotate({ + identifier: "ConditionalFormattingSolidColor", +}) as any as S.Schema; export interface GradientStop { GradientOffset: number; DataValue?: number; @@ -3847,12 +3794,11 @@ export interface ConditionalFormattingGradientColor { Expression: string | redacted.Redacted; Color: GradientColor; } -export const ConditionalFormattingGradientColor = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Expression: SensitiveString, Color: GradientColor }), - ).annotate({ - identifier: "ConditionalFormattingGradientColor", - }) as any as S.Schema; +export const ConditionalFormattingGradientColor = /*@__PURE__*/ S.suspend(() => + S.Struct({ Expression: SensitiveString, Color: GradientColor }), +).annotate({ + identifier: "ConditionalFormattingGradientColor", +}) as any as S.Schema; export interface ConditionalFormattingColor { Solid?: ConditionalFormattingSolidColor; Gradient?: ConditionalFormattingGradientColor; @@ -3883,15 +3829,14 @@ export interface ConditionalFormattingIconSet { Expression: string | redacted.Redacted; IconSetType?: ConditionalFormattingIconSetType; } -export const ConditionalFormattingIconSet = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Expression: SensitiveString, - IconSetType: S.optional(ConditionalFormattingIconSetType), - }), - ).annotate({ - identifier: "ConditionalFormattingIconSet", - }) as any as S.Schema; +export const ConditionalFormattingIconSet = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Expression: SensitiveString, + IconSetType: S.optional(ConditionalFormattingIconSetType), + }), +).annotate({ + identifier: "ConditionalFormattingIconSet", +}) as any as S.Schema; export type Icon = | "CARET_UP" | "CARET_DOWN" @@ -3925,12 +3870,11 @@ export interface ConditionalFormattingCustomIconOptions { Icon?: Icon; UnicodeIcon?: string; } -export const ConditionalFormattingCustomIconOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Icon: S.optional(Icon), UnicodeIcon: S.optional(S.String) }), - ).annotate({ - identifier: "ConditionalFormattingCustomIconOptions", - }) as any as S.Schema; +export const ConditionalFormattingCustomIconOptions = /*@__PURE__*/ S.suspend( + () => S.Struct({ Icon: S.optional(Icon), UnicodeIcon: S.optional(S.String) }), +).annotate({ + identifier: "ConditionalFormattingCustomIconOptions", +}) as any as S.Schema; export type ConditionalFormattingIconDisplayOption = | "ICON_ONLY" | (string & {}); @@ -3952,8 +3896,8 @@ export interface ConditionalFormattingCustomIconCondition { Color?: string; DisplayConfiguration?: ConditionalFormattingIconDisplayConfiguration; } -export const ConditionalFormattingCustomIconCondition = - /*@__PURE__*/ S.suspend(() => +export const ConditionalFormattingCustomIconCondition = /*@__PURE__*/ S.suspend( + () => S.Struct({ Expression: SensitiveString, IconOptions: ConditionalFormattingCustomIconOptions, @@ -3962,9 +3906,9 @@ export const ConditionalFormattingCustomIconCondition = ConditionalFormattingIconDisplayConfiguration, ), }), - ).annotate({ - identifier: "ConditionalFormattingCustomIconCondition", - }) as any as S.Schema; +).annotate({ + identifier: "ConditionalFormattingCustomIconCondition", +}) as any as S.Schema; export interface ConditionalFormattingIcon { IconSet?: ConditionalFormattingIconSet; CustomCondition?: ConditionalFormattingCustomIconCondition; @@ -3995,45 +3939,43 @@ export interface TableCellConditionalFormatting { FieldId: string; TextFormat?: TextConditionalFormat; } -export const TableCellConditionalFormatting = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - FieldId: S.String, - TextFormat: S.optional(TextConditionalFormat), - }), - ).annotate({ - identifier: "TableCellConditionalFormatting", - }) as any as S.Schema; +export const TableCellConditionalFormatting = /*@__PURE__*/ S.suspend(() => + S.Struct({ + FieldId: S.String, + TextFormat: S.optional(TextConditionalFormat), + }), +).annotate({ + identifier: "TableCellConditionalFormatting", +}) as any as S.Schema; export interface TableRowConditionalFormatting { BackgroundColor?: ConditionalFormattingColor; TextColor?: ConditionalFormattingColor; } -export const TableRowConditionalFormatting = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - BackgroundColor: S.optional(ConditionalFormattingColor), - TextColor: S.optional(ConditionalFormattingColor), - }), - ).annotate({ - identifier: "TableRowConditionalFormatting", - }) as any as S.Schema; +export const TableRowConditionalFormatting = /*@__PURE__*/ S.suspend(() => + S.Struct({ + BackgroundColor: S.optional(ConditionalFormattingColor), + TextColor: S.optional(ConditionalFormattingColor), + }), +).annotate({ + identifier: "TableRowConditionalFormatting", +}) as any as S.Schema; export interface TableConditionalFormattingOption { Cell?: TableCellConditionalFormatting; Row?: TableRowConditionalFormatting; } -export const TableConditionalFormattingOption = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Cell: S.optional(TableCellConditionalFormatting), - Row: S.optional(TableRowConditionalFormatting), - }), - ).annotate({ - identifier: "TableConditionalFormattingOption", - }) as any as S.Schema; +export const TableConditionalFormattingOption = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Cell: S.optional(TableCellConditionalFormatting), + Row: S.optional(TableRowConditionalFormatting), + }), +).annotate({ + identifier: "TableConditionalFormattingOption", +}) as any as S.Schema; export type TableConditionalFormattingOptionList = TableConditionalFormattingOption[]; -export const TableConditionalFormattingOptionList = - /*@__PURE__*/ S.Array(TableConditionalFormattingOption); +export const TableConditionalFormattingOptionList = /*@__PURE__*/ S.Array( + TableConditionalFormattingOption, +); export interface TableConditionalFormatting { ConditionalFormattingOptions?: TableConditionalFormattingOption[]; } @@ -4080,15 +4022,14 @@ export interface SameSheetTargetVisualConfiguration { TargetVisuals?: string[]; TargetVisualOptions?: TargetVisualOptions; } -export const SameSheetTargetVisualConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TargetVisuals: S.optional(TargetVisualList), - TargetVisualOptions: S.optional(TargetVisualOptions), - }), - ).annotate({ - identifier: "SameSheetTargetVisualConfiguration", - }) as any as S.Schema; +export const SameSheetTargetVisualConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TargetVisuals: S.optional(TargetVisualList), + TargetVisualOptions: S.optional(TargetVisualOptions), + }), +).annotate({ + identifier: "SameSheetTargetVisualConfiguration", +}) as any as S.Schema; export interface FilterOperationTargetVisualsConfiguration { SameSheetTargetVisualConfiguration?: SameSheetTargetVisualConfiguration; } @@ -4106,35 +4047,32 @@ export interface CustomActionFilterOperation { SelectedFieldsConfiguration: FilterOperationSelectedFieldsConfiguration; TargetVisualsConfiguration: FilterOperationTargetVisualsConfiguration; } -export const CustomActionFilterOperation = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SelectedFieldsConfiguration: FilterOperationSelectedFieldsConfiguration, - TargetVisualsConfiguration: FilterOperationTargetVisualsConfiguration, - }), - ).annotate({ - identifier: "CustomActionFilterOperation", - }) as any as S.Schema; +export const CustomActionFilterOperation = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SelectedFieldsConfiguration: FilterOperationSelectedFieldsConfiguration, + TargetVisualsConfiguration: FilterOperationTargetVisualsConfiguration, + }), +).annotate({ + identifier: "CustomActionFilterOperation", +}) as any as S.Schema; export interface LocalNavigationConfiguration { TargetSheetId: string; } -export const LocalNavigationConfiguration = - /*@__PURE__*/ S.suspend(() => S.Struct({ TargetSheetId: S.String })).annotate( - { - identifier: "LocalNavigationConfiguration", - }, - ) as any as S.Schema; +export const LocalNavigationConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ TargetSheetId: S.String }), +).annotate({ + identifier: "LocalNavigationConfiguration", +}) as any as S.Schema; export interface CustomActionNavigationOperation { LocalNavigationConfiguration?: LocalNavigationConfiguration; } -export const CustomActionNavigationOperation = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - LocalNavigationConfiguration: S.optional(LocalNavigationConfiguration), - }), - ).annotate({ - identifier: "CustomActionNavigationOperation", - }) as any as S.Schema; +export const CustomActionNavigationOperation = /*@__PURE__*/ S.suspend(() => + S.Struct({ + LocalNavigationConfiguration: S.optional(LocalNavigationConfiguration), + }), +).annotate({ + identifier: "CustomActionNavigationOperation", +}) as any as S.Schema; export interface CustomActionURLOperation { URLTemplate: string; URLTarget: URLTargetConfiguration; @@ -4144,7 +4082,7 @@ export const CustomActionURLOperation = /*@__PURE__*/ S.suspend(() => ).annotate({ identifier: "CustomActionURLOperation", }) as any as S.Schema; -export type StringDefaultValueList = string | redacted.Redacted[]; +export type StringDefaultValueList = (string | redacted.Redacted)[]; export const StringDefaultValueList = /*@__PURE__*/ S.Array(SensitiveString); export type IntegerDefaultValueList = number[]; export const IntegerDefaultValueList = /*@__PURE__*/ S.Array(S.Number); @@ -4155,7 +4093,7 @@ export const DateTimeDefaultValueList = /*@__PURE__*/ S.Array( S.Date.pipe(T.TimestampFormat("epoch-seconds")), ); export interface CustomParameterValues { - StringValues?: string | redacted.Redacted[]; + StringValues?: (string | redacted.Redacted)[]; IntegerValues?: number[]; DecimalValues?: number[]; DateTimeValues?: Date[]; @@ -4191,8 +4129,8 @@ export interface DestinationParameterValueConfiguration { SourceField?: string; SourceColumn?: ColumnIdentifier; } -export const DestinationParameterValueConfiguration = - /*@__PURE__*/ S.suspend(() => +export const DestinationParameterValueConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ CustomValuesConfiguration: S.optional(CustomValuesConfiguration), SelectAllValueOptions: S.optional(SelectAllValueOptions), @@ -4200,57 +4138,56 @@ export const DestinationParameterValueConfiguration = SourceField: S.optional(S.String), SourceColumn: S.optional(ColumnIdentifier), }), - ).annotate({ - identifier: "DestinationParameterValueConfiguration", - }) as any as S.Schema; +).annotate({ + identifier: "DestinationParameterValueConfiguration", +}) as any as S.Schema; export interface SetParameterValueConfiguration { DestinationParameterName: string; Value: DestinationParameterValueConfiguration; } -export const SetParameterValueConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DestinationParameterName: S.String, - Value: DestinationParameterValueConfiguration, - }), - ).annotate({ - identifier: "SetParameterValueConfiguration", - }) as any as S.Schema; +export const SetParameterValueConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DestinationParameterName: S.String, + Value: DestinationParameterValueConfiguration, + }), +).annotate({ + identifier: "SetParameterValueConfiguration", +}) as any as S.Schema; export type SetParameterValueConfigurationList = SetParameterValueConfiguration[]; -export const SetParameterValueConfigurationList = - /*@__PURE__*/ S.Array(SetParameterValueConfiguration); +export const SetParameterValueConfigurationList = /*@__PURE__*/ S.Array( + SetParameterValueConfiguration, +); export interface CustomActionSetParametersOperation { ParameterValueConfigurations: SetParameterValueConfiguration[]; } -export const CustomActionSetParametersOperation = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ParameterValueConfigurations: SetParameterValueConfigurationList, - }), - ).annotate({ - identifier: "CustomActionSetParametersOperation", - }) as any as S.Schema; +export const CustomActionSetParametersOperation = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ParameterValueConfigurations: SetParameterValueConfigurationList, + }), +).annotate({ + identifier: "CustomActionSetParametersOperation", +}) as any as S.Schema; export interface VisualCustomActionOperation { FilterOperation?: CustomActionFilterOperation; NavigationOperation?: CustomActionNavigationOperation; URLOperation?: CustomActionURLOperation; SetParametersOperation?: CustomActionSetParametersOperation; } -export const VisualCustomActionOperation = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - FilterOperation: S.optional(CustomActionFilterOperation), - NavigationOperation: S.optional(CustomActionNavigationOperation), - URLOperation: S.optional(CustomActionURLOperation), - SetParametersOperation: S.optional(CustomActionSetParametersOperation), - }), - ).annotate({ - identifier: "VisualCustomActionOperation", - }) as any as S.Schema; +export const VisualCustomActionOperation = /*@__PURE__*/ S.suspend(() => + S.Struct({ + FilterOperation: S.optional(CustomActionFilterOperation), + NavigationOperation: S.optional(CustomActionNavigationOperation), + URLOperation: S.optional(CustomActionURLOperation), + SetParametersOperation: S.optional(CustomActionSetParametersOperation), + }), +).annotate({ + identifier: "VisualCustomActionOperation", +}) as any as S.Schema; export type VisualCustomActionOperationList = VisualCustomActionOperation[]; -export const VisualCustomActionOperationList = - /*@__PURE__*/ S.Array(VisualCustomActionOperation); +export const VisualCustomActionOperationList = /*@__PURE__*/ S.Array( + VisualCustomActionOperation, +); export interface VisualCustomAction { CustomActionId: string; Name: string; @@ -4300,16 +4237,15 @@ export interface PivotTableAggregatedFieldWells { Columns?: DimensionField[]; Values?: MeasureField[]; } -export const PivotTableAggregatedFieldWells = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Rows: S.optional(PivotTableDimensionList), - Columns: S.optional(PivotTableDimensionList), - Values: S.optional(PivotMeasureFieldList), - }), - ).annotate({ - identifier: "PivotTableAggregatedFieldWells", - }) as any as S.Schema; +export const PivotTableAggregatedFieldWells = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Rows: S.optional(PivotTableDimensionList), + Columns: S.optional(PivotTableDimensionList), + Values: S.optional(PivotMeasureFieldList), + }), +).annotate({ + identifier: "PivotTableAggregatedFieldWells", +}) as any as S.Schema; export interface PivotTableFieldWells { PivotTableAggregatedFieldWells?: PivotTableAggregatedFieldWells; } @@ -4384,12 +4320,11 @@ export const PivotFieldSortOptionsList = /*@__PURE__*/ S.Array( export interface PivotTableSortConfiguration { FieldSortOptions?: PivotFieldSortOptions[]; } -export const PivotTableSortConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ FieldSortOptions: S.optional(PivotFieldSortOptionsList) }), - ).annotate({ - identifier: "PivotTableSortConfiguration", - }) as any as S.Schema; +export const PivotTableSortConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ FieldSortOptions: S.optional(PivotFieldSortOptionsList) }), +).annotate({ + identifier: "PivotTableSortConfiguration", +}) as any as S.Schema; export type PivotTableMetricPlacement = "ROW" | "COLUMN" | (string & {}); export const PivotTableMetricPlacement = /*@__PURE__*/ S.String; export type PivotTableRowsLayout = "TABULAR" | "HIERARCHY" | (string & {}); @@ -4445,16 +4380,16 @@ export const PivotTableSubtotalLevel = /*@__PURE__*/ S.String; export interface PivotTableFieldSubtotalOptions { FieldId?: string; } -export const PivotTableFieldSubtotalOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ FieldId: S.optional(S.String) }), - ).annotate({ - identifier: "PivotTableFieldSubtotalOptions", - }) as any as S.Schema; +export const PivotTableFieldSubtotalOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ FieldId: S.optional(S.String) }), +).annotate({ + identifier: "PivotTableFieldSubtotalOptions", +}) as any as S.Schema; export type PivotTableFieldSubtotalOptionsList = PivotTableFieldSubtotalOptions[]; -export const PivotTableFieldSubtotalOptionsList = - /*@__PURE__*/ S.Array(PivotTableFieldSubtotalOptions); +export const PivotTableFieldSubtotalOptionsList = /*@__PURE__*/ S.Array( + PivotTableFieldSubtotalOptions, +); export type StyledCellType = | "TOTAL" | "METRIC_HEADER" @@ -4570,15 +4505,14 @@ export interface PivotTableFieldCollapseStateTarget { FieldId?: string; FieldDataPathValues?: DataPathValue[]; } -export const PivotTableFieldCollapseStateTarget = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - FieldId: S.optional(S.String), - FieldDataPathValues: S.optional(DataPathValueList), - }), - ).annotate({ - identifier: "PivotTableFieldCollapseStateTarget", - }) as any as S.Schema; +export const PivotTableFieldCollapseStateTarget = /*@__PURE__*/ S.suspend(() => + S.Struct({ + FieldId: S.optional(S.String), + FieldDataPathValues: S.optional(DataPathValueList), + }), +).annotate({ + identifier: "PivotTableFieldCollapseStateTarget", +}) as any as S.Schema; export type PivotTableFieldCollapseState = | "COLLAPSED" | "EXPANDED" @@ -4588,19 +4522,19 @@ export interface PivotTableFieldCollapseStateOption { Target: PivotTableFieldCollapseStateTarget; State?: PivotTableFieldCollapseState; } -export const PivotTableFieldCollapseStateOption = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Target: PivotTableFieldCollapseStateTarget, - State: S.optional(PivotTableFieldCollapseState), - }), - ).annotate({ - identifier: "PivotTableFieldCollapseStateOption", - }) as any as S.Schema; +export const PivotTableFieldCollapseStateOption = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Target: PivotTableFieldCollapseStateTarget, + State: S.optional(PivotTableFieldCollapseState), + }), +).annotate({ + identifier: "PivotTableFieldCollapseStateOption", +}) as any as S.Schema; export type PivotTableFieldCollapseStateOptionList = PivotTableFieldCollapseStateOption[]; -export const PivotTableFieldCollapseStateOptionList = - /*@__PURE__*/ S.Array(PivotTableFieldCollapseStateOption); +export const PivotTableFieldCollapseStateOptionList = /*@__PURE__*/ S.Array( + PivotTableFieldCollapseStateOption, +); export interface PivotTableFieldOptions { SelectedFieldOptions?: PivotTableFieldOption[]; DataPathOptions?: PivotTableDataPathOption[]; @@ -4619,15 +4553,14 @@ export interface PivotTablePaginatedReportOptions { VerticalOverflowVisibility?: Visibility; OverflowColumnHeaderVisibility?: Visibility; } -export const PivotTablePaginatedReportOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - VerticalOverflowVisibility: S.optional(Visibility), - OverflowColumnHeaderVisibility: S.optional(Visibility), - }), - ).annotate({ - identifier: "PivotTablePaginatedReportOptions", - }) as any as S.Schema; +export const PivotTablePaginatedReportOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + VerticalOverflowVisibility: S.optional(Visibility), + OverflowColumnHeaderVisibility: S.optional(Visibility), + }), +).annotate({ + identifier: "PivotTablePaginatedReportOptions", +}) as any as S.Schema; export interface PivotTableConfiguration { FieldWells?: PivotTableFieldWells; SortConfiguration?: PivotTableSortConfiguration; @@ -4665,59 +4598,58 @@ export const PivotTableConditionalFormattingScopeRole = /*@__PURE__*/ S.String; export interface PivotTableConditionalFormattingScope { Role?: PivotTableConditionalFormattingScopeRole; } -export const PivotTableConditionalFormattingScope = - /*@__PURE__*/ S.suspend(() => +export const PivotTableConditionalFormattingScope = /*@__PURE__*/ S.suspend( + () => S.Struct({ Role: S.optional(PivotTableConditionalFormattingScopeRole) }), - ).annotate({ - identifier: "PivotTableConditionalFormattingScope", - }) as any as S.Schema; +).annotate({ + identifier: "PivotTableConditionalFormattingScope", +}) as any as S.Schema; export type PivotTableConditionalFormattingScopeList = PivotTableConditionalFormattingScope[]; -export const PivotTableConditionalFormattingScopeList = - /*@__PURE__*/ S.Array(PivotTableConditionalFormattingScope); +export const PivotTableConditionalFormattingScopeList = /*@__PURE__*/ S.Array( + PivotTableConditionalFormattingScope, +); export interface PivotTableCellConditionalFormatting { FieldId: string; TextFormat?: TextConditionalFormat; Scope?: PivotTableConditionalFormattingScope; Scopes?: PivotTableConditionalFormattingScope[]; } -export const PivotTableCellConditionalFormatting = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - FieldId: S.String, - TextFormat: S.optional(TextConditionalFormat), - Scope: S.optional(PivotTableConditionalFormattingScope), - Scopes: S.optional(PivotTableConditionalFormattingScopeList), - }), - ).annotate({ - identifier: "PivotTableCellConditionalFormatting", - }) as any as S.Schema; +export const PivotTableCellConditionalFormatting = /*@__PURE__*/ S.suspend(() => + S.Struct({ + FieldId: S.String, + TextFormat: S.optional(TextConditionalFormat), + Scope: S.optional(PivotTableConditionalFormattingScope), + Scopes: S.optional(PivotTableConditionalFormattingScopeList), + }), +).annotate({ + identifier: "PivotTableCellConditionalFormatting", +}) as any as S.Schema; export interface PivotTableConditionalFormattingOption { Cell?: PivotTableCellConditionalFormatting; } -export const PivotTableConditionalFormattingOption = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Cell: S.optional(PivotTableCellConditionalFormatting) }), - ).annotate({ - identifier: "PivotTableConditionalFormattingOption", - }) as any as S.Schema; +export const PivotTableConditionalFormattingOption = /*@__PURE__*/ S.suspend( + () => S.Struct({ Cell: S.optional(PivotTableCellConditionalFormatting) }), +).annotate({ + identifier: "PivotTableConditionalFormattingOption", +}) as any as S.Schema; export type PivotTableConditionalFormattingOptionList = PivotTableConditionalFormattingOption[]; -export const PivotTableConditionalFormattingOptionList = - /*@__PURE__*/ S.Array(PivotTableConditionalFormattingOption); +export const PivotTableConditionalFormattingOptionList = /*@__PURE__*/ S.Array( + PivotTableConditionalFormattingOption, +); export interface PivotTableConditionalFormatting { ConditionalFormattingOptions?: PivotTableConditionalFormattingOption[]; } -export const PivotTableConditionalFormatting = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ConditionalFormattingOptions: S.optional( - PivotTableConditionalFormattingOptionList, - ), - }), - ).annotate({ - identifier: "PivotTableConditionalFormatting", - }) as any as S.Schema; +export const PivotTableConditionalFormatting = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ConditionalFormattingOptions: S.optional( + PivotTableConditionalFormattingOptionList, + ), + }), +).annotate({ + identifier: "PivotTableConditionalFormatting", +}) as any as S.Schema; export interface PivotTableVisual { VisualId: string; Title?: VisualTitleLabelOptions; @@ -4749,17 +4681,16 @@ export interface BarChartAggregatedFieldWells { Colors?: DimensionField[]; SmallMultiples?: DimensionField[]; } -export const BarChartAggregatedFieldWells = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Category: S.optional(DimensionFieldList), - Values: S.optional(MeasureFieldList), - Colors: S.optional(DimensionFieldList), - SmallMultiples: S.optional(SmallMultiplesDimensionFieldList), - }), - ).annotate({ - identifier: "BarChartAggregatedFieldWells", - }) as any as S.Schema; +export const BarChartAggregatedFieldWells = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Category: S.optional(DimensionFieldList), + Values: S.optional(MeasureFieldList), + Colors: S.optional(DimensionFieldList), + SmallMultiples: S.optional(SmallMultiplesDimensionFieldList), + }), +).annotate({ + identifier: "BarChartAggregatedFieldWells", +}) as any as S.Schema; export interface BarChartFieldWells { BarChartAggregatedFieldWells?: BarChartAggregatedFieldWells; } @@ -4888,15 +4819,14 @@ export interface SmallMultiplesAxisProperties { Scale?: SmallMultiplesAxisScale; Placement?: SmallMultiplesAxisPlacement; } -export const SmallMultiplesAxisProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Scale: S.optional(SmallMultiplesAxisScale), - Placement: S.optional(SmallMultiplesAxisPlacement), - }), - ).annotate({ - identifier: "SmallMultiplesAxisProperties", - }) as any as S.Schema; +export const SmallMultiplesAxisProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Scale: S.optional(SmallMultiplesAxisScale), + Placement: S.optional(SmallMultiplesAxisPlacement), + }), +).annotate({ + identifier: "SmallMultiplesAxisProperties", +}) as any as S.Schema; export interface SmallMultiplesOptions { MaxVisibleRows?: number; MaxVisibleColumns?: number; @@ -5160,15 +5090,14 @@ export interface BarChartDefaultSeriesSettings { DecalSettings?: DecalSettings; BorderSettings?: BorderSettings; } -export const BarChartDefaultSeriesSettings = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DecalSettings: S.optional(DecalSettings), - BorderSettings: S.optional(BorderSettings), - }), - ).annotate({ - identifier: "BarChartDefaultSeriesSettings", - }) as any as S.Schema; +export const BarChartDefaultSeriesSettings = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DecalSettings: S.optional(DecalSettings), + BorderSettings: S.optional(BorderSettings), + }), +).annotate({ + identifier: "BarChartDefaultSeriesSettings", +}) as any as S.Schema; export interface BarChartSeriesSettings { DecalSettings?: DecalSettings; BorderSettings?: BorderSettings; @@ -5358,25 +5287,26 @@ export const DataLabelOptions = /*@__PURE__*/ S.suspend(() => export interface ReferenceLineStaticDataConfiguration { Value: number; } -export const ReferenceLineStaticDataConfiguration = - /*@__PURE__*/ S.suspend(() => S.Struct({ Value: S.Number })).annotate({ - identifier: "ReferenceLineStaticDataConfiguration", - }) as any as S.Schema; +export const ReferenceLineStaticDataConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ Value: S.Number }), +).annotate({ + identifier: "ReferenceLineStaticDataConfiguration", +}) as any as S.Schema; export interface ReferenceLineDynamicDataConfiguration { Column: ColumnIdentifier; MeasureAggregationFunction?: AggregationFunction; Calculation: NumericalAggregationFunction; } -export const ReferenceLineDynamicDataConfiguration = - /*@__PURE__*/ S.suspend(() => +export const ReferenceLineDynamicDataConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ Column: ColumnIdentifier, MeasureAggregationFunction: S.optional(AggregationFunction), Calculation: NumericalAggregationFunction, }), - ).annotate({ - identifier: "ReferenceLineDynamicDataConfiguration", - }) as any as S.Schema; +).annotate({ + identifier: "ReferenceLineDynamicDataConfiguration", +}) as any as S.Schema; export type AxisBinding = "PRIMARY_YAXIS" | "SECONDARY_YAXIS" | (string & {}); export const AxisBinding = /*@__PURE__*/ S.String; export type ReferenceLineSeriesType = "BAR" | "LINE" | (string & {}); @@ -5387,17 +5317,16 @@ export interface ReferenceLineDataConfiguration { AxisBinding?: AxisBinding; SeriesType?: ReferenceLineSeriesType; } -export const ReferenceLineDataConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - StaticConfiguration: S.optional(ReferenceLineStaticDataConfiguration), - DynamicConfiguration: S.optional(ReferenceLineDynamicDataConfiguration), - AxisBinding: S.optional(AxisBinding), - SeriesType: S.optional(ReferenceLineSeriesType), - }), - ).annotate({ - identifier: "ReferenceLineDataConfiguration", - }) as any as S.Schema; +export const ReferenceLineDataConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + StaticConfiguration: S.optional(ReferenceLineStaticDataConfiguration), + DynamicConfiguration: S.optional(ReferenceLineDynamicDataConfiguration), + AxisBinding: S.optional(AxisBinding), + SeriesType: S.optional(ReferenceLineSeriesType), + }), +).annotate({ + identifier: "ReferenceLineDataConfiguration", +}) as any as S.Schema; export type ReferenceLinePatternType = | "SOLID" | "DASHED" @@ -5408,15 +5337,14 @@ export interface ReferenceLineStyleConfiguration { Pattern?: ReferenceLinePatternType; Color?: string; } -export const ReferenceLineStyleConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Pattern: S.optional(ReferenceLinePatternType), - Color: S.optional(S.String), - }), - ).annotate({ - identifier: "ReferenceLineStyleConfiguration", - }) as any as S.Schema; +export const ReferenceLineStyleConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Pattern: S.optional(ReferenceLinePatternType), + Color: S.optional(S.String), + }), +).annotate({ + identifier: "ReferenceLineStyleConfiguration", +}) as any as S.Schema; export type ReferenceLineValueLabelRelativePosition = | "BEFORE_CUSTOM_LABEL" | "AFTER_CUSTOM_LABEL" @@ -5426,22 +5354,23 @@ export interface ReferenceLineValueLabelConfiguration { RelativePosition?: ReferenceLineValueLabelRelativePosition; FormatConfiguration?: NumericFormatConfiguration; } -export const ReferenceLineValueLabelConfiguration = - /*@__PURE__*/ S.suspend(() => +export const ReferenceLineValueLabelConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ RelativePosition: S.optional(ReferenceLineValueLabelRelativePosition), FormatConfiguration: S.optional(NumericFormatConfiguration), }), - ).annotate({ - identifier: "ReferenceLineValueLabelConfiguration", - }) as any as S.Schema; +).annotate({ + identifier: "ReferenceLineValueLabelConfiguration", +}) as any as S.Schema; export interface ReferenceLineCustomLabelConfiguration { CustomLabel: string; } -export const ReferenceLineCustomLabelConfiguration = - /*@__PURE__*/ S.suspend(() => S.Struct({ CustomLabel: S.String })).annotate({ - identifier: "ReferenceLineCustomLabelConfiguration", - }) as any as S.Schema; +export const ReferenceLineCustomLabelConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ CustomLabel: S.String }), +).annotate({ + identifier: "ReferenceLineCustomLabelConfiguration", +}) as any as S.Schema; export type ReferenceLineLabelHorizontalPosition = | "LEFT" | "CENTER" @@ -5461,21 +5390,18 @@ export interface ReferenceLineLabelConfiguration { HorizontalPosition?: ReferenceLineLabelHorizontalPosition; VerticalPosition?: ReferenceLineLabelVerticalPosition; } -export const ReferenceLineLabelConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ValueLabelConfiguration: S.optional(ReferenceLineValueLabelConfiguration), - CustomLabelConfiguration: S.optional( - ReferenceLineCustomLabelConfiguration, - ), - FontConfiguration: S.optional(FontConfiguration), - FontColor: S.optional(S.String), - HorizontalPosition: S.optional(ReferenceLineLabelHorizontalPosition), - VerticalPosition: S.optional(ReferenceLineLabelVerticalPosition), - }), - ).annotate({ - identifier: "ReferenceLineLabelConfiguration", - }) as any as S.Schema; +export const ReferenceLineLabelConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ValueLabelConfiguration: S.optional(ReferenceLineValueLabelConfiguration), + CustomLabelConfiguration: S.optional(ReferenceLineCustomLabelConfiguration), + FontConfiguration: S.optional(FontConfiguration), + FontColor: S.optional(S.String), + HorizontalPosition: S.optional(ReferenceLineLabelHorizontalPosition), + VerticalPosition: S.optional(ReferenceLineLabelVerticalPosition), + }), +).annotate({ + identifier: "ReferenceLineLabelConfiguration", +}) as any as S.Schema; export interface ReferenceLine { Status?: WidgetStatus; DataConfiguration: ReferenceLineDataConfiguration; @@ -5498,18 +5424,18 @@ export interface ContributionAnalysisDefault { MeasureFieldId: string; ContributorDimensions: ColumnIdentifier[]; } -export const ContributionAnalysisDefault = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - MeasureFieldId: S.String, - ContributorDimensions: ContributorDimensionList, - }), - ).annotate({ - identifier: "ContributionAnalysisDefault", - }) as any as S.Schema; +export const ContributionAnalysisDefault = /*@__PURE__*/ S.suspend(() => + S.Struct({ + MeasureFieldId: S.String, + ContributorDimensions: ContributorDimensionList, + }), +).annotate({ + identifier: "ContributionAnalysisDefault", +}) as any as S.Schema; export type ContributionAnalysisDefaultList = ContributionAnalysisDefault[]; -export const ContributionAnalysisDefaultList = - /*@__PURE__*/ S.Array(ContributionAnalysisDefault); +export const ContributionAnalysisDefaultList = /*@__PURE__*/ S.Array( + ContributionAnalysisDefault, +); export interface BarChartConfiguration { FieldWells?: BarChartFieldWells; SortConfiguration?: BarChartSortConfiguration; @@ -5563,12 +5489,11 @@ export interface NumericEqualityDrillDownFilter { Column: ColumnIdentifier; Value: number; } -export const NumericEqualityDrillDownFilter = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Column: ColumnIdentifier, Value: S.Number }), - ).annotate({ - identifier: "NumericEqualityDrillDownFilter", - }) as any as S.Schema; +export const NumericEqualityDrillDownFilter = /*@__PURE__*/ S.suspend(() => + S.Struct({ Column: ColumnIdentifier, Value: S.Number }), +).annotate({ + identifier: "NumericEqualityDrillDownFilter", +}) as any as S.Schema; export type CategoryValueList = string[]; export const CategoryValueList = /*@__PURE__*/ S.Array(S.String); export interface CategoryDrillDownFilter { @@ -5745,19 +5670,18 @@ export interface ComparisonFormatConfiguration { NumberDisplayFormatConfiguration?: NumberDisplayFormatConfiguration; PercentageDisplayFormatConfiguration?: PercentageDisplayFormatConfiguration; } -export const ComparisonFormatConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - NumberDisplayFormatConfiguration: S.optional( - NumberDisplayFormatConfiguration, - ), - PercentageDisplayFormatConfiguration: S.optional( - PercentageDisplayFormatConfiguration, - ), - }), - ).annotate({ - identifier: "ComparisonFormatConfiguration", - }) as any as S.Schema; +export const ComparisonFormatConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + NumberDisplayFormatConfiguration: S.optional( + NumberDisplayFormatConfiguration, + ), + PercentageDisplayFormatConfiguration: S.optional( + PercentageDisplayFormatConfiguration, + ), + }), +).annotate({ + identifier: "ComparisonFormatConfiguration", +}) as any as S.Schema; export interface ComparisonConfiguration { ComparisonMethod?: ComparisonMethod; ComparisonFormat?: ComparisonFormatConfiguration; @@ -5859,71 +5783,69 @@ export interface KPIPrimaryValueConditionalFormatting { TextColor?: ConditionalFormattingColor; Icon?: ConditionalFormattingIcon; } -export const KPIPrimaryValueConditionalFormatting = - /*@__PURE__*/ S.suspend(() => +export const KPIPrimaryValueConditionalFormatting = /*@__PURE__*/ S.suspend( + () => S.Struct({ TextColor: S.optional(ConditionalFormattingColor), Icon: S.optional(ConditionalFormattingIcon), }), - ).annotate({ - identifier: "KPIPrimaryValueConditionalFormatting", - }) as any as S.Schema; +).annotate({ + identifier: "KPIPrimaryValueConditionalFormatting", +}) as any as S.Schema; export interface KPIProgressBarConditionalFormatting { ForegroundColor?: ConditionalFormattingColor; } -export const KPIProgressBarConditionalFormatting = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ForegroundColor: S.optional(ConditionalFormattingColor) }), - ).annotate({ - identifier: "KPIProgressBarConditionalFormatting", - }) as any as S.Schema; +export const KPIProgressBarConditionalFormatting = /*@__PURE__*/ S.suspend(() => + S.Struct({ ForegroundColor: S.optional(ConditionalFormattingColor) }), +).annotate({ + identifier: "KPIProgressBarConditionalFormatting", +}) as any as S.Schema; export interface KPIActualValueConditionalFormatting { TextColor?: ConditionalFormattingColor; Icon?: ConditionalFormattingIcon; } -export const KPIActualValueConditionalFormatting = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TextColor: S.optional(ConditionalFormattingColor), - Icon: S.optional(ConditionalFormattingIcon), - }), - ).annotate({ - identifier: "KPIActualValueConditionalFormatting", - }) as any as S.Schema; +export const KPIActualValueConditionalFormatting = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TextColor: S.optional(ConditionalFormattingColor), + Icon: S.optional(ConditionalFormattingIcon), + }), +).annotate({ + identifier: "KPIActualValueConditionalFormatting", +}) as any as S.Schema; export interface KPIComparisonValueConditionalFormatting { TextColor?: ConditionalFormattingColor; Icon?: ConditionalFormattingIcon; } -export const KPIComparisonValueConditionalFormatting = - /*@__PURE__*/ S.suspend(() => +export const KPIComparisonValueConditionalFormatting = /*@__PURE__*/ S.suspend( + () => S.Struct({ TextColor: S.optional(ConditionalFormattingColor), Icon: S.optional(ConditionalFormattingIcon), }), - ).annotate({ - identifier: "KPIComparisonValueConditionalFormatting", - }) as any as S.Schema; +).annotate({ + identifier: "KPIComparisonValueConditionalFormatting", +}) as any as S.Schema; export interface KPIConditionalFormattingOption { PrimaryValue?: KPIPrimaryValueConditionalFormatting; ProgressBar?: KPIProgressBarConditionalFormatting; ActualValue?: KPIActualValueConditionalFormatting; ComparisonValue?: KPIComparisonValueConditionalFormatting; } -export const KPIConditionalFormattingOption = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - PrimaryValue: S.optional(KPIPrimaryValueConditionalFormatting), - ProgressBar: S.optional(KPIProgressBarConditionalFormatting), - ActualValue: S.optional(KPIActualValueConditionalFormatting), - ComparisonValue: S.optional(KPIComparisonValueConditionalFormatting), - }), - ).annotate({ - identifier: "KPIConditionalFormattingOption", - }) as any as S.Schema; +export const KPIConditionalFormattingOption = /*@__PURE__*/ S.suspend(() => + S.Struct({ + PrimaryValue: S.optional(KPIPrimaryValueConditionalFormatting), + ProgressBar: S.optional(KPIProgressBarConditionalFormatting), + ActualValue: S.optional(KPIActualValueConditionalFormatting), + ComparisonValue: S.optional(KPIComparisonValueConditionalFormatting), + }), +).annotate({ + identifier: "KPIConditionalFormattingOption", +}) as any as S.Schema; export type KPIConditionalFormattingOptionList = KPIConditionalFormattingOption[]; -export const KPIConditionalFormattingOptionList = - /*@__PURE__*/ S.Array(KPIConditionalFormattingOption); +export const KPIConditionalFormattingOptionList = /*@__PURE__*/ S.Array( + KPIConditionalFormattingOption, +); export interface KPIConditionalFormatting { ConditionalFormattingOptions?: KPIConditionalFormattingOption[]; } @@ -5963,16 +5885,15 @@ export interface PieChartAggregatedFieldWells { Values?: MeasureField[]; SmallMultiples?: DimensionField[]; } -export const PieChartAggregatedFieldWells = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Category: S.optional(DimensionFieldList), - Values: S.optional(MeasureFieldList), - SmallMultiples: S.optional(SmallMultiplesDimensionFieldList), - }), - ).annotate({ - identifier: "PieChartAggregatedFieldWells", - }) as any as S.Schema; +export const PieChartAggregatedFieldWells = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Category: S.optional(DimensionFieldList), + Values: S.optional(MeasureFieldList), + SmallMultiples: S.optional(SmallMultiplesDimensionFieldList), + }), +).annotate({ + identifier: "PieChartAggregatedFieldWells", +}) as any as S.Schema; export interface PieChartFieldWells { PieChartAggregatedFieldWells?: PieChartAggregatedFieldWells; } @@ -6151,15 +6072,14 @@ export interface GaugeChartColorConfiguration { ForegroundColor?: string; BackgroundColor?: string; } -export const GaugeChartColorConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ForegroundColor: S.optional(S.String), - BackgroundColor: S.optional(S.String), - }), - ).annotate({ - identifier: "GaugeChartColorConfiguration", - }) as any as S.Schema; +export const GaugeChartColorConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ForegroundColor: S.optional(S.String), + BackgroundColor: S.optional(S.String), + }), +).annotate({ + identifier: "GaugeChartColorConfiguration", +}) as any as S.Schema; export interface GaugeChartConfiguration { FieldWells?: GaugeChartFieldWells; GaugeChartOptions?: GaugeChartOptions; @@ -6198,42 +6118,41 @@ export const GaugeChartPrimaryValueConditionalFormatting = export interface GaugeChartArcConditionalFormatting { ForegroundColor?: ConditionalFormattingColor; } -export const GaugeChartArcConditionalFormatting = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ForegroundColor: S.optional(ConditionalFormattingColor) }), - ).annotate({ - identifier: "GaugeChartArcConditionalFormatting", - }) as any as S.Schema; +export const GaugeChartArcConditionalFormatting = /*@__PURE__*/ S.suspend(() => + S.Struct({ ForegroundColor: S.optional(ConditionalFormattingColor) }), +).annotate({ + identifier: "GaugeChartArcConditionalFormatting", +}) as any as S.Schema; export interface GaugeChartConditionalFormattingOption { PrimaryValue?: GaugeChartPrimaryValueConditionalFormatting; Arc?: GaugeChartArcConditionalFormatting; } -export const GaugeChartConditionalFormattingOption = - /*@__PURE__*/ S.suspend(() => +export const GaugeChartConditionalFormattingOption = /*@__PURE__*/ S.suspend( + () => S.Struct({ PrimaryValue: S.optional(GaugeChartPrimaryValueConditionalFormatting), Arc: S.optional(GaugeChartArcConditionalFormatting), }), - ).annotate({ - identifier: "GaugeChartConditionalFormattingOption", - }) as any as S.Schema; +).annotate({ + identifier: "GaugeChartConditionalFormattingOption", +}) as any as S.Schema; export type GaugeChartConditionalFormattingOptionList = GaugeChartConditionalFormattingOption[]; -export const GaugeChartConditionalFormattingOptionList = - /*@__PURE__*/ S.Array(GaugeChartConditionalFormattingOption); +export const GaugeChartConditionalFormattingOptionList = /*@__PURE__*/ S.Array( + GaugeChartConditionalFormattingOption, +); export interface GaugeChartConditionalFormatting { ConditionalFormattingOptions?: GaugeChartConditionalFormattingOption[]; } -export const GaugeChartConditionalFormatting = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ConditionalFormattingOptions: S.optional( - GaugeChartConditionalFormattingOptionList, - ), - }), - ).annotate({ - identifier: "GaugeChartConditionalFormatting", - }) as any as S.Schema; +export const GaugeChartConditionalFormatting = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ConditionalFormattingOptions: S.optional( + GaugeChartConditionalFormattingOptionList, + ), + }), +).annotate({ + identifier: "GaugeChartConditionalFormatting", +}) as any as S.Schema; export interface GaugeChartVisual { VisualId: string; Title?: VisualTitleLabelOptions; @@ -6262,17 +6181,16 @@ export interface LineChartAggregatedFieldWells { Colors?: DimensionField[]; SmallMultiples?: DimensionField[]; } -export const LineChartAggregatedFieldWells = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Category: S.optional(DimensionFieldList), - Values: S.optional(MeasureFieldList), - Colors: S.optional(DimensionFieldList), - SmallMultiples: S.optional(SmallMultiplesDimensionFieldList), - }), - ).annotate({ - identifier: "LineChartAggregatedFieldWells", - }) as any as S.Schema; +export const LineChartAggregatedFieldWells = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Category: S.optional(DimensionFieldList), + Values: S.optional(MeasureFieldList), + Colors: S.optional(DimensionFieldList), + SmallMultiples: S.optional(SmallMultiplesDimensionFieldList), + }), +).annotate({ + identifier: "LineChartAggregatedFieldWells", +}) as any as S.Schema; export interface LineChartFieldWells { LineChartAggregatedFieldWells?: LineChartAggregatedFieldWells; } @@ -6309,19 +6227,18 @@ export interface TimeBasedForecastProperties { PredictionInterval?: number; Seasonality?: number; } -export const TimeBasedForecastProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - PeriodsForward: S.optional(S.Number), - PeriodsBackward: S.optional(S.Number), - UpperBoundary: S.optional(S.Number), - LowerBoundary: S.optional(S.Number), - PredictionInterval: S.optional(S.Number), - Seasonality: S.optional(S.Number), - }), - ).annotate({ - identifier: "TimeBasedForecastProperties", - }) as any as S.Schema; +export const TimeBasedForecastProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ + PeriodsForward: S.optional(S.Number), + PeriodsBackward: S.optional(S.Number), + UpperBoundary: S.optional(S.Number), + LowerBoundary: S.optional(S.Number), + PredictionInterval: S.optional(S.Number), + Seasonality: S.optional(S.Number), + }), +).annotate({ + identifier: "TimeBasedForecastProperties", +}) as any as S.Schema; export interface WhatIfPointScenario { Date: Date; Value: number; @@ -6400,15 +6317,14 @@ export interface LineSeriesAxisDisplayOptions { AxisOptions?: AxisDisplayOptions; MissingDataConfigurations?: MissingDataConfiguration[]; } -export const LineSeriesAxisDisplayOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AxisOptions: S.optional(AxisDisplayOptions), - MissingDataConfigurations: S.optional(MissingDataConfigurationList), - }), - ).annotate({ - identifier: "LineSeriesAxisDisplayOptions", - }) as any as S.Schema; +export const LineSeriesAxisDisplayOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AxisOptions: S.optional(AxisDisplayOptions), + MissingDataConfigurations: S.optional(MissingDataConfigurationList), + }), +).annotate({ + identifier: "LineSeriesAxisDisplayOptions", +}) as any as S.Schema; export type SingleYAxisOption = "PRIMARY_Y_AXIS" | (string & {}); export const SingleYAxisOption = /*@__PURE__*/ S.String; export interface YAxisOptions { @@ -6449,17 +6365,16 @@ export interface LineChartDefaultSeriesSettings { MarkerStyleSettings?: LineChartMarkerStyleSettings; DecalSettings?: DecalSettings; } -export const LineChartDefaultSeriesSettings = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AxisBinding: S.optional(AxisBinding), - LineStyleSettings: S.optional(LineChartLineStyleSettings), - MarkerStyleSettings: S.optional(LineChartMarkerStyleSettings), - DecalSettings: S.optional(DecalSettings), - }), - ).annotate({ - identifier: "LineChartDefaultSeriesSettings", - }) as any as S.Schema; +export const LineChartDefaultSeriesSettings = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AxisBinding: S.optional(AxisBinding), + LineStyleSettings: S.optional(LineChartLineStyleSettings), + MarkerStyleSettings: S.optional(LineChartMarkerStyleSettings), + DecalSettings: S.optional(DecalSettings), + }), +).annotate({ + identifier: "LineChartDefaultSeriesSettings", +}) as any as S.Schema; export interface LineChartSeriesSettings { LineStyleSettings?: LineChartLineStyleSettings; MarkerStyleSettings?: LineChartMarkerStyleSettings; @@ -6597,16 +6512,15 @@ export interface HeatMapAggregatedFieldWells { Columns?: DimensionField[]; Values?: MeasureField[]; } -export const HeatMapAggregatedFieldWells = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Rows: S.optional(HeatMapDimensionFieldList), - Columns: S.optional(HeatMapDimensionFieldList), - Values: S.optional(HeatMapMeasureFieldList), - }), - ).annotate({ - identifier: "HeatMapAggregatedFieldWells", - }) as any as S.Schema; +export const HeatMapAggregatedFieldWells = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Rows: S.optional(HeatMapDimensionFieldList), + Columns: S.optional(HeatMapDimensionFieldList), + Values: S.optional(HeatMapMeasureFieldList), + }), +).annotate({ + identifier: "HeatMapAggregatedFieldWells", +}) as any as S.Schema; export interface HeatMapFieldWells { HeatMapAggregatedFieldWells?: HeatMapAggregatedFieldWells; } @@ -6715,16 +6629,15 @@ export interface TreeMapAggregatedFieldWells { Sizes?: MeasureField[]; Colors?: MeasureField[]; } -export const TreeMapAggregatedFieldWells = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Groups: S.optional(TreeMapDimensionFieldList), - Sizes: S.optional(TreeMapMeasureFieldList), - Colors: S.optional(TreeMapMeasureFieldList), - }), - ).annotate({ - identifier: "TreeMapAggregatedFieldWells", - }) as any as S.Schema; +export const TreeMapAggregatedFieldWells = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Groups: S.optional(TreeMapDimensionFieldList), + Sizes: S.optional(TreeMapMeasureFieldList), + Colors: S.optional(TreeMapMeasureFieldList), + }), +).annotate({ + identifier: "TreeMapAggregatedFieldWells", +}) as any as S.Schema; export interface TreeMapFieldWells { TreeMapAggregatedFieldWells?: TreeMapAggregatedFieldWells; } @@ -6800,16 +6713,15 @@ export interface GeospatialMapAggregatedFieldWells { Values?: MeasureField[]; Colors?: DimensionField[]; } -export const GeospatialMapAggregatedFieldWells = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Geospatial: S.optional(DimensionFieldList), - Values: S.optional(MeasureFieldList), - Colors: S.optional(DimensionFieldList), - }), - ).annotate({ - identifier: "GeospatialMapAggregatedFieldWells", - }) as any as S.Schema; +export const GeospatialMapAggregatedFieldWells = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Geospatial: S.optional(DimensionFieldList), + Values: S.optional(MeasureFieldList), + Colors: S.optional(DimensionFieldList), + }), +).annotate({ + identifier: "GeospatialMapAggregatedFieldWells", +}) as any as S.Schema; export interface GeospatialMapFieldWells { GeospatialMapAggregatedFieldWells?: GeospatialMapAggregatedFieldWells; } @@ -6904,41 +6816,39 @@ export const GeospatialHeatmapDataColor = /*@__PURE__*/ S.suspend(() => identifier: "GeospatialHeatmapDataColor", }) as any as S.Schema; export type GeospatialHeatmapDataColorList = GeospatialHeatmapDataColor[]; -export const GeospatialHeatmapDataColorList = - /*@__PURE__*/ S.Array(GeospatialHeatmapDataColor); +export const GeospatialHeatmapDataColorList = /*@__PURE__*/ S.Array( + GeospatialHeatmapDataColor, +); export interface GeospatialHeatmapColorScale { Colors?: GeospatialHeatmapDataColor[]; } -export const GeospatialHeatmapColorScale = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Colors: S.optional(GeospatialHeatmapDataColorList) }), - ).annotate({ - identifier: "GeospatialHeatmapColorScale", - }) as any as S.Schema; +export const GeospatialHeatmapColorScale = /*@__PURE__*/ S.suspend(() => + S.Struct({ Colors: S.optional(GeospatialHeatmapDataColorList) }), +).annotate({ + identifier: "GeospatialHeatmapColorScale", +}) as any as S.Schema; export interface GeospatialHeatmapConfiguration { HeatmapColor?: GeospatialHeatmapColorScale; } -export const GeospatialHeatmapConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ HeatmapColor: S.optional(GeospatialHeatmapColorScale) }), - ).annotate({ - identifier: "GeospatialHeatmapConfiguration", - }) as any as S.Schema; +export const GeospatialHeatmapConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ HeatmapColor: S.optional(GeospatialHeatmapColorScale) }), +).annotate({ + identifier: "GeospatialHeatmapConfiguration", +}) as any as S.Schema; export interface GeospatialPointStyleOptions { SelectedPointStyle?: GeospatialSelectedPointStyle; ClusterMarkerConfiguration?: ClusterMarkerConfiguration; HeatmapConfiguration?: GeospatialHeatmapConfiguration; } -export const GeospatialPointStyleOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SelectedPointStyle: S.optional(GeospatialSelectedPointStyle), - ClusterMarkerConfiguration: S.optional(ClusterMarkerConfiguration), - HeatmapConfiguration: S.optional(GeospatialHeatmapConfiguration), - }), - ).annotate({ - identifier: "GeospatialPointStyleOptions", - }) as any as S.Schema; +export const GeospatialPointStyleOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SelectedPointStyle: S.optional(GeospatialSelectedPointStyle), + ClusterMarkerConfiguration: S.optional(ClusterMarkerConfiguration), + HeatmapConfiguration: S.optional(GeospatialHeatmapConfiguration), + }), +).annotate({ + identifier: "GeospatialPointStyleOptions", +}) as any as S.Schema; export interface GeospatialMapConfiguration { FieldWells?: GeospatialMapFieldWells; Legend?: LegendOptions; @@ -7042,15 +6952,14 @@ export interface FilledMapAggregatedFieldWells { Geospatial?: DimensionField[]; Values?: MeasureField[]; } -export const FilledMapAggregatedFieldWells = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Geospatial: S.optional(FilledMapDimensionFieldList), - Values: S.optional(FilledMapMeasureFieldList), - }), - ).annotate({ - identifier: "FilledMapAggregatedFieldWells", - }) as any as S.Schema; +export const FilledMapAggregatedFieldWells = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Geospatial: S.optional(FilledMapDimensionFieldList), + Values: S.optional(FilledMapMeasureFieldList), + }), +).annotate({ + identifier: "FilledMapAggregatedFieldWells", +}) as any as S.Schema; export interface FilledMapFieldWells { FilledMapAggregatedFieldWells?: FilledMapAggregatedFieldWells; } @@ -7103,36 +7012,34 @@ export interface FilledMapShapeConditionalFormatting { FieldId: string; Format?: ShapeConditionalFormat; } -export const FilledMapShapeConditionalFormatting = - /*@__PURE__*/ S.suspend(() => - S.Struct({ FieldId: S.String, Format: S.optional(ShapeConditionalFormat) }), - ).annotate({ - identifier: "FilledMapShapeConditionalFormatting", - }) as any as S.Schema; +export const FilledMapShapeConditionalFormatting = /*@__PURE__*/ S.suspend(() => + S.Struct({ FieldId: S.String, Format: S.optional(ShapeConditionalFormat) }), +).annotate({ + identifier: "FilledMapShapeConditionalFormatting", +}) as any as S.Schema; export interface FilledMapConditionalFormattingOption { Shape: FilledMapShapeConditionalFormatting; } -export const FilledMapConditionalFormattingOption = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Shape: FilledMapShapeConditionalFormatting }), - ).annotate({ - identifier: "FilledMapConditionalFormattingOption", - }) as any as S.Schema; +export const FilledMapConditionalFormattingOption = /*@__PURE__*/ S.suspend( + () => S.Struct({ Shape: FilledMapShapeConditionalFormatting }), +).annotate({ + identifier: "FilledMapConditionalFormattingOption", +}) as any as S.Schema; export type FilledMapConditionalFormattingOptionList = FilledMapConditionalFormattingOption[]; -export const FilledMapConditionalFormattingOptionList = - /*@__PURE__*/ S.Array(FilledMapConditionalFormattingOption); +export const FilledMapConditionalFormattingOptionList = /*@__PURE__*/ S.Array( + FilledMapConditionalFormattingOption, +); export interface FilledMapConditionalFormatting { ConditionalFormattingOptions: FilledMapConditionalFormattingOption[]; } -export const FilledMapConditionalFormatting = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ConditionalFormattingOptions: FilledMapConditionalFormattingOptionList, - }), - ).annotate({ - identifier: "FilledMapConditionalFormatting", - }) as any as S.Schema; +export const FilledMapConditionalFormatting = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ConditionalFormattingOptions: FilledMapConditionalFormattingOptionList, + }), +).annotate({ + identifier: "FilledMapConditionalFormatting", +}) as any as S.Schema; export interface FilledMapVisual { VisualId: string; Title?: VisualTitleLabelOptions; @@ -7192,15 +7099,15 @@ export interface GeospatialGradientStepColor { Color: string; DataValue: number; } -export const GeospatialGradientStepColor = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Color: S.String, DataValue: S.Number }), - ).annotate({ - identifier: "GeospatialGradientStepColor", - }) as any as S.Schema; +export const GeospatialGradientStepColor = /*@__PURE__*/ S.suspend(() => + S.Struct({ Color: S.String, DataValue: S.Number }), +).annotate({ + identifier: "GeospatialGradientStepColor", +}) as any as S.Schema; export type GeospatialGradientStepColorList = GeospatialGradientStepColor[]; -export const GeospatialGradientStepColorList = - /*@__PURE__*/ S.Array(GeospatialGradientStepColor); +export const GeospatialGradientStepColorList = /*@__PURE__*/ S.Array( + GeospatialGradientStepColor, +); export interface GeospatialNullSymbolStyle { FillColor?: string; StrokeColor?: string; @@ -7243,16 +7150,16 @@ export interface GeospatialCategoricalDataColor { Color: string; DataValue: string; } -export const GeospatialCategoricalDataColor = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Color: S.String, DataValue: S.String }), - ).annotate({ - identifier: "GeospatialCategoricalDataColor", - }) as any as S.Schema; +export const GeospatialCategoricalDataColor = /*@__PURE__*/ S.suspend(() => + S.Struct({ Color: S.String, DataValue: S.String }), +).annotate({ + identifier: "GeospatialCategoricalDataColor", +}) as any as S.Schema; export type GeospatialCategoricalDataColorList = GeospatialCategoricalDataColor[]; -export const GeospatialCategoricalDataColorList = - /*@__PURE__*/ S.Array(GeospatialCategoricalDataColor); +export const GeospatialCategoricalDataColorList = /*@__PURE__*/ S.Array( + GeospatialCategoricalDataColor, +); export interface GeospatialCategoricalColor { CategoryDataColors: GeospatialCategoricalDataColor[]; NullDataVisibility?: Visibility; @@ -7305,17 +7212,16 @@ export interface GeospatialCircleSymbolStyle { StrokeWidth?: GeospatialLineWidth; CircleRadius?: GeospatialCircleRadius; } -export const GeospatialCircleSymbolStyle = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - FillColor: S.optional(GeospatialColor), - StrokeColor: S.optional(GeospatialColor), - StrokeWidth: S.optional(GeospatialLineWidth), - CircleRadius: S.optional(GeospatialCircleRadius), - }), - ).annotate({ - identifier: "GeospatialCircleSymbolStyle", - }) as any as S.Schema; +export const GeospatialCircleSymbolStyle = /*@__PURE__*/ S.suspend(() => + S.Struct({ + FillColor: S.optional(GeospatialColor), + StrokeColor: S.optional(GeospatialColor), + StrokeWidth: S.optional(GeospatialLineWidth), + CircleRadius: S.optional(GeospatialCircleRadius), + }), +).annotate({ + identifier: "GeospatialCircleSymbolStyle", +}) as any as S.Schema; export interface GeospatialPointStyle { CircleSymbolStyle?: GeospatialCircleSymbolStyle; } @@ -7365,16 +7271,15 @@ export interface GeospatialPolygonSymbolStyle { StrokeColor?: GeospatialColor; StrokeWidth?: GeospatialLineWidth; } -export const GeospatialPolygonSymbolStyle = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - FillColor: S.optional(GeospatialColor), - StrokeColor: S.optional(GeospatialColor), - StrokeWidth: S.optional(GeospatialLineWidth), - }), - ).annotate({ - identifier: "GeospatialPolygonSymbolStyle", - }) as any as S.Schema; +export const GeospatialPolygonSymbolStyle = /*@__PURE__*/ S.suspend(() => + S.Struct({ + FillColor: S.optional(GeospatialColor), + StrokeColor: S.optional(GeospatialColor), + StrokeWidth: S.optional(GeospatialLineWidth), + }), +).annotate({ + identifier: "GeospatialPolygonSymbolStyle", +}) as any as S.Schema; export interface GeospatialPolygonStyle { PolygonSymbolStyle?: GeospatialPolygonSymbolStyle; } @@ -7428,16 +7333,15 @@ export interface GeospatialLayerJoinDefinition { DatasetKeyField?: UnaggregatedField; ColorField?: GeospatialLayerColorField; } -export const GeospatialLayerJoinDefinition = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ShapeKeyField: S.optional(S.String), - DatasetKeyField: S.optional(UnaggregatedField), - ColorField: S.optional(GeospatialLayerColorField), - }), - ).annotate({ - identifier: "GeospatialLayerJoinDefinition", - }) as any as S.Schema; +export const GeospatialLayerJoinDefinition = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ShapeKeyField: S.optional(S.String), + DatasetKeyField: S.optional(UnaggregatedField), + ColorField: S.optional(GeospatialLayerColorField), + }), +).annotate({ + identifier: "GeospatialLayerJoinDefinition", +}) as any as S.Schema; export type LayerCustomActionTrigger = | "DATA_POINT_CLICK" | "DATA_POINT_MENU" @@ -7460,8 +7364,9 @@ export const LayerCustomActionOperation = /*@__PURE__*/ S.suspend(() => identifier: "LayerCustomActionOperation", }) as any as S.Schema; export type LayerCustomActionOperationList = LayerCustomActionOperation[]; -export const LayerCustomActionOperationList = - /*@__PURE__*/ S.Array(LayerCustomActionOperation); +export const LayerCustomActionOperationList = /*@__PURE__*/ S.Array( + LayerCustomActionOperation, +); export interface LayerCustomAction { CustomActionId: string; Name: string; @@ -7546,18 +7451,17 @@ export interface GeospatialLayerMapConfiguration { MapStyle?: GeospatialMapStyle; Interactions?: VisualInteractionOptions; } -export const GeospatialLayerMapConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Legend: S.optional(LegendOptions), - MapLayers: S.optional(GeospatialMapLayerList), - MapState: S.optional(GeospatialMapState), - MapStyle: S.optional(GeospatialMapStyle), - Interactions: S.optional(VisualInteractionOptions), - }), - ).annotate({ - identifier: "GeospatialLayerMapConfiguration", - }) as any as S.Schema; +export const GeospatialLayerMapConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Legend: S.optional(LegendOptions), + MapLayers: S.optional(GeospatialMapLayerList), + MapState: S.optional(GeospatialMapState), + MapStyle: S.optional(GeospatialMapStyle), + Interactions: S.optional(VisualInteractionOptions), + }), +).annotate({ + identifier: "GeospatialLayerMapConfiguration", +}) as any as S.Schema; export interface LayerMapVisual { VisualId: string; Title?: VisualTitleLabelOptions; @@ -7585,15 +7489,14 @@ export interface FunnelChartAggregatedFieldWells { Category?: DimensionField[]; Values?: MeasureField[]; } -export const FunnelChartAggregatedFieldWells = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Category: S.optional(FunnelChartDimensionFieldList), - Values: S.optional(FunnelChartMeasureFieldList), - }), - ).annotate({ - identifier: "FunnelChartAggregatedFieldWells", - }) as any as S.Schema; +export const FunnelChartAggregatedFieldWells = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Category: S.optional(FunnelChartDimensionFieldList), + Values: S.optional(FunnelChartMeasureFieldList), + }), +).annotate({ + identifier: "FunnelChartAggregatedFieldWells", +}) as any as S.Schema; export interface FunnelChartFieldWells { FunnelChartAggregatedFieldWells?: FunnelChartAggregatedFieldWells; } @@ -7610,15 +7513,14 @@ export interface FunnelChartSortConfiguration { CategorySort?: FieldSortOptions[]; CategoryItemsLimit?: ItemsLimitConfiguration; } -export const FunnelChartSortConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CategorySort: S.optional(FieldSortOptionsList), - CategoryItemsLimit: S.optional(ItemsLimitConfiguration), - }), - ).annotate({ - identifier: "FunnelChartSortConfiguration", - }) as any as S.Schema; +export const FunnelChartSortConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CategorySort: S.optional(FieldSortOptionsList), + CategoryItemsLimit: S.optional(ItemsLimitConfiguration), + }), +).annotate({ + identifier: "FunnelChartSortConfiguration", +}) as any as S.Schema; export type FunnelChartMeasureDataLabelStyle = | "VALUE_ONLY" | "PERCENTAGE_BY_FIRST_STAGE" @@ -7636,25 +7538,24 @@ export interface FunnelChartDataLabelOptions { LabelColor?: string; MeasureDataLabelStyle?: FunnelChartMeasureDataLabelStyle; } -export const FunnelChartDataLabelOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Visibility: S.optional(Visibility), - CategoryLabelVisibility: S.optional(Visibility), - MeasureLabelVisibility: S.optional(Visibility), - Position: S.optional(DataLabelPosition), - LabelFontConfiguration: S.optional(FontConfiguration), - LabelColor: S.optional(S.String), - MeasureDataLabelStyle: S.optional(FunnelChartMeasureDataLabelStyle), - }), - ).annotate({ - identifier: "FunnelChartDataLabelOptions", - }) as any as S.Schema; -export interface FunnelChartConfiguration { - FieldWells?: FunnelChartFieldWells; - SortConfiguration?: FunnelChartSortConfiguration; - CategoryLabelOptions?: ChartAxisLabelOptions; - ValueLabelOptions?: ChartAxisLabelOptions; +export const FunnelChartDataLabelOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Visibility: S.optional(Visibility), + CategoryLabelVisibility: S.optional(Visibility), + MeasureLabelVisibility: S.optional(Visibility), + Position: S.optional(DataLabelPosition), + LabelFontConfiguration: S.optional(FontConfiguration), + LabelColor: S.optional(S.String), + MeasureDataLabelStyle: S.optional(FunnelChartMeasureDataLabelStyle), + }), +).annotate({ + identifier: "FunnelChartDataLabelOptions", +}) as any as S.Schema; +export interface FunnelChartConfiguration { + FieldWells?: FunnelChartFieldWells; + SortConfiguration?: FunnelChartSortConfiguration; + CategoryLabelOptions?: ChartAxisLabelOptions; + ValueLabelOptions?: ChartAxisLabelOptions; Tooltip?: TooltipOptions; DataLabelOptions?: FunnelChartDataLabelOptions; VisualPalette?: VisualPalette; @@ -7722,18 +7623,17 @@ export interface ScatterPlotUnaggregatedFieldWells { Category?: DimensionField[]; Label?: DimensionField[]; } -export const ScatterPlotUnaggregatedFieldWells = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - XAxis: S.optional(DimensionFieldList), - YAxis: S.optional(DimensionFieldList), - Size: S.optional(MeasureFieldList), - Category: S.optional(DimensionFieldList), - Label: S.optional(DimensionFieldList), - }), - ).annotate({ - identifier: "ScatterPlotUnaggregatedFieldWells", - }) as any as S.Schema; +export const ScatterPlotUnaggregatedFieldWells = /*@__PURE__*/ S.suspend(() => + S.Struct({ + XAxis: S.optional(DimensionFieldList), + YAxis: S.optional(DimensionFieldList), + Size: S.optional(MeasureFieldList), + Category: S.optional(DimensionFieldList), + Label: S.optional(DimensionFieldList), + }), +).annotate({ + identifier: "ScatterPlotUnaggregatedFieldWells", +}) as any as S.Schema; export interface ScatterPlotFieldWells { ScatterPlotCategoricallyAggregatedFieldWells?: ScatterPlotCategoricallyAggregatedFieldWells; ScatterPlotUnaggregatedFieldWells?: ScatterPlotUnaggregatedFieldWells; @@ -7753,14 +7653,13 @@ export const ScatterPlotFieldWells = /*@__PURE__*/ S.suspend(() => export interface ScatterPlotSortConfiguration { ScatterPlotLimitConfiguration?: ItemsLimitConfiguration; } -export const ScatterPlotSortConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ScatterPlotLimitConfiguration: S.optional(ItemsLimitConfiguration), - }), - ).annotate({ - identifier: "ScatterPlotSortConfiguration", - }) as any as S.Schema; +export const ScatterPlotSortConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ScatterPlotLimitConfiguration: S.optional(ItemsLimitConfiguration), + }), +).annotate({ + identifier: "ScatterPlotSortConfiguration", +}) as any as S.Schema; export interface ScatterPlotConfiguration { FieldWells?: ScatterPlotFieldWells; SortConfiguration?: ScatterPlotSortConfiguration; @@ -7819,17 +7718,16 @@ export interface ComboChartAggregatedFieldWells { Colors?: DimensionField[]; LineValues?: MeasureField[]; } -export const ComboChartAggregatedFieldWells = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Category: S.optional(DimensionFieldList), - BarValues: S.optional(MeasureFieldList), - Colors: S.optional(DimensionFieldList), - LineValues: S.optional(MeasureFieldList), - }), - ).annotate({ - identifier: "ComboChartAggregatedFieldWells", - }) as any as S.Schema; +export const ComboChartAggregatedFieldWells = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Category: S.optional(DimensionFieldList), + BarValues: S.optional(MeasureFieldList), + Colors: S.optional(DimensionFieldList), + LineValues: S.optional(MeasureFieldList), + }), +).annotate({ + identifier: "ComboChartAggregatedFieldWells", +}) as any as S.Schema; export interface ComboChartFieldWells { ComboChartAggregatedFieldWells?: ComboChartAggregatedFieldWells; } @@ -7846,34 +7744,32 @@ export interface ComboChartSortConfiguration { ColorSort?: FieldSortOptions[]; ColorItemsLimit?: ItemsLimitConfiguration; } -export const ComboChartSortConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CategorySort: S.optional(FieldSortOptionsList), - CategoryItemsLimit: S.optional(ItemsLimitConfiguration), - ColorSort: S.optional(FieldSortOptionsList), - ColorItemsLimit: S.optional(ItemsLimitConfiguration), - }), - ).annotate({ - identifier: "ComboChartSortConfiguration", - }) as any as S.Schema; +export const ComboChartSortConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CategorySort: S.optional(FieldSortOptionsList), + CategoryItemsLimit: S.optional(ItemsLimitConfiguration), + ColorSort: S.optional(FieldSortOptionsList), + ColorItemsLimit: S.optional(ItemsLimitConfiguration), + }), +).annotate({ + identifier: "ComboChartSortConfiguration", +}) as any as S.Schema; export interface ComboChartDefaultSeriesSettings { LineStyleSettings?: LineChartLineStyleSettings; MarkerStyleSettings?: LineChartMarkerStyleSettings; DecalSettings?: DecalSettings; BorderSettings?: BorderSettings; } -export const ComboChartDefaultSeriesSettings = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - LineStyleSettings: S.optional(LineChartLineStyleSettings), - MarkerStyleSettings: S.optional(LineChartMarkerStyleSettings), - DecalSettings: S.optional(DecalSettings), - BorderSettings: S.optional(BorderSettings), - }), - ).annotate({ - identifier: "ComboChartDefaultSeriesSettings", - }) as any as S.Schema; +export const ComboChartDefaultSeriesSettings = /*@__PURE__*/ S.suspend(() => + S.Struct({ + LineStyleSettings: S.optional(LineChartLineStyleSettings), + MarkerStyleSettings: S.optional(LineChartMarkerStyleSettings), + DecalSettings: S.optional(DecalSettings), + BorderSettings: S.optional(BorderSettings), + }), +).annotate({ + identifier: "ComboChartDefaultSeriesSettings", +}) as any as S.Schema; export interface ComboChartSeriesSettings { LineStyleSettings?: LineChartLineStyleSettings; MarkerStyleSettings?: LineChartMarkerStyleSettings; @@ -8008,15 +7904,14 @@ export interface BoxPlotAggregatedFieldWells { GroupBy?: DimensionField[]; Values?: MeasureField[]; } -export const BoxPlotAggregatedFieldWells = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - GroupBy: S.optional(BoxPlotDimensionFieldList), - Values: S.optional(BoxPlotMeasureFieldList), - }), - ).annotate({ - identifier: "BoxPlotAggregatedFieldWells", - }) as any as S.Schema; +export const BoxPlotAggregatedFieldWells = /*@__PURE__*/ S.suspend(() => + S.Struct({ + GroupBy: S.optional(BoxPlotDimensionFieldList), + Values: S.optional(BoxPlotMeasureFieldList), + }), +).annotate({ + identifier: "BoxPlotAggregatedFieldWells", +}) as any as S.Schema; export interface BoxPlotFieldWells { BoxPlotAggregatedFieldWells?: BoxPlotAggregatedFieldWells; } @@ -8118,16 +8013,15 @@ export interface WaterfallChartAggregatedFieldWells { Values?: MeasureField[]; Breakdowns?: DimensionField[]; } -export const WaterfallChartAggregatedFieldWells = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Categories: S.optional(DimensionFieldList), - Values: S.optional(MeasureFieldList), - Breakdowns: S.optional(DimensionFieldList), - }), - ).annotate({ - identifier: "WaterfallChartAggregatedFieldWells", - }) as any as S.Schema; +export const WaterfallChartAggregatedFieldWells = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Categories: S.optional(DimensionFieldList), + Values: S.optional(MeasureFieldList), + Breakdowns: S.optional(DimensionFieldList), + }), +).annotate({ + identifier: "WaterfallChartAggregatedFieldWells", +}) as any as S.Schema; export interface WaterfallChartFieldWells { WaterfallChartAggregatedFieldWells?: WaterfallChartAggregatedFieldWells; } @@ -8144,15 +8038,14 @@ export interface WaterfallChartSortConfiguration { CategorySort?: FieldSortOptions[]; BreakdownItemsLimit?: ItemsLimitConfiguration; } -export const WaterfallChartSortConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CategorySort: S.optional(FieldSortOptionsList), - BreakdownItemsLimit: S.optional(ItemsLimitConfiguration), - }), - ).annotate({ - identifier: "WaterfallChartSortConfiguration", - }) as any as S.Schema; +export const WaterfallChartSortConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CategorySort: S.optional(FieldSortOptionsList), + BreakdownItemsLimit: S.optional(ItemsLimitConfiguration), + }), +).annotate({ + identifier: "WaterfallChartSortConfiguration", +}) as any as S.Schema; export interface WaterfallChartOptions { TotalBarLabel?: string; } @@ -8166,29 +8059,26 @@ export interface WaterfallChartGroupColorConfiguration { NegativeBarColor?: string; TotalBarColor?: string; } -export const WaterfallChartGroupColorConfiguration = - /*@__PURE__*/ S.suspend(() => +export const WaterfallChartGroupColorConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ PositiveBarColor: S.optional(S.String), NegativeBarColor: S.optional(S.String), TotalBarColor: S.optional(S.String), }), - ).annotate({ - identifier: "WaterfallChartGroupColorConfiguration", - }) as any as S.Schema; +).annotate({ + identifier: "WaterfallChartGroupColorConfiguration", +}) as any as S.Schema; export interface WaterfallChartColorConfiguration { GroupColorConfiguration?: WaterfallChartGroupColorConfiguration; } -export const WaterfallChartColorConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - GroupColorConfiguration: S.optional( - WaterfallChartGroupColorConfiguration, - ), - }), - ).annotate({ - identifier: "WaterfallChartColorConfiguration", - }) as any as S.Schema; +export const WaterfallChartColorConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + GroupColorConfiguration: S.optional(WaterfallChartGroupColorConfiguration), + }), +).annotate({ + identifier: "WaterfallChartColorConfiguration", +}) as any as S.Schema; export interface WaterfallChartConfiguration { FieldWells?: WaterfallChartFieldWells; SortConfiguration?: WaterfallChartSortConfiguration; @@ -8203,25 +8093,24 @@ export interface WaterfallChartConfiguration { ColorConfiguration?: WaterfallChartColorConfiguration; Interactions?: VisualInteractionOptions; } -export const WaterfallChartConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - FieldWells: S.optional(WaterfallChartFieldWells), - SortConfiguration: S.optional(WaterfallChartSortConfiguration), - WaterfallChartOptions: S.optional(WaterfallChartOptions), - CategoryAxisLabelOptions: S.optional(ChartAxisLabelOptions), - CategoryAxisDisplayOptions: S.optional(AxisDisplayOptions), - PrimaryYAxisLabelOptions: S.optional(ChartAxisLabelOptions), - PrimaryYAxisDisplayOptions: S.optional(AxisDisplayOptions), - Legend: S.optional(LegendOptions), - DataLabels: S.optional(DataLabelOptions), - VisualPalette: S.optional(VisualPalette), - ColorConfiguration: S.optional(WaterfallChartColorConfiguration), - Interactions: S.optional(VisualInteractionOptions), - }), - ).annotate({ - identifier: "WaterfallChartConfiguration", - }) as any as S.Schema; +export const WaterfallChartConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + FieldWells: S.optional(WaterfallChartFieldWells), + SortConfiguration: S.optional(WaterfallChartSortConfiguration), + WaterfallChartOptions: S.optional(WaterfallChartOptions), + CategoryAxisLabelOptions: S.optional(ChartAxisLabelOptions), + CategoryAxisDisplayOptions: S.optional(AxisDisplayOptions), + PrimaryYAxisLabelOptions: S.optional(ChartAxisLabelOptions), + PrimaryYAxisDisplayOptions: S.optional(AxisDisplayOptions), + Legend: S.optional(LegendOptions), + DataLabels: S.optional(DataLabelOptions), + VisualPalette: S.optional(VisualPalette), + ColorConfiguration: S.optional(WaterfallChartColorConfiguration), + Interactions: S.optional(VisualInteractionOptions), + }), +).annotate({ + identifier: "WaterfallChartConfiguration", +}) as any as S.Schema; export interface WaterfallVisual { VisualId: string; Title?: VisualTitleLabelOptions; @@ -8249,12 +8138,11 @@ export const HistogramMeasureFieldList = /*@__PURE__*/ S.Array(MeasureField); export interface HistogramAggregatedFieldWells { Values?: MeasureField[]; } -export const HistogramAggregatedFieldWells = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Values: S.optional(HistogramMeasureFieldList) }), - ).annotate({ - identifier: "HistogramAggregatedFieldWells", - }) as any as S.Schema; +export const HistogramAggregatedFieldWells = /*@__PURE__*/ S.suspend(() => + S.Struct({ Values: S.optional(HistogramMeasureFieldList) }), +).annotate({ + identifier: "HistogramAggregatedFieldWells", +}) as any as S.Schema; export interface HistogramFieldWells { HistogramAggregatedFieldWells?: HistogramAggregatedFieldWells; } @@ -8358,15 +8246,14 @@ export interface WordCloudAggregatedFieldWells { GroupBy?: DimensionField[]; Size?: MeasureField[]; } -export const WordCloudAggregatedFieldWells = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - GroupBy: S.optional(WordCloudDimensionFieldList), - Size: S.optional(WordCloudMeasureFieldList), - }), - ).annotate({ - identifier: "WordCloudAggregatedFieldWells", - }) as any as S.Schema; +export const WordCloudAggregatedFieldWells = /*@__PURE__*/ S.suspend(() => + S.Struct({ + GroupBy: S.optional(WordCloudDimensionFieldList), + Size: S.optional(WordCloudMeasureFieldList), + }), +).annotate({ + identifier: "WordCloudAggregatedFieldWells", +}) as any as S.Schema; export interface WordCloudFieldWells { WordCloudAggregatedFieldWells?: WordCloudAggregatedFieldWells; } @@ -8437,18 +8324,17 @@ export interface WordCloudChartConfiguration { WordCloudOptions?: WordCloudOptions; Interactions?: VisualInteractionOptions; } -export const WordCloudChartConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - FieldWells: S.optional(WordCloudFieldWells), - SortConfiguration: S.optional(WordCloudSortConfiguration), - CategoryLabelOptions: S.optional(ChartAxisLabelOptions), - WordCloudOptions: S.optional(WordCloudOptions), - Interactions: S.optional(VisualInteractionOptions), - }), - ).annotate({ - identifier: "WordCloudChartConfiguration", - }) as any as S.Schema; +export const WordCloudChartConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + FieldWells: S.optional(WordCloudFieldWells), + SortConfiguration: S.optional(WordCloudSortConfiguration), + CategoryLabelOptions: S.optional(ChartAxisLabelOptions), + WordCloudOptions: S.optional(WordCloudOptions), + Interactions: S.optional(VisualInteractionOptions), + }), +).annotate({ + identifier: "WordCloudChartConfiguration", +}) as any as S.Schema; export interface WordCloudVisual { VisualId: string; Title?: VisualTitleLabelOptions; @@ -8527,16 +8413,15 @@ export interface TotalAggregationComputation { Name?: string; Value?: MeasureField; } -export const TotalAggregationComputation = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ComputationId: S.String, - Name: S.optional(S.String), - Value: S.optional(MeasureField), - }), - ).annotate({ - identifier: "TotalAggregationComputation", - }) as any as S.Schema; +export const TotalAggregationComputation = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ComputationId: S.String, + Name: S.optional(S.String), + Value: S.optional(MeasureField), + }), +).annotate({ + identifier: "TotalAggregationComputation", +}) as any as S.Schema; export type MaximumMinimumComputationType = | "MAXIMUM" | "MINIMUM" @@ -8567,35 +8452,33 @@ export interface MetricComparisonComputation { FromValue?: MeasureField; TargetValue?: MeasureField; } -export const MetricComparisonComputation = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ComputationId: S.String, - Name: S.optional(S.String), - Time: S.optional(DimensionField), - FromValue: S.optional(MeasureField), - TargetValue: S.optional(MeasureField), - }), - ).annotate({ - identifier: "MetricComparisonComputation", - }) as any as S.Schema; +export const MetricComparisonComputation = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ComputationId: S.String, + Name: S.optional(S.String), + Time: S.optional(DimensionField), + FromValue: S.optional(MeasureField), + TargetValue: S.optional(MeasureField), + }), +).annotate({ + identifier: "MetricComparisonComputation", +}) as any as S.Schema; export interface PeriodOverPeriodComputation { ComputationId: string; Name?: string; Time?: DimensionField; Value?: MeasureField; } -export const PeriodOverPeriodComputation = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ComputationId: S.String, - Name: S.optional(S.String), - Time: S.optional(DimensionField), - Value: S.optional(MeasureField), - }), - ).annotate({ - identifier: "PeriodOverPeriodComputation", - }) as any as S.Schema; +export const PeriodOverPeriodComputation = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ComputationId: S.String, + Name: S.optional(S.String), + Time: S.optional(DimensionField), + Value: S.optional(MeasureField), + }), +).annotate({ + identifier: "PeriodOverPeriodComputation", +}) as any as S.Schema; export interface PeriodToDateComputation { ComputationId: string; Name?: string; @@ -8756,16 +8639,15 @@ export interface SankeyDiagramAggregatedFieldWells { Destination?: DimensionField[]; Weight?: MeasureField[]; } -export const SankeyDiagramAggregatedFieldWells = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Source: S.optional(DimensionFieldList), - Destination: S.optional(DimensionFieldList), - Weight: S.optional(MeasureFieldList), - }), - ).annotate({ - identifier: "SankeyDiagramAggregatedFieldWells", - }) as any as S.Schema; +export const SankeyDiagramAggregatedFieldWells = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Source: S.optional(DimensionFieldList), + Destination: S.optional(DimensionFieldList), + Weight: S.optional(MeasureFieldList), + }), +).annotate({ + identifier: "SankeyDiagramAggregatedFieldWells", +}) as any as S.Schema; export interface SankeyDiagramFieldWells { SankeyDiagramAggregatedFieldWells?: SankeyDiagramAggregatedFieldWells; } @@ -8783,33 +8665,31 @@ export interface SankeyDiagramSortConfiguration { SourceItemsLimit?: ItemsLimitConfiguration; DestinationItemsLimit?: ItemsLimitConfiguration; } -export const SankeyDiagramSortConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - WeightSort: S.optional(FieldSortOptionsList), - SourceItemsLimit: S.optional(ItemsLimitConfiguration), - DestinationItemsLimit: S.optional(ItemsLimitConfiguration), - }), - ).annotate({ - identifier: "SankeyDiagramSortConfiguration", - }) as any as S.Schema; +export const SankeyDiagramSortConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + WeightSort: S.optional(FieldSortOptionsList), + SourceItemsLimit: S.optional(ItemsLimitConfiguration), + DestinationItemsLimit: S.optional(ItemsLimitConfiguration), + }), +).annotate({ + identifier: "SankeyDiagramSortConfiguration", +}) as any as S.Schema; export interface SankeyDiagramChartConfiguration { FieldWells?: SankeyDiagramFieldWells; SortConfiguration?: SankeyDiagramSortConfiguration; DataLabels?: DataLabelOptions; Interactions?: VisualInteractionOptions; } -export const SankeyDiagramChartConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - FieldWells: S.optional(SankeyDiagramFieldWells), - SortConfiguration: S.optional(SankeyDiagramSortConfiguration), - DataLabels: S.optional(DataLabelOptions), - Interactions: S.optional(VisualInteractionOptions), - }), - ).annotate({ - identifier: "SankeyDiagramChartConfiguration", - }) as any as S.Schema; +export const SankeyDiagramChartConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + FieldWells: S.optional(SankeyDiagramFieldWells), + SortConfiguration: S.optional(SankeyDiagramSortConfiguration), + DataLabels: S.optional(DataLabelOptions), + Interactions: S.optional(VisualInteractionOptions), + }), +).annotate({ + identifier: "SankeyDiagramChartConfiguration", +}) as any as S.Schema; export interface SankeyDiagramVisual { VisualId: string; Title?: VisualTitleLabelOptions; @@ -8904,16 +8784,15 @@ export interface RadarChartAggregatedFieldWells { Color?: DimensionField[]; Values?: MeasureField[]; } -export const RadarChartAggregatedFieldWells = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Category: S.optional(RadarChartCategoryFieldList), - Color: S.optional(RadarChartColorFieldList), - Values: S.optional(RadarChartValuesFieldList), - }), - ).annotate({ - identifier: "RadarChartAggregatedFieldWells", - }) as any as S.Schema; +export const RadarChartAggregatedFieldWells = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Category: S.optional(RadarChartCategoryFieldList), + Color: S.optional(RadarChartColorFieldList), + Values: S.optional(RadarChartValuesFieldList), + }), +).annotate({ + identifier: "RadarChartAggregatedFieldWells", +}) as any as S.Schema; export interface RadarChartFieldWells { RadarChartAggregatedFieldWells?: RadarChartAggregatedFieldWells; } @@ -8930,28 +8809,26 @@ export interface RadarChartSortConfiguration { ColorSort?: FieldSortOptions[]; ColorItemsLimit?: ItemsLimitConfiguration; } -export const RadarChartSortConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CategorySort: S.optional(FieldSortOptionsList), - CategoryItemsLimit: S.optional(ItemsLimitConfiguration), - ColorSort: S.optional(FieldSortOptionsList), - ColorItemsLimit: S.optional(ItemsLimitConfiguration), - }), - ).annotate({ - identifier: "RadarChartSortConfiguration", - }) as any as S.Schema; +export const RadarChartSortConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CategorySort: S.optional(FieldSortOptionsList), + CategoryItemsLimit: S.optional(ItemsLimitConfiguration), + ColorSort: S.optional(FieldSortOptionsList), + ColorItemsLimit: S.optional(ItemsLimitConfiguration), + }), +).annotate({ + identifier: "RadarChartSortConfiguration", +}) as any as S.Schema; export type RadarChartShape = "CIRCLE" | "POLYGON" | (string & {}); export const RadarChartShape = /*@__PURE__*/ S.String; export interface RadarChartAreaStyleSettings { Visibility?: Visibility; } -export const RadarChartAreaStyleSettings = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Visibility: S.optional(Visibility) }), - ).annotate({ - identifier: "RadarChartAreaStyleSettings", - }) as any as S.Schema; +export const RadarChartAreaStyleSettings = /*@__PURE__*/ S.suspend(() => + S.Struct({ Visibility: S.optional(Visibility) }), +).annotate({ + identifier: "RadarChartAreaStyleSettings", +}) as any as S.Schema; export interface RadarChartSeriesSettings { AreaStyleSettings?: RadarChartAreaStyleSettings; } @@ -9075,12 +8952,11 @@ export const PluginVisualOptions = /*@__PURE__*/ S.suspend(() => export interface PluginVisualItemsLimitConfiguration { ItemsLimit?: number; } -export const PluginVisualItemsLimitConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ItemsLimit: S.optional(S.Number) }), - ).annotate({ - identifier: "PluginVisualItemsLimitConfiguration", - }) as any as S.Schema; +export const PluginVisualItemsLimitConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ ItemsLimit: S.optional(S.Number) }), +).annotate({ + identifier: "PluginVisualItemsLimitConfiguration", +}) as any as S.Schema; export interface PluginVisualTableQuerySort { RowSort?: FieldSortOptions[]; ItemsLimitConfiguration?: PluginVisualItemsLimitConfiguration; @@ -9096,14 +8972,13 @@ export const PluginVisualTableQuerySort = /*@__PURE__*/ S.suspend(() => export interface PluginVisualSortConfiguration { PluginVisualTableQuerySort?: PluginVisualTableQuerySort; } -export const PluginVisualSortConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - PluginVisualTableQuerySort: S.optional(PluginVisualTableQuerySort), - }), - ).annotate({ - identifier: "PluginVisualSortConfiguration", - }) as any as S.Schema; +export const PluginVisualSortConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + PluginVisualTableQuerySort: S.optional(PluginVisualTableQuerySort), + }), +).annotate({ + identifier: "PluginVisualSortConfiguration", +}) as any as S.Schema; export interface PluginVisualConfiguration { FieldWells?: PluginVisualFieldWell[]; VisualOptions?: PluginVisualOptions; @@ -9254,12 +9129,11 @@ export const SheetImageScalingType = /*@__PURE__*/ S.String; export interface SheetImageScalingConfiguration { ScalingType?: SheetImageScalingType; } -export const SheetImageScalingConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ScalingType: S.optional(SheetImageScalingType) }), - ).annotate({ - identifier: "SheetImageScalingConfiguration", - }) as any as S.Schema; +export const SheetImageScalingConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ ScalingType: S.optional(SheetImageScalingType) }), +).annotate({ + identifier: "SheetImageScalingConfiguration", +}) as any as S.Schema; export interface SheetImageTooltipText { PlainText?: string; } @@ -9272,15 +9146,14 @@ export interface SheetImageTooltipConfiguration { TooltipText?: SheetImageTooltipText; Visibility?: Visibility; } -export const SheetImageTooltipConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TooltipText: S.optional(SheetImageTooltipText), - Visibility: S.optional(Visibility), - }), - ).annotate({ - identifier: "SheetImageTooltipConfiguration", - }) as any as S.Schema; +export const SheetImageTooltipConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TooltipText: S.optional(SheetImageTooltipText), + Visibility: S.optional(Visibility), + }), +).annotate({ + identifier: "SheetImageTooltipConfiguration", +}) as any as S.Schema; export interface ImageMenuOption { AvailabilityStatus?: DashboardBehavior; } @@ -9314,8 +9187,9 @@ export const ImageCustomActionOperation = /*@__PURE__*/ S.suspend(() => identifier: "ImageCustomActionOperation", }) as any as S.Schema; export type ImageCustomActionOperationList = ImageCustomActionOperation[]; -export const ImageCustomActionOperationList = - /*@__PURE__*/ S.Array(ImageCustomActionOperation); +export const ImageCustomActionOperationList = /*@__PURE__*/ S.Array( + ImageCustomActionOperation, +); export interface ImageCustomAction { CustomActionId: string; Name: string; @@ -9371,29 +9245,24 @@ export interface GridLayoutElementBorderStyle { Color?: string; Width?: string; } -export const GridLayoutElementBorderStyle = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Visibility: S.optional(Visibility), - Color: S.optional(S.String), - Width: S.optional(S.String), - }), - ).annotate({ - identifier: "GridLayoutElementBorderStyle", - }) as any as S.Schema; +export const GridLayoutElementBorderStyle = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Visibility: S.optional(Visibility), + Color: S.optional(S.String), + Width: S.optional(S.String), + }), +).annotate({ + identifier: "GridLayoutElementBorderStyle", +}) as any as S.Schema; export interface GridLayoutElementBackgroundStyle { Visibility?: Visibility; Color?: string; } -export const GridLayoutElementBackgroundStyle = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Visibility: S.optional(Visibility), - Color: S.optional(S.String), - }), - ).annotate({ - identifier: "GridLayoutElementBackgroundStyle", - }) as any as S.Schema; +export const GridLayoutElementBackgroundStyle = /*@__PURE__*/ S.suspend(() => + S.Struct({ Visibility: S.optional(Visibility), Color: S.optional(S.String) }), +).annotate({ + identifier: "GridLayoutElementBackgroundStyle", +}) as any as S.Schema; export interface LoadingAnimation { Visibility?: Visibility; } @@ -9442,26 +9311,24 @@ export interface GridLayoutScreenCanvasSizeOptions { ResizeOption: ResizeOption; OptimizedViewPortWidth?: string; } -export const GridLayoutScreenCanvasSizeOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResizeOption: ResizeOption, - OptimizedViewPortWidth: S.optional(S.String), - }), - ).annotate({ - identifier: "GridLayoutScreenCanvasSizeOptions", - }) as any as S.Schema; +export const GridLayoutScreenCanvasSizeOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResizeOption: ResizeOption, + OptimizedViewPortWidth: S.optional(S.String), + }), +).annotate({ + identifier: "GridLayoutScreenCanvasSizeOptions", +}) as any as S.Schema; export interface GridLayoutCanvasSizeOptions { ScreenCanvasSizeOptions?: GridLayoutScreenCanvasSizeOptions; } -export const GridLayoutCanvasSizeOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ScreenCanvasSizeOptions: S.optional(GridLayoutScreenCanvasSizeOptions), - }), - ).annotate({ - identifier: "GridLayoutCanvasSizeOptions", - }) as any as S.Schema; +export const GridLayoutCanvasSizeOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ScreenCanvasSizeOptions: S.optional(GridLayoutScreenCanvasSizeOptions), + }), +).annotate({ + identifier: "GridLayoutCanvasSizeOptions", +}) as any as S.Schema; export interface GridLayoutConfiguration { Elements: GridLayoutElement[]; CanvasSizeOptions?: GridLayoutCanvasSizeOptions; @@ -9477,12 +9344,11 @@ export const GridLayoutConfiguration = /*@__PURE__*/ S.suspend(() => export interface SheetElementConfigurationOverrides { Visibility?: Visibility; } -export const SheetElementConfigurationOverrides = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Visibility: S.optional(Visibility) }), - ).annotate({ - identifier: "SheetElementConfigurationOverrides", - }) as any as S.Schema; +export const SheetElementConfigurationOverrides = /*@__PURE__*/ S.suspend(() => + S.Struct({ Visibility: S.optional(Visibility) }), +).annotate({ + identifier: "SheetElementConfigurationOverrides", +}) as any as S.Schema; export interface SheetElementRenderingRule { Expression: string | redacted.Redacted; ConfigurationOverrides: SheetElementConfigurationOverrides; @@ -9496,36 +9362,36 @@ export const SheetElementRenderingRule = /*@__PURE__*/ S.suspend(() => identifier: "SheetElementRenderingRule", }) as any as S.Schema; export type SheetElementRenderingRuleList = SheetElementRenderingRule[]; -export const SheetElementRenderingRuleList = - /*@__PURE__*/ S.Array(SheetElementRenderingRule); +export const SheetElementRenderingRuleList = /*@__PURE__*/ S.Array( + SheetElementRenderingRule, +); export interface FreeFormLayoutElementBorderStyle { Visibility?: Visibility; Color?: string; Width?: string; } -export const FreeFormLayoutElementBorderStyle = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Visibility: S.optional(Visibility), - Color: S.optional(S.String), - Width: S.optional(S.String), - }), - ).annotate({ - identifier: "FreeFormLayoutElementBorderStyle", - }) as any as S.Schema; +export const FreeFormLayoutElementBorderStyle = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Visibility: S.optional(Visibility), + Color: S.optional(S.String), + Width: S.optional(S.String), + }), +).annotate({ + identifier: "FreeFormLayoutElementBorderStyle", +}) as any as S.Schema; export interface FreeFormLayoutElementBackgroundStyle { Visibility?: Visibility; Color?: string; } -export const FreeFormLayoutElementBackgroundStyle = - /*@__PURE__*/ S.suspend(() => +export const FreeFormLayoutElementBackgroundStyle = /*@__PURE__*/ S.suspend( + () => S.Struct({ Visibility: S.optional(Visibility), Color: S.optional(S.String), }), - ).annotate({ - identifier: "FreeFormLayoutElementBackgroundStyle", - }) as any as S.Schema; +).annotate({ + identifier: "FreeFormLayoutElementBackgroundStyle", +}) as any as S.Schema; export interface FreeFormLayoutElement { ElementId: string; ElementType: LayoutElementType; @@ -9569,25 +9435,21 @@ export const FreeFromLayoutElementList = /*@__PURE__*/ S.Array( export interface FreeFormLayoutScreenCanvasSizeOptions { OptimizedViewPortWidth: string; } -export const FreeFormLayoutScreenCanvasSizeOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ OptimizedViewPortWidth: S.String }), - ).annotate({ - identifier: "FreeFormLayoutScreenCanvasSizeOptions", - }) as any as S.Schema; +export const FreeFormLayoutScreenCanvasSizeOptions = /*@__PURE__*/ S.suspend( + () => S.Struct({ OptimizedViewPortWidth: S.String }), +).annotate({ + identifier: "FreeFormLayoutScreenCanvasSizeOptions", +}) as any as S.Schema; export interface FreeFormLayoutCanvasSizeOptions { ScreenCanvasSizeOptions?: FreeFormLayoutScreenCanvasSizeOptions; } -export const FreeFormLayoutCanvasSizeOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ScreenCanvasSizeOptions: S.optional( - FreeFormLayoutScreenCanvasSizeOptions, - ), - }), - ).annotate({ - identifier: "FreeFormLayoutCanvasSizeOptions", - }) as any as S.Schema; +export const FreeFormLayoutCanvasSizeOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ScreenCanvasSizeOptions: S.optional(FreeFormLayoutScreenCanvasSizeOptions), + }), +).annotate({ + identifier: "FreeFormLayoutCanvasSizeOptions", +}) as any as S.Schema; export type SheetLayoutGroupMemberType = "ELEMENT" | "GROUP" | (string & {}); export const SheetLayoutGroupMemberType = /*@__PURE__*/ S.String; export interface SheetLayoutGroupMember { @@ -9619,25 +9481,23 @@ export interface FreeFormLayoutConfiguration { CanvasSizeOptions?: FreeFormLayoutCanvasSizeOptions; Groups?: SheetLayoutGroup[]; } -export const FreeFormLayoutConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Elements: FreeFromLayoutElementList, - CanvasSizeOptions: S.optional(FreeFormLayoutCanvasSizeOptions), - Groups: S.optional(SheetLayoutGroupList), - }), - ).annotate({ - identifier: "FreeFormLayoutConfiguration", - }) as any as S.Schema; +export const FreeFormLayoutConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Elements: FreeFromLayoutElementList, + CanvasSizeOptions: S.optional(FreeFormLayoutCanvasSizeOptions), + Groups: S.optional(SheetLayoutGroupList), + }), +).annotate({ + identifier: "FreeFormLayoutConfiguration", +}) as any as S.Schema; export interface FreeFormSectionLayoutConfiguration { Elements: FreeFormLayoutElement[]; } -export const FreeFormSectionLayoutConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Elements: FreeFromLayoutElementList }), - ).annotate({ - identifier: "FreeFormSectionLayoutConfiguration", - }) as any as S.Schema; +export const FreeFormSectionLayoutConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ Elements: FreeFromLayoutElementList }), +).annotate({ + identifier: "FreeFormSectionLayoutConfiguration", +}) as any as S.Schema; export interface SectionLayoutConfiguration { FreeFormLayout: FreeFormSectionLayoutConfiguration; } @@ -9672,20 +9532,20 @@ export interface HeaderFooterSectionConfiguration { Layout: SectionLayoutConfiguration; Style?: SectionStyle; } -export const HeaderFooterSectionConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SectionId: S.String, - Layout: SectionLayoutConfiguration, - Style: S.optional(SectionStyle), - }), - ).annotate({ - identifier: "HeaderFooterSectionConfiguration", - }) as any as S.Schema; +export const HeaderFooterSectionConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SectionId: S.String, + Layout: SectionLayoutConfiguration, + Style: S.optional(SectionStyle), + }), +).annotate({ + identifier: "HeaderFooterSectionConfiguration", +}) as any as S.Schema; export type HeaderFooterSectionConfigurationList = HeaderFooterSectionConfiguration[]; -export const HeaderFooterSectionConfigurationList = - /*@__PURE__*/ S.Array(HeaderFooterSectionConfiguration); +export const HeaderFooterSectionConfigurationList = /*@__PURE__*/ S.Array( + HeaderFooterSectionConfiguration, +); export interface BodySectionContent { Layout?: SectionLayoutConfiguration; } @@ -9707,12 +9567,11 @@ export const SectionAfterPageBreak = /*@__PURE__*/ S.suspend(() => export interface SectionPageBreakConfiguration { After?: SectionAfterPageBreak; } -export const SectionPageBreakConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ After: S.optional(SectionAfterPageBreak) }), - ).annotate({ - identifier: "SectionPageBreakConfiguration", - }) as any as S.Schema; +export const SectionPageBreakConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ After: S.optional(SectionAfterPageBreak) }), +).annotate({ + identifier: "SectionPageBreakConfiguration", +}) as any as S.Schema; export type BodySectionDynamicDimensionSortConfigurationList = ColumnSort[]; export const BodySectionDynamicDimensionSortConfigurationList = /*@__PURE__*/ S.Array(ColumnSort); @@ -9754,8 +9613,8 @@ export interface BodySectionRepeatDimensionConfiguration { DynamicCategoryDimensionConfiguration?: BodySectionDynamicCategoryDimensionConfiguration; DynamicNumericDimensionConfiguration?: BodySectionDynamicNumericDimensionConfiguration; } -export const BodySectionRepeatDimensionConfiguration = - /*@__PURE__*/ S.suspend(() => +export const BodySectionRepeatDimensionConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ DynamicCategoryDimensionConfiguration: S.optional( BodySectionDynamicCategoryDimensionConfiguration, @@ -9764,9 +9623,9 @@ export const BodySectionRepeatDimensionConfiguration = BodySectionDynamicNumericDimensionConfiguration, ), }), - ).annotate({ - identifier: "BodySectionRepeatDimensionConfiguration", - }) as any as S.Schema; +).annotate({ + identifier: "BodySectionRepeatDimensionConfiguration", +}) as any as S.Schema; export type BodySectionRepeatDimensionConfigurationList = BodySectionRepeatDimensionConfiguration[]; export const BodySectionRepeatDimensionConfigurationList = @@ -9774,12 +9633,11 @@ export const BodySectionRepeatDimensionConfigurationList = export interface BodySectionRepeatPageBreakConfiguration { After?: SectionAfterPageBreak; } -export const BodySectionRepeatPageBreakConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ After: S.optional(SectionAfterPageBreak) }), - ).annotate({ - identifier: "BodySectionRepeatPageBreakConfiguration", - }) as any as S.Schema; +export const BodySectionRepeatPageBreakConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ After: S.optional(SectionAfterPageBreak) }), +).annotate({ + identifier: "BodySectionRepeatPageBreakConfiguration", +}) as any as S.Schema; export type NonRepeatingVisualsList = string[]; export const NonRepeatingVisualsList = /*@__PURE__*/ S.Array(S.String); export interface BodySectionRepeatConfiguration { @@ -9787,20 +9645,17 @@ export interface BodySectionRepeatConfiguration { PageBreakConfiguration?: BodySectionRepeatPageBreakConfiguration; NonRepeatingVisuals?: string[]; } -export const BodySectionRepeatConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DimensionConfigurations: S.optional( - BodySectionRepeatDimensionConfigurationList, - ), - PageBreakConfiguration: S.optional( - BodySectionRepeatPageBreakConfiguration, - ), - NonRepeatingVisuals: S.optional(NonRepeatingVisualsList), - }), - ).annotate({ - identifier: "BodySectionRepeatConfiguration", - }) as any as S.Schema; +export const BodySectionRepeatConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DimensionConfigurations: S.optional( + BodySectionRepeatDimensionConfigurationList, + ), + PageBreakConfiguration: S.optional(BodySectionRepeatPageBreakConfiguration), + NonRepeatingVisuals: S.optional(NonRepeatingVisualsList), + }), +).annotate({ + identifier: "BodySectionRepeatConfiguration", +}) as any as S.Schema; export interface BodySectionConfiguration { SectionId: string; Content: BodySectionContent; @@ -9844,46 +9699,44 @@ export interface SectionBasedLayoutPaperCanvasSizeOptions { PaperOrientation?: PaperOrientation; PaperMargin?: Spacing; } -export const SectionBasedLayoutPaperCanvasSizeOptions = - /*@__PURE__*/ S.suspend(() => +export const SectionBasedLayoutPaperCanvasSizeOptions = /*@__PURE__*/ S.suspend( + () => S.Struct({ PaperSize: S.optional(PaperSize), PaperOrientation: S.optional(PaperOrientation), PaperMargin: S.optional(Spacing), }), - ).annotate({ - identifier: "SectionBasedLayoutPaperCanvasSizeOptions", - }) as any as S.Schema; +).annotate({ + identifier: "SectionBasedLayoutPaperCanvasSizeOptions", +}) as any as S.Schema; export interface SectionBasedLayoutCanvasSizeOptions { PaperCanvasSizeOptions?: SectionBasedLayoutPaperCanvasSizeOptions; } -export const SectionBasedLayoutCanvasSizeOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - PaperCanvasSizeOptions: S.optional( - SectionBasedLayoutPaperCanvasSizeOptions, - ), - }), - ).annotate({ - identifier: "SectionBasedLayoutCanvasSizeOptions", - }) as any as S.Schema; +export const SectionBasedLayoutCanvasSizeOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + PaperCanvasSizeOptions: S.optional( + SectionBasedLayoutPaperCanvasSizeOptions, + ), + }), +).annotate({ + identifier: "SectionBasedLayoutCanvasSizeOptions", +}) as any as S.Schema; export interface SectionBasedLayoutConfiguration { HeaderSections: HeaderFooterSectionConfiguration[]; BodySections: BodySectionConfiguration[]; FooterSections: HeaderFooterSectionConfiguration[]; CanvasSizeOptions: SectionBasedLayoutCanvasSizeOptions; } -export const SectionBasedLayoutConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - HeaderSections: HeaderFooterSectionConfigurationList, - BodySections: BodySectionConfigurationList, - FooterSections: HeaderFooterSectionConfigurationList, - CanvasSizeOptions: SectionBasedLayoutCanvasSizeOptions, - }), - ).annotate({ - identifier: "SectionBasedLayoutConfiguration", - }) as any as S.Schema; +export const SectionBasedLayoutConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + HeaderSections: HeaderFooterSectionConfigurationList, + BodySections: BodySectionConfigurationList, + FooterSections: HeaderFooterSectionConfigurationList, + CanvasSizeOptions: SectionBasedLayoutCanvasSizeOptions, + }), +).annotate({ + identifier: "SectionBasedLayoutConfiguration", +}) as any as S.Schema; export interface LayoutConfiguration { GridLayout?: GridLayoutConfiguration; FreeFormLayout?: FreeFormLayoutConfiguration; @@ -9909,12 +9762,11 @@ export const LayoutList = /*@__PURE__*/ S.Array(Layout); export interface SheetControlLayoutConfiguration { GridLayout?: GridLayoutConfiguration; } -export const SheetControlLayoutConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ GridLayout: S.optional(GridLayoutConfiguration) }), - ).annotate({ - identifier: "SheetControlLayoutConfiguration", - }) as any as S.Schema; +export const SheetControlLayoutConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ GridLayout: S.optional(GridLayoutConfiguration) }), +).annotate({ + identifier: "SheetControlLayoutConfiguration", +}) as any as S.Schema; export interface SheetControlLayout { Configuration: SheetControlLayoutConfiguration; } @@ -10052,7 +9904,7 @@ export const DynamicDefaultValue = /*@__PURE__*/ S.suspend(() => }) as any as S.Schema; export interface StringDefaultValues { DynamicValue?: DynamicDefaultValue; - StaticValues?: string | redacted.Redacted[]; + StaticValues?: (string | redacted.Redacted)[]; } export const StringDefaultValues = /*@__PURE__*/ S.suspend(() => S.Struct({ @@ -10068,15 +9920,14 @@ export interface StringValueWhenUnsetConfiguration { ValueWhenUnsetOption?: ValueWhenUnsetOption; CustomValue?: string | redacted.Redacted; } -export const StringValueWhenUnsetConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ValueWhenUnsetOption: S.optional(ValueWhenUnsetOption), - CustomValue: S.optional(SensitiveString), - }), - ).annotate({ - identifier: "StringValueWhenUnsetConfiguration", - }) as any as S.Schema; +export const StringValueWhenUnsetConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ValueWhenUnsetOption: S.optional(ValueWhenUnsetOption), + CustomValue: S.optional(SensitiveString), + }), +).annotate({ + identifier: "StringValueWhenUnsetConfiguration", +}) as any as S.Schema; export interface MappedDataSetParameter { DataSetIdentifier: string; DataSetParameterName: string; @@ -10124,15 +9975,14 @@ export interface DecimalValueWhenUnsetConfiguration { ValueWhenUnsetOption?: ValueWhenUnsetOption; CustomValue?: number; } -export const DecimalValueWhenUnsetConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ValueWhenUnsetOption: S.optional(ValueWhenUnsetOption), - CustomValue: S.optional(S.Number), - }), - ).annotate({ - identifier: "DecimalValueWhenUnsetConfiguration", - }) as any as S.Schema; +export const DecimalValueWhenUnsetConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ValueWhenUnsetOption: S.optional(ValueWhenUnsetOption), + CustomValue: S.optional(S.Number), + }), +).annotate({ + identifier: "DecimalValueWhenUnsetConfiguration", +}) as any as S.Schema; export interface DecimalParameterDeclaration { ParameterValueType: ParameterValueType; Name: string; @@ -10140,18 +9990,17 @@ export interface DecimalParameterDeclaration { ValueWhenUnset?: DecimalValueWhenUnsetConfiguration; MappedDataSetParameters?: MappedDataSetParameter[]; } -export const DecimalParameterDeclaration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ParameterValueType: ParameterValueType, - Name: S.String, - DefaultValues: S.optional(DecimalDefaultValues), - ValueWhenUnset: S.optional(DecimalValueWhenUnsetConfiguration), - MappedDataSetParameters: S.optional(MappedDataSetParameters), - }), - ).annotate({ - identifier: "DecimalParameterDeclaration", - }) as any as S.Schema; +export const DecimalParameterDeclaration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ParameterValueType: ParameterValueType, + Name: S.String, + DefaultValues: S.optional(DecimalDefaultValues), + ValueWhenUnset: S.optional(DecimalValueWhenUnsetConfiguration), + MappedDataSetParameters: S.optional(MappedDataSetParameters), + }), +).annotate({ + identifier: "DecimalParameterDeclaration", +}) as any as S.Schema; export interface IntegerDefaultValues { DynamicValue?: DynamicDefaultValue; StaticValues?: number[]; @@ -10168,15 +10017,14 @@ export interface IntegerValueWhenUnsetConfiguration { ValueWhenUnsetOption?: ValueWhenUnsetOption; CustomValue?: number; } -export const IntegerValueWhenUnsetConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ValueWhenUnsetOption: S.optional(ValueWhenUnsetOption), - CustomValue: S.optional(S.Number), - }), - ).annotate({ - identifier: "IntegerValueWhenUnsetConfiguration", - }) as any as S.Schema; +export const IntegerValueWhenUnsetConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ValueWhenUnsetOption: S.optional(ValueWhenUnsetOption), + CustomValue: S.optional(S.Number), + }), +).annotate({ + identifier: "IntegerValueWhenUnsetConfiguration", +}) as any as S.Schema; export interface IntegerParameterDeclaration { ParameterValueType: ParameterValueType; Name: string; @@ -10184,18 +10032,17 @@ export interface IntegerParameterDeclaration { ValueWhenUnset?: IntegerValueWhenUnsetConfiguration; MappedDataSetParameters?: MappedDataSetParameter[]; } -export const IntegerParameterDeclaration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ParameterValueType: ParameterValueType, - Name: S.String, - DefaultValues: S.optional(IntegerDefaultValues), - ValueWhenUnset: S.optional(IntegerValueWhenUnsetConfiguration), - MappedDataSetParameters: S.optional(MappedDataSetParameters), - }), - ).annotate({ - identifier: "IntegerParameterDeclaration", - }) as any as S.Schema; +export const IntegerParameterDeclaration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ParameterValueType: ParameterValueType, + Name: S.String, + DefaultValues: S.optional(IntegerDefaultValues), + ValueWhenUnset: S.optional(IntegerValueWhenUnsetConfiguration), + MappedDataSetParameters: S.optional(MappedDataSetParameters), + }), +).annotate({ + identifier: "IntegerParameterDeclaration", +}) as any as S.Schema; export interface RollingDateConfiguration { DataSetIdentifier?: string; Expression: string | redacted.Redacted; @@ -10226,15 +10073,14 @@ export interface DateTimeValueWhenUnsetConfiguration { ValueWhenUnsetOption?: ValueWhenUnsetOption; CustomValue?: Date; } -export const DateTimeValueWhenUnsetConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ValueWhenUnsetOption: S.optional(ValueWhenUnsetOption), - CustomValue: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - }), - ).annotate({ - identifier: "DateTimeValueWhenUnsetConfiguration", - }) as any as S.Schema; +export const DateTimeValueWhenUnsetConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ValueWhenUnsetOption: S.optional(ValueWhenUnsetOption), + CustomValue: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + }), +).annotate({ + identifier: "DateTimeValueWhenUnsetConfiguration", +}) as any as S.Schema; export interface DateTimeParameterDeclaration { Name: string; DefaultValues?: DateTimeDefaultValues; @@ -10242,18 +10088,17 @@ export interface DateTimeParameterDeclaration { ValueWhenUnset?: DateTimeValueWhenUnsetConfiguration; MappedDataSetParameters?: MappedDataSetParameter[]; } -export const DateTimeParameterDeclaration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Name: S.String, - DefaultValues: S.optional(DateTimeDefaultValues), - TimeGranularity: S.optional(TimeGranularity), - ValueWhenUnset: S.optional(DateTimeValueWhenUnsetConfiguration), - MappedDataSetParameters: S.optional(MappedDataSetParameters), - }), - ).annotate({ - identifier: "DateTimeParameterDeclaration", - }) as any as S.Schema; +export const DateTimeParameterDeclaration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.String, + DefaultValues: S.optional(DateTimeDefaultValues), + TimeGranularity: S.optional(TimeGranularity), + ValueWhenUnset: S.optional(DateTimeValueWhenUnsetConfiguration), + MappedDataSetParameters: S.optional(MappedDataSetParameters), + }), +).annotate({ + identifier: "DateTimeParameterDeclaration", +}) as any as S.Schema; export interface ParameterDeclaration { StringParameterDeclaration?: StringParameterDeclaration; DecimalParameterDeclaration?: DecimalParameterDeclaration; @@ -10314,17 +10159,16 @@ export interface CustomFilterListConfiguration { SelectAllOptions?: CategoryFilterSelectAllOptions; NullOption: FilterNullOption; } -export const CustomFilterListConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - MatchOperator: CategoryFilterMatchOperator, - CategoryValues: S.optional(CategoryValueList), - SelectAllOptions: S.optional(CategoryFilterSelectAllOptions), - NullOption: FilterNullOption, - }), - ).annotate({ - identifier: "CustomFilterListConfiguration", - }) as any as S.Schema; +export const CustomFilterListConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + MatchOperator: CategoryFilterMatchOperator, + CategoryValues: S.optional(CategoryValueList), + SelectAllOptions: S.optional(CategoryFilterSelectAllOptions), + NullOption: FilterNullOption, + }), +).annotate({ + identifier: "CustomFilterListConfiguration", +}) as any as S.Schema; export interface CustomFilterConfiguration { MatchOperator: CategoryFilterMatchOperator; CategoryValue?: string; @@ -10348,48 +10192,45 @@ export interface CategoryFilterConfiguration { CustomFilterListConfiguration?: CustomFilterListConfiguration; CustomFilterConfiguration?: CustomFilterConfiguration; } -export const CategoryFilterConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - FilterListConfiguration: S.optional(FilterListConfiguration), - CustomFilterListConfiguration: S.optional(CustomFilterListConfiguration), - CustomFilterConfiguration: S.optional(CustomFilterConfiguration), - }), - ).annotate({ - identifier: "CategoryFilterConfiguration", - }) as any as S.Schema; +export const CategoryFilterConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + FilterListConfiguration: S.optional(FilterListConfiguration), + CustomFilterListConfiguration: S.optional(CustomFilterListConfiguration), + CustomFilterConfiguration: S.optional(CustomFilterConfiguration), + }), +).annotate({ + identifier: "CategoryFilterConfiguration", +}) as any as S.Schema; export interface DefaultDateTimePickerControlOptions { Type?: SheetControlDateTimePickerType; DisplayOptions?: DateTimePickerControlDisplayOptions; CommitMode?: CommitMode; } -export const DefaultDateTimePickerControlOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Type: S.optional(SheetControlDateTimePickerType), - DisplayOptions: S.optional(DateTimePickerControlDisplayOptions), - CommitMode: S.optional(CommitMode), - }), - ).annotate({ - identifier: "DefaultDateTimePickerControlOptions", - }) as any as S.Schema; +export const DefaultDateTimePickerControlOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Type: S.optional(SheetControlDateTimePickerType), + DisplayOptions: S.optional(DateTimePickerControlDisplayOptions), + CommitMode: S.optional(CommitMode), + }), +).annotate({ + identifier: "DefaultDateTimePickerControlOptions", +}) as any as S.Schema; export interface DefaultFilterListControlOptions { DisplayOptions?: ListControlDisplayOptions; Type?: SheetControlListType; SelectableValues?: FilterSelectableValues; ControlSortConfigurations?: ControlSortConfiguration[]; } -export const DefaultFilterListControlOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DisplayOptions: S.optional(ListControlDisplayOptions), - Type: S.optional(SheetControlListType), - SelectableValues: S.optional(FilterSelectableValues), - ControlSortConfigurations: S.optional(ControlSortConfigurationList), - }), - ).annotate({ - identifier: "DefaultFilterListControlOptions", - }) as any as S.Schema; +export const DefaultFilterListControlOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DisplayOptions: S.optional(ListControlDisplayOptions), + Type: S.optional(SheetControlListType), + SelectableValues: S.optional(FilterSelectableValues), + ControlSortConfigurations: S.optional(ControlSortConfigurationList), + }), +).annotate({ + identifier: "DefaultFilterListControlOptions", +}) as any as S.Schema; export interface DefaultFilterDropDownControlOptions { DisplayOptions?: DropDownControlDisplayOptions; Type?: SheetControlListType; @@ -10397,40 +10238,37 @@ export interface DefaultFilterDropDownControlOptions { CommitMode?: CommitMode; ControlSortConfigurations?: ControlSortConfiguration[]; } -export const DefaultFilterDropDownControlOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DisplayOptions: S.optional(DropDownControlDisplayOptions), - Type: S.optional(SheetControlListType), - SelectableValues: S.optional(FilterSelectableValues), - CommitMode: S.optional(CommitMode), - ControlSortConfigurations: S.optional(ControlSortConfigurationList), - }), - ).annotate({ - identifier: "DefaultFilterDropDownControlOptions", - }) as any as S.Schema; +export const DefaultFilterDropDownControlOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DisplayOptions: S.optional(DropDownControlDisplayOptions), + Type: S.optional(SheetControlListType), + SelectableValues: S.optional(FilterSelectableValues), + CommitMode: S.optional(CommitMode), + ControlSortConfigurations: S.optional(ControlSortConfigurationList), + }), +).annotate({ + identifier: "DefaultFilterDropDownControlOptions", +}) as any as S.Schema; export interface DefaultTextFieldControlOptions { DisplayOptions?: TextFieldControlDisplayOptions; } -export const DefaultTextFieldControlOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DisplayOptions: S.optional(TextFieldControlDisplayOptions) }), - ).annotate({ - identifier: "DefaultTextFieldControlOptions", - }) as any as S.Schema; +export const DefaultTextFieldControlOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ DisplayOptions: S.optional(TextFieldControlDisplayOptions) }), +).annotate({ + identifier: "DefaultTextFieldControlOptions", +}) as any as S.Schema; export interface DefaultTextAreaControlOptions { Delimiter?: string; DisplayOptions?: TextAreaControlDisplayOptions; } -export const DefaultTextAreaControlOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Delimiter: S.optional(S.String), - DisplayOptions: S.optional(TextAreaControlDisplayOptions), - }), - ).annotate({ - identifier: "DefaultTextAreaControlOptions", - }) as any as S.Schema; +export const DefaultTextAreaControlOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Delimiter: S.optional(S.String), + DisplayOptions: S.optional(TextAreaControlDisplayOptions), + }), +).annotate({ + identifier: "DefaultTextAreaControlOptions", +}) as any as S.Schema; export interface DefaultSliderControlOptions { DisplayOptions?: SliderControlDisplayOptions; Type?: SheetControlSliderType; @@ -10438,31 +10276,30 @@ export interface DefaultSliderControlOptions { MinimumValue: number; StepSize: number; } -export const DefaultSliderControlOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DisplayOptions: S.optional(SliderControlDisplayOptions), - Type: S.optional(SheetControlSliderType), - MaximumValue: S.Number, - MinimumValue: S.Number, - StepSize: S.Number, - }), - ).annotate({ - identifier: "DefaultSliderControlOptions", - }) as any as S.Schema; +export const DefaultSliderControlOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DisplayOptions: S.optional(SliderControlDisplayOptions), + Type: S.optional(SheetControlSliderType), + MaximumValue: S.Number, + MinimumValue: S.Number, + StepSize: S.Number, + }), +).annotate({ + identifier: "DefaultSliderControlOptions", +}) as any as S.Schema; export interface DefaultRelativeDateTimeControlOptions { DisplayOptions?: RelativeDateTimeControlDisplayOptions; CommitMode?: CommitMode; } -export const DefaultRelativeDateTimeControlOptions = - /*@__PURE__*/ S.suspend(() => +export const DefaultRelativeDateTimeControlOptions = /*@__PURE__*/ S.suspend( + () => S.Struct({ DisplayOptions: S.optional(RelativeDateTimeControlDisplayOptions), CommitMode: S.optional(CommitMode), }), - ).annotate({ - identifier: "DefaultRelativeDateTimeControlOptions", - }) as any as S.Schema; +).annotate({ + identifier: "DefaultRelativeDateTimeControlOptions", +}) as any as S.Schema; export interface DefaultFilterControlOptions { DefaultDateTimePickerOptions?: DefaultDateTimePickerControlOptions; DefaultListOptions?: DefaultFilterListControlOptions; @@ -10472,39 +10309,37 @@ export interface DefaultFilterControlOptions { DefaultSliderOptions?: DefaultSliderControlOptions; DefaultRelativeDateTimeOptions?: DefaultRelativeDateTimeControlOptions; } -export const DefaultFilterControlOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DefaultDateTimePickerOptions: S.optional( - DefaultDateTimePickerControlOptions, - ), - DefaultListOptions: S.optional(DefaultFilterListControlOptions), - DefaultDropdownOptions: S.optional(DefaultFilterDropDownControlOptions), - DefaultTextFieldOptions: S.optional(DefaultTextFieldControlOptions), - DefaultTextAreaOptions: S.optional(DefaultTextAreaControlOptions), - DefaultSliderOptions: S.optional(DefaultSliderControlOptions), - DefaultRelativeDateTimeOptions: S.optional( - DefaultRelativeDateTimeControlOptions, - ), - }), - ).annotate({ - identifier: "DefaultFilterControlOptions", - }) as any as S.Schema; +export const DefaultFilterControlOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DefaultDateTimePickerOptions: S.optional( + DefaultDateTimePickerControlOptions, + ), + DefaultListOptions: S.optional(DefaultFilterListControlOptions), + DefaultDropdownOptions: S.optional(DefaultFilterDropDownControlOptions), + DefaultTextFieldOptions: S.optional(DefaultTextFieldControlOptions), + DefaultTextAreaOptions: S.optional(DefaultTextAreaControlOptions), + DefaultSliderOptions: S.optional(DefaultSliderControlOptions), + DefaultRelativeDateTimeOptions: S.optional( + DefaultRelativeDateTimeControlOptions, + ), + }), +).annotate({ + identifier: "DefaultFilterControlOptions", +}) as any as S.Schema; export interface DefaultFilterControlConfiguration { Title?: string; ControlOptions: DefaultFilterControlOptions; ControlTitleFormatText?: ControlTitleFormatText; } -export const DefaultFilterControlConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Title: S.optional(S.String), - ControlOptions: DefaultFilterControlOptions, - ControlTitleFormatText: S.optional(ControlTitleFormatText), - }), - ).annotate({ - identifier: "DefaultFilterControlConfiguration", - }) as any as S.Schema; +export const DefaultFilterControlConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Title: S.optional(S.String), + ControlOptions: DefaultFilterControlOptions, + ControlTitleFormatText: S.optional(ControlTitleFormatText), + }), +).annotate({ + identifier: "DefaultFilterControlConfiguration", +}) as any as S.Schema; export interface CategoryFilter { FilterId: string; Column: ColumnIdentifier; @@ -10735,8 +10570,9 @@ export const RelativeDatesFilter = /*@__PURE__*/ S.suspend(() => identifier: "RelativeDatesFilter", }) as any as S.Schema; export type AggregationSortConfigurationList = AggregationSortConfiguration[]; -export const AggregationSortConfigurationList = - /*@__PURE__*/ S.Array(AggregationSortConfiguration); +export const AggregationSortConfigurationList = /*@__PURE__*/ S.Array( + AggregationSortConfiguration, +); export interface TopBottomFilter { FilterId: string; Column: ColumnIdentifier; @@ -10833,38 +10669,39 @@ export interface SheetVisualScopingConfiguration { Scope: FilterVisualScope; VisualIds?: string[]; } -export const SheetVisualScopingConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SheetId: S.String, - Scope: FilterVisualScope, - VisualIds: S.optional(FilteredVisualsList), - }), - ).annotate({ - identifier: "SheetVisualScopingConfiguration", - }) as any as S.Schema; +export const SheetVisualScopingConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SheetId: S.String, + Scope: FilterVisualScope, + VisualIds: S.optional(FilteredVisualsList), + }), +).annotate({ + identifier: "SheetVisualScopingConfiguration", +}) as any as S.Schema; export type SheetVisualScopingConfigurations = SheetVisualScopingConfiguration[]; -export const SheetVisualScopingConfigurations = - /*@__PURE__*/ S.Array(SheetVisualScopingConfiguration); +export const SheetVisualScopingConfigurations = /*@__PURE__*/ S.Array( + SheetVisualScopingConfiguration, +); export interface SelectedSheetsFilterScopeConfiguration { SheetVisualScopingConfigurations?: SheetVisualScopingConfiguration[]; } -export const SelectedSheetsFilterScopeConfiguration = - /*@__PURE__*/ S.suspend(() => +export const SelectedSheetsFilterScopeConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ SheetVisualScopingConfigurations: S.optional( SheetVisualScopingConfigurations, ), }), - ).annotate({ - identifier: "SelectedSheetsFilterScopeConfiguration", - }) as any as S.Schema; +).annotate({ + identifier: "SelectedSheetsFilterScopeConfiguration", +}) as any as S.Schema; export interface AllSheetsFilterScopeConfiguration {} -export const AllSheetsFilterScopeConfiguration = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "AllSheetsFilterScopeConfiguration", - }) as any as S.Schema; +export const AllSheetsFilterScopeConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "AllSheetsFilterScopeConfiguration", +}) as any as S.Schema; export interface FilterScopeConfiguration { SelectedSheets?: SelectedSheetsFilterScopeConfiguration; AllSheets?: AllSheetsFilterScopeConfiguration; @@ -10960,73 +10797,68 @@ export const ColumnConfigurationList = export interface DefaultGridLayoutConfiguration { CanvasSizeOptions: GridLayoutCanvasSizeOptions; } -export const DefaultGridLayoutConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ CanvasSizeOptions: GridLayoutCanvasSizeOptions }), - ).annotate({ - identifier: "DefaultGridLayoutConfiguration", - }) as any as S.Schema; +export const DefaultGridLayoutConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ CanvasSizeOptions: GridLayoutCanvasSizeOptions }), +).annotate({ + identifier: "DefaultGridLayoutConfiguration", +}) as any as S.Schema; export interface DefaultFreeFormLayoutConfiguration { CanvasSizeOptions: FreeFormLayoutCanvasSizeOptions; } -export const DefaultFreeFormLayoutConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ CanvasSizeOptions: FreeFormLayoutCanvasSizeOptions }), - ).annotate({ - identifier: "DefaultFreeFormLayoutConfiguration", - }) as any as S.Schema; +export const DefaultFreeFormLayoutConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ CanvasSizeOptions: FreeFormLayoutCanvasSizeOptions }), +).annotate({ + identifier: "DefaultFreeFormLayoutConfiguration", +}) as any as S.Schema; export interface DefaultInteractiveLayoutConfiguration { Grid?: DefaultGridLayoutConfiguration; FreeForm?: DefaultFreeFormLayoutConfiguration; } -export const DefaultInteractiveLayoutConfiguration = - /*@__PURE__*/ S.suspend(() => +export const DefaultInteractiveLayoutConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ Grid: S.optional(DefaultGridLayoutConfiguration), FreeForm: S.optional(DefaultFreeFormLayoutConfiguration), }), - ).annotate({ - identifier: "DefaultInteractiveLayoutConfiguration", - }) as any as S.Schema; +).annotate({ + identifier: "DefaultInteractiveLayoutConfiguration", +}) as any as S.Schema; export interface DefaultSectionBasedLayoutConfiguration { CanvasSizeOptions: SectionBasedLayoutCanvasSizeOptions; } -export const DefaultSectionBasedLayoutConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ CanvasSizeOptions: SectionBasedLayoutCanvasSizeOptions }), - ).annotate({ - identifier: "DefaultSectionBasedLayoutConfiguration", - }) as any as S.Schema; +export const DefaultSectionBasedLayoutConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ CanvasSizeOptions: SectionBasedLayoutCanvasSizeOptions }), +).annotate({ + identifier: "DefaultSectionBasedLayoutConfiguration", +}) as any as S.Schema; export interface DefaultPaginatedLayoutConfiguration { SectionBased?: DefaultSectionBasedLayoutConfiguration; } -export const DefaultPaginatedLayoutConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SectionBased: S.optional(DefaultSectionBasedLayoutConfiguration), - }), - ).annotate({ - identifier: "DefaultPaginatedLayoutConfiguration", - }) as any as S.Schema; +export const DefaultPaginatedLayoutConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SectionBased: S.optional(DefaultSectionBasedLayoutConfiguration), + }), +).annotate({ + identifier: "DefaultPaginatedLayoutConfiguration", +}) as any as S.Schema; export interface DefaultNewSheetConfiguration { InteractiveLayoutConfiguration?: DefaultInteractiveLayoutConfiguration; PaginatedLayoutConfiguration?: DefaultPaginatedLayoutConfiguration; SheetContentType?: SheetContentType; } -export const DefaultNewSheetConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - InteractiveLayoutConfiguration: S.optional( - DefaultInteractiveLayoutConfiguration, - ), - PaginatedLayoutConfiguration: S.optional( - DefaultPaginatedLayoutConfiguration, - ), - SheetContentType: S.optional(SheetContentType), - }), - ).annotate({ - identifier: "DefaultNewSheetConfiguration", - }) as any as S.Schema; +export const DefaultNewSheetConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + InteractiveLayoutConfiguration: S.optional( + DefaultInteractiveLayoutConfiguration, + ), + PaginatedLayoutConfiguration: S.optional( + DefaultPaginatedLayoutConfiguration, + ), + SheetContentType: S.optional(SheetContentType), + }), +).annotate({ + identifier: "DefaultNewSheetConfiguration", +}) as any as S.Schema; export interface AnalysisDefaults { DefaultNewSheetConfiguration: DefaultNewSheetConfiguration; } @@ -11971,44 +11803,42 @@ export interface CreateCustomPermissionsRequest { Capabilities?: Capabilities; Tags?: Tag[]; } -export const CreateCustomPermissionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - CustomPermissionsName: S.String, - Capabilities: S.optional(Capabilities), - Tags: S.optional(TagList), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/accounts/{AwsAccountId}/custom-permissions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateCustomPermissionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + CustomPermissionsName: S.String, + Capabilities: S.optional(Capabilities), + Tags: S.optional(TagList), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/accounts/{AwsAccountId}/custom-permissions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateCustomPermissionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateCustomPermissionsRequest", +}) as any as S.Schema; export interface CreateCustomPermissionsResponse { Status?: number; Arn?: string; RequestId?: string; } -export const CreateCustomPermissionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Status: S.optional(S.Number), - Arn: S.optional(S.String), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "CreateCustomPermissionsResponse", - }) as any as S.Schema; +export const CreateCustomPermissionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Status: S.optional(S.Number), + Arn: S.optional(S.String), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "CreateCustomPermissionsResponse", +}) as any as S.Schema; export interface DashboardSourceTemplate { DataSetReferences: DataSetReference[]; Arn: string; @@ -12063,23 +11893,19 @@ export const ExportHiddenFieldsOption = /*@__PURE__*/ S.suspend(() => export interface DashboardVisualPublishOptions { ExportHiddenFieldsOption?: ExportHiddenFieldsOption; } -export const DashboardVisualPublishOptions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ExportHiddenFieldsOption: S.optional(ExportHiddenFieldsOption), - }), - ).annotate({ - identifier: "DashboardVisualPublishOptions", - }) as any as S.Schema; +export const DashboardVisualPublishOptions = /*@__PURE__*/ S.suspend(() => + S.Struct({ ExportHiddenFieldsOption: S.optional(ExportHiddenFieldsOption) }), +).annotate({ + identifier: "DashboardVisualPublishOptions", +}) as any as S.Schema; export interface SheetLayoutElementMaximizationOption { AvailabilityStatus?: DashboardBehavior; } -export const SheetLayoutElementMaximizationOption = - /*@__PURE__*/ S.suspend(() => - S.Struct({ AvailabilityStatus: S.optional(DashboardBehavior) }), - ).annotate({ - identifier: "SheetLayoutElementMaximizationOption", - }) as any as S.Schema; +export const SheetLayoutElementMaximizationOption = /*@__PURE__*/ S.suspend( + () => S.Struct({ AvailabilityStatus: S.optional(DashboardBehavior) }), +).annotate({ + identifier: "SheetLayoutElementMaximizationOption", +}) as any as S.Schema; export interface VisualAxisSortOption { AvailabilityStatus?: DashboardBehavior; } @@ -12091,12 +11917,11 @@ export const VisualAxisSortOption = /*@__PURE__*/ S.suspend(() => export interface ExportWithHiddenFieldsOption { AvailabilityStatus?: DashboardBehavior; } -export const ExportWithHiddenFieldsOption = - /*@__PURE__*/ S.suspend(() => - S.Struct({ AvailabilityStatus: S.optional(DashboardBehavior) }), - ).annotate({ - identifier: "ExportWithHiddenFieldsOption", - }) as any as S.Schema; +export const ExportWithHiddenFieldsOption = /*@__PURE__*/ S.suspend(() => + S.Struct({ AvailabilityStatus: S.optional(DashboardBehavior) }), +).annotate({ + identifier: "ExportWithHiddenFieldsOption", +}) as any as S.Schema; export interface DataPointDrillUpDownOption { AvailabilityStatus?: DashboardBehavior; } @@ -12524,64 +12349,62 @@ export interface DataSetStringComparisonFilterCondition { Operator: DataSetStringComparisonFilterOperator; Value?: DataSetStringFilterValue; } -export const DataSetStringComparisonFilterCondition = - /*@__PURE__*/ S.suspend(() => +export const DataSetStringComparisonFilterCondition = /*@__PURE__*/ S.suspend( + () => S.Struct({ Operator: DataSetStringComparisonFilterOperator, Value: S.optional(DataSetStringFilterValue), }), - ).annotate({ - identifier: "DataSetStringComparisonFilterCondition", - }) as any as S.Schema; +).annotate({ + identifier: "DataSetStringComparisonFilterCondition", +}) as any as S.Schema; export type DataSetStringListFilterOperator = | "INCLUDE" | "EXCLUDE" | (string & {}); export const DataSetStringListFilterOperator = /*@__PURE__*/ S.String; -export type DataSetStringFilterStaticValueList = +export type DataSetStringFilterStaticValueList = ( | string - | redacted.Redacted[]; + | redacted.Redacted +)[]; export const DataSetStringFilterStaticValueList = /*@__PURE__*/ S.Array(SensitiveString); export interface DataSetStringListFilterValue { - StaticValues?: string | redacted.Redacted[]; + StaticValues?: (string | redacted.Redacted)[]; } -export const DataSetStringListFilterValue = - /*@__PURE__*/ S.suspend(() => - S.Struct({ StaticValues: S.optional(DataSetStringFilterStaticValueList) }), - ).annotate({ - identifier: "DataSetStringListFilterValue", - }) as any as S.Schema; +export const DataSetStringListFilterValue = /*@__PURE__*/ S.suspend(() => + S.Struct({ StaticValues: S.optional(DataSetStringFilterStaticValueList) }), +).annotate({ + identifier: "DataSetStringListFilterValue", +}) as any as S.Schema; export interface DataSetStringListFilterCondition { Operator: DataSetStringListFilterOperator; Values?: DataSetStringListFilterValue; } -export const DataSetStringListFilterCondition = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Operator: DataSetStringListFilterOperator, - Values: S.optional(DataSetStringListFilterValue), - }), - ).annotate({ - identifier: "DataSetStringListFilterCondition", - }) as any as S.Schema; +export const DataSetStringListFilterCondition = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Operator: DataSetStringListFilterOperator, + Values: S.optional(DataSetStringListFilterValue), + }), +).annotate({ + identifier: "DataSetStringListFilterCondition", +}) as any as S.Schema; export interface DataSetStringFilterCondition { ColumnName?: string; ComparisonFilterCondition?: DataSetStringComparisonFilterCondition; ListFilterCondition?: DataSetStringListFilterCondition; } -export const DataSetStringFilterCondition = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ColumnName: S.optional(S.String), - ComparisonFilterCondition: S.optional( - DataSetStringComparisonFilterCondition, - ), - ListFilterCondition: S.optional(DataSetStringListFilterCondition), - }), - ).annotate({ - identifier: "DataSetStringFilterCondition", - }) as any as S.Schema; +export const DataSetStringFilterCondition = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ColumnName: S.optional(S.String), + ComparisonFilterCondition: S.optional( + DataSetStringComparisonFilterCondition, + ), + ListFilterCondition: S.optional(DataSetStringListFilterCondition), + }), +).annotate({ + identifier: "DataSetStringFilterCondition", +}) as any as S.Schema; export type DataSetNumericComparisonFilterOperator = | "EQUALS" | "DOES_NOT_EQUAL" @@ -12603,49 +12426,47 @@ export interface DataSetNumericComparisonFilterCondition { Operator: DataSetNumericComparisonFilterOperator; Value?: DataSetNumericFilterValue; } -export const DataSetNumericComparisonFilterCondition = - /*@__PURE__*/ S.suspend(() => +export const DataSetNumericComparisonFilterCondition = /*@__PURE__*/ S.suspend( + () => S.Struct({ Operator: DataSetNumericComparisonFilterOperator, Value: S.optional(DataSetNumericFilterValue), }), - ).annotate({ - identifier: "DataSetNumericComparisonFilterCondition", - }) as any as S.Schema; +).annotate({ + identifier: "DataSetNumericComparisonFilterCondition", +}) as any as S.Schema; export interface DataSetNumericRangeFilterCondition { RangeMinimum?: DataSetNumericFilterValue; RangeMaximum?: DataSetNumericFilterValue; IncludeMinimum?: boolean; IncludeMaximum?: boolean; } -export const DataSetNumericRangeFilterCondition = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RangeMinimum: S.optional(DataSetNumericFilterValue), - RangeMaximum: S.optional(DataSetNumericFilterValue), - IncludeMinimum: S.optional(S.Boolean), - IncludeMaximum: S.optional(S.Boolean), - }), - ).annotate({ - identifier: "DataSetNumericRangeFilterCondition", - }) as any as S.Schema; +export const DataSetNumericRangeFilterCondition = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RangeMinimum: S.optional(DataSetNumericFilterValue), + RangeMaximum: S.optional(DataSetNumericFilterValue), + IncludeMinimum: S.optional(S.Boolean), + IncludeMaximum: S.optional(S.Boolean), + }), +).annotate({ + identifier: "DataSetNumericRangeFilterCondition", +}) as any as S.Schema; export interface DataSetNumericFilterCondition { ColumnName?: string; ComparisonFilterCondition?: DataSetNumericComparisonFilterCondition; RangeFilterCondition?: DataSetNumericRangeFilterCondition; } -export const DataSetNumericFilterCondition = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ColumnName: S.optional(S.String), - ComparisonFilterCondition: S.optional( - DataSetNumericComparisonFilterCondition, - ), - RangeFilterCondition: S.optional(DataSetNumericRangeFilterCondition), - }), - ).annotate({ - identifier: "DataSetNumericFilterCondition", - }) as any as S.Schema; +export const DataSetNumericFilterCondition = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ColumnName: S.optional(S.String), + ComparisonFilterCondition: S.optional( + DataSetNumericComparisonFilterCondition, + ), + RangeFilterCondition: S.optional(DataSetNumericRangeFilterCondition), + }), +).annotate({ + identifier: "DataSetNumericFilterCondition", +}) as any as S.Schema; export type DataSetDateComparisonFilterOperator = | "BEFORE" | "BEFORE_OR_EQUALS_TO" @@ -12667,32 +12488,31 @@ export interface DataSetDateComparisonFilterCondition { Operator: DataSetDateComparisonFilterOperator; Value?: DataSetDateFilterValue; } -export const DataSetDateComparisonFilterCondition = - /*@__PURE__*/ S.suspend(() => +export const DataSetDateComparisonFilterCondition = /*@__PURE__*/ S.suspend( + () => S.Struct({ Operator: DataSetDateComparisonFilterOperator, Value: S.optional(DataSetDateFilterValue), }), - ).annotate({ - identifier: "DataSetDateComparisonFilterCondition", - }) as any as S.Schema; +).annotate({ + identifier: "DataSetDateComparisonFilterCondition", +}) as any as S.Schema; export interface DataSetDateRangeFilterCondition { RangeMinimum?: DataSetDateFilterValue; RangeMaximum?: DataSetDateFilterValue; IncludeMinimum?: boolean; IncludeMaximum?: boolean; } -export const DataSetDateRangeFilterCondition = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RangeMinimum: S.optional(DataSetDateFilterValue), - RangeMaximum: S.optional(DataSetDateFilterValue), - IncludeMinimum: S.optional(S.Boolean), - IncludeMaximum: S.optional(S.Boolean), - }), - ).annotate({ - identifier: "DataSetDateRangeFilterCondition", - }) as any as S.Schema; +export const DataSetDateRangeFilterCondition = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RangeMinimum: S.optional(DataSetDateFilterValue), + RangeMaximum: S.optional(DataSetDateFilterValue), + IncludeMinimum: S.optional(S.Boolean), + IncludeMaximum: S.optional(S.Boolean), + }), +).annotate({ + identifier: "DataSetDateRangeFilterCondition", +}) as any as S.Schema; export interface DataSetDateFilterCondition { ColumnName?: string; ComparisonFilterCondition?: DataSetDateComparisonFilterCondition; @@ -12845,8 +12665,9 @@ export const StringDatasetParameterValueList = /*@__PURE__*/ S.Array(S.String); export type DecimalDatasetParameterValueList = number[]; export const DecimalDatasetParameterValueList = /*@__PURE__*/ S.Array(S.Number); export type DateTimeDatasetParameterValueList = Date[]; -export const DateTimeDatasetParameterValueList = - /*@__PURE__*/ S.Array(S.Date.pipe(T.TimestampFormat("epoch-seconds"))); +export const DateTimeDatasetParameterValueList = /*@__PURE__*/ S.Array( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), +); export type IntegerDatasetParameterValueList = number[]; export const IntegerDatasetParameterValueList = /*@__PURE__*/ S.Array(S.Number); export interface NewDefaultValues { @@ -12870,16 +12691,15 @@ export interface OverrideDatasetParameterOperation { NewParameterName?: string; NewDefaultValues?: NewDefaultValues; } -export const OverrideDatasetParameterOperation = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ParameterName: S.String, - NewParameterName: S.optional(S.String), - NewDefaultValues: S.optional(NewDefaultValues), - }), - ).annotate({ - identifier: "OverrideDatasetParameterOperation", - }) as any as S.Schema; +export const OverrideDatasetParameterOperation = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ParameterName: S.String, + NewParameterName: S.optional(S.String), + NewDefaultValues: S.optional(NewDefaultValues), + }), +).annotate({ + identifier: "OverrideDatasetParameterOperation", +}) as any as S.Schema; export type TransformOperation = | { ProjectOperation: ProjectOperation; @@ -13128,36 +12948,39 @@ export const RowLevelPermissionTagRule = /*@__PURE__*/ S.suspend(() => identifier: "RowLevelPermissionTagRule", }) as any as S.Schema; export type RowLevelPermissionTagRuleList = RowLevelPermissionTagRule[]; -export const RowLevelPermissionTagRuleList = - /*@__PURE__*/ S.Array(RowLevelPermissionTagRule); +export const RowLevelPermissionTagRuleList = /*@__PURE__*/ S.Array( + RowLevelPermissionTagRule, +); export type RowLevelPermissionTagRuleConfiguration = string[]; -export const RowLevelPermissionTagRuleConfiguration = - /*@__PURE__*/ S.Array(S.String); +export const RowLevelPermissionTagRuleConfiguration = /*@__PURE__*/ S.Array( + S.String, +); export type RowLevelPermissionTagRuleConfigurationList = string[][]; -export const RowLevelPermissionTagRuleConfigurationList = - /*@__PURE__*/ S.Array(RowLevelPermissionTagRuleConfiguration); +export const RowLevelPermissionTagRuleConfigurationList = /*@__PURE__*/ S.Array( + RowLevelPermissionTagRuleConfiguration, +); export interface RowLevelPermissionTagConfiguration { Status?: Status; TagRules: RowLevelPermissionTagRule[]; TagRuleConfigurations?: string[][]; } -export const RowLevelPermissionTagConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Status: S.optional(Status), - TagRules: RowLevelPermissionTagRuleList, - TagRuleConfigurations: S.optional( - RowLevelPermissionTagRuleConfigurationList, - ), - }), - ).annotate({ - identifier: "RowLevelPermissionTagConfiguration", - }) as any as S.Schema; +export const RowLevelPermissionTagConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Status: S.optional(Status), + TagRules: RowLevelPermissionTagRuleList, + TagRuleConfigurations: S.optional( + RowLevelPermissionTagRuleConfigurationList, + ), + }), +).annotate({ + identifier: "RowLevelPermissionTagConfiguration", +}) as any as S.Schema; export type PrincipalList = string[]; export const PrincipalList = /*@__PURE__*/ S.Array(S.String); export type ColumnLevelPermissionRuleColumnNameList = string[]; -export const ColumnLevelPermissionRuleColumnNameList = - /*@__PURE__*/ S.Array(S.String); +export const ColumnLevelPermissionRuleColumnNameList = /*@__PURE__*/ S.Array( + S.String, +); export interface ColumnLevelPermissionRule { Principals?: string[]; ColumnNames?: string[]; @@ -13171,8 +12994,9 @@ export const ColumnLevelPermissionRule = /*@__PURE__*/ S.suspend(() => identifier: "ColumnLevelPermissionRule", }) as any as S.Schema; export type ColumnLevelPermissionRuleList = ColumnLevelPermissionRule[]; -export const ColumnLevelPermissionRuleList = - /*@__PURE__*/ S.Array(ColumnLevelPermissionRule); +export const ColumnLevelPermissionRuleList = /*@__PURE__*/ S.Array( + ColumnLevelPermissionRule, +); export interface DataSetUsageConfiguration { DisableUseAsDirectQuerySource?: boolean; DisableUseAsImportedSource?: boolean; @@ -13193,12 +13017,11 @@ export const DatasetParameterValueType = /*@__PURE__*/ S.String; export interface StringDatasetParameterDefaultValues { StaticValues?: string[]; } -export const StringDatasetParameterDefaultValues = - /*@__PURE__*/ S.suspend(() => - S.Struct({ StaticValues: S.optional(StringDatasetParameterValueList) }), - ).annotate({ - identifier: "StringDatasetParameterDefaultValues", - }) as any as S.Schema; +export const StringDatasetParameterDefaultValues = /*@__PURE__*/ S.suspend(() => + S.Struct({ StaticValues: S.optional(StringDatasetParameterValueList) }), +).annotate({ + identifier: "StringDatasetParameterDefaultValues", +}) as any as S.Schema; export interface StringDatasetParameter { Id: string; Name: string; @@ -13218,12 +13041,12 @@ export const StringDatasetParameter = /*@__PURE__*/ S.suspend(() => export interface DecimalDatasetParameterDefaultValues { StaticValues?: number[]; } -export const DecimalDatasetParameterDefaultValues = - /*@__PURE__*/ S.suspend(() => +export const DecimalDatasetParameterDefaultValues = /*@__PURE__*/ S.suspend( + () => S.Struct({ StaticValues: S.optional(DecimalDatasetParameterValueList) }), - ).annotate({ - identifier: "DecimalDatasetParameterDefaultValues", - }) as any as S.Schema; +).annotate({ + identifier: "DecimalDatasetParameterDefaultValues", +}) as any as S.Schema; export interface DecimalDatasetParameter { Id: string; Name: string; @@ -13243,12 +13066,12 @@ export const DecimalDatasetParameter = /*@__PURE__*/ S.suspend(() => export interface IntegerDatasetParameterDefaultValues { StaticValues?: number[]; } -export const IntegerDatasetParameterDefaultValues = - /*@__PURE__*/ S.suspend(() => +export const IntegerDatasetParameterDefaultValues = /*@__PURE__*/ S.suspend( + () => S.Struct({ StaticValues: S.optional(IntegerDatasetParameterValueList) }), - ).annotate({ - identifier: "IntegerDatasetParameterDefaultValues", - }) as any as S.Schema; +).annotate({ + identifier: "IntegerDatasetParameterDefaultValues", +}) as any as S.Schema; export interface IntegerDatasetParameter { Id: string; Name: string; @@ -13268,12 +13091,12 @@ export const IntegerDatasetParameter = /*@__PURE__*/ S.suspend(() => export interface DateTimeDatasetParameterDefaultValues { StaticValues?: Date[]; } -export const DateTimeDatasetParameterDefaultValues = - /*@__PURE__*/ S.suspend(() => +export const DateTimeDatasetParameterDefaultValues = /*@__PURE__*/ S.suspend( + () => S.Struct({ StaticValues: S.optional(DateTimeDatasetParameterValueList) }), - ).annotate({ - identifier: "DateTimeDatasetParameterDefaultValues", - }) as any as S.Schema; +).annotate({ + identifier: "DateTimeDatasetParameterDefaultValues", +}) as any as S.Schema; export interface DateTimeDatasetParameter { Id: string; Name: string; @@ -13491,43 +13314,40 @@ export interface DataPrepSimpleAggregationFunction { InputColumnName?: string; FunctionType: DataPrepSimpleAggregationFunctionType; } -export const DataPrepSimpleAggregationFunction = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - InputColumnName: S.optional(S.String), - FunctionType: DataPrepSimpleAggregationFunctionType, - }), - ).annotate({ - identifier: "DataPrepSimpleAggregationFunction", - }) as any as S.Schema; +export const DataPrepSimpleAggregationFunction = /*@__PURE__*/ S.suspend(() => + S.Struct({ + InputColumnName: S.optional(S.String), + FunctionType: DataPrepSimpleAggregationFunctionType, + }), +).annotate({ + identifier: "DataPrepSimpleAggregationFunction", +}) as any as S.Schema; export interface DataPrepListAggregationFunction { InputColumnName?: string; Separator: string; Distinct: boolean; } -export const DataPrepListAggregationFunction = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - InputColumnName: S.optional(S.String), - Separator: S.String, - Distinct: S.Boolean, - }), - ).annotate({ - identifier: "DataPrepListAggregationFunction", - }) as any as S.Schema; +export const DataPrepListAggregationFunction = /*@__PURE__*/ S.suspend(() => + S.Struct({ + InputColumnName: S.optional(S.String), + Separator: S.String, + Distinct: S.Boolean, + }), +).annotate({ + identifier: "DataPrepListAggregationFunction", +}) as any as S.Schema; export interface DataPrepAggregationFunction { SimpleAggregation?: DataPrepSimpleAggregationFunction; ListAggregation?: DataPrepListAggregationFunction; } -export const DataPrepAggregationFunction = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SimpleAggregation: S.optional(DataPrepSimpleAggregationFunction), - ListAggregation: S.optional(DataPrepListAggregationFunction), - }), - ).annotate({ - identifier: "DataPrepAggregationFunction", - }) as any as S.Schema; +export const DataPrepAggregationFunction = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SimpleAggregation: S.optional(DataPrepSimpleAggregationFunction), + ListAggregation: S.optional(DataPrepListAggregationFunction), + }), +).annotate({ + identifier: "DataPrepAggregationFunction", +}) as any as S.Schema; export interface Aggregation { AggregationFunction: DataPrepAggregationFunction; NewColumnName: string; @@ -13746,15 +13566,14 @@ export interface RowLevelPermissionConfiguration { TagConfiguration?: RowLevelPermissionTagConfiguration; RowLevelPermissionDataSet?: RowLevelPermissionDataSet; } -export const RowLevelPermissionConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TagConfiguration: S.optional(RowLevelPermissionTagConfiguration), - RowLevelPermissionDataSet: S.optional(RowLevelPermissionDataSet), - }), - ).annotate({ - identifier: "RowLevelPermissionConfiguration", - }) as any as S.Schema; +export const RowLevelPermissionConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TagConfiguration: S.optional(RowLevelPermissionTagConfiguration), + RowLevelPermissionDataSet: S.optional(RowLevelPermissionDataSet), + }), +).annotate({ + identifier: "RowLevelPermissionConfiguration", +}) as any as S.Schema; export type ColumnNameList = string[]; export const ColumnNameList = /*@__PURE__*/ S.Array(S.String); export interface AdditionalNotes { @@ -13795,18 +13614,18 @@ export interface SharedColumnSemanticMetadata { ColumnNames?: string[]; ColumnProperties: ColumnSemanticProperty[]; } -export const SharedColumnSemanticMetadata = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ColumnNames: S.optional(ColumnNameList), - ColumnProperties: ColumnSemanticPropertyList, - }), - ).annotate({ - identifier: "SharedColumnSemanticMetadata", - }) as any as S.Schema; +export const SharedColumnSemanticMetadata = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ColumnNames: S.optional(ColumnNameList), + ColumnProperties: ColumnSemanticPropertyList, + }), +).annotate({ + identifier: "SharedColumnSemanticMetadata", +}) as any as S.Schema; export type SharedColumnSemanticMetadataList = SharedColumnSemanticMetadata[]; -export const SharedColumnSemanticMetadataList = - /*@__PURE__*/ S.Array(SharedColumnSemanticMetadata); +export const SharedColumnSemanticMetadataList = /*@__PURE__*/ S.Array( + SharedColumnSemanticMetadata, +); export interface TableSemanticMetadata { ColumnMetadata?: SharedColumnSemanticMetadata[]; } @@ -14025,19 +13844,19 @@ export const DataSourceType = /*@__PURE__*/ S.String; export interface AmazonElasticsearchParameters { Domain: string; } -export const AmazonElasticsearchParameters = - /*@__PURE__*/ S.suspend(() => S.Struct({ Domain: S.String })).annotate({ - identifier: "AmazonElasticsearchParameters", - }) as any as S.Schema; +export const AmazonElasticsearchParameters = /*@__PURE__*/ S.suspend(() => + S.Struct({ Domain: S.String }), +).annotate({ + identifier: "AmazonElasticsearchParameters", +}) as any as S.Schema; export interface IdentityCenterConfiguration { EnableIdentityPropagation?: boolean; } -export const IdentityCenterConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ EnableIdentityPropagation: S.optional(S.Boolean) }), - ).annotate({ - identifier: "IdentityCenterConfiguration", - }) as any as S.Schema; +export const IdentityCenterConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ EnableIdentityPropagation: S.optional(S.Boolean) }), +).annotate({ + identifier: "IdentityCenterConfiguration", +}) as any as S.Schema; export interface AthenaParameters { WorkGroup?: string; RoleArn?: string; @@ -15668,13 +15487,13 @@ export const DataSourceParametersList = /*@__PURE__*/ S.Array(DataSourceParameters); export interface CredentialPair { Username: string; - Password: string; + Password: string | redacted.Redacted; AlternateDataSourceParameters?: DataSourceParameters[]; } export const CredentialPair = /*@__PURE__*/ S.suspend(() => S.Struct({ Username: S.String, - Password: S.String, + Password: SensitiveString, AlternateDataSourceParameters: S.optional(DataSourceParametersList), }), ).annotate({ identifier: "CredentialPair" }) as any as S.Schema; @@ -15694,10 +15513,10 @@ export const KeyPairCredentials = /*@__PURE__*/ S.suspend(() => }) as any as S.Schema; export interface WebProxyCredentials { WebProxyUsername: string; - WebProxyPassword: string; + WebProxyPassword: string | redacted.Redacted; } export const WebProxyCredentials = /*@__PURE__*/ S.suspend(() => - S.Struct({ WebProxyUsername: S.String, WebProxyPassword: S.String }), + S.Struct({ WebProxyUsername: S.String, WebProxyPassword: SensitiveString }), ).annotate({ identifier: "WebProxyCredentials", }) as any as S.Schema; @@ -15769,10 +15588,7 @@ export const CreateDataSourceRequest = /*@__PURE__*/ S.suspend(() => FolderArns: S.optional(FolderArnList), }).pipe( T.all( - T.Http({ - method: "POST", - uri: "/accounts/{AwsAccountId}/data-sources", - }), + T.Http({ method: "POST", uri: "/accounts/{AwsAccountId}/data-sources" }), svc, auth, proto, @@ -15927,29 +15743,28 @@ export interface CreateFolderMembershipRequest { MemberId: string; MemberType: MemberType; } -export const CreateFolderMembershipRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - FolderId: S.String.pipe(T.HttpLabel("FolderId")), - MemberId: S.String.pipe(T.HttpLabel("MemberId")), - MemberType: MemberType.pipe(T.HttpLabel("MemberType")), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/accounts/{AwsAccountId}/folders/{FolderId}/members/{MemberType}/{MemberId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateFolderMembershipRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + FolderId: S.String.pipe(T.HttpLabel("FolderId")), + MemberId: S.String.pipe(T.HttpLabel("MemberId")), + MemberType: MemberType.pipe(T.HttpLabel("MemberType")), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/accounts/{AwsAccountId}/folders/{FolderId}/members/{MemberType}/{MemberId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateFolderMembershipRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateFolderMembershipRequest", +}) as any as S.Schema; export interface FolderMember { MemberId?: string; MemberType?: MemberType; @@ -15965,16 +15780,15 @@ export interface CreateFolderMembershipResponse { FolderMember?: FolderMember; RequestId?: string; } -export const CreateFolderMembershipResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Status: S.optional(S.Number), - FolderMember: S.optional(FolderMember), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "CreateFolderMembershipResponse", - }) as any as S.Schema; +export const CreateFolderMembershipResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Status: S.optional(S.Number), + FolderMember: S.optional(FolderMember), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "CreateFolderMembershipResponse", +}) as any as S.Schema; export interface CreateGroupRequest { GroupName: string; Description?: string; @@ -16037,29 +15851,28 @@ export interface CreateGroupMembershipRequest { AwsAccountId: string; Namespace: string; } -export const CreateGroupMembershipRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - MemberName: S.String.pipe(T.HttpLabel("MemberName")), - GroupName: S.String.pipe(T.HttpLabel("GroupName")), - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - Namespace: S.String.pipe(T.HttpLabel("Namespace")), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members/{MemberName}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateGroupMembershipRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + MemberName: S.String.pipe(T.HttpLabel("MemberName")), + GroupName: S.String.pipe(T.HttpLabel("GroupName")), + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + Namespace: S.String.pipe(T.HttpLabel("Namespace")), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members/{MemberName}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateGroupMembershipRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateGroupMembershipRequest", +}) as any as S.Schema; export interface GroupMember { Arn?: string; MemberName?: string; @@ -16072,16 +15885,15 @@ export interface CreateGroupMembershipResponse { RequestId?: string; Status?: number; } -export const CreateGroupMembershipResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - GroupMember: S.optional(GroupMember), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "CreateGroupMembershipResponse", - }) as any as S.Schema; +export const CreateGroupMembershipResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + GroupMember: S.optional(GroupMember), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "CreateGroupMembershipResponse", +}) as any as S.Schema; export type AssignmentStatus = "ENABLED" | "DRAFT" | "DISABLED" | (string & {}); export const AssignmentStatus = /*@__PURE__*/ S.String; export type IdentityNameList = string[]; @@ -16099,31 +15911,30 @@ export interface CreateIAMPolicyAssignmentRequest { Identities?: { [key: string]: string[] | undefined }; Namespace: string; } -export const CreateIAMPolicyAssignmentRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - AssignmentName: S.String, - AssignmentStatus: AssignmentStatus, - PolicyArn: S.optional(S.String), - Identities: S.optional(IdentityMap), - Namespace: S.String.pipe(T.HttpLabel("Namespace")), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateIAMPolicyAssignmentRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + AssignmentName: S.String, + AssignmentStatus: AssignmentStatus, + PolicyArn: S.optional(S.String), + Identities: S.optional(IdentityMap), + Namespace: S.String.pipe(T.HttpLabel("Namespace")), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateIAMPolicyAssignmentRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateIAMPolicyAssignmentRequest", +}) as any as S.Schema; export interface CreateIAMPolicyAssignmentResponse { AssignmentName?: string; AssignmentId?: string; @@ -16133,20 +15944,19 @@ export interface CreateIAMPolicyAssignmentResponse { RequestId?: string; Status?: number; } -export const CreateIAMPolicyAssignmentResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AssignmentName: S.optional(S.String), - AssignmentId: S.optional(S.String), - AssignmentStatus: S.optional(AssignmentStatus), - PolicyArn: S.optional(S.String), - Identities: S.optional(IdentityMap), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "CreateIAMPolicyAssignmentResponse", - }) as any as S.Schema; +export const CreateIAMPolicyAssignmentResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AssignmentName: S.optional(S.String), + AssignmentId: S.optional(S.String), + AssignmentStatus: S.optional(AssignmentStatus), + PolicyArn: S.optional(S.String), + Identities: S.optional(IdentityMap), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "CreateIAMPolicyAssignmentResponse", +}) as any as S.Schema; export type IngestionType = | "INCREMENTAL_REFRESH" | "FULL_REFRESH" @@ -16280,39 +16090,38 @@ export interface CreateOAuthClientApplicationRequest { IdentityProviderVpcConnectionProperties?: VpcConnectionProperties; Tags?: Tag[]; } -export const CreateOAuthClientApplicationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - OAuthClientApplicationId: S.String, - Name: S.String, - OAuthClientAuthenticationType: OAuthClientAuthenticationType, - ClientId: SensitiveString, - ClientSecret: SensitiveString, - OAuthTokenEndpointUrl: SensitiveString, - OAuthAuthorizationEndpointUrl: S.optional(SensitiveString), - OAuthScopes: S.optional(S.String), - DataSourceType: S.optional(DataSourceType), - IdentityProviderVpcConnectionProperties: S.optional( - VpcConnectionProperties, - ), - Tags: S.optional(TagList), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/accounts/{AwsAccountId}/oauth-client-applications", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateOAuthClientApplicationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + OAuthClientApplicationId: S.String, + Name: S.String, + OAuthClientAuthenticationType: OAuthClientAuthenticationType, + ClientId: SensitiveString, + ClientSecret: SensitiveString, + OAuthTokenEndpointUrl: SensitiveString, + OAuthAuthorizationEndpointUrl: S.optional(SensitiveString), + OAuthScopes: S.optional(S.String), + DataSourceType: S.optional(DataSourceType), + IdentityProviderVpcConnectionProperties: S.optional( + VpcConnectionProperties, ), - ).annotate({ - identifier: "CreateOAuthClientApplicationRequest", - }) as any as S.Schema; + Tags: S.optional(TagList), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/accounts/{AwsAccountId}/oauth-client-applications", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "CreateOAuthClientApplicationRequest", +}) as any as S.Schema; export interface CreateOAuthClientApplicationResponse { Arn?: string; OAuthClientApplicationId?: string; @@ -16320,8 +16129,8 @@ export interface CreateOAuthClientApplicationResponse { RequestId?: string; Status?: number; } -export const CreateOAuthClientApplicationResponse = - /*@__PURE__*/ S.suspend(() => +export const CreateOAuthClientApplicationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ Arn: S.optional(S.String), OAuthClientApplicationId: S.optional(S.String), @@ -16329,9 +16138,9 @@ export const CreateOAuthClientApplicationResponse = RequestId: S.optional(S.String), Status: S.optional(S.Number).pipe(T.HttpResponseCode()), }), - ).annotate({ - identifier: "CreateOAuthClientApplicationResponse", - }) as any as S.Schema; +).annotate({ + identifier: "CreateOAuthClientApplicationResponse", +}) as any as S.Schema; export type RefreshInterval = | "MINUTE15" | "MINUTE30" @@ -16404,45 +16213,43 @@ export interface CreateRefreshScheduleRequest { AwsAccountId: string; Schedule: RefreshSchedule; } -export const CreateRefreshScheduleRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DataSetId: S.String.pipe(T.HttpLabel("DataSetId")), - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - Schedule: RefreshSchedule, - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-schedules", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateRefreshScheduleRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DataSetId: S.String.pipe(T.HttpLabel("DataSetId")), + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + Schedule: RefreshSchedule, + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-schedules", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateRefreshScheduleRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateRefreshScheduleRequest", +}) as any as S.Schema; export interface CreateRefreshScheduleResponse { Status?: number; RequestId?: string; ScheduleId?: string; Arn?: string; } -export const CreateRefreshScheduleResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - RequestId: S.optional(S.String), - ScheduleId: S.optional(S.String), - Arn: S.optional(S.String), - }), - ).annotate({ - identifier: "CreateRefreshScheduleResponse", - }) as any as S.Schema; +export const CreateRefreshScheduleResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + RequestId: S.optional(S.String), + ScheduleId: S.optional(S.String), + Arn: S.optional(S.String), + }), +).annotate({ + identifier: "CreateRefreshScheduleResponse", +}) as any as S.Schema; export type Role = | "ADMIN" | "AUTHOR" @@ -16458,42 +16265,40 @@ export interface CreateRoleMembershipRequest { Namespace: string; Role: Role; } -export const CreateRoleMembershipRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - MemberName: S.String.pipe(T.HttpLabel("MemberName")), - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - Namespace: S.String.pipe(T.HttpLabel("Namespace")), - Role: Role.pipe(T.HttpLabel("Role")), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/members/{MemberName}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateRoleMembershipRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + MemberName: S.String.pipe(T.HttpLabel("MemberName")), + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + Namespace: S.String.pipe(T.HttpLabel("Namespace")), + Role: Role.pipe(T.HttpLabel("Role")), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/members/{MemberName}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateRoleMembershipRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateRoleMembershipRequest", +}) as any as S.Schema; export interface CreateRoleMembershipResponse { RequestId?: string; Status?: number; } -export const CreateRoleMembershipResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "CreateRoleMembershipResponse", - }) as any as S.Schema; +export const CreateRoleMembershipResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "CreateRoleMembershipResponse", +}) as any as S.Schema; export interface CreateSpaceRequest { AwsAccountId: string; SpaceId: string; @@ -16758,16 +16563,15 @@ export interface CreateTemplateAliasResponse { Status?: number; RequestId?: string; } -export const CreateTemplateAliasResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TemplateAlias: S.optional(TemplateAlias), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "CreateTemplateAliasResponse", - }) as any as S.Schema; +export const CreateTemplateAliasResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TemplateAlias: S.optional(TemplateAlias), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "CreateTemplateAliasResponse", +}) as any as S.Schema; export type ColorList = string[]; export const ColorList = /*@__PURE__*/ S.Array(S.String); export interface DataColorPalette { @@ -16908,44 +16712,41 @@ export interface VisualTitleFontConfiguration { TextAlignment?: HorizontalTextAlignment; TextTransform?: TextTransform; } -export const VisualTitleFontConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - FontConfiguration: S.optional(FontConfiguration), - TextAlignment: S.optional(HorizontalTextAlignment), - TextTransform: S.optional(TextTransform), - }), - ).annotate({ - identifier: "VisualTitleFontConfiguration", - }) as any as S.Schema; +export const VisualTitleFontConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + FontConfiguration: S.optional(FontConfiguration), + TextAlignment: S.optional(HorizontalTextAlignment), + TextTransform: S.optional(TextTransform), + }), +).annotate({ + identifier: "VisualTitleFontConfiguration", +}) as any as S.Schema; export interface VisualSubtitleFontConfiguration { FontConfiguration?: FontConfiguration; TextAlignment?: HorizontalTextAlignment; TextTransform?: TextTransform; } -export const VisualSubtitleFontConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - FontConfiguration: S.optional(FontConfiguration), - TextAlignment: S.optional(HorizontalTextAlignment), - TextTransform: S.optional(TextTransform), - }), - ).annotate({ - identifier: "VisualSubtitleFontConfiguration", - }) as any as S.Schema; +export const VisualSubtitleFontConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + FontConfiguration: S.optional(FontConfiguration), + TextAlignment: S.optional(HorizontalTextAlignment), + TextTransform: S.optional(TextTransform), + }), +).annotate({ + identifier: "VisualSubtitleFontConfiguration", +}) as any as S.Schema; export interface ControlTitleFontConfiguration { FontConfiguration?: FontConfiguration; TextAlignment?: HorizontalTextAlignment; } -export const ControlTitleFontConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - FontConfiguration: S.optional(FontConfiguration), - TextAlignment: S.optional(HorizontalTextAlignment), - }), - ).annotate({ - identifier: "ControlTitleFontConfiguration", - }) as any as S.Schema; +export const ControlTitleFontConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + FontConfiguration: S.optional(FontConfiguration), + TextAlignment: S.optional(HorizontalTextAlignment), + }), +).annotate({ + identifier: "ControlTitleFontConfiguration", +}) as any as S.Schema; export interface Typography { FontFamilies?: Font[]; AxisTitleFontConfiguration?: FontConfiguration; @@ -17149,16 +16950,15 @@ export interface TopicCategoryFilterConstant { SingularConstant?: string; CollectiveConstant?: CollectiveConstant; } -export const TopicCategoryFilterConstant = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ConstantType: S.optional(ConstantType), - SingularConstant: S.optional(S.String), - CollectiveConstant: S.optional(CollectiveConstant), - }), - ).annotate({ - identifier: "TopicCategoryFilterConstant", - }) as any as S.Schema; +export const TopicCategoryFilterConstant = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ConstantType: S.optional(ConstantType), + SingularConstant: S.optional(S.String), + CollectiveConstant: S.optional(CollectiveConstant), + }), +).annotate({ + identifier: "TopicCategoryFilterConstant", +}) as any as S.Schema; export interface TopicCategoryFilter { CategoryFilterFunction?: CategoryFilterFunction; CategoryFilterType?: CategoryFilterType; @@ -17179,15 +16979,14 @@ export interface TopicSingularFilterConstant { ConstantType?: ConstantType; SingularConstant?: string; } -export const TopicSingularFilterConstant = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ConstantType: S.optional(ConstantType), - SingularConstant: S.optional(S.String), - }), - ).annotate({ - identifier: "TopicSingularFilterConstant", - }) as any as S.Schema; +export const TopicSingularFilterConstant = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ConstantType: S.optional(ConstantType), + SingularConstant: S.optional(S.String), + }), +).annotate({ + identifier: "TopicSingularFilterConstant", +}) as any as S.Schema; export type NamedFilterAggType = | "NO_AGGREGATION" | "SUM" @@ -17382,9 +17181,9 @@ export interface SemanticType { SubTypeName?: string; TypeParameters?: { [key: string]: string | undefined }; TruthyCellValue?: string | redacted.Redacted; - TruthyCellValueSynonyms?: string | redacted.Redacted[]; + TruthyCellValueSynonyms?: (string | redacted.Redacted)[]; FalseyCellValue?: string | redacted.Redacted; - FalseyCellValueSynonyms?: string | redacted.Redacted[]; + FalseyCellValueSynonyms?: (string | redacted.Redacted)[]; } export const SemanticType = /*@__PURE__*/ S.suspend(() => S.Struct({ @@ -17566,21 +17365,22 @@ export const NamedEntityAggType = /*@__PURE__*/ S.String; export type AggregationFunctionParameters = { [key: string]: string | undefined; }; -export const AggregationFunctionParameters = - /*@__PURE__*/ S.Record(S.String, S.String.pipe(S.optional)); +export const AggregationFunctionParameters = /*@__PURE__*/ S.Record( + S.String, + S.String.pipe(S.optional), +); export interface NamedEntityDefinitionMetric { Aggregation?: NamedEntityAggType; AggregationFunctionParameters?: { [key: string]: string | undefined }; } -export const NamedEntityDefinitionMetric = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Aggregation: S.optional(NamedEntityAggType), - AggregationFunctionParameters: S.optional(AggregationFunctionParameters), - }), - ).annotate({ - identifier: "NamedEntityDefinitionMetric", - }) as any as S.Schema; +export const NamedEntityDefinitionMetric = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Aggregation: S.optional(NamedEntityAggType), + AggregationFunctionParameters: S.optional(AggregationFunctionParameters), + }), +).annotate({ + identifier: "NamedEntityDefinitionMetric", +}) as any as S.Schema; export interface NamedEntityDefinition { FieldName?: string; PropertyName?: string; @@ -17762,30 +17562,29 @@ export interface CreateTopicRefreshScheduleRequest { DatasetName?: string; RefreshSchedule: TopicRefreshSchedule; } -export const CreateTopicRefreshScheduleRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - TopicId: S.String.pipe(T.HttpLabel("TopicId")), - DatasetArn: S.String, - DatasetName: S.optional(S.String), - RefreshSchedule: TopicRefreshSchedule, - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/accounts/{AwsAccountId}/topics/{TopicId}/schedules", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateTopicRefreshScheduleRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + TopicId: S.String.pipe(T.HttpLabel("TopicId")), + DatasetArn: S.String, + DatasetName: S.optional(S.String), + RefreshSchedule: TopicRefreshSchedule, + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/accounts/{AwsAccountId}/topics/{TopicId}/schedules", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateTopicRefreshScheduleRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateTopicRefreshScheduleRequest", +}) as any as S.Schema; export interface CreateTopicRefreshScheduleResponse { TopicId?: string; TopicArn?: string; @@ -17793,18 +17592,17 @@ export interface CreateTopicRefreshScheduleResponse { Status?: number; RequestId?: string; } -export const CreateTopicRefreshScheduleResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TopicId: S.optional(S.String), - TopicArn: S.optional(S.String), - DatasetArn: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "CreateTopicRefreshScheduleResponse", - }) as any as S.Schema; +export const CreateTopicRefreshScheduleResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TopicId: S.optional(S.String), + TopicArn: S.optional(S.String), + DatasetArn: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "CreateTopicRefreshScheduleResponse", +}) as any as S.Schema; export type SubnetIdList = string[]; export const SubnetIdList = /*@__PURE__*/ S.Array(S.String); export type SecurityGroupIdList = string[]; @@ -17873,62 +17671,59 @@ export interface CreateVPCConnectionResponse { RequestId?: string; Status?: number; } -export const CreateVPCConnectionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Arn: S.optional(S.String), - VPCConnectionId: S.optional(S.String), - CreationStatus: S.optional(VPCConnectionResourceStatus), - AvailabilityStatus: S.optional(VPCConnectionAvailabilityStatus), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "CreateVPCConnectionResponse", - }) as any as S.Schema; +export const CreateVPCConnectionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Arn: S.optional(S.String), + VPCConnectionId: S.optional(S.String), + CreationStatus: S.optional(VPCConnectionResourceStatus), + AvailabilityStatus: S.optional(VPCConnectionAvailabilityStatus), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "CreateVPCConnectionResponse", +}) as any as S.Schema; export interface DeleteAccountCustomizationRequest { AwsAccountId: string; Namespace?: string; } -export const DeleteAccountCustomizationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - Namespace: S.optional(S.String).pipe(T.HttpQuery("namespace")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/accounts/{AwsAccountId}/customizations", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteAccountCustomizationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + Namespace: S.optional(S.String).pipe(T.HttpQuery("namespace")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/accounts/{AwsAccountId}/customizations", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteAccountCustomizationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteAccountCustomizationRequest", +}) as any as S.Schema; export interface DeleteAccountCustomizationResponse { RequestId?: string; Status?: number; } -export const DeleteAccountCustomizationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "DeleteAccountCustomizationResponse", - }) as any as S.Schema; +export const DeleteAccountCustomizationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "DeleteAccountCustomizationResponse", +}) as any as S.Schema; export interface DeleteAccountCustomPermissionRequest { AwsAccountId: string; } -export const DeleteAccountCustomPermissionRequest = - /*@__PURE__*/ S.suspend(() => +export const DeleteAccountCustomPermissionRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")) }).pipe( T.all( T.Http({ @@ -17942,92 +17737,88 @@ export const DeleteAccountCustomPermissionRequest = rules, ), ), - ).annotate({ - identifier: "DeleteAccountCustomPermissionRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteAccountCustomPermissionRequest", +}) as any as S.Schema; export interface DeleteAccountCustomPermissionResponse { RequestId?: string; Status?: number; } -export const DeleteAccountCustomPermissionResponse = - /*@__PURE__*/ S.suspend(() => +export const DeleteAccountCustomPermissionResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ RequestId: S.optional(S.String), Status: S.optional(S.Number) }), - ).annotate({ - identifier: "DeleteAccountCustomPermissionResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteAccountCustomPermissionResponse", +}) as any as S.Schema; export interface DeleteAccountSubscriptionRequest { AwsAccountId: string; } -export const DeleteAccountSubscriptionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")) }).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/account/{AwsAccountId}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteAccountSubscriptionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")) }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/account/{AwsAccountId}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteAccountSubscriptionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteAccountSubscriptionRequest", +}) as any as S.Schema; export interface DeleteAccountSubscriptionResponse { RequestId?: string; Status?: number; } -export const DeleteAccountSubscriptionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "DeleteAccountSubscriptionResponse", - }) as any as S.Schema; +export const DeleteAccountSubscriptionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "DeleteAccountSubscriptionResponse", +}) as any as S.Schema; export interface DeleteActionConnectorRequest { AwsAccountId: string; ActionConnectorId: string; } -export const DeleteActionConnectorRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - ActionConnectorId: S.String.pipe(T.HttpLabel("ActionConnectorId")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/accounts/{AwsAccountId}/action-connectors/{ActionConnectorId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteActionConnectorRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + ActionConnectorId: S.String.pipe(T.HttpLabel("ActionConnectorId")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/accounts/{AwsAccountId}/action-connectors/{ActionConnectorId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteActionConnectorRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteActionConnectorRequest", +}) as any as S.Schema; export interface DeleteActionConnectorResponse { Arn?: string; ActionConnectorId?: string; RequestId?: string; Status?: number; } -export const DeleteActionConnectorResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Arn: S.optional(S.String), - ActionConnectorId: S.optional(S.String), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "DeleteActionConnectorResponse", - }) as any as S.Schema; +export const DeleteActionConnectorResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Arn: S.optional(S.String), + ActionConnectorId: S.optional(S.String), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "DeleteActionConnectorResponse", +}) as any as S.Schema; export interface DeleteAgentRequest { AgentId: string; AwsAccountId: string; @@ -18145,75 +17936,69 @@ export const DeleteBrandResponse = /*@__PURE__*/ S.suspend(() => export interface DeleteBrandAssignmentRequest { AwsAccountId: string; } -export const DeleteBrandAssignmentRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")) }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/accounts/{AwsAccountId}/brandassignments", - }), - svc, - auth, - proto, - ver, - rules, - ), - ), - ).annotate({ - identifier: "DeleteBrandAssignmentRequest", - }) as any as S.Schema; -export interface DeleteBrandAssignmentResponse { - RequestId?: string; -} -export const DeleteBrandAssignmentResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ RequestId: S.optional(S.String) }), - ).annotate({ - identifier: "DeleteBrandAssignmentResponse", - }) as any as S.Schema; +export const DeleteBrandAssignmentRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")) }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/accounts/{AwsAccountId}/brandassignments", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "DeleteBrandAssignmentRequest", +}) as any as S.Schema; +export interface DeleteBrandAssignmentResponse { + RequestId?: string; +} +export const DeleteBrandAssignmentResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ RequestId: S.optional(S.String) }), +).annotate({ + identifier: "DeleteBrandAssignmentResponse", +}) as any as S.Schema; export interface DeleteCustomPermissionsRequest { AwsAccountId: string; CustomPermissionsName: string; } -export const DeleteCustomPermissionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - CustomPermissionsName: S.String.pipe( - T.HttpLabel("CustomPermissionsName"), - ), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/accounts/{AwsAccountId}/custom-permissions/{CustomPermissionsName}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteCustomPermissionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + CustomPermissionsName: S.String.pipe(T.HttpLabel("CustomPermissionsName")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/accounts/{AwsAccountId}/custom-permissions/{CustomPermissionsName}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteCustomPermissionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteCustomPermissionsRequest", +}) as any as S.Schema; export interface DeleteCustomPermissionsResponse { Status?: number; Arn?: string; RequestId?: string; } -export const DeleteCustomPermissionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Status: S.optional(S.Number), - Arn: S.optional(S.String), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "DeleteCustomPermissionsResponse", - }) as any as S.Schema; +export const DeleteCustomPermissionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Status: S.optional(S.Number), + Arn: S.optional(S.String), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "DeleteCustomPermissionsResponse", +}) as any as S.Schema; export interface DeleteDashboardRequest { AwsAccountId: string; DashboardId: string; @@ -18300,8 +18085,8 @@ export interface DeleteDataSetRefreshPropertiesRequest { AwsAccountId: string; DataSetId: string; } -export const DeleteDataSetRefreshPropertiesRequest = - /*@__PURE__*/ S.suspend(() => +export const DeleteDataSetRefreshPropertiesRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), DataSetId: S.String.pipe(T.HttpLabel("DataSetId")), @@ -18318,22 +18103,22 @@ export const DeleteDataSetRefreshPropertiesRequest = rules, ), ), - ).annotate({ - identifier: "DeleteDataSetRefreshPropertiesRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteDataSetRefreshPropertiesRequest", +}) as any as S.Schema; export interface DeleteDataSetRefreshPropertiesResponse { RequestId?: string; Status?: number; } -export const DeleteDataSetRefreshPropertiesResponse = - /*@__PURE__*/ S.suspend(() => +export const DeleteDataSetRefreshPropertiesResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ RequestId: S.optional(S.String), Status: S.optional(S.Number).pipe(T.HttpResponseCode()), }), - ).annotate({ - identifier: "DeleteDataSetRefreshPropertiesResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteDataSetRefreshPropertiesResponse", +}) as any as S.Schema; export interface DeleteDataSourceRequest { AwsAccountId: string; DataSourceId: string; @@ -18378,8 +18163,8 @@ export interface DeleteDefaultQBusinessApplicationRequest { AwsAccountId: string; Namespace?: string; } -export const DeleteDefaultQBusinessApplicationRequest = - /*@__PURE__*/ S.suspend(() => +export const DeleteDefaultQBusinessApplicationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), Namespace: S.optional(S.String).pipe(T.HttpQuery("namespace")), @@ -18396,9 +18181,9 @@ export const DeleteDefaultQBusinessApplicationRequest = rules, ), ), - ).annotate({ - identifier: "DeleteDefaultQBusinessApplicationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteDefaultQBusinessApplicationRequest", +}) as any as S.Schema; export interface DeleteDefaultQBusinessApplicationResponse { RequestId?: string; Status?: number; @@ -18494,39 +18279,37 @@ export interface DeleteFolderMembershipRequest { MemberId: string; MemberType: MemberType; } -export const DeleteFolderMembershipRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - FolderId: S.String.pipe(T.HttpLabel("FolderId")), - MemberId: S.String.pipe(T.HttpLabel("MemberId")), - MemberType: MemberType.pipe(T.HttpLabel("MemberType")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/accounts/{AwsAccountId}/folders/{FolderId}/members/{MemberType}/{MemberId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteFolderMembershipRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + FolderId: S.String.pipe(T.HttpLabel("FolderId")), + MemberId: S.String.pipe(T.HttpLabel("MemberId")), + MemberType: MemberType.pipe(T.HttpLabel("MemberType")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/accounts/{AwsAccountId}/folders/{FolderId}/members/{MemberType}/{MemberId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteFolderMembershipRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteFolderMembershipRequest", +}) as any as S.Schema; export interface DeleteFolderMembershipResponse { Status?: number; RequestId?: string; } -export const DeleteFolderMembershipResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Status: S.optional(S.Number), RequestId: S.optional(S.String) }), - ).annotate({ - identifier: "DeleteFolderMembershipResponse", - }) as any as S.Schema; +export const DeleteFolderMembershipResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Status: S.optional(S.Number), RequestId: S.optional(S.String) }), +).annotate({ + identifier: "DeleteFolderMembershipResponse", +}) as any as S.Schema; export interface DeleteGroupRequest { GroupName: string; AwsAccountId: string; @@ -18571,92 +18354,88 @@ export interface DeleteGroupMembershipRequest { AwsAccountId: string; Namespace: string; } -export const DeleteGroupMembershipRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - MemberName: S.String.pipe(T.HttpLabel("MemberName")), - GroupName: S.String.pipe(T.HttpLabel("GroupName")), - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - Namespace: S.String.pipe(T.HttpLabel("Namespace")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members/{MemberName}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteGroupMembershipRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + MemberName: S.String.pipe(T.HttpLabel("MemberName")), + GroupName: S.String.pipe(T.HttpLabel("GroupName")), + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + Namespace: S.String.pipe(T.HttpLabel("Namespace")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members/{MemberName}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteGroupMembershipRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteGroupMembershipRequest", +}) as any as S.Schema; export interface DeleteGroupMembershipResponse { RequestId?: string; Status?: number; } -export const DeleteGroupMembershipResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "DeleteGroupMembershipResponse", - }) as any as S.Schema; +export const DeleteGroupMembershipResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "DeleteGroupMembershipResponse", +}) as any as S.Schema; export interface DeleteIAMPolicyAssignmentRequest { AwsAccountId: string; AssignmentName: string; Namespace: string; } -export const DeleteIAMPolicyAssignmentRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - AssignmentName: S.String.pipe(T.HttpLabel("AssignmentName")), - Namespace: S.String.pipe(T.HttpLabel("Namespace")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/accounts/{AwsAccountId}/namespace/{Namespace}/iam-policy-assignments/{AssignmentName}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteIAMPolicyAssignmentRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + AssignmentName: S.String.pipe(T.HttpLabel("AssignmentName")), + Namespace: S.String.pipe(T.HttpLabel("Namespace")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/accounts/{AwsAccountId}/namespace/{Namespace}/iam-policy-assignments/{AssignmentName}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteIAMPolicyAssignmentRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteIAMPolicyAssignmentRequest", +}) as any as S.Schema; export interface DeleteIAMPolicyAssignmentResponse { AssignmentName?: string; RequestId?: string; Status?: number; } -export const DeleteIAMPolicyAssignmentResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AssignmentName: S.optional(S.String), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "DeleteIAMPolicyAssignmentResponse", - }) as any as S.Schema; +export const DeleteIAMPolicyAssignmentResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AssignmentName: S.optional(S.String), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "DeleteIAMPolicyAssignmentResponse", +}) as any as S.Schema; export type ServiceType = "REDSHIFT" | "QBUSINESS" | "ATHENA" | (string & {}); export const ServiceType = /*@__PURE__*/ S.String; export interface DeleteIdentityPropagationConfigRequest { AwsAccountId: string; Service: ServiceType; } -export const DeleteIdentityPropagationConfigRequest = - /*@__PURE__*/ S.suspend(() => +export const DeleteIdentityPropagationConfigRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), Service: ServiceType.pipe(T.HttpLabel("Service")), @@ -18673,22 +18452,22 @@ export const DeleteIdentityPropagationConfigRequest = rules, ), ), - ).annotate({ - identifier: "DeleteIdentityPropagationConfigRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteIdentityPropagationConfigRequest", +}) as any as S.Schema; export interface DeleteIdentityPropagationConfigResponse { RequestId?: string; Status?: number; } -export const DeleteIdentityPropagationConfigResponse = - /*@__PURE__*/ S.suspend(() => +export const DeleteIdentityPropagationConfigResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ RequestId: S.optional(S.String), Status: S.optional(S.Number).pipe(T.HttpResponseCode()), }), - ).annotate({ - identifier: "DeleteIdentityPropagationConfigResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteIdentityPropagationConfigResponse", +}) as any as S.Schema; export interface DeleteKnowledgeBaseRequest { AwsAccountId: string; KnowledgeBaseId: string; @@ -18719,17 +18498,16 @@ export interface DeleteKnowledgeBaseResponse { RequestId?: string; Status?: number; } -export const DeleteKnowledgeBaseResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - KnowledgeBaseArn: S.String, - KnowledgeBaseId: S.String, - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "DeleteKnowledgeBaseResponse", - }) as any as S.Schema; +export const DeleteKnowledgeBaseResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + KnowledgeBaseArn: S.String, + KnowledgeBaseId: S.String, + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "DeleteKnowledgeBaseResponse", +}) as any as S.Schema; export interface DeleteNamespaceRequest { AwsAccountId: string; Namespace: string; @@ -18770,169 +18548,162 @@ export interface DeleteOAuthClientApplicationRequest { AwsAccountId: string; OAuthClientApplicationId: string; } -export const DeleteOAuthClientApplicationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - OAuthClientApplicationId: S.String.pipe( - T.HttpLabel("OAuthClientApplicationId"), - ), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/accounts/{AwsAccountId}/oauth-client-applications/{OAuthClientApplicationId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteOAuthClientApplicationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + OAuthClientApplicationId: S.String.pipe( + T.HttpLabel("OAuthClientApplicationId"), ), - ).annotate({ - identifier: "DeleteOAuthClientApplicationRequest", - }) as any as S.Schema; + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/accounts/{AwsAccountId}/oauth-client-applications/{OAuthClientApplicationId}", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "DeleteOAuthClientApplicationRequest", +}) as any as S.Schema; export interface DeleteOAuthClientApplicationResponse { Arn?: string; OAuthClientApplicationId?: string; RequestId?: string; Status?: number; } -export const DeleteOAuthClientApplicationResponse = - /*@__PURE__*/ S.suspend(() => +export const DeleteOAuthClientApplicationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ Arn: S.optional(S.String), OAuthClientApplicationId: S.optional(S.String), RequestId: S.optional(S.String), Status: S.optional(S.Number).pipe(T.HttpResponseCode()), }), - ).annotate({ - identifier: "DeleteOAuthClientApplicationResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteOAuthClientApplicationResponse", +}) as any as S.Schema; export interface DeleteRefreshScheduleRequest { DataSetId: string; AwsAccountId: string; ScheduleId: string; } -export const DeleteRefreshScheduleRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DataSetId: S.String.pipe(T.HttpLabel("DataSetId")), - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - ScheduleId: S.String.pipe(T.HttpLabel("ScheduleId")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-schedules/{ScheduleId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteRefreshScheduleRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DataSetId: S.String.pipe(T.HttpLabel("DataSetId")), + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + ScheduleId: S.String.pipe(T.HttpLabel("ScheduleId")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-schedules/{ScheduleId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteRefreshScheduleRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteRefreshScheduleRequest", +}) as any as S.Schema; export interface DeleteRefreshScheduleResponse { Status?: number; RequestId?: string; ScheduleId?: string; Arn?: string; } -export const DeleteRefreshScheduleResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - RequestId: S.optional(S.String), - ScheduleId: S.optional(S.String), - Arn: S.optional(S.String), - }), - ).annotate({ - identifier: "DeleteRefreshScheduleResponse", - }) as any as S.Schema; +export const DeleteRefreshScheduleResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + RequestId: S.optional(S.String), + ScheduleId: S.optional(S.String), + Arn: S.optional(S.String), + }), +).annotate({ + identifier: "DeleteRefreshScheduleResponse", +}) as any as S.Schema; export interface DeleteRoleCustomPermissionRequest { Role: Role; AwsAccountId: string; Namespace: string; } -export const DeleteRoleCustomPermissionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Role: Role.pipe(T.HttpLabel("Role")), - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - Namespace: S.String.pipe(T.HttpLabel("Namespace")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/custom-permission", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteRoleCustomPermissionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Role: Role.pipe(T.HttpLabel("Role")), + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + Namespace: S.String.pipe(T.HttpLabel("Namespace")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/custom-permission", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteRoleCustomPermissionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteRoleCustomPermissionRequest", +}) as any as S.Schema; export interface DeleteRoleCustomPermissionResponse { RequestId?: string; Status?: number; } -export const DeleteRoleCustomPermissionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ RequestId: S.optional(S.String), Status: S.optional(S.Number) }), - ).annotate({ - identifier: "DeleteRoleCustomPermissionResponse", - }) as any as S.Schema; +export const DeleteRoleCustomPermissionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ RequestId: S.optional(S.String), Status: S.optional(S.Number) }), +).annotate({ + identifier: "DeleteRoleCustomPermissionResponse", +}) as any as S.Schema; export interface DeleteRoleMembershipRequest { MemberName: string; Role: Role; AwsAccountId: string; Namespace: string; } -export const DeleteRoleMembershipRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - MemberName: S.String.pipe(T.HttpLabel("MemberName")), - Role: Role.pipe(T.HttpLabel("Role")), - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - Namespace: S.String.pipe(T.HttpLabel("Namespace")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/members/{MemberName}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteRoleMembershipRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + MemberName: S.String.pipe(T.HttpLabel("MemberName")), + Role: Role.pipe(T.HttpLabel("Role")), + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + Namespace: S.String.pipe(T.HttpLabel("Namespace")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/members/{MemberName}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteRoleMembershipRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteRoleMembershipRequest", +}) as any as S.Schema; export interface DeleteRoleMembershipResponse { RequestId?: string; Status?: number; } -export const DeleteRoleMembershipResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "DeleteRoleMembershipResponse", - }) as any as S.Schema; +export const DeleteRoleMembershipResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "DeleteRoleMembershipResponse", +}) as any as S.Schema; export interface DeleteSpaceRequest { AwsAccountId: string; SpaceId: string; @@ -19046,18 +18817,17 @@ export interface DeleteTemplateAliasResponse { Arn?: string; RequestId?: string; } -export const DeleteTemplateAliasResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - TemplateId: S.optional(S.String), - AliasName: S.optional(S.String), - Arn: S.optional(S.String), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "DeleteTemplateAliasResponse", - }) as any as S.Schema; +export const DeleteTemplateAliasResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + TemplateId: S.optional(S.String), + AliasName: S.optional(S.String), + Arn: S.optional(S.String), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "DeleteTemplateAliasResponse", +}) as any as S.Schema; export interface DeleteThemeRequest { AwsAccountId: string; ThemeId: string; @@ -19189,28 +18959,27 @@ export interface DeleteTopicRefreshScheduleRequest { TopicId: string; DatasetId: string; } -export const DeleteTopicRefreshScheduleRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - TopicId: S.String.pipe(T.HttpLabel("TopicId")), - DatasetId: S.String.pipe(T.HttpLabel("DatasetId")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/accounts/{AwsAccountId}/topics/{TopicId}/schedules/{DatasetId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteTopicRefreshScheduleRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + TopicId: S.String.pipe(T.HttpLabel("TopicId")), + DatasetId: S.String.pipe(T.HttpLabel("DatasetId")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/accounts/{AwsAccountId}/topics/{TopicId}/schedules/{DatasetId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteTopicRefreshScheduleRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteTopicRefreshScheduleRequest", +}) as any as S.Schema; export interface DeleteTopicRefreshScheduleResponse { TopicId?: string; TopicArn?: string; @@ -19218,18 +18987,17 @@ export interface DeleteTopicRefreshScheduleResponse { Status?: number; RequestId?: string; } -export const DeleteTopicRefreshScheduleResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TopicId: S.optional(S.String), - TopicArn: S.optional(S.String), - DatasetArn: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "DeleteTopicRefreshScheduleResponse", - }) as any as S.Schema; +export const DeleteTopicRefreshScheduleResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TopicId: S.optional(S.String), + TopicArn: S.optional(S.String), + DatasetArn: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "DeleteTopicRefreshScheduleResponse", +}) as any as S.Schema; export interface DeleteUserRequest { UserName: string; AwsAccountId: string; @@ -19273,94 +19041,90 @@ export interface DeleteUserByPrincipalIdRequest { AwsAccountId: string; Namespace: string; } -export const DeleteUserByPrincipalIdRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - PrincipalId: S.String.pipe(T.HttpLabel("PrincipalId")), - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - Namespace: S.String.pipe(T.HttpLabel("Namespace")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/user-principals/{PrincipalId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteUserByPrincipalIdRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + PrincipalId: S.String.pipe(T.HttpLabel("PrincipalId")), + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + Namespace: S.String.pipe(T.HttpLabel("Namespace")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/user-principals/{PrincipalId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteUserByPrincipalIdRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteUserByPrincipalIdRequest", +}) as any as S.Schema; export interface DeleteUserByPrincipalIdResponse { RequestId?: string; Status?: number; } -export const DeleteUserByPrincipalIdResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "DeleteUserByPrincipalIdResponse", - }) as any as S.Schema; +export const DeleteUserByPrincipalIdResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "DeleteUserByPrincipalIdResponse", +}) as any as S.Schema; export interface DeleteUserCustomPermissionRequest { UserName: string; AwsAccountId: string; Namespace: string; } -export const DeleteUserCustomPermissionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - UserName: S.String.pipe(T.HttpLabel("UserName")), - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - Namespace: S.String.pipe(T.HttpLabel("Namespace")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}/custom-permission", - }), - svc, - auth, - proto, - ver, - rules, - ), - ), - ).annotate({ - identifier: "DeleteUserCustomPermissionRequest", - }) as any as S.Schema; -export interface DeleteUserCustomPermissionResponse { - RequestId?: string; - Status?: number; -} -export const DeleteUserCustomPermissionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "DeleteUserCustomPermissionResponse", - }) as any as S.Schema; -export interface DeleteVPCConnectionRequest { - AwsAccountId: string; - VPCConnectionId: string; -} -export const DeleteVPCConnectionRequest = /*@__PURE__*/ S.suspend(() => +export const DeleteUserCustomPermissionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ + UserName: S.String.pipe(T.HttpLabel("UserName")), AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - VPCConnectionId: S.String.pipe(T.HttpLabel("VPCConnectionId")), + Namespace: S.String.pipe(T.HttpLabel("Namespace")), }).pipe( T.all( T.Http({ method: "DELETE", - uri: "/accounts/{AwsAccountId}/vpc-connections/{VPCConnectionId}", + uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}/custom-permission", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "DeleteUserCustomPermissionRequest", +}) as any as S.Schema; +export interface DeleteUserCustomPermissionResponse { + RequestId?: string; + Status?: number; +} +export const DeleteUserCustomPermissionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "DeleteUserCustomPermissionResponse", +}) as any as S.Schema; +export interface DeleteVPCConnectionRequest { + AwsAccountId: string; + VPCConnectionId: string; +} +export const DeleteVPCConnectionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + VPCConnectionId: S.String.pipe(T.HttpLabel("VPCConnectionId")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/accounts/{AwsAccountId}/vpc-connections/{VPCConnectionId}", }), svc, auth, @@ -19380,46 +19144,41 @@ export interface DeleteVPCConnectionResponse { RequestId?: string; Status?: number; } -export const DeleteVPCConnectionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Arn: S.optional(S.String), - VPCConnectionId: S.optional(S.String), - DeletionStatus: S.optional(VPCConnectionResourceStatus), - AvailabilityStatus: S.optional(VPCConnectionAvailabilityStatus), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "DeleteVPCConnectionResponse", - }) as any as S.Schema; +export const DeleteVPCConnectionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Arn: S.optional(S.String), + VPCConnectionId: S.optional(S.String), + DeletionStatus: S.optional(VPCConnectionResourceStatus), + AvailabilityStatus: S.optional(VPCConnectionAvailabilityStatus), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "DeleteVPCConnectionResponse", +}) as any as S.Schema; export interface DescribeAccountCustomizationRequest { AwsAccountId: string; Namespace?: string; Resolved?: boolean; } -export const DescribeAccountCustomizationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - Namespace: S.optional(S.String).pipe(T.HttpQuery("namespace")), - Resolved: S.optional(S.Boolean).pipe(T.HttpQuery("resolved")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/customizations", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeAccountCustomizationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + Namespace: S.optional(S.String).pipe(T.HttpQuery("namespace")), + Resolved: S.optional(S.Boolean).pipe(T.HttpQuery("resolved")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/accounts/{AwsAccountId}/customizations" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeAccountCustomizationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeAccountCustomizationRequest", +}) as any as S.Schema; export interface DescribeAccountCustomizationResponse { Arn?: string; AwsAccountId?: string; @@ -19428,8 +19187,8 @@ export interface DescribeAccountCustomizationResponse { RequestId?: string; Status?: number; } -export const DescribeAccountCustomizationResponse = - /*@__PURE__*/ S.suspend(() => +export const DescribeAccountCustomizationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ Arn: S.optional(S.String), AwsAccountId: S.optional(S.String), @@ -19438,14 +19197,14 @@ export const DescribeAccountCustomizationResponse = RequestId: S.optional(S.String), Status: S.optional(S.Number).pipe(T.HttpResponseCode()), }), - ).annotate({ - identifier: "DescribeAccountCustomizationResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeAccountCustomizationResponse", +}) as any as S.Schema; export interface DescribeAccountCustomPermissionRequest { AwsAccountId: string; } -export const DescribeAccountCustomPermissionRequest = - /*@__PURE__*/ S.suspend(() => +export const DescribeAccountCustomPermissionRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")) }).pipe( T.all( T.Http({ @@ -19459,42 +19218,41 @@ export const DescribeAccountCustomPermissionRequest = rules, ), ), - ).annotate({ - identifier: "DescribeAccountCustomPermissionRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeAccountCustomPermissionRequest", +}) as any as S.Schema; export interface DescribeAccountCustomPermissionResponse { CustomPermissionsName?: string; RequestId?: string; Status?: number; } -export const DescribeAccountCustomPermissionResponse = - /*@__PURE__*/ S.suspend(() => +export const DescribeAccountCustomPermissionResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ CustomPermissionsName: S.optional(S.String), RequestId: S.optional(S.String), Status: S.optional(S.Number), }), - ).annotate({ - identifier: "DescribeAccountCustomPermissionResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeAccountCustomPermissionResponse", +}) as any as S.Schema; export interface DescribeAccountSettingsRequest { AwsAccountId: string; } -export const DescribeAccountSettingsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")) }).pipe( - T.all( - T.Http({ method: "GET", uri: "/accounts/{AwsAccountId}/settings" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeAccountSettingsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")) }).pipe( + T.all( + T.Http({ method: "GET", uri: "/accounts/{AwsAccountId}/settings" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeAccountSettingsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeAccountSettingsRequest", +}) as any as S.Schema; export interface AccountSettings { AccountName?: string; Edition?: Edition; @@ -19520,34 +19278,32 @@ export interface DescribeAccountSettingsResponse { RequestId?: string; Status?: number; } -export const DescribeAccountSettingsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AccountSettings: S.optional(AccountSettings), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "DescribeAccountSettingsResponse", - }) as any as S.Schema; +export const DescribeAccountSettingsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AccountSettings: S.optional(AccountSettings), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "DescribeAccountSettingsResponse", +}) as any as S.Schema; export interface DescribeAccountSubscriptionRequest { AwsAccountId: string; } -export const DescribeAccountSubscriptionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")) }).pipe( - T.all( - T.Http({ method: "GET", uri: "/account/{AwsAccountId}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeAccountSubscriptionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")) }).pipe( + T.all( + T.Http({ method: "GET", uri: "/account/{AwsAccountId}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeAccountSubscriptionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeAccountSubscriptionRequest", +}) as any as S.Schema; export interface AccountInfo { AccountName?: string; Edition?: Edition; @@ -19571,41 +19327,39 @@ export interface DescribeAccountSubscriptionResponse { Status?: number; RequestId?: string; } -export const DescribeAccountSubscriptionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AccountInfo: S.optional(AccountInfo), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "DescribeAccountSubscriptionResponse", - }) as any as S.Schema; +export const DescribeAccountSubscriptionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AccountInfo: S.optional(AccountInfo), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "DescribeAccountSubscriptionResponse", +}) as any as S.Schema; export interface DescribeActionConnectorRequest { AwsAccountId: string; ActionConnectorId: string; } -export const DescribeActionConnectorRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - ActionConnectorId: S.String.pipe(T.HttpLabel("ActionConnectorId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/action-connectors/{ActionConnectorId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeActionConnectorRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + ActionConnectorId: S.String.pipe(T.HttpLabel("ActionConnectorId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/action-connectors/{ActionConnectorId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeActionConnectorRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeActionConnectorRequest", +}) as any as S.Schema; export type ActionConnectorErrorType = "INTERNAL_FAILURE" | (string & {}); export const ActionConnectorErrorType = /*@__PURE__*/ S.String; export interface ActionConnectorError { @@ -19625,16 +19379,15 @@ export interface ReadAuthorizationCodeGrantDetails { TokenEndpoint: string; AuthorizationEndpoint: string; } -export const ReadAuthorizationCodeGrantDetails = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ClientId: S.String, - TokenEndpoint: S.String, - AuthorizationEndpoint: S.String, - }), - ).annotate({ - identifier: "ReadAuthorizationCodeGrantDetails", - }) as any as S.Schema; +export const ReadAuthorizationCodeGrantDetails = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ClientId: S.String, + TokenEndpoint: S.String, + AuthorizationEndpoint: S.String, + }), +).annotate({ + identifier: "ReadAuthorizationCodeGrantDetails", +}) as any as S.Schema; export type ReadAuthorizationCodeGrantCredentialsDetails = { ReadAuthorizationCodeGrantDetails: ReadAuthorizationCodeGrantDetails; }; @@ -19650,31 +19403,29 @@ export interface ReadAuthorizationCodeGrantMetadata { ReadAuthorizationCodeGrantCredentialsDetails?: ReadAuthorizationCodeGrantCredentialsDetails; AuthorizationCodeGrantCredentialsSource?: AuthorizationCodeGrantCredentialsSource; } -export const ReadAuthorizationCodeGrantMetadata = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - BaseEndpoint: S.String, - RedirectUrl: S.String, - ReadAuthorizationCodeGrantCredentialsDetails: S.optional( - ReadAuthorizationCodeGrantCredentialsDetails, - ), - AuthorizationCodeGrantCredentialsSource: S.optional( - AuthorizationCodeGrantCredentialsSource, - ), - }), - ).annotate({ - identifier: "ReadAuthorizationCodeGrantMetadata", - }) as any as S.Schema; +export const ReadAuthorizationCodeGrantMetadata = /*@__PURE__*/ S.suspend(() => + S.Struct({ + BaseEndpoint: S.String, + RedirectUrl: S.String, + ReadAuthorizationCodeGrantCredentialsDetails: S.optional( + ReadAuthorizationCodeGrantCredentialsDetails, + ), + AuthorizationCodeGrantCredentialsSource: S.optional( + AuthorizationCodeGrantCredentialsSource, + ), + }), +).annotate({ + identifier: "ReadAuthorizationCodeGrantMetadata", +}) as any as S.Schema; export interface ReadClientCredentialsGrantDetails { ClientId: string; TokenEndpoint: string; } -export const ReadClientCredentialsGrantDetails = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ClientId: S.String, TokenEndpoint: S.String }), - ).annotate({ - identifier: "ReadClientCredentialsGrantDetails", - }) as any as S.Schema; +export const ReadClientCredentialsGrantDetails = /*@__PURE__*/ S.suspend(() => + S.Struct({ ClientId: S.String, TokenEndpoint: S.String }), +).annotate({ + identifier: "ReadClientCredentialsGrantDetails", +}) as any as S.Schema; export type ReadClientCredentialsDetails = { ReadClientCredentialsGrantDetails: ReadClientCredentialsGrantDetails; }; @@ -19688,36 +19439,33 @@ export interface ReadClientCredentialsGrantMetadata { ReadClientCredentialsDetails?: ReadClientCredentialsDetails; ClientCredentialsSource?: ClientCredentialsSource; } -export const ReadClientCredentialsGrantMetadata = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - BaseEndpoint: S.String, - ReadClientCredentialsDetails: S.optional(ReadClientCredentialsDetails), - ClientCredentialsSource: S.optional(ClientCredentialsSource), - }), - ).annotate({ - identifier: "ReadClientCredentialsGrantMetadata", - }) as any as S.Schema; +export const ReadClientCredentialsGrantMetadata = /*@__PURE__*/ S.suspend(() => + S.Struct({ + BaseEndpoint: S.String, + ReadClientCredentialsDetails: S.optional(ReadClientCredentialsDetails), + ClientCredentialsSource: S.optional(ClientCredentialsSource), + }), +).annotate({ + identifier: "ReadClientCredentialsGrantMetadata", +}) as any as S.Schema; export interface ReadBasicAuthConnectionMetadata { BaseEndpoint: string; Username: string | redacted.Redacted; } -export const ReadBasicAuthConnectionMetadata = - /*@__PURE__*/ S.suspend(() => - S.Struct({ BaseEndpoint: S.String, Username: SensitiveString }), - ).annotate({ - identifier: "ReadBasicAuthConnectionMetadata", - }) as any as S.Schema; +export const ReadBasicAuthConnectionMetadata = /*@__PURE__*/ S.suspend(() => + S.Struct({ BaseEndpoint: S.String, Username: SensitiveString }), +).annotate({ + identifier: "ReadBasicAuthConnectionMetadata", +}) as any as S.Schema; export interface ReadAPIKeyConnectionMetadata { BaseEndpoint: string; Email?: string | redacted.Redacted; } -export const ReadAPIKeyConnectionMetadata = - /*@__PURE__*/ S.suspend(() => - S.Struct({ BaseEndpoint: S.String, Email: S.optional(SensitiveString) }), - ).annotate({ - identifier: "ReadAPIKeyConnectionMetadata", - }) as any as S.Schema; +export const ReadAPIKeyConnectionMetadata = /*@__PURE__*/ S.suspend(() => + S.Struct({ BaseEndpoint: S.String, Email: S.optional(SensitiveString) }), +).annotate({ + identifier: "ReadAPIKeyConnectionMetadata", +}) as any as S.Schema; export interface ReadNoneConnectionMetadata { BaseEndpoint: string; } @@ -19845,16 +19593,15 @@ export interface DescribeActionConnectorResponse { RequestId?: string; Status?: number; } -export const DescribeActionConnectorResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ActionConnector: S.optional(ActionConnector), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "DescribeActionConnectorResponse", - }) as any as S.Schema; +export const DescribeActionConnectorResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ActionConnector: S.optional(ActionConnector), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "DescribeActionConnectorResponse", +}) as any as S.Schema; export interface DescribeActionConnectorPermissionsRequest { AwsAccountId: string; ActionConnectorId: string; @@ -20004,57 +19751,15 @@ export interface DescribeAgentPermissionsRequest { AgentId: string; AwsAccountId: string; } -export const DescribeAgentPermissionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AgentId: S.String.pipe(T.HttpLabel("AgentId")), - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/agents/{AgentId}/permissions", - }), - svc, - auth, - proto, - ver, - rules, - ), - ), - ).annotate({ - identifier: "DescribeAgentPermissionsRequest", - }) as any as S.Schema; -export interface DescribeAgentPermissionsResponse { - Arn: string; - AgentId: string; - Permissions: ResourcePermission[]; - RequestId: string; -} -export const DescribeAgentPermissionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Arn: S.String, - AgentId: S.String, - Permissions: ResourcePermissionList, - RequestId: S.String, - }), - ).annotate({ - identifier: "DescribeAgentPermissionsResponse", - }) as any as S.Schema; -export interface DescribeAnalysisRequest { - AwsAccountId: string; - AnalysisId: string; -} -export const DescribeAnalysisRequest = /*@__PURE__*/ S.suspend(() => +export const DescribeAgentPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ + AgentId: S.String.pipe(T.HttpLabel("AgentId")), AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - AnalysisId: S.String.pipe(T.HttpLabel("AnalysisId")), }).pipe( T.all( T.Http({ method: "GET", - uri: "/accounts/{AwsAccountId}/analyses/{AnalysisId}", + uri: "/accounts/{AwsAccountId}/agents/{AgentId}/permissions", }), svc, auth, @@ -20064,9 +19769,49 @@ export const DescribeAnalysisRequest = /*@__PURE__*/ S.suspend(() => ), ), ).annotate({ - identifier: "DescribeAnalysisRequest", -}) as any as S.Schema; -export type AnalysisErrorType = + identifier: "DescribeAgentPermissionsRequest", +}) as any as S.Schema; +export interface DescribeAgentPermissionsResponse { + Arn: string; + AgentId: string; + Permissions: ResourcePermission[]; + RequestId: string; +} +export const DescribeAgentPermissionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Arn: S.String, + AgentId: S.String, + Permissions: ResourcePermissionList, + RequestId: S.String, + }), +).annotate({ + identifier: "DescribeAgentPermissionsResponse", +}) as any as S.Schema; +export interface DescribeAnalysisRequest { + AwsAccountId: string; + AnalysisId: string; +} +export const DescribeAnalysisRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + AnalysisId: S.String.pipe(T.HttpLabel("AnalysisId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/analyses/{AnalysisId}", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "DescribeAnalysisRequest", +}) as any as S.Schema; +export type AnalysisErrorType = | "ACCESS_DENIED" | "SOURCE_NOT_FOUND" | "DATA_SET_NOT_FOUND" @@ -20161,27 +19906,26 @@ export interface DescribeAnalysisDefinitionRequest { AwsAccountId: string; AnalysisId: string; } -export const DescribeAnalysisDefinitionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - AnalysisId: S.String.pipe(T.HttpLabel("AnalysisId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/analyses/{AnalysisId}/definition", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeAnalysisDefinitionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + AnalysisId: S.String.pipe(T.HttpLabel("AnalysisId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/analyses/{AnalysisId}/definition", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeAnalysisDefinitionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeAnalysisDefinitionRequest", +}) as any as S.Schema; export interface DescribeAnalysisDefinitionResponse { AnalysisId?: string; Name?: string; @@ -20192,46 +19936,44 @@ export interface DescribeAnalysisDefinitionResponse { Status?: number; RequestId?: string; } -export const DescribeAnalysisDefinitionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AnalysisId: S.optional(S.String), - Name: S.optional(S.String), - Errors: S.optional(AnalysisErrorList), - ResourceStatus: S.optional(ResourceStatus), - ThemeArn: S.optional(S.String), - Definition: S.optional(AnalysisDefinition), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "DescribeAnalysisDefinitionResponse", - }) as any as S.Schema; +export const DescribeAnalysisDefinitionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AnalysisId: S.optional(S.String), + Name: S.optional(S.String), + Errors: S.optional(AnalysisErrorList), + ResourceStatus: S.optional(ResourceStatus), + ThemeArn: S.optional(S.String), + Definition: S.optional(AnalysisDefinition), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "DescribeAnalysisDefinitionResponse", +}) as any as S.Schema; export interface DescribeAnalysisPermissionsRequest { AwsAccountId: string; AnalysisId: string; } -export const DescribeAnalysisPermissionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - AnalysisId: S.String.pipe(T.HttpLabel("AnalysisId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/analyses/{AnalysisId}/permissions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeAnalysisPermissionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + AnalysisId: S.String.pipe(T.HttpLabel("AnalysisId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/analyses/{AnalysisId}/permissions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeAnalysisPermissionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeAnalysisPermissionsRequest", +}) as any as S.Schema; export type UpdateResourcePermissionList = ResourcePermission[]; export const UpdateResourcePermissionList = /*@__PURE__*/ S.Array(ResourcePermission); @@ -20242,45 +19984,43 @@ export interface DescribeAnalysisPermissionsResponse { Status?: number; RequestId?: string; } -export const DescribeAnalysisPermissionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AnalysisId: S.optional(S.String), - AnalysisArn: S.optional(S.String), - Permissions: S.optional(UpdateResourcePermissionList), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "DescribeAnalysisPermissionsResponse", - }) as any as S.Schema; +export const DescribeAnalysisPermissionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AnalysisId: S.optional(S.String), + AnalysisArn: S.optional(S.String), + Permissions: S.optional(UpdateResourcePermissionList), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "DescribeAnalysisPermissionsResponse", +}) as any as S.Schema; export interface DescribeAssetBundleExportJobRequest { AwsAccountId: string; AssetBundleExportJobId: string; } -export const DescribeAssetBundleExportJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - AssetBundleExportJobId: S.String.pipe( - T.HttpLabel("AssetBundleExportJobId"), - ), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/asset-bundle-export-jobs/{AssetBundleExportJobId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeAssetBundleExportJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + AssetBundleExportJobId: S.String.pipe( + T.HttpLabel("AssetBundleExportJobId"), ), - ).annotate({ - identifier: "DescribeAssetBundleExportJobRequest", - }) as any as S.Schema; + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/asset-bundle-export-jobs/{AssetBundleExportJobId}", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "DescribeAssetBundleExportJobRequest", +}) as any as S.Schema; export type AssetBundleExportJobStatus = | "QUEUED_FOR_IMMEDIATE_EXECUTION" | "IN_PROGRESS" @@ -20303,8 +20043,9 @@ export const AssetBundleExportJobError = /*@__PURE__*/ S.suspend(() => identifier: "AssetBundleExportJobError", }) as any as S.Schema; export type AssetBundleExportJobErrorList = AssetBundleExportJobError[]; -export const AssetBundleExportJobErrorList = - /*@__PURE__*/ S.Array(AssetBundleExportJobError); +export const AssetBundleExportJobErrorList = /*@__PURE__*/ S.Array( + AssetBundleExportJobError, +); export type AssetBundleResourceArns = string[]; export const AssetBundleResourceArns = /*@__PURE__*/ S.Array(S.String); export type AssetBundleExportFormat = @@ -20590,25 +20331,24 @@ export const AssetBundleCloudFormationOverridePropertyConfiguration = export interface AssetBundleExportJobValidationStrategy { StrictModeForAllResources?: boolean; } -export const AssetBundleExportJobValidationStrategy = - /*@__PURE__*/ S.suspend(() => - S.Struct({ StrictModeForAllResources: S.optional(S.Boolean) }), - ).annotate({ - identifier: "AssetBundleExportJobValidationStrategy", - }) as any as S.Schema; +export const AssetBundleExportJobValidationStrategy = /*@__PURE__*/ S.suspend( + () => S.Struct({ StrictModeForAllResources: S.optional(S.Boolean) }), +).annotate({ + identifier: "AssetBundleExportJobValidationStrategy", +}) as any as S.Schema; export interface AssetBundleExportJobWarning { Arn?: string; Message?: string; } -export const AssetBundleExportJobWarning = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Arn: S.optional(S.String), Message: S.optional(S.String) }), - ).annotate({ - identifier: "AssetBundleExportJobWarning", - }) as any as S.Schema; +export const AssetBundleExportJobWarning = /*@__PURE__*/ S.suspend(() => + S.Struct({ Arn: S.optional(S.String), Message: S.optional(S.String) }), +).annotate({ + identifier: "AssetBundleExportJobWarning", +}) as any as S.Schema; export type AssetBundleExportJobWarningList = AssetBundleExportJobWarning[]; -export const AssetBundleExportJobWarningList = - /*@__PURE__*/ S.Array(AssetBundleExportJobWarning); +export const AssetBundleExportJobWarningList = /*@__PURE__*/ S.Array( + AssetBundleExportJobWarning, +); export type IncludeFolderMembers = | "RECURSE" | "ONE_LEVEL" @@ -20636,8 +20376,8 @@ export interface DescribeAssetBundleExportJobResponse { IncludeFolderMemberships?: boolean; IncludeFolderMembers?: IncludeFolderMembers; } -export const DescribeAssetBundleExportJobResponse = - /*@__PURE__*/ S.suspend(() => +export const DescribeAssetBundleExportJobResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ JobStatus: S.optional(AssetBundleExportJobStatus), DownloadUrl: S.optional(SensitiveString), @@ -20661,36 +20401,35 @@ export const DescribeAssetBundleExportJobResponse = IncludeFolderMemberships: S.optional(S.Boolean), IncludeFolderMembers: S.optional(IncludeFolderMembers), }), - ).annotate({ - identifier: "DescribeAssetBundleExportJobResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeAssetBundleExportJobResponse", +}) as any as S.Schema; export interface DescribeAssetBundleImportJobRequest { AwsAccountId: string; AssetBundleImportJobId: string; } -export const DescribeAssetBundleImportJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - AssetBundleImportJobId: S.String.pipe( - T.HttpLabel("AssetBundleImportJobId"), - ), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/asset-bundle-import-jobs/{AssetBundleImportJobId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeAssetBundleImportJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + AssetBundleImportJobId: S.String.pipe( + T.HttpLabel("AssetBundleImportJobId"), ), - ).annotate({ - identifier: "DescribeAssetBundleImportJobRequest", - }) as any as S.Schema; + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/asset-bundle-import-jobs/{AssetBundleImportJobId}", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "DescribeAssetBundleImportJobRequest", +}) as any as S.Schema; export type AssetBundleImportJobStatus = | "QUEUED_FOR_IMMEDIATE_EXECUTION" | "IN_PROGRESS" @@ -20716,21 +20455,18 @@ export const AssetBundleImportJobError = /*@__PURE__*/ S.suspend(() => identifier: "AssetBundleImportJobError", }) as any as S.Schema; export type AssetBundleImportJobErrorList = AssetBundleImportJobError[]; -export const AssetBundleImportJobErrorList = - /*@__PURE__*/ S.Array(AssetBundleImportJobError); +export const AssetBundleImportJobErrorList = /*@__PURE__*/ S.Array( + AssetBundleImportJobError, +); export interface AssetBundleImportSourceDescription { Body?: string | redacted.Redacted; S3Uri?: string; } -export const AssetBundleImportSourceDescription = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Body: S.optional(SensitiveString), - S3Uri: S.optional(S.String), - }), - ).annotate({ - identifier: "AssetBundleImportSourceDescription", - }) as any as S.Schema; +export const AssetBundleImportSourceDescription = /*@__PURE__*/ S.suspend(() => + S.Struct({ Body: S.optional(SensitiveString), S3Uri: S.optional(S.String) }), +).annotate({ + identifier: "AssetBundleImportSourceDescription", +}) as any as S.Schema; export interface AssetBundleImportJobResourceIdOverrideConfiguration { PrefixForAllResources?: string; } @@ -20788,11 +20524,11 @@ export const AssetBundleImportJobRefreshScheduleOverrideParametersList = /*@__PURE__*/ S.Array(AssetBundleImportJobRefreshScheduleOverrideParameters); export interface AssetBundleImportJobDataSourceCredentialPair { Username: string; - Password: string; + Password: string | redacted.Redacted; } export const AssetBundleImportJobDataSourceCredentialPair = /*@__PURE__*/ S.suspend(() => - S.Struct({ Username: S.String, Password: S.String }), + S.Struct({ Username: S.String, Password: SensitiveString }), ).annotate({ identifier: "AssetBundleImportJobDataSourceCredentialPair", }) as any as S.Schema; @@ -20877,12 +20613,11 @@ export const RefreshFailureEmailAlert = /*@__PURE__*/ S.suspend(() => export interface RefreshFailureConfiguration { EmailAlert?: RefreshFailureEmailAlert; } -export const RefreshFailureConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ EmailAlert: S.optional(RefreshFailureEmailAlert) }), - ).annotate({ - identifier: "RefreshFailureConfiguration", - }) as any as S.Schema; +export const RefreshFailureConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ EmailAlert: S.optional(RefreshFailureEmailAlert) }), +).annotate({ + identifier: "RefreshFailureConfiguration", +}) as any as S.Schema; export interface DataSetRefreshProperties { RefreshConfiguration?: RefreshConfiguration; FailureConfiguration?: RefreshFailureConfiguration; @@ -20986,8 +20721,8 @@ export interface AssetBundleImportJobOverrideParameters { Dashboards?: AssetBundleImportJobDashboardOverrideParameters[]; Folders?: AssetBundleImportJobFolderOverrideParameters[]; } -export const AssetBundleImportJobOverrideParameters = - /*@__PURE__*/ S.suspend(() => +export const AssetBundleImportJobOverrideParameters = /*@__PURE__*/ S.suspend( + () => S.Struct({ ResourceIdOverrideConfiguration: S.optional( AssetBundleImportJobResourceIdOverrideConfiguration, @@ -21009,29 +20744,29 @@ export const AssetBundleImportJobOverrideParameters = ), Folders: S.optional(AssetBundleImportJobFolderOverrideParametersList), }), - ).annotate({ - identifier: "AssetBundleImportJobOverrideParameters", - }) as any as S.Schema; +).annotate({ + identifier: "AssetBundleImportJobOverrideParameters", +}) as any as S.Schema; export type AssetBundleImportFailureAction = | "DO_NOTHING" | "ROLLBACK" | (string & {}); export const AssetBundleImportFailureAction = /*@__PURE__*/ S.String; export type AssetBundleRestrictiveResourceIdList = string[]; -export const AssetBundleRestrictiveResourceIdList = - /*@__PURE__*/ S.Array(S.String); +export const AssetBundleRestrictiveResourceIdList = /*@__PURE__*/ S.Array( + S.String, +); export type AssetBundlePrincipalList = string[]; export const AssetBundlePrincipalList = /*@__PURE__*/ S.Array(S.String); export interface AssetBundleResourcePermissions { Principals: string[]; Actions: string[]; } -export const AssetBundleResourcePermissions = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Principals: AssetBundlePrincipalList, Actions: ActionList }), - ).annotate({ - identifier: "AssetBundleResourcePermissions", - }) as any as S.Schema; +export const AssetBundleResourcePermissions = /*@__PURE__*/ S.suspend(() => + S.Struct({ Principals: AssetBundlePrincipalList, Actions: ActionList }), +).annotate({ + identifier: "AssetBundleResourcePermissions", +}) as any as S.Schema; export interface AssetBundleImportJobDataSourceOverridePermissions { DataSourceIds: string[]; Permissions: AssetBundleResourcePermissions; @@ -21155,8 +20890,8 @@ export interface AssetBundleImportJobOverridePermissions { Dashboards?: AssetBundleImportJobDashboardOverridePermissions[]; Folders?: AssetBundleImportJobFolderOverridePermissions[]; } -export const AssetBundleImportJobOverridePermissions = - /*@__PURE__*/ S.suspend(() => +export const AssetBundleImportJobOverridePermissions = /*@__PURE__*/ S.suspend( + () => S.Struct({ DataSources: S.optional( AssetBundleImportJobDataSourceOverridePermissionsList, @@ -21169,9 +20904,9 @@ export const AssetBundleImportJobOverridePermissions = ), Folders: S.optional(AssetBundleImportJobFolderOverridePermissionsList), }), - ).annotate({ - identifier: "AssetBundleImportJobOverridePermissions", - }) as any as S.Schema; +).annotate({ + identifier: "AssetBundleImportJobOverridePermissions", +}) as any as S.Schema; export interface AssetBundleImportJobVPCConnectionOverrideTags { VPCConnectionIds: string[]; Tags: Tag[]; @@ -21210,15 +20945,15 @@ export interface AssetBundleImportJobDataSetOverrideTags { DataSetIds: string[]; Tags: Tag[]; } -export const AssetBundleImportJobDataSetOverrideTags = - /*@__PURE__*/ S.suspend(() => +export const AssetBundleImportJobDataSetOverrideTags = /*@__PURE__*/ S.suspend( + () => S.Struct({ DataSetIds: AssetBundleRestrictiveResourceIdList, Tags: TagList, }), - ).annotate({ - identifier: "AssetBundleImportJobDataSetOverrideTags", - }) as any as S.Schema; +).annotate({ + identifier: "AssetBundleImportJobDataSetOverrideTags", +}) as any as S.Schema; export type AssetBundleImportJobDataSetOverrideTagsList = AssetBundleImportJobDataSetOverrideTags[]; export const AssetBundleImportJobDataSetOverrideTagsList = @@ -21227,29 +20962,30 @@ export interface AssetBundleImportJobThemeOverrideTags { ThemeIds: string[]; Tags: Tag[]; } -export const AssetBundleImportJobThemeOverrideTags = - /*@__PURE__*/ S.suspend(() => +export const AssetBundleImportJobThemeOverrideTags = /*@__PURE__*/ S.suspend( + () => S.Struct({ ThemeIds: AssetBundleRestrictiveResourceIdList, Tags: TagList }), - ).annotate({ - identifier: "AssetBundleImportJobThemeOverrideTags", - }) as any as S.Schema; +).annotate({ + identifier: "AssetBundleImportJobThemeOverrideTags", +}) as any as S.Schema; export type AssetBundleImportJobThemeOverrideTagsList = AssetBundleImportJobThemeOverrideTags[]; -export const AssetBundleImportJobThemeOverrideTagsList = - /*@__PURE__*/ S.Array(AssetBundleImportJobThemeOverrideTags); +export const AssetBundleImportJobThemeOverrideTagsList = /*@__PURE__*/ S.Array( + AssetBundleImportJobThemeOverrideTags, +); export interface AssetBundleImportJobAnalysisOverrideTags { AnalysisIds: string[]; Tags: Tag[]; } -export const AssetBundleImportJobAnalysisOverrideTags = - /*@__PURE__*/ S.suspend(() => +export const AssetBundleImportJobAnalysisOverrideTags = /*@__PURE__*/ S.suspend( + () => S.Struct({ AnalysisIds: AssetBundleRestrictiveResourceIdList, Tags: TagList, }), - ).annotate({ - identifier: "AssetBundleImportJobAnalysisOverrideTags", - }) as any as S.Schema; +).annotate({ + identifier: "AssetBundleImportJobAnalysisOverrideTags", +}) as any as S.Schema; export type AssetBundleImportJobAnalysisOverrideTagsList = AssetBundleImportJobAnalysisOverrideTags[]; export const AssetBundleImportJobAnalysisOverrideTagsList = @@ -21275,19 +21011,20 @@ export interface AssetBundleImportJobFolderOverrideTags { FolderIds: string[]; Tags: Tag[]; } -export const AssetBundleImportJobFolderOverrideTags = - /*@__PURE__*/ S.suspend(() => +export const AssetBundleImportJobFolderOverrideTags = /*@__PURE__*/ S.suspend( + () => S.Struct({ FolderIds: AssetBundleRestrictiveResourceIdList, Tags: TagList, }), - ).annotate({ - identifier: "AssetBundleImportJobFolderOverrideTags", - }) as any as S.Schema; +).annotate({ + identifier: "AssetBundleImportJobFolderOverrideTags", +}) as any as S.Schema; export type AssetBundleImportJobFolderOverrideTagsList = AssetBundleImportJobFolderOverrideTags[]; -export const AssetBundleImportJobFolderOverrideTagsList = - /*@__PURE__*/ S.Array(AssetBundleImportJobFolderOverrideTags); +export const AssetBundleImportJobFolderOverrideTagsList = /*@__PURE__*/ S.Array( + AssetBundleImportJobFolderOverrideTags, +); export interface AssetBundleImportJobOverrideTags { VPCConnections?: AssetBundleImportJobVPCConnectionOverrideTags[]; DataSources?: AssetBundleImportJobDataSourceOverrideTags[]; @@ -21297,22 +21034,21 @@ export interface AssetBundleImportJobOverrideTags { Dashboards?: AssetBundleImportJobDashboardOverrideTags[]; Folders?: AssetBundleImportJobFolderOverrideTags[]; } -export const AssetBundleImportJobOverrideTags = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - VPCConnections: S.optional( - AssetBundleImportJobVPCConnectionOverrideTagsList, - ), - DataSources: S.optional(AssetBundleImportJobDataSourceOverrideTagsList), - DataSets: S.optional(AssetBundleImportJobDataSetOverrideTagsList), - Themes: S.optional(AssetBundleImportJobThemeOverrideTagsList), - Analyses: S.optional(AssetBundleImportJobAnalysisOverrideTagsList), - Dashboards: S.optional(AssetBundleImportJobDashboardOverrideTagsList), - Folders: S.optional(AssetBundleImportJobFolderOverrideTagsList), - }), - ).annotate({ - identifier: "AssetBundleImportJobOverrideTags", - }) as any as S.Schema; +export const AssetBundleImportJobOverrideTags = /*@__PURE__*/ S.suspend(() => + S.Struct({ + VPCConnections: S.optional( + AssetBundleImportJobVPCConnectionOverrideTagsList, + ), + DataSources: S.optional(AssetBundleImportJobDataSourceOverrideTagsList), + DataSets: S.optional(AssetBundleImportJobDataSetOverrideTagsList), + Themes: S.optional(AssetBundleImportJobThemeOverrideTagsList), + Analyses: S.optional(AssetBundleImportJobAnalysisOverrideTagsList), + Dashboards: S.optional(AssetBundleImportJobDashboardOverrideTagsList), + Folders: S.optional(AssetBundleImportJobFolderOverrideTagsList), + }), +).annotate({ + identifier: "AssetBundleImportJobOverrideTags", +}) as any as S.Schema; export interface AssetBundleImportJobOverrideValidationStrategy { StrictModeForAllResources?: boolean; } @@ -21326,15 +21062,15 @@ export interface AssetBundleImportJobWarning { Arn?: string; Message?: string; } -export const AssetBundleImportJobWarning = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Arn: S.optional(S.String), Message: S.optional(S.String) }), - ).annotate({ - identifier: "AssetBundleImportJobWarning", - }) as any as S.Schema; +export const AssetBundleImportJobWarning = /*@__PURE__*/ S.suspend(() => + S.Struct({ Arn: S.optional(S.String), Message: S.optional(S.String) }), +).annotate({ + identifier: "AssetBundleImportJobWarning", +}) as any as S.Schema; export type AssetBundleImportJobWarningList = AssetBundleImportJobWarning[]; -export const AssetBundleImportJobWarningList = - /*@__PURE__*/ S.Array(AssetBundleImportJobWarning); +export const AssetBundleImportJobWarningList = /*@__PURE__*/ S.Array( + AssetBundleImportJobWarning, +); export interface DescribeAssetBundleImportJobResponse { JobStatus?: AssetBundleImportJobStatus; Errors?: AssetBundleImportJobError[]; @@ -21353,8 +21089,8 @@ export interface DescribeAssetBundleImportJobResponse { OverrideValidationStrategy?: AssetBundleImportJobOverrideValidationStrategy; Warnings?: AssetBundleImportJobWarning[]; } -export const DescribeAssetBundleImportJobResponse = - /*@__PURE__*/ S.suspend(() => +export const DescribeAssetBundleImportJobResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ JobStatus: S.optional(AssetBundleImportJobStatus), Errors: S.optional(AssetBundleImportJobErrorList), @@ -21375,9 +21111,9 @@ export const DescribeAssetBundleImportJobResponse = ), Warnings: S.optional(AssetBundleImportJobWarningList), }), - ).annotate({ - identifier: "DescribeAssetBundleImportJobResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeAssetBundleImportJobResponse", +}) as any as S.Schema; export interface DescribeAutomationJobRequest { AwsAccountId: string; AutomationGroupId: string; @@ -21386,35 +21122,34 @@ export interface DescribeAutomationJobRequest { IncludeOutputPayload?: boolean; JobId: string; } -export const DescribeAutomationJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - AutomationGroupId: S.String.pipe(T.HttpLabel("AutomationGroupId")), - AutomationId: S.String.pipe(T.HttpLabel("AutomationId")), - IncludeInputPayload: S.optional(S.Boolean).pipe( - T.HttpQuery("includeInputPayload"), - ), - IncludeOutputPayload: S.optional(S.Boolean).pipe( - T.HttpQuery("includeOutputPayload"), - ), - JobId: S.String.pipe(T.HttpLabel("JobId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/automation-groups/{AutomationGroupId}/automations/{AutomationId}/jobs/{JobId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeAutomationJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + AutomationGroupId: S.String.pipe(T.HttpLabel("AutomationGroupId")), + AutomationId: S.String.pipe(T.HttpLabel("AutomationId")), + IncludeInputPayload: S.optional(S.Boolean).pipe( + T.HttpQuery("includeInputPayload"), ), - ).annotate({ - identifier: "DescribeAutomationJobRequest", - }) as any as S.Schema; + IncludeOutputPayload: S.optional(S.Boolean).pipe( + T.HttpQuery("includeOutputPayload"), + ), + JobId: S.String.pipe(T.HttpLabel("JobId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/automation-groups/{AutomationGroupId}/automations/{AutomationId}/jobs/{JobId}", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "DescribeAutomationJobRequest", +}) as any as S.Schema; export type AutomationJobStatus = | "FAILED" | "RUNNING" @@ -21433,21 +21168,20 @@ export interface DescribeAutomationJobResponse { OutputPayload?: string | redacted.Redacted; RequestId?: string; } -export const DescribeAutomationJobResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Arn: S.String, - CreatedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - StartedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - EndedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - JobStatus: AutomationJobStatus, - InputPayload: S.optional(SensitiveString), - OutputPayload: S.optional(SensitiveString), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "DescribeAutomationJobResponse", - }) as any as S.Schema; +export const DescribeAutomationJobResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Arn: S.String, + CreatedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + StartedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + EndedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + JobStatus: AutomationJobStatus, + InputPayload: S.optional(SensitiveString), + OutputPayload: S.optional(SensitiveString), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "DescribeAutomationJobResponse", +}) as any as S.Schema; export interface DescribeBrandRequest { AwsAccountId: string; BrandId: string; @@ -21491,43 +21225,38 @@ export const DescribeBrandResponse = /*@__PURE__*/ S.suspend(() => export interface DescribeBrandAssignmentRequest { AwsAccountId: string; } -export const DescribeBrandAssignmentRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")) }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/brandassignments", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeBrandAssignmentRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")) }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/brandassignments", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeBrandAssignmentRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeBrandAssignmentRequest", +}) as any as S.Schema; export interface DescribeBrandAssignmentResponse { RequestId?: string; BrandArn?: string; } -export const DescribeBrandAssignmentResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RequestId: S.optional(S.String), - BrandArn: S.optional(S.String), - }), - ).annotate({ - identifier: "DescribeBrandAssignmentResponse", - }) as any as S.Schema; +export const DescribeBrandAssignmentResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ RequestId: S.optional(S.String), BrandArn: S.optional(S.String) }), +).annotate({ + identifier: "DescribeBrandAssignmentResponse", +}) as any as S.Schema; export interface DescribeBrandPublishedVersionRequest { AwsAccountId: string; BrandId: string; } -export const DescribeBrandPublishedVersionRequest = - /*@__PURE__*/ S.suspend(() => +export const DescribeBrandPublishedVersionRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), BrandId: S.String.pipe(T.HttpLabel("BrandId")), @@ -21544,51 +21273,48 @@ export const DescribeBrandPublishedVersionRequest = rules, ), ), - ).annotate({ - identifier: "DescribeBrandPublishedVersionRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeBrandPublishedVersionRequest", +}) as any as S.Schema; export interface DescribeBrandPublishedVersionResponse { RequestId?: string; BrandDetail?: BrandDetail; BrandDefinition?: BrandDefinition; } -export const DescribeBrandPublishedVersionResponse = - /*@__PURE__*/ S.suspend(() => +export const DescribeBrandPublishedVersionResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ RequestId: S.optional(S.String), BrandDetail: S.optional(BrandDetail), BrandDefinition: S.optional(BrandDefinition), }), - ).annotate({ - identifier: "DescribeBrandPublishedVersionResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeBrandPublishedVersionResponse", +}) as any as S.Schema; export interface DescribeCustomPermissionsRequest { AwsAccountId: string; CustomPermissionsName: string; } -export const DescribeCustomPermissionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - CustomPermissionsName: S.String.pipe( - T.HttpLabel("CustomPermissionsName"), - ), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/custom-permissions/{CustomPermissionsName}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeCustomPermissionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + CustomPermissionsName: S.String.pipe(T.HttpLabel("CustomPermissionsName")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/custom-permissions/{CustomPermissionsName}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeCustomPermissionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeCustomPermissionsRequest", +}) as any as S.Schema; export interface CustomPermissions { Arn?: string; CustomPermissionsName?: string; @@ -21608,16 +21334,15 @@ export interface DescribeCustomPermissionsResponse { CustomPermissions?: CustomPermissions; RequestId?: string; } -export const DescribeCustomPermissionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Status: S.optional(S.Number), - CustomPermissions: S.optional(CustomPermissions), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "DescribeCustomPermissionsResponse", - }) as any as S.Schema; +export const DescribeCustomPermissionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Status: S.optional(S.Number), + CustomPermissions: S.optional(CustomPermissions), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "DescribeCustomPermissionsResponse", +}) as any as S.Schema; export interface DescribeDashboardRequest { AwsAccountId: string; DashboardId: string; @@ -21747,29 +21472,28 @@ export interface DescribeDashboardDefinitionRequest { VersionNumber?: number; AliasName?: string; } -export const DescribeDashboardDefinitionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - DashboardId: S.String.pipe(T.HttpLabel("DashboardId")), - VersionNumber: S.optional(S.Number).pipe(T.HttpQuery("version-number")), - AliasName: S.optional(S.String).pipe(T.HttpQuery("alias-name")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/dashboards/{DashboardId}/definition", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeDashboardDefinitionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + DashboardId: S.String.pipe(T.HttpLabel("DashboardId")), + VersionNumber: S.optional(S.Number).pipe(T.HttpQuery("version-number")), + AliasName: S.optional(S.String).pipe(T.HttpQuery("alias-name")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/dashboards/{DashboardId}/definition", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeDashboardDefinitionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeDashboardDefinitionRequest", +}) as any as S.Schema; export interface DescribeDashboardDefinitionResponse { DashboardId?: string; Errors?: DashboardError[]; @@ -21781,47 +21505,45 @@ export interface DescribeDashboardDefinitionResponse { RequestId?: string; DashboardPublishOptions?: DashboardPublishOptions; } -export const DescribeDashboardDefinitionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DashboardId: S.optional(S.String), - Errors: S.optional(DashboardErrorList), - Name: S.optional(S.String), - ResourceStatus: S.optional(ResourceStatus), - ThemeArn: S.optional(S.String), - Definition: S.optional(DashboardVersionDefinition), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - RequestId: S.optional(S.String), - DashboardPublishOptions: S.optional(DashboardPublishOptions), - }), - ).annotate({ - identifier: "DescribeDashboardDefinitionResponse", - }) as any as S.Schema; +export const DescribeDashboardDefinitionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DashboardId: S.optional(S.String), + Errors: S.optional(DashboardErrorList), + Name: S.optional(S.String), + ResourceStatus: S.optional(ResourceStatus), + ThemeArn: S.optional(S.String), + Definition: S.optional(DashboardVersionDefinition), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + RequestId: S.optional(S.String), + DashboardPublishOptions: S.optional(DashboardPublishOptions), + }), +).annotate({ + identifier: "DescribeDashboardDefinitionResponse", +}) as any as S.Schema; export interface DescribeDashboardPermissionsRequest { AwsAccountId: string; DashboardId: string; } -export const DescribeDashboardPermissionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - DashboardId: S.String.pipe(T.HttpLabel("DashboardId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/dashboards/{DashboardId}/permissions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeDashboardPermissionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + DashboardId: S.String.pipe(T.HttpLabel("DashboardId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/dashboards/{DashboardId}/permissions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeDashboardPermissionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeDashboardPermissionsRequest", +}) as any as S.Schema; export interface DescribeDashboardPermissionsResponse { DashboardId?: string; DashboardArn?: string; @@ -21830,8 +21552,8 @@ export interface DescribeDashboardPermissionsResponse { RequestId?: string; LinkSharingConfiguration?: LinkSharingConfiguration; } -export const DescribeDashboardPermissionsResponse = - /*@__PURE__*/ S.suspend(() => +export const DescribeDashboardPermissionsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ DashboardId: S.optional(S.String), DashboardArn: S.optional(S.String), @@ -21840,67 +21562,66 @@ export const DescribeDashboardPermissionsResponse = RequestId: S.optional(S.String), LinkSharingConfiguration: S.optional(LinkSharingConfiguration), }), - ).annotate({ - identifier: "DescribeDashboardPermissionsResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeDashboardPermissionsResponse", +}) as any as S.Schema; export interface DescribeDashboardSnapshotJobRequest { AwsAccountId: string; DashboardId: string; SnapshotJobId: string; } -export const DescribeDashboardSnapshotJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - DashboardId: S.String.pipe(T.HttpLabel("DashboardId")), - SnapshotJobId: S.String.pipe(T.HttpLabel("SnapshotJobId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/dashboards/{DashboardId}/snapshot-jobs/{SnapshotJobId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeDashboardSnapshotJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + DashboardId: S.String.pipe(T.HttpLabel("DashboardId")), + SnapshotJobId: S.String.pipe(T.HttpLabel("SnapshotJobId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/dashboards/{DashboardId}/snapshot-jobs/{SnapshotJobId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeDashboardSnapshotJobRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeDashboardSnapshotJobRequest", +}) as any as S.Schema; export type SessionTagKeyList = string[]; export const SessionTagKeyList = /*@__PURE__*/ S.Array(S.String); export interface SnapshotAnonymousUserRedacted { RowLevelPermissionTagKeys?: string[]; } -export const SnapshotAnonymousUserRedacted = - /*@__PURE__*/ S.suspend(() => - S.Struct({ RowLevelPermissionTagKeys: S.optional(SessionTagKeyList) }), - ).annotate({ - identifier: "SnapshotAnonymousUserRedacted", - }) as any as S.Schema; +export const SnapshotAnonymousUserRedacted = /*@__PURE__*/ S.suspend(() => + S.Struct({ RowLevelPermissionTagKeys: S.optional(SessionTagKeyList) }), +).annotate({ + identifier: "SnapshotAnonymousUserRedacted", +}) as any as S.Schema; export type SnapshotAnonymousUserRedactedList = SnapshotAnonymousUserRedacted[]; -export const SnapshotAnonymousUserRedactedList = - /*@__PURE__*/ S.Array(SnapshotAnonymousUserRedacted); +export const SnapshotAnonymousUserRedactedList = /*@__PURE__*/ S.Array( + SnapshotAnonymousUserRedacted, +); export interface SnapshotUserConfigurationRedacted { AnonymousUsers?: SnapshotAnonymousUserRedacted[]; } -export const SnapshotUserConfigurationRedacted = - /*@__PURE__*/ S.suspend(() => - S.Struct({ AnonymousUsers: S.optional(SnapshotAnonymousUserRedactedList) }), - ).annotate({ - identifier: "SnapshotUserConfigurationRedacted", - }) as any as S.Schema; +export const SnapshotUserConfigurationRedacted = /*@__PURE__*/ S.suspend(() => + S.Struct({ AnonymousUsers: S.optional(SnapshotAnonymousUserRedactedList) }), +).annotate({ + identifier: "SnapshotUserConfigurationRedacted", +}) as any as S.Schema; export type SnapshotFileSheetSelectionScope = | "ALL_VISUALS" | "SELECTED_VISUALS" | (string & {}); export const SnapshotFileSheetSelectionScope = /*@__PURE__*/ S.String; export type SnapshotFileSheetSelectionVisualIdList = string[]; -export const SnapshotFileSheetSelectionVisualIdList = - /*@__PURE__*/ S.Array(S.String); +export const SnapshotFileSheetSelectionVisualIdList = /*@__PURE__*/ S.Array( + S.String, +); export interface SnapshotFileSheetSelection { SheetId: string; SelectionScope: SnapshotFileSheetSelectionScope; @@ -21916,8 +21637,9 @@ export const SnapshotFileSheetSelection = /*@__PURE__*/ S.suspend(() => identifier: "SnapshotFileSheetSelection", }) as any as S.Schema; export type SnapshotFileSheetSelectionList = SnapshotFileSheetSelection[]; -export const SnapshotFileSheetSelectionList = - /*@__PURE__*/ S.Array(SnapshotFileSheetSelection); +export const SnapshotFileSheetSelectionList = /*@__PURE__*/ S.Array( + SnapshotFileSheetSelection, +); export type SnapshotFileFormatType = "CSV" | "PDF" | "EXCEL" | (string & {}); export const SnapshotFileFormatType = /*@__PURE__*/ S.String; export interface SnapshotFile { @@ -21959,27 +21681,26 @@ export const S3BucketConfiguration = /*@__PURE__*/ S.suspend(() => export interface SnapshotS3DestinationConfiguration { BucketConfiguration: S3BucketConfiguration; } -export const SnapshotS3DestinationConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ BucketConfiguration: S3BucketConfiguration }), - ).annotate({ - identifier: "SnapshotS3DestinationConfiguration", - }) as any as S.Schema; +export const SnapshotS3DestinationConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ BucketConfiguration: S3BucketConfiguration }), +).annotate({ + identifier: "SnapshotS3DestinationConfiguration", +}) as any as S.Schema; export type SnapshotS3DestinationConfigurationList = SnapshotS3DestinationConfiguration[]; -export const SnapshotS3DestinationConfigurationList = - /*@__PURE__*/ S.Array(SnapshotS3DestinationConfiguration); +export const SnapshotS3DestinationConfigurationList = /*@__PURE__*/ S.Array( + SnapshotS3DestinationConfiguration, +); export interface SnapshotDestinationConfiguration { S3Destinations?: SnapshotS3DestinationConfiguration[]; } -export const SnapshotDestinationConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - S3Destinations: S.optional(SnapshotS3DestinationConfigurationList), - }), - ).annotate({ - identifier: "SnapshotDestinationConfiguration", - }) as any as S.Schema; +export const SnapshotDestinationConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + S3Destinations: S.optional(SnapshotS3DestinationConfigurationList), + }), +).annotate({ + identifier: "SnapshotDestinationConfiguration", +}) as any as S.Schema; export interface SnapshotConfiguration { FileGroups: SnapshotFileGroup[]; DestinationConfiguration?: SnapshotDestinationConfiguration; @@ -22014,8 +21735,8 @@ export interface DescribeDashboardSnapshotJobResponse { RequestId?: string; Status?: number; } -export const DescribeDashboardSnapshotJobResponse = - /*@__PURE__*/ S.suspend(() => +export const DescribeDashboardSnapshotJobResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ AwsAccountId: S.optional(S.String), DashboardId: S.optional(S.String), @@ -22031,9 +21752,9 @@ export const DescribeDashboardSnapshotJobResponse = RequestId: S.optional(S.String), Status: S.optional(S.Number), }), - ).annotate({ - identifier: "DescribeDashboardSnapshotJobResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeDashboardSnapshotJobResponse", +}) as any as S.Schema; export interface DescribeDashboardSnapshotJobResultRequest { AwsAccountId: string; DashboardId: string; @@ -22074,8 +21795,9 @@ export const SnapshotJobResultErrorInfo = /*@__PURE__*/ S.suspend(() => identifier: "SnapshotJobResultErrorInfo", }) as any as S.Schema; export type SnapshotJobResultErrorInfoList = SnapshotJobResultErrorInfo[]; -export const SnapshotJobResultErrorInfoList = - /*@__PURE__*/ S.Array(SnapshotJobResultErrorInfo); +export const SnapshotJobResultErrorInfoList = /*@__PURE__*/ S.Array( + SnapshotJobResultErrorInfo, +); export interface SnapshotJobS3Result { S3DestinationConfiguration?: SnapshotS3DestinationConfiguration; S3Uri?: string | redacted.Redacted; @@ -22106,34 +21828,35 @@ export const SnapshotJobResultFileGroup = /*@__PURE__*/ S.suspend(() => identifier: "SnapshotJobResultFileGroup", }) as any as S.Schema; export type SnapshotJobResultFileGroupList = SnapshotJobResultFileGroup[]; -export const SnapshotJobResultFileGroupList = - /*@__PURE__*/ S.Array(SnapshotJobResultFileGroup); +export const SnapshotJobResultFileGroupList = /*@__PURE__*/ S.Array( + SnapshotJobResultFileGroup, +); export interface AnonymousUserSnapshotJobResult { FileGroups?: SnapshotJobResultFileGroup[]; } -export const AnonymousUserSnapshotJobResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ FileGroups: S.optional(SnapshotJobResultFileGroupList) }), - ).annotate({ - identifier: "AnonymousUserSnapshotJobResult", - }) as any as S.Schema; +export const AnonymousUserSnapshotJobResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ FileGroups: S.optional(SnapshotJobResultFileGroupList) }), +).annotate({ + identifier: "AnonymousUserSnapshotJobResult", +}) as any as S.Schema; export type AnonymousUserSnapshotJobResultList = AnonymousUserSnapshotJobResult[]; -export const AnonymousUserSnapshotJobResultList = - /*@__PURE__*/ S.Array(AnonymousUserSnapshotJobResult); +export const AnonymousUserSnapshotJobResultList = /*@__PURE__*/ S.Array( + AnonymousUserSnapshotJobResult, +); export interface RegisteredUserSnapshotJobResult { FileGroups?: SnapshotJobResultFileGroup[]; } -export const RegisteredUserSnapshotJobResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ FileGroups: S.optional(SnapshotJobResultFileGroupList) }), - ).annotate({ - identifier: "RegisteredUserSnapshotJobResult", - }) as any as S.Schema; +export const RegisteredUserSnapshotJobResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ FileGroups: S.optional(SnapshotJobResultFileGroupList) }), +).annotate({ + identifier: "RegisteredUserSnapshotJobResult", +}) as any as S.Schema; export type RegisteredUserSnapshotJobResultList = RegisteredUserSnapshotJobResult[]; -export const RegisteredUserSnapshotJobResultList = - /*@__PURE__*/ S.Array(RegisteredUserSnapshotJobResult); +export const RegisteredUserSnapshotJobResultList = /*@__PURE__*/ S.Array( + RegisteredUserSnapshotJobResult, +); export interface SnapshotJobResult { AnonymousUsers?: AnonymousUserSnapshotJobResult[]; RegisteredUsers?: RegisteredUserSnapshotJobResult[]; @@ -22188,8 +21911,8 @@ export const DescribeDashboardSnapshotJobResultResponse = export interface DescribeDashboardsQAConfigurationRequest { AwsAccountId: string; } -export const DescribeDashboardsQAConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const DescribeDashboardsQAConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")) }).pipe( T.all( T.Http({ @@ -22203,9 +21926,9 @@ export const DescribeDashboardsQAConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "DescribeDashboardsQAConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeDashboardsQAConfigurationRequest", +}) as any as S.Schema; export type DashboardsQAStatus = "ENABLED" | "DISABLED" | (string & {}); export const DashboardsQAStatus = /*@__PURE__*/ S.String; export interface DescribeDashboardsQAConfigurationResponse { @@ -22335,27 +22058,26 @@ export interface DescribeDataSetPermissionsRequest { AwsAccountId: string; DataSetId: string; } -export const DescribeDataSetPermissionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - DataSetId: S.String.pipe(T.HttpLabel("DataSetId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/data-sets/{DataSetId}/permissions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeDataSetPermissionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + DataSetId: S.String.pipe(T.HttpLabel("DataSetId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/data-sets/{DataSetId}/permissions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeDataSetPermissionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeDataSetPermissionsRequest", +}) as any as S.Schema; export interface DescribeDataSetPermissionsResponse { DataSetArn?: string; DataSetId?: string; @@ -22363,24 +22085,23 @@ export interface DescribeDataSetPermissionsResponse { RequestId?: string; Status?: number; } -export const DescribeDataSetPermissionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DataSetArn: S.optional(S.String), - DataSetId: S.optional(S.String), - Permissions: S.optional(ResourcePermissionList), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "DescribeDataSetPermissionsResponse", - }) as any as S.Schema; +export const DescribeDataSetPermissionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DataSetArn: S.optional(S.String), + DataSetId: S.optional(S.String), + Permissions: S.optional(ResourcePermissionList), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "DescribeDataSetPermissionsResponse", +}) as any as S.Schema; export interface DescribeDataSetRefreshPropertiesRequest { AwsAccountId: string; DataSetId: string; } -export const DescribeDataSetRefreshPropertiesRequest = - /*@__PURE__*/ S.suspend(() => +export const DescribeDataSetRefreshPropertiesRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), DataSetId: S.String.pipe(T.HttpLabel("DataSetId")), @@ -22397,24 +22118,24 @@ export const DescribeDataSetRefreshPropertiesRequest = rules, ), ), - ).annotate({ - identifier: "DescribeDataSetRefreshPropertiesRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeDataSetRefreshPropertiesRequest", +}) as any as S.Schema; export interface DescribeDataSetRefreshPropertiesResponse { RequestId?: string; Status?: number; DataSetRefreshProperties?: DataSetRefreshProperties; } -export const DescribeDataSetRefreshPropertiesResponse = - /*@__PURE__*/ S.suspend(() => +export const DescribeDataSetRefreshPropertiesResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ RequestId: S.optional(S.String), Status: S.optional(S.Number).pipe(T.HttpResponseCode()), DataSetRefreshProperties: S.optional(DataSetRefreshProperties), }), - ).annotate({ - identifier: "DescribeDataSetRefreshPropertiesResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeDataSetRefreshPropertiesResponse", +}) as any as S.Schema; export interface DescribeDataSourceRequest { AwsAccountId: string; DataSourceId: string; @@ -22514,8 +22235,8 @@ export interface DescribeDataSourcePermissionsRequest { AwsAccountId: string; DataSourceId: string; } -export const DescribeDataSourcePermissionsRequest = - /*@__PURE__*/ S.suspend(() => +export const DescribeDataSourcePermissionsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), DataSourceId: S.String.pipe(T.HttpLabel("DataSourceId")), @@ -22532,9 +22253,9 @@ export const DescribeDataSourcePermissionsRequest = rules, ), ), - ).annotate({ - identifier: "DescribeDataSourcePermissionsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeDataSourcePermissionsRequest", +}) as any as S.Schema; export interface DescribeDataSourcePermissionsResponse { DataSourceArn?: string; DataSourceId?: string; @@ -22542,8 +22263,8 @@ export interface DescribeDataSourcePermissionsResponse { RequestId?: string; Status?: number; } -export const DescribeDataSourcePermissionsResponse = - /*@__PURE__*/ S.suspend(() => +export const DescribeDataSourcePermissionsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ DataSourceArn: S.optional(S.String), DataSourceId: S.optional(S.String), @@ -22551,9 +22272,9 @@ export const DescribeDataSourcePermissionsResponse = RequestId: S.optional(S.String), Status: S.optional(S.Number).pipe(T.HttpResponseCode()), }), - ).annotate({ - identifier: "DescribeDataSourcePermissionsResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeDataSourcePermissionsResponse", +}) as any as S.Schema; export interface DescribeDefaultQBusinessApplicationRequest { AwsAccountId: string; Namespace?: string; @@ -22749,30 +22470,29 @@ export interface DescribeFolderPermissionsRequest { MaxResults?: number; NextToken?: string; } -export const DescribeFolderPermissionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - FolderId: S.String.pipe(T.HttpLabel("FolderId")), - Namespace: S.optional(S.String).pipe(T.HttpQuery("namespace")), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("max-results")), - NextToken: S.optional(S.String).pipe(T.HttpQuery("next-token")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/folders/{FolderId}/permissions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeFolderPermissionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + FolderId: S.String.pipe(T.HttpLabel("FolderId")), + Namespace: S.optional(S.String).pipe(T.HttpQuery("namespace")), + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("max-results")), + NextToken: S.optional(S.String).pipe(T.HttpQuery("next-token")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/folders/{FolderId}/permissions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeFolderPermissionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeFolderPermissionsRequest", +}) as any as S.Schema; export interface DescribeFolderPermissionsResponse { Status?: number; FolderId?: string; @@ -22781,19 +22501,18 @@ export interface DescribeFolderPermissionsResponse { RequestId?: string; NextToken?: string; } -export const DescribeFolderPermissionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - FolderId: S.optional(S.String), - Arn: S.optional(S.String), - Permissions: S.optional(ResourcePermissionList), - RequestId: S.optional(S.String), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "DescribeFolderPermissionsResponse", - }) as any as S.Schema; +export const DescribeFolderPermissionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + FolderId: S.optional(S.String), + Arn: S.optional(S.String), + Permissions: S.optional(ResourcePermissionList), + RequestId: S.optional(S.String), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "DescribeFolderPermissionsResponse", +}) as any as S.Schema; export interface DescribeFolderResolvedPermissionsRequest { AwsAccountId: string; FolderId: string; @@ -22801,8 +22520,8 @@ export interface DescribeFolderResolvedPermissionsRequest { MaxResults?: number; NextToken?: string; } -export const DescribeFolderResolvedPermissionsRequest = - /*@__PURE__*/ S.suspend(() => +export const DescribeFolderResolvedPermissionsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), FolderId: S.String.pipe(T.HttpLabel("FolderId")), @@ -22822,9 +22541,9 @@ export const DescribeFolderResolvedPermissionsRequest = rules, ), ), - ).annotate({ - identifier: "DescribeFolderResolvedPermissionsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeFolderResolvedPermissionsRequest", +}) as any as S.Schema; export interface DescribeFolderResolvedPermissionsResponse { Status?: number; FolderId?: string; @@ -22892,71 +22611,68 @@ export interface DescribeGroupMembershipRequest { AwsAccountId: string; Namespace: string; } -export const DescribeGroupMembershipRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - MemberName: S.String.pipe(T.HttpLabel("MemberName")), - GroupName: S.String.pipe(T.HttpLabel("GroupName")), - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - Namespace: S.String.pipe(T.HttpLabel("Namespace")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members/{MemberName}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeGroupMembershipRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + MemberName: S.String.pipe(T.HttpLabel("MemberName")), + GroupName: S.String.pipe(T.HttpLabel("GroupName")), + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + Namespace: S.String.pipe(T.HttpLabel("Namespace")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members/{MemberName}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeGroupMembershipRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeGroupMembershipRequest", +}) as any as S.Schema; export interface DescribeGroupMembershipResponse { GroupMember?: GroupMember; RequestId?: string; Status?: number; } -export const DescribeGroupMembershipResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - GroupMember: S.optional(GroupMember), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "DescribeGroupMembershipResponse", - }) as any as S.Schema; +export const DescribeGroupMembershipResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + GroupMember: S.optional(GroupMember), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "DescribeGroupMembershipResponse", +}) as any as S.Schema; export interface DescribeIAMPolicyAssignmentRequest { AwsAccountId: string; AssignmentName: string; Namespace: string; } -export const DescribeIAMPolicyAssignmentRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - AssignmentName: S.String.pipe(T.HttpLabel("AssignmentName")), - Namespace: S.String.pipe(T.HttpLabel("Namespace")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments/{AssignmentName}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeIAMPolicyAssignmentRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + AssignmentName: S.String.pipe(T.HttpLabel("AssignmentName")), + Namespace: S.String.pipe(T.HttpLabel("Namespace")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments/{AssignmentName}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeIAMPolicyAssignmentRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeIAMPolicyAssignmentRequest", +}) as any as S.Schema; export interface IAMPolicyAssignment { AwsAccountId?: string; AssignmentId?: string; @@ -22982,16 +22698,15 @@ export interface DescribeIAMPolicyAssignmentResponse { RequestId?: string; Status?: number; } -export const DescribeIAMPolicyAssignmentResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - IAMPolicyAssignment: S.optional(IAMPolicyAssignment), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "DescribeIAMPolicyAssignmentResponse", - }) as any as S.Schema; +export const DescribeIAMPolicyAssignmentResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + IAMPolicyAssignment: S.optional(IAMPolicyAssignment), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "DescribeIAMPolicyAssignmentResponse", +}) as any as S.Schema; export interface DescribeIngestionRequest { AwsAccountId: string; DataSetId: string; @@ -23149,24 +22864,20 @@ export const DescribeIngestionResponse = /*@__PURE__*/ S.suspend(() => export interface DescribeIpRestrictionRequest { AwsAccountId: string; } -export const DescribeIpRestrictionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")) }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/ip-restriction", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeIpRestrictionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")) }).pipe( + T.all( + T.Http({ method: "GET", uri: "/accounts/{AwsAccountId}/ip-restriction" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeIpRestrictionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeIpRestrictionRequest", +}) as any as S.Schema; export type IpRestrictionRuleMap = { [key: string]: string | undefined }; export const IpRestrictionRuleMap = /*@__PURE__*/ S.Record( S.String, @@ -23180,8 +22891,10 @@ export const VpcIdRestrictionRuleMap = /*@__PURE__*/ S.Record( export type VpcEndpointIdRestrictionRuleMap = { [key: string]: string | undefined; }; -export const VpcEndpointIdRestrictionRuleMap = - /*@__PURE__*/ S.Record(S.String, S.String.pipe(S.optional)); +export const VpcEndpointIdRestrictionRuleMap = /*@__PURE__*/ S.Record( + S.String, + S.String.pipe(S.optional), +); export interface DescribeIpRestrictionResponse { AwsAccountId?: string; IpRestrictionRuleMap?: { [key: string]: string | undefined }; @@ -23191,62 +22904,54 @@ export interface DescribeIpRestrictionResponse { RequestId?: string; Status?: number; } -export const DescribeIpRestrictionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.optional(S.String), - IpRestrictionRuleMap: S.optional(IpRestrictionRuleMap), - VpcIdRestrictionRuleMap: S.optional(VpcIdRestrictionRuleMap), - VpcEndpointIdRestrictionRuleMap: S.optional( - VpcEndpointIdRestrictionRuleMap, - ), - Enabled: S.optional(S.Boolean), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "DescribeIpRestrictionResponse", - }) as any as S.Schema; +export const DescribeIpRestrictionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.optional(S.String), + IpRestrictionRuleMap: S.optional(IpRestrictionRuleMap), + VpcIdRestrictionRuleMap: S.optional(VpcIdRestrictionRuleMap), + VpcEndpointIdRestrictionRuleMap: S.optional( + VpcEndpointIdRestrictionRuleMap, + ), + Enabled: S.optional(S.Boolean), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "DescribeIpRestrictionResponse", +}) as any as S.Schema; export interface DescribeKeyRegistrationRequest { AwsAccountId: string; DefaultKeyOnly?: boolean; } -export const DescribeKeyRegistrationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - DefaultKeyOnly: S.optional(S.Boolean).pipe( - T.HttpQuery("default-key-only"), - ), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/key-registration", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeKeyRegistrationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + DefaultKeyOnly: S.optional(S.Boolean).pipe(T.HttpQuery("default-key-only")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/key-registration", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeKeyRegistrationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeKeyRegistrationRequest", +}) as any as S.Schema; export interface RegisteredCustomerManagedKey { KeyArn?: string; DefaultKey?: boolean; } -export const RegisteredCustomerManagedKey = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - KeyArn: S.optional(S.String), - DefaultKey: S.optional(S.Boolean), - }), - ).annotate({ - identifier: "RegisteredCustomerManagedKey", - }) as any as S.Schema; +export const RegisteredCustomerManagedKey = /*@__PURE__*/ S.suspend(() => + S.Struct({ KeyArn: S.optional(S.String), DefaultKey: S.optional(S.Boolean) }), +).annotate({ + identifier: "RegisteredCustomerManagedKey", +}) as any as S.Schema; export type KeyRegistration = RegisteredCustomerManagedKey[]; export const KeyRegistration = /*@__PURE__*/ S.Array( RegisteredCustomerManagedKey, @@ -23270,43 +22975,41 @@ export interface DescribeKeyRegistrationResponse { RequestId?: string; Status?: number; } -export const DescribeKeyRegistrationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.optional(S.String), - KeyRegistration: S.optional(KeyRegistration), - QDataKey: S.optional(QDataKey), - RequestId: S.optional(S.String), - Status: S.optional(S.Number), - }), - ).annotate({ - identifier: "DescribeKeyRegistrationResponse", - }) as any as S.Schema; +export const DescribeKeyRegistrationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.optional(S.String), + KeyRegistration: S.optional(KeyRegistration), + QDataKey: S.optional(QDataKey), + RequestId: S.optional(S.String), + Status: S.optional(S.Number), + }), +).annotate({ + identifier: "DescribeKeyRegistrationResponse", +}) as any as S.Schema; export interface DescribeKnowledgeBaseRequest { AwsAccountId: string; KnowledgeBaseId: string; } -export const DescribeKnowledgeBaseRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - KnowledgeBaseId: S.String.pipe(T.HttpLabel("KnowledgeBaseId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/v1/accounts/{AwsAccountId}/knowledge-bases/{KnowledgeBaseId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeKnowledgeBaseRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + KnowledgeBaseId: S.String.pipe(T.HttpLabel("KnowledgeBaseId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/v1/accounts/{AwsAccountId}/knowledge-bases/{KnowledgeBaseId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeKnowledgeBaseRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeKnowledgeBaseRequest", +}) as any as S.Schema; export type DataSetStatus = | "CREATING" | "UPDATING" @@ -23340,23 +23043,21 @@ export const ImageExtractionStatus = /*@__PURE__*/ S.String; export interface ImageExtractionConfiguration { imageExtractionStatus: ImageExtractionStatus; } -export const ImageExtractionConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ imageExtractionStatus: ImageExtractionStatus }), - ).annotate({ - identifier: "ImageExtractionConfiguration", - }) as any as S.Schema; +export const ImageExtractionConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ imageExtractionStatus: ImageExtractionStatus }), +).annotate({ + identifier: "ImageExtractionConfiguration", +}) as any as S.Schema; export type AudioExtractionStatus = "ENABLED" | "DISABLED" | (string & {}); export const AudioExtractionStatus = /*@__PURE__*/ S.String; export interface AudioExtractionConfiguration { audioExtractionStatus: AudioExtractionStatus; } -export const AudioExtractionConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ audioExtractionStatus: AudioExtractionStatus }), - ).annotate({ - identifier: "AudioExtractionConfiguration", - }) as any as S.Schema; +export const AudioExtractionConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ audioExtractionStatus: AudioExtractionStatus }), +).annotate({ + identifier: "AudioExtractionConfiguration", +}) as any as S.Schema; export type VideoExtractionStatus = "ENABLED" | "DISABLED" | (string & {}); export const VideoExtractionStatus = /*@__PURE__*/ S.String; export type VideoExtractionType = @@ -23368,30 +23069,28 @@ export interface VideoExtractionConfiguration { videoExtractionStatus: VideoExtractionStatus; videoExtractionType?: VideoExtractionType; } -export const VideoExtractionConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - videoExtractionStatus: VideoExtractionStatus, - videoExtractionType: S.optional(VideoExtractionType), - }), - ).annotate({ - identifier: "VideoExtractionConfiguration", - }) as any as S.Schema; +export const VideoExtractionConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + videoExtractionStatus: VideoExtractionStatus, + videoExtractionType: S.optional(VideoExtractionType), + }), +).annotate({ + identifier: "VideoExtractionConfiguration", +}) as any as S.Schema; export interface MediaExtractionConfiguration { imageExtractionConfiguration?: ImageExtractionConfiguration; audioExtractionConfiguration?: AudioExtractionConfiguration; videoExtractionConfiguration?: VideoExtractionConfiguration; } -export const MediaExtractionConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - imageExtractionConfiguration: S.optional(ImageExtractionConfiguration), - audioExtractionConfiguration: S.optional(AudioExtractionConfiguration), - videoExtractionConfiguration: S.optional(VideoExtractionConfiguration), - }), - ).annotate({ - identifier: "MediaExtractionConfiguration", - }) as any as S.Schema; +export const MediaExtractionConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + imageExtractionConfiguration: S.optional(ImageExtractionConfiguration), + audioExtractionConfiguration: S.optional(AudioExtractionConfiguration), + videoExtractionConfiguration: S.optional(VideoExtractionConfiguration), + }), +).annotate({ + identifier: "MediaExtractionConfiguration", +}) as any as S.Schema; export type KbIngestionStatus = | "QUEUED" | "RUNNING" @@ -23409,17 +23108,16 @@ export interface KnowledgeBaseIngestionSummary { StartTime?: Date; EndTime?: Date; } -export const KnowledgeBaseIngestionSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - IngestionId: S.String, - IngestionStatus: KbIngestionStatus, - StartTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - EndTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - }), - ).annotate({ - identifier: "KnowledgeBaseIngestionSummary", - }) as any as S.Schema; +export const KnowledgeBaseIngestionSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + IngestionId: S.String, + IngestionStatus: KbIngestionStatus, + StartTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + EndTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + }), +).annotate({ + identifier: "KnowledgeBaseIngestionSummary", +}) as any as S.Schema; export interface KnowledgeBase { KnowledgeBaseArn: string; KnowledgeBaseId: string; @@ -23469,22 +23167,21 @@ export interface DescribeKnowledgeBaseResponse { RequestId?: string; Status?: number; } -export const DescribeKnowledgeBaseResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - KnowledgeBase: KnowledgeBase, - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "DescribeKnowledgeBaseResponse", - }) as any as S.Schema; +export const DescribeKnowledgeBaseResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + KnowledgeBase: KnowledgeBase, + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "DescribeKnowledgeBaseResponse", +}) as any as S.Schema; export interface DescribeKnowledgeBasePermissionsRequest { AwsAccountId: string; KnowledgeBaseId: string; } -export const DescribeKnowledgeBasePermissionsRequest = - /*@__PURE__*/ S.suspend(() => +export const DescribeKnowledgeBasePermissionsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), KnowledgeBaseId: S.String.pipe(T.HttpLabel("KnowledgeBaseId")), @@ -23501,9 +23198,9 @@ export const DescribeKnowledgeBasePermissionsRequest = rules, ), ), - ).annotate({ - identifier: "DescribeKnowledgeBasePermissionsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeKnowledgeBasePermissionsRequest", +}) as any as S.Schema; export interface DescribeKnowledgeBasePermissionsResponse { KnowledgeBaseArn: string; KnowledgeBaseId: string; @@ -23511,8 +23208,8 @@ export interface DescribeKnowledgeBasePermissionsResponse { RequestId?: string; Status?: number; } -export const DescribeKnowledgeBasePermissionsResponse = - /*@__PURE__*/ S.suspend(() => +export const DescribeKnowledgeBasePermissionsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ KnowledgeBaseArn: S.String, KnowledgeBaseId: S.String, @@ -23520,9 +23217,9 @@ export const DescribeKnowledgeBasePermissionsResponse = RequestId: S.optional(S.String), Status: S.optional(S.Number).pipe(T.HttpResponseCode()), }), - ).annotate({ - identifier: "DescribeKnowledgeBasePermissionsResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeKnowledgeBasePermissionsResponse", +}) as any as S.Schema; export interface DescribeNamespaceRequest { AwsAccountId: string; Namespace: string; @@ -23604,8 +23301,8 @@ export interface DescribeOAuthClientApplicationRequest { AwsAccountId: string; OAuthClientApplicationId: string; } -export const DescribeOAuthClientApplicationRequest = - /*@__PURE__*/ S.suspend(() => +export const DescribeOAuthClientApplicationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), OAuthClientApplicationId: S.String.pipe( @@ -23624,9 +23321,9 @@ export const DescribeOAuthClientApplicationRequest = rules, ), ), - ).annotate({ - identifier: "DescribeOAuthClientApplicationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeOAuthClientApplicationRequest", +}) as any as S.Schema; export interface OAuthClientApplication { OAuthClientApplicationId?: string; Name?: string; @@ -23666,16 +23363,16 @@ export interface DescribeOAuthClientApplicationResponse { RequestId?: string; Status?: number; } -export const DescribeOAuthClientApplicationResponse = - /*@__PURE__*/ S.suspend(() => +export const DescribeOAuthClientApplicationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ OAuthClientApplication: S.optional(OAuthClientApplication), RequestId: S.optional(S.String), Status: S.optional(S.Number).pipe(T.HttpResponseCode()), }), - ).annotate({ - identifier: "DescribeOAuthClientApplicationResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeOAuthClientApplicationResponse", +}) as any as S.Schema; export interface DescribeQPersonalizationConfigurationRequest { AwsAccountId: string; } @@ -23757,93 +23454,90 @@ export interface DescribeRefreshScheduleRequest { DataSetId: string; ScheduleId: string; } -export const DescribeRefreshScheduleRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - DataSetId: S.String.pipe(T.HttpLabel("DataSetId")), - ScheduleId: S.String.pipe(T.HttpLabel("ScheduleId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-schedules/{ScheduleId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeRefreshScheduleRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + DataSetId: S.String.pipe(T.HttpLabel("DataSetId")), + ScheduleId: S.String.pipe(T.HttpLabel("ScheduleId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-schedules/{ScheduleId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeRefreshScheduleRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeRefreshScheduleRequest", +}) as any as S.Schema; export interface DescribeRefreshScheduleResponse { RefreshSchedule?: RefreshSchedule; Status?: number; RequestId?: string; Arn?: string; } -export const DescribeRefreshScheduleResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RefreshSchedule: S.optional(RefreshSchedule), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - RequestId: S.optional(S.String), - Arn: S.optional(S.String), - }), - ).annotate({ - identifier: "DescribeRefreshScheduleResponse", - }) as any as S.Schema; +export const DescribeRefreshScheduleResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RefreshSchedule: S.optional(RefreshSchedule), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + RequestId: S.optional(S.String), + Arn: S.optional(S.String), + }), +).annotate({ + identifier: "DescribeRefreshScheduleResponse", +}) as any as S.Schema; export interface DescribeRoleCustomPermissionRequest { Role: Role; AwsAccountId: string; Namespace: string; } -export const DescribeRoleCustomPermissionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Role: Role.pipe(T.HttpLabel("Role")), - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - Namespace: S.String.pipe(T.HttpLabel("Namespace")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/custom-permission", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeRoleCustomPermissionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Role: Role.pipe(T.HttpLabel("Role")), + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + Namespace: S.String.pipe(T.HttpLabel("Namespace")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/custom-permission", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeRoleCustomPermissionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeRoleCustomPermissionRequest", +}) as any as S.Schema; export interface DescribeRoleCustomPermissionResponse { CustomPermissionsName?: string; RequestId?: string; Status?: number; } -export const DescribeRoleCustomPermissionResponse = - /*@__PURE__*/ S.suspend(() => +export const DescribeRoleCustomPermissionResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ CustomPermissionsName: S.optional(S.String), RequestId: S.optional(S.String), Status: S.optional(S.Number), }), - ).annotate({ - identifier: "DescribeRoleCustomPermissionResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeRoleCustomPermissionResponse", +}) as any as S.Schema; export interface DescribeSelfUpgradeConfigurationRequest { AwsAccountId: string; Namespace: string; } -export const DescribeSelfUpgradeConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const DescribeSelfUpgradeConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), Namespace: S.String.pipe(T.HttpLabel("Namespace")), @@ -23860,9 +23554,9 @@ export const DescribeSelfUpgradeConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "DescribeSelfUpgradeConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeSelfUpgradeConfigurationRequest", +}) as any as S.Schema; export type SelfUpgradeStatus = | "AUTO_APPROVAL" | "ADMIN_APPROVAL" @@ -23881,16 +23575,16 @@ export interface DescribeSelfUpgradeConfigurationResponse { RequestId?: string; Status?: number; } -export const DescribeSelfUpgradeConfigurationResponse = - /*@__PURE__*/ S.suspend(() => +export const DescribeSelfUpgradeConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ SelfUpgradeConfiguration: S.optional(SelfUpgradeConfiguration), RequestId: S.optional(S.String), Status: S.optional(S.Number).pipe(T.HttpResponseCode()), }), - ).annotate({ - identifier: "DescribeSelfUpgradeConfigurationResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeSelfUpgradeConfigurationResponse", +}) as any as S.Schema; export interface DescribeSpaceRequest { AwsAccountId: string; SpaceId: string; @@ -23926,8 +23620,9 @@ export type SpaceQuickSightResourceType = | (string & {}); export const SpaceQuickSightResourceType = /*@__PURE__*/ S.String; export type SpaceQuickSightResourceDetails = { resourceArn: string }; -export const SpaceQuickSightResourceDetails = - /*@__PURE__*/ S.Union([S.Struct({ resourceArn: S.String })]); +export const SpaceQuickSightResourceDetails = /*@__PURE__*/ S.Union([ + S.Struct({ resourceArn: S.String }), +]); export interface SpaceQuickSightResource { resourceType: SpaceQuickSightResourceType; resourceDetails: SpaceQuickSightResourceDetails; @@ -24006,44 +23701,42 @@ export interface DescribeSpacePermissionsRequest { AwsAccountId: string; SpaceId: string; } -export const DescribeSpacePermissionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - SpaceId: S.String.pipe(T.HttpLabel("SpaceId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/v1/accounts/{AwsAccountId}/spaces/{SpaceId}/permissions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeSpacePermissionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + SpaceId: S.String.pipe(T.HttpLabel("SpaceId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/v1/accounts/{AwsAccountId}/spaces/{SpaceId}/permissions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeSpacePermissionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeSpacePermissionsRequest", +}) as any as S.Schema; export interface DescribeSpacePermissionsResponse { spaceId: string; spaceArn?: string; Permissions?: ResourcePermission[]; RequestId?: string; } -export const DescribeSpacePermissionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - spaceId: S.String, - spaceArn: S.optional(S.String), - Permissions: S.optional(ResourcePermissionList), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "DescribeSpacePermissionsResponse", - }) as any as S.Schema; +export const DescribeSpacePermissionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + spaceId: S.String, + spaceArn: S.optional(S.String), + Permissions: S.optional(ResourcePermissionList), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "DescribeSpacePermissionsResponse", +}) as any as S.Schema; export interface DescribeTemplateRequest { AwsAccountId: string; TemplateId: string; @@ -24158,72 +23851,69 @@ export interface DescribeTemplateAliasRequest { TemplateId: string; AliasName: string; } -export const DescribeTemplateAliasRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - TemplateId: S.String.pipe(T.HttpLabel("TemplateId")), - AliasName: S.String.pipe(T.HttpLabel("AliasName")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/templates/{TemplateId}/aliases/{AliasName}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeTemplateAliasRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + TemplateId: S.String.pipe(T.HttpLabel("TemplateId")), + AliasName: S.String.pipe(T.HttpLabel("AliasName")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/templates/{TemplateId}/aliases/{AliasName}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeTemplateAliasRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeTemplateAliasRequest", +}) as any as S.Schema; export interface DescribeTemplateAliasResponse { TemplateAlias?: TemplateAlias; Status?: number; RequestId?: string; } -export const DescribeTemplateAliasResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TemplateAlias: S.optional(TemplateAlias), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "DescribeTemplateAliasResponse", - }) as any as S.Schema; +export const DescribeTemplateAliasResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TemplateAlias: S.optional(TemplateAlias), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "DescribeTemplateAliasResponse", +}) as any as S.Schema; export interface DescribeTemplateDefinitionRequest { AwsAccountId: string; TemplateId: string; VersionNumber?: number; AliasName?: string; } -export const DescribeTemplateDefinitionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - TemplateId: S.String.pipe(T.HttpLabel("TemplateId")), - VersionNumber: S.optional(S.Number).pipe(T.HttpQuery("version-number")), - AliasName: S.optional(S.String).pipe(T.HttpQuery("alias-name")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/templates/{TemplateId}/definition", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeTemplateDefinitionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + TemplateId: S.String.pipe(T.HttpLabel("TemplateId")), + VersionNumber: S.optional(S.Number).pipe(T.HttpQuery("version-number")), + AliasName: S.optional(S.String).pipe(T.HttpQuery("alias-name")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/templates/{TemplateId}/definition", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeTemplateDefinitionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeTemplateDefinitionRequest", +}) as any as S.Schema; export interface DescribeTemplateDefinitionResponse { Name?: string; TemplateId?: string; @@ -24234,46 +23924,44 @@ export interface DescribeTemplateDefinitionResponse { Status?: number; RequestId?: string; } -export const DescribeTemplateDefinitionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Name: S.optional(S.String), - TemplateId: S.optional(S.String), - Errors: S.optional(TemplateErrorList), - ResourceStatus: S.optional(ResourceStatus), - ThemeArn: S.optional(S.String), - Definition: S.optional(TemplateVersionDefinition), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "DescribeTemplateDefinitionResponse", - }) as any as S.Schema; +export const DescribeTemplateDefinitionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.optional(S.String), + TemplateId: S.optional(S.String), + Errors: S.optional(TemplateErrorList), + ResourceStatus: S.optional(ResourceStatus), + ThemeArn: S.optional(S.String), + Definition: S.optional(TemplateVersionDefinition), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "DescribeTemplateDefinitionResponse", +}) as any as S.Schema; export interface DescribeTemplatePermissionsRequest { AwsAccountId: string; TemplateId: string; } -export const DescribeTemplatePermissionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - TemplateId: S.String.pipe(T.HttpLabel("TemplateId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/templates/{TemplateId}/permissions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeTemplatePermissionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + TemplateId: S.String.pipe(T.HttpLabel("TemplateId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/templates/{TemplateId}/permissions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeTemplatePermissionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeTemplatePermissionsRequest", +}) as any as S.Schema; export interface DescribeTemplatePermissionsResponse { TemplateId?: string; TemplateArn?: string; @@ -24281,18 +23969,17 @@ export interface DescribeTemplatePermissionsResponse { RequestId?: string; Status?: number; } -export const DescribeTemplatePermissionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TemplateId: S.optional(S.String), - TemplateArn: S.optional(S.String), - Permissions: S.optional(UpdateResourcePermissionList), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "DescribeTemplatePermissionsResponse", - }) as any as S.Schema; +export const DescribeTemplatePermissionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TemplateId: S.optional(S.String), + TemplateArn: S.optional(S.String), + Permissions: S.optional(UpdateResourcePermissionList), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "DescribeTemplatePermissionsResponse", +}) as any as S.Schema; export interface DescribeThemeRequest { AwsAccountId: string; ThemeId: string; @@ -24436,27 +24123,26 @@ export interface DescribeThemePermissionsRequest { AwsAccountId: string; ThemeId: string; } -export const DescribeThemePermissionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - ThemeId: S.String.pipe(T.HttpLabel("ThemeId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/themes/{ThemeId}/permissions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeThemePermissionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + ThemeId: S.String.pipe(T.HttpLabel("ThemeId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/themes/{ThemeId}/permissions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeThemePermissionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeThemePermissionsRequest", +}) as any as S.Schema; export interface DescribeThemePermissionsResponse { ThemeId?: string; ThemeArn?: string; @@ -24464,18 +24150,17 @@ export interface DescribeThemePermissionsResponse { RequestId?: string; Status?: number; } -export const DescribeThemePermissionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ThemeId: S.optional(S.String), - ThemeArn: S.optional(S.String), - Permissions: S.optional(UpdateResourcePermissionList), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "DescribeThemePermissionsResponse", - }) as any as S.Schema; +export const DescribeThemePermissionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ThemeId: S.optional(S.String), + ThemeArn: S.optional(S.String), + Permissions: S.optional(UpdateResourcePermissionList), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "DescribeThemePermissionsResponse", +}) as any as S.Schema; export interface DescribeTopicRequest { AwsAccountId: string; TopicId: string; @@ -24524,27 +24209,26 @@ export interface DescribeTopicPermissionsRequest { AwsAccountId: string; TopicId: string; } -export const DescribeTopicPermissionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - TopicId: S.String.pipe(T.HttpLabel("TopicId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/topics/{TopicId}/permissions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeTopicPermissionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + TopicId: S.String.pipe(T.HttpLabel("TopicId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/topics/{TopicId}/permissions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeTopicPermissionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeTopicPermissionsRequest", +}) as any as S.Schema; export interface DescribeTopicPermissionsResponse { TopicId?: string; TopicArn?: string; @@ -24552,45 +24236,43 @@ export interface DescribeTopicPermissionsResponse { Status?: number; RequestId?: string; } -export const DescribeTopicPermissionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TopicId: S.optional(S.String), - TopicArn: S.optional(S.String), - Permissions: S.optional(ResourcePermissionList), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "DescribeTopicPermissionsResponse", - }) as any as S.Schema; +export const DescribeTopicPermissionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TopicId: S.optional(S.String), + TopicArn: S.optional(S.String), + Permissions: S.optional(ResourcePermissionList), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "DescribeTopicPermissionsResponse", +}) as any as S.Schema; export interface DescribeTopicRefreshRequest { AwsAccountId: string; TopicId: string; RefreshId: string; } -export const DescribeTopicRefreshRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - TopicId: S.String.pipe(T.HttpLabel("TopicId")), - RefreshId: S.String.pipe(T.HttpLabel("RefreshId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/topics/{TopicId}/refresh/{RefreshId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeTopicRefreshRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + TopicId: S.String.pipe(T.HttpLabel("TopicId")), + RefreshId: S.String.pipe(T.HttpLabel("RefreshId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/topics/{TopicId}/refresh/{RefreshId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeTopicRefreshRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeTopicRefreshRequest", +}) as any as S.Schema; export type TopicRefreshStatus = | "INITIALIZED" | "RUNNING" @@ -24618,43 +24300,41 @@ export interface DescribeTopicRefreshResponse { RequestId?: string; Status?: number; } -export const DescribeTopicRefreshResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RefreshDetails: S.optional(TopicRefreshDetails), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "DescribeTopicRefreshResponse", - }) as any as S.Schema; +export const DescribeTopicRefreshResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RefreshDetails: S.optional(TopicRefreshDetails), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "DescribeTopicRefreshResponse", +}) as any as S.Schema; export interface DescribeTopicRefreshScheduleRequest { AwsAccountId: string; TopicId: string; DatasetId: string; } -export const DescribeTopicRefreshScheduleRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - TopicId: S.String.pipe(T.HttpLabel("TopicId")), - DatasetId: S.String.pipe(T.HttpLabel("DatasetId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/topics/{TopicId}/schedules/{DatasetId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeTopicRefreshScheduleRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + TopicId: S.String.pipe(T.HttpLabel("TopicId")), + DatasetId: S.String.pipe(T.HttpLabel("DatasetId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/topics/{TopicId}/schedules/{DatasetId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeTopicRefreshScheduleRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeTopicRefreshScheduleRequest", +}) as any as S.Schema; export interface DescribeTopicRefreshScheduleResponse { TopicId?: string; TopicArn?: string; @@ -24663,8 +24343,8 @@ export interface DescribeTopicRefreshScheduleResponse { Status?: number; RequestId?: string; } -export const DescribeTopicRefreshScheduleResponse = - /*@__PURE__*/ S.suspend(() => +export const DescribeTopicRefreshScheduleResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ TopicId: S.optional(S.String), TopicArn: S.optional(S.String), @@ -24673,9 +24353,9 @@ export const DescribeTopicRefreshScheduleResponse = Status: S.optional(S.Number).pipe(T.HttpResponseCode()), RequestId: S.optional(S.String), }), - ).annotate({ - identifier: "DescribeTopicRefreshScheduleResponse", - }) as any as S.Schema; +).annotate({ + identifier: "DescribeTopicRefreshScheduleResponse", +}) as any as S.Schema; export interface DescribeUserRequest { UserName: string; AwsAccountId: string; @@ -24765,27 +24445,26 @@ export interface DescribeVPCConnectionRequest { AwsAccountId: string; VPCConnectionId: string; } -export const DescribeVPCConnectionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - VPCConnectionId: S.String.pipe(T.HttpLabel("VPCConnectionId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/vpc-connections/{VPCConnectionId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DescribeVPCConnectionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + VPCConnectionId: S.String.pipe(T.HttpLabel("VPCConnectionId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/vpc-connections/{VPCConnectionId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DescribeVPCConnectionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DescribeVPCConnectionRequest", +}) as any as S.Schema; export type NetworkInterfaceStatus = | "CREATING" | "AVAILABLE" @@ -24856,16 +24535,15 @@ export interface DescribeVPCConnectionResponse { RequestId?: string; Status?: number; } -export const DescribeVPCConnectionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - VPCConnection: S.optional(VPCConnection), - RequestId: S.optional(S.String), - Status: S.optional(S.Number), - }), - ).annotate({ - identifier: "DescribeVPCConnectionResponse", - }) as any as S.Schema; +export const DescribeVPCConnectionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + VPCConnection: S.optional(VPCConnection), + RequestId: S.optional(S.String), + Status: S.optional(S.Number), + }), +).annotate({ + identifier: "DescribeVPCConnectionResponse", +}) as any as S.Schema; export interface SessionTag { Key: string; Value: string | redacted.Redacted; @@ -25006,8 +24684,8 @@ export interface GenerateEmbedUrlForAnonymousUserRequest { ExperienceConfiguration: AnonymousUserEmbeddingExperienceConfiguration; AllowedDomains?: string[]; } -export const GenerateEmbedUrlForAnonymousUserRequest = - /*@__PURE__*/ S.suspend(() => +export const GenerateEmbedUrlForAnonymousUserRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), SessionLifetimeInMinutes: S.optional(S.Number), @@ -25029,33 +24707,34 @@ export const GenerateEmbedUrlForAnonymousUserRequest = rules, ), ), - ).annotate({ - identifier: "GenerateEmbedUrlForAnonymousUserRequest", - }) as any as S.Schema; +).annotate({ + identifier: "GenerateEmbedUrlForAnonymousUserRequest", +}) as any as S.Schema; export interface GenerateEmbedUrlForAnonymousUserResponse { EmbedUrl: string | redacted.Redacted; Status: number; RequestId: string; AnonymousUserArn: string; } -export const GenerateEmbedUrlForAnonymousUserResponse = - /*@__PURE__*/ S.suspend(() => +export const GenerateEmbedUrlForAnonymousUserResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ EmbedUrl: SensitiveString, Status: S.Number.pipe(T.HttpResponseCode()), RequestId: S.String, AnonymousUserArn: S.String, }), - ).annotate({ - identifier: "GenerateEmbedUrlForAnonymousUserResponse", - }) as any as S.Schema; +).annotate({ + identifier: "GenerateEmbedUrlForAnonymousUserResponse", +}) as any as S.Schema; export interface StatePersistenceConfigurations { Enabled: boolean; } -export const StatePersistenceConfigurations = - /*@__PURE__*/ S.suspend(() => S.Struct({ Enabled: S.Boolean })).annotate({ - identifier: "StatePersistenceConfigurations", - }) as any as S.Schema; +export const StatePersistenceConfigurations = /*@__PURE__*/ S.suspend(() => + S.Struct({ Enabled: S.Boolean }), +).annotate({ + identifier: "StatePersistenceConfigurations", +}) as any as S.Schema; export interface BookmarksConfigurations { Enabled: boolean; } @@ -25067,10 +24746,11 @@ export const BookmarksConfigurations = /*@__PURE__*/ S.suspend(() => export interface ExecutiveSummaryConfigurations { Enabled: boolean; } -export const ExecutiveSummaryConfigurations = - /*@__PURE__*/ S.suspend(() => S.Struct({ Enabled: S.Boolean })).annotate({ - identifier: "ExecutiveSummaryConfigurations", - }) as any as S.Schema; +export const ExecutiveSummaryConfigurations = /*@__PURE__*/ S.suspend(() => + S.Struct({ Enabled: S.Boolean }), +).annotate({ + identifier: "ExecutiveSummaryConfigurations", +}) as any as S.Schema; export interface AmazonQInQuickSightDashboardConfigurations { ExecutiveSummary?: ExecutiveSummaryConfigurations; } @@ -25091,17 +24771,19 @@ export const SchedulesConfigurations = /*@__PURE__*/ S.suspend(() => export interface RecentSnapshotsConfigurations { Enabled: boolean; } -export const RecentSnapshotsConfigurations = - /*@__PURE__*/ S.suspend(() => S.Struct({ Enabled: S.Boolean })).annotate({ - identifier: "RecentSnapshotsConfigurations", - }) as any as S.Schema; +export const RecentSnapshotsConfigurations = /*@__PURE__*/ S.suspend(() => + S.Struct({ Enabled: S.Boolean }), +).annotate({ + identifier: "RecentSnapshotsConfigurations", +}) as any as S.Schema; export interface ThresholdAlertsConfigurations { Enabled: boolean; } -export const ThresholdAlertsConfigurations = - /*@__PURE__*/ S.suspend(() => S.Struct({ Enabled: S.Boolean })).annotate({ - identifier: "ThresholdAlertsConfigurations", - }) as any as S.Schema; +export const ThresholdAlertsConfigurations = /*@__PURE__*/ S.suspend(() => + S.Struct({ Enabled: S.Boolean }), +).annotate({ + identifier: "ThresholdAlertsConfigurations", +}) as any as S.Schema; export interface DashboardCustomizationSummaryConfigurations { Enabled: boolean; } @@ -25164,10 +24846,11 @@ export const DataQnAConfigurations = /*@__PURE__*/ S.suspend(() => export interface GenerativeAuthoringConfigurations { Enabled: boolean; } -export const GenerativeAuthoringConfigurations = - /*@__PURE__*/ S.suspend(() => S.Struct({ Enabled: S.Boolean })).annotate({ - identifier: "GenerativeAuthoringConfigurations", - }) as any as S.Schema; +export const GenerativeAuthoringConfigurations = /*@__PURE__*/ S.suspend(() => + S.Struct({ Enabled: S.Boolean }), +).annotate({ + identifier: "GenerativeAuthoringConfigurations", +}) as any as S.Schema; export interface DataStoriesConfigurations { Enabled: boolean; } @@ -25182,17 +24865,17 @@ export interface AmazonQInQuickSightConsoleConfigurations { ExecutiveSummary?: ExecutiveSummaryConfigurations; DataStories?: DataStoriesConfigurations; } -export const AmazonQInQuickSightConsoleConfigurations = - /*@__PURE__*/ S.suspend(() => +export const AmazonQInQuickSightConsoleConfigurations = /*@__PURE__*/ S.suspend( + () => S.Struct({ DataQnA: S.optional(DataQnAConfigurations), GenerativeAuthoring: S.optional(GenerativeAuthoringConfigurations), ExecutiveSummary: S.optional(ExecutiveSummaryConfigurations), DataStories: S.optional(DataStoriesConfigurations), }), - ).annotate({ - identifier: "AmazonQInQuickSightConsoleConfigurations", - }) as any as S.Schema; +).annotate({ + identifier: "AmazonQInQuickSightConsoleConfigurations", +}) as any as S.Schema; export interface RegisteredUserConsoleFeatureConfigurations { StatePersistence?: StatePersistenceConfigurations; SharedView?: SharedViewConfigurations; @@ -25299,8 +24982,8 @@ export interface GenerateEmbedUrlForRegisteredUserRequest { ExperienceConfiguration: RegisteredUserEmbeddingExperienceConfiguration; AllowedDomains?: string[]; } -export const GenerateEmbedUrlForRegisteredUserRequest = - /*@__PURE__*/ S.suspend(() => +export const GenerateEmbedUrlForRegisteredUserRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), SessionLifetimeInMinutes: S.optional(S.Number), @@ -25320,9 +25003,9 @@ export const GenerateEmbedUrlForRegisteredUserRequest = rules, ), ), - ).annotate({ - identifier: "GenerateEmbedUrlForRegisteredUserRequest", - }) as any as S.Schema; +).annotate({ + identifier: "GenerateEmbedUrlForRegisteredUserRequest", +}) as any as S.Schema; export interface GenerateEmbedUrlForRegisteredUserResponse { EmbedUrl: string | redacted.Redacted; Status: number; @@ -25402,58 +25085,56 @@ export interface GetDashboardEmbedUrlRequest { Namespace?: string; AdditionalDashboardIds?: string[]; } -export const GetDashboardEmbedUrlRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - DashboardId: S.String.pipe(T.HttpLabel("DashboardId")), - IdentityType: EmbeddingIdentityType.pipe(T.HttpQuery("creds-type")), - SessionLifetimeInMinutes: S.optional(S.Number).pipe( - T.HttpQuery("session-lifetime"), - ), - UndoRedoDisabled: S.optional(S.Boolean).pipe( - T.HttpQuery("undo-redo-disabled"), - ), - ResetDisabled: S.optional(S.Boolean).pipe(T.HttpQuery("reset-disabled")), - StatePersistenceEnabled: S.optional(S.Boolean).pipe( - T.HttpQuery("state-persistence-enabled"), - ), - UserArn: S.optional(S.String).pipe(T.HttpQuery("user-arn")), - Namespace: S.optional(S.String).pipe(T.HttpQuery("namespace")), - AdditionalDashboardIds: S.optional(AdditionalDashboardIdList).pipe( - T.HttpQuery("additional-dashboard-ids"), - ), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/dashboards/{DashboardId}/embed-url", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetDashboardEmbedUrlRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + DashboardId: S.String.pipe(T.HttpLabel("DashboardId")), + IdentityType: EmbeddingIdentityType.pipe(T.HttpQuery("creds-type")), + SessionLifetimeInMinutes: S.optional(S.Number).pipe( + T.HttpQuery("session-lifetime"), ), - ).annotate({ - identifier: "GetDashboardEmbedUrlRequest", - }) as any as S.Schema; + UndoRedoDisabled: S.optional(S.Boolean).pipe( + T.HttpQuery("undo-redo-disabled"), + ), + ResetDisabled: S.optional(S.Boolean).pipe(T.HttpQuery("reset-disabled")), + StatePersistenceEnabled: S.optional(S.Boolean).pipe( + T.HttpQuery("state-persistence-enabled"), + ), + UserArn: S.optional(S.String).pipe(T.HttpQuery("user-arn")), + Namespace: S.optional(S.String).pipe(T.HttpQuery("namespace")), + AdditionalDashboardIds: S.optional(AdditionalDashboardIdList).pipe( + T.HttpQuery("additional-dashboard-ids"), + ), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/dashboards/{DashboardId}/embed-url", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "GetDashboardEmbedUrlRequest", +}) as any as S.Schema; export interface GetDashboardEmbedUrlResponse { EmbedUrl?: string | redacted.Redacted; Status?: number; RequestId?: string; } -export const GetDashboardEmbedUrlResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - EmbedUrl: S.optional(SensitiveString), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "GetDashboardEmbedUrlResponse", - }) as any as S.Schema; +export const GetDashboardEmbedUrlResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + EmbedUrl: S.optional(SensitiveString), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "GetDashboardEmbedUrlResponse", +}) as any as S.Schema; export interface GetFlowMetadataInput { AwsAccountId: string; FlowId: string; @@ -25664,28 +25345,27 @@ export interface ListActionConnectorsRequest { MaxResults?: number; NextToken?: string; } -export const ListActionConnectorsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("max-results")), - NextToken: S.optional(S.String).pipe(T.HttpQuery("next-token")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/action-connectors", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListActionConnectorsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("max-results")), + NextToken: S.optional(S.String).pipe(T.HttpQuery("next-token")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/action-connectors", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListActionConnectorsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListActionConnectorsRequest", +}) as any as S.Schema; export interface ActionConnectorSummary { Arn: string; ActionConnectorId: string; @@ -25720,17 +25400,16 @@ export interface ListActionConnectorsResponse { RequestId?: string; Status?: number; } -export const ListActionConnectorsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ActionConnectorSummaries: ActionConnectorSummaryList, - NextToken: S.optional(S.String), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "ListActionConnectorsResponse", - }) as any as S.Schema; +export const ListActionConnectorsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ActionConnectorSummaries: ActionConnectorSummaryList, + NextToken: S.optional(S.String), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "ListActionConnectorsResponse", +}) as any as S.Schema; export interface ListAgentsRequest { AwsAccountId: string; MaxResults?: number; @@ -25858,102 +25537,99 @@ export interface ListAssetBundleExportJobsRequest { NextToken?: string; MaxResults?: number; } -export const ListAssetBundleExportJobsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - NextToken: S.optional(S.String).pipe(T.HttpQuery("next-token")), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("max-results")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/asset-bundle-export-jobs", - }), - svc, - auth, - proto, - ver, - rules, - ), - ), - ).annotate({ - identifier: "ListAssetBundleExportJobsRequest", - }) as any as S.Schema; -export interface AssetBundleExportJobSummary { - JobStatus?: AssetBundleExportJobStatus; - Arn?: string; - CreatedTime?: Date; - AssetBundleExportJobId?: string; - IncludeAllDependencies?: boolean; +export const ListAssetBundleExportJobsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + NextToken: S.optional(S.String).pipe(T.HttpQuery("next-token")), + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("max-results")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/asset-bundle-export-jobs", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "ListAssetBundleExportJobsRequest", +}) as any as S.Schema; +export interface AssetBundleExportJobSummary { + JobStatus?: AssetBundleExportJobStatus; + Arn?: string; + CreatedTime?: Date; + AssetBundleExportJobId?: string; + IncludeAllDependencies?: boolean; ExportFormat?: AssetBundleExportFormat; IncludePermissions?: boolean; IncludeTags?: boolean; } -export const AssetBundleExportJobSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - JobStatus: S.optional(AssetBundleExportJobStatus), - Arn: S.optional(S.String), - CreatedTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - AssetBundleExportJobId: S.optional(S.String), - IncludeAllDependencies: S.optional(S.Boolean), - ExportFormat: S.optional(AssetBundleExportFormat), - IncludePermissions: S.optional(S.Boolean), - IncludeTags: S.optional(S.Boolean), - }), - ).annotate({ - identifier: "AssetBundleExportJobSummary", - }) as any as S.Schema; +export const AssetBundleExportJobSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + JobStatus: S.optional(AssetBundleExportJobStatus), + Arn: S.optional(S.String), + CreatedTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + AssetBundleExportJobId: S.optional(S.String), + IncludeAllDependencies: S.optional(S.Boolean), + ExportFormat: S.optional(AssetBundleExportFormat), + IncludePermissions: S.optional(S.Boolean), + IncludeTags: S.optional(S.Boolean), + }), +).annotate({ + identifier: "AssetBundleExportJobSummary", +}) as any as S.Schema; export type AssetBundleExportJobSummaryList = AssetBundleExportJobSummary[]; -export const AssetBundleExportJobSummaryList = - /*@__PURE__*/ S.Array(AssetBundleExportJobSummary); +export const AssetBundleExportJobSummaryList = /*@__PURE__*/ S.Array( + AssetBundleExportJobSummary, +); export interface ListAssetBundleExportJobsResponse { AssetBundleExportJobSummaryList?: AssetBundleExportJobSummary[]; NextToken?: string; RequestId?: string; Status?: number; } -export const ListAssetBundleExportJobsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AssetBundleExportJobSummaryList: S.optional( - AssetBundleExportJobSummaryList, - ), - NextToken: S.optional(S.String), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "ListAssetBundleExportJobsResponse", - }) as any as S.Schema; +export const ListAssetBundleExportJobsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AssetBundleExportJobSummaryList: S.optional( + AssetBundleExportJobSummaryList, + ), + NextToken: S.optional(S.String), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "ListAssetBundleExportJobsResponse", +}) as any as S.Schema; export interface ListAssetBundleImportJobsRequest { AwsAccountId: string; NextToken?: string; MaxResults?: number; } -export const ListAssetBundleImportJobsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - NextToken: S.optional(S.String).pipe(T.HttpQuery("next-token")), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("max-results")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/asset-bundle-import-jobs", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListAssetBundleImportJobsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + NextToken: S.optional(S.String).pipe(T.HttpQuery("next-token")), + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("max-results")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/asset-bundle-import-jobs", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListAssetBundleImportJobsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListAssetBundleImportJobsRequest", +}) as any as S.Schema; export interface AssetBundleImportJobSummary { JobStatus?: AssetBundleImportJobStatus; Arn?: string; @@ -25961,40 +25637,39 @@ export interface AssetBundleImportJobSummary { AssetBundleImportJobId?: string; FailureAction?: AssetBundleImportFailureAction; } -export const AssetBundleImportJobSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - JobStatus: S.optional(AssetBundleImportJobStatus), - Arn: S.optional(S.String), - CreatedTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - AssetBundleImportJobId: S.optional(S.String), - FailureAction: S.optional(AssetBundleImportFailureAction), - }), - ).annotate({ - identifier: "AssetBundleImportJobSummary", - }) as any as S.Schema; +export const AssetBundleImportJobSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + JobStatus: S.optional(AssetBundleImportJobStatus), + Arn: S.optional(S.String), + CreatedTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + AssetBundleImportJobId: S.optional(S.String), + FailureAction: S.optional(AssetBundleImportFailureAction), + }), +).annotate({ + identifier: "AssetBundleImportJobSummary", +}) as any as S.Schema; export type AssetBundleImportJobSummaryList = AssetBundleImportJobSummary[]; -export const AssetBundleImportJobSummaryList = - /*@__PURE__*/ S.Array(AssetBundleImportJobSummary); +export const AssetBundleImportJobSummaryList = /*@__PURE__*/ S.Array( + AssetBundleImportJobSummary, +); export interface ListAssetBundleImportJobsResponse { AssetBundleImportJobSummaryList?: AssetBundleImportJobSummary[]; NextToken?: string; RequestId?: string; Status?: number; } -export const ListAssetBundleImportJobsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AssetBundleImportJobSummaryList: S.optional( - AssetBundleImportJobSummaryList, - ), - NextToken: S.optional(S.String), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "ListAssetBundleImportJobsResponse", - }) as any as S.Schema; +export const ListAssetBundleImportJobsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AssetBundleImportJobSummaryList: S.optional( + AssetBundleImportJobSummaryList, + ), + NextToken: S.optional(S.String), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "ListAssetBundleImportJobsResponse", +}) as any as S.Schema; export interface ListBrandsRequest { AwsAccountId: string; MaxResults?: number; @@ -26059,28 +25734,27 @@ export interface ListCustomPermissionsRequest { MaxResults?: number; NextToken?: string; } -export const ListCustomPermissionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("max-results")), - NextToken: S.optional(S.String).pipe(T.HttpQuery("next-token")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/custom-permissions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListCustomPermissionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("max-results")), + NextToken: S.optional(S.String).pipe(T.HttpQuery("next-token")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/custom-permissions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListCustomPermissionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListCustomPermissionsRequest", +}) as any as S.Schema; export type CustomPermissionsList = CustomPermissions[]; export const CustomPermissionsList = /*@__PURE__*/ S.Array(CustomPermissions); export interface ListCustomPermissionsResponse { @@ -26089,17 +25763,16 @@ export interface ListCustomPermissionsResponse { NextToken?: string; RequestId?: string; } -export const ListCustomPermissionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - CustomPermissionsList: S.optional(CustomPermissionsList), - NextToken: S.optional(S.String), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "ListCustomPermissionsResponse", - }) as any as S.Schema; +export const ListCustomPermissionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + CustomPermissionsList: S.optional(CustomPermissionsList), + NextToken: S.optional(S.String), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "ListCustomPermissionsResponse", +}) as any as S.Schema; export interface ListDashboardsRequest { AwsAccountId: string; NextToken?: string; @@ -26173,29 +25846,28 @@ export interface ListDashboardVersionsRequest { NextToken?: string; MaxResults?: number; } -export const ListDashboardVersionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - DashboardId: S.String.pipe(T.HttpLabel("DashboardId")), - NextToken: S.optional(S.String).pipe(T.HttpQuery("next-token")), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("max-results")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/dashboards/{DashboardId}/versions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListDashboardVersionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + DashboardId: S.String.pipe(T.HttpLabel("DashboardId")), + NextToken: S.optional(S.String).pipe(T.HttpQuery("next-token")), + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("max-results")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/dashboards/{DashboardId}/versions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListDashboardVersionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListDashboardVersionsRequest", +}) as any as S.Schema; export interface DashboardVersionSummary { Arn?: string; CreatedTime?: Date; @@ -26226,17 +25898,16 @@ export interface ListDashboardVersionsResponse { Status?: number; RequestId?: string; } -export const ListDashboardVersionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DashboardVersionSummaryList: S.optional(DashboardVersionSummaryList), - NextToken: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "ListDashboardVersionsResponse", - }) as any as S.Schema; +export const ListDashboardVersionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DashboardVersionSummaryList: S.optional(DashboardVersionSummaryList), + NextToken: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "ListDashboardVersionsResponse", +}) as any as S.Schema; export interface ListDataSetsRequest { AwsAccountId: string; NextToken?: string; @@ -26263,8 +25934,10 @@ export const ListDataSetsRequest = /*@__PURE__*/ S.suspend(() => export type RowLevelPermissionDataSetMap = { [key: string]: RowLevelPermissionDataSet | undefined; }; -export const RowLevelPermissionDataSetMap = - /*@__PURE__*/ S.Record(S.String, RowLevelPermissionDataSet.pipe(S.optional)); +export const RowLevelPermissionDataSetMap = /*@__PURE__*/ S.Record( + S.String, + RowLevelPermissionDataSet.pipe(S.optional), +); export interface DataSetSummary { Arn?: string; DataSetId?: string; @@ -26555,29 +26228,28 @@ export interface ListFoldersForResourceRequest { NextToken?: string; MaxResults?: number; } -export const ListFoldersForResourceRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - ResourceArn: S.String.pipe(T.HttpLabel("ResourceArn")), - NextToken: S.optional(S.String).pipe(T.HttpQuery("next-token")), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("max-results")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/resource/{ResourceArn}/folders", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListFoldersForResourceRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + ResourceArn: S.String.pipe(T.HttpLabel("ResourceArn")), + NextToken: S.optional(S.String).pipe(T.HttpQuery("next-token")), + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("max-results")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/resource/{ResourceArn}/folders", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListFoldersForResourceRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListFoldersForResourceRequest", +}) as any as S.Schema; export type FoldersForResourceArnList = string[]; export const FoldersForResourceArnList = /*@__PURE__*/ S.Array(S.String); export interface ListFoldersForResourceResponse { @@ -26586,17 +26258,16 @@ export interface ListFoldersForResourceResponse { NextToken?: string; RequestId?: string; } -export const ListFoldersForResourceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - Folders: S.optional(FoldersForResourceArnList), - NextToken: S.optional(S.String), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "ListFoldersForResourceResponse", - }) as any as S.Schema; +export const ListFoldersForResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + Folders: S.optional(FoldersForResourceArnList), + NextToken: S.optional(S.String), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "ListFoldersForResourceResponse", +}) as any as S.Schema; export interface ListGroupMembershipsRequest { GroupName: string; NextToken?: string; @@ -26604,30 +26275,29 @@ export interface ListGroupMembershipsRequest { AwsAccountId: string; Namespace: string; } -export const ListGroupMembershipsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - GroupName: S.String.pipe(T.HttpLabel("GroupName")), - NextToken: S.optional(S.String).pipe(T.HttpQuery("next-token")), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("max-results")), - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - Namespace: S.String.pipe(T.HttpLabel("Namespace")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListGroupMembershipsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + GroupName: S.String.pipe(T.HttpLabel("GroupName")), + NextToken: S.optional(S.String).pipe(T.HttpQuery("next-token")), + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("max-results")), + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + Namespace: S.String.pipe(T.HttpLabel("Namespace")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListGroupMembershipsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListGroupMembershipsRequest", +}) as any as S.Schema; export type GroupMemberList = GroupMember[]; export const GroupMemberList = /*@__PURE__*/ S.Array(GroupMember); export interface ListGroupMembershipsResponse { @@ -26636,17 +26306,16 @@ export interface ListGroupMembershipsResponse { RequestId?: string; Status?: number; } -export const ListGroupMembershipsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - GroupMemberList: S.optional(GroupMemberList), - NextToken: S.optional(S.String), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "ListGroupMembershipsResponse", - }) as any as S.Schema; +export const ListGroupMembershipsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + GroupMemberList: S.optional(GroupMemberList), + NextToken: S.optional(S.String), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "ListGroupMembershipsResponse", +}) as any as S.Schema; export interface ListGroupsRequest { AwsAccountId: string; NextToken?: string; @@ -26700,32 +26369,31 @@ export interface ListIAMPolicyAssignmentsRequest { NextToken?: string; MaxResults?: number; } -export const ListIAMPolicyAssignmentsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - AssignmentStatus: S.optional(AssignmentStatus).pipe( - T.HttpQuery("assignment-status"), - ), - Namespace: S.String.pipe(T.HttpLabel("Namespace")), - NextToken: S.optional(S.String).pipe(T.HttpQuery("next-token")), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("max-results")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/v2/iam-policy-assignments", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListIAMPolicyAssignmentsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + AssignmentStatus: S.optional(AssignmentStatus).pipe( + T.HttpQuery("assignment-status"), ), - ).annotate({ - identifier: "ListIAMPolicyAssignmentsRequest", - }) as any as S.Schema; + Namespace: S.String.pipe(T.HttpLabel("Namespace")), + NextToken: S.optional(S.String).pipe(T.HttpQuery("next-token")), + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("max-results")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/v2/iam-policy-assignments", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "ListIAMPolicyAssignmentsRequest", +}) as any as S.Schema; export interface IAMPolicyAssignmentSummary { AssignmentName?: string; AssignmentStatus?: AssignmentStatus; @@ -26739,25 +26407,25 @@ export const IAMPolicyAssignmentSummary = /*@__PURE__*/ S.suspend(() => identifier: "IAMPolicyAssignmentSummary", }) as any as S.Schema; export type IAMPolicyAssignmentSummaryList = IAMPolicyAssignmentSummary[]; -export const IAMPolicyAssignmentSummaryList = - /*@__PURE__*/ S.Array(IAMPolicyAssignmentSummary); +export const IAMPolicyAssignmentSummaryList = /*@__PURE__*/ S.Array( + IAMPolicyAssignmentSummary, +); export interface ListIAMPolicyAssignmentsResponse { IAMPolicyAssignments?: IAMPolicyAssignmentSummary[]; NextToken?: string; RequestId?: string; Status?: number; } -export const ListIAMPolicyAssignmentsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - IAMPolicyAssignments: S.optional(IAMPolicyAssignmentSummaryList), - NextToken: S.optional(S.String), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "ListIAMPolicyAssignmentsResponse", - }) as any as S.Schema; +export const ListIAMPolicyAssignmentsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + IAMPolicyAssignments: S.optional(IAMPolicyAssignmentSummaryList), + NextToken: S.optional(S.String), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "ListIAMPolicyAssignmentsResponse", +}) as any as S.Schema; export interface ListIAMPolicyAssignmentsForUserRequest { AwsAccountId: string; UserName: string; @@ -26765,8 +26433,8 @@ export interface ListIAMPolicyAssignmentsForUserRequest { MaxResults?: number; Namespace: string; } -export const ListIAMPolicyAssignmentsForUserRequest = - /*@__PURE__*/ S.suspend(() => +export const ListIAMPolicyAssignmentsForUserRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), UserName: S.String.pipe(T.HttpLabel("UserName")), @@ -26786,9 +26454,9 @@ export const ListIAMPolicyAssignmentsForUserRequest = rules, ), ), - ).annotate({ - identifier: "ListIAMPolicyAssignmentsForUserRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListIAMPolicyAssignmentsForUserRequest", +}) as any as S.Schema; export interface ActiveIAMPolicyAssignment { AssignmentName?: string; PolicyArn?: string; @@ -26802,32 +26470,33 @@ export const ActiveIAMPolicyAssignment = /*@__PURE__*/ S.suspend(() => identifier: "ActiveIAMPolicyAssignment", }) as any as S.Schema; export type ActiveIAMPolicyAssignmentList = ActiveIAMPolicyAssignment[]; -export const ActiveIAMPolicyAssignmentList = - /*@__PURE__*/ S.Array(ActiveIAMPolicyAssignment); +export const ActiveIAMPolicyAssignmentList = /*@__PURE__*/ S.Array( + ActiveIAMPolicyAssignment, +); export interface ListIAMPolicyAssignmentsForUserResponse { ActiveAssignments?: ActiveIAMPolicyAssignment[]; RequestId?: string; NextToken?: string; Status?: number; } -export const ListIAMPolicyAssignmentsForUserResponse = - /*@__PURE__*/ S.suspend(() => +export const ListIAMPolicyAssignmentsForUserResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ ActiveAssignments: S.optional(ActiveIAMPolicyAssignmentList), RequestId: S.optional(S.String), NextToken: S.optional(S.String), Status: S.optional(S.Number).pipe(T.HttpResponseCode()), }), - ).annotate({ - identifier: "ListIAMPolicyAssignmentsForUserResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListIAMPolicyAssignmentsForUserResponse", +}) as any as S.Schema; export interface ListIdentityPropagationConfigsRequest { AwsAccountId: string; MaxResults?: number; NextToken?: string; } -export const ListIdentityPropagationConfigsRequest = - /*@__PURE__*/ S.suspend(() => +export const ListIdentityPropagationConfigsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), MaxResults: S.optional(S.Number).pipe(T.HttpQuery("max-results")), @@ -26845,9 +26514,9 @@ export const ListIdentityPropagationConfigsRequest = rules, ), ), - ).annotate({ - identifier: "ListIdentityPropagationConfigsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListIdentityPropagationConfigsRequest", +}) as any as S.Schema; export type AuthorizedTargetsList = string[]; export const AuthorizedTargetsList = /*@__PURE__*/ S.Array(S.String); export interface AuthorizedTargetsByService { @@ -26872,17 +26541,17 @@ export interface ListIdentityPropagationConfigsResponse { Status?: number; RequestId?: string; } -export const ListIdentityPropagationConfigsResponse = - /*@__PURE__*/ S.suspend(() => +export const ListIdentityPropagationConfigsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ Services: S.optional(AuthorizedTargetsByServices), NextToken: S.optional(S.String), Status: S.optional(S.Number).pipe(T.HttpResponseCode()), RequestId: S.optional(S.String), }), - ).annotate({ - identifier: "ListIdentityPropagationConfigsResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListIdentityPropagationConfigsResponse", +}) as any as S.Schema; export interface ListIngestionsRequest { DataSetId: string; NextToken?: string; @@ -27052,28 +26721,27 @@ export interface ListOAuthClientApplicationsRequest { NextToken?: string; MaxResults?: number; } -export const ListOAuthClientApplicationsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - NextToken: S.optional(S.String).pipe(T.HttpQuery("next-token")), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("max-results")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/oauth-client-applications", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListOAuthClientApplicationsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + NextToken: S.optional(S.String).pipe(T.HttpQuery("next-token")), + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("max-results")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/oauth-client-applications", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListOAuthClientApplicationsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListOAuthClientApplicationsRequest", +}) as any as S.Schema; export interface OAuthClientApplicationSummary { OAuthClientApplicationId?: string; Name?: string; @@ -27084,70 +26752,68 @@ export interface OAuthClientApplicationSummary { LastUpdatedTime?: Date; Arn?: string; } -export const OAuthClientApplicationSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - OAuthClientApplicationId: S.optional(S.String), - Name: S.optional(S.String), - OAuthClientAuthenticationType: S.optional(OAuthClientAuthenticationType), - DataSourceType: S.optional(DataSourceType), - IdentityProviderVpcConnectionProperties: S.optional( - VpcConnectionProperties, - ), - CreatedTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - LastUpdatedTime: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - Arn: S.optional(S.String), - }), - ).annotate({ - identifier: "OAuthClientApplicationSummary", - }) as any as S.Schema; +export const OAuthClientApplicationSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + OAuthClientApplicationId: S.optional(S.String), + Name: S.optional(S.String), + OAuthClientAuthenticationType: S.optional(OAuthClientAuthenticationType), + DataSourceType: S.optional(DataSourceType), + IdentityProviderVpcConnectionProperties: S.optional( + VpcConnectionProperties, + ), + CreatedTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + LastUpdatedTime: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + Arn: S.optional(S.String), + }), +).annotate({ + identifier: "OAuthClientApplicationSummary", +}) as any as S.Schema; export type OAuthClientApplicationSummaryList = OAuthClientApplicationSummary[]; -export const OAuthClientApplicationSummaryList = - /*@__PURE__*/ S.Array(OAuthClientApplicationSummary); +export const OAuthClientApplicationSummaryList = /*@__PURE__*/ S.Array( + OAuthClientApplicationSummary, +); export interface ListOAuthClientApplicationsResponse { OAuthClientApplications?: OAuthClientApplicationSummary[]; NextToken?: string; RequestId?: string; Status?: number; } -export const ListOAuthClientApplicationsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - OAuthClientApplications: S.optional(OAuthClientApplicationSummaryList), - NextToken: S.optional(S.String), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "ListOAuthClientApplicationsResponse", - }) as any as S.Schema; +export const ListOAuthClientApplicationsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + OAuthClientApplications: S.optional(OAuthClientApplicationSummaryList), + NextToken: S.optional(S.String), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "ListOAuthClientApplicationsResponse", +}) as any as S.Schema; export interface ListRefreshSchedulesRequest { AwsAccountId: string; DataSetId: string; } -export const ListRefreshSchedulesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - DataSetId: S.String.pipe(T.HttpLabel("DataSetId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-schedules", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListRefreshSchedulesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + DataSetId: S.String.pipe(T.HttpLabel("DataSetId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-schedules", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListRefreshSchedulesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListRefreshSchedulesRequest", +}) as any as S.Schema; export type RefreshSchedules = RefreshSchedule[]; export const RefreshSchedules = /*@__PURE__*/ S.Array(RefreshSchedule); export interface ListRefreshSchedulesResponse { @@ -27155,16 +26821,15 @@ export interface ListRefreshSchedulesResponse { Status?: number; RequestId?: string; } -export const ListRefreshSchedulesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RefreshSchedules: S.optional(RefreshSchedules), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "ListRefreshSchedulesResponse", - }) as any as S.Schema; +export const ListRefreshSchedulesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RefreshSchedules: S.optional(RefreshSchedules), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "ListRefreshSchedulesResponse", +}) as any as S.Schema; export interface ListRoleMembershipsRequest { Role: Role; NextToken?: string; @@ -27201,17 +26866,16 @@ export interface ListRoleMembershipsResponse { RequestId?: string; Status?: number; } -export const ListRoleMembershipsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - MembersList: S.optional(GroupsList), - NextToken: S.optional(S.String), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "ListRoleMembershipsResponse", - }) as any as S.Schema; +export const ListRoleMembershipsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + MembersList: S.optional(GroupsList), + NextToken: S.optional(S.String), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "ListRoleMembershipsResponse", +}) as any as S.Schema; export interface ListSelfUpgradesRequest { AwsAccountId: string; Namespace: string; @@ -27446,18 +27110,17 @@ export interface ListTagsForResourceResponse { RequestId?: string; Status?: number; } -export const ListTagsForResourceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Tags: S.optional(TagList), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "ListTagsForResourceResponse", - }) as any as S.Schema; -export interface ListTemplateAliasesRequest { - AwsAccountId: string; +export const ListTagsForResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Tags: S.optional(TagList), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "ListTagsForResourceResponse", +}) as any as S.Schema; +export interface ListTemplateAliasesRequest { + AwsAccountId: string; TemplateId: string; NextToken?: string; MaxResults?: number; @@ -27492,17 +27155,16 @@ export interface ListTemplateAliasesResponse { RequestId?: string; NextToken?: string; } -export const ListTemplateAliasesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TemplateAliasList: S.optional(TemplateAliasList), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - RequestId: S.optional(S.String), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListTemplateAliasesResponse", - }) as any as S.Schema; +export const ListTemplateAliasesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TemplateAliasList: S.optional(TemplateAliasList), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + RequestId: S.optional(S.String), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListTemplateAliasesResponse", +}) as any as S.Schema; export interface ListTemplatesRequest { AwsAccountId: string; NextToken?: string; @@ -27572,29 +27234,28 @@ export interface ListTemplateVersionsRequest { NextToken?: string; MaxResults?: number; } -export const ListTemplateVersionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - TemplateId: S.String.pipe(T.HttpLabel("TemplateId")), - NextToken: S.optional(S.String).pipe(T.HttpQuery("next-token")), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("max-results")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/templates/{TemplateId}/versions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListTemplateVersionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + TemplateId: S.String.pipe(T.HttpLabel("TemplateId")), + NextToken: S.optional(S.String).pipe(T.HttpQuery("next-token")), + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("max-results")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/templates/{TemplateId}/versions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListTemplateVersionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListTemplateVersionsRequest", +}) as any as S.Schema; export interface TemplateVersionSummary { Arn?: string; VersionNumber?: number; @@ -27623,17 +27284,16 @@ export interface ListTemplateVersionsResponse { Status?: number; RequestId?: string; } -export const ListTemplateVersionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TemplateVersionSummaryList: S.optional(TemplateVersionSummaryList), - NextToken: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "ListTemplateVersionsResponse", - }) as any as S.Schema; +export const ListTemplateVersionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TemplateVersionSummaryList: S.optional(TemplateVersionSummaryList), + NextToken: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "ListTemplateVersionsResponse", +}) as any as S.Schema; export interface ListThemeAliasesRequest { AwsAccountId: string; ThemeId: string; @@ -27812,47 +27472,46 @@ export interface ListTopicRefreshSchedulesRequest { AwsAccountId: string; TopicId: string; } -export const ListTopicRefreshSchedulesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - TopicId: S.String.pipe(T.HttpLabel("TopicId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/topics/{TopicId}/schedules", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListTopicRefreshSchedulesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + TopicId: S.String.pipe(T.HttpLabel("TopicId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/topics/{TopicId}/schedules", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListTopicRefreshSchedulesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListTopicRefreshSchedulesRequest", +}) as any as S.Schema; export interface TopicRefreshScheduleSummary { DatasetId?: string; DatasetArn?: string; DatasetName?: string; RefreshSchedule?: TopicRefreshSchedule; } -export const TopicRefreshScheduleSummary = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DatasetId: S.optional(S.String), - DatasetArn: S.optional(S.String), - DatasetName: S.optional(S.String), - RefreshSchedule: S.optional(TopicRefreshSchedule), - }), - ).annotate({ - identifier: "TopicRefreshScheduleSummary", - }) as any as S.Schema; +export const TopicRefreshScheduleSummary = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DatasetId: S.optional(S.String), + DatasetArn: S.optional(S.String), + DatasetName: S.optional(S.String), + RefreshSchedule: S.optional(TopicRefreshSchedule), + }), +).annotate({ + identifier: "TopicRefreshScheduleSummary", +}) as any as S.Schema; export type TopicRefreshScheduleSummaries = TopicRefreshScheduleSummary[]; -export const TopicRefreshScheduleSummaries = - /*@__PURE__*/ S.Array(TopicRefreshScheduleSummary); +export const TopicRefreshScheduleSummaries = /*@__PURE__*/ S.Array( + TopicRefreshScheduleSummary, +); export interface ListTopicRefreshSchedulesResponse { TopicId?: string; TopicArn?: string; @@ -27860,43 +27519,41 @@ export interface ListTopicRefreshSchedulesResponse { Status?: number; RequestId?: string; } -export const ListTopicRefreshSchedulesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TopicId: S.optional(S.String), - TopicArn: S.optional(S.String), - RefreshSchedules: S.optional(TopicRefreshScheduleSummaries), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "ListTopicRefreshSchedulesResponse", - }) as any as S.Schema; +export const ListTopicRefreshSchedulesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TopicId: S.optional(S.String), + TopicArn: S.optional(S.String), + RefreshSchedules: S.optional(TopicRefreshScheduleSummaries), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "ListTopicRefreshSchedulesResponse", +}) as any as S.Schema; export interface ListTopicReviewedAnswersRequest { AwsAccountId: string; TopicId: string; } -export const ListTopicReviewedAnswersRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - TopicId: S.String.pipe(T.HttpLabel("TopicId")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/accounts/{AwsAccountId}/topics/{TopicId}/reviewed-answers", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListTopicReviewedAnswersRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + TopicId: S.String.pipe(T.HttpLabel("TopicId")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/accounts/{AwsAccountId}/topics/{TopicId}/reviewed-answers", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListTopicReviewedAnswersRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListTopicReviewedAnswersRequest", +}) as any as S.Schema; export interface TopicReviewedAnswer { Arn?: string; AnswerId: string; @@ -27928,18 +27585,17 @@ export interface ListTopicReviewedAnswersResponse { Status?: number; RequestId?: string; } -export const ListTopicReviewedAnswersResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TopicId: S.optional(S.String), - TopicArn: S.optional(S.String), - Answers: S.optional(TopicReviewedAnswers), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "ListTopicReviewedAnswersResponse", - }) as any as S.Schema; +export const ListTopicReviewedAnswersResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TopicId: S.optional(S.String), + TopicArn: S.optional(S.String), + Answers: S.optional(TopicReviewedAnswers), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "ListTopicReviewedAnswersResponse", +}) as any as S.Schema; export interface ListTopicsRequest { AwsAccountId: string; NextToken?: string; @@ -28100,10 +27756,7 @@ export interface CapacityBytesRangeFilter { maxBytes?: number; } export const CapacityBytesRangeFilter = /*@__PURE__*/ S.suspend(() => - S.Struct({ - minBytes: S.optional(S.Number), - maxBytes: S.optional(S.Number), - }), + S.Struct({ minBytes: S.optional(S.Number), maxBytes: S.optional(S.Number) }), ).annotate({ identifier: "CapacityBytesRangeFilter", }) as any as S.Schema; @@ -28131,32 +27784,31 @@ export interface ListUsersIndexCapacityRequest { maxResults?: number; nextToken?: string; } -export const ListUsersIndexCapacityRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - awsAccountId: S.String.pipe(T.HttpLabel("awsAccountId")), - namespace: S.optional(S.String), - filters: S.optional(UserIndexCapacityFilters), - sortBy: S.optional(UserIndexCapacitySortBy), - sortOrder: S.optional(UserIndexCapacitySortOrder), - maxResults: S.optional(S.Number), - nextToken: S.optional(S.String), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/accounts/{awsAccountId}/quick-index/user-capacity", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListUsersIndexCapacityRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + awsAccountId: S.String.pipe(T.HttpLabel("awsAccountId")), + namespace: S.optional(S.String), + filters: S.optional(UserIndexCapacityFilters), + sortBy: S.optional(UserIndexCapacitySortBy), + sortOrder: S.optional(UserIndexCapacitySortOrder), + maxResults: S.optional(S.Number), + nextToken: S.optional(S.String), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/accounts/{awsAccountId}/quick-index/user-capacity", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListUsersIndexCapacityRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListUsersIndexCapacityRequest", +}) as any as S.Schema; export interface UserIndexCapacity { userArn?: string; userName?: string; @@ -28190,16 +27842,15 @@ export interface ListUsersIndexCapacityResponse { nextToken?: string; requestId?: string; } -export const ListUsersIndexCapacityResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - users: S.optional(UserIndexCapacityList), - nextToken: S.optional(S.String), - requestId: S.optional(S.String), - }), - ).annotate({ - identifier: "ListUsersIndexCapacityResponse", - }) as any as S.Schema; +export const ListUsersIndexCapacityResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + users: S.optional(UserIndexCapacityList), + nextToken: S.optional(S.String), + requestId: S.optional(S.String), + }), +).annotate({ + identifier: "ListUsersIndexCapacityResponse", +}) as any as S.Schema; export interface ListVPCConnectionsRequest { AwsAccountId: string; NextToken?: string; @@ -28405,41 +28056,39 @@ export interface PutDataSetRefreshPropertiesRequest { DataSetId: string; DataSetRefreshProperties: DataSetRefreshProperties; } -export const PutDataSetRefreshPropertiesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - DataSetId: S.String.pipe(T.HttpLabel("DataSetId")), - DataSetRefreshProperties: DataSetRefreshProperties, - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-properties", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const PutDataSetRefreshPropertiesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + DataSetId: S.String.pipe(T.HttpLabel("DataSetId")), + DataSetRefreshProperties: DataSetRefreshProperties, + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-properties", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "PutDataSetRefreshPropertiesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "PutDataSetRefreshPropertiesRequest", +}) as any as S.Schema; export interface PutDataSetRefreshPropertiesResponse { RequestId?: string; Status?: number; } -export const PutDataSetRefreshPropertiesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "PutDataSetRefreshPropertiesResponse", - }) as any as S.Schema; +export const PutDataSetRefreshPropertiesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "PutDataSetRefreshPropertiesResponse", +}) as any as S.Schema; export interface RegisterUserRequest { IdentityType: IdentityType; Email: string; @@ -28565,65 +28214,63 @@ export interface ActionConnectorSearchFilter { Operator: FilterOperator; Value: string; } -export const ActionConnectorSearchFilter = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Name: ActionConnectorSearchFilterNameEnum, - Operator: FilterOperator, - Value: S.String, - }), - ).annotate({ - identifier: "ActionConnectorSearchFilter", - }) as any as S.Schema; -export type ActionConnectorSearchFilterList = ActionConnectorSearchFilter[]; -export const ActionConnectorSearchFilterList = - /*@__PURE__*/ S.Array(ActionConnectorSearchFilter); -export interface SearchActionConnectorsRequest { - AwsAccountId: string; - MaxResults?: number; +export const ActionConnectorSearchFilter = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Name: ActionConnectorSearchFilterNameEnum, + Operator: FilterOperator, + Value: S.String, + }), +).annotate({ + identifier: "ActionConnectorSearchFilter", +}) as any as S.Schema; +export type ActionConnectorSearchFilterList = ActionConnectorSearchFilter[]; +export const ActionConnectorSearchFilterList = /*@__PURE__*/ S.Array( + ActionConnectorSearchFilter, +); +export interface SearchActionConnectorsRequest { + AwsAccountId: string; + MaxResults?: number; NextToken?: string; Filters: ActionConnectorSearchFilter[]; } -export const SearchActionConnectorsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("max-results")), - NextToken: S.optional(S.String).pipe(T.HttpQuery("next-token")), - Filters: ActionConnectorSearchFilterList, - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/accounts/{AwsAccountId}/search/action-connectors", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const SearchActionConnectorsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("max-results")), + NextToken: S.optional(S.String).pipe(T.HttpQuery("next-token")), + Filters: ActionConnectorSearchFilterList, + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/accounts/{AwsAccountId}/search/action-connectors", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "SearchActionConnectorsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "SearchActionConnectorsRequest", +}) as any as S.Schema; export interface SearchActionConnectorsResponse { NextToken?: string; RequestId?: string; Status?: number; ActionConnectorSummaries?: ActionConnectorSummary[]; } -export const SearchActionConnectorsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - NextToken: S.optional(S.String), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - ActionConnectorSummaries: S.optional(ActionConnectorSummaryList), - }), - ).annotate({ - identifier: "SearchActionConnectorsResponse", - }) as any as S.Schema; +export const SearchActionConnectorsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + NextToken: S.optional(S.String), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + ActionConnectorSummaries: S.optional(ActionConnectorSummaryList), + }), +).annotate({ + identifier: "SearchActionConnectorsResponse", +}) as any as S.Schema; export type AgentOwnershipFilterAttribute = | "DIRECT_QUICKSIGHT_OWNER" | "DIRECT_QUICKSIGHT_VIEWER_OR_OWNER" @@ -29263,47 +28910,45 @@ export interface SearchKnowledgeBasesRequest { Filters?: KnowledgeBaseSearchFilter[]; SortBy?: KnowledgeBaseSortBy; } -export const SearchKnowledgeBasesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - NextToken: S.optional(S.String), - MaxResults: S.optional(S.Number), - Filters: S.optional(KnowledgeBaseSearchFilters), - SortBy: S.optional(KnowledgeBaseSortBy), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/v1/accounts/{AwsAccountId}/search/knowledge-bases", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const SearchKnowledgeBasesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + NextToken: S.optional(S.String), + MaxResults: S.optional(S.Number), + Filters: S.optional(KnowledgeBaseSearchFilters), + SortBy: S.optional(KnowledgeBaseSortBy), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/v1/accounts/{AwsAccountId}/search/knowledge-bases", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "SearchKnowledgeBasesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "SearchKnowledgeBasesRequest", +}) as any as S.Schema; export interface SearchKnowledgeBasesResponse { KnowledgeBaseSummaries: KnowledgeBaseSummary[]; NextToken?: string; RequestId?: string; Status?: number; } -export const SearchKnowledgeBasesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - KnowledgeBaseSummaries: KnowledgeBaseSummaries, - NextToken: S.optional(S.String), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "SearchKnowledgeBasesResponse", - }) as any as S.Schema; +export const SearchKnowledgeBasesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + KnowledgeBaseSummaries: KnowledgeBaseSummaries, + NextToken: S.optional(S.String), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "SearchKnowledgeBasesResponse", +}) as any as S.Schema; export type SpaceQuickSightSearchFilterName = | "SPACE_ID" | "SPACE_NAME" @@ -29326,16 +28971,15 @@ export interface SpaceQuicksightSearchFilter { operator: SpaceSearchOperator; value: string; } -export const SpaceQuicksightSearchFilter = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: SpaceQuickSightSearchFilterName, - operator: SpaceSearchOperator, - value: S.String, - }), - ).annotate({ - identifier: "SpaceQuicksightSearchFilter", - }) as any as S.Schema; +export const SpaceQuicksightSearchFilter = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: SpaceQuickSightSearchFilterName, + operator: SpaceSearchOperator, + value: S.String, + }), +).annotate({ + identifier: "SpaceQuicksightSearchFilter", +}) as any as S.Schema; export type SpaceQuicksightSearchFilters = SpaceQuicksightSearchFilter[]; export const SpaceQuicksightSearchFilters = /*@__PURE__*/ S.Array( SpaceQuicksightSearchFilter, @@ -29468,55 +29112,53 @@ export interface StartAssetBundleExportJobRequest { IncludeFolderMemberships?: boolean; IncludeFolderMembers?: IncludeFolderMembers; } -export const StartAssetBundleExportJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - AssetBundleExportJobId: S.String, - ResourceArns: AssetBundleResourceArns, - IncludeAllDependencies: S.optional(S.Boolean), - ExportFormat: AssetBundleExportFormat, - CloudFormationOverridePropertyConfiguration: S.optional( - AssetBundleCloudFormationOverridePropertyConfiguration, - ), - IncludePermissions: S.optional(S.Boolean), - IncludeTags: S.optional(S.Boolean), - ValidationStrategy: S.optional(AssetBundleExportJobValidationStrategy), - IncludeFolderMemberships: S.optional(S.Boolean), - IncludeFolderMembers: S.optional(IncludeFolderMembers), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/accounts/{AwsAccountId}/asset-bundle-export-jobs/export", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const StartAssetBundleExportJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + AssetBundleExportJobId: S.String, + ResourceArns: AssetBundleResourceArns, + IncludeAllDependencies: S.optional(S.Boolean), + ExportFormat: AssetBundleExportFormat, + CloudFormationOverridePropertyConfiguration: S.optional( + AssetBundleCloudFormationOverridePropertyConfiguration, + ), + IncludePermissions: S.optional(S.Boolean), + IncludeTags: S.optional(S.Boolean), + ValidationStrategy: S.optional(AssetBundleExportJobValidationStrategy), + IncludeFolderMemberships: S.optional(S.Boolean), + IncludeFolderMembers: S.optional(IncludeFolderMembers), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/accounts/{AwsAccountId}/asset-bundle-export-jobs/export", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "StartAssetBundleExportJobRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "StartAssetBundleExportJobRequest", +}) as any as S.Schema; export interface StartAssetBundleExportJobResponse { Arn?: string; AssetBundleExportJobId?: string; RequestId?: string; Status?: number; } -export const StartAssetBundleExportJobResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Arn: S.optional(S.String), - AssetBundleExportJobId: S.optional(S.String), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "StartAssetBundleExportJobResponse", - }) as any as S.Schema; +export const StartAssetBundleExportJobResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Arn: S.optional(S.String), + AssetBundleExportJobId: S.optional(S.String), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "StartAssetBundleExportJobResponse", +}) as any as S.Schema; export interface AssetBundleImportSource { Body?: Uint8Array | redacted.Redacted; S3Uri?: string; @@ -29536,52 +29178,50 @@ export interface StartAssetBundleImportJobRequest { OverrideTags?: AssetBundleImportJobOverrideTags; OverrideValidationStrategy?: AssetBundleImportJobOverrideValidationStrategy; } -export const StartAssetBundleImportJobRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - AssetBundleImportJobId: S.String, - AssetBundleImportSource: AssetBundleImportSource, - OverrideParameters: S.optional(AssetBundleImportJobOverrideParameters), - FailureAction: S.optional(AssetBundleImportFailureAction), - OverridePermissions: S.optional(AssetBundleImportJobOverridePermissions), - OverrideTags: S.optional(AssetBundleImportJobOverrideTags), - OverrideValidationStrategy: S.optional( - AssetBundleImportJobOverrideValidationStrategy, - ), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/accounts/{AwsAccountId}/asset-bundle-import-jobs/import", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const StartAssetBundleImportJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + AssetBundleImportJobId: S.String, + AssetBundleImportSource: AssetBundleImportSource, + OverrideParameters: S.optional(AssetBundleImportJobOverrideParameters), + FailureAction: S.optional(AssetBundleImportFailureAction), + OverridePermissions: S.optional(AssetBundleImportJobOverridePermissions), + OverrideTags: S.optional(AssetBundleImportJobOverrideTags), + OverrideValidationStrategy: S.optional( + AssetBundleImportJobOverrideValidationStrategy, ), - ).annotate({ - identifier: "StartAssetBundleImportJobRequest", - }) as any as S.Schema; + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/accounts/{AwsAccountId}/asset-bundle-import-jobs/import", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "StartAssetBundleImportJobRequest", +}) as any as S.Schema; export interface StartAssetBundleImportJobResponse { Arn?: string; AssetBundleImportJobId?: string; RequestId?: string; Status?: number; } -export const StartAssetBundleImportJobResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Arn: S.optional(S.String), - AssetBundleImportJobId: S.optional(S.String), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "StartAssetBundleImportJobResponse", - }) as any as S.Schema; +export const StartAssetBundleImportJobResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Arn: S.optional(S.String), + AssetBundleImportJobId: S.optional(S.String), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "StartAssetBundleImportJobResponse", +}) as any as S.Schema; export interface StartAutomationJobRequest { AwsAccountId: string; AutomationGroupId: string; @@ -29653,19 +29293,61 @@ export interface StartDashboardSnapshotJobRequest { UserConfiguration?: SnapshotUserConfiguration; SnapshotConfiguration: SnapshotConfiguration; } -export const StartDashboardSnapshotJobRequest = - /*@__PURE__*/ S.suspend(() => +export const StartDashboardSnapshotJobRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + DashboardId: S.String.pipe(T.HttpLabel("DashboardId")), + SnapshotJobId: S.String, + UserConfiguration: S.optional(SnapshotUserConfiguration), + SnapshotConfiguration: SnapshotConfiguration, + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/accounts/{AwsAccountId}/dashboards/{DashboardId}/snapshot-jobs", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "StartDashboardSnapshotJobRequest", +}) as any as S.Schema; +export interface StartDashboardSnapshotJobResponse { + Arn?: string; + SnapshotJobId?: string; + RequestId?: string; + Status?: number; +} +export const StartDashboardSnapshotJobResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Arn: S.optional(S.String), + SnapshotJobId: S.optional(S.String), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "StartDashboardSnapshotJobResponse", +}) as any as S.Schema; +export interface StartDashboardSnapshotJobScheduleRequest { + AwsAccountId: string; + DashboardId: string; + ScheduleId: string; +} +export const StartDashboardSnapshotJobScheduleRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), DashboardId: S.String.pipe(T.HttpLabel("DashboardId")), - SnapshotJobId: S.String, - UserConfiguration: S.optional(SnapshotUserConfiguration), - SnapshotConfiguration: SnapshotConfiguration, + ScheduleId: S.String.pipe(T.HttpLabel("ScheduleId")), }).pipe( T.all( T.Http({ method: "POST", - uri: "/accounts/{AwsAccountId}/dashboards/{DashboardId}/snapshot-jobs", + uri: "/accounts/{AwsAccountId}/dashboards/{DashboardId}/schedules/{ScheduleId}", }), svc, auth, @@ -29674,58 +29356,14 @@ export const StartDashboardSnapshotJobRequest = rules, ), ), - ).annotate({ - identifier: "StartDashboardSnapshotJobRequest", - }) as any as S.Schema; -export interface StartDashboardSnapshotJobResponse { - Arn?: string; - SnapshotJobId?: string; +).annotate({ + identifier: "StartDashboardSnapshotJobScheduleRequest", +}) as any as S.Schema; +export interface StartDashboardSnapshotJobScheduleResponse { RequestId?: string; Status?: number; } -export const StartDashboardSnapshotJobResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Arn: S.optional(S.String), - SnapshotJobId: S.optional(S.String), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "StartDashboardSnapshotJobResponse", - }) as any as S.Schema; -export interface StartDashboardSnapshotJobScheduleRequest { - AwsAccountId: string; - DashboardId: string; - ScheduleId: string; -} -export const StartDashboardSnapshotJobScheduleRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - DashboardId: S.String.pipe(T.HttpLabel("DashboardId")), - ScheduleId: S.String.pipe(T.HttpLabel("ScheduleId")), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/accounts/{AwsAccountId}/dashboards/{DashboardId}/schedules/{ScheduleId}", - }), - svc, - auth, - proto, - ver, - rules, - ), - ), - ).annotate({ - identifier: "StartDashboardSnapshotJobScheduleRequest", - }) as any as S.Schema; -export interface StartDashboardSnapshotJobScheduleResponse { - RequestId?: string; - Status?: number; -} -export const StartDashboardSnapshotJobScheduleResponse = +export const StartDashboardSnapshotJobScheduleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ RequestId: S.optional(S.String), @@ -29807,28 +29445,24 @@ export interface UpdateAccountCustomizationRequest { Namespace?: string; AccountCustomization: AccountCustomization; } -export const UpdateAccountCustomizationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - Namespace: S.optional(S.String).pipe(T.HttpQuery("namespace")), - AccountCustomization: AccountCustomization, - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/accounts/{AwsAccountId}/customizations", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateAccountCustomizationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + Namespace: S.optional(S.String).pipe(T.HttpQuery("namespace")), + AccountCustomization: AccountCustomization, + }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/accounts/{AwsAccountId}/customizations" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateAccountCustomizationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateAccountCustomizationRequest", +}) as any as S.Schema; export interface UpdateAccountCustomizationResponse { Arn?: string; AwsAccountId?: string; @@ -29837,25 +29471,24 @@ export interface UpdateAccountCustomizationResponse { RequestId?: string; Status?: number; } -export const UpdateAccountCustomizationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Arn: S.optional(S.String), - AwsAccountId: S.optional(S.String), - Namespace: S.optional(S.String), - AccountCustomization: S.optional(AccountCustomization), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "UpdateAccountCustomizationResponse", - }) as any as S.Schema; +export const UpdateAccountCustomizationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Arn: S.optional(S.String), + AwsAccountId: S.optional(S.String), + Namespace: S.optional(S.String), + AccountCustomization: S.optional(AccountCustomization), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "UpdateAccountCustomizationResponse", +}) as any as S.Schema; export interface UpdateAccountCustomPermissionRequest { CustomPermissionsName: string; AwsAccountId: string; } -export const UpdateAccountCustomPermissionRequest = - /*@__PURE__*/ S.suspend(() => +export const UpdateAccountCustomPermissionRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ CustomPermissionsName: S.String, AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), @@ -29872,58 +29505,56 @@ export const UpdateAccountCustomPermissionRequest = rules, ), ), - ).annotate({ - identifier: "UpdateAccountCustomPermissionRequest", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateAccountCustomPermissionRequest", +}) as any as S.Schema; export interface UpdateAccountCustomPermissionResponse { RequestId?: string; Status?: number; } -export const UpdateAccountCustomPermissionResponse = - /*@__PURE__*/ S.suspend(() => +export const UpdateAccountCustomPermissionResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ RequestId: S.optional(S.String), Status: S.optional(S.Number) }), - ).annotate({ - identifier: "UpdateAccountCustomPermissionResponse", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateAccountCustomPermissionResponse", +}) as any as S.Schema; export interface UpdateAccountSettingsRequest { AwsAccountId: string; DefaultNamespace: string; NotificationEmail?: string; TerminationProtectionEnabled?: boolean; } -export const UpdateAccountSettingsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - DefaultNamespace: S.String, - NotificationEmail: S.optional(S.String), - TerminationProtectionEnabled: S.optional(S.Boolean), - }).pipe( - T.all( - T.Http({ method: "PUT", uri: "/accounts/{AwsAccountId}/settings" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateAccountSettingsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + DefaultNamespace: S.String, + NotificationEmail: S.optional(S.String), + TerminationProtectionEnabled: S.optional(S.Boolean), + }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/accounts/{AwsAccountId}/settings" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateAccountSettingsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateAccountSettingsRequest", +}) as any as S.Schema; export interface UpdateAccountSettingsResponse { RequestId?: string; Status?: number; } -export const UpdateAccountSettingsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "UpdateAccountSettingsResponse", - }) as any as S.Schema; +export const UpdateAccountSettingsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "UpdateAccountSettingsResponse", +}) as any as S.Schema; export interface UpdateActionConnectorRequest { AwsAccountId: string; ActionConnectorId: string; @@ -29932,31 +29563,30 @@ export interface UpdateActionConnectorRequest { Description?: string | redacted.Redacted; VpcConnectionArn?: string; } -export const UpdateActionConnectorRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - ActionConnectorId: S.String.pipe(T.HttpLabel("ActionConnectorId")), - Name: SensitiveString, - AuthenticationConfig: AuthConfig, - Description: S.optional(SensitiveString), - VpcConnectionArn: S.optional(S.String), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/accounts/{AwsAccountId}/action-connectors/{ActionConnectorId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateActionConnectorRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + ActionConnectorId: S.String.pipe(T.HttpLabel("ActionConnectorId")), + Name: SensitiveString, + AuthenticationConfig: AuthConfig, + Description: S.optional(SensitiveString), + VpcConnectionArn: S.optional(S.String), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/accounts/{AwsAccountId}/action-connectors/{ActionConnectorId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateActionConnectorRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateActionConnectorRequest", +}) as any as S.Schema; export interface UpdateActionConnectorResponse { Arn?: string; ActionConnectorId?: string; @@ -29964,26 +29594,25 @@ export interface UpdateActionConnectorResponse { UpdateStatus?: ResourceStatus; Status?: number; } -export const UpdateActionConnectorResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Arn: S.optional(S.String), - ActionConnectorId: S.optional(S.String), - RequestId: S.optional(S.String), - UpdateStatus: S.optional(ResourceStatus), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "UpdateActionConnectorResponse", - }) as any as S.Schema; +export const UpdateActionConnectorResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Arn: S.optional(S.String), + ActionConnectorId: S.optional(S.String), + RequestId: S.optional(S.String), + UpdateStatus: S.optional(ResourceStatus), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "UpdateActionConnectorResponse", +}) as any as S.Schema; export interface UpdateActionConnectorPermissionsRequest { AwsAccountId: string; ActionConnectorId: string; GrantPermissions?: ResourcePermission[]; RevokePermissions?: ResourcePermission[]; } -export const UpdateActionConnectorPermissionsRequest = - /*@__PURE__*/ S.suspend(() => +export const UpdateActionConnectorPermissionsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), ActionConnectorId: S.String.pipe(T.HttpLabel("ActionConnectorId")), @@ -30002,9 +29631,9 @@ export const UpdateActionConnectorPermissionsRequest = rules, ), ), - ).annotate({ - identifier: "UpdateActionConnectorPermissionsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateActionConnectorPermissionsRequest", +}) as any as S.Schema; export interface UpdateActionConnectorPermissionsResponse { Arn?: string; ActionConnectorId?: string; @@ -30012,8 +29641,8 @@ export interface UpdateActionConnectorPermissionsResponse { Status?: number; Permissions?: ResourcePermission[]; } -export const UpdateActionConnectorPermissionsResponse = - /*@__PURE__*/ S.suspend(() => +export const UpdateActionConnectorPermissionsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ Arn: S.optional(S.String), ActionConnectorId: S.optional(S.String), @@ -30021,15 +29650,17 @@ export const UpdateActionConnectorPermissionsResponse = Status: S.optional(S.Number).pipe(T.HttpResponseCode()), Permissions: S.optional(ResourcePermissionList), }), - ).annotate({ - identifier: "UpdateActionConnectorPermissionsResponse", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateActionConnectorPermissionsResponse", +}) as any as S.Schema; export type UpdateAgentRequestSpacesToAddList = string[]; -export const UpdateAgentRequestSpacesToAddList = - /*@__PURE__*/ S.Array(S.String); +export const UpdateAgentRequestSpacesToAddList = /*@__PURE__*/ S.Array( + S.String, +); export type UpdateAgentRequestSpacesToRemoveList = string[]; -export const UpdateAgentRequestSpacesToRemoveList = - /*@__PURE__*/ S.Array(S.String); +export const UpdateAgentRequestSpacesToRemoveList = /*@__PURE__*/ S.Array( + S.String, +); export type UpdateAgentRequestActionConnectorsToAddList = string[]; export const UpdateAgentRequestActionConnectorsToAddList = /*@__PURE__*/ S.Array(S.String); @@ -30099,8 +29730,9 @@ export const FailedToUpdateAssociation = /*@__PURE__*/ S.suspend(() => identifier: "FailedToUpdateAssociation", }) as any as S.Schema; export type FailedToUpdateAssociationList = FailedToUpdateAssociation[]; -export const FailedToUpdateAssociationList = - /*@__PURE__*/ S.Array(FailedToUpdateAssociation); +export const FailedToUpdateAssociationList = /*@__PURE__*/ S.Array( + FailedToUpdateAssociation, +); export interface UpdateAgentResponse { Arn: string; AgentId: string; @@ -30139,50 +29771,48 @@ export interface UpdateAgentPermissionsRequest { GrantPermissions?: ResourcePermission[]; RevokePermissions?: ResourcePermission[]; } -export const UpdateAgentPermissionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AgentId: S.String.pipe(T.HttpLabel("AgentId")), - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - GrantPermissions: S.optional( - UpdateAgentPermissionsRequestGrantPermissionsList, - ), - RevokePermissions: S.optional( - UpdateAgentPermissionsRequestRevokePermissionsList, - ), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/accounts/{AwsAccountId}/agents/{AgentId}/permissions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateAgentPermissionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AgentId: S.String.pipe(T.HttpLabel("AgentId")), + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + GrantPermissions: S.optional( + UpdateAgentPermissionsRequestGrantPermissionsList, ), - ).annotate({ - identifier: "UpdateAgentPermissionsRequest", - }) as any as S.Schema; + RevokePermissions: S.optional( + UpdateAgentPermissionsRequestRevokePermissionsList, + ), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/accounts/{AwsAccountId}/agents/{AgentId}/permissions", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "UpdateAgentPermissionsRequest", +}) as any as S.Schema; export interface UpdateAgentPermissionsResponse { Arn: string; AgentId: string; RequestId?: string; Permissions?: ResourcePermission[]; } -export const UpdateAgentPermissionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Arn: S.String, - AgentId: S.String, - RequestId: S.optional(S.String), - Permissions: S.optional(ResourcePermissionList), - }), - ).annotate({ - identifier: "UpdateAgentPermissionsResponse", - }) as any as S.Schema; +export const UpdateAgentPermissionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Arn: S.String, + AgentId: S.String, + RequestId: S.optional(S.String), + Permissions: S.optional(ResourcePermissionList), + }), +).annotate({ + identifier: "UpdateAgentPermissionsResponse", +}) as any as S.Schema; export interface UpdateAnalysisRequest { AwsAccountId: string; AnalysisId: string; @@ -30243,48 +29873,46 @@ export interface UpdateAnalysisPermissionsRequest { GrantPermissions?: ResourcePermission[]; RevokePermissions?: ResourcePermission[]; } -export const UpdateAnalysisPermissionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - AnalysisId: S.String.pipe(T.HttpLabel("AnalysisId")), - GrantPermissions: S.optional(UpdateResourcePermissionList), - RevokePermissions: S.optional(UpdateResourcePermissionList), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/accounts/{AwsAccountId}/analyses/{AnalysisId}/permissions", - }), - svc, - auth, - proto, - ver, - rules, - ), - ), - ).annotate({ - identifier: "UpdateAnalysisPermissionsRequest", - }) as any as S.Schema; -export interface UpdateAnalysisPermissionsResponse { - AnalysisArn?: string; - AnalysisId?: string; - Permissions?: ResourcePermission[]; +export const UpdateAnalysisPermissionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + AnalysisId: S.String.pipe(T.HttpLabel("AnalysisId")), + GrantPermissions: S.optional(UpdateResourcePermissionList), + RevokePermissions: S.optional(UpdateResourcePermissionList), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/accounts/{AwsAccountId}/analyses/{AnalysisId}/permissions", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "UpdateAnalysisPermissionsRequest", +}) as any as S.Schema; +export interface UpdateAnalysisPermissionsResponse { + AnalysisArn?: string; + AnalysisId?: string; + Permissions?: ResourcePermission[]; RequestId?: string; Status?: number; } -export const UpdateAnalysisPermissionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AnalysisArn: S.optional(S.String), - AnalysisId: S.optional(S.String), - Permissions: S.optional(UpdateResourcePermissionList), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "UpdateAnalysisPermissionsResponse", - }) as any as S.Schema; +export const UpdateAnalysisPermissionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AnalysisArn: S.optional(S.String), + AnalysisId: S.optional(S.String), + Permissions: S.optional(UpdateResourcePermissionList), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "UpdateAnalysisPermissionsResponse", +}) as any as S.Schema; export interface UpdateApplicationWithTokenExchangeGrantRequest { AwsAccountId: string; Namespace: string; @@ -30367,124 +29995,113 @@ export interface UpdateBrandAssignmentRequest { AwsAccountId: string; BrandArn: string; } -export const UpdateBrandAssignmentRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - BrandArn: S.String, - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/accounts/{AwsAccountId}/brandassignments", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateBrandAssignmentRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + BrandArn: S.String, + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/accounts/{AwsAccountId}/brandassignments", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateBrandAssignmentRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateBrandAssignmentRequest", +}) as any as S.Schema; export interface UpdateBrandAssignmentResponse { RequestId?: string; BrandArn?: string; } -export const UpdateBrandAssignmentResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RequestId: S.optional(S.String), - BrandArn: S.optional(S.String), - }), - ).annotate({ - identifier: "UpdateBrandAssignmentResponse", - }) as any as S.Schema; +export const UpdateBrandAssignmentResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ RequestId: S.optional(S.String), BrandArn: S.optional(S.String) }), +).annotate({ + identifier: "UpdateBrandAssignmentResponse", +}) as any as S.Schema; export interface UpdateBrandPublishedVersionRequest { AwsAccountId: string; BrandId: string; VersionId: string; } -export const UpdateBrandPublishedVersionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - BrandId: S.String.pipe(T.HttpLabel("BrandId")), - VersionId: S.String, - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/accounts/{AwsAccountId}/brands/{BrandId}/publishedversion", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateBrandPublishedVersionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + BrandId: S.String.pipe(T.HttpLabel("BrandId")), + VersionId: S.String, + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/accounts/{AwsAccountId}/brands/{BrandId}/publishedversion", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateBrandPublishedVersionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateBrandPublishedVersionRequest", +}) as any as S.Schema; export interface UpdateBrandPublishedVersionResponse { RequestId?: string; VersionId?: string; } -export const UpdateBrandPublishedVersionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RequestId: S.optional(S.String), - VersionId: S.optional(S.String), - }), - ).annotate({ - identifier: "UpdateBrandPublishedVersionResponse", - }) as any as S.Schema; +export const UpdateBrandPublishedVersionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RequestId: S.optional(S.String), + VersionId: S.optional(S.String), + }), +).annotate({ + identifier: "UpdateBrandPublishedVersionResponse", +}) as any as S.Schema; export interface UpdateCustomPermissionsRequest { AwsAccountId: string; CustomPermissionsName: string; Capabilities?: Capabilities; } -export const UpdateCustomPermissionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - CustomPermissionsName: S.String.pipe( - T.HttpLabel("CustomPermissionsName"), - ), - Capabilities: S.optional(Capabilities), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/accounts/{AwsAccountId}/custom-permissions/{CustomPermissionsName}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateCustomPermissionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + CustomPermissionsName: S.String.pipe(T.HttpLabel("CustomPermissionsName")), + Capabilities: S.optional(Capabilities), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/accounts/{AwsAccountId}/custom-permissions/{CustomPermissionsName}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateCustomPermissionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateCustomPermissionsRequest", +}) as any as S.Schema; export interface UpdateCustomPermissionsResponse { Status?: number; Arn?: string; RequestId?: string; } -export const UpdateCustomPermissionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Status: S.optional(S.Number), - Arn: S.optional(S.String), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "UpdateCustomPermissionsResponse", - }) as any as S.Schema; +export const UpdateCustomPermissionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Status: S.optional(S.Number), + Arn: S.optional(S.String), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "UpdateCustomPermissionsResponse", +}) as any as S.Schema; export interface UpdateDashboardRequest { AwsAccountId: string; DashboardId: string; @@ -30550,45 +30167,43 @@ export interface UpdateDashboardLinksRequest { DashboardId: string; LinkEntities: string[]; } -export const UpdateDashboardLinksRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - DashboardId: S.String.pipe(T.HttpLabel("DashboardId")), - LinkEntities: LinkEntityArnList, - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/accounts/{AwsAccountId}/dashboards/{DashboardId}/linked-entities", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateDashboardLinksRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + DashboardId: S.String.pipe(T.HttpLabel("DashboardId")), + LinkEntities: LinkEntityArnList, + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/accounts/{AwsAccountId}/dashboards/{DashboardId}/linked-entities", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateDashboardLinksRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateDashboardLinksRequest", +}) as any as S.Schema; export interface UpdateDashboardLinksResponse { RequestId?: string; Status?: number; DashboardArn?: string; LinkEntities?: string[]; } -export const UpdateDashboardLinksResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - DashboardArn: S.optional(S.String), - LinkEntities: S.optional(LinkEntityArnList), - }), - ).annotate({ - identifier: "UpdateDashboardLinksResponse", - }) as any as S.Schema; +export const UpdateDashboardLinksResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + DashboardArn: S.optional(S.String), + LinkEntities: S.optional(LinkEntityArnList), + }), +).annotate({ + identifier: "UpdateDashboardLinksResponse", +}) as any as S.Schema; export type UpdateLinkPermissionList = ResourcePermission[]; export const UpdateLinkPermissionList = /*@__PURE__*/ S.Array(ResourcePermission); @@ -30600,31 +30215,30 @@ export interface UpdateDashboardPermissionsRequest { GrantLinkPermissions?: ResourcePermission[]; RevokeLinkPermissions?: ResourcePermission[]; } -export const UpdateDashboardPermissionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - DashboardId: S.String.pipe(T.HttpLabel("DashboardId")), - GrantPermissions: S.optional(UpdateResourcePermissionList), - RevokePermissions: S.optional(UpdateResourcePermissionList), - GrantLinkPermissions: S.optional(UpdateLinkPermissionList), - RevokeLinkPermissions: S.optional(UpdateLinkPermissionList), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/accounts/{AwsAccountId}/dashboards/{DashboardId}/permissions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateDashboardPermissionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + DashboardId: S.String.pipe(T.HttpLabel("DashboardId")), + GrantPermissions: S.optional(UpdateResourcePermissionList), + RevokePermissions: S.optional(UpdateResourcePermissionList), + GrantLinkPermissions: S.optional(UpdateLinkPermissionList), + RevokeLinkPermissions: S.optional(UpdateLinkPermissionList), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/accounts/{AwsAccountId}/dashboards/{DashboardId}/permissions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateDashboardPermissionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateDashboardPermissionsRequest", +}) as any as S.Schema; export interface UpdateDashboardPermissionsResponse { DashboardArn?: string; DashboardId?: string; @@ -30633,26 +30247,25 @@ export interface UpdateDashboardPermissionsResponse { Status?: number; LinkSharingConfiguration?: LinkSharingConfiguration; } -export const UpdateDashboardPermissionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DashboardArn: S.optional(S.String), - DashboardId: S.optional(S.String), - Permissions: S.optional(UpdateResourcePermissionList), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - LinkSharingConfiguration: S.optional(LinkSharingConfiguration), - }), - ).annotate({ - identifier: "UpdateDashboardPermissionsResponse", - }) as any as S.Schema; +export const UpdateDashboardPermissionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DashboardArn: S.optional(S.String), + DashboardId: S.optional(S.String), + Permissions: S.optional(UpdateResourcePermissionList), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + LinkSharingConfiguration: S.optional(LinkSharingConfiguration), + }), +).annotate({ + identifier: "UpdateDashboardPermissionsResponse", +}) as any as S.Schema; export interface UpdateDashboardPublishedVersionRequest { AwsAccountId: string; DashboardId: string; VersionNumber: number; } -export const UpdateDashboardPublishedVersionRequest = - /*@__PURE__*/ S.suspend(() => +export const UpdateDashboardPublishedVersionRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), DashboardId: S.String.pipe(T.HttpLabel("DashboardId")), @@ -30670,32 +30283,32 @@ export const UpdateDashboardPublishedVersionRequest = rules, ), ), - ).annotate({ - identifier: "UpdateDashboardPublishedVersionRequest", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateDashboardPublishedVersionRequest", +}) as any as S.Schema; export interface UpdateDashboardPublishedVersionResponse { DashboardId?: string; DashboardArn?: string; Status?: number; RequestId?: string; } -export const UpdateDashboardPublishedVersionResponse = - /*@__PURE__*/ S.suspend(() => +export const UpdateDashboardPublishedVersionResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ DashboardId: S.optional(S.String), DashboardArn: S.optional(S.String), Status: S.optional(S.Number).pipe(T.HttpResponseCode()), RequestId: S.optional(S.String), }), - ).annotate({ - identifier: "UpdateDashboardPublishedVersionResponse", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateDashboardPublishedVersionResponse", +}) as any as S.Schema; export interface UpdateDashboardsQAConfigurationRequest { AwsAccountId: string; DashboardsQAStatus: DashboardsQAStatus; } -export const UpdateDashboardsQAConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const UpdateDashboardsQAConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), DashboardsQAStatus: DashboardsQAStatus, @@ -30712,24 +30325,24 @@ export const UpdateDashboardsQAConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "UpdateDashboardsQAConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateDashboardsQAConfigurationRequest", +}) as any as S.Schema; export interface UpdateDashboardsQAConfigurationResponse { DashboardsQAStatus?: DashboardsQAStatus; RequestId?: string; Status?: number; } -export const UpdateDashboardsQAConfigurationResponse = - /*@__PURE__*/ S.suspend(() => +export const UpdateDashboardsQAConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ DashboardsQAStatus: S.optional(DashboardsQAStatus), RequestId: S.optional(S.String), Status: S.optional(S.Number).pipe(T.HttpResponseCode()), }), - ).annotate({ - identifier: "UpdateDashboardsQAConfigurationResponse", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateDashboardsQAConfigurationResponse", +}) as any as S.Schema; export interface UpdateDataSetRequest { AwsAccountId: string; DataSetId: string; @@ -30810,46 +30423,44 @@ export interface UpdateDataSetPermissionsRequest { GrantPermissions?: ResourcePermission[]; RevokePermissions?: ResourcePermission[]; } -export const UpdateDataSetPermissionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - DataSetId: S.String.pipe(T.HttpLabel("DataSetId")), - GrantPermissions: S.optional(ResourcePermissionList), - RevokePermissions: S.optional(ResourcePermissionList), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/accounts/{AwsAccountId}/data-sets/{DataSetId}/permissions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateDataSetPermissionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + DataSetId: S.String.pipe(T.HttpLabel("DataSetId")), + GrantPermissions: S.optional(ResourcePermissionList), + RevokePermissions: S.optional(ResourcePermissionList), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/accounts/{AwsAccountId}/data-sets/{DataSetId}/permissions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateDataSetPermissionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateDataSetPermissionsRequest", +}) as any as S.Schema; export interface UpdateDataSetPermissionsResponse { DataSetArn?: string; DataSetId?: string; RequestId?: string; Status?: number; } -export const UpdateDataSetPermissionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DataSetArn: S.optional(S.String), - DataSetId: S.optional(S.String), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "UpdateDataSetPermissionsResponse", - }) as any as S.Schema; +export const UpdateDataSetPermissionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DataSetArn: S.optional(S.String), + DataSetId: S.optional(S.String), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "UpdateDataSetPermissionsResponse", +}) as any as S.Schema; export interface UpdateDataSourceRequest { AwsAccountId: string; DataSourceId: string; @@ -30908,53 +30519,51 @@ export interface UpdateDataSourcePermissionsRequest { GrantPermissions?: ResourcePermission[]; RevokePermissions?: ResourcePermission[]; } -export const UpdateDataSourcePermissionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - DataSourceId: S.String.pipe(T.HttpLabel("DataSourceId")), - GrantPermissions: S.optional(ResourcePermissionList), - RevokePermissions: S.optional(ResourcePermissionList), - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/accounts/{AwsAccountId}/data-sources/{DataSourceId}/permissions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateDataSourcePermissionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + DataSourceId: S.String.pipe(T.HttpLabel("DataSourceId")), + GrantPermissions: S.optional(ResourcePermissionList), + RevokePermissions: S.optional(ResourcePermissionList), + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/accounts/{AwsAccountId}/data-sources/{DataSourceId}/permissions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateDataSourcePermissionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateDataSourcePermissionsRequest", +}) as any as S.Schema; export interface UpdateDataSourcePermissionsResponse { DataSourceArn?: string; DataSourceId?: string; RequestId?: string; Status?: number; } -export const UpdateDataSourcePermissionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DataSourceArn: S.optional(S.String), - DataSourceId: S.optional(S.String), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "UpdateDataSourcePermissionsResponse", - }) as any as S.Schema; +export const UpdateDataSourcePermissionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DataSourceArn: S.optional(S.String), + DataSourceId: S.optional(S.String), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "UpdateDataSourcePermissionsResponse", +}) as any as S.Schema; export interface UpdateDefaultQBusinessApplicationRequest { AwsAccountId: string; Namespace?: string; ApplicationId: string; } -export const UpdateDefaultQBusinessApplicationRequest = - /*@__PURE__*/ S.suspend(() => +export const UpdateDefaultQBusinessApplicationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), Namespace: S.optional(S.String).pipe(T.HttpQuery("namespace")), @@ -30972,9 +30581,9 @@ export const UpdateDefaultQBusinessApplicationRequest = rules, ), ), - ).annotate({ - identifier: "UpdateDefaultQBusinessApplicationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateDefaultQBusinessApplicationRequest", +}) as any as S.Schema; export interface UpdateDefaultQBusinessApplicationResponse { RequestId?: string; Status?: number; @@ -31078,18 +30687,17 @@ export interface UpdateFlowPermissionsOutput { RequestId: string; FlowId: string; } -export const UpdateFlowPermissionsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - Arn: S.String, - Permissions: PermissionsList, - RequestId: S.String, - FlowId: S.String, - }), - ).annotate({ - identifier: "UpdateFlowPermissionsOutput", - }) as any as S.Schema; +export const UpdateFlowPermissionsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + Arn: S.String, + Permissions: PermissionsList, + RequestId: S.String, + FlowId: S.String, + }), +).annotate({ + identifier: "UpdateFlowPermissionsOutput", +}) as any as S.Schema; export interface UpdateFolderRequest { AwsAccountId: string; FolderId: string; @@ -31138,29 +30746,28 @@ export interface UpdateFolderPermissionsRequest { GrantPermissions?: ResourcePermission[]; RevokePermissions?: ResourcePermission[]; } -export const UpdateFolderPermissionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - FolderId: S.String.pipe(T.HttpLabel("FolderId")), - GrantPermissions: S.optional(ResourcePermissionList), - RevokePermissions: S.optional(ResourcePermissionList), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/accounts/{AwsAccountId}/folders/{FolderId}/permissions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateFolderPermissionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + FolderId: S.String.pipe(T.HttpLabel("FolderId")), + GrantPermissions: S.optional(ResourcePermissionList), + RevokePermissions: S.optional(ResourcePermissionList), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/accounts/{AwsAccountId}/folders/{FolderId}/permissions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateFolderPermissionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateFolderPermissionsRequest", +}) as any as S.Schema; export interface UpdateFolderPermissionsResponse { Status?: number; Arn?: string; @@ -31168,18 +30775,17 @@ export interface UpdateFolderPermissionsResponse { Permissions?: ResourcePermission[]; RequestId?: string; } -export const UpdateFolderPermissionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Status: S.optional(S.Number), - Arn: S.optional(S.String), - FolderId: S.optional(S.String), - Permissions: S.optional(ResourcePermissionList), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "UpdateFolderPermissionsResponse", - }) as any as S.Schema; +export const UpdateFolderPermissionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Status: S.optional(S.Number), + Arn: S.optional(S.String), + FolderId: S.optional(S.String), + Permissions: S.optional(ResourcePermissionList), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "UpdateFolderPermissionsResponse", +}) as any as S.Schema; export interface UpdateGroupRequest { GroupName: string; Description?: string; @@ -31230,31 +30836,30 @@ export interface UpdateIAMPolicyAssignmentRequest { PolicyArn?: string; Identities?: { [key: string]: string[] | undefined }; } -export const UpdateIAMPolicyAssignmentRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - AssignmentName: S.String.pipe(T.HttpLabel("AssignmentName")), - Namespace: S.String.pipe(T.HttpLabel("Namespace")), - AssignmentStatus: S.optional(AssignmentStatus), - PolicyArn: S.optional(S.String), - Identities: S.optional(IdentityMap), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments/{AssignmentName}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateIAMPolicyAssignmentRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + AssignmentName: S.String.pipe(T.HttpLabel("AssignmentName")), + Namespace: S.String.pipe(T.HttpLabel("Namespace")), + AssignmentStatus: S.optional(AssignmentStatus), + PolicyArn: S.optional(S.String), + Identities: S.optional(IdentityMap), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments/{AssignmentName}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateIAMPolicyAssignmentRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateIAMPolicyAssignmentRequest", +}) as any as S.Schema; export interface UpdateIAMPolicyAssignmentResponse { AssignmentName?: string; AssignmentId?: string; @@ -31264,27 +30869,26 @@ export interface UpdateIAMPolicyAssignmentResponse { RequestId?: string; Status?: number; } -export const UpdateIAMPolicyAssignmentResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AssignmentName: S.optional(S.String), - AssignmentId: S.optional(S.String), - PolicyArn: S.optional(S.String), - Identities: S.optional(IdentityMap), - AssignmentStatus: S.optional(AssignmentStatus), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "UpdateIAMPolicyAssignmentResponse", - }) as any as S.Schema; +export const UpdateIAMPolicyAssignmentResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AssignmentName: S.optional(S.String), + AssignmentId: S.optional(S.String), + PolicyArn: S.optional(S.String), + Identities: S.optional(IdentityMap), + AssignmentStatus: S.optional(AssignmentStatus), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "UpdateIAMPolicyAssignmentResponse", +}) as any as S.Schema; export interface UpdateIdentityPropagationConfigRequest { AwsAccountId: string; Service: ServiceType; AuthorizedTargets?: string[]; } -export const UpdateIdentityPropagationConfigRequest = - /*@__PURE__*/ S.suspend(() => +export const UpdateIdentityPropagationConfigRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), Service: ServiceType.pipe(T.HttpLabel("Service")), @@ -31302,22 +30906,22 @@ export const UpdateIdentityPropagationConfigRequest = rules, ), ), - ).annotate({ - identifier: "UpdateIdentityPropagationConfigRequest", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateIdentityPropagationConfigRequest", +}) as any as S.Schema; export interface UpdateIdentityPropagationConfigResponse { RequestId?: string; Status?: number; } -export const UpdateIdentityPropagationConfigResponse = - /*@__PURE__*/ S.suspend(() => +export const UpdateIdentityPropagationConfigResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ RequestId: S.optional(S.String), Status: S.optional(S.Number).pipe(T.HttpResponseCode()), }), - ).annotate({ - identifier: "UpdateIdentityPropagationConfigResponse", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateIdentityPropagationConfigResponse", +}) as any as S.Schema; export interface UpdateIpRestrictionRequest { AwsAccountId: string; IpRestrictionRuleMap?: { [key: string]: string | undefined }; @@ -31355,41 +30959,39 @@ export interface UpdateIpRestrictionResponse { RequestId?: string; Status?: number; } -export const UpdateIpRestrictionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.optional(S.String), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "UpdateIpRestrictionResponse", - }) as any as S.Schema; +export const UpdateIpRestrictionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.optional(S.String), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "UpdateIpRestrictionResponse", +}) as any as S.Schema; export interface UpdateKeyRegistrationRequest { AwsAccountId: string; KeyRegistration: RegisteredCustomerManagedKey[]; } -export const UpdateKeyRegistrationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - KeyRegistration: KeyRegistration, - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/accounts/{AwsAccountId}/key-registration", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateKeyRegistrationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + KeyRegistration: KeyRegistration, + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/accounts/{AwsAccountId}/key-registration", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateKeyRegistrationRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateKeyRegistrationRequest", +}) as any as S.Schema; export interface FailedKeyRegistrationEntry { KeyArn?: string; Message: string; @@ -31414,38 +31016,37 @@ export interface SuccessfulKeyRegistrationEntry { KeyArn: string; StatusCode: number; } -export const SuccessfulKeyRegistrationEntry = - /*@__PURE__*/ S.suspend(() => - S.Struct({ KeyArn: S.String, StatusCode: S.Number }), - ).annotate({ - identifier: "SuccessfulKeyRegistrationEntry", - }) as any as S.Schema; +export const SuccessfulKeyRegistrationEntry = /*@__PURE__*/ S.suspend(() => + S.Struct({ KeyArn: S.String, StatusCode: S.Number }), +).annotate({ + identifier: "SuccessfulKeyRegistrationEntry", +}) as any as S.Schema; export type SuccessfulKeyRegistrationEntries = SuccessfulKeyRegistrationEntry[]; -export const SuccessfulKeyRegistrationEntries = - /*@__PURE__*/ S.Array(SuccessfulKeyRegistrationEntry); +export const SuccessfulKeyRegistrationEntries = /*@__PURE__*/ S.Array( + SuccessfulKeyRegistrationEntry, +); export interface UpdateKeyRegistrationResponse { FailedKeyRegistration?: FailedKeyRegistrationEntry[]; SuccessfulKeyRegistration?: SuccessfulKeyRegistrationEntry[]; RequestId?: string; } -export const UpdateKeyRegistrationResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - FailedKeyRegistration: S.optional(FailedKeyRegistrationEntries), - SuccessfulKeyRegistration: S.optional(SuccessfulKeyRegistrationEntries), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "UpdateKeyRegistrationResponse", - }) as any as S.Schema; +export const UpdateKeyRegistrationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + FailedKeyRegistration: S.optional(FailedKeyRegistrationEntries), + SuccessfulKeyRegistration: S.optional(SuccessfulKeyRegistrationEntries), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "UpdateKeyRegistrationResponse", +}) as any as S.Schema; export interface UpdateKnowledgeBasePermissionsRequest { AwsAccountId: string; KnowledgeBaseId: string; GrantPermissions?: ResourcePermission[]; RevokePermissions?: ResourcePermission[]; } -export const UpdateKnowledgeBasePermissionsRequest = - /*@__PURE__*/ S.suspend(() => +export const UpdateKnowledgeBasePermissionsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), KnowledgeBaseId: S.String.pipe(T.HttpLabel("KnowledgeBaseId")), @@ -31464,9 +31065,9 @@ export const UpdateKnowledgeBasePermissionsRequest = rules, ), ), - ).annotate({ - identifier: "UpdateKnowledgeBasePermissionsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateKnowledgeBasePermissionsRequest", +}) as any as S.Schema; export interface UpdateKnowledgeBasePermissionsResponse { KnowledgeBaseArn: string; KnowledgeBaseId: string; @@ -31474,8 +31075,8 @@ export interface UpdateKnowledgeBasePermissionsResponse { RequestId?: string; Status?: number; } -export const UpdateKnowledgeBasePermissionsResponse = - /*@__PURE__*/ S.suspend(() => +export const UpdateKnowledgeBasePermissionsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ KnowledgeBaseArn: S.String, KnowledgeBaseId: S.String, @@ -31483,9 +31084,9 @@ export const UpdateKnowledgeBasePermissionsResponse = RequestId: S.optional(S.String), Status: S.optional(S.Number).pipe(T.HttpResponseCode()), }), - ).annotate({ - identifier: "UpdateKnowledgeBasePermissionsResponse", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateKnowledgeBasePermissionsResponse", +}) as any as S.Schema; export interface UpdateOAuthClientApplicationRequest { AwsAccountId: string; OAuthClientApplicationId: string; @@ -31498,39 +31099,38 @@ export interface UpdateOAuthClientApplicationRequest { DataSourceType?: DataSourceType; IdentityProviderVpcConnectionProperties?: VpcConnectionProperties; } -export const UpdateOAuthClientApplicationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - OAuthClientApplicationId: S.String.pipe( - T.HttpLabel("OAuthClientApplicationId"), - ), - Name: S.String, - ClientId: S.optional(SensitiveString), - ClientSecret: S.optional(SensitiveString), - OAuthTokenEndpointUrl: S.optional(SensitiveString), - OAuthAuthorizationEndpointUrl: S.optional(SensitiveString), - OAuthScopes: S.optional(S.String), - DataSourceType: S.optional(DataSourceType), - IdentityProviderVpcConnectionProperties: S.optional( - VpcConnectionProperties, - ), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/accounts/{AwsAccountId}/oauth-client-applications/{OAuthClientApplicationId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateOAuthClientApplicationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + OAuthClientApplicationId: S.String.pipe( + T.HttpLabel("OAuthClientApplicationId"), ), - ).annotate({ - identifier: "UpdateOAuthClientApplicationRequest", - }) as any as S.Schema; + Name: S.String, + ClientId: S.optional(SensitiveString), + ClientSecret: S.optional(SensitiveString), + OAuthTokenEndpointUrl: S.optional(SensitiveString), + OAuthAuthorizationEndpointUrl: S.optional(SensitiveString), + OAuthScopes: S.optional(S.String), + DataSourceType: S.optional(DataSourceType), + IdentityProviderVpcConnectionProperties: S.optional( + VpcConnectionProperties, + ), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/accounts/{AwsAccountId}/oauth-client-applications/{OAuthClientApplicationId}", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "UpdateOAuthClientApplicationRequest", +}) as any as S.Schema; export interface UpdateOAuthClientApplicationResponse { Arn?: string; OAuthClientApplicationId?: string; @@ -31538,56 +31138,54 @@ export interface UpdateOAuthClientApplicationResponse { RequestId?: string; Status?: number; } -export const UpdateOAuthClientApplicationResponse = - /*@__PURE__*/ S.suspend(() => +export const UpdateOAuthClientApplicationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ Arn: S.optional(S.String), OAuthClientApplicationId: S.optional(S.String), UpdateStatus: S.optional(ResourceStatus), RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "UpdateOAuthClientApplicationResponse", - }) as any as S.Schema; -export interface UpdatePublicSharingSettingsRequest { - AwsAccountId: string; - PublicSharingEnabled?: boolean; -} -export const UpdatePublicSharingSettingsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - PublicSharingEnabled: S.optional(S.Boolean), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/accounts/{AwsAccountId}/public-sharing-settings", - }), - svc, - auth, - proto, - ver, - rules, - ), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "UpdateOAuthClientApplicationResponse", +}) as any as S.Schema; +export interface UpdatePublicSharingSettingsRequest { + AwsAccountId: string; + PublicSharingEnabled?: boolean; +} +export const UpdatePublicSharingSettingsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + PublicSharingEnabled: S.optional(S.Boolean), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/accounts/{AwsAccountId}/public-sharing-settings", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdatePublicSharingSettingsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdatePublicSharingSettingsRequest", +}) as any as S.Schema; export interface UpdatePublicSharingSettingsResponse { RequestId?: string; Status?: number; } -export const UpdatePublicSharingSettingsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "UpdatePublicSharingSettingsResponse", - }) as any as S.Schema; +export const UpdatePublicSharingSettingsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "UpdatePublicSharingSettingsResponse", +}) as any as S.Schema; export interface UpdateQPersonalizationConfigurationRequest { AwsAccountId: string; PersonalizationMode: PersonalizationMode; @@ -31673,84 +31271,80 @@ export interface UpdateRefreshScheduleRequest { AwsAccountId: string; Schedule: RefreshSchedule; } -export const UpdateRefreshScheduleRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DataSetId: S.String.pipe(T.HttpLabel("DataSetId")), - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - Schedule: RefreshSchedule, - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-schedules", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateRefreshScheduleRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DataSetId: S.String.pipe(T.HttpLabel("DataSetId")), + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + Schedule: RefreshSchedule, + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-schedules", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateRefreshScheduleRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateRefreshScheduleRequest", +}) as any as S.Schema; export interface UpdateRefreshScheduleResponse { Status?: number; RequestId?: string; ScheduleId?: string; Arn?: string; } -export const UpdateRefreshScheduleResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - RequestId: S.optional(S.String), - ScheduleId: S.optional(S.String), - Arn: S.optional(S.String), - }), - ).annotate({ - identifier: "UpdateRefreshScheduleResponse", - }) as any as S.Schema; +export const UpdateRefreshScheduleResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + RequestId: S.optional(S.String), + ScheduleId: S.optional(S.String), + Arn: S.optional(S.String), + }), +).annotate({ + identifier: "UpdateRefreshScheduleResponse", +}) as any as S.Schema; export interface UpdateRoleCustomPermissionRequest { CustomPermissionsName: string; Role: Role; AwsAccountId: string; Namespace: string; } -export const UpdateRoleCustomPermissionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CustomPermissionsName: S.String, - Role: Role.pipe(T.HttpLabel("Role")), - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - Namespace: S.String.pipe(T.HttpLabel("Namespace")), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/custom-permission", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateRoleCustomPermissionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CustomPermissionsName: S.String, + Role: Role.pipe(T.HttpLabel("Role")), + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + Namespace: S.String.pipe(T.HttpLabel("Namespace")), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/custom-permission", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateRoleCustomPermissionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateRoleCustomPermissionRequest", +}) as any as S.Schema; export interface UpdateRoleCustomPermissionResponse { RequestId?: string; Status?: number; } -export const UpdateRoleCustomPermissionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ RequestId: S.optional(S.String), Status: S.optional(S.Number) }), - ).annotate({ - identifier: "UpdateRoleCustomPermissionResponse", - }) as any as S.Schema; +export const UpdateRoleCustomPermissionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ RequestId: S.optional(S.String), Status: S.optional(S.Number) }), +).annotate({ + identifier: "UpdateRoleCustomPermissionResponse", +}) as any as S.Schema; export type SelfUpgradeAdminAction = | "APPROVE" | "DENY" @@ -31804,8 +31398,8 @@ export interface UpdateSelfUpgradeConfigurationRequest { Namespace: string; SelfUpgradeStatus: SelfUpgradeStatus; } -export const UpdateSelfUpgradeConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const UpdateSelfUpgradeConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), Namespace: S.String.pipe(T.HttpLabel("Namespace")), @@ -31823,22 +31417,22 @@ export const UpdateSelfUpgradeConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "UpdateSelfUpgradeConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateSelfUpgradeConfigurationRequest", +}) as any as S.Schema; export interface UpdateSelfUpgradeConfigurationResponse { RequestId?: string; Status?: number; } -export const UpdateSelfUpgradeConfigurationResponse = - /*@__PURE__*/ S.suspend(() => +export const UpdateSelfUpgradeConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ RequestId: S.optional(S.String), Status: S.optional(S.Number).pipe(T.HttpResponseCode()), }), - ).annotate({ - identifier: "UpdateSelfUpgradeConfigurationResponse", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateSelfUpgradeConfigurationResponse", +}) as any as S.Schema; export interface UpdateSpaceRequest { AwsAccountId: string; SpaceId: string; @@ -31887,46 +31481,44 @@ export interface UpdateSpacePermissionsRequest { GrantPermissions?: ResourcePermission[]; RevokePermissions?: ResourcePermission[]; } -export const UpdateSpacePermissionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - SpaceId: S.String.pipe(T.HttpLabel("SpaceId")), - GrantPermissions: S.optional(ResourcePermissionList), - RevokePermissions: S.optional(ResourcePermissionList), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/v1/accounts/{AwsAccountId}/spaces/{SpaceId}/permissions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateSpacePermissionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + SpaceId: S.String.pipe(T.HttpLabel("SpaceId")), + GrantPermissions: S.optional(ResourcePermissionList), + RevokePermissions: S.optional(ResourcePermissionList), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/v1/accounts/{AwsAccountId}/spaces/{SpaceId}/permissions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateSpacePermissionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateSpacePermissionsRequest", +}) as any as S.Schema; export interface UpdateSpacePermissionsResponse { spaceId: string; spaceArn?: string; permissions?: ResourcePermission[]; requestId?: string; } -export const UpdateSpacePermissionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - spaceId: S.String, - spaceArn: S.optional(S.String), - permissions: S.optional(ResourcePermissionList), - requestId: S.optional(S.String), - }), - ).annotate({ - identifier: "UpdateSpacePermissionsResponse", - }) as any as S.Schema; +export const UpdateSpacePermissionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + spaceId: S.String, + spaceArn: S.optional(S.String), + permissions: S.optional(ResourcePermissionList), + requestId: S.optional(S.String), + }), +).annotate({ + identifier: "UpdateSpacePermissionsResponse", +}) as any as S.Schema; export interface SpaceResourceOperation { ResourceType: SpaceQuickSightResourceType; ResourceDetails: SpaceQuickSightResourceDetails; @@ -31949,72 +31541,70 @@ export interface UpdateSpaceResourcesRequest { AddResources?: SpaceResourceOperation[]; RemoveResources?: SpaceResourceOperation[]; } -export const UpdateSpaceResourcesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - SpaceId: S.String.pipe(T.HttpLabel("SpaceId")), - AddResources: S.optional(SpaceResourceOperations), - RemoveResources: S.optional(SpaceResourceOperations), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/v1/accounts/{AwsAccountId}/spaces/{SpaceId}/resources", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateSpaceResourcesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + SpaceId: S.String.pipe(T.HttpLabel("SpaceId")), + AddResources: S.optional(SpaceResourceOperations), + RemoveResources: S.optional(SpaceResourceOperations), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/v1/accounts/{AwsAccountId}/spaces/{SpaceId}/resources", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateSpaceResourcesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateSpaceResourcesRequest", +}) as any as S.Schema; export interface FailedSpaceResourceOperation { ResourceType: SpaceQuickSightResourceType; ResourceDetails?: SpaceQuickSightResourceDetails; ErrorMessage: string; } -export const FailedSpaceResourceOperation = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResourceType: SpaceQuickSightResourceType, - ResourceDetails: S.optional(SpaceQuickSightResourceDetails), - ErrorMessage: S.String, - }), - ).annotate({ - identifier: "FailedSpaceResourceOperation", - }) as any as S.Schema; +export const FailedSpaceResourceOperation = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResourceType: SpaceQuickSightResourceType, + ResourceDetails: S.optional(SpaceQuickSightResourceDetails), + ErrorMessage: S.String, + }), +).annotate({ + identifier: "FailedSpaceResourceOperation", +}) as any as S.Schema; export type FailedSpaceResourceOperations = FailedSpaceResourceOperation[]; -export const FailedSpaceResourceOperations = - /*@__PURE__*/ S.Array(FailedSpaceResourceOperation); +export const FailedSpaceResourceOperations = /*@__PURE__*/ S.Array( + FailedSpaceResourceOperation, +); export interface UpdateSpaceResourcesResponse { spaceId: string; spaceArn?: string; FailedResourceOperations?: FailedSpaceResourceOperation[]; RequestId?: string; } -export const UpdateSpaceResourcesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - spaceId: S.String, - spaceArn: S.optional(S.String), - FailedResourceOperations: S.optional(FailedSpaceResourceOperations), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "UpdateSpaceResourcesResponse", - }) as any as S.Schema; +export const UpdateSpaceResourcesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + spaceId: S.String, + spaceArn: S.optional(S.String), + FailedResourceOperations: S.optional(FailedSpaceResourceOperations), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "UpdateSpaceResourcesResponse", +}) as any as S.Schema; export type PurchaseMode = "MANUAL" | "AUTO_PURCHASE" | (string & {}); export const PurchaseMode = /*@__PURE__*/ S.String; export interface UpdateSPICECapacityConfigurationRequest { AwsAccountId: string; PurchaseMode: PurchaseMode; } -export const UpdateSPICECapacityConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const UpdateSPICECapacityConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), PurchaseMode: PurchaseMode, @@ -32031,22 +31621,22 @@ export const UpdateSPICECapacityConfigurationRequest = rules, ), ), - ).annotate({ - identifier: "UpdateSPICECapacityConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateSPICECapacityConfigurationRequest", +}) as any as S.Schema; export interface UpdateSPICECapacityConfigurationResponse { RequestId?: string; Status?: number; } -export const UpdateSPICECapacityConfigurationResponse = - /*@__PURE__*/ S.suspend(() => +export const UpdateSPICECapacityConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ RequestId: S.optional(S.String), Status: S.optional(S.Number).pipe(T.HttpResponseCode()), }), - ).annotate({ - identifier: "UpdateSPICECapacityConfigurationResponse", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateSPICECapacityConfigurationResponse", +}) as any as S.Schema; export interface UpdateTemplateRequest { AwsAccountId: string; TemplateId: string; @@ -32107,17 +31697,59 @@ export interface UpdateTemplateAliasRequest { AliasName: string; TemplateVersionNumber: number; } -export const UpdateTemplateAliasRequest = /*@__PURE__*/ S.suspend(() => +export const UpdateTemplateAliasRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + TemplateId: S.String.pipe(T.HttpLabel("TemplateId")), + AliasName: S.String.pipe(T.HttpLabel("AliasName")), + TemplateVersionNumber: S.Number, + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/accounts/{AwsAccountId}/templates/{TemplateId}/aliases/{AliasName}", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "UpdateTemplateAliasRequest", +}) as any as S.Schema; +export interface UpdateTemplateAliasResponse { + TemplateAlias?: TemplateAlias; + Status?: number; + RequestId?: string; +} +export const UpdateTemplateAliasResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TemplateAlias: S.optional(TemplateAlias), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "UpdateTemplateAliasResponse", +}) as any as S.Schema; +export interface UpdateTemplatePermissionsRequest { + AwsAccountId: string; + TemplateId: string; + GrantPermissions?: ResourcePermission[]; + RevokePermissions?: ResourcePermission[]; +} +export const UpdateTemplatePermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), TemplateId: S.String.pipe(T.HttpLabel("TemplateId")), - AliasName: S.String.pipe(T.HttpLabel("AliasName")), - TemplateVersionNumber: S.Number, + GrantPermissions: S.optional(UpdateResourcePermissionList), + RevokePermissions: S.optional(UpdateResourcePermissionList), }).pipe( T.all( T.Http({ method: "PUT", - uri: "/accounts/{AwsAccountId}/templates/{TemplateId}/aliases/{AliasName}", + uri: "/accounts/{AwsAccountId}/templates/{TemplateId}/permissions", }), svc, auth, @@ -32127,52 +31759,8 @@ export const UpdateTemplateAliasRequest = /*@__PURE__*/ S.suspend(() => ), ), ).annotate({ - identifier: "UpdateTemplateAliasRequest", -}) as any as S.Schema; -export interface UpdateTemplateAliasResponse { - TemplateAlias?: TemplateAlias; - Status?: number; - RequestId?: string; -} -export const UpdateTemplateAliasResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TemplateAlias: S.optional(TemplateAlias), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "UpdateTemplateAliasResponse", - }) as any as S.Schema; -export interface UpdateTemplatePermissionsRequest { - AwsAccountId: string; - TemplateId: string; - GrantPermissions?: ResourcePermission[]; - RevokePermissions?: ResourcePermission[]; -} -export const UpdateTemplatePermissionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - TemplateId: S.String.pipe(T.HttpLabel("TemplateId")), - GrantPermissions: S.optional(UpdateResourcePermissionList), - RevokePermissions: S.optional(UpdateResourcePermissionList), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/accounts/{AwsAccountId}/templates/{TemplateId}/permissions", - }), - svc, - auth, - proto, - ver, - rules, - ), - ), - ).annotate({ - identifier: "UpdateTemplatePermissionsRequest", - }) as any as S.Schema; + identifier: "UpdateTemplatePermissionsRequest", +}) as any as S.Schema; export interface UpdateTemplatePermissionsResponse { TemplateId?: string; TemplateArn?: string; @@ -32180,18 +31768,17 @@ export interface UpdateTemplatePermissionsResponse { RequestId?: string; Status?: number; } -export const UpdateTemplatePermissionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TemplateId: S.optional(S.String), - TemplateArn: S.optional(S.String), - Permissions: S.optional(UpdateResourcePermissionList), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "UpdateTemplatePermissionsResponse", - }) as any as S.Schema; +export const UpdateTemplatePermissionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TemplateId: S.optional(S.String), + TemplateArn: S.optional(S.String), + Permissions: S.optional(UpdateResourcePermissionList), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "UpdateTemplatePermissionsResponse", +}) as any as S.Schema; export interface UpdateThemeRequest { AwsAccountId: string; ThemeId: string; @@ -32292,29 +31879,28 @@ export interface UpdateThemePermissionsRequest { GrantPermissions?: ResourcePermission[]; RevokePermissions?: ResourcePermission[]; } -export const UpdateThemePermissionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - ThemeId: S.String.pipe(T.HttpLabel("ThemeId")), - GrantPermissions: S.optional(UpdateResourcePermissionList), - RevokePermissions: S.optional(UpdateResourcePermissionList), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/accounts/{AwsAccountId}/themes/{ThemeId}/permissions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateThemePermissionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + ThemeId: S.String.pipe(T.HttpLabel("ThemeId")), + GrantPermissions: S.optional(UpdateResourcePermissionList), + RevokePermissions: S.optional(UpdateResourcePermissionList), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/accounts/{AwsAccountId}/themes/{ThemeId}/permissions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateThemePermissionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateThemePermissionsRequest", +}) as any as S.Schema; export interface UpdateThemePermissionsResponse { ThemeId?: string; ThemeArn?: string; @@ -32322,18 +31908,17 @@ export interface UpdateThemePermissionsResponse { RequestId?: string; Status?: number; } -export const UpdateThemePermissionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ThemeId: S.optional(S.String), - ThemeArn: S.optional(S.String), - Permissions: S.optional(UpdateResourcePermissionList), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "UpdateThemePermissionsResponse", - }) as any as S.Schema; +export const UpdateThemePermissionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ThemeId: S.optional(S.String), + ThemeArn: S.optional(S.String), + Permissions: S.optional(UpdateResourcePermissionList), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "UpdateThemePermissionsResponse", +}) as any as S.Schema; export interface UpdateTopicRequest { AwsAccountId: string; TopicId: string; @@ -32386,29 +31971,28 @@ export interface UpdateTopicPermissionsRequest { GrantPermissions?: ResourcePermission[]; RevokePermissions?: ResourcePermission[]; } -export const UpdateTopicPermissionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - TopicId: S.String.pipe(T.HttpLabel("TopicId")), - GrantPermissions: S.optional(UpdateResourcePermissionList), - RevokePermissions: S.optional(UpdateResourcePermissionList), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/accounts/{AwsAccountId}/topics/{TopicId}/permissions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateTopicPermissionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + TopicId: S.String.pipe(T.HttpLabel("TopicId")), + GrantPermissions: S.optional(UpdateResourcePermissionList), + RevokePermissions: S.optional(UpdateResourcePermissionList), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/accounts/{AwsAccountId}/topics/{TopicId}/permissions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateTopicPermissionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateTopicPermissionsRequest", +}) as any as S.Schema; export interface UpdateTopicPermissionsResponse { TopicId?: string; TopicArn?: string; @@ -32416,47 +32000,45 @@ export interface UpdateTopicPermissionsResponse { Status?: number; RequestId?: string; } -export const UpdateTopicPermissionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TopicId: S.optional(S.String), - TopicArn: S.optional(S.String), - Permissions: S.optional(ResourcePermissionList), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "UpdateTopicPermissionsResponse", - }) as any as S.Schema; +export const UpdateTopicPermissionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TopicId: S.optional(S.String), + TopicArn: S.optional(S.String), + Permissions: S.optional(ResourcePermissionList), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "UpdateTopicPermissionsResponse", +}) as any as S.Schema; export interface UpdateTopicRefreshScheduleRequest { AwsAccountId: string; TopicId: string; DatasetId: string; RefreshSchedule: TopicRefreshSchedule; } -export const UpdateTopicRefreshScheduleRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - TopicId: S.String.pipe(T.HttpLabel("TopicId")), - DatasetId: S.String.pipe(T.HttpLabel("DatasetId")), - RefreshSchedule: TopicRefreshSchedule, - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/accounts/{AwsAccountId}/topics/{TopicId}/schedules/{DatasetId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateTopicRefreshScheduleRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + TopicId: S.String.pipe(T.HttpLabel("TopicId")), + DatasetId: S.String.pipe(T.HttpLabel("DatasetId")), + RefreshSchedule: TopicRefreshSchedule, + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/accounts/{AwsAccountId}/topics/{TopicId}/schedules/{DatasetId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateTopicRefreshScheduleRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateTopicRefreshScheduleRequest", +}) as any as S.Schema; export interface UpdateTopicRefreshScheduleResponse { TopicId?: string; TopicArn?: string; @@ -32464,18 +32046,17 @@ export interface UpdateTopicRefreshScheduleResponse { Status?: number; RequestId?: string; } -export const UpdateTopicRefreshScheduleResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TopicId: S.optional(S.String), - TopicArn: S.optional(S.String), - DatasetArn: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - RequestId: S.optional(S.String), - }), - ).annotate({ - identifier: "UpdateTopicRefreshScheduleResponse", - }) as any as S.Schema; +export const UpdateTopicRefreshScheduleResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TopicId: S.optional(S.String), + TopicArn: S.optional(S.String), + DatasetArn: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + RequestId: S.optional(S.String), + }), +).annotate({ + identifier: "UpdateTopicRefreshScheduleResponse", +}) as any as S.Schema; export interface UpdateUserRequest { UserName: string; AwsAccountId: string; @@ -32536,42 +32117,40 @@ export interface UpdateUserCustomPermissionRequest { Namespace: string; CustomPermissionsName: string; } -export const UpdateUserCustomPermissionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - UserName: S.String.pipe(T.HttpLabel("UserName")), - AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), - Namespace: S.String.pipe(T.HttpLabel("Namespace")), - CustomPermissionsName: S.String, - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}/custom-permission", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateUserCustomPermissionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + UserName: S.String.pipe(T.HttpLabel("UserName")), + AwsAccountId: S.String.pipe(T.HttpLabel("AwsAccountId")), + Namespace: S.String.pipe(T.HttpLabel("Namespace")), + CustomPermissionsName: S.String, + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}/custom-permission", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateUserCustomPermissionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateUserCustomPermissionRequest", +}) as any as S.Schema; export interface UpdateUserCustomPermissionResponse { RequestId?: string; Status?: number; } -export const UpdateUserCustomPermissionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "UpdateUserCustomPermissionResponse", - }) as any as S.Schema; +export const UpdateUserCustomPermissionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "UpdateUserCustomPermissionResponse", +}) as any as S.Schema; export interface UpdateVPCConnectionRequest { AwsAccountId: string; VPCConnectionId: string; @@ -32614,32 +32193,34 @@ export interface UpdateVPCConnectionResponse { RequestId?: string; Status?: number; } -export const UpdateVPCConnectionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Arn: S.optional(S.String), - VPCConnectionId: S.optional(S.String), - UpdateStatus: S.optional(VPCConnectionResourceStatus), - AvailabilityStatus: S.optional(VPCConnectionAvailabilityStatus), - RequestId: S.optional(S.String), - Status: S.optional(S.Number).pipe(T.HttpResponseCode()), - }), - ).annotate({ - identifier: "UpdateVPCConnectionResponse", - }) as any as S.Schema; +export const UpdateVPCConnectionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Arn: S.optional(S.String), + VPCConnectionId: S.optional(S.String), + UpdateStatus: S.optional(VPCConnectionResourceStatus), + AvailabilityStatus: S.optional(VPCConnectionAvailabilityStatus), + RequestId: S.optional(S.String), + Status: S.optional(S.Number).pipe(T.HttpResponseCode()), + }), +).annotate({ + identifier: "UpdateVPCConnectionResponse", +}) as any as S.Schema; //# Errors export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { Message: S.optional(S.String), RequestId: S.optional(S.String) }, + T.HttpError(401), ).pipe(C.withAuthError) {} export class InternalFailureException extends S.TaggedErrorClass()( "InternalFailureException", { Message: S.optional(S.String), RequestId: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class InvalidParameterValueException extends S.TaggedErrorClass()( "InvalidParameterValueException", { Message: S.optional(S.String), RequestId: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", @@ -32648,14 +32229,17 @@ export class ResourceNotFoundException extends S.TaggedErrorClass()( "ThrottlingException", { Message: S.optional(S.String), RequestId: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class InvalidRequestException extends S.TaggedErrorClass()( "InvalidRequestException", { Message: S.optional(S.String), RequestId: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class LimitExceededException extends S.TaggedErrorClass()( "LimitExceededException", @@ -32664,14 +32248,17 @@ export class LimitExceededException extends S.TaggedErrorClass()( "PreconditionNotMetException", { Message: S.optional(S.String), RequestId: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { Message: S.optional(S.String), RequestId: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ResourceExistsException extends S.TaggedErrorClass()( "ResourceExistsException", @@ -32680,6 +32267,7 @@ export class ResourceExistsException extends S.TaggedErrorClass()( "ResourceUnavailableException", @@ -32688,54 +32276,79 @@ export class ResourceUnavailableException extends S.TaggedErrorClass()( "UnsupportedUserEditionException", { Message: S.optional(S.String), RequestId: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} +export class QuickSightSubscriptionRequired extends S.TaggedErrorClass()( + "QuickSightSubscriptionRequired", + { + Message: S.optional(S.String), + ResourceType: S.optional(ExceptionResourceType), + RequestId: S.optional(S.String), + }, + T.SyntheticError({ + from: "ResourceNotFoundException", + message: { includes: "Directory information" }, + }), +).pipe(C.withNotFoundError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { Message: S.String }, + T.HttpError(500), ).pipe(C.withServerError) {} export class InvalidDataSetParameterValueException extends S.TaggedErrorClass()( "InvalidDataSetParameterValueException", { Message: S.optional(S.String), RequestId: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class CustomerManagedKeyUnavailableException extends S.TaggedErrorClass()( "CustomerManagedKeyUnavailableException", { Message: S.optional(S.String), RequestId: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ConcurrentUpdatingException extends S.TaggedErrorClass()( "ConcurrentUpdatingException", { Message: S.optional(S.String), RequestId: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class InvalidNextTokenException extends S.TaggedErrorClass()( "InvalidNextTokenException", { Message: S.optional(S.String), RequestId: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidParameterException extends S.TaggedErrorClass()( "InvalidParameterException", { Message: S.optional(S.String), RequestId: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class SessionLifetimeInMinutesInvalidException extends S.TaggedErrorClass()( "SessionLifetimeInMinutesInvalidException", { Message: S.optional(S.String), RequestId: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class UnsupportedPricingPlanException extends S.TaggedErrorClass()( "UnsupportedPricingPlanException", { Message: S.optional(S.String), RequestId: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class QuickSightUserNotFoundException extends S.TaggedErrorClass()( "QuickSightUserNotFoundException", { Message: S.optional(S.String), RequestId: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class DomainNotWhitelistedException extends S.TaggedErrorClass()( "DomainNotWhitelistedException", { Message: S.optional(S.String), RequestId: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class IdentityTypeNotSupportedException extends S.TaggedErrorClass()( "IdentityTypeNotSupportedException", { Message: S.optional(S.String), RequestId: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} //# Operations @@ -33045,6 +32658,7 @@ export type CreateAnalysisError = | ResourceNotFoundException | ThrottlingException | UnsupportedUserEditionException + | QuickSightSubscriptionRequired | CommonErrors; /** * Creates an analysis in Amazon Quick Sight. Analyses can be created either from a template or from an `AnalysisDefinition`. @@ -33066,6 +32680,7 @@ export const createAnalysis: API.OperationMethod< ResourceNotFoundException, ThrottlingException, UnsupportedUserEditionException, + QuickSightSubscriptionRequired, ], operationName: "CreateAnalysis", })); @@ -33144,6 +32759,7 @@ export type CreateDashboardError = | ResourceNotFoundException | ThrottlingException | UnsupportedUserEditionException + | QuickSightSubscriptionRequired | CommonErrors; /** * Creates a dashboard from either a template or directly with a @@ -33174,6 +32790,7 @@ export const createDashboard: API.OperationMethod< ResourceNotFoundException, ThrottlingException, UnsupportedUserEditionException, + QuickSightSubscriptionRequired, ], operationName: "CreateDashboard", })); @@ -33188,6 +32805,7 @@ export type CreateDataSetError = | ResourceNotFoundException | ThrottlingException | UnsupportedUserEditionException + | QuickSightSubscriptionRequired | CommonErrors; /** * Creates a dataset. This operation doesn't support datasets that include uploaded files @@ -33212,6 +32830,7 @@ export const createDataSet: API.OperationMethod< ResourceNotFoundException, ThrottlingException, UnsupportedUserEditionException, + QuickSightSubscriptionRequired, ], operationName: "CreateDataSet", })); @@ -33225,6 +32844,7 @@ export type CreateDataSourceError = | ResourceExistsException | ResourceNotFoundException | ThrottlingException + | QuickSightSubscriptionRequired | CommonErrors; /** * Creates a data source. @@ -33247,6 +32867,7 @@ export const createDataSource: API.OperationMethod< ResourceExistsException, ResourceNotFoundException, ThrottlingException, + QuickSightSubscriptionRequired, ], operationName: "CreateDataSource", })); diff --git a/packages/aws/src/services/rds.ts b/packages/aws/src/services/rds.ts index 327a6fd591..bc6c277c7a 100644 --- a/packages/aws/src/services/rds.ts +++ b/packages/aws/src/services/rds.ts @@ -10973,1011 +10973,1505 @@ export const SwitchoverReadReplicaResult = export class DBClusterNotFoundFault extends S.TaggedErrorClass()( "DBClusterNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBClusterNotFoundFault", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "DBClusterNotFoundFault", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError, C.withNotFoundError) {} export class DBClusterRoleAlreadyExistsFault extends S.TaggedErrorClass()( "DBClusterRoleAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBClusterRoleAlreadyExists", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBClusterRoleAlreadyExists", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class DBClusterRoleQuotaExceededFault extends S.TaggedErrorClass()( "DBClusterRoleQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBClusterRoleQuotaExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBClusterRoleQuotaExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidDBClusterStateFault extends S.TaggedErrorClass()( "InvalidDBClusterStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidDBClusterStateFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidDBClusterStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withConflictError, C.withRetryableError) {} export class DBInstanceNotFoundFault extends S.TaggedErrorClass()( "DBInstanceNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBInstanceNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "DBInstanceNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class DBInstanceRoleAlreadyExistsFault extends S.TaggedErrorClass()( "DBInstanceRoleAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBInstanceRoleAlreadyExists", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBInstanceRoleAlreadyExists", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class DBInstanceRoleQuotaExceededFault extends S.TaggedErrorClass()( "DBInstanceRoleQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBInstanceRoleQuotaExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBInstanceRoleQuotaExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidDBInstanceStateFault extends S.TaggedErrorClass()( "InvalidDBInstanceStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidDBInstanceState", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidDBInstanceState", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SourceNotFoundFault extends S.TaggedErrorClass()( "SourceNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SourceNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "SourceNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class SubscriptionNotFoundFault extends S.TaggedErrorClass()( "SubscriptionNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SubscriptionNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "SubscriptionNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class BlueGreenDeploymentNotFoundFault extends S.TaggedErrorClass()( "BlueGreenDeploymentNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "BlueGreenDeploymentNotFoundFault", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "BlueGreenDeploymentNotFoundFault", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class DBProxyEndpointNotFoundFault extends S.TaggedErrorClass()( "DBProxyEndpointNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBProxyEndpointNotFoundFault", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "DBProxyEndpointNotFoundFault", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class DBProxyNotFoundFault extends S.TaggedErrorClass()( "DBProxyNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBProxyNotFoundFault", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "DBProxyNotFoundFault", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class DBProxyTargetGroupNotFoundFault extends S.TaggedErrorClass()( "DBProxyTargetGroupNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBProxyTargetGroupNotFoundFault", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "DBProxyTargetGroupNotFoundFault", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class DBShardGroupNotFoundFault extends S.TaggedErrorClass()( "DBShardGroupNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBShardGroupNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "DBShardGroupNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class DBSnapshotNotFoundFault extends S.TaggedErrorClass()( "DBSnapshotNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBSnapshotNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "DBSnapshotNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class DBSnapshotTenantDatabaseNotFoundFault extends S.TaggedErrorClass()( "DBSnapshotTenantDatabaseNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBSnapshotTenantDatabaseNotFoundFault", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "DBSnapshotTenantDatabaseNotFoundFault", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class IntegrationNotFoundFault extends S.TaggedErrorClass()( "IntegrationNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "IntegrationNotFoundFault", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ + code: "IntegrationNotFoundFault", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class InvalidDBClusterEndpointStateFault extends S.TaggedErrorClass()( "InvalidDBClusterEndpointStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidDBClusterEndpointStateFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidDBClusterEndpointStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class TenantDatabaseNotFoundFault extends S.TaggedErrorClass()( "TenantDatabaseNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "TenantDatabaseNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "TenantDatabaseNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class ResourceNotFoundFault extends S.TaggedErrorClass()( "ResourceNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "ResourceNotFoundFault", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "ResourceNotFoundFault", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class AuthorizationAlreadyExistsFault extends S.TaggedErrorClass()( "AuthorizationAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "AuthorizationAlreadyExists", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "AuthorizationAlreadyExists", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class AuthorizationQuotaExceededFault extends S.TaggedErrorClass()( "AuthorizationQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "AuthorizationQuotaExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "AuthorizationQuotaExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBSecurityGroupNotFoundFault extends S.TaggedErrorClass()( "DBSecurityGroupNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBSecurityGroupNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "DBSecurityGroupNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError, C.withNotFoundError) {} export class InvalidDBSecurityGroupStateFault extends S.TaggedErrorClass()( "InvalidDBSecurityGroupStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidDBSecurityGroupState", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidDBSecurityGroupState", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ExportTaskNotFoundFault extends S.TaggedErrorClass()( "ExportTaskNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "ExportTaskNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "ExportTaskNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class InvalidExportTaskStateFault extends S.TaggedErrorClass()( "InvalidExportTaskStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidExportTaskStateFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidExportTaskStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBParameterGroupAlreadyExistsFault extends S.TaggedErrorClass()( "DBParameterGroupAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBParameterGroupAlreadyExists", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBParameterGroupAlreadyExists", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class DBParameterGroupNotFoundFault extends S.TaggedErrorClass()( "DBParameterGroupNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBParameterGroupNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ + code: "DBParameterGroupNotFound", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError, C.withNotFoundError) {} export class DBParameterGroupQuotaExceededFault extends S.TaggedErrorClass()( "DBParameterGroupQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBParameterGroupQuotaExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBParameterGroupQuotaExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBClusterSnapshotAlreadyExistsFault extends S.TaggedErrorClass()( "DBClusterSnapshotAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBClusterSnapshotAlreadyExistsFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBClusterSnapshotAlreadyExistsFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class DBClusterSnapshotNotFoundFault extends S.TaggedErrorClass()( "DBClusterSnapshotNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBClusterSnapshotNotFoundFault", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "DBClusterSnapshotNotFoundFault", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class InvalidDBClusterSnapshotStateFault extends S.TaggedErrorClass()( "InvalidDBClusterSnapshotStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidDBClusterSnapshotStateFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidDBClusterSnapshotStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class KMSKeyNotAccessibleFault extends S.TaggedErrorClass()( "KMSKeyNotAccessibleFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "KMSKeyNotAccessibleFault", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "KMSKeyNotAccessibleFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SnapshotQuotaExceededFault extends S.TaggedErrorClass()( "SnapshotQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SnapshotQuotaExceeded", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "SnapshotQuotaExceeded", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class CustomAvailabilityZoneNotFoundFault extends S.TaggedErrorClass()( "CustomAvailabilityZoneNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "CustomAvailabilityZoneNotFound", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "CustomAvailabilityZoneNotFound", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class DBSnapshotAlreadyExistsFault extends S.TaggedErrorClass()( "DBSnapshotAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBSnapshotAlreadyExists", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "DBSnapshotAlreadyExists", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class InvalidDBSnapshotStateFault extends S.TaggedErrorClass()( "InvalidDBSnapshotStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidDBSnapshotState", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidDBSnapshotState", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class OptionGroupAlreadyExistsFault extends S.TaggedErrorClass()( "OptionGroupAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "OptionGroupAlreadyExistsFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "OptionGroupAlreadyExistsFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class OptionGroupNotFoundFault extends S.TaggedErrorClass()( "OptionGroupNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "OptionGroupNotFoundFault", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ + code: "OptionGroupNotFoundFault", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class OptionGroupQuotaExceededFault extends S.TaggedErrorClass()( "OptionGroupQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "OptionGroupQuotaExceededFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "OptionGroupQuotaExceededFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class BlueGreenDeploymentAlreadyExistsFault extends S.TaggedErrorClass()( "BlueGreenDeploymentAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "BlueGreenDeploymentAlreadyExistsFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "BlueGreenDeploymentAlreadyExistsFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class DBClusterParameterGroupNotFoundFault extends S.TaggedErrorClass()( "DBClusterParameterGroupNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBClusterParameterGroupNotFound", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "DBClusterParameterGroupNotFound", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class DBClusterQuotaExceededFault extends S.TaggedErrorClass()( "DBClusterQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBClusterQuotaExceededFault", - httpResponseCode: 403, - }), + T.all( + T.AwsQueryError({ + code: "DBClusterQuotaExceededFault", + httpResponseCode: 403, + }), + T.HttpError(403), + ), ).pipe(C.withAuthError, C.withQuotaError) {} export class InstanceQuotaExceededFault extends S.TaggedErrorClass()( "InstanceQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InstanceQuotaExceeded", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InstanceQuotaExceeded", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SourceClusterNotSupportedFault extends S.TaggedErrorClass()( "SourceClusterNotSupportedFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "SourceClusterNotSupportedFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "SourceClusterNotSupportedFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SourceDatabaseNotSupportedFault extends S.TaggedErrorClass()( "SourceDatabaseNotSupportedFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "SourceDatabaseNotSupportedFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "SourceDatabaseNotSupportedFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class StorageQuotaExceededFault extends S.TaggedErrorClass()( "StorageQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "StorageQuotaExceeded", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "StorageQuotaExceeded", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class CreateCustomDBEngineVersionFault extends S.TaggedErrorClass()( "CreateCustomDBEngineVersionFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "CreateCustomDBEngineVersionFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "CreateCustomDBEngineVersionFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class CustomDBEngineVersionAlreadyExistsFault extends S.TaggedErrorClass()( "CustomDBEngineVersionAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "CustomDBEngineVersionAlreadyExistsFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "CustomDBEngineVersionAlreadyExistsFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class CustomDBEngineVersionNotFoundFault extends S.TaggedErrorClass()( "CustomDBEngineVersionNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "CustomDBEngineVersionNotFoundFault", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "CustomDBEngineVersionNotFoundFault", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class CustomDBEngineVersionQuotaExceededFault extends S.TaggedErrorClass()( "CustomDBEngineVersionQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "CustomDBEngineVersionQuotaExceededFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "CustomDBEngineVersionQuotaExceededFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class Ec2ImagePropertiesNotSupportedFault extends S.TaggedErrorClass()( "Ec2ImagePropertiesNotSupportedFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "Ec2ImagePropertiesNotSupportedFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "Ec2ImagePropertiesNotSupportedFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidCustomDBEngineVersionStateFault extends S.TaggedErrorClass()( "InvalidCustomDBEngineVersionStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidCustomDBEngineVersionStateFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidCustomDBEngineVersionStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBClusterAlreadyExistsFault extends S.TaggedErrorClass()( "DBClusterAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBClusterAlreadyExistsFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBClusterAlreadyExistsFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withConflictError, C.withAlreadyExistsError) {} export class DBSubnetGroupDoesNotCoverEnoughAZs extends S.TaggedErrorClass()( "DBSubnetGroupDoesNotCoverEnoughAZs", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBSubnetGroupDoesNotCoverEnoughAZs", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBSubnetGroupDoesNotCoverEnoughAZs", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBSubnetGroupNotFoundFault extends S.TaggedErrorClass()( "DBSubnetGroupNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBSubnetGroupNotFoundFault", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "DBSubnetGroupNotFoundFault", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError, C.withNotFoundError) {} export class DomainNotFoundFault extends S.TaggedErrorClass()( "DomainNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DomainNotFoundFault", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "DomainNotFoundFault", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class GlobalClusterNotFoundFault extends S.TaggedErrorClass()( "GlobalClusterNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "GlobalClusterNotFoundFault", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "GlobalClusterNotFoundFault", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class InsufficientDBInstanceCapacityFault extends S.TaggedErrorClass()( "InsufficientDBInstanceCapacityFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InsufficientDBInstanceCapacity", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InsufficientDBInstanceCapacity", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InsufficientStorageClusterCapacityFault extends S.TaggedErrorClass()( "InsufficientStorageClusterCapacityFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InsufficientStorageClusterCapacity", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InsufficientStorageClusterCapacity", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidDBSubnetGroupFault extends S.TaggedErrorClass()( "InvalidDBSubnetGroupFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidDBSubnetGroupFault", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "InvalidDBSubnetGroupFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidDBSubnetGroupStateFault extends S.TaggedErrorClass()( "InvalidDBSubnetGroupStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidDBSubnetGroupStateFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidDBSubnetGroupStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidGlobalClusterStateFault extends S.TaggedErrorClass()( "InvalidGlobalClusterStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidGlobalClusterStateFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidGlobalClusterStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidSubnet extends S.TaggedErrorClass()( "InvalidSubnet", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidSubnet", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidSubnet", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidVPCNetworkStateFault extends S.TaggedErrorClass()( "InvalidVPCNetworkStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidVPCNetworkStateFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidVPCNetworkStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class NetworkTypeNotSupported extends S.TaggedErrorClass()( "NetworkTypeNotSupported", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "NetworkTypeNotSupported", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "NetworkTypeNotSupported", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class StorageTypeNotSupportedFault extends S.TaggedErrorClass()( "StorageTypeNotSupportedFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "StorageTypeNotSupported", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "StorageTypeNotSupported", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class VpcEncryptionControlViolationException extends S.TaggedErrorClass()( "VpcEncryptionControlViolationException", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "VpcEncryptionControlViolationException", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "VpcEncryptionControlViolationException", + httpResponseCode: 400, + }), + T.HttpError(400), + ), +).pipe(C.withBadRequestError) {} +export class InvalidParameterCombination extends S.TaggedErrorClass()( + "InvalidParameterCombination", + { message: S.optional(S.String) }, +).pipe(C.withBadRequestError) {} +export class InvalidParameterValue extends S.TaggedErrorClass()( + "InvalidParameterValue", + { message: S.optional(S.String) }, ).pipe(C.withBadRequestError) {} export class DBClusterEndpointAlreadyExistsFault extends S.TaggedErrorClass()( "DBClusterEndpointAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBClusterEndpointAlreadyExistsFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBClusterEndpointAlreadyExistsFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class DBClusterEndpointQuotaExceededFault extends S.TaggedErrorClass()( "DBClusterEndpointQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBClusterEndpointQuotaExceededFault", - httpResponseCode: 403, - }), + T.all( + T.AwsQueryError({ + code: "DBClusterEndpointQuotaExceededFault", + httpResponseCode: 403, + }), + T.HttpError(403), + ), ).pipe(C.withAuthError) {} export class AuthorizationNotFoundFault extends S.TaggedErrorClass()( "AuthorizationNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "AuthorizationNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "AuthorizationNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class BackupPolicyNotFoundFault extends S.TaggedErrorClass()( "BackupPolicyNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "BackupPolicyNotFoundFault", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ + code: "BackupPolicyNotFoundFault", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class CertificateNotFoundFault extends S.TaggedErrorClass()( "CertificateNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "CertificateNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "CertificateNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class DBInstanceAlreadyExistsFault extends S.TaggedErrorClass()( "DBInstanceAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBInstanceAlreadyExists", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "DBInstanceAlreadyExists", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class ProvisionedIopsNotAvailableInAZFault extends S.TaggedErrorClass()( "ProvisionedIopsNotAvailableInAZFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "ProvisionedIopsNotAvailableInAZFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "ProvisionedIopsNotAvailableInAZFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withQuotaError) {} export class TenantDatabaseQuotaExceededFault extends S.TaggedErrorClass()( "TenantDatabaseQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "TenantDatabaseQuotaExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "TenantDatabaseQuotaExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBSubnetGroupNotAllowedFault extends S.TaggedErrorClass()( "DBSubnetGroupNotAllowedFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBSubnetGroupNotAllowedFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBSubnetGroupNotAllowedFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBProxyAlreadyExistsFault extends S.TaggedErrorClass()( "DBProxyAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBProxyAlreadyExistsFault", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "DBProxyAlreadyExistsFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class DBProxyQuotaExceededFault extends S.TaggedErrorClass()( "DBProxyQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBProxyQuotaExceededFault", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "DBProxyQuotaExceededFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBProxyEndpointAlreadyExistsFault extends S.TaggedErrorClass()( "DBProxyEndpointAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBProxyEndpointAlreadyExistsFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBProxyEndpointAlreadyExistsFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class DBProxyEndpointQuotaExceededFault extends S.TaggedErrorClass()( "DBProxyEndpointQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBProxyEndpointQuotaExceededFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBProxyEndpointQuotaExceededFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidDBProxyStateFault extends S.TaggedErrorClass()( "InvalidDBProxyStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidDBProxyStateFault", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "InvalidDBProxyStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBSecurityGroupAlreadyExistsFault extends S.TaggedErrorClass()( "DBSecurityGroupAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBSecurityGroupAlreadyExists", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBSecurityGroupAlreadyExists", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class DBSecurityGroupNotSupportedFault extends S.TaggedErrorClass()( "DBSecurityGroupNotSupportedFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBSecurityGroupNotSupported", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBSecurityGroupNotSupported", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBSecurityGroupQuotaExceededFault extends S.TaggedErrorClass()( "DBSecurityGroupQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "QuotaExceeded.DBSecurityGroup", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "QuotaExceeded.DBSecurityGroup", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBShardGroupAlreadyExistsFault extends S.TaggedErrorClass()( "DBShardGroupAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBShardGroupAlreadyExists", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "DBShardGroupAlreadyExists", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class MaxDBShardGroupLimitReached extends S.TaggedErrorClass()( "MaxDBShardGroupLimitReached", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "MaxDBShardGroupLimitReached", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "MaxDBShardGroupLimitReached", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class UnsupportedDBEngineVersionFault extends S.TaggedErrorClass()( "UnsupportedDBEngineVersionFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "UnsupportedDBEngineVersion", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "UnsupportedDBEngineVersion", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBSubnetGroupAlreadyExistsFault extends S.TaggedErrorClass()( "DBSubnetGroupAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBSubnetGroupAlreadyExists", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBSubnetGroupAlreadyExists", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class DBSubnetGroupQuotaExceededFault extends S.TaggedErrorClass()( "DBSubnetGroupQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBSubnetGroupQuotaExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBSubnetGroupQuotaExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withQuotaError) {} export class DBSubnetQuotaExceededFault extends S.TaggedErrorClass()( "DBSubnetQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBSubnetQuotaExceededFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBSubnetQuotaExceededFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class EventSubscriptionQuotaExceededFault extends S.TaggedErrorClass()( "EventSubscriptionQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "EventSubscriptionQuotaExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "EventSubscriptionQuotaExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SNSInvalidTopicFault extends S.TaggedErrorClass()( "SNSInvalidTopicFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SNSInvalidTopic", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "SNSInvalidTopic", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SNSNoAuthorizationFault extends S.TaggedErrorClass()( "SNSNoAuthorizationFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SNSNoAuthorization", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "SNSNoAuthorization", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SNSTopicArnNotFoundFault extends S.TaggedErrorClass()( "SNSTopicArnNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SNSTopicArnNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "SNSTopicArnNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class SubscriptionAlreadyExistFault extends S.TaggedErrorClass()( "SubscriptionAlreadyExistFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SubscriptionAlreadyExist", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "SubscriptionAlreadyExist", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SubscriptionCategoryNotFoundFault extends S.TaggedErrorClass()( "SubscriptionCategoryNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "SubscriptionCategoryNotFound", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "SubscriptionCategoryNotFound", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class GlobalClusterAlreadyExistsFault extends S.TaggedErrorClass()( "GlobalClusterAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "GlobalClusterAlreadyExistsFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "GlobalClusterAlreadyExistsFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class GlobalClusterQuotaExceededFault extends S.TaggedErrorClass()( "GlobalClusterQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "GlobalClusterQuotaExceededFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "GlobalClusterQuotaExceededFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidDBShardGroupStateFault extends S.TaggedErrorClass()( "InvalidDBShardGroupStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidDBShardGroupState", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "InvalidDBShardGroupState", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class IntegrationAlreadyExistsFault extends S.TaggedErrorClass()( "IntegrationAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "IntegrationAlreadyExistsFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "IntegrationAlreadyExistsFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class IntegrationConflictOperationFault extends S.TaggedErrorClass()( "IntegrationConflictOperationFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "IntegrationConflictOperationFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "IntegrationConflictOperationFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class IntegrationQuotaExceededFault extends S.TaggedErrorClass()( "IntegrationQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "IntegrationQuotaExceededFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "IntegrationQuotaExceededFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class TenantDatabaseAlreadyExistsFault extends S.TaggedErrorClass()( "TenantDatabaseAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "TenantDatabaseAlreadyExists", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "TenantDatabaseAlreadyExists", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class InvalidBlueGreenDeploymentStateFault extends S.TaggedErrorClass()( "InvalidBlueGreenDeploymentStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidBlueGreenDeploymentStateFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidBlueGreenDeploymentStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBClusterAutomatedBackupQuotaExceededFault extends S.TaggedErrorClass()( "DBClusterAutomatedBackupQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBClusterAutomatedBackupQuotaExceededFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBClusterAutomatedBackupQuotaExceededFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBClusterAutomatedBackupNotFoundFault extends S.TaggedErrorClass()( "DBClusterAutomatedBackupNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBClusterAutomatedBackupNotFoundFault", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "DBClusterAutomatedBackupNotFoundFault", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class InvalidDBClusterAutomatedBackupStateFault extends S.TaggedErrorClass()( "InvalidDBClusterAutomatedBackupStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidDBClusterAutomatedBackupStateFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidDBClusterAutomatedBackupStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBClusterEndpointNotFoundFault extends S.TaggedErrorClass()( "DBClusterEndpointNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBClusterEndpointNotFoundFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBClusterEndpointNotFoundFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidDBParameterGroupStateFault extends S.TaggedErrorClass()( "InvalidDBParameterGroupStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidDBParameterGroupState", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidDBParameterGroupState", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBInstanceAutomatedBackupQuotaExceededFault extends S.TaggedErrorClass()( "DBInstanceAutomatedBackupQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBInstanceAutomatedBackupQuotaExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBInstanceAutomatedBackupQuotaExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBInstanceAutomatedBackupNotFoundFault extends S.TaggedErrorClass()( "DBInstanceAutomatedBackupNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBInstanceAutomatedBackupNotFound", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "DBInstanceAutomatedBackupNotFound", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class InvalidDBInstanceAutomatedBackupStateFault extends S.TaggedErrorClass()( "InvalidDBInstanceAutomatedBackupStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidDBInstanceAutomatedBackupState", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidDBInstanceAutomatedBackupState", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidDBProxyEndpointStateFault extends S.TaggedErrorClass()( "InvalidDBProxyEndpointStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidDBProxyEndpointStateFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidDBProxyEndpointStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidDBSubnetStateFault extends S.TaggedErrorClass()( "InvalidDBSubnetStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidDBSubnetStateFault", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "InvalidDBSubnetStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidEventSubscriptionStateFault extends S.TaggedErrorClass()( "InvalidEventSubscriptionStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidEventSubscriptionState", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidEventSubscriptionState", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidIntegrationStateFault extends S.TaggedErrorClass()( "InvalidIntegrationStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidIntegrationStateFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidIntegrationStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidOptionGroupStateFault extends S.TaggedErrorClass()( "InvalidOptionGroupStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidOptionGroupStateFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidOptionGroupStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBProxyTargetNotFoundFault extends S.TaggedErrorClass()( "DBProxyTargetNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBProxyTargetNotFoundFault", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "DBProxyTargetNotFoundFault", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class DBClusterBacktrackNotFoundFault extends S.TaggedErrorClass()( "DBClusterBacktrackNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBClusterBacktrackNotFoundFault", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "DBClusterBacktrackNotFoundFault", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class DBInstanceNotReadyFault extends S.TaggedErrorClass()( "DBInstanceNotReadyFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBInstanceNotReady", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "DBInstanceNotReady", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ReservedDBInstanceNotFoundFault extends S.TaggedErrorClass()( "ReservedDBInstanceNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "ReservedDBInstanceNotFound", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "ReservedDBInstanceNotFound", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class ReservedDBInstancesOfferingNotFoundFault extends S.TaggedErrorClass()( "ReservedDBInstancesOfferingNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "ReservedDBInstancesOfferingNotFound", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "ReservedDBInstancesOfferingNotFound", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class InvalidResourceStateFault extends S.TaggedErrorClass()( "InvalidResourceStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidResourceStateFault", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "InvalidResourceStateFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBLogFileNotFoundFault extends S.TaggedErrorClass()( "DBLogFileNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBLogFileNotFoundFault", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "DBLogFileNotFoundFault", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class InvalidDBClusterCapacityFault extends S.TaggedErrorClass()( "InvalidDBClusterCapacityFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InvalidDBClusterCapacityFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InvalidDBClusterCapacityFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class StorageTypeNotAvailableFault extends S.TaggedErrorClass()( "StorageTypeNotAvailableFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "StorageTypeNotAvailableFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "StorageTypeNotAvailableFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SharedSnapshotQuotaExceededFault extends S.TaggedErrorClass()( "SharedSnapshotQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "SharedSnapshotQuotaExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "SharedSnapshotQuotaExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBUpgradeDependencyFailureFault extends S.TaggedErrorClass()( "DBUpgradeDependencyFailureFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBUpgradeDependencyFailure", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBUpgradeDependencyFailure", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class SubnetAlreadyInUse extends S.TaggedErrorClass()( "SubnetAlreadyInUse", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "SubnetAlreadyInUse", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "SubnetAlreadyInUse", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withDependencyViolationError) {} export class ReservedDBInstanceAlreadyExistsFault extends S.TaggedErrorClass()( "ReservedDBInstanceAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "ReservedDBInstanceAlreadyExists", - httpResponseCode: 404, - }), + T.all( + T.AwsQueryError({ + code: "ReservedDBInstanceAlreadyExists", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class ReservedDBInstanceQuotaExceededFault extends S.TaggedErrorClass()( "ReservedDBInstanceQuotaExceededFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "ReservedDBInstanceQuotaExceeded", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "ReservedDBInstanceQuotaExceeded", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBProxyTargetAlreadyRegisteredFault extends S.TaggedErrorClass()( "DBProxyTargetAlreadyRegisteredFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "DBProxyTargetAlreadyRegisteredFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "DBProxyTargetAlreadyRegisteredFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InsufficientAvailableIPsInSubnetFault extends S.TaggedErrorClass()( "InsufficientAvailableIPsInSubnetFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InsufficientAvailableIPsInSubnetFault", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "InsufficientAvailableIPsInSubnetFault", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class DBClusterRoleNotFoundFault extends S.TaggedErrorClass()( "DBClusterRoleNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBClusterRoleNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "DBClusterRoleNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class DBInstanceRoleNotFoundFault extends S.TaggedErrorClass()( "DBInstanceRoleNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "DBInstanceRoleNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "DBInstanceRoleNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class InvalidS3BucketFault extends S.TaggedErrorClass()( "InvalidS3BucketFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidS3BucketFault", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidS3BucketFault", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InsufficientDBClusterCapacityFault extends S.TaggedErrorClass()( "InsufficientDBClusterCapacityFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "InsufficientDBClusterCapacityFault", - httpResponseCode: 403, - }), + T.all( + T.AwsQueryError({ + code: "InsufficientDBClusterCapacityFault", + httpResponseCode: 403, + }), + T.HttpError(403), + ), ).pipe(C.withAuthError, C.withQuotaError) {} export class InvalidRestoreFault extends S.TaggedErrorClass()( "InvalidRestoreFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidRestoreFault", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidRestoreFault", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class PointInTimeRestoreNotEnabledFault extends S.TaggedErrorClass()( "PointInTimeRestoreNotEnabledFault", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "PointInTimeRestoreNotEnabled", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "PointInTimeRestoreNotEnabled", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ExportTaskAlreadyExistsFault extends S.TaggedErrorClass()( "ExportTaskAlreadyExistsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "ExportTaskAlreadyExists", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "ExportTaskAlreadyExists", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAlreadyExistsError) {} export class IamRoleMissingPermissionsFault extends S.TaggedErrorClass()( "IamRoleMissingPermissionsFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "IamRoleMissingPermissions", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "IamRoleMissingPermissions", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class IamRoleNotFoundFault extends S.TaggedErrorClass()( "IamRoleNotFoundFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "IamRoleNotFound", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "IamRoleNotFound", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class InvalidExportOnlyFault extends S.TaggedErrorClass()( "InvalidExportOnlyFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidExportOnly", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "InvalidExportOnly", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidExportSourceStateFault extends S.TaggedErrorClass()( "InvalidExportSourceStateFault", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidExportSourceState", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "InvalidExportSourceState", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} //# Operations @@ -12452,6 +12946,8 @@ export type CreateDBClusterError = | StorageQuotaExceededFault | StorageTypeNotSupportedFault | VpcEncryptionControlViolationException + | InvalidParameterCombination + | InvalidParameterValue | CommonErrors; /** * Creates a new Amazon Aurora DB cluster or Multi-AZ DB cluster. @@ -12497,6 +12993,8 @@ export const createDBCluster: API.OperationMethod< StorageQuotaExceededFault, StorageTypeNotSupportedFault, VpcEncryptionControlViolationException, + InvalidParameterCombination, + InvalidParameterValue, ], operationName: "CreateDBCluster", })); @@ -12621,6 +13119,8 @@ export type CreateDBInstanceError = | StorageTypeNotSupportedFault | TenantDatabaseQuotaExceededFault | VpcEncryptionControlViolationException + | InvalidParameterCombination + | InvalidParameterValue | CommonErrors; /** * Creates a new DB instance. @@ -12663,6 +13163,8 @@ export const createDBInstance: API.OperationMethod< StorageTypeNotSupportedFault, TenantDatabaseQuotaExceededFault, VpcEncryptionControlViolationException, + InvalidParameterCombination, + InvalidParameterValue, ], operationName: "CreateDBInstance", })); @@ -15653,6 +16155,8 @@ export type ModifyDBClusterError = | StorageTypeNotAvailableFault | StorageTypeNotSupportedFault | VpcEncryptionControlViolationException + | InvalidParameterCombination + | InvalidParameterValue | CommonErrors; /** * Modifies the settings of an Amazon Aurora DB cluster or a Multi-AZ DB cluster. You can change one or more settings by specifying these parameters and the new values in the request. @@ -15691,6 +16195,8 @@ export const modifyDBCluster: API.OperationMethod< StorageTypeNotAvailableFault, StorageTypeNotSupportedFault, VpcEncryptionControlViolationException, + InvalidParameterCombination, + InvalidParameterValue, ], operationName: "ModifyDBCluster", })); @@ -15801,6 +16307,8 @@ export type ModifyDBInstanceError = | StorageTypeNotSupportedFault | TenantDatabaseQuotaExceededFault | VpcEncryptionControlViolationException + | InvalidParameterCombination + | InvalidParameterValue | CommonErrors; /** * Modifies settings for a DB instance. You can change one or more database configuration parameters by specifying these parameters and the new values in the request. To learn what modifications you can make to your DB instance, call `DescribeValidDBInstanceModifications` before you call `ModifyDBInstance`. @@ -15836,6 +16344,8 @@ export const modifyDBInstance: API.OperationMethod< StorageTypeNotSupportedFault, TenantDatabaseQuotaExceededFault, VpcEncryptionControlViolationException, + InvalidParameterCombination, + InvalidParameterValue, ], operationName: "ModifyDBInstance", })); diff --git a/packages/aws/src/services/redshift-serverless.ts b/packages/aws/src/services/redshift-serverless.ts index 066e585ea8..11d4199090 100644 --- a/packages/aws/src/services/redshift-serverless.ts +++ b/packages/aws/src/services/redshift-serverless.ts @@ -285,13 +285,13 @@ export const GetIdentityCenterAuthTokenRequest = identifier: "GetIdentityCenterAuthTokenRequest", }) as any as S.Schema; export interface GetIdentityCenterAuthTokenResponse { - token?: string; + token?: string | redacted.Redacted; expirationTime?: Date; } export const GetIdentityCenterAuthTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ - token: S.optional(S.String), + token: S.optional(SensitiveString), expirationTime: S.optional( T.DateFromString.pipe(T.TimestampFormat("date-time")), ), @@ -2499,53 +2499,62 @@ export const ListWorkgroupsResponse = /*@__PURE__*/ S.suspend(() => export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { code: S.optional(S.String), message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { message: S.String }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { message: S.String }, - T.Retryable(), + T.all(T.HttpError(500), T.Retryable()), ).pipe(C.withServerError, C.withRetryableError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.String, resourceName: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", { code: S.optional(S.String), message: S.optional(S.String) }, - T.Retryable(), + T.all(T.HttpError(429), T.Retryable()), ).pipe(C.withThrottlingError, C.withRetryableError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", { message: S.String }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class DryRunException extends S.TaggedErrorClass()( "DryRunException", { message: S.String }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidPaginationException extends S.TaggedErrorClass()( "InvalidPaginationException", { message: S.String }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", { message: S.String }, + T.HttpError(402), ).pipe(C.withQuotaError) {} export class TooManyTagsException extends S.TaggedErrorClass()( "TooManyTagsException", { message: S.optional(S.String), resourceName: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InsufficientCapacityException extends S.TaggedErrorClass()( "InsufficientCapacityException", { message: S.String }, - T.Retryable(), + T.all(T.HttpError(400), T.Retryable()), ).pipe(C.withBadRequestError, C.withRetryableError) {} export class Ipv6CidrBlockNotFoundException extends S.TaggedErrorClass()( "Ipv6CidrBlockNotFoundException", { message: S.String }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} //# Operations diff --git a/packages/aws/src/services/repostspace.ts b/packages/aws/src/services/repostspace.ts index 0bc0d2bc7a..c2540d3068 100644 --- a/packages/aws/src/services/repostspace.ts +++ b/packages/aws/src/services/repostspace.ts @@ -131,29 +131,28 @@ export interface BatchAddChannelRoleToAccessorsInput { accessorIds: string[]; channelRole: ChannelRole; } -export const BatchAddChannelRoleToAccessorsInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - spaceId: S.String.pipe(T.HttpLabel("spaceId")), - channelId: S.String.pipe(T.HttpLabel("channelId")), - accessorIds: AccessorIdList, - channelRole: ChannelRole, - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/spaces/{spaceId}/channels/{channelId}/roles", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const BatchAddChannelRoleToAccessorsInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + spaceId: S.String.pipe(T.HttpLabel("spaceId")), + channelId: S.String.pipe(T.HttpLabel("channelId")), + accessorIds: AccessorIdList, + channelRole: ChannelRole, + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/spaces/{spaceId}/channels/{channelId}/roles", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "BatchAddChannelRoleToAccessorsInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "BatchAddChannelRoleToAccessorsInput", +}) as any as S.Schema; export interface BatchError { accessorId: string; error: number; @@ -168,12 +167,11 @@ export interface BatchAddChannelRoleToAccessorsOutput { addedAccessorIds: string[]; errors: BatchError[]; } -export const BatchAddChannelRoleToAccessorsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ addedAccessorIds: AccessorIdList, errors: BatchErrorList }), - ).annotate({ - identifier: "BatchAddChannelRoleToAccessorsOutput", - }) as any as S.Schema; +export const BatchAddChannelRoleToAccessorsOutput = /*@__PURE__*/ S.suspend( + () => S.Struct({ addedAccessorIds: AccessorIdList, errors: BatchErrorList }), +).annotate({ + identifier: "BatchAddChannelRoleToAccessorsOutput", +}) as any as S.Schema; export type ValidationExceptionReason = | "unknownOperation" | "cannotParse" @@ -239,8 +237,8 @@ export interface BatchRemoveChannelRoleFromAccessorsInput { accessorIds: string[]; channelRole: ChannelRole; } -export const BatchRemoveChannelRoleFromAccessorsInput = - /*@__PURE__*/ S.suspend(() => +export const BatchRemoveChannelRoleFromAccessorsInput = /*@__PURE__*/ S.suspend( + () => S.Struct({ spaceId: S.String.pipe(T.HttpLabel("spaceId")), channelId: S.String.pipe(T.HttpLabel("channelId")), @@ -259,9 +257,9 @@ export const BatchRemoveChannelRoleFromAccessorsInput = rules, ), ), - ).annotate({ - identifier: "BatchRemoveChannelRoleFromAccessorsInput", - }) as any as S.Schema; +).annotate({ + identifier: "BatchRemoveChannelRoleFromAccessorsInput", +}) as any as S.Schema; export interface BatchRemoveChannelRoleFromAccessorsOutput { removedAccessorIds: string[]; errors: BatchError[]; @@ -341,21 +339,20 @@ export type Tags = { [key: string]: string | undefined }; export const Tags = /*@__PURE__*/ S.Record(S.String, S.String.pipe(S.optional)); export type FeatureEnableParameter = "ENABLED" | "DISABLED" | (string & {}); export const FeatureEnableParameter = /*@__PURE__*/ S.String; -export type AllowedDomainsList = string | redacted.Redacted[]; +export type AllowedDomainsList = (string | redacted.Redacted)[]; export const AllowedDomainsList = /*@__PURE__*/ S.Array(SensitiveString); export interface SupportedEmailDomainsParameters { enabled?: FeatureEnableParameter; - allowedDomains?: string | redacted.Redacted[]; + allowedDomains?: (string | redacted.Redacted)[]; } -export const SupportedEmailDomainsParameters = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - enabled: S.optional(FeatureEnableParameter), - allowedDomains: S.optional(AllowedDomainsList), - }), - ).annotate({ - identifier: "SupportedEmailDomainsParameters", - }) as any as S.Schema; +export const SupportedEmailDomainsParameters = /*@__PURE__*/ S.suspend(() => + S.Struct({ + enabled: S.optional(FeatureEnableParameter), + allowedDomains: S.optional(AllowedDomainsList), + }), +).annotate({ + identifier: "SupportedEmailDomainsParameters", +}) as any as S.Schema; export interface CreateSpaceInput { name: string | redacted.Redacted; subdomain: string; @@ -552,17 +549,16 @@ export type FeatureEnableStatus = export const FeatureEnableStatus = /*@__PURE__*/ S.String; export interface SupportedEmailDomainsStatus { enabled?: FeatureEnableStatus; - allowedDomains?: string | redacted.Redacted[]; + allowedDomains?: (string | redacted.Redacted)[]; } -export const SupportedEmailDomainsStatus = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - enabled: S.optional(FeatureEnableStatus), - allowedDomains: S.optional(AllowedDomainsList), - }), - ).annotate({ - identifier: "SupportedEmailDomainsStatus", - }) as any as S.Schema; +export const SupportedEmailDomainsStatus = /*@__PURE__*/ S.suspend(() => + S.Struct({ + enabled: S.optional(FeatureEnableStatus), + allowedDomains: S.optional(AllowedDomainsList), + }), +).annotate({ + identifier: "SupportedEmailDomainsStatus", +}) as any as S.Schema; export interface GetSpaceOutput { spaceId: string; arn: string; @@ -773,10 +769,11 @@ export const ListTagsForResourceRequest = /*@__PURE__*/ S.suspend(() => export interface ListTagsForResourceResponse { tags?: { [key: string]: string | undefined }; } -export const ListTagsForResourceResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({ tags: S.optional(Tags) })).annotate({ - identifier: "ListTagsForResourceResponse", - }) as any as S.Schema; +export const ListTagsForResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ tags: S.optional(Tags) }), +).annotate({ + identifier: "ListTagsForResourceResponse", +}) as any as S.Schema; export interface RegisterAdminInput { spaceId: string; adminId: string; @@ -960,6 +957,7 @@ export const UpdateSpaceResponse = /*@__PURE__*/ S.suspend(() => export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.String }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", @@ -967,11 +965,12 @@ export class InternalServerException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.String, resourceId: S.String, resourceType: S.String }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", @@ -981,7 +980,7 @@ export class ThrottlingException extends S.TaggedErrorClass quotaCode: S.optional(S.String), retryAfterSeconds: S.optional(S.Number).pipe(T.HttpHeader("Retry-After")), }, - T.Retryable({ throttling: true }), + T.all(T.HttpError(429), T.Retryable({ throttling: true })), ).pipe(C.withThrottlingError, C.withRetryableError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", @@ -990,10 +989,12 @@ export class ValidationException extends S.TaggedErrorClass reason: ValidationExceptionReason, fieldList: S.optional(ValidationExceptionFieldList), }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { message: S.String, resourceId: S.String, resourceType: S.String }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", @@ -1004,6 +1005,7 @@ export class ServiceQuotaExceededException extends S.TaggedErrorClass - S.Struct({ - RegionList: RegionList, - AggregatorRegions: S.optional(RegionList), - ViewName: S.String, - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/CreateResourceExplorerSetup" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateResourceExplorerSetupInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RegionList: RegionList, + AggregatorRegions: S.optional(RegionList), + ViewName: S.String, + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/CreateResourceExplorerSetup" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateResourceExplorerSetupInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateResourceExplorerSetupInput", +}) as any as S.Schema; export interface CreateResourceExplorerSetupOutput { TaskId: string; } -export const CreateResourceExplorerSetupOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({ TaskId: S.String })).annotate({ - identifier: "CreateResourceExplorerSetupOutput", - }) as any as S.Schema; +export const CreateResourceExplorerSetupOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ TaskId: S.String }), +).annotate({ + identifier: "CreateResourceExplorerSetupOutput", +}) as any as S.Schema; export interface DeleteResourceExplorerSetupInput { RegionList?: string[]; DeleteInAllRegions?: boolean; } -export const DeleteResourceExplorerSetupInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RegionList: S.optional(RegionList), - DeleteInAllRegions: S.optional(S.Boolean), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/DeleteResourceExplorerSetup" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteResourceExplorerSetupInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RegionList: S.optional(RegionList), + DeleteInAllRegions: S.optional(S.Boolean), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/DeleteResourceExplorerSetup" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteResourceExplorerSetupInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteResourceExplorerSetupInput", +}) as any as S.Schema; export interface DeleteResourceExplorerSetupOutput { TaskId: string; } -export const DeleteResourceExplorerSetupOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({ TaskId: S.String })).annotate({ - identifier: "DeleteResourceExplorerSetupOutput", - }) as any as S.Schema; +export const DeleteResourceExplorerSetupOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ TaskId: S.String }), +).annotate({ + identifier: "DeleteResourceExplorerSetupOutput", +}) as any as S.Schema; export interface DisassociateDefaultViewRequest {} -export const DisassociateDefaultViewRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({}).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), +export const DisassociateDefaultViewRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe( + T.all( + T.Http({ method: "POST", uri: "/DisassociateDefaultView" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DisassociateDefaultViewRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DisassociateDefaultViewRequest", +}) as any as S.Schema; export interface DisassociateDefaultViewResponse {} -export const DisassociateDefaultViewResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DisassociateDefaultViewResponse", - }) as any as S.Schema; +export const DisassociateDefaultViewResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DisassociateDefaultViewResponse", +}) as any as S.Schema; export interface GetAccountLevelServiceConfigurationRequest {} export const GetAccountLevelServiceConfigurationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + T.all( + T.Http({ method: "POST", uri: "/GetAccountLevelServiceConfiguration" }), + svc, + auth, + proto, + ver, + rules, + ), ), ).annotate({ identifier: "GetAccountLevelServiceConfigurationRequest", @@ -301,7 +315,14 @@ export const GetAccountLevelServiceConfigurationOutput = export interface GetDefaultViewRequest {} export const GetDefaultViewRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + T.all( + T.Http({ method: "POST", uri: "/GetDefaultView" }), + svc, + auth, + proto, + ver, + rules, + ), ), ).annotate({ identifier: "GetDefaultViewRequest", @@ -317,7 +338,14 @@ export const GetDefaultViewOutput = /*@__PURE__*/ S.suspend(() => export interface GetIndexRequest {} export const GetIndexRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + T.all( + T.Http({ method: "POST", uri: "/GetIndex" }), + svc, + auth, + proto, + ver, + rules, + ), ), ).annotate({ identifier: "GetIndexRequest", @@ -411,25 +439,24 @@ export interface GetResourceExplorerSetupInput { MaxResults?: number; NextToken?: string; } -export const GetResourceExplorerSetupInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TaskId: S.String, - MaxResults: S.optional(S.Number), - NextToken: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/GetResourceExplorerSetup" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetResourceExplorerSetupInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TaskId: S.String, + MaxResults: S.optional(S.Number), + NextToken: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/GetResourceExplorerSetup" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetResourceExplorerSetupInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetResourceExplorerSetupInput", +}) as any as S.Schema; export interface Index { Region?: string; Arn?: string; @@ -491,19 +518,25 @@ export interface GetResourceExplorerSetupOutput { Regions?: RegionStatus[]; NextToken?: string; } -export const GetResourceExplorerSetupOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Regions: S.optional(RegionStatusList), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "GetResourceExplorerSetupOutput", - }) as any as S.Schema; +export const GetResourceExplorerSetupOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Regions: S.optional(RegionStatusList), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "GetResourceExplorerSetupOutput", +}) as any as S.Schema; export interface GetServiceIndexRequest {} export const GetServiceIndexRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + T.all( + T.Http({ method: "POST", uri: "/GetServiceIndex" }), + svc, + auth, + proto, + ver, + rules, + ), ), ).annotate({ identifier: "GetServiceIndexRequest", @@ -621,15 +654,14 @@ export interface ListIndexesForMembersOutput { Indexes?: MemberIndex[]; NextToken?: string; } -export const ListIndexesForMembersOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Indexes: S.optional(MemberIndexList), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListIndexesForMembersOutput", - }) as any as S.Schema; +export const ListIndexesForMembersOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Indexes: S.optional(MemberIndexList), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListIndexesForMembersOutput", +}) as any as S.Schema; export interface ListManagedViewsInput { MaxResults?: number; NextToken?: string; @@ -780,10 +812,7 @@ export interface ListServiceIndexesOutput { NextToken?: string; } export const ListServiceIndexesOutput = /*@__PURE__*/ S.suspend(() => - S.Struct({ - Indexes: S.optional(IndexList), - NextToken: S.optional(S.String), - }), + S.Struct({ Indexes: S.optional(IndexList), NextToken: S.optional(S.String) }), ).annotate({ identifier: "ListServiceIndexesOutput", }) as any as S.Schema; @@ -826,24 +855,23 @@ export interface ListStreamingAccessForServicesInput { MaxResults?: number; NextToken?: string; } -export const ListStreamingAccessForServicesInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - MaxResults: S.optional(S.Number), - NextToken: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/ListStreamingAccessForServices" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListStreamingAccessForServicesInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + MaxResults: S.optional(S.Number), + NextToken: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/ListStreamingAccessForServices" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListStreamingAccessForServicesInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListStreamingAccessForServicesInput", +}) as any as S.Schema; export interface StreamingAccessDetails { ServicePrincipal: string; CreatedAt: Date; @@ -864,37 +892,36 @@ export interface ListStreamingAccessForServicesOutput { StreamingAccessForServices: StreamingAccessDetails[]; NextToken?: string; } -export const ListStreamingAccessForServicesOutput = - /*@__PURE__*/ S.suspend(() => +export const ListStreamingAccessForServicesOutput = /*@__PURE__*/ S.suspend( + () => S.Struct({ StreamingAccessForServices: StreamingAccessDetailsList, NextToken: S.optional(S.String), }), - ).annotate({ - identifier: "ListStreamingAccessForServicesOutput", - }) as any as S.Schema; +).annotate({ + identifier: "ListStreamingAccessForServicesOutput", +}) as any as S.Schema; export interface ListSupportedResourceTypesInput { NextToken?: string; MaxResults?: number; } -export const ListSupportedResourceTypesInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - NextToken: S.optional(S.String), - MaxResults: S.optional(S.Number), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/ListSupportedResourceTypes" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListSupportedResourceTypesInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + NextToken: S.optional(S.String), + MaxResults: S.optional(S.Number), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/ListSupportedResourceTypes" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListSupportedResourceTypesInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListSupportedResourceTypesInput", +}) as any as S.Schema; export type CFNResourceTypeList = string[]; export const CFNResourceTypeList = /*@__PURE__*/ S.Array(S.String); export interface SupportedResourceType { @@ -917,15 +944,14 @@ export interface ListSupportedResourceTypesOutput { ResourceTypes?: SupportedResourceType[]; NextToken?: string; } -export const ListSupportedResourceTypesOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResourceTypes: S.optional(ResourceTypeList), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListSupportedResourceTypesOutput", - }) as any as S.Schema; +export const ListSupportedResourceTypesOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResourceTypes: S.optional(ResourceTypeList), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListSupportedResourceTypesOutput", +}) as any as S.Schema; export interface ListTagsForResourceInput { resourceArn: string; } @@ -1367,34 +1393,42 @@ export const AssociateDefaultViewOutput = /*@__PURE__*/ S.suspend(() => export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { Message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", { Message: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class UnauthorizedException extends S.TaggedErrorClass()( "UnauthorizedException", { Message: S.optional(S.String) }, + T.HttpError(401), ).pipe(C.withAuthError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", { Message: S.String, FieldList: S.optional(ValidationExceptionFieldList) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { Message: S.String }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", { Message: S.String, Name: S.String, Value: S.String }, + T.HttpError(402), ).pipe(C.withQuotaError) {} //# Operations diff --git a/packages/aws/src/services/resource-groups.ts b/packages/aws/src/services/resource-groups.ts index fd6d9a42d3..78a06555b7 100644 --- a/packages/aws/src/services/resource-groups.ts +++ b/packages/aws/src/services/resource-groups.ts @@ -159,21 +159,21 @@ export const ResourceQuery = /*@__PURE__*/ S.suspend(() => export type Tags = { [key: string]: string | undefined }; export const Tags = /*@__PURE__*/ S.Record(S.String, S.String.pipe(S.optional)); export type GroupConfigurationParameterValueList = string[]; -export const GroupConfigurationParameterValueList = - /*@__PURE__*/ S.Array(S.String); +export const GroupConfigurationParameterValueList = /*@__PURE__*/ S.Array( + S.String, +); export interface GroupConfigurationParameter { Name: string; Values?: string[]; } -export const GroupConfigurationParameter = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Name: S.String, - Values: S.optional(GroupConfigurationParameterValueList), - }), - ).annotate({ - identifier: "GroupConfigurationParameter", - }) as any as S.Schema; +export const GroupConfigurationParameter = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.String, + Values: S.optional(GroupConfigurationParameterValueList), + }), +).annotate({ + identifier: "GroupConfigurationParameter", +}) as any as S.Schema; export type GroupParameterList = GroupConfigurationParameter[]; export const GroupParameterList = /*@__PURE__*/ S.Array( GroupConfigurationParameter, @@ -272,14 +272,14 @@ export const GroupConfiguration = /*@__PURE__*/ S.suspend(() => identifier: "GroupConfiguration", }) as any as S.Schema; export interface CreateGroupOutput { - Group?: Group; + Group: Group; ResourceQuery?: ResourceQuery; Tags?: { [key: string]: string | undefined }; GroupConfiguration?: GroupConfiguration; } export const CreateGroupOutput = /*@__PURE__*/ S.suspend(() => S.Struct({ - Group: S.optional(Group), + Group: Group, ResourceQuery: S.optional(ResourceQuery), Tags: S.optional(Tags), GroupConfiguration: S.optional(GroupConfiguration), @@ -319,7 +319,14 @@ export const DeleteGroupOutput = /*@__PURE__*/ S.suspend(() => export interface GetAccountSettingsRequest {} export const GetAccountSettingsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + T.all( + T.Http({ method: "POST", uri: "/get-account-settings" }), + svc, + auth, + proto, + ver, + rules, + ), ), ).annotate({ identifier: "GetAccountSettingsRequest", @@ -380,10 +387,10 @@ export const GetGroupInput = /*@__PURE__*/ S.suspend(() => ), ).annotate({ identifier: "GetGroupInput" }) as any as S.Schema; export interface GetGroupOutput { - Group?: Group; + Group: Group; } export const GetGroupOutput = /*@__PURE__*/ S.suspend(() => - S.Struct({ Group: S.optional(Group) }), + S.Struct({ Group: Group }), ).annotate({ identifier: "GetGroupOutput" }) as any as S.Schema; export interface GetGroupConfigurationInput { Group?: string; @@ -405,12 +412,11 @@ export const GetGroupConfigurationInput = /*@__PURE__*/ S.suspend(() => export interface GetGroupConfigurationOutput { GroupConfiguration?: GroupConfiguration; } -export const GetGroupConfigurationOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ GroupConfiguration: S.optional(GroupConfiguration) }), - ).annotate({ - identifier: "GetGroupConfigurationOutput", - }) as any as S.Schema; +export const GetGroupConfigurationOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ GroupConfiguration: S.optional(GroupConfiguration) }), +).annotate({ + identifier: "GetGroupConfigurationOutput", +}) as any as S.Schema; export interface GetGroupQueryInput { GroupName?: string; Group?: string; @@ -594,8 +600,9 @@ export const ListGroupingStatusesFilter = /*@__PURE__*/ S.suspend(() => identifier: "ListGroupingStatusesFilter", }) as any as S.Schema; export type ListGroupingStatusesFilterList = ListGroupingStatusesFilter[]; -export const ListGroupingStatusesFilterList = - /*@__PURE__*/ S.Array(ListGroupingStatusesFilter); +export const ListGroupingStatusesFilterList = /*@__PURE__*/ S.Array( + ListGroupingStatusesFilter, +); export interface ListGroupingStatusesInput { Group: string; MaxResults?: number; @@ -864,10 +871,7 @@ export interface ListTagSyncTasksFilter { GroupName?: string; } export const ListTagSyncTasksFilter = /*@__PURE__*/ S.suspend(() => - S.Struct({ - GroupArn: S.optional(S.String), - GroupName: S.optional(S.String), - }), + S.Struct({ GroupArn: S.optional(S.String), GroupName: S.optional(S.String) }), ).annotate({ identifier: "ListTagSyncTasksFilter", }) as any as S.Schema; @@ -962,10 +966,11 @@ export const PutGroupConfigurationInput = /*@__PURE__*/ S.suspend(() => identifier: "PutGroupConfigurationInput", }) as any as S.Schema; export interface PutGroupConfigurationOutput {} -export const PutGroupConfigurationOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "PutGroupConfigurationOutput", - }) as any as S.Schema; +export const PutGroupConfigurationOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "PutGroupConfigurationOutput", +}) as any as S.Schema; export interface SearchResourcesInput { ResourceQuery: ResourceQuery; MaxResults?: number; @@ -1156,12 +1161,11 @@ export const UpdateAccountSettingsInput = /*@__PURE__*/ S.suspend(() => export interface UpdateAccountSettingsOutput { AccountSettings?: AccountSettings; } -export const UpdateAccountSettingsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ AccountSettings: S.optional(AccountSettings) }), - ).annotate({ - identifier: "UpdateAccountSettingsOutput", - }) as any as S.Schema; +export const UpdateAccountSettingsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ AccountSettings: S.optional(AccountSettings) }), +).annotate({ + identifier: "UpdateAccountSettingsOutput", +}) as any as S.Schema; export interface UpdateGroupInput { GroupName?: string; Group?: string; @@ -1235,30 +1239,45 @@ export const UpdateGroupQueryOutput = /*@__PURE__*/ S.suspend(() => export class BadRequestException extends S.TaggedErrorClass()( "BadRequestException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ForbiddenException extends S.TaggedErrorClass()( "ForbiddenException", { Message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class InternalServerErrorException extends S.TaggedErrorClass()( "InternalServerErrorException", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class MethodNotAllowedException extends S.TaggedErrorClass()( "MethodNotAllowedException", { Message: S.optional(S.String) }, + T.HttpError(405), ).pipe(C.withBadRequestError) {} export class TooManyRequestsException extends S.TaggedErrorClass()( "TooManyRequestsException", { Message: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class UnauthorizedException extends S.TaggedErrorClass()( "UnauthorizedException", { Message: S.optional(S.String) }, + T.HttpError(401), ).pipe(C.withAuthError) {} +export class GroupAlreadyExists extends S.TaggedErrorClass()( + "GroupAlreadyExists", + { Message: S.optional(S.String) }, + T.SyntheticError({ + from: "BadRequestException", + message: { includes: "group already exists" }, + }), +).pipe(C.withAlreadyExistsError) {} export class NotFoundException extends S.TaggedErrorClass()( "NotFoundException", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} //# Operations @@ -1305,6 +1324,7 @@ export type CreateGroupError = | InternalServerErrorException | MethodNotAllowedException | TooManyRequestsException + | GroupAlreadyExists | CommonErrors; /** * Creates a resource group with the specified name and description. You can optionally @@ -1333,6 +1353,7 @@ export const createGroup: API.OperationMethod< InternalServerErrorException, MethodNotAllowedException, TooManyRequestsException, + GroupAlreadyExists, ], operationName: "CreateGroup", })); @@ -1632,6 +1653,7 @@ export type ListGroupingStatusesError = | InternalServerErrorException | MethodNotAllowedException | TooManyRequestsException + | NotFoundException | CommonErrors; /** * Returns the status of the last grouping or ungrouping action for @@ -1666,6 +1688,7 @@ export const listGroupingStatuses: API.OperationMethod< InternalServerErrorException, MethodNotAllowedException, TooManyRequestsException, + NotFoundException, ], operationName: "ListGroupingStatuses", pagination: { diff --git a/packages/aws/src/services/rolesanywhere.ts b/packages/aws/src/services/rolesanywhere.ts index 51ce2ea594..5fe1d43ce1 100644 --- a/packages/aws/src/services/rolesanywhere.ts +++ b/packages/aws/src/services/rolesanywhere.ts @@ -129,12 +129,11 @@ export const TagList = /*@__PURE__*/ S.Array(Tag); export interface ListTagsForResourceResponse { tags?: Tag[]; } -export const ListTagsForResourceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ tags: S.optional(TagList) }), - ).annotate({ - identifier: "ListTagsForResourceResponse", - }) as any as S.Schema; +export const ListTagsForResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ tags: S.optional(TagList) }), +).annotate({ + identifier: "ListTagsForResourceResponse", +}) as any as S.Schema; export interface NotificationSetting { enabled: boolean; event: string; @@ -157,24 +156,23 @@ export interface PutNotificationSettingsRequest { trustAnchorId: string; notificationSettings: NotificationSetting[]; } -export const PutNotificationSettingsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - trustAnchorId: S.String, - notificationSettings: NotificationSettings, - }).pipe( - T.all( - T.Http({ method: "PATCH", uri: "/put-notifications-settings" }), - svc, - auth, - proto, - ver, - rules, - ), +export const PutNotificationSettingsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + trustAnchorId: S.String, + notificationSettings: NotificationSettings, + }).pipe( + T.all( + T.Http({ method: "PATCH", uri: "/put-notifications-settings" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "PutNotificationSettingsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "PutNotificationSettingsRequest", +}) as any as S.Schema; export type SourceData = | { x509CertificateData: string; acmPcaArn?: never } | { x509CertificateData?: never; acmPcaArn: string }; @@ -245,12 +243,11 @@ export const TrustAnchorDetail = /*@__PURE__*/ S.suspend(() => export interface PutNotificationSettingsResponse { trustAnchor: TrustAnchorDetail; } -export const PutNotificationSettingsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ trustAnchor: TrustAnchorDetail }), - ).annotate({ - identifier: "PutNotificationSettingsResponse", - }) as any as S.Schema; +export const PutNotificationSettingsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ trustAnchor: TrustAnchorDetail }), +).annotate({ + identifier: "PutNotificationSettingsResponse", +}) as any as S.Schema; export interface NotificationSettingKey { event: string; channel?: string; @@ -268,33 +265,31 @@ export interface ResetNotificationSettingsRequest { trustAnchorId: string; notificationSettingKeys: NotificationSettingKey[]; } -export const ResetNotificationSettingsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - trustAnchorId: S.String, - notificationSettingKeys: NotificationSettingKeys, - }).pipe( - T.all( - T.Http({ method: "PATCH", uri: "/reset-notifications-settings" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ResetNotificationSettingsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + trustAnchorId: S.String, + notificationSettingKeys: NotificationSettingKeys, + }).pipe( + T.all( + T.Http({ method: "PATCH", uri: "/reset-notifications-settings" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ResetNotificationSettingsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ResetNotificationSettingsRequest", +}) as any as S.Schema; export interface ResetNotificationSettingsResponse { trustAnchor: TrustAnchorDetail; } -export const ResetNotificationSettingsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ trustAnchor: TrustAnchorDetail }), - ).annotate({ - identifier: "ResetNotificationSettingsResponse", - }) as any as S.Schema; +export const ResetNotificationSettingsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ trustAnchor: TrustAnchorDetail }), +).annotate({ + identifier: "ResetNotificationSettingsResponse", +}) as any as S.Schema; export interface TagResourceRequest { resourceArn: string; tags: Tag[]; @@ -319,11 +314,11 @@ export const TagResourceResponse = /*@__PURE__*/ S.suspend(() => ).annotate({ identifier: "TagResourceResponse", }) as any as S.Schema; -export type TagKeyList = string | redacted.Redacted[]; +export type TagKeyList = (string | redacted.Redacted)[]; export const TagKeyList = /*@__PURE__*/ S.Array(SensitiveString); export interface UntagResourceRequest { resourceArn: string; - tagKeys: string | redacted.Redacted[]; + tagKeys: (string | redacted.Redacted)[]; } export const UntagResourceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ resourceArn: S.String, tagKeys: TagKeyList }).pipe( @@ -412,7 +407,7 @@ export interface ScalarCrlRequest { export const ScalarCrlRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ crlId: S.String.pipe(T.HttpLabel("crlId")) }).pipe( T.all( - T.Http({ method: "GET", uri: "/crl/{crlId}" }), + T.Http({ method: "DELETE", uri: "/crl/{crlId}" }), svc, auth, proto, @@ -423,6 +418,10 @@ export const ScalarCrlRequest = /*@__PURE__*/ S.suspend(() => ).annotate({ identifier: "ScalarCrlRequest", }) as any as S.Schema; +export interface GetCrlRequest extends ScalarCrlRequest {} +export const GetCrlRequest = /*@__PURE__*/ ScalarCrlRequest.pipe( + T.Http({ method: "GET", uri: "/crl/{crlId}" }), +).annotate({ identifier: "GetCrlRequest" }) as any as S.Schema; export interface UpdateCrlRequest { crlId: string; name?: string; @@ -456,7 +455,7 @@ export const ListRequest = /*@__PURE__*/ S.suspend(() => pageSize: S.optional(S.Number).pipe(T.HttpQuery("pageSize")), }).pipe( T.all( - T.Http({ method: "GET", uri: "/trustanchors" }), + T.Http({ method: "GET", uri: "/crls" }), svc, auth, proto, @@ -476,6 +475,18 @@ export const ListCrlsResponse = /*@__PURE__*/ S.suspend(() => ).annotate({ identifier: "ListCrlsResponse", }) as any as S.Schema; +export interface DisableCrlRequest extends ScalarCrlRequest {} +export const DisableCrlRequest = /*@__PURE__*/ ScalarCrlRequest.pipe( + T.Http({ method: "POST", uri: "/crl/{crlId}/disable" }), +).annotate({ + identifier: "DisableCrlRequest", +}) as any as S.Schema; +export interface EnableCrlRequest extends ScalarCrlRequest {} +export const EnableCrlRequest = /*@__PURE__*/ ScalarCrlRequest.pipe( + T.Http({ method: "POST", uri: "/crl/{crlId}/enable" }), +).annotate({ + identifier: "EnableCrlRequest", +}) as any as S.Schema; export type RoleArnList = string[]; export const RoleArnList = /*@__PURE__*/ S.Array(S.String); export type ManagedPolicyList = string[]; @@ -589,7 +600,7 @@ export interface ScalarProfileRequest { export const ScalarProfileRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ profileId: S.String.pipe(T.HttpLabel("profileId")) }).pipe( T.all( - T.Http({ method: "GET", uri: "/profile/{profileId}" }), + T.Http({ method: "DELETE", uri: "/profile/{profileId}" }), svc, auth, proto, @@ -600,6 +611,12 @@ export const ScalarProfileRequest = /*@__PURE__*/ S.suspend(() => ).annotate({ identifier: "ScalarProfileRequest", }) as any as S.Schema; +export interface GetProfileRequest extends ScalarProfileRequest {} +export const GetProfileRequest = /*@__PURE__*/ ScalarProfileRequest.pipe( + T.Http({ method: "GET", uri: "/profile/{profileId}" }), +).annotate({ + identifier: "GetProfileRequest", +}) as any as S.Schema; export interface UpdateProfileRequest { profileId: string; name?: string; @@ -631,6 +648,12 @@ export const UpdateProfileRequest = /*@__PURE__*/ S.suspend(() => ).annotate({ identifier: "UpdateProfileRequest", }) as any as S.Schema; +export interface ListProfilesRequest extends ListRequest {} +export const ListProfilesRequest = /*@__PURE__*/ ListRequest.pipe( + T.Http({ method: "GET", uri: "/profiles" }), +).annotate({ + identifier: "ListProfilesRequest", +}) as any as S.Schema; export type ProfileDetails = ProfileDetail[]; export const ProfileDetails = /*@__PURE__*/ S.Array(ProfileDetail); export interface ListProfilesResponse { @@ -652,32 +675,44 @@ export interface DeleteAttributeMappingRequest { certificateField: string; specifiers?: string[]; } -export const DeleteAttributeMappingRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - profileId: S.String.pipe(T.HttpLabel("profileId")), - certificateField: S.String.pipe(T.HttpQuery("certificateField")), - specifiers: S.optional(SpecifierList).pipe(T.HttpQuery("specifiers")), - }).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/profiles/{profileId}/mappings" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteAttributeMappingRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + profileId: S.String.pipe(T.HttpLabel("profileId")), + certificateField: S.String.pipe(T.HttpQuery("certificateField")), + specifiers: S.optional(SpecifierList).pipe(T.HttpQuery("specifiers")), + }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/profiles/{profileId}/mappings" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteAttributeMappingRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteAttributeMappingRequest", +}) as any as S.Schema; export interface DeleteAttributeMappingResponse { profile: ProfileDetail; } -export const DeleteAttributeMappingResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({ profile: ProfileDetail })).annotate({ - identifier: "DeleteAttributeMappingResponse", - }) as any as S.Schema; +export const DeleteAttributeMappingResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ profile: ProfileDetail }), +).annotate({ + identifier: "DeleteAttributeMappingResponse", +}) as any as S.Schema; +export interface DisableProfileRequest extends ScalarProfileRequest {} +export const DisableProfileRequest = /*@__PURE__*/ ScalarProfileRequest.pipe( + T.Http({ method: "POST", uri: "/profile/{profileId}/disable" }), +).annotate({ + identifier: "DisableProfileRequest", +}) as any as S.Schema; +export interface EnableProfileRequest extends ScalarProfileRequest {} +export const EnableProfileRequest = /*@__PURE__*/ ScalarProfileRequest.pipe( + T.Http({ method: "POST", uri: "/profile/{profileId}/enable" }), +).annotate({ + identifier: "EnableProfileRequest", +}) as any as S.Schema; export interface PutAttributeMappingRequest { profileId: string; certificateField: string; @@ -704,10 +739,11 @@ export const PutAttributeMappingRequest = /*@__PURE__*/ S.suspend(() => export interface PutAttributeMappingResponse { profile: ProfileDetail; } -export const PutAttributeMappingResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({ profile: ProfileDetail })).annotate({ - identifier: "PutAttributeMappingResponse", - }) as any as S.Schema; +export const PutAttributeMappingResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ profile: ProfileDetail }), +).annotate({ + identifier: "PutAttributeMappingResponse", +}) as any as S.Schema; export interface ScalarSubjectRequest { subjectId: string; } @@ -806,6 +842,12 @@ export const SubjectDetailResponse = /*@__PURE__*/ S.suspend(() => ).annotate({ identifier: "SubjectDetailResponse", }) as any as S.Schema; +export interface ListSubjectsRequest extends ListRequest {} +export const ListSubjectsRequest = /*@__PURE__*/ ListRequest.pipe( + T.Http({ method: "GET", uri: "/subjects" }), +).annotate({ + identifier: "ListSubjectsRequest", +}) as any as S.Schema; export interface SubjectSummary { subjectArn?: string; subjectId?: string; @@ -885,11 +927,9 @@ export interface ScalarTrustAnchorRequest { trustAnchorId: string; } export const ScalarTrustAnchorRequest = /*@__PURE__*/ S.suspend(() => - S.Struct({ - trustAnchorId: S.String.pipe(T.HttpLabel("trustAnchorId")), - }).pipe( + S.Struct({ trustAnchorId: S.String.pipe(T.HttpLabel("trustAnchorId")) }).pipe( T.all( - T.Http({ method: "GET", uri: "/trustanchor/{trustAnchorId}" }), + T.Http({ method: "DELETE", uri: "/trustanchor/{trustAnchorId}" }), svc, auth, proto, @@ -900,6 +940,13 @@ export const ScalarTrustAnchorRequest = /*@__PURE__*/ S.suspend(() => ).annotate({ identifier: "ScalarTrustAnchorRequest", }) as any as S.Schema; +export interface GetTrustAnchorRequest extends ScalarTrustAnchorRequest {} +export const GetTrustAnchorRequest = + /*@__PURE__*/ ScalarTrustAnchorRequest.pipe( + T.Http({ method: "GET", uri: "/trustanchor/{trustAnchorId}" }), + ).annotate({ + identifier: "GetTrustAnchorRequest", + }) as any as S.Schema; export interface UpdateTrustAnchorRequest { trustAnchorId: string; name?: string; @@ -923,6 +970,12 @@ export const UpdateTrustAnchorRequest = /*@__PURE__*/ S.suspend(() => ).annotate({ identifier: "UpdateTrustAnchorRequest", }) as any as S.Schema; +export interface ListTrustAnchorsRequest extends ListRequest {} +export const ListTrustAnchorsRequest = /*@__PURE__*/ ListRequest.pipe( + T.Http({ method: "GET", uri: "/trustanchors" }), +).annotate({ + identifier: "ListTrustAnchorsRequest", +}) as any as S.Schema; export type TrustAnchorDetails = TrustAnchorDetail[]; export const TrustAnchorDetails = /*@__PURE__*/ S.Array(TrustAnchorDetail); export interface ListTrustAnchorsResponse { @@ -937,23 +990,41 @@ export const ListTrustAnchorsResponse = /*@__PURE__*/ S.suspend(() => ).annotate({ identifier: "ListTrustAnchorsResponse", }) as any as S.Schema; +export interface DisableTrustAnchorRequest extends ScalarTrustAnchorRequest {} +export const DisableTrustAnchorRequest = + /*@__PURE__*/ ScalarTrustAnchorRequest.pipe( + T.Http({ method: "POST", uri: "/trustanchor/{trustAnchorId}/disable" }), + ).annotate({ + identifier: "DisableTrustAnchorRequest", + }) as any as S.Schema; +export interface EnableTrustAnchorRequest extends ScalarTrustAnchorRequest {} +export const EnableTrustAnchorRequest = + /*@__PURE__*/ ScalarTrustAnchorRequest.pipe( + T.Http({ method: "POST", uri: "/trustanchor/{trustAnchorId}/enable" }), + ).annotate({ + identifier: "EnableTrustAnchorRequest", + }) as any as S.Schema; //# Errors export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyTagsException extends S.TaggedErrorClass()( "TooManyTagsException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} //# Operations @@ -1113,12 +1184,12 @@ export type GetCrlError = ResourceNotFoundException | CommonErrors; * **Required permissions: ** `rolesanywhere:GetCrl`. */ export const getCrl: API.OperationMethod< - ScalarCrlRequest, + GetCrlRequest, CrlDetailResponse, GetCrlError, Credentials | Region | HttpClient.HttpClient > = /*@__PURE__*/ API.make(() => ({ - input: ScalarCrlRequest, + input: GetCrlRequest, output: CrlDetailResponse, errors: [ResourceNotFoundException], operationName: "GetCrl", @@ -1218,12 +1289,12 @@ export type DisableCrlError = * **Required permissions: ** `rolesanywhere:DisableCrl`. */ export const disableCrl: API.OperationMethod< - ScalarCrlRequest, + DisableCrlRequest, CrlDetailResponse, DisableCrlError, Credentials | Region | HttpClient.HttpClient > = /*@__PURE__*/ API.make(() => ({ - input: ScalarCrlRequest, + input: DisableCrlRequest, output: CrlDetailResponse, errors: [AccessDeniedException, ResourceNotFoundException], operationName: "DisableCrl", @@ -1238,12 +1309,12 @@ export type EnableCrlError = * **Required permissions: ** `rolesanywhere:EnableCrl`. */ export const enableCrl: API.OperationMethod< - ScalarCrlRequest, + EnableCrlRequest, CrlDetailResponse, EnableCrlError, Credentials | Region | HttpClient.HttpClient > = /*@__PURE__*/ API.make(() => ({ - input: ScalarCrlRequest, + input: EnableCrlRequest, output: CrlDetailResponse, errors: [AccessDeniedException, ResourceNotFoundException], operationName: "EnableCrl", @@ -1278,12 +1349,12 @@ export type GetProfileError = * **Required permissions: ** `rolesanywhere:GetProfile`. */ export const getProfile: API.OperationMethod< - ScalarProfileRequest, + GetProfileRequest, ProfileDetailResponse, GetProfileError, Credentials | Region | HttpClient.HttpClient > = /*@__PURE__*/ API.make(() => ({ - input: ScalarProfileRequest, + input: GetProfileRequest, output: ProfileDetailResponse, errors: [AccessDeniedException, ResourceNotFoundException], operationName: "GetProfile", @@ -1343,27 +1414,27 @@ export type ListProfilesError = * **Required permissions: ** `rolesanywhere:ListProfiles`. */ export const listProfiles: API.OperationMethod< - ListRequest, + ListProfilesRequest, ListProfilesResponse, ListProfilesError, Credentials | Region | HttpClient.HttpClient > & { pages: ( - input: ListRequest, + input: ListProfilesRequest, ) => stream.Stream< ListProfilesResponse, ListProfilesError, Credentials | Region | HttpClient.HttpClient >; items: ( - input: ListRequest, + input: ListProfilesRequest, ) => stream.Stream< ProfileDetail, ListProfilesError, Credentials | Region | HttpClient.HttpClient >; } = /*@__PURE__*/ API.makePaginated(() => ({ - input: ListRequest, + input: ListProfilesRequest, output: ListProfilesResponse, errors: [AccessDeniedException, ValidationException], operationName: "ListProfiles", @@ -1406,12 +1477,12 @@ export type DisableProfileError = * **Required permissions: ** `rolesanywhere:DisableProfile`. */ export const disableProfile: API.OperationMethod< - ScalarProfileRequest, + DisableProfileRequest, ProfileDetailResponse, DisableProfileError, Credentials | Region | HttpClient.HttpClient > = /*@__PURE__*/ API.make(() => ({ - input: ScalarProfileRequest, + input: DisableProfileRequest, output: ProfileDetailResponse, errors: [AccessDeniedException, ResourceNotFoundException], operationName: "DisableProfile", @@ -1426,12 +1497,12 @@ export type EnableProfileError = * **Required permissions: ** `rolesanywhere:EnableProfile`. */ export const enableProfile: API.OperationMethod< - ScalarProfileRequest, + EnableProfileRequest, ProfileDetailResponse, EnableProfileError, Credentials | Region | HttpClient.HttpClient > = /*@__PURE__*/ API.make(() => ({ - input: ScalarProfileRequest, + input: EnableProfileRequest, output: ProfileDetailResponse, errors: [AccessDeniedException, ResourceNotFoundException], operationName: "EnableProfile", @@ -1489,27 +1560,27 @@ export type ListSubjectsError = * **Required permissions: ** `rolesanywhere:ListSubjects`. */ export const listSubjects: API.OperationMethod< - ListRequest, + ListSubjectsRequest, ListSubjectsResponse, ListSubjectsError, Credentials | Region | HttpClient.HttpClient > & { pages: ( - input: ListRequest, + input: ListSubjectsRequest, ) => stream.Stream< ListSubjectsResponse, ListSubjectsError, Credentials | Region | HttpClient.HttpClient >; items: ( - input: ListRequest, + input: ListSubjectsRequest, ) => stream.Stream< SubjectSummary, ListSubjectsError, Credentials | Region | HttpClient.HttpClient >; } = /*@__PURE__*/ API.makePaginated(() => ({ - input: ListRequest, + input: ListSubjectsRequest, output: ListSubjectsResponse, errors: [AccessDeniedException, ValidationException], operationName: "ListSubjects", @@ -1550,12 +1621,12 @@ export type GetTrustAnchorError = * **Required permissions: ** `rolesanywhere:GetTrustAnchor`. */ export const getTrustAnchor: API.OperationMethod< - ScalarTrustAnchorRequest, + GetTrustAnchorRequest, TrustAnchorDetailResponse, GetTrustAnchorError, Credentials | Region | HttpClient.HttpClient > = /*@__PURE__*/ API.make(() => ({ - input: ScalarTrustAnchorRequest, + input: GetTrustAnchorRequest, output: TrustAnchorDetailResponse, errors: [ AccessDeniedException, @@ -1619,27 +1690,27 @@ export type ListTrustAnchorsError = * **Required permissions: ** `rolesanywhere:ListTrustAnchors`. */ export const listTrustAnchors: API.OperationMethod< - ListRequest, + ListTrustAnchorsRequest, ListTrustAnchorsResponse, ListTrustAnchorsError, Credentials | Region | HttpClient.HttpClient > & { pages: ( - input: ListRequest, + input: ListTrustAnchorsRequest, ) => stream.Stream< ListTrustAnchorsResponse, ListTrustAnchorsError, Credentials | Region | HttpClient.HttpClient >; items: ( - input: ListRequest, + input: ListTrustAnchorsRequest, ) => stream.Stream< TrustAnchorDetail, ListTrustAnchorsError, Credentials | Region | HttpClient.HttpClient >; } = /*@__PURE__*/ API.makePaginated(() => ({ - input: ListRequest, + input: ListTrustAnchorsRequest, output: ListTrustAnchorsResponse, errors: [AccessDeniedException, ValidationException], operationName: "ListTrustAnchors", @@ -1659,12 +1730,12 @@ export type DisableTrustAnchorError = * **Required permissions: ** `rolesanywhere:DisableTrustAnchor`. */ export const disableTrustAnchor: API.OperationMethod< - ScalarTrustAnchorRequest, + DisableTrustAnchorRequest, TrustAnchorDetailResponse, DisableTrustAnchorError, Credentials | Region | HttpClient.HttpClient > = /*@__PURE__*/ API.make(() => ({ - input: ScalarTrustAnchorRequest, + input: DisableTrustAnchorRequest, output: TrustAnchorDetailResponse, errors: [AccessDeniedException, ResourceNotFoundException], operationName: "DisableTrustAnchor", @@ -1679,12 +1750,12 @@ export type EnableTrustAnchorError = * **Required permissions: ** `rolesanywhere:EnableTrustAnchor`. */ export const enableTrustAnchor: API.OperationMethod< - ScalarTrustAnchorRequest, + EnableTrustAnchorRequest, TrustAnchorDetailResponse, EnableTrustAnchorError, Credentials | Region | HttpClient.HttpClient > = /*@__PURE__*/ API.make(() => ({ - input: ScalarTrustAnchorRequest, + input: EnableTrustAnchorRequest, output: TrustAnchorDetailResponse, errors: [AccessDeniedException, ResourceNotFoundException], operationName: "EnableTrustAnchor", diff --git a/packages/aws/src/services/route-53-domains.ts b/packages/aws/src/services/route-53-domains.ts index 68e133d433..874156d7bf 100644 --- a/packages/aws/src/services/route-53-domains.ts +++ b/packages/aws/src/services/route-53-domains.ts @@ -1907,35 +1907,51 @@ export const ViewBillingResponse = /*@__PURE__*/ S.suspend(() => export class DomainLimitExceeded extends S.TaggedErrorClass()( "DomainLimitExceeded", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError, C.withThrottlingError) {} export class InvalidInput extends S.TaggedErrorClass()( "InvalidInput", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class OperationLimitExceeded extends S.TaggedErrorClass()( "OperationLimitExceeded", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError, C.withThrottlingError) {} export class UnsupportedTLD extends S.TaggedErrorClass()( "UnsupportedTLD", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class DnssecLimitExceeded extends S.TaggedErrorClass()( "DnssecLimitExceeded", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError, C.withThrottlingError) {} export class DuplicateRequest extends S.TaggedErrorClass()( "DuplicateRequest", { requestId: S.optional(S.String), message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TLDRulesViolation extends S.TaggedErrorClass()( "TLDRulesViolation", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TLDInMaintenance extends S.TaggedErrorClass()( "TLDInMaintenance", { message: S.optional(S.String), tld: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} +export class DomainNotFound extends S.TaggedErrorClass()( + "DomainNotFound", + { message: S.optional(S.String) }, + T.SyntheticError({ + from: "InvalidInput", + message: { includes: "not found in account" }, + }), +).pipe(C.withNotFoundError) {} //# Operations export type AcceptDomainTransferFromAnotherAwsAccountError = @@ -2294,7 +2310,11 @@ export const getContactReachabilityStatus: API.OperationMethod< errors: [InvalidInput, OperationLimitExceeded, UnsupportedTLD], operationName: "GetContactReachabilityStatus", })); -export type GetDomainDetailError = InvalidInput | UnsupportedTLD | CommonErrors; +export type GetDomainDetailError = + | InvalidInput + | UnsupportedTLD + | DomainNotFound + | CommonErrors; /** * This operation returns detailed information about a specified domain that is * associated with the current Amazon Web Services account. Contact information for the @@ -2308,7 +2328,7 @@ export const getDomainDetail: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetDomainDetailRequest, output: GetDomainDetailResponse, - errors: [InvalidInput, UnsupportedTLD], + errors: [InvalidInput, UnsupportedTLD, DomainNotFound], operationName: "GetDomainDetail", })); export type GetDomainSuggestionsError = @@ -2607,6 +2627,7 @@ export type RenewDomainError = | OperationLimitExceeded | TLDRulesViolation | UnsupportedTLD + | DomainNotFound | CommonErrors; /** * This operation renews a domain for the specified number of years. The cost of renewing @@ -2632,6 +2653,7 @@ export const renewDomain: API.OperationMethod< OperationLimitExceeded, TLDRulesViolation, UnsupportedTLD, + DomainNotFound, ], operationName: "RenewDomain", })); @@ -2684,6 +2706,7 @@ export type RetrieveDomainAuthCodeError = | InvalidInput | TLDInMaintenance | UnsupportedTLD + | DomainNotFound | CommonErrors; /** * This operation returns the authorization code for the domain. To transfer a domain to @@ -2697,7 +2720,7 @@ export const retrieveDomainAuthCode: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: RetrieveDomainAuthCodeRequest, output: RetrieveDomainAuthCodeResponse, - errors: [InvalidInput, TLDInMaintenance, UnsupportedTLD], + errors: [InvalidInput, TLDInMaintenance, UnsupportedTLD, DomainNotFound], operationName: "RetrieveDomainAuthCode", })); export type TransferDomainError = @@ -2892,6 +2915,7 @@ export type UpdateDomainNameserversError = | OperationLimitExceeded | TLDRulesViolation | UnsupportedTLD + | DomainNotFound | CommonErrors; /** * This operation replaces the current set of name servers for the domain with the @@ -2916,6 +2940,7 @@ export const updateDomainNameservers: API.OperationMethod< OperationLimitExceeded, TLDRulesViolation, UnsupportedTLD, + DomainNotFound, ], operationName: "UpdateDomainNameservers", })); diff --git a/packages/aws/src/services/route-53.ts b/packages/aws/src/services/route-53.ts index 840888ba60..766b6b6054 100644 --- a/packages/aws/src/services/route-53.ts +++ b/packages/aws/src/services/route-53.ts @@ -366,28 +366,27 @@ export interface ActivateKeySigningKeyRequest { HostedZoneId: string; Name: string; } -export const ActivateKeySigningKeyRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - HostedZoneId: S.String.pipe(T.HttpLabel("HostedZoneId")), - Name: S.String.pipe(T.HttpLabel("Name")), - }).pipe( - T.all( - ns, - T.Http({ - method: "POST", - uri: "/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/activate", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ActivateKeySigningKeyRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + HostedZoneId: S.String.pipe(T.HttpLabel("HostedZoneId")), + Name: S.String.pipe(T.HttpLabel("Name")), + }).pipe( + T.all( + ns, + T.Http({ + method: "POST", + uri: "/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/activate", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ActivateKeySigningKeyRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ActivateKeySigningKeyRequest", +}) as any as S.Schema; export type ChangeStatus = "PENDING" | "INSYNC" | (string & {}); export const ChangeStatus = /*@__PURE__*/ S.String; export interface ChangeInfo { @@ -407,12 +406,11 @@ export const ChangeInfo = /*@__PURE__*/ S.suspend(() => export interface ActivateKeySigningKeyResponse { ChangeInfo: ChangeInfo; } -export const ActivateKeySigningKeyResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ChangeInfo: ChangeInfo }).pipe(ns), - ).annotate({ - identifier: "ActivateKeySigningKeyResponse", - }) as any as S.Schema; +export const ActivateKeySigningKeyResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ ChangeInfo: ChangeInfo }).pipe(ns), +).annotate({ + identifier: "ActivateKeySigningKeyResponse", +}) as any as S.Schema; export type VPCRegion = | "us-east-1" | "us-east-2" @@ -474,38 +472,36 @@ export interface AssociateVPCWithHostedZoneRequest { VPC: VPC; Comment?: string; } -export const AssociateVPCWithHostedZoneRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - HostedZoneId: S.String.pipe(T.HttpLabel("HostedZoneId")), - VPC: VPC, - Comment: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ - method: "POST", - uri: "/2013-04-01/hostedzone/{HostedZoneId}/associatevpc", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const AssociateVPCWithHostedZoneRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + HostedZoneId: S.String.pipe(T.HttpLabel("HostedZoneId")), + VPC: VPC, + Comment: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ + method: "POST", + uri: "/2013-04-01/hostedzone/{HostedZoneId}/associatevpc", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "AssociateVPCWithHostedZoneRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "AssociateVPCWithHostedZoneRequest", +}) as any as S.Schema; export interface AssociateVPCWithHostedZoneResponse { ChangeInfo: ChangeInfo; } -export const AssociateVPCWithHostedZoneResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ChangeInfo: ChangeInfo }).pipe(ns), - ).annotate({ - identifier: "AssociateVPCWithHostedZoneResponse", - }) as any as S.Schema; +export const AssociateVPCWithHostedZoneResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ ChangeInfo: ChangeInfo }).pipe(ns), +).annotate({ + identifier: "AssociateVPCWithHostedZoneResponse", +}) as any as S.Schema; export type CidrCollectionChangeAction = | "PUT" | "DELETE_IF_EXISTS" @@ -535,33 +531,33 @@ export interface ChangeCidrCollectionRequest { CollectionVersion?: number; Changes: CidrCollectionChange[]; } -export const ChangeCidrCollectionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Id: S.String.pipe(T.HttpLabel("Id")), - CollectionVersion: S.optional(S.Number), - Changes: CidrCollectionChanges, - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/2013-04-01/cidrcollection/{Id}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ChangeCidrCollectionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Id: S.String.pipe(T.HttpLabel("Id")), + CollectionVersion: S.optional(S.Number), + Changes: CidrCollectionChanges, + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/2013-04-01/cidrcollection/{Id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ChangeCidrCollectionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ChangeCidrCollectionRequest", +}) as any as S.Schema; export interface ChangeCidrCollectionResponse { Id: string; } -export const ChangeCidrCollectionResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({ Id: S.String }).pipe(ns)).annotate({ - identifier: "ChangeCidrCollectionResponse", - }) as any as S.Schema; +export const ChangeCidrCollectionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Id: S.String }).pipe(ns), +).annotate({ + identifier: "ChangeCidrCollectionResponse", +}) as any as S.Schema; export type ChangeAction = "CREATE" | "DELETE" | "UPSERT" | (string & {}); export const ChangeAction = /*@__PURE__*/ S.String; export type RRType = @@ -756,37 +752,35 @@ export interface ChangeResourceRecordSetsRequest { HostedZoneId: string; ChangeBatch: ChangeBatch; } -export const ChangeResourceRecordSetsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - HostedZoneId: S.String.pipe(T.HttpLabel("HostedZoneId")), - ChangeBatch: ChangeBatch, - }).pipe( - T.all( - ns, - T.Http({ - method: "POST", - uri: "/2013-04-01/hostedzone/{HostedZoneId}/rrset", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ChangeResourceRecordSetsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + HostedZoneId: S.String.pipe(T.HttpLabel("HostedZoneId")), + ChangeBatch: ChangeBatch, + }).pipe( + T.all( + ns, + T.Http({ + method: "POST", + uri: "/2013-04-01/hostedzone/{HostedZoneId}/rrset", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ChangeResourceRecordSetsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ChangeResourceRecordSetsRequest", +}) as any as S.Schema; export interface ChangeResourceRecordSetsResponse { ChangeInfo: ChangeInfo; } -export const ChangeResourceRecordSetsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ChangeInfo: ChangeInfo }).pipe(ns), - ).annotate({ - identifier: "ChangeResourceRecordSetsResponse", - }) as any as S.Schema; +export const ChangeResourceRecordSetsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ ChangeInfo: ChangeInfo }).pipe(ns), +).annotate({ + identifier: "ChangeResourceRecordSetsResponse", +}) as any as S.Schema; export type ErrorMessages = string[]; export const ErrorMessages = /*@__PURE__*/ S.Array( S.String.pipe(T.XmlName("Message")), @@ -814,55 +808,54 @@ export interface ChangeTagsForResourceRequest { AddTags?: Tag[]; RemoveTagKeys?: string[]; } -export const ChangeTagsForResourceRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResourceType: TagResourceType.pipe(T.HttpLabel("ResourceType")), - ResourceId: S.String.pipe(T.HttpLabel("ResourceId")), - AddTags: S.optional(TagList), - RemoveTagKeys: S.optional(TagKeyList), - }).pipe( - T.all( - ns, - T.Http({ - method: "POST", - uri: "/2013-04-01/tags/{ResourceType}/{ResourceId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ChangeTagsForResourceRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResourceType: TagResourceType.pipe(T.HttpLabel("ResourceType")), + ResourceId: S.String.pipe(T.HttpLabel("ResourceId")), + AddTags: S.optional(TagList), + RemoveTagKeys: S.optional(TagKeyList), + }).pipe( + T.all( + ns, + T.Http({ + method: "POST", + uri: "/2013-04-01/tags/{ResourceType}/{ResourceId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ChangeTagsForResourceRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ChangeTagsForResourceRequest", +}) as any as S.Schema; export interface ChangeTagsForResourceResponse {} -export const ChangeTagsForResourceResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "ChangeTagsForResourceResponse", - }) as any as S.Schema; +export const ChangeTagsForResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "ChangeTagsForResourceResponse", +}) as any as S.Schema; export interface CreateCidrCollectionRequest { Name: string; CallerReference: string; } -export const CreateCidrCollectionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Name: S.String, CallerReference: S.String }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/2013-04-01/cidrcollection" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateCidrCollectionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Name: S.String, CallerReference: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/2013-04-01/cidrcollection" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateCidrCollectionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateCidrCollectionRequest", +}) as any as S.Schema; export interface CidrCollection { Arn?: string; Id?: string; @@ -881,15 +874,14 @@ export interface CreateCidrCollectionResponse { Collection?: CidrCollection; Location?: string; } -export const CreateCidrCollectionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Collection: S.optional(CidrCollection), - Location: S.optional(S.String).pipe(T.HttpHeader("Location")), - }).pipe(ns), - ).annotate({ - identifier: "CreateCidrCollectionResponse", - }) as any as S.Schema; +export const CreateCidrCollectionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Collection: S.optional(CidrCollection), + Location: S.optional(S.String).pipe(T.HttpHeader("Location")), + }).pipe(ns), +).annotate({ + identifier: "CreateCidrCollectionResponse", +}) as any as S.Schema; export type HealthCheckType = | "HTTP" | "HTTPS" @@ -1096,21 +1088,20 @@ export interface CloudWatchAlarmConfiguration { Statistic: Statistic; Dimensions?: Dimension[]; } -export const CloudWatchAlarmConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - EvaluationPeriods: S.Number, - Threshold: S.Number, - ComparisonOperator: ComparisonOperator, - Period: S.Number, - MetricName: S.String, - Namespace: S.String, - Statistic: Statistic, - Dimensions: S.optional(DimensionList), - }), - ).annotate({ - identifier: "CloudWatchAlarmConfiguration", - }) as any as S.Schema; +export const CloudWatchAlarmConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + EvaluationPeriods: S.Number, + Threshold: S.Number, + ComparisonOperator: ComparisonOperator, + Period: S.Number, + MetricName: S.String, + Namespace: S.String, + Statistic: Statistic, + Dimensions: S.optional(DimensionList), + }), +).annotate({ + identifier: "CloudWatchAlarmConfiguration", +}) as any as S.Schema; export interface HealthCheck { Id: string; CallerReference: string; @@ -1251,7 +1242,7 @@ export const DelegationSet = /*@__PURE__*/ S.suspend(() => export interface CreateHostedZoneResponse { HostedZone: HostedZone; ChangeInfo: ChangeInfo; - DelegationSet: DelegationSet; + DelegationSet?: DelegationSet; VPC?: VPC; Location: string; } @@ -1259,7 +1250,7 @@ export const CreateHostedZoneResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ HostedZone: HostedZone, ChangeInfo: ChangeInfo, - DelegationSet: DelegationSet, + DelegationSet: S.optional(DelegationSet), VPC: S.optional(VPC), Location: S.String.pipe(T.HttpHeader("Location")), }).pipe(ns), @@ -1337,39 +1328,37 @@ export interface CreateKeySigningKeyResponse { KeySigningKey: KeySigningKey; Location: string; } -export const CreateKeySigningKeyResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ChangeInfo: ChangeInfo, - KeySigningKey: KeySigningKey, - Location: S.String.pipe(T.HttpHeader("Location")), - }).pipe(ns), - ).annotate({ - identifier: "CreateKeySigningKeyResponse", - }) as any as S.Schema; +export const CreateKeySigningKeyResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ChangeInfo: ChangeInfo, + KeySigningKey: KeySigningKey, + Location: S.String.pipe(T.HttpHeader("Location")), + }).pipe(ns), +).annotate({ + identifier: "CreateKeySigningKeyResponse", +}) as any as S.Schema; export interface CreateQueryLoggingConfigRequest { HostedZoneId: string; CloudWatchLogsLogGroupArn: string; } -export const CreateQueryLoggingConfigRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - HostedZoneId: S.String, - CloudWatchLogsLogGroupArn: S.String, - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/2013-04-01/queryloggingconfig" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateQueryLoggingConfigRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + HostedZoneId: S.String, + CloudWatchLogsLogGroupArn: S.String, + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/2013-04-01/queryloggingconfig" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateQueryLoggingConfigRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateQueryLoggingConfigRequest", +}) as any as S.Schema; export interface QueryLoggingConfig { Id: string; HostedZoneId: string; @@ -1388,51 +1377,48 @@ export interface CreateQueryLoggingConfigResponse { QueryLoggingConfig: QueryLoggingConfig; Location: string; } -export const CreateQueryLoggingConfigResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - QueryLoggingConfig: QueryLoggingConfig, - Location: S.String.pipe(T.HttpHeader("Location")), - }).pipe(ns), - ).annotate({ - identifier: "CreateQueryLoggingConfigResponse", - }) as any as S.Schema; +export const CreateQueryLoggingConfigResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + QueryLoggingConfig: QueryLoggingConfig, + Location: S.String.pipe(T.HttpHeader("Location")), + }).pipe(ns), +).annotate({ + identifier: "CreateQueryLoggingConfigResponse", +}) as any as S.Schema; export interface CreateReusableDelegationSetRequest { CallerReference: string; HostedZoneId?: string; } -export const CreateReusableDelegationSetRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - CallerReference: S.String, - HostedZoneId: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/2013-04-01/delegationset" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateReusableDelegationSetRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + CallerReference: S.String, + HostedZoneId: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/2013-04-01/delegationset" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateReusableDelegationSetRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateReusableDelegationSetRequest", +}) as any as S.Schema; export interface CreateReusableDelegationSetResponse { DelegationSet: DelegationSet; Location: string; } -export const CreateReusableDelegationSetResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DelegationSet: DelegationSet, - Location: S.String.pipe(T.HttpHeader("Location")), - }).pipe(ns), - ).annotate({ - identifier: "CreateReusableDelegationSetResponse", - }) as any as S.Schema; +export const CreateReusableDelegationSetResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DelegationSet: DelegationSet, + Location: S.String.pipe(T.HttpHeader("Location")), + }).pipe(ns), +).annotate({ + identifier: "CreateReusableDelegationSetResponse", +}) as any as S.Schema; export interface CreateTrafficPolicyRequest { Name: string; Document: string; @@ -1479,15 +1465,14 @@ export interface CreateTrafficPolicyResponse { TrafficPolicy: TrafficPolicy; Location: string; } -export const CreateTrafficPolicyResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TrafficPolicy: TrafficPolicy, - Location: S.String.pipe(T.HttpHeader("Location")), - }).pipe(ns), - ).annotate({ - identifier: "CreateTrafficPolicyResponse", - }) as any as S.Schema; +export const CreateTrafficPolicyResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TrafficPolicy: TrafficPolicy, + Location: S.String.pipe(T.HttpHeader("Location")), + }).pipe(ns), +).annotate({ + identifier: "CreateTrafficPolicyResponse", +}) as any as S.Schema; export interface CreateTrafficPolicyInstanceRequest { HostedZoneId: string; Name: string; @@ -1495,28 +1480,27 @@ export interface CreateTrafficPolicyInstanceRequest { TrafficPolicyId: string; TrafficPolicyVersion: number; } -export const CreateTrafficPolicyInstanceRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - HostedZoneId: S.String, - Name: S.String, - TTL: S.Number, - TrafficPolicyId: S.String, - TrafficPolicyVersion: S.Number, - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/2013-04-01/trafficpolicyinstance" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateTrafficPolicyInstanceRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + HostedZoneId: S.String, + Name: S.String, + TTL: S.Number, + TrafficPolicyId: S.String, + TrafficPolicyVersion: S.Number, + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/2013-04-01/trafficpolicyinstance" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateTrafficPolicyInstanceRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateTrafficPolicyInstanceRequest", +}) as any as S.Schema; export interface TrafficPolicyInstance { Id: string; HostedZoneId: string; @@ -1547,59 +1531,56 @@ export interface CreateTrafficPolicyInstanceResponse { TrafficPolicyInstance: TrafficPolicyInstance; Location: string; } -export const CreateTrafficPolicyInstanceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TrafficPolicyInstance: TrafficPolicyInstance, - Location: S.String.pipe(T.HttpHeader("Location")), - }).pipe(ns), - ).annotate({ - identifier: "CreateTrafficPolicyInstanceResponse", - }) as any as S.Schema; +export const CreateTrafficPolicyInstanceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TrafficPolicyInstance: TrafficPolicyInstance, + Location: S.String.pipe(T.HttpHeader("Location")), + }).pipe(ns), +).annotate({ + identifier: "CreateTrafficPolicyInstanceResponse", +}) as any as S.Schema; export interface CreateTrafficPolicyVersionRequest { Id: string; Document: string; Comment?: string; } -export const CreateTrafficPolicyVersionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Id: S.String.pipe(T.HttpLabel("Id")), - Document: S.String, - Comment: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/2013-04-01/trafficpolicy/{Id}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateTrafficPolicyVersionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Id: S.String.pipe(T.HttpLabel("Id")), + Document: S.String, + Comment: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/2013-04-01/trafficpolicy/{Id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateTrafficPolicyVersionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateTrafficPolicyVersionRequest", +}) as any as S.Schema; export interface CreateTrafficPolicyVersionResponse { TrafficPolicy: TrafficPolicy; Location: string; } -export const CreateTrafficPolicyVersionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TrafficPolicy: TrafficPolicy, - Location: S.String.pipe(T.HttpHeader("Location")), - }).pipe(ns), - ).annotate({ - identifier: "CreateTrafficPolicyVersionResponse", - }) as any as S.Schema; +export const CreateTrafficPolicyVersionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TrafficPolicy: TrafficPolicy, + Location: S.String.pipe(T.HttpHeader("Location")), + }).pipe(ns), +).annotate({ + identifier: "CreateTrafficPolicyVersionResponse", +}) as any as S.Schema; export interface CreateVPCAssociationAuthorizationRequest { HostedZoneId: string; VPC: VPC; } -export const CreateVPCAssociationAuthorizationRequest = - /*@__PURE__*/ S.suspend(() => +export const CreateVPCAssociationAuthorizationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ HostedZoneId: S.String.pipe(T.HttpLabel("HostedZoneId")), VPC: VPC, @@ -1617,9 +1598,9 @@ export const CreateVPCAssociationAuthorizationRequest = rules, ), ), - ).annotate({ - identifier: "CreateVPCAssociationAuthorizationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "CreateVPCAssociationAuthorizationRequest", +}) as any as S.Schema; export interface CreateVPCAssociationAuthorizationResponse { HostedZoneId: string; VPC: VPC; @@ -1634,68 +1615,64 @@ export interface DeactivateKeySigningKeyRequest { HostedZoneId: string; Name: string; } -export const DeactivateKeySigningKeyRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - HostedZoneId: S.String.pipe(T.HttpLabel("HostedZoneId")), - Name: S.String.pipe(T.HttpLabel("Name")), - }).pipe( - T.all( - ns, - T.Http({ - method: "POST", - uri: "/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/deactivate", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeactivateKeySigningKeyRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + HostedZoneId: S.String.pipe(T.HttpLabel("HostedZoneId")), + Name: S.String.pipe(T.HttpLabel("Name")), + }).pipe( + T.all( + ns, + T.Http({ + method: "POST", + uri: "/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/deactivate", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeactivateKeySigningKeyRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeactivateKeySigningKeyRequest", +}) as any as S.Schema; export interface DeactivateKeySigningKeyResponse { ChangeInfo: ChangeInfo; } -export const DeactivateKeySigningKeyResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ChangeInfo: ChangeInfo }).pipe(ns), - ).annotate({ - identifier: "DeactivateKeySigningKeyResponse", - }) as any as S.Schema; +export const DeactivateKeySigningKeyResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ ChangeInfo: ChangeInfo }).pipe(ns), +).annotate({ + identifier: "DeactivateKeySigningKeyResponse", +}) as any as S.Schema; export interface DeleteCidrCollectionRequest { Id: string; } -export const DeleteCidrCollectionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( - T.all( - ns, - T.Http({ method: "DELETE", uri: "/2013-04-01/cidrcollection/{Id}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteCidrCollectionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( + T.all( + ns, + T.Http({ method: "DELETE", uri: "/2013-04-01/cidrcollection/{Id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteCidrCollectionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteCidrCollectionRequest", +}) as any as S.Schema; export interface DeleteCidrCollectionResponse {} -export const DeleteCidrCollectionResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteCidrCollectionResponse", - }) as any as S.Schema; +export const DeleteCidrCollectionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteCidrCollectionResponse", +}) as any as S.Schema; export interface DeleteHealthCheckRequest { HealthCheckId: string; } export const DeleteHealthCheckRequest = /*@__PURE__*/ S.suspend(() => - S.Struct({ - HealthCheckId: S.String.pipe(T.HttpLabel("HealthCheckId")), - }).pipe( + S.Struct({ HealthCheckId: S.String.pipe(T.HttpLabel("HealthCheckId")) }).pipe( T.all( ns, T.Http({ @@ -1772,63 +1749,59 @@ export const DeleteKeySigningKeyRequest = /*@__PURE__*/ S.suspend(() => export interface DeleteKeySigningKeyResponse { ChangeInfo: ChangeInfo; } -export const DeleteKeySigningKeyResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ChangeInfo: ChangeInfo }).pipe(ns), - ).annotate({ - identifier: "DeleteKeySigningKeyResponse", - }) as any as S.Schema; +export const DeleteKeySigningKeyResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ ChangeInfo: ChangeInfo }).pipe(ns), +).annotate({ + identifier: "DeleteKeySigningKeyResponse", +}) as any as S.Schema; export interface DeleteQueryLoggingConfigRequest { Id: string; } -export const DeleteQueryLoggingConfigRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( - T.all( - ns, - T.Http({ - method: "DELETE", - uri: "/2013-04-01/queryloggingconfig/{Id}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteQueryLoggingConfigRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( + T.all( + ns, + T.Http({ method: "DELETE", uri: "/2013-04-01/queryloggingconfig/{Id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteQueryLoggingConfigRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteQueryLoggingConfigRequest", +}) as any as S.Schema; export interface DeleteQueryLoggingConfigResponse {} -export const DeleteQueryLoggingConfigResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteQueryLoggingConfigResponse", - }) as any as S.Schema; +export const DeleteQueryLoggingConfigResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteQueryLoggingConfigResponse", +}) as any as S.Schema; export interface DeleteReusableDelegationSetRequest { Id: string; } -export const DeleteReusableDelegationSetRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( - T.all( - ns, - T.Http({ method: "DELETE", uri: "/2013-04-01/delegationset/{Id}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteReusableDelegationSetRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( + T.all( + ns, + T.Http({ method: "DELETE", uri: "/2013-04-01/delegationset/{Id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteReusableDelegationSetRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteReusableDelegationSetRequest", +}) as any as S.Schema; export interface DeleteReusableDelegationSetResponse {} -export const DeleteReusableDelegationSetResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteReusableDelegationSetResponse", - }) as any as S.Schema; +export const DeleteReusableDelegationSetResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteReusableDelegationSetResponse", +}) as any as S.Schema; export interface DeleteTrafficPolicyRequest { Id: string; Version: number; @@ -1855,43 +1828,44 @@ export const DeleteTrafficPolicyRequest = /*@__PURE__*/ S.suspend(() => identifier: "DeleteTrafficPolicyRequest", }) as any as S.Schema; export interface DeleteTrafficPolicyResponse {} -export const DeleteTrafficPolicyResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteTrafficPolicyResponse", - }) as any as S.Schema; +export const DeleteTrafficPolicyResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteTrafficPolicyResponse", +}) as any as S.Schema; export interface DeleteTrafficPolicyInstanceRequest { Id: string; } -export const DeleteTrafficPolicyInstanceRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( - T.all( - ns, - T.Http({ - method: "DELETE", - uri: "/2013-04-01/trafficpolicyinstance/{Id}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteTrafficPolicyInstanceRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( + T.all( + ns, + T.Http({ + method: "DELETE", + uri: "/2013-04-01/trafficpolicyinstance/{Id}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteTrafficPolicyInstanceRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteTrafficPolicyInstanceRequest", +}) as any as S.Schema; export interface DeleteTrafficPolicyInstanceResponse {} -export const DeleteTrafficPolicyInstanceResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteTrafficPolicyInstanceResponse", - }) as any as S.Schema; +export const DeleteTrafficPolicyInstanceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteTrafficPolicyInstanceResponse", +}) as any as S.Schema; export interface DeleteVPCAssociationAuthorizationRequest { HostedZoneId: string; VPC: VPC; } -export const DeleteVPCAssociationAuthorizationRequest = - /*@__PURE__*/ S.suspend(() => +export const DeleteVPCAssociationAuthorizationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ HostedZoneId: S.String.pipe(T.HttpLabel("HostedZoneId")), VPC: VPC, @@ -1909,9 +1883,9 @@ export const DeleteVPCAssociationAuthorizationRequest = rules, ), ), - ).annotate({ - identifier: "DeleteVPCAssociationAuthorizationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteVPCAssociationAuthorizationRequest", +}) as any as S.Schema; export interface DeleteVPCAssociationAuthorizationResponse {} export const DeleteVPCAssociationAuthorizationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ @@ -1920,41 +1894,39 @@ export const DeleteVPCAssociationAuthorizationResponse = export interface DisableHostedZoneDNSSECRequest { HostedZoneId: string; } -export const DisableHostedZoneDNSSECRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ HostedZoneId: S.String.pipe(T.HttpLabel("HostedZoneId")) }).pipe( - T.all( - ns, - T.Http({ - method: "POST", - uri: "/2013-04-01/hostedzone/{HostedZoneId}/disable-dnssec", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DisableHostedZoneDNSSECRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ HostedZoneId: S.String.pipe(T.HttpLabel("HostedZoneId")) }).pipe( + T.all( + ns, + T.Http({ + method: "POST", + uri: "/2013-04-01/hostedzone/{HostedZoneId}/disable-dnssec", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DisableHostedZoneDNSSECRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DisableHostedZoneDNSSECRequest", +}) as any as S.Schema; export interface DisableHostedZoneDNSSECResponse { ChangeInfo: ChangeInfo; } -export const DisableHostedZoneDNSSECResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ChangeInfo: ChangeInfo }).pipe(ns), - ).annotate({ - identifier: "DisableHostedZoneDNSSECResponse", - }) as any as S.Schema; +export const DisableHostedZoneDNSSECResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ ChangeInfo: ChangeInfo }).pipe(ns), +).annotate({ + identifier: "DisableHostedZoneDNSSECResponse", +}) as any as S.Schema; export interface DisassociateVPCFromHostedZoneRequest { HostedZoneId: string; VPC: VPC; Comment?: string; } -export const DisassociateVPCFromHostedZoneRequest = - /*@__PURE__*/ S.suspend(() => +export const DisassociateVPCFromHostedZoneRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ HostedZoneId: S.String.pipe(T.HttpLabel("HostedZoneId")), VPC: VPC, @@ -1973,49 +1945,46 @@ export const DisassociateVPCFromHostedZoneRequest = rules, ), ), - ).annotate({ - identifier: "DisassociateVPCFromHostedZoneRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DisassociateVPCFromHostedZoneRequest", +}) as any as S.Schema; export interface DisassociateVPCFromHostedZoneResponse { ChangeInfo: ChangeInfo; } -export const DisassociateVPCFromHostedZoneResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ChangeInfo: ChangeInfo }).pipe(ns), - ).annotate({ - identifier: "DisassociateVPCFromHostedZoneResponse", - }) as any as S.Schema; +export const DisassociateVPCFromHostedZoneResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ ChangeInfo: ChangeInfo }).pipe(ns), +).annotate({ + identifier: "DisassociateVPCFromHostedZoneResponse", +}) as any as S.Schema; export interface EnableHostedZoneDNSSECRequest { HostedZoneId: string; } -export const EnableHostedZoneDNSSECRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ HostedZoneId: S.String.pipe(T.HttpLabel("HostedZoneId")) }).pipe( - T.all( - ns, - T.Http({ - method: "POST", - uri: "/2013-04-01/hostedzone/{HostedZoneId}/enable-dnssec", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const EnableHostedZoneDNSSECRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ HostedZoneId: S.String.pipe(T.HttpLabel("HostedZoneId")) }).pipe( + T.all( + ns, + T.Http({ + method: "POST", + uri: "/2013-04-01/hostedzone/{HostedZoneId}/enable-dnssec", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "EnableHostedZoneDNSSECRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "EnableHostedZoneDNSSECRequest", +}) as any as S.Schema; export interface EnableHostedZoneDNSSECResponse { ChangeInfo: ChangeInfo; } -export const EnableHostedZoneDNSSECResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ChangeInfo: ChangeInfo }).pipe(ns), - ).annotate({ - identifier: "EnableHostedZoneDNSSECResponse", - }) as any as S.Schema; +export const EnableHostedZoneDNSSECResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ ChangeInfo: ChangeInfo }).pipe(ns), +).annotate({ + identifier: "EnableHostedZoneDNSSECResponse", +}) as any as S.Schema; export type AccountLimitType = | "MAX_HEALTH_CHECKS_BY_OWNER" | "MAX_HOSTED_ZONES_BY_OWNER" @@ -2249,17 +2218,16 @@ export const GetHealthCheckCountRequest = /*@__PURE__*/ S.suspend(() => export interface GetHealthCheckCountResponse { HealthCheckCount: number; } -export const GetHealthCheckCountResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ HealthCheckCount: S.Number }).pipe(ns), - ).annotate({ - identifier: "GetHealthCheckCountResponse", - }) as any as S.Schema; +export const GetHealthCheckCountResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ HealthCheckCount: S.Number }).pipe(ns), +).annotate({ + identifier: "GetHealthCheckCountResponse", +}) as any as S.Schema; export interface GetHealthCheckLastFailureReasonRequest { HealthCheckId: string; } -export const GetHealthCheckLastFailureReasonRequest = - /*@__PURE__*/ S.suspend(() => +export const GetHealthCheckLastFailureReasonRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ HealthCheckId: S.String.pipe(T.HttpLabel("HealthCheckId")), }).pipe( @@ -2276,9 +2244,9 @@ export const GetHealthCheckLastFailureReasonRequest = rules, ), ), - ).annotate({ - identifier: "GetHealthCheckLastFailureReasonRequest", - }) as any as S.Schema; +).annotate({ + identifier: "GetHealthCheckLastFailureReasonRequest", +}) as any as S.Schema; export interface StatusReport { Status?: string; CheckedTime?: Date; @@ -2312,45 +2280,40 @@ export const HealthCheckObservations = /*@__PURE__*/ S.Array( export interface GetHealthCheckLastFailureReasonResponse { HealthCheckObservations: HealthCheckObservation[]; } -export const GetHealthCheckLastFailureReasonResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ HealthCheckObservations: HealthCheckObservations }).pipe(ns), - ).annotate({ - identifier: "GetHealthCheckLastFailureReasonResponse", - }) as any as S.Schema; +export const GetHealthCheckLastFailureReasonResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ HealthCheckObservations: HealthCheckObservations }).pipe(ns), +).annotate({ + identifier: "GetHealthCheckLastFailureReasonResponse", +}) as any as S.Schema; export interface GetHealthCheckStatusRequest { HealthCheckId: string; } -export const GetHealthCheckStatusRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - HealthCheckId: S.String.pipe(T.HttpLabel("HealthCheckId")), - }).pipe( - T.all( - ns, - T.Http({ - method: "GET", - uri: "/2013-04-01/healthcheck/{HealthCheckId}/status", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetHealthCheckStatusRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ HealthCheckId: S.String.pipe(T.HttpLabel("HealthCheckId")) }).pipe( + T.all( + ns, + T.Http({ + method: "GET", + uri: "/2013-04-01/healthcheck/{HealthCheckId}/status", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetHealthCheckStatusRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetHealthCheckStatusRequest", +}) as any as S.Schema; export interface GetHealthCheckStatusResponse { HealthCheckObservations: HealthCheckObservation[]; } -export const GetHealthCheckStatusResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ HealthCheckObservations: HealthCheckObservations }).pipe(ns), - ).annotate({ - identifier: "GetHealthCheckStatusResponse", - }) as any as S.Schema; +export const GetHealthCheckStatusResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ HealthCheckObservations: HealthCheckObservations }).pipe(ns), +).annotate({ + identifier: "GetHealthCheckStatusResponse", +}) as any as S.Schema; export interface GetHostedZoneRequest { Id: string; } @@ -2462,59 +2425,55 @@ export const GetHostedZoneLimitResponse = /*@__PURE__*/ S.suspend(() => export interface GetQueryLoggingConfigRequest { Id: string; } -export const GetQueryLoggingConfigRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( - T.all( - ns, - T.Http({ method: "GET", uri: "/2013-04-01/queryloggingconfig/{Id}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetQueryLoggingConfigRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( + T.all( + ns, + T.Http({ method: "GET", uri: "/2013-04-01/queryloggingconfig/{Id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetQueryLoggingConfigRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetQueryLoggingConfigRequest", +}) as any as S.Schema; export interface GetQueryLoggingConfigResponse { QueryLoggingConfig: QueryLoggingConfig; } -export const GetQueryLoggingConfigResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ QueryLoggingConfig: QueryLoggingConfig }).pipe(ns), - ).annotate({ - identifier: "GetQueryLoggingConfigResponse", - }) as any as S.Schema; +export const GetQueryLoggingConfigResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ QueryLoggingConfig: QueryLoggingConfig }).pipe(ns), +).annotate({ + identifier: "GetQueryLoggingConfigResponse", +}) as any as S.Schema; export interface GetReusableDelegationSetRequest { Id: string; } -export const GetReusableDelegationSetRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( - T.all( - ns, - T.Http({ method: "GET", uri: "/2013-04-01/delegationset/{Id}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetReusableDelegationSetRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( + T.all( + ns, + T.Http({ method: "GET", uri: "/2013-04-01/delegationset/{Id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetReusableDelegationSetRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetReusableDelegationSetRequest", +}) as any as S.Schema; export interface GetReusableDelegationSetResponse { DelegationSet: DelegationSet; } -export const GetReusableDelegationSetResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DelegationSet: DelegationSet }).pipe(ns), - ).annotate({ - identifier: "GetReusableDelegationSetResponse", - }) as any as S.Schema; +export const GetReusableDelegationSetResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ DelegationSet: DelegationSet }).pipe(ns), +).annotate({ + identifier: "GetReusableDelegationSetResponse", +}) as any as S.Schema; export type ReusableDelegationSetLimitType = | "MAX_ZONES_BY_REUSABLE_DELEGATION_SET" | (string & {}); @@ -2523,8 +2482,8 @@ export interface GetReusableDelegationSetLimitRequest { Type: ReusableDelegationSetLimitType; DelegationSetId: string; } -export const GetReusableDelegationSetLimitRequest = - /*@__PURE__*/ S.suspend(() => +export const GetReusableDelegationSetLimitRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Type: ReusableDelegationSetLimitType.pipe(T.HttpLabel("Type")), DelegationSetId: S.String.pipe(T.HttpLabel("DelegationSetId")), @@ -2542,9 +2501,9 @@ export const GetReusableDelegationSetLimitRequest = rules, ), ), - ).annotate({ - identifier: "GetReusableDelegationSetLimitRequest", - }) as any as S.Schema; +).annotate({ + identifier: "GetReusableDelegationSetLimitRequest", +}) as any as S.Schema; export interface ReusableDelegationSetLimit { Type: ReusableDelegationSetLimitType; Value: number; @@ -2558,12 +2517,12 @@ export interface GetReusableDelegationSetLimitResponse { Limit: ReusableDelegationSetLimit; Count: number; } -export const GetReusableDelegationSetLimitResponse = - /*@__PURE__*/ S.suspend(() => +export const GetReusableDelegationSetLimitResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ Limit: ReusableDelegationSetLimit, Count: S.Number }).pipe(ns), - ).annotate({ - identifier: "GetReusableDelegationSetLimitResponse", - }) as any as S.Schema; +).annotate({ + identifier: "GetReusableDelegationSetLimitResponse", +}) as any as S.Schema; export interface GetTrafficPolicyRequest { Id: string; Version: number; @@ -2600,37 +2559,32 @@ export const GetTrafficPolicyResponse = /*@__PURE__*/ S.suspend(() => export interface GetTrafficPolicyInstanceRequest { Id: string; } -export const GetTrafficPolicyInstanceRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( - T.all( - ns, - T.Http({ - method: "GET", - uri: "/2013-04-01/trafficpolicyinstance/{Id}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetTrafficPolicyInstanceRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ Id: S.String.pipe(T.HttpLabel("Id")) }).pipe( + T.all( + ns, + T.Http({ method: "GET", uri: "/2013-04-01/trafficpolicyinstance/{Id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetTrafficPolicyInstanceRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetTrafficPolicyInstanceRequest", +}) as any as S.Schema; export interface GetTrafficPolicyInstanceResponse { TrafficPolicyInstance: TrafficPolicyInstance; } -export const GetTrafficPolicyInstanceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ TrafficPolicyInstance: TrafficPolicyInstance }).pipe(ns), - ).annotate({ - identifier: "GetTrafficPolicyInstanceResponse", - }) as any as S.Schema; +export const GetTrafficPolicyInstanceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ TrafficPolicyInstance: TrafficPolicyInstance }).pipe(ns), +).annotate({ + identifier: "GetTrafficPolicyInstanceResponse", +}) as any as S.Schema; export interface GetTrafficPolicyInstanceCountRequest {} -export const GetTrafficPolicyInstanceCountRequest = - /*@__PURE__*/ S.suspend(() => +export const GetTrafficPolicyInstanceCountRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({}).pipe( T.all( ns, @@ -2645,18 +2599,17 @@ export const GetTrafficPolicyInstanceCountRequest = rules, ), ), - ).annotate({ - identifier: "GetTrafficPolicyInstanceCountRequest", - }) as any as S.Schema; +).annotate({ + identifier: "GetTrafficPolicyInstanceCountRequest", +}) as any as S.Schema; export interface GetTrafficPolicyInstanceCountResponse { TrafficPolicyInstanceCount: number; } -export const GetTrafficPolicyInstanceCountResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ TrafficPolicyInstanceCount: S.Number }).pipe(ns), - ).annotate({ - identifier: "GetTrafficPolicyInstanceCountResponse", - }) as any as S.Schema; +export const GetTrafficPolicyInstanceCountResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ TrafficPolicyInstanceCount: S.Number }).pipe(ns), +).annotate({ + identifier: "GetTrafficPolicyInstanceCountResponse", +}) as any as S.Schema; export interface ListCidrBlocksRequest { CollectionId: string; LocationName?: string; @@ -2756,15 +2709,14 @@ export interface ListCidrCollectionsResponse { NextToken?: string; CidrCollections?: CollectionSummary[]; } -export const ListCidrCollectionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - NextToken: S.optional(S.String), - CidrCollections: S.optional(CollectionSummaries), - }).pipe(ns), - ).annotate({ - identifier: "ListCidrCollectionsResponse", - }) as any as S.Schema; +export const ListCidrCollectionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + NextToken: S.optional(S.String), + CidrCollections: S.optional(CollectionSummaries), + }).pipe(ns), +).annotate({ + identifier: "ListCidrCollectionsResponse", +}) as any as S.Schema; export interface ListCidrLocationsRequest { CollectionId: string; NextToken?: string; @@ -2977,26 +2929,25 @@ export interface ListHostedZonesByNameRequest { HostedZoneId?: string; MaxItems?: number; } -export const ListHostedZonesByNameRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DNSName: S.optional(S.String).pipe(T.HttpQuery("dnsname")), - HostedZoneId: S.optional(S.String).pipe(T.HttpQuery("hostedzoneid")), - MaxItems: S.optional(S.Number).pipe(T.HttpQuery("maxitems")), - }).pipe( - T.all( - ns, - T.Http({ method: "GET", uri: "/2013-04-01/hostedzonesbyname" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListHostedZonesByNameRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DNSName: S.optional(S.String).pipe(T.HttpQuery("dnsname")), + HostedZoneId: S.optional(S.String).pipe(T.HttpQuery("hostedzoneid")), + MaxItems: S.optional(S.Number).pipe(T.HttpQuery("maxitems")), + }).pipe( + T.all( + ns, + T.Http({ method: "GET", uri: "/2013-04-01/hostedzonesbyname" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListHostedZonesByNameRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListHostedZonesByNameRequest", +}) as any as S.Schema; export interface ListHostedZonesByNameResponse { HostedZones?: HostedZone[]; DNSName?: string; @@ -3006,47 +2957,45 @@ export interface ListHostedZonesByNameResponse { NextHostedZoneId?: string; MaxItems: number; } -export const ListHostedZonesByNameResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - HostedZones: S.optional(HostedZones), - DNSName: S.optional(S.String), - HostedZoneId: S.optional(S.String), - IsTruncated: S.Boolean, - NextDNSName: S.optional(S.String), - NextHostedZoneId: S.optional(S.String), - MaxItems: S.Number, - }).pipe(ns), - ).annotate({ - identifier: "ListHostedZonesByNameResponse", - }) as any as S.Schema; +export const ListHostedZonesByNameResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + HostedZones: S.optional(HostedZones), + DNSName: S.optional(S.String), + HostedZoneId: S.optional(S.String), + IsTruncated: S.Boolean, + NextDNSName: S.optional(S.String), + NextHostedZoneId: S.optional(S.String), + MaxItems: S.Number, + }).pipe(ns), +).annotate({ + identifier: "ListHostedZonesByNameResponse", +}) as any as S.Schema; export interface ListHostedZonesByVPCRequest { VPCId: string; VPCRegion: VPCRegion; MaxItems?: number; NextToken?: string; } -export const ListHostedZonesByVPCRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - VPCId: S.String.pipe(T.HttpQuery("vpcid")), - VPCRegion: VPCRegion.pipe(T.HttpQuery("vpcregion")), - MaxItems: S.optional(S.Number).pipe(T.HttpQuery("maxitems")), - NextToken: S.optional(S.String).pipe(T.HttpQuery("nexttoken")), - }).pipe( - T.all( - ns, - T.Http({ method: "GET", uri: "/2013-04-01/hostedzonesbyvpc" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListHostedZonesByVPCRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + VPCId: S.String.pipe(T.HttpQuery("vpcid")), + VPCRegion: VPCRegion.pipe(T.HttpQuery("vpcregion")), + MaxItems: S.optional(S.Number).pipe(T.HttpQuery("maxitems")), + NextToken: S.optional(S.String).pipe(T.HttpQuery("nexttoken")), + }).pipe( + T.all( + ns, + T.Http({ method: "GET", uri: "/2013-04-01/hostedzonesbyvpc" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListHostedZonesByVPCRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListHostedZonesByVPCRequest", +}) as any as S.Schema; export interface HostedZoneOwner { OwningAccount?: string; OwningService?: string; @@ -3080,41 +3029,39 @@ export interface ListHostedZonesByVPCResponse { MaxItems: number; NextToken?: string; } -export const ListHostedZonesByVPCResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - HostedZoneSummaries: HostedZoneSummaries, - MaxItems: S.Number, - NextToken: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "ListHostedZonesByVPCResponse", - }) as any as S.Schema; +export const ListHostedZonesByVPCResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + HostedZoneSummaries: HostedZoneSummaries, + MaxItems: S.Number, + NextToken: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "ListHostedZonesByVPCResponse", +}) as any as S.Schema; export interface ListQueryLoggingConfigsRequest { HostedZoneId?: string; NextToken?: string; MaxResults?: number; } -export const ListQueryLoggingConfigsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - HostedZoneId: S.optional(S.String).pipe(T.HttpQuery("hostedzoneid")), - NextToken: S.optional(S.String).pipe(T.HttpQuery("nexttoken")), - MaxResults: S.optional(S.Number).pipe(T.HttpQuery("maxresults")), - }).pipe( - T.all( - ns, - T.Http({ method: "GET", uri: "/2013-04-01/queryloggingconfig" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListQueryLoggingConfigsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + HostedZoneId: S.optional(S.String).pipe(T.HttpQuery("hostedzoneid")), + NextToken: S.optional(S.String).pipe(T.HttpQuery("nexttoken")), + MaxResults: S.optional(S.Number).pipe(T.HttpQuery("maxresults")), + }).pipe( + T.all( + ns, + T.Http({ method: "GET", uri: "/2013-04-01/queryloggingconfig" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListQueryLoggingConfigsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListQueryLoggingConfigsRequest", +}) as any as S.Schema; export type QueryLoggingConfigs = QueryLoggingConfig[]; export const QueryLoggingConfigs = /*@__PURE__*/ S.Array( QueryLoggingConfig.pipe(T.XmlName("QueryLoggingConfig")).annotate({ @@ -3122,18 +3069,17 @@ export const QueryLoggingConfigs = /*@__PURE__*/ S.Array( }), ); export interface ListQueryLoggingConfigsResponse { - QueryLoggingConfigs: QueryLoggingConfig[]; + QueryLoggingConfigs?: QueryLoggingConfig[]; NextToken?: string; } -export const ListQueryLoggingConfigsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - QueryLoggingConfigs: QueryLoggingConfigs, - NextToken: S.optional(S.String), - }).pipe(ns), - ).annotate({ - identifier: "ListQueryLoggingConfigsResponse", - }) as any as S.Schema; +export const ListQueryLoggingConfigsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + QueryLoggingConfigs: S.optional(QueryLoggingConfigs), + NextToken: S.optional(S.String), + }).pipe(ns), +).annotate({ + identifier: "ListQueryLoggingConfigsResponse", +}) as any as S.Schema; export interface ListResourceRecordSetsRequest { HostedZoneId: string; StartRecordName?: string; @@ -3141,33 +3087,30 @@ export interface ListResourceRecordSetsRequest { StartRecordIdentifier?: string; MaxItems?: number; } -export const ListResourceRecordSetsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - HostedZoneId: S.String.pipe(T.HttpLabel("HostedZoneId")), - StartRecordName: S.optional(S.String).pipe(T.HttpQuery("name")), - StartRecordType: S.optional(RRType).pipe(T.HttpQuery("type")), - StartRecordIdentifier: S.optional(S.String).pipe( - T.HttpQuery("identifier"), - ), - MaxItems: S.optional(S.Number).pipe(T.HttpQuery("maxitems")), - }).pipe( - T.all( - ns, - T.Http({ - method: "GET", - uri: "/2013-04-01/hostedzone/{HostedZoneId}/rrset", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListResourceRecordSetsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + HostedZoneId: S.String.pipe(T.HttpLabel("HostedZoneId")), + StartRecordName: S.optional(S.String).pipe(T.HttpQuery("name")), + StartRecordType: S.optional(RRType).pipe(T.HttpQuery("type")), + StartRecordIdentifier: S.optional(S.String).pipe(T.HttpQuery("identifier")), + MaxItems: S.optional(S.Number).pipe(T.HttpQuery("maxitems")), + }).pipe( + T.all( + ns, + T.Http({ + method: "GET", + uri: "/2013-04-01/hostedzone/{HostedZoneId}/rrset", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListResourceRecordSetsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListResourceRecordSetsRequest", +}) as any as S.Schema; export type ResourceRecordSets = ResourceRecordSet[]; export const ResourceRecordSets = /*@__PURE__*/ S.Array( ResourceRecordSet.pipe(T.XmlName("ResourceRecordSet")).annotate({ @@ -3182,42 +3125,40 @@ export interface ListResourceRecordSetsResponse { NextRecordIdentifier?: string; MaxItems: number; } -export const ListResourceRecordSetsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResourceRecordSets: S.optional(ResourceRecordSets), - IsTruncated: S.Boolean, - NextRecordName: S.optional(S.String), - NextRecordType: S.optional(RRType), - NextRecordIdentifier: S.optional(S.String), - MaxItems: S.Number, - }).pipe(ns), - ).annotate({ - identifier: "ListResourceRecordSetsResponse", - }) as any as S.Schema; +export const ListResourceRecordSetsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResourceRecordSets: S.optional(ResourceRecordSets), + IsTruncated: S.Boolean, + NextRecordName: S.optional(S.String), + NextRecordType: S.optional(RRType), + NextRecordIdentifier: S.optional(S.String), + MaxItems: S.Number, + }).pipe(ns), +).annotate({ + identifier: "ListResourceRecordSetsResponse", +}) as any as S.Schema; export interface ListReusableDelegationSetsRequest { Marker?: string; MaxItems?: number; } -export const ListReusableDelegationSetsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Marker: S.optional(S.String).pipe(T.HttpQuery("marker")), - MaxItems: S.optional(S.Number).pipe(T.HttpQuery("maxitems")), - }).pipe( - T.all( - ns, - T.Http({ method: "GET", uri: "/2013-04-01/delegationset" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListReusableDelegationSetsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Marker: S.optional(S.String).pipe(T.HttpQuery("marker")), + MaxItems: S.optional(S.Number).pipe(T.HttpQuery("maxitems")), + }).pipe( + T.all( + ns, + T.Http({ method: "GET", uri: "/2013-04-01/delegationset" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListReusableDelegationSetsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListReusableDelegationSetsRequest", +}) as any as S.Schema; export type DelegationSets = DelegationSet[]; export const DelegationSets = /*@__PURE__*/ S.Array( DelegationSet.pipe(T.XmlName("DelegationSet")).annotate({ @@ -3231,18 +3172,17 @@ export interface ListReusableDelegationSetsResponse { NextMarker?: string; MaxItems: number; } -export const ListReusableDelegationSetsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DelegationSets: DelegationSets, - Marker: S.String, - IsTruncated: S.Boolean, - NextMarker: S.optional(S.String), - MaxItems: S.Number, - }).pipe(ns), - ).annotate({ - identifier: "ListReusableDelegationSetsResponse", - }) as any as S.Schema; +export const ListReusableDelegationSetsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DelegationSets: DelegationSets, + Marker: S.String, + IsTruncated: S.Boolean, + NextMarker: S.optional(S.String), + MaxItems: S.Number, + }).pipe(ns), +).annotate({ + identifier: "ListReusableDelegationSetsResponse", +}) as any as S.Schema; export interface ListTagsForResourceRequest { ResourceType: TagResourceType; ResourceId: string; @@ -3283,12 +3223,11 @@ export const ResourceTagSet = /*@__PURE__*/ S.suspend(() => export interface ListTagsForResourceResponse { ResourceTagSet: ResourceTagSet; } -export const ListTagsForResourceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ResourceTagSet: ResourceTagSet }).pipe(ns), - ).annotate({ - identifier: "ListTagsForResourceResponse", - }) as any as S.Schema; +export const ListTagsForResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ ResourceTagSet: ResourceTagSet }).pipe(ns), +).annotate({ + identifier: "ListTagsForResourceResponse", +}) as any as S.Schema; export type TagResourceIdList = string[]; export const TagResourceIdList = /*@__PURE__*/ S.Array( S.String.pipe(T.XmlName("ResourceId")), @@ -3297,25 +3236,24 @@ export interface ListTagsForResourcesRequest { ResourceType: TagResourceType; ResourceIds: string[]; } -export const ListTagsForResourcesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ResourceType: TagResourceType.pipe(T.HttpLabel("ResourceType")), - ResourceIds: TagResourceIdList, - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/2013-04-01/tags/{ResourceType}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListTagsForResourcesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ResourceType: TagResourceType.pipe(T.HttpLabel("ResourceType")), + ResourceIds: TagResourceIdList, + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/2013-04-01/tags/{ResourceType}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListTagsForResourcesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListTagsForResourcesRequest", +}) as any as S.Schema; export type ResourceTagSetList = ResourceTagSet[]; export const ResourceTagSetList = /*@__PURE__*/ S.Array( ResourceTagSet.pipe(T.XmlName("ResourceTagSet")).annotate({ @@ -3325,12 +3263,11 @@ export const ResourceTagSetList = /*@__PURE__*/ S.Array( export interface ListTagsForResourcesResponse { ResourceTagSets: ResourceTagSet[]; } -export const ListTagsForResourcesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ResourceTagSets: ResourceTagSetList }).pipe(ns), - ).annotate({ - identifier: "ListTagsForResourcesResponse", - }) as any as S.Schema; +export const ListTagsForResourcesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ ResourceTagSets: ResourceTagSetList }).pipe(ns), +).annotate({ + identifier: "ListTagsForResourcesResponse", +}) as any as S.Schema; export interface ListTrafficPoliciesRequest { TrafficPolicyIdMarker?: string; MaxItems?: number; @@ -3385,50 +3322,46 @@ export interface ListTrafficPoliciesResponse { TrafficPolicyIdMarker: string; MaxItems: number; } -export const ListTrafficPoliciesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TrafficPolicySummaries: TrafficPolicySummaries, - IsTruncated: S.Boolean, - TrafficPolicyIdMarker: S.String, - MaxItems: S.Number, - }).pipe(ns), - ).annotate({ - identifier: "ListTrafficPoliciesResponse", - }) as any as S.Schema; +export const ListTrafficPoliciesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TrafficPolicySummaries: TrafficPolicySummaries, + IsTruncated: S.Boolean, + TrafficPolicyIdMarker: S.String, + MaxItems: S.Number, + }).pipe(ns), +).annotate({ + identifier: "ListTrafficPoliciesResponse", +}) as any as S.Schema; export interface ListTrafficPolicyInstancesRequest { HostedZoneIdMarker?: string; TrafficPolicyInstanceNameMarker?: string; TrafficPolicyInstanceTypeMarker?: RRType; MaxItems?: number; } -export const ListTrafficPolicyInstancesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - HostedZoneIdMarker: S.optional(S.String).pipe( - T.HttpQuery("hostedzoneid"), - ), - TrafficPolicyInstanceNameMarker: S.optional(S.String).pipe( - T.HttpQuery("trafficpolicyinstancename"), - ), - TrafficPolicyInstanceTypeMarker: S.optional(RRType).pipe( - T.HttpQuery("trafficpolicyinstancetype"), - ), - MaxItems: S.optional(S.Number).pipe(T.HttpQuery("maxitems")), - }).pipe( - T.all( - ns, - T.Http({ method: "GET", uri: "/2013-04-01/trafficpolicyinstances" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListTrafficPolicyInstancesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + HostedZoneIdMarker: S.optional(S.String).pipe(T.HttpQuery("hostedzoneid")), + TrafficPolicyInstanceNameMarker: S.optional(S.String).pipe( + T.HttpQuery("trafficpolicyinstancename"), ), - ).annotate({ - identifier: "ListTrafficPolicyInstancesRequest", - }) as any as S.Schema; + TrafficPolicyInstanceTypeMarker: S.optional(RRType).pipe( + T.HttpQuery("trafficpolicyinstancetype"), + ), + MaxItems: S.optional(S.Number).pipe(T.HttpQuery("maxitems")), + }).pipe( + T.all( + ns, + T.Http({ method: "GET", uri: "/2013-04-01/trafficpolicyinstances" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "ListTrafficPolicyInstancesRequest", +}) as any as S.Schema; export type TrafficPolicyInstances = TrafficPolicyInstance[]; export const TrafficPolicyInstances = /*@__PURE__*/ S.Array( TrafficPolicyInstance.pipe(T.XmlName("TrafficPolicyInstance")).annotate({ @@ -3443,19 +3376,18 @@ export interface ListTrafficPolicyInstancesResponse { IsTruncated: boolean; MaxItems: number; } -export const ListTrafficPolicyInstancesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TrafficPolicyInstances: TrafficPolicyInstances, - HostedZoneIdMarker: S.optional(S.String), - TrafficPolicyInstanceNameMarker: S.optional(S.String), - TrafficPolicyInstanceTypeMarker: S.optional(RRType), - IsTruncated: S.Boolean, - MaxItems: S.Number, - }).pipe(ns), - ).annotate({ - identifier: "ListTrafficPolicyInstancesResponse", - }) as any as S.Schema; +export const ListTrafficPolicyInstancesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TrafficPolicyInstances: TrafficPolicyInstances, + HostedZoneIdMarker: S.optional(S.String), + TrafficPolicyInstanceNameMarker: S.optional(S.String), + TrafficPolicyInstanceTypeMarker: S.optional(RRType), + IsTruncated: S.Boolean, + MaxItems: S.Number, + }).pipe(ns), +).annotate({ + identifier: "ListTrafficPolicyInstancesResponse", +}) as any as S.Schema; export interface ListTrafficPolicyInstancesByHostedZoneRequest { HostedZoneId: string; TrafficPolicyInstanceNameMarker?: string; @@ -3575,31 +3507,30 @@ export interface ListTrafficPolicyVersionsRequest { TrafficPolicyVersionMarker?: string; MaxItems?: number; } -export const ListTrafficPolicyVersionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Id: S.String.pipe(T.HttpLabel("Id")), - TrafficPolicyVersionMarker: S.optional(S.String).pipe( - T.HttpQuery("trafficpolicyversion"), - ), - MaxItems: S.optional(S.Number).pipe(T.HttpQuery("maxitems")), - }).pipe( - T.all( - ns, - T.Http({ - method: "GET", - uri: "/2013-04-01/trafficpolicies/{Id}/versions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListTrafficPolicyVersionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Id: S.String.pipe(T.HttpLabel("Id")), + TrafficPolicyVersionMarker: S.optional(S.String).pipe( + T.HttpQuery("trafficpolicyversion"), ), - ).annotate({ - identifier: "ListTrafficPolicyVersionsRequest", - }) as any as S.Schema; + MaxItems: S.optional(S.Number).pipe(T.HttpQuery("maxitems")), + }).pipe( + T.all( + ns, + T.Http({ + method: "GET", + uri: "/2013-04-01/trafficpolicies/{Id}/versions", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "ListTrafficPolicyVersionsRequest", +}) as any as S.Schema; export type TrafficPolicies = TrafficPolicy[]; export const TrafficPolicies = /*@__PURE__*/ S.Array( TrafficPolicy.pipe(T.XmlName("TrafficPolicy")).annotate({ @@ -3612,24 +3543,23 @@ export interface ListTrafficPolicyVersionsResponse { TrafficPolicyVersionMarker: string; MaxItems: number; } -export const ListTrafficPolicyVersionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TrafficPolicies: TrafficPolicies, - IsTruncated: S.Boolean, - TrafficPolicyVersionMarker: S.String, - MaxItems: S.Number, - }).pipe(ns), - ).annotate({ - identifier: "ListTrafficPolicyVersionsResponse", - }) as any as S.Schema; +export const ListTrafficPolicyVersionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TrafficPolicies: TrafficPolicies, + IsTruncated: S.Boolean, + TrafficPolicyVersionMarker: S.String, + MaxItems: S.Number, + }).pipe(ns), +).annotate({ + identifier: "ListTrafficPolicyVersionsResponse", +}) as any as S.Schema; export interface ListVPCAssociationAuthorizationsRequest { HostedZoneId: string; NextToken?: string; MaxResults?: number; } -export const ListVPCAssociationAuthorizationsRequest = - /*@__PURE__*/ S.suspend(() => +export const ListVPCAssociationAuthorizationsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ HostedZoneId: S.String.pipe(T.HttpLabel("HostedZoneId")), NextToken: S.optional(S.String).pipe(T.HttpQuery("nexttoken")), @@ -3648,24 +3578,24 @@ export const ListVPCAssociationAuthorizationsRequest = rules, ), ), - ).annotate({ - identifier: "ListVPCAssociationAuthorizationsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListVPCAssociationAuthorizationsRequest", +}) as any as S.Schema; export interface ListVPCAssociationAuthorizationsResponse { HostedZoneId: string; NextToken?: string; - VPCs: VPC[]; + VPCs?: VPC[]; } -export const ListVPCAssociationAuthorizationsResponse = - /*@__PURE__*/ S.suspend(() => +export const ListVPCAssociationAuthorizationsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ HostedZoneId: S.String, NextToken: S.optional(S.String), - VPCs: VPCs, + VPCs: S.optional(VPCs), }).pipe(ns), - ).annotate({ - identifier: "ListVPCAssociationAuthorizationsResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListVPCAssociationAuthorizationsResponse", +}) as any as S.Schema; export interface TestDNSAnswerRequest { HostedZoneId: string; RecordName: string; @@ -3802,154 +3732,148 @@ export interface UpdateHostedZoneCommentRequest { Id: string; Comment?: string; } -export const UpdateHostedZoneCommentRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Id: S.String.pipe(T.HttpLabel("Id")), - Comment: S.optional(S.String), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/2013-04-01/hostedzone/{Id}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateHostedZoneCommentRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Id: S.String.pipe(T.HttpLabel("Id")), + Comment: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/2013-04-01/hostedzone/{Id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateHostedZoneCommentRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateHostedZoneCommentRequest", +}) as any as S.Schema; export interface UpdateHostedZoneCommentResponse { HostedZone: HostedZone; } -export const UpdateHostedZoneCommentResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ HostedZone: HostedZone }).pipe(ns), - ).annotate({ - identifier: "UpdateHostedZoneCommentResponse", - }) as any as S.Schema; +export const UpdateHostedZoneCommentResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ HostedZone: HostedZone }).pipe(ns), +).annotate({ + identifier: "UpdateHostedZoneCommentResponse", +}) as any as S.Schema; export interface UpdateHostedZoneFeaturesRequest { HostedZoneId: string; EnableAcceleratedRecovery?: boolean; } -export const UpdateHostedZoneFeaturesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - HostedZoneId: S.String.pipe(T.HttpLabel("HostedZoneId")), - EnableAcceleratedRecovery: S.optional(S.Boolean), - }).pipe( - T.all( - ns, - T.Http({ - method: "POST", - uri: "/2013-04-01/hostedzone/{HostedZoneId}/features", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateHostedZoneFeaturesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + HostedZoneId: S.String.pipe(T.HttpLabel("HostedZoneId")), + EnableAcceleratedRecovery: S.optional(S.Boolean), + }).pipe( + T.all( + ns, + T.Http({ + method: "POST", + uri: "/2013-04-01/hostedzone/{HostedZoneId}/features", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateHostedZoneFeaturesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateHostedZoneFeaturesRequest", +}) as any as S.Schema; export interface UpdateHostedZoneFeaturesResponse {} -export const UpdateHostedZoneFeaturesResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "UpdateHostedZoneFeaturesResponse", - }) as any as S.Schema; +export const UpdateHostedZoneFeaturesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "UpdateHostedZoneFeaturesResponse", +}) as any as S.Schema; export interface UpdateTrafficPolicyCommentRequest { Id: string; Version: number; Comment: string; } -export const UpdateTrafficPolicyCommentRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Id: S.String.pipe(T.HttpLabel("Id")), - Version: S.Number.pipe(T.HttpLabel("Version")), - Comment: S.String, - }).pipe( - T.all( - ns, - T.Http({ - method: "POST", - uri: "/2013-04-01/trafficpolicy/{Id}/{Version}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateTrafficPolicyCommentRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Id: S.String.pipe(T.HttpLabel("Id")), + Version: S.Number.pipe(T.HttpLabel("Version")), + Comment: S.String, + }).pipe( + T.all( + ns, + T.Http({ + method: "POST", + uri: "/2013-04-01/trafficpolicy/{Id}/{Version}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateTrafficPolicyCommentRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateTrafficPolicyCommentRequest", +}) as any as S.Schema; export interface UpdateTrafficPolicyCommentResponse { TrafficPolicy: TrafficPolicy; } -export const UpdateTrafficPolicyCommentResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ TrafficPolicy: TrafficPolicy }).pipe(ns), - ).annotate({ - identifier: "UpdateTrafficPolicyCommentResponse", - }) as any as S.Schema; +export const UpdateTrafficPolicyCommentResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ TrafficPolicy: TrafficPolicy }).pipe(ns), +).annotate({ + identifier: "UpdateTrafficPolicyCommentResponse", +}) as any as S.Schema; export interface UpdateTrafficPolicyInstanceRequest { Id: string; TTL: number; TrafficPolicyId: string; TrafficPolicyVersion: number; } -export const UpdateTrafficPolicyInstanceRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Id: S.String.pipe(T.HttpLabel("Id")), - TTL: S.Number, - TrafficPolicyId: S.String, - TrafficPolicyVersion: S.Number, - }).pipe( - T.all( - ns, - T.Http({ - method: "POST", - uri: "/2013-04-01/trafficpolicyinstance/{Id}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateTrafficPolicyInstanceRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Id: S.String.pipe(T.HttpLabel("Id")), + TTL: S.Number, + TrafficPolicyId: S.String, + TrafficPolicyVersion: S.Number, + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/2013-04-01/trafficpolicyinstance/{Id}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateTrafficPolicyInstanceRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateTrafficPolicyInstanceRequest", +}) as any as S.Schema; export interface UpdateTrafficPolicyInstanceResponse { TrafficPolicyInstance: TrafficPolicyInstance; } -export const UpdateTrafficPolicyInstanceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ TrafficPolicyInstance: TrafficPolicyInstance }).pipe(ns), - ).annotate({ - identifier: "UpdateTrafficPolicyInstanceResponse", - }) as any as S.Schema; +export const UpdateTrafficPolicyInstanceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ TrafficPolicyInstance: TrafficPolicyInstance }).pipe(ns), +).annotate({ + identifier: "UpdateTrafficPolicyInstanceResponse", +}) as any as S.Schema; //# Errors export class ConcurrentModification extends S.TaggedErrorClass()( "ConcurrentModification", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidInput extends S.TaggedErrorClass()( "InvalidInput", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidKeySigningKeyStatus extends S.TaggedErrorClass()( "InvalidKeySigningKeyStatus", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidKMSArn extends S.TaggedErrorClass()( "InvalidKMSArn", @@ -3962,6 +3886,7 @@ export class InvalidSigningStatus extends S.TaggedErrorClass()( "NoSuchKeySigningKey", { message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ConflictingDomainExists extends S.TaggedErrorClass()( "ConflictingDomainExists", @@ -3970,6 +3895,7 @@ export class ConflictingDomainExists extends S.TaggedErrorClass()( "InvalidVPCId", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class LimitsExceeded extends S.TaggedErrorClass()( "LimitsExceeded", @@ -3978,30 +3904,37 @@ export class LimitsExceeded extends S.TaggedErrorClass()( export class NoSuchHostedZone extends S.TaggedErrorClass()( "NoSuchHostedZone", { message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class NotAuthorizedException extends S.TaggedErrorClass()( "NotAuthorizedException", { message: S.optional(S.String) }, + T.HttpError(401), ).pipe(C.withAuthError) {} export class PriorRequestNotComplete extends S.TaggedErrorClass()( "PriorRequestNotComplete", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError, C.withConflictError, C.withRetryableError) {} export class PublicZoneVPCAssociation extends S.TaggedErrorClass()( "PublicZoneVPCAssociation", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class CidrBlockInUseException extends S.TaggedErrorClass()( "CidrBlockInUseException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class CidrCollectionVersionMismatchException extends S.TaggedErrorClass()( "CidrCollectionVersionMismatchException", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class NoSuchCidrCollectionException extends S.TaggedErrorClass()( "NoSuchCidrCollectionException", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class InvalidChangeBatch extends S.TaggedErrorClass()( "InvalidChangeBatch", @@ -4010,10 +3943,12 @@ export class InvalidChangeBatch extends S.TaggedErrorClass() export class NoSuchHealthCheck extends S.TaggedErrorClass()( "NoSuchHealthCheck", { message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError, C.withThrottlingError, C.withRetryableError) {} export class CidrCollectionAlreadyExistsException extends S.TaggedErrorClass()( "CidrCollectionAlreadyExistsException", @@ -4022,6 +3957,7 @@ export class CidrCollectionAlreadyExistsException extends S.TaggedErrorClass()( "HealthCheckAlreadyExists", { message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withAlreadyExistsError) {} export class TooManyHealthChecks extends S.TaggedErrorClass()( "TooManyHealthChecks", @@ -4038,10 +3974,12 @@ export class DelegationSetNotReusable extends S.TaggedErrorClass()( "HostedZoneAlreadyExists", { message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withAlreadyExistsError) {} export class InvalidDomainName extends S.TaggedErrorClass()( "InvalidDomainName", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class NoSuchDelegationSet extends S.TaggedErrorClass()( "NoSuchDelegationSet", @@ -4050,6 +3988,7 @@ export class NoSuchDelegationSet extends S.TaggedErrorClass export class TooManyHostedZones extends S.TaggedErrorClass()( "TooManyHostedZones", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidArgument extends S.TaggedErrorClass()( "InvalidArgument", @@ -4058,10 +3997,12 @@ export class InvalidArgument extends S.TaggedErrorClass()( export class InvalidKeySigningKeyName extends S.TaggedErrorClass()( "InvalidKeySigningKeyName", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class KeySigningKeyAlreadyExists extends S.TaggedErrorClass()( "KeySigningKeyAlreadyExists", { message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withAlreadyExistsError) {} export class TooManyKeySigningKeys extends S.TaggedErrorClass()( "TooManyKeySigningKeys", @@ -4070,14 +4011,17 @@ export class TooManyKeySigningKeys extends S.TaggedErrorClass()( "InsufficientCloudWatchLogsResourcePolicy", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class NoSuchCloudWatchLogsLogGroup extends S.TaggedErrorClass()( "NoSuchCloudWatchLogsLogGroup", { message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class QueryLoggingConfigAlreadyExists extends S.TaggedErrorClass()( "QueryLoggingConfigAlreadyExists", { message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withAlreadyExistsError) {} export class DelegationSetAlreadyCreated extends S.TaggedErrorClass()( "DelegationSetAlreadyCreated", @@ -4094,38 +4038,47 @@ export class HostedZoneNotFound extends S.TaggedErrorClass() export class InvalidTrafficPolicyDocument extends S.TaggedErrorClass()( "InvalidTrafficPolicyDocument", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyTrafficPolicies extends S.TaggedErrorClass()( "TooManyTrafficPolicies", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TrafficPolicyAlreadyExists extends S.TaggedErrorClass()( "TrafficPolicyAlreadyExists", { message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withAlreadyExistsError) {} export class NoSuchTrafficPolicy extends S.TaggedErrorClass()( "NoSuchTrafficPolicy", { message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class TooManyTrafficPolicyInstances extends S.TaggedErrorClass()( "TooManyTrafficPolicyInstances", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TrafficPolicyInstanceAlreadyExists extends S.TaggedErrorClass()( "TrafficPolicyInstanceAlreadyExists", { message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withAlreadyExistsError) {} export class TooManyTrafficPolicyVersionsForCurrentPolicy extends S.TaggedErrorClass()( "TooManyTrafficPolicyVersionsForCurrentPolicy", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyVPCAssociationAuthorizations extends S.TaggedErrorClass()( "TooManyVPCAssociationAuthorizations", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class KeySigningKeyInParentDSRecord extends S.TaggedErrorClass()( "KeySigningKeyInParentDSRecord", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class KeySigningKeyInUse extends S.TaggedErrorClass()( "KeySigningKeyInUse", @@ -4134,18 +4087,22 @@ export class KeySigningKeyInUse extends S.TaggedErrorClass() export class CidrCollectionInUseException extends S.TaggedErrorClass()( "CidrCollectionInUseException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class HealthCheckInUse extends S.TaggedErrorClass()( "HealthCheckInUse", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError, C.withDependencyViolationError) {} export class HostedZoneNotEmpty extends S.TaggedErrorClass()( "HostedZoneNotEmpty", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class NoSuchQueryLoggingConfig extends S.TaggedErrorClass()( "NoSuchQueryLoggingConfig", { message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class DelegationSetInUse extends S.TaggedErrorClass()( "DelegationSetInUse", @@ -4154,26 +4111,32 @@ export class DelegationSetInUse extends S.TaggedErrorClass() export class TrafficPolicyInUse extends S.TaggedErrorClass()( "TrafficPolicyInUse", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError, C.withDependencyViolationError) {} export class NoSuchTrafficPolicyInstance extends S.TaggedErrorClass()( "NoSuchTrafficPolicyInstance", { message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class VPCAssociationAuthorizationNotFound extends S.TaggedErrorClass()( "VPCAssociationAuthorizationNotFound", { message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class DNSSECNotFound extends S.TaggedErrorClass()( "DNSSECNotFound", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class LastVPCAssociation extends S.TaggedErrorClass()( "LastVPCAssociation", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class VPCAssociationNotFound extends S.TaggedErrorClass()( "VPCAssociationNotFound", { message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class HostedZonePartiallyDelegated extends S.TaggedErrorClass()( "HostedZonePartiallyDelegated", @@ -4186,14 +4149,17 @@ export class KeySigningKeyWithActiveStatusNotFound extends S.TaggedErrorClass()( "NoSuchChange", { message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class NoSuchGeoLocation extends S.TaggedErrorClass()( "NoSuchGeoLocation", { message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class IncompatibleVersion extends S.TaggedErrorClass()( "IncompatibleVersion", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class HostedZoneNotPrivate extends S.TaggedErrorClass()( "HostedZoneNotPrivate", @@ -4202,18 +4168,22 @@ export class HostedZoneNotPrivate extends S.TaggedErrorClass()( "NoSuchCidrLocationException", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class InvalidPaginationToken extends S.TaggedErrorClass()( "InvalidPaginationToken", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class HealthCheckVersionMismatch extends S.TaggedErrorClass()( "HealthCheckVersionMismatch", { message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ConflictingTypes extends S.TaggedErrorClass()( "ConflictingTypes", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} //# Operations diff --git a/packages/aws/src/services/rum.ts b/packages/aws/src/services/rum.ts index c88f8bc03f..595005120d 100644 --- a/packages/aws/src/services/rum.ts +++ b/packages/aws/src/services/rum.ts @@ -1114,7 +1114,7 @@ export class InternalServerException extends S.TaggedErrorClass()( "ResourceNotFoundException", @@ -1123,14 +1123,17 @@ export class ResourceNotFoundException extends S.TaggedErrorClass()( "ValidationException", { message: S.String }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.String }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", @@ -1140,7 +1143,7 @@ export class ThrottlingException extends S.TaggedErrorClass quotaCode: S.optional(S.String), retryAfterSeconds: S.optional(S.Number).pipe(T.HttpHeader("Retry-After")), }, - T.Retryable({ throttling: true }), + T.all(T.HttpError(429), T.Retryable({ throttling: true })), ).pipe(C.withThrottlingError, C.withRetryableError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", @@ -1149,26 +1152,32 @@ export class ConflictException extends S.TaggedErrorClass()( resourceName: S.String, resourceType: S.optional(S.String), }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", { message: S.String }, + T.HttpError(402), ).pipe(C.withQuotaError) {} export class InvalidPolicyRevisionIdException extends S.TaggedErrorClass()( "InvalidPolicyRevisionIdException", { message: S.String }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class PolicyNotFoundException extends S.TaggedErrorClass()( "PolicyNotFoundException", { message: S.String }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class MalformedPolicyDocumentException extends S.TaggedErrorClass()( "MalformedPolicyDocumentException", { message: S.String }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class PolicySizeLimitExceededException extends S.TaggedErrorClass()( "PolicySizeLimitExceededException", { message: S.String }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} //# Operations @@ -1223,6 +1232,7 @@ export const putRumEvents: API.OperationMethod< ValidationException, ], operationName: "PutRumEvents", + endpointHostPrefix: "dataplane.", })); export type TagResourceError = | InternalServerException diff --git a/packages/aws/src/services/s3-control.ts b/packages/aws/src/services/s3-control.ts index e0868eeca1..f376b54ce4 100644 --- a/packages/aws/src/services/s3-control.ts +++ b/packages/aws/src/services/s3-control.ts @@ -5536,7 +5536,7 @@ export const StorageLensGroupLevel = /*@__PURE__*/ S.suspend(() => }) as any as S.Schema; export interface AccountLevel { ActivityMetrics?: ActivityMetrics; - BucketLevel: BucketLevel; + BucketLevel?: BucketLevel; AdvancedCostOptimizationMetrics?: AdvancedCostOptimizationMetrics; AdvancedDataProtectionMetrics?: AdvancedDataProtectionMetrics; DetailedStatusCodesMetrics?: DetailedStatusCodesMetrics; @@ -5546,7 +5546,7 @@ export interface AccountLevel { export const AccountLevel = /*@__PURE__*/ S.suspend(() => S.Struct({ ActivityMetrics: S.optional(ActivityMetrics), - BucketLevel: BucketLevel, + BucketLevel: S.optional(BucketLevel), AdvancedCostOptimizationMetrics: S.optional( AdvancedCostOptimizationMetrics, ), @@ -7596,6 +7596,28 @@ export const UpdateStorageLensGroupResponse = }) as any as S.Schema; //# Errors +export class AccessPointAlreadyOwnedByYou extends S.TaggedErrorClass()( + "AccessPointAlreadyOwnedByYou", + {}, +).pipe(C.withAlreadyExistsError) {} +export class InvalidRequest extends S.TaggedErrorClass()( + "InvalidRequest", + {}, +).pipe(C.withBadRequestError) {} +export class NoSuchAccessPoint extends S.TaggedErrorClass()( + "NoSuchAccessPoint", + {}, +).pipe(C.withNotFoundError) {} +export class ObjectLambdaNotAvailable extends S.TaggedErrorClass()( + "ObjectLambdaNotAvailable", + {}, + T.SyntheticError({ + from: "AccessDenied", + message: { + includes: "Object Lambda is available only to existing customers", + }, + }), +).pipe(C.withAuthError) {} export class BucketAlreadyExists extends S.TaggedErrorClass()( "BucketAlreadyExists", {}, @@ -7620,13 +7642,26 @@ export class TooManyRequestsException extends S.TaggedErrorClass()( + "NoSuchAccessPointPolicy", + {}, +).pipe(C.withNotFoundError) {} export class NotFoundException extends S.TaggedErrorClass()( "NotFoundException", { Message: S.optional(S.String) }, ) {} +export class NoSuchMultiRegionAccessPoint extends S.TaggedErrorClass()( + "NoSuchMultiRegionAccessPoint", + {}, +).pipe(C.withNotFoundError) {} +export class NoSuchConfiguration extends S.TaggedErrorClass()( + "NoSuchConfiguration", + {}, +).pipe(C.withNotFoundError) {} export class NoSuchPublicAccessBlockConfiguration extends S.TaggedErrorClass()( "NoSuchPublicAccessBlockConfiguration", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class InvalidNextTokenException extends S.TaggedErrorClass()( "InvalidNextTokenException", @@ -7636,10 +7671,26 @@ export class InvalidRequestException extends S.TaggedErrorClass()( + "MalformedPolicy", + {}, +).pipe(C.withBadRequestError) {} export class TooManyTagsException extends S.TaggedErrorClass()( "TooManyTagsException", { Message: S.optional(S.String) }, ) {} +export class MissingBucketLevelActivityMetrics extends S.TaggedErrorClass()( + "MissingBucketLevelActivityMetrics", + {}, +).pipe(C.withBadRequestError) {} +export class JobStatusTransitionForbidden extends S.TaggedErrorClass()( + "JobStatusTransitionForbidden", + {}, + T.SyntheticError({ + from: "InvalidRequest", + message: { includes: "job status forbidden" }, + }), +).pipe(C.withBadRequestError) {} export class JobStatusException extends S.TaggedErrorClass()( "JobStatusException", { Message: S.optional(S.String) }, @@ -7668,6 +7719,7 @@ export const associateAccessGrantsIdentityCenter: API.OperationMethod< output: AssociateAccessGrantsIdentityCenterResponse, errors: [], operationName: "AssociateAccessGrantsIdentityCenter", + endpointHostPrefix: "{AccountId}.", })); export type CreateAccessGrantError = CommonErrors; /** @@ -7695,6 +7747,7 @@ export const createAccessGrant: API.OperationMethod< output: CreateAccessGrantResult, errors: [], operationName: "CreateAccessGrant", + endpointHostPrefix: "{AccountId}.", })); export type CreateAccessGrantsInstanceError = CommonErrors; /** @@ -7718,6 +7771,7 @@ export const createAccessGrantsInstance: API.OperationMethod< output: CreateAccessGrantsInstanceResult, errors: [], operationName: "CreateAccessGrantsInstance", + endpointHostPrefix: "{AccountId}.", })); export type CreateAccessGrantsLocationError = CommonErrors; /** @@ -7749,8 +7803,12 @@ export const createAccessGrantsLocation: API.OperationMethod< output: CreateAccessGrantsLocationResult, errors: [], operationName: "CreateAccessGrantsLocation", + endpointHostPrefix: "{AccountId}.", })); -export type CreateAccessPointError = CommonErrors; +export type CreateAccessPointError = + | AccessPointAlreadyOwnedByYou + | InvalidRequest + | CommonErrors; /** * Creates an access point and associates it to a specified bucket. For more information, see * Managing @@ -7787,10 +7845,16 @@ export const createAccessPoint: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateAccessPointRequest, output: CreateAccessPointResult, - errors: [], + errors: [AccessPointAlreadyOwnedByYou, InvalidRequest], operationName: "CreateAccessPoint", + endpointHostPrefix: "{AccountId}.", })); -export type CreateAccessPointForObjectLambdaError = CommonErrors; +export type CreateAccessPointForObjectLambdaError = + | AccessPointAlreadyOwnedByYou + | InvalidRequest + | NoSuchAccessPoint + | ObjectLambdaNotAvailable + | CommonErrors; /** * This operation is not supported by directory buckets. * @@ -7814,8 +7878,14 @@ export const createAccessPointForObjectLambda: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateAccessPointForObjectLambdaRequest, output: CreateAccessPointForObjectLambdaResult, - errors: [], + errors: [ + AccessPointAlreadyOwnedByYou, + InvalidRequest, + NoSuchAccessPoint, + ObjectLambdaNotAvailable, + ], operationName: "CreateAccessPointForObjectLambda", + endpointHostPrefix: "{AccountId}.", })); export type CreateBucketError = | BucketAlreadyExists @@ -7876,6 +7946,7 @@ export type CreateJobError = | IdempotencyException | InternalServiceException | TooManyRequestsException + | InvalidRequest | CommonErrors; /** * This operation creates an S3 Batch Operations job. @@ -7914,10 +7985,12 @@ export const createJob: API.OperationMethod< IdempotencyException, InternalServiceException, TooManyRequestsException, + InvalidRequest, ], operationName: "CreateJob", + endpointHostPrefix: "{AccountId}.", })); -export type CreateMultiRegionAccessPointError = CommonErrors; +export type CreateMultiRegionAccessPointError = InvalidRequest | CommonErrors; /** * This operation is not supported by directory buckets. * @@ -7951,8 +8024,9 @@ export const createMultiRegionAccessPoint: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateMultiRegionAccessPointRequest, output: CreateMultiRegionAccessPointResult, - errors: [], + errors: [InvalidRequest], operationName: "CreateMultiRegionAccessPoint", + endpointHostPrefix: "{AccountId}.", })); export type CreateStorageLensGroupError = CommonErrors; /** @@ -7982,6 +8056,7 @@ export const createStorageLensGroup: API.OperationMethod< output: CreateStorageLensGroupResponse, errors: [], operationName: "CreateStorageLensGroup", + endpointHostPrefix: "{AccountId}.", })); export type DeleteAccessGrantError = CommonErrors; /** @@ -8001,6 +8076,7 @@ export const deleteAccessGrant: API.OperationMethod< output: DeleteAccessGrantResponse, errors: [], operationName: "DeleteAccessGrant", + endpointHostPrefix: "{AccountId}.", })); export type DeleteAccessGrantsInstanceError = CommonErrors; /** @@ -8020,6 +8096,7 @@ export const deleteAccessGrantsInstance: API.OperationMethod< output: DeleteAccessGrantsInstanceResponse, errors: [], operationName: "DeleteAccessGrantsInstance", + endpointHostPrefix: "{AccountId}.", })); export type DeleteAccessGrantsInstanceResourcePolicyError = CommonErrors; /** @@ -8039,6 +8116,7 @@ export const deleteAccessGrantsInstanceResourcePolicy: API.OperationMethod< output: DeleteAccessGrantsInstanceResourcePolicyResponse, errors: [], operationName: "DeleteAccessGrantsInstanceResourcePolicy", + endpointHostPrefix: "{AccountId}.", })); export type DeleteAccessGrantsLocationError = CommonErrors; /** @@ -8058,8 +8136,9 @@ export const deleteAccessGrantsLocation: API.OperationMethod< output: DeleteAccessGrantsLocationResponse, errors: [], operationName: "DeleteAccessGrantsLocation", + endpointHostPrefix: "{AccountId}.", })); -export type DeleteAccessPointError = CommonErrors; +export type DeleteAccessPointError = NoSuchAccessPoint | CommonErrors; /** * Deletes the specified access point. * @@ -8081,10 +8160,13 @@ export const deleteAccessPoint: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteAccessPointRequest, output: DeleteAccessPointResponse, - errors: [], + errors: [NoSuchAccessPoint], operationName: "DeleteAccessPoint", + endpointHostPrefix: "{AccountId}.", })); -export type DeleteAccessPointForObjectLambdaError = CommonErrors; +export type DeleteAccessPointForObjectLambdaError = + | NoSuchAccessPoint + | CommonErrors; /** * This operation is not supported by directory buckets. * @@ -8107,10 +8189,14 @@ export const deleteAccessPointForObjectLambda: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteAccessPointForObjectLambdaRequest, output: DeleteAccessPointForObjectLambdaResponse, - errors: [], + errors: [NoSuchAccessPoint], operationName: "DeleteAccessPointForObjectLambda", + endpointHostPrefix: "{AccountId}.", })); -export type DeleteAccessPointPolicyError = CommonErrors; +export type DeleteAccessPointPolicyError = + | NoSuchAccessPoint + | NoSuchAccessPointPolicy + | CommonErrors; /** * Deletes the access point policy for the specified access point. * @@ -8130,10 +8216,14 @@ export const deleteAccessPointPolicy: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteAccessPointPolicyRequest, output: DeleteAccessPointPolicyResponse, - errors: [], + errors: [NoSuchAccessPoint, NoSuchAccessPointPolicy], operationName: "DeleteAccessPointPolicy", + endpointHostPrefix: "{AccountId}.", })); -export type DeleteAccessPointPolicyForObjectLambdaError = CommonErrors; +export type DeleteAccessPointPolicyForObjectLambdaError = + | NoSuchAccessPoint + | NoSuchAccessPointPolicy + | CommonErrors; /** * This operation is not supported by directory buckets. * @@ -8154,8 +8244,9 @@ export const deleteAccessPointPolicyForObjectLambda: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteAccessPointPolicyForObjectLambdaRequest, output: DeleteAccessPointPolicyForObjectLambdaResponse, - errors: [], + errors: [NoSuchAccessPoint, NoSuchAccessPointPolicy], operationName: "DeleteAccessPointPolicyForObjectLambda", + endpointHostPrefix: "{AccountId}.", })); export type DeleteAccessPointScopeError = CommonErrors; /** @@ -8208,6 +8299,7 @@ export const deleteBucket: API.OperationMethod< output: DeleteBucketResponse, errors: [], operationName: "DeleteBucket", + endpointHostPrefix: "{AccountId}.", })); export type DeleteBucketLifecycleConfigurationError = CommonErrors; /** @@ -8246,6 +8338,7 @@ export const deleteBucketLifecycleConfiguration: API.OperationMethod< output: DeleteBucketLifecycleConfigurationResponse, errors: [], operationName: "DeleteBucketLifecycleConfiguration", + endpointHostPrefix: "{AccountId}.", })); export type DeleteBucketPolicyError = CommonErrors; /** @@ -8290,6 +8383,7 @@ export const deleteBucketPolicy: API.OperationMethod< output: DeleteBucketPolicyResponse, errors: [], operationName: "DeleteBucketPolicy", + endpointHostPrefix: "{AccountId}.", })); export type DeleteBucketReplicationError = CommonErrors; /** @@ -8333,6 +8427,7 @@ export const deleteBucketReplication: API.OperationMethod< output: DeleteBucketReplicationResponse, errors: [], operationName: "DeleteBucketReplication", + endpointHostPrefix: "{AccountId}.", })); export type DeleteBucketTaggingError = CommonErrors; /** @@ -8364,6 +8459,7 @@ export const deleteBucketTagging: API.OperationMethod< output: DeleteBucketTaggingResponse, errors: [], operationName: "DeleteBucketTagging", + endpointHostPrefix: "{AccountId}.", })); export type DeleteJobTaggingError = | InternalServiceException @@ -8403,8 +8499,12 @@ export const deleteJobTagging: API.OperationMethod< TooManyRequestsException, ], operationName: "DeleteJobTagging", + endpointHostPrefix: "{AccountId}.", })); -export type DeleteMultiRegionAccessPointError = CommonErrors; +export type DeleteMultiRegionAccessPointError = + | NoSuchMultiRegionAccessPoint + | InvalidRequest + | CommonErrors; /** * This operation is not supported by directory buckets. * @@ -8438,8 +8538,9 @@ export const deleteMultiRegionAccessPoint: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteMultiRegionAccessPointRequest, output: DeleteMultiRegionAccessPointResult, - errors: [], + errors: [NoSuchMultiRegionAccessPoint, InvalidRequest], operationName: "DeleteMultiRegionAccessPoint", + endpointHostPrefix: "{AccountId}.", })); export type DeletePublicAccessBlockError = CommonErrors; /** @@ -8469,8 +8570,11 @@ export const deletePublicAccessBlock: API.OperationMethod< output: DeletePublicAccessBlockResponse, errors: [], operationName: "DeletePublicAccessBlock", + endpointHostPrefix: "{AccountId}.", })); -export type DeleteStorageLensConfigurationError = CommonErrors; +export type DeleteStorageLensConfigurationError = + | NoSuchConfiguration + | CommonErrors; /** * This operation is not supported by directory buckets. * @@ -8491,10 +8595,13 @@ export const deleteStorageLensConfiguration: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteStorageLensConfigurationRequest, output: DeleteStorageLensConfigurationResponse, - errors: [], + errors: [NoSuchConfiguration], operationName: "DeleteStorageLensConfiguration", + endpointHostPrefix: "{AccountId}.", })); -export type DeleteStorageLensConfigurationTaggingError = CommonErrors; +export type DeleteStorageLensConfigurationTaggingError = + | NoSuchConfiguration + | CommonErrors; /** * This operation is not supported by directory buckets. * @@ -8516,8 +8623,9 @@ export const deleteStorageLensConfigurationTagging: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteStorageLensConfigurationTaggingRequest, output: DeleteStorageLensConfigurationTaggingResult, - errors: [], + errors: [NoSuchConfiguration], operationName: "DeleteStorageLensConfigurationTagging", + endpointHostPrefix: "{AccountId}.", })); export type DeleteStorageLensGroupError = CommonErrors; /** @@ -8540,6 +8648,7 @@ export const deleteStorageLensGroup: API.OperationMethod< output: DeleteStorageLensGroupResponse, errors: [], operationName: "DeleteStorageLensGroup", + endpointHostPrefix: "{AccountId}.", })); export type DescribeJobError = | BadRequestException @@ -8580,8 +8689,11 @@ export const describeJob: API.OperationMethod< TooManyRequestsException, ], operationName: "DescribeJob", + endpointHostPrefix: "{AccountId}.", })); -export type DescribeMultiRegionAccessPointOperationError = CommonErrors; +export type DescribeMultiRegionAccessPointOperationError = + | InvalidRequest + | CommonErrors; /** * This operation is not supported by directory buckets. * @@ -8606,8 +8718,9 @@ export const describeMultiRegionAccessPointOperation: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeMultiRegionAccessPointOperationRequest, output: DescribeMultiRegionAccessPointOperationResult, - errors: [], + errors: [InvalidRequest], operationName: "DescribeMultiRegionAccessPointOperation", + endpointHostPrefix: "{AccountId}.", })); export type DissociateAccessGrantsIdentityCenterError = CommonErrors; /** @@ -8631,6 +8744,7 @@ export const dissociateAccessGrantsIdentityCenter: API.OperationMethod< output: DissociateAccessGrantsIdentityCenterResponse, errors: [], operationName: "DissociateAccessGrantsIdentityCenter", + endpointHostPrefix: "{AccountId}.", })); export type GetAccessGrantError = CommonErrors; /** @@ -8650,6 +8764,7 @@ export const getAccessGrant: API.OperationMethod< output: GetAccessGrantResult, errors: [], operationName: "GetAccessGrant", + endpointHostPrefix: "{AccountId}.", })); export type GetAccessGrantsInstanceError = CommonErrors; /** @@ -8671,6 +8786,7 @@ export const getAccessGrantsInstance: API.OperationMethod< output: GetAccessGrantsInstanceResult, errors: [], operationName: "GetAccessGrantsInstance", + endpointHostPrefix: "{AccountId}.", })); export type GetAccessGrantsInstanceForPrefixError = CommonErrors; /** @@ -8694,6 +8810,7 @@ export const getAccessGrantsInstanceForPrefix: API.OperationMethod< output: GetAccessGrantsInstanceForPrefixResult, errors: [], operationName: "GetAccessGrantsInstanceForPrefix", + endpointHostPrefix: "{AccountId}.", })); export type GetAccessGrantsInstanceResourcePolicyError = CommonErrors; /** @@ -8713,6 +8830,7 @@ export const getAccessGrantsInstanceResourcePolicy: API.OperationMethod< output: GetAccessGrantsInstanceResourcePolicyResult, errors: [], operationName: "GetAccessGrantsInstanceResourcePolicy", + endpointHostPrefix: "{AccountId}.", })); export type GetAccessGrantsLocationError = CommonErrors; /** @@ -8732,8 +8850,9 @@ export const getAccessGrantsLocation: API.OperationMethod< output: GetAccessGrantsLocationResult, errors: [], operationName: "GetAccessGrantsLocation", + endpointHostPrefix: "{AccountId}.", })); -export type GetAccessPointError = CommonErrors; +export type GetAccessPointError = NoSuchAccessPoint | CommonErrors; /** * Returns configuration information about the specified access point. * @@ -8755,10 +8874,13 @@ export const getAccessPoint: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetAccessPointRequest, output: GetAccessPointResult, - errors: [], + errors: [NoSuchAccessPoint], operationName: "GetAccessPoint", + endpointHostPrefix: "{AccountId}.", })); -export type GetAccessPointConfigurationForObjectLambdaError = CommonErrors; +export type GetAccessPointConfigurationForObjectLambdaError = + | NoSuchAccessPoint + | CommonErrors; /** * This operation is not supported by directory buckets. * @@ -8777,10 +8899,13 @@ export const getAccessPointConfigurationForObjectLambda: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetAccessPointConfigurationForObjectLambdaRequest, output: GetAccessPointConfigurationForObjectLambdaResult, - errors: [], + errors: [NoSuchAccessPoint], operationName: "GetAccessPointConfigurationForObjectLambda", + endpointHostPrefix: "{AccountId}.", })); -export type GetAccessPointForObjectLambdaError = CommonErrors; +export type GetAccessPointForObjectLambdaError = + | NoSuchAccessPoint + | CommonErrors; /** * This operation is not supported by directory buckets. * @@ -8802,10 +8927,14 @@ export const getAccessPointForObjectLambda: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetAccessPointForObjectLambdaRequest, output: GetAccessPointForObjectLambdaResult, - errors: [], + errors: [NoSuchAccessPoint], operationName: "GetAccessPointForObjectLambda", + endpointHostPrefix: "{AccountId}.", })); -export type GetAccessPointPolicyError = CommonErrors; +export type GetAccessPointPolicyError = + | NoSuchAccessPoint + | NoSuchAccessPointPolicy + | CommonErrors; /** * Returns the access point policy associated with the specified access point. * @@ -8823,10 +8952,14 @@ export const getAccessPointPolicy: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetAccessPointPolicyRequest, output: GetAccessPointPolicyResult, - errors: [], + errors: [NoSuchAccessPoint, NoSuchAccessPointPolicy], operationName: "GetAccessPointPolicy", + endpointHostPrefix: "{AccountId}.", })); -export type GetAccessPointPolicyForObjectLambdaError = CommonErrors; +export type GetAccessPointPolicyForObjectLambdaError = + | NoSuchAccessPoint + | NoSuchAccessPointPolicy + | CommonErrors; /** * This operation is not supported by directory buckets. * @@ -8847,10 +8980,14 @@ export const getAccessPointPolicyForObjectLambda: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetAccessPointPolicyForObjectLambdaRequest, output: GetAccessPointPolicyForObjectLambdaResult, - errors: [], + errors: [NoSuchAccessPoint, NoSuchAccessPointPolicy], operationName: "GetAccessPointPolicyForObjectLambda", + endpointHostPrefix: "{AccountId}.", })); -export type GetAccessPointPolicyStatusError = CommonErrors; +export type GetAccessPointPolicyStatusError = + | NoSuchAccessPoint + | NoSuchAccessPointPolicy + | CommonErrors; /** * This operation is not supported by directory buckets. * @@ -8866,8 +9003,9 @@ export const getAccessPointPolicyStatus: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetAccessPointPolicyStatusRequest, output: GetAccessPointPolicyStatusResult, - errors: [], + errors: [NoSuchAccessPoint, NoSuchAccessPointPolicy], operationName: "GetAccessPointPolicyStatus", + endpointHostPrefix: "{AccountId}.", })); export type GetAccessPointPolicyStatusForObjectLambdaError = CommonErrors; /** @@ -8885,6 +9023,7 @@ export const getAccessPointPolicyStatusForObjectLambda: API.OperationMethod< output: GetAccessPointPolicyStatusForObjectLambdaResult, errors: [], operationName: "GetAccessPointPolicyStatusForObjectLambda", + endpointHostPrefix: "{AccountId}.", })); export type GetAccessPointScopeError = CommonErrors; /** @@ -8941,6 +9080,7 @@ export const getBucket: API.OperationMethod< output: GetBucketResult, errors: [], operationName: "GetBucket", + endpointHostPrefix: "{AccountId}.", })); export type GetBucketLifecycleConfigurationError = CommonErrors; /** @@ -8987,6 +9127,7 @@ export const getBucketLifecycleConfiguration: API.OperationMethod< output: GetBucketLifecycleConfigurationResult, errors: [], operationName: "GetBucketLifecycleConfiguration", + endpointHostPrefix: "{AccountId}.", })); export type GetBucketPolicyError = CommonErrors; /** @@ -9034,6 +9175,7 @@ export const getBucketPolicy: API.OperationMethod< output: GetBucketPolicyResult, errors: [], operationName: "GetBucketPolicy", + endpointHostPrefix: "{AccountId}.", })); export type GetBucketReplicationError = CommonErrors; /** @@ -9085,6 +9227,7 @@ export const getBucketReplication: API.OperationMethod< output: GetBucketReplicationResult, errors: [], operationName: "GetBucketReplication", + endpointHostPrefix: "{AccountId}.", })); export type GetBucketTaggingError = CommonErrors; /** @@ -9123,6 +9266,7 @@ export const getBucketTagging: API.OperationMethod< output: GetBucketTaggingResult, errors: [], operationName: "GetBucketTagging", + endpointHostPrefix: "{AccountId}.", })); export type GetBucketVersioningError = CommonErrors; /** @@ -9167,6 +9311,7 @@ export const getBucketVersioning: API.OperationMethod< output: GetBucketVersioningResult, errors: [], operationName: "GetBucketVersioning", + endpointHostPrefix: "{AccountId}.", })); export type GetDataAccessError = CommonErrors; /** @@ -9190,6 +9335,7 @@ export const getDataAccess: API.OperationMethod< output: GetDataAccessResult, errors: [], operationName: "GetDataAccess", + endpointHostPrefix: "{AccountId}.", })); export type GetJobTaggingError = | InternalServiceException @@ -9229,8 +9375,11 @@ export const getJobTagging: API.OperationMethod< TooManyRequestsException, ], operationName: "GetJobTagging", + endpointHostPrefix: "{AccountId}.", })); -export type GetMultiRegionAccessPointError = CommonErrors; +export type GetMultiRegionAccessPointError = + | NoSuchMultiRegionAccessPoint + | CommonErrors; /** * This operation is not supported by directory buckets. * @@ -9258,10 +9407,13 @@ export const getMultiRegionAccessPoint: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetMultiRegionAccessPointRequest, output: GetMultiRegionAccessPointResult, - errors: [], + errors: [NoSuchMultiRegionAccessPoint], operationName: "GetMultiRegionAccessPoint", + endpointHostPrefix: "{AccountId}.", })); -export type GetMultiRegionAccessPointPolicyError = CommonErrors; +export type GetMultiRegionAccessPointPolicyError = + | NoSuchMultiRegionAccessPoint + | CommonErrors; /** * This operation is not supported by directory buckets. * @@ -9286,8 +9438,9 @@ export const getMultiRegionAccessPointPolicy: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetMultiRegionAccessPointPolicyRequest, output: GetMultiRegionAccessPointPolicyResult, - errors: [], + errors: [NoSuchMultiRegionAccessPoint], operationName: "GetMultiRegionAccessPointPolicy", + endpointHostPrefix: "{AccountId}.", })); export type GetMultiRegionAccessPointPolicyStatusError = CommonErrors; /** @@ -9317,6 +9470,7 @@ export const getMultiRegionAccessPointPolicyStatus: API.OperationMethod< output: GetMultiRegionAccessPointPolicyStatusResult, errors: [], operationName: "GetMultiRegionAccessPointPolicyStatus", + endpointHostPrefix: "{AccountId}.", })); export type GetMultiRegionAccessPointRoutesError = CommonErrors; /** @@ -9348,6 +9502,7 @@ export const getMultiRegionAccessPointRoutes: API.OperationMethod< output: GetMultiRegionAccessPointRoutesResult, errors: [], operationName: "GetMultiRegionAccessPointRoutes", + endpointHostPrefix: "{AccountId}.", })); export type GetPublicAccessBlockError = | NoSuchPublicAccessBlockConfiguration @@ -9376,8 +9531,11 @@ export const getPublicAccessBlock: API.OperationMethod< output: GetPublicAccessBlockOutput, errors: [NoSuchPublicAccessBlockConfiguration], operationName: "GetPublicAccessBlock", + endpointHostPrefix: "{AccountId}.", })); -export type GetStorageLensConfigurationError = CommonErrors; +export type GetStorageLensConfigurationError = + | NoSuchConfiguration + | CommonErrors; /** * This operation is not supported by directory buckets. * @@ -9397,10 +9555,13 @@ export const getStorageLensConfiguration: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetStorageLensConfigurationRequest, output: GetStorageLensConfigurationResult, - errors: [], + errors: [NoSuchConfiguration], operationName: "GetStorageLensConfiguration", + endpointHostPrefix: "{AccountId}.", })); -export type GetStorageLensConfigurationTaggingError = CommonErrors; +export type GetStorageLensConfigurationTaggingError = + | NoSuchConfiguration + | CommonErrors; /** * This operation is not supported by directory buckets. * @@ -9422,8 +9583,9 @@ export const getStorageLensConfigurationTagging: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetStorageLensConfigurationTaggingRequest, output: GetStorageLensConfigurationTaggingResult, - errors: [], + errors: [NoSuchConfiguration], operationName: "GetStorageLensConfigurationTagging", + endpointHostPrefix: "{AccountId}.", })); export type GetStorageLensGroupError = CommonErrors; /** @@ -9446,6 +9608,7 @@ export const getStorageLensGroup: API.OperationMethod< output: GetStorageLensGroupResult, errors: [], operationName: "GetStorageLensGroup", + endpointHostPrefix: "{AccountId}.", })); export type ListAccessGrantsError = CommonErrors; /** @@ -9480,6 +9643,7 @@ export const listAccessGrants: API.OperationMethod< output: ListAccessGrantsResult, errors: [], operationName: "ListAccessGrants", + endpointHostPrefix: "{AccountId}.", pagination: { inputToken: "NextToken", outputToken: "NextToken", @@ -9519,6 +9683,7 @@ export const listAccessGrantsInstances: API.OperationMethod< output: ListAccessGrantsInstancesResult, errors: [], operationName: "ListAccessGrantsInstances", + endpointHostPrefix: "{AccountId}.", pagination: { inputToken: "NextToken", outputToken: "NextToken", @@ -9558,6 +9723,7 @@ export const listAccessGrantsLocations: API.OperationMethod< output: ListAccessGrantsLocationsResult, errors: [], operationName: "ListAccessGrantsLocations", + endpointHostPrefix: "{AccountId}.", pagination: { inputToken: "NextToken", outputToken: "NextToken", @@ -9611,6 +9777,7 @@ export const listAccessPoints: API.OperationMethod< output: ListAccessPointsResult, errors: [], operationName: "ListAccessPoints", + endpointHostPrefix: "{AccountId}.", pagination: { inputToken: "NextToken", outputToken: "NextToken", @@ -9702,6 +9869,7 @@ export const listAccessPointsForObjectLambda: API.OperationMethod< output: ListAccessPointsForObjectLambdaResult, errors: [], operationName: "ListAccessPointsForObjectLambda", + endpointHostPrefix: "{AccountId}.", pagination: { inputToken: "NextToken", outputToken: "NextToken", @@ -9742,6 +9910,7 @@ export const listCallerAccessGrants: API.OperationMethod< output: ListCallerAccessGrantsResult, errors: [], operationName: "ListCallerAccessGrants", + endpointHostPrefix: "{AccountId}.", pagination: { inputToken: "NextToken", outputToken: "NextToken", @@ -9803,6 +9972,7 @@ export const listJobs: API.OperationMethod< InvalidRequestException, ], operationName: "ListJobs", + endpointHostPrefix: "{AccountId}.", pagination: { inputToken: "NextToken", outputToken: "NextToken", @@ -9856,6 +10026,7 @@ export const listMultiRegionAccessPoints: API.OperationMethod< output: ListMultiRegionAccessPointsResult, errors: [], operationName: "ListMultiRegionAccessPoints", + endpointHostPrefix: "{AccountId}.", pagination: { inputToken: "NextToken", outputToken: "NextToken", @@ -9898,6 +10069,7 @@ export const listRegionalBuckets: API.OperationMethod< output: ListRegionalBucketsResult, errors: [], operationName: "ListRegionalBuckets", + endpointHostPrefix: "{AccountId}.", pagination: { inputToken: "NextToken", outputToken: "NextToken", @@ -9943,6 +10115,7 @@ export const listStorageLensConfigurations: API.OperationMethod< output: ListStorageLensConfigurationsResult, errors: [], operationName: "ListStorageLensConfigurations", + endpointHostPrefix: "{AccountId}.", pagination: { inputToken: "NextToken", outputToken: "NextToken" } as const, })); export type ListStorageLensGroupsError = CommonErrors; @@ -9981,9 +10154,10 @@ export const listStorageLensGroups: API.OperationMethod< output: ListStorageLensGroupsResult, errors: [], operationName: "ListStorageLensGroups", + endpointHostPrefix: "{AccountId}.", pagination: { inputToken: "NextToken", outputToken: "NextToken" } as const, })); -export type ListTagsForResourceError = CommonErrors; +export type ListTagsForResourceError = NoSuchAccessPoint | CommonErrors; /** * This operation allows you to list all of the tags for a specified resource. Each tag is a label consisting of a key and value. Tags can help you organize, track costs for, and control access to resources. * @@ -10023,8 +10197,9 @@ export const listTagsForResource: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: ListTagsForResourceRequest, output: ListTagsForResourceResult, - errors: [], + errors: [NoSuchAccessPoint], operationName: "ListTagsForResource", + endpointHostPrefix: "{AccountId}.", })); export type PutAccessGrantsInstanceResourcePolicyError = CommonErrors; /** @@ -10044,8 +10219,12 @@ export const putAccessGrantsInstanceResourcePolicy: API.OperationMethod< output: PutAccessGrantsInstanceResourcePolicyResult, errors: [], operationName: "PutAccessGrantsInstanceResourcePolicy", + endpointHostPrefix: "{AccountId}.", })); -export type PutAccessPointConfigurationForObjectLambdaError = CommonErrors; +export type PutAccessPointConfigurationForObjectLambdaError = + | NoSuchAccessPoint + | InvalidRequest + | CommonErrors; /** * This operation is not supported by directory buckets. * @@ -10064,10 +10243,14 @@ export const putAccessPointConfigurationForObjectLambda: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: PutAccessPointConfigurationForObjectLambdaRequest, output: PutAccessPointConfigurationForObjectLambdaResponse, - errors: [], + errors: [NoSuchAccessPoint, InvalidRequest], operationName: "PutAccessPointConfigurationForObjectLambda", + endpointHostPrefix: "{AccountId}.", })); -export type PutAccessPointPolicyError = CommonErrors; +export type PutAccessPointPolicyError = + | NoSuchAccessPoint + | MalformedPolicy + | CommonErrors; /** * Associates an access policy with the specified access point. Each access point can have only one policy, * so a request made to this API replaces any existing policy associated with the specified @@ -10089,10 +10272,14 @@ export const putAccessPointPolicy: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: PutAccessPointPolicyRequest, output: PutAccessPointPolicyResponse, - errors: [], + errors: [NoSuchAccessPoint, MalformedPolicy], operationName: "PutAccessPointPolicy", + endpointHostPrefix: "{AccountId}.", })); -export type PutAccessPointPolicyForObjectLambdaError = CommonErrors; +export type PutAccessPointPolicyForObjectLambdaError = + | NoSuchAccessPoint + | MalformedPolicy + | CommonErrors; /** * This operation is not supported by directory buckets. * @@ -10113,8 +10300,9 @@ export const putAccessPointPolicyForObjectLambda: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: PutAccessPointPolicyForObjectLambdaRequest, output: PutAccessPointPolicyForObjectLambdaResponse, - errors: [], + errors: [NoSuchAccessPoint, MalformedPolicy], operationName: "PutAccessPointPolicyForObjectLambda", + endpointHostPrefix: "{AccountId}.", })); export type PutAccessPointScopeError = CommonErrors; /** @@ -10167,6 +10355,7 @@ export const putBucketLifecycleConfiguration: API.OperationMethod< output: PutBucketLifecycleConfigurationResponse, errors: [], operationName: "PutBucketLifecycleConfiguration", + endpointHostPrefix: "{AccountId}.", })); export type PutBucketPolicyError = CommonErrors; /** @@ -10212,6 +10401,7 @@ export const putBucketPolicy: API.OperationMethod< output: PutBucketPolicyResponse, errors: [], operationName: "PutBucketPolicy", + endpointHostPrefix: "{AccountId}.", })); export type PutBucketReplicationError = CommonErrors; /** @@ -10299,6 +10489,7 @@ export const putBucketReplication: API.OperationMethod< output: PutBucketReplicationResponse, errors: [], operationName: "PutBucketReplication", + endpointHostPrefix: "{AccountId}.", })); export type PutBucketTaggingError = CommonErrors; /** @@ -10368,6 +10559,7 @@ export const putBucketTagging: API.OperationMethod< output: PutBucketTaggingResponse, errors: [], operationName: "PutBucketTagging", + endpointHostPrefix: "{AccountId}.", })); export type PutBucketVersioningError = CommonErrors; /** @@ -10432,6 +10624,7 @@ export const putBucketVersioning: API.OperationMethod< output: PutBucketVersioningResponse, errors: [], operationName: "PutBucketVersioning", + endpointHostPrefix: "{AccountId}.", })); export type PutJobTaggingError = | InternalServiceException @@ -10500,8 +10693,12 @@ export const putJobTagging: API.OperationMethod< TooManyTagsException, ], operationName: "PutJobTagging", + endpointHostPrefix: "{AccountId}.", })); -export type PutMultiRegionAccessPointPolicyError = CommonErrors; +export type PutMultiRegionAccessPointPolicyError = + | NoSuchMultiRegionAccessPoint + | InvalidRequest + | CommonErrors; /** * This operation is not supported by directory buckets. * @@ -10528,8 +10725,9 @@ export const putMultiRegionAccessPointPolicy: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: PutMultiRegionAccessPointPolicyRequest, output: PutMultiRegionAccessPointPolicyResult, - errors: [], + errors: [NoSuchMultiRegionAccessPoint, InvalidRequest], operationName: "PutMultiRegionAccessPointPolicy", + endpointHostPrefix: "{AccountId}.", })); export type PutPublicAccessBlockError = CommonErrors; /** @@ -10560,8 +10758,12 @@ export const putPublicAccessBlock: API.OperationMethod< output: PutPublicAccessBlockResponse, errors: [], operationName: "PutPublicAccessBlock", + endpointHostPrefix: "{AccountId}.", })); -export type PutStorageLensConfigurationError = CommonErrors; +export type PutStorageLensConfigurationError = + | InvalidRequest + | MissingBucketLevelActivityMetrics + | CommonErrors; /** * This operation is not supported by directory buckets. * @@ -10580,10 +10782,13 @@ export const putStorageLensConfiguration: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: PutStorageLensConfigurationRequest, output: PutStorageLensConfigurationResponse, - errors: [], + errors: [InvalidRequest, MissingBucketLevelActivityMetrics], operationName: "PutStorageLensConfiguration", + endpointHostPrefix: "{AccountId}.", })); -export type PutStorageLensConfigurationTaggingError = CommonErrors; +export type PutStorageLensConfigurationTaggingError = + | NoSuchConfiguration + | CommonErrors; /** * This operation is not supported by directory buckets. * @@ -10604,8 +10809,9 @@ export const putStorageLensConfigurationTagging: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: PutStorageLensConfigurationTaggingRequest, output: PutStorageLensConfigurationTaggingResult, - errors: [], + errors: [NoSuchConfiguration], operationName: "PutStorageLensConfigurationTagging", + endpointHostPrefix: "{AccountId}.", })); export type SubmitMultiRegionAccessPointRoutesError = CommonErrors; /** @@ -10649,8 +10855,9 @@ export const submitMultiRegionAccessPointRoutes: API.OperationMethod< output: SubmitMultiRegionAccessPointRoutesResult, errors: [], operationName: "SubmitMultiRegionAccessPointRoutes", + endpointHostPrefix: "{AccountId}.", })); -export type TagResourceError = CommonErrors; +export type TagResourceError = NoSuchAccessPoint | CommonErrors; /** * Creates a new user-defined tag or updates an existing tag. Each tag is a label consisting of a key and value that is applied to your resource. Tags can help you organize, track costs for, and control access to your resources. You can add up to 50 Amazon Web Services resource tags for each S3 resource. * @@ -10690,10 +10897,11 @@ export const tagResource: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: TagResourceRequest, output: TagResourceResult, - errors: [], + errors: [NoSuchAccessPoint], operationName: "TagResource", + endpointHostPrefix: "{AccountId}.", })); -export type UntagResourceError = CommonErrors; +export type UntagResourceError = NoSuchAccessPoint | CommonErrors; /** * This operation removes the specified user-defined tags from an S3 resource. You can pass one or more tag keys. * @@ -10734,8 +10942,9 @@ export const untagResource: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: UntagResourceRequest, output: UntagResourceResult, - errors: [], + errors: [NoSuchAccessPoint], operationName: "UntagResource", + endpointHostPrefix: "{AccountId}.", })); export type UpdateAccessGrantsLocationError = CommonErrors; /** @@ -10759,12 +10968,15 @@ export const updateAccessGrantsLocation: API.OperationMethod< output: UpdateAccessGrantsLocationResult, errors: [], operationName: "UpdateAccessGrantsLocation", + endpointHostPrefix: "{AccountId}.", })); export type UpdateJobPriorityError = | BadRequestException | InternalServiceException | NotFoundException | TooManyRequestsException + | InvalidRequest + | JobStatusTransitionForbidden | CommonErrors; /** * Updates an existing S3 Batch Operations job's priority. For more information, see S3 Batch Operations in the *Amazon S3 User Guide*. @@ -10798,8 +11010,11 @@ export const updateJobPriority: API.OperationMethod< InternalServiceException, NotFoundException, TooManyRequestsException, + InvalidRequest, + JobStatusTransitionForbidden, ], operationName: "UpdateJobPriority", + endpointHostPrefix: "{AccountId}.", })); export type UpdateJobStatusError = | BadRequestException @@ -10807,6 +11022,8 @@ export type UpdateJobStatusError = | JobStatusException | NotFoundException | TooManyRequestsException + | InvalidRequest + | JobStatusTransitionForbidden | CommonErrors; /** * Updates the status for the specified job. Use this operation to confirm that you want to @@ -10842,8 +11059,11 @@ export const updateJobStatus: API.OperationMethod< JobStatusException, NotFoundException, TooManyRequestsException, + InvalidRequest, + JobStatusTransitionForbidden, ], operationName: "UpdateJobStatus", + endpointHostPrefix: "{AccountId}.", })); export type UpdateStorageLensGroupError = CommonErrors; /** @@ -10866,4 +11086,5 @@ export const updateStorageLensGroup: API.OperationMethod< output: UpdateStorageLensGroupResponse, errors: [], operationName: "UpdateStorageLensGroup", + endpointHostPrefix: "{AccountId}.", })); diff --git a/packages/aws/src/services/s3.ts b/packages/aws/src/services/s3.ts index 1e0e7e198d..21e2a2c480 100644 --- a/packages/aws/src/services/s3.ts +++ b/packages/aws/src/services/s3.ts @@ -3247,38 +3247,37 @@ export interface AbortMultipartUploadRequest { ExpectedBucketOwner?: string; IfMatchInitiatedTime?: Date; } -export const AbortMultipartUploadRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), - Key: S.String.pipe(T.HttpLabel("Key"), T.ContextParam("Key")), - UploadId: S.String.pipe(T.HttpQuery("uploadId")), - RequestPayer: S.optional(RequestPayer).pipe( - T.HttpHeader("x-amz-request-payer"), - ), - ExpectedBucketOwner: S.optional(S.String).pipe( - T.HttpHeader("x-amz-expected-bucket-owner"), - ), - IfMatchInitiatedTime: S.optional( - S.Date.pipe(T.TimestampFormat("http-date")), - ).pipe(T.HttpHeader("x-amz-if-match-initiated-time")), - }).pipe( - T.all( - ns, - T.Http({ - method: "DELETE", - uri: "/{Bucket}/{Key+}?x-id=AbortMultipartUpload", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const AbortMultipartUploadRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), + Key: S.String.pipe(T.HttpLabel("Key"), T.ContextParam("Key")), + UploadId: S.String.pipe(T.HttpQuery("uploadId")), + RequestPayer: S.optional(RequestPayer).pipe( + T.HttpHeader("x-amz-request-payer"), ), - ).annotate({ - identifier: "AbortMultipartUploadRequest", - }) as any as S.Schema; + ExpectedBucketOwner: S.optional(S.String).pipe( + T.HttpHeader("x-amz-expected-bucket-owner"), + ), + IfMatchInitiatedTime: S.optional( + S.Date.pipe(T.TimestampFormat("http-date")), + ).pipe(T.HttpHeader("x-amz-if-match-initiated-time")), + }).pipe( + T.all( + ns, + T.Http({ + method: "DELETE", + uri: "/{Bucket}/{Key+}?x-id=AbortMultipartUpload", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "AbortMultipartUploadRequest", +}) as any as S.Schema; export type RequestCharged = "requester" | (string & {}); export const RequestCharged = /*@__PURE__*/ S.String; export interface AbortMultipartUploadOutput { @@ -3365,82 +3364,79 @@ export interface CompleteMultipartUploadRequest { SSECustomerKey?: string | redacted.Redacted; SSECustomerKeyMD5?: string; } -export const CompleteMultipartUploadRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), - Key: S.String.pipe(T.HttpLabel("Key"), T.ContextParam("Key")), - MultipartUpload: S.optional(CompletedMultipartUpload) - .pipe(T.HttpPayload(), T.XmlName("CompleteMultipartUpload")) - .annotate({ identifier: "CompletedMultipartUpload" }), - UploadId: S.String.pipe(T.HttpQuery("uploadId")), - ChecksumCRC32: S.optional(S.String).pipe( - T.HttpHeader("x-amz-checksum-crc32"), - ), - ChecksumCRC32C: S.optional(S.String).pipe( - T.HttpHeader("x-amz-checksum-crc32c"), - ), - ChecksumCRC64NVME: S.optional(S.String).pipe( - T.HttpHeader("x-amz-checksum-crc64nvme"), - ), - ChecksumSHA1: S.optional(S.String).pipe( - T.HttpHeader("x-amz-checksum-sha1"), - ), - ChecksumSHA256: S.optional(S.String).pipe( - T.HttpHeader("x-amz-checksum-sha256"), - ), - ChecksumSHA512: S.optional(S.String).pipe( - T.HttpHeader("x-amz-checksum-sha512"), - ), - ChecksumMD5: S.optional(S.String).pipe( - T.HttpHeader("x-amz-checksum-md5"), - ), - ChecksumXXHASH64: S.optional(S.String).pipe( - T.HttpHeader("x-amz-checksum-xxhash64"), - ), - ChecksumXXHASH3: S.optional(S.String).pipe( - T.HttpHeader("x-amz-checksum-xxhash3"), - ), - ChecksumXXHASH128: S.optional(S.String).pipe( - T.HttpHeader("x-amz-checksum-xxhash128"), - ), - ChecksumType: S.optional(ChecksumType).pipe( - T.HttpHeader("x-amz-checksum-type"), - ), - MpuObjectSize: S.optional(S.Number).pipe( - T.HttpHeader("x-amz-mp-object-size"), - ), - RequestPayer: S.optional(RequestPayer).pipe( - T.HttpHeader("x-amz-request-payer"), - ), - ExpectedBucketOwner: S.optional(S.String).pipe( - T.HttpHeader("x-amz-expected-bucket-owner"), - ), - IfMatch: S.optional(S.String).pipe(T.HttpHeader("If-Match")), - IfNoneMatch: S.optional(S.String).pipe(T.HttpHeader("If-None-Match")), - SSECustomerAlgorithm: S.optional(S.String).pipe( - T.HttpHeader("x-amz-server-side-encryption-customer-algorithm"), - ), - SSECustomerKey: S.optional(SensitiveString).pipe( - T.HttpHeader("x-amz-server-side-encryption-customer-key"), - ), - SSECustomerKeyMD5: S.optional(S.String).pipe( - T.HttpHeader("x-amz-server-side-encryption-customer-key-MD5"), - ), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/{Bucket}/{Key+}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CompleteMultipartUploadRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), + Key: S.String.pipe(T.HttpLabel("Key"), T.ContextParam("Key")), + MultipartUpload: S.optional(CompletedMultipartUpload) + .pipe(T.HttpPayload(), T.XmlName("CompleteMultipartUpload")) + .annotate({ identifier: "CompletedMultipartUpload" }), + UploadId: S.String.pipe(T.HttpQuery("uploadId")), + ChecksumCRC32: S.optional(S.String).pipe( + T.HttpHeader("x-amz-checksum-crc32"), ), - ).annotate({ - identifier: "CompleteMultipartUploadRequest", - }) as any as S.Schema; + ChecksumCRC32C: S.optional(S.String).pipe( + T.HttpHeader("x-amz-checksum-crc32c"), + ), + ChecksumCRC64NVME: S.optional(S.String).pipe( + T.HttpHeader("x-amz-checksum-crc64nvme"), + ), + ChecksumSHA1: S.optional(S.String).pipe( + T.HttpHeader("x-amz-checksum-sha1"), + ), + ChecksumSHA256: S.optional(S.String).pipe( + T.HttpHeader("x-amz-checksum-sha256"), + ), + ChecksumSHA512: S.optional(S.String).pipe( + T.HttpHeader("x-amz-checksum-sha512"), + ), + ChecksumMD5: S.optional(S.String).pipe(T.HttpHeader("x-amz-checksum-md5")), + ChecksumXXHASH64: S.optional(S.String).pipe( + T.HttpHeader("x-amz-checksum-xxhash64"), + ), + ChecksumXXHASH3: S.optional(S.String).pipe( + T.HttpHeader("x-amz-checksum-xxhash3"), + ), + ChecksumXXHASH128: S.optional(S.String).pipe( + T.HttpHeader("x-amz-checksum-xxhash128"), + ), + ChecksumType: S.optional(ChecksumType).pipe( + T.HttpHeader("x-amz-checksum-type"), + ), + MpuObjectSize: S.optional(S.Number).pipe( + T.HttpHeader("x-amz-mp-object-size"), + ), + RequestPayer: S.optional(RequestPayer).pipe( + T.HttpHeader("x-amz-request-payer"), + ), + ExpectedBucketOwner: S.optional(S.String).pipe( + T.HttpHeader("x-amz-expected-bucket-owner"), + ), + IfMatch: S.optional(S.String).pipe(T.HttpHeader("If-Match")), + IfNoneMatch: S.optional(S.String).pipe(T.HttpHeader("If-None-Match")), + SSECustomerAlgorithm: S.optional(S.String).pipe( + T.HttpHeader("x-amz-server-side-encryption-customer-algorithm"), + ), + SSECustomerKey: S.optional(SensitiveString).pipe( + T.HttpHeader("x-amz-server-side-encryption-customer-key"), + ), + SSECustomerKeyMD5: S.optional(S.String).pipe( + T.HttpHeader("x-amz-server-side-encryption-customer-key-MD5"), + ), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/{Bucket}/{Key+}" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "CompleteMultipartUploadRequest", +}) as any as S.Schema; export type ServerSideEncryption = | "AES256" | "aws:fsx" @@ -3471,42 +3467,41 @@ export interface CompleteMultipartUploadOutput { BucketKeyEnabled?: boolean; RequestCharged?: RequestCharged; } -export const CompleteMultipartUploadOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Location: S.optional(S.String), - Bucket: S.optional(S.String), - Key: S.optional(S.String), - Expiration: S.optional(S.String).pipe(T.HttpHeader("x-amz-expiration")), - ETag: S.optional(S.String), - ChecksumCRC32: S.optional(S.String), - ChecksumCRC32C: S.optional(S.String), - ChecksumCRC64NVME: S.optional(S.String), - ChecksumSHA1: S.optional(S.String), - ChecksumSHA256: S.optional(S.String), - ChecksumSHA512: S.optional(S.String), - ChecksumMD5: S.optional(S.String), - ChecksumXXHASH64: S.optional(S.String), - ChecksumXXHASH3: S.optional(S.String), - ChecksumXXHASH128: S.optional(S.String), - ChecksumType: S.optional(ChecksumType), - ServerSideEncryption: S.optional(ServerSideEncryption).pipe( - T.HttpHeader("x-amz-server-side-encryption"), - ), - VersionId: S.optional(S.String).pipe(T.HttpHeader("x-amz-version-id")), - SSEKMSKeyId: S.optional(SensitiveString).pipe( - T.HttpHeader("x-amz-server-side-encryption-aws-kms-key-id"), - ), - BucketKeyEnabled: S.optional(S.Boolean).pipe( - T.HttpHeader("x-amz-server-side-encryption-bucket-key-enabled"), - ), - RequestCharged: S.optional(RequestCharged).pipe( - T.HttpHeader("x-amz-request-charged"), - ), - }).pipe(T.all(T.XmlName("CompleteMultipartUploadResult"), ns)), - ).annotate({ - identifier: "CompleteMultipartUploadOutput", - }) as any as S.Schema; +export const CompleteMultipartUploadOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Location: S.optional(S.String), + Bucket: S.optional(S.String), + Key: S.optional(S.String), + Expiration: S.optional(S.String).pipe(T.HttpHeader("x-amz-expiration")), + ETag: S.optional(S.String), + ChecksumCRC32: S.optional(S.String), + ChecksumCRC32C: S.optional(S.String), + ChecksumCRC64NVME: S.optional(S.String), + ChecksumSHA1: S.optional(S.String), + ChecksumSHA256: S.optional(S.String), + ChecksumSHA512: S.optional(S.String), + ChecksumMD5: S.optional(S.String), + ChecksumXXHASH64: S.optional(S.String), + ChecksumXXHASH3: S.optional(S.String), + ChecksumXXHASH128: S.optional(S.String), + ChecksumType: S.optional(ChecksumType), + ServerSideEncryption: S.optional(ServerSideEncryption).pipe( + T.HttpHeader("x-amz-server-side-encryption"), + ), + VersionId: S.optional(S.String).pipe(T.HttpHeader("x-amz-version-id")), + SSEKMSKeyId: S.optional(SensitiveString).pipe( + T.HttpHeader("x-amz-server-side-encryption-aws-kms-key-id"), + ), + BucketKeyEnabled: S.optional(S.Boolean).pipe( + T.HttpHeader("x-amz-server-side-encryption-bucket-key-enabled"), + ), + RequestCharged: S.optional(RequestCharged).pipe( + T.HttpHeader("x-amz-request-charged"), + ), + }).pipe(T.all(T.XmlName("CompleteMultipartUploadResult"), ns)), +).annotate({ + identifier: "CompleteMultipartUploadOutput", +}) as any as S.Schema; export type ObjectCannedACL = | "private" | "public-read" @@ -4015,15 +4010,15 @@ export interface MetadataTableEncryptionConfiguration { SseAlgorithm: TableSseAlgorithm; KmsKeyArn?: string; } -export const MetadataTableEncryptionConfiguration = - /*@__PURE__*/ S.suspend(() => +export const MetadataTableEncryptionConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ SseAlgorithm: TableSseAlgorithm, KmsKeyArn: S.optional(S.String), }), - ).annotate({ - identifier: "MetadataTableEncryptionConfiguration", - }) as any as S.Schema; +).annotate({ + identifier: "MetadataTableEncryptionConfiguration", +}) as any as S.Schema; export interface JournalTableConfiguration { RecordExpiration: RecordExpiration; EncryptionConfiguration?: MetadataTableEncryptionConfiguration; @@ -4045,15 +4040,14 @@ export interface InventoryTableConfiguration { ConfigurationState: InventoryConfigurationState; EncryptionConfiguration?: MetadataTableEncryptionConfiguration; } -export const InventoryTableConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ConfigurationState: InventoryConfigurationState, - EncryptionConfiguration: S.optional(MetadataTableEncryptionConfiguration), - }), - ).annotate({ - identifier: "InventoryTableConfiguration", - }) as any as S.Schema; +export const InventoryTableConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ConfigurationState: InventoryConfigurationState, + EncryptionConfiguration: S.optional(MetadataTableEncryptionConfiguration), + }), +).annotate({ + identifier: "InventoryTableConfiguration", +}) as any as S.Schema; export type AnnotationConfigurationState = | "ENABLED" | "DISABLED" @@ -4064,16 +4058,15 @@ export interface AnnotationTableConfiguration { EncryptionConfiguration?: MetadataTableEncryptionConfiguration; Role?: string; } -export const AnnotationTableConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ConfigurationState: AnnotationConfigurationState, - EncryptionConfiguration: S.optional(MetadataTableEncryptionConfiguration), - Role: S.optional(S.String), - }), - ).annotate({ - identifier: "AnnotationTableConfiguration", - }) as any as S.Schema; +export const AnnotationTableConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ConfigurationState: AnnotationConfigurationState, + EncryptionConfiguration: S.optional(MetadataTableEncryptionConfiguration), + Role: S.optional(S.String), + }), +).annotate({ + identifier: "AnnotationTableConfiguration", +}) as any as S.Schema; export interface MetadataConfiguration { JournalTableConfiguration: JournalTableConfiguration; InventoryTableConfiguration?: InventoryTableConfiguration; @@ -4095,8 +4088,8 @@ export interface CreateBucketMetadataConfigurationRequest { MetadataConfiguration: MetadataConfiguration; ExpectedBucketOwner?: string; } -export const CreateBucketMetadataConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const CreateBucketMetadataConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), ContentMD5: S.optional(S.String).pipe(T.HttpHeader("Content-MD5")), @@ -4126,9 +4119,9 @@ export const CreateBucketMetadataConfigurationRequest = T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), ), ), - ).annotate({ - identifier: "CreateBucketMetadataConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "CreateBucketMetadataConfigurationRequest", +}) as any as S.Schema; export interface CreateBucketMetadataConfigurationResponse {} export const CreateBucketMetadataConfigurationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ @@ -4230,107 +4223,106 @@ export interface CreateMultipartUploadRequest { ChecksumAlgorithm?: ChecksumAlgorithm; ChecksumType?: ChecksumType; } -export const CreateMultipartUploadRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ACL: S.optional(ObjectCannedACL).pipe(T.HttpHeader("x-amz-acl")), - Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), - CacheControl: S.optional(S.String).pipe(T.HttpHeader("Cache-Control")), - ContentDisposition: S.optional(S.String).pipe( - T.HttpHeader("Content-Disposition"), - ), - ContentEncoding: S.optional(S.String).pipe( - T.HttpHeader("Content-Encoding"), - ), - ContentLanguage: S.optional(S.String).pipe( - T.HttpHeader("Content-Language"), - ), - ContentType: S.optional(S.String).pipe(T.HttpHeader("Content-Type")), - Expires: S.optional(S.String).pipe(T.HttpHeader("Expires")), - GrantFullControl: S.optional(S.String).pipe( - T.HttpHeader("x-amz-grant-full-control"), - ), - GrantRead: S.optional(S.String).pipe(T.HttpHeader("x-amz-grant-read")), - GrantReadACP: S.optional(S.String).pipe( - T.HttpHeader("x-amz-grant-read-acp"), - ), - GrantWriteACP: S.optional(S.String).pipe( - T.HttpHeader("x-amz-grant-write-acp"), - ), - Key: S.String.pipe(T.HttpLabel("Key"), T.ContextParam("Key")), - Metadata: S.optional(Metadata).pipe(T.HttpPrefixHeaders("x-amz-meta-")), - ServerSideEncryption: S.optional(ServerSideEncryption).pipe( - T.HttpHeader("x-amz-server-side-encryption"), - ), - StorageClass: S.optional(StorageClass).pipe( - T.HttpHeader("x-amz-storage-class"), - ), - WebsiteRedirectLocation: S.optional(S.String).pipe( - T.HttpHeader("x-amz-website-redirect-location"), - ), - SSECustomerAlgorithm: S.optional(S.String).pipe( - T.HttpHeader("x-amz-server-side-encryption-customer-algorithm"), - ), - SSECustomerKey: S.optional(SensitiveString).pipe( - T.HttpHeader("x-amz-server-side-encryption-customer-key"), - ), - SSECustomerKeyMD5: S.optional(S.String).pipe( - T.HttpHeader("x-amz-server-side-encryption-customer-key-MD5"), - ), - SSEKMSKeyId: S.optional(SensitiveString).pipe( - T.HttpHeader("x-amz-server-side-encryption-aws-kms-key-id"), - ), - SSEKMSEncryptionContext: S.optional(SensitiveString).pipe( - T.HttpHeader("x-amz-server-side-encryption-context"), - ), - BucketKeyEnabled: S.optional(S.Boolean).pipe( - T.HttpHeader("x-amz-server-side-encryption-bucket-key-enabled"), - ), - RequestPayer: S.optional(RequestPayer).pipe( - T.HttpHeader("x-amz-request-payer"), - ), - Tagging: S.optional(S.String).pipe(T.HttpHeader("x-amz-tagging")), - ObjectLockMode: S.optional(ObjectLockMode).pipe( - T.HttpHeader("x-amz-object-lock-mode"), - ), - ObjectLockRetainUntilDate: S.optional( - S.Date.pipe(T.TimestampFormat("http-date")), - ).pipe(T.HttpHeader("x-amz-object-lock-retain-until-date")), - ObjectLockLegalHoldStatus: S.optional(ObjectLockLegalHoldStatus).pipe( - T.HttpHeader("x-amz-object-lock-legal-hold"), - ), - ExpectedBucketOwner: S.optional(S.String).pipe( - T.HttpHeader("x-amz-expected-bucket-owner"), - ), - ChecksumAlgorithm: S.optional(ChecksumAlgorithm).pipe( - T.HttpHeader("x-amz-checksum-algorithm"), - ), - ChecksumType: S.optional(ChecksumType).pipe( - T.HttpHeader("x-amz-checksum-type"), - ), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/{Bucket}/{Key+}?uploads" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateMultipartUploadRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ACL: S.optional(ObjectCannedACL).pipe(T.HttpHeader("x-amz-acl")), + Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), + CacheControl: S.optional(S.String).pipe(T.HttpHeader("Cache-Control")), + ContentDisposition: S.optional(S.String).pipe( + T.HttpHeader("Content-Disposition"), ), - ).annotate({ - identifier: "CreateMultipartUploadRequest", - }) as any as S.Schema; -export interface CreateMultipartUploadOutput { - AbortDate?: Date; - AbortRuleId?: string; - Bucket?: string; - Key?: string; - UploadId?: string; - ServerSideEncryption?: ServerSideEncryption; - SSECustomerAlgorithm?: string; - SSECustomerKeyMD5?: string; + ContentEncoding: S.optional(S.String).pipe( + T.HttpHeader("Content-Encoding"), + ), + ContentLanguage: S.optional(S.String).pipe( + T.HttpHeader("Content-Language"), + ), + ContentType: S.optional(S.String).pipe(T.HttpHeader("Content-Type")), + Expires: S.optional(S.String).pipe(T.HttpHeader("Expires")), + GrantFullControl: S.optional(S.String).pipe( + T.HttpHeader("x-amz-grant-full-control"), + ), + GrantRead: S.optional(S.String).pipe(T.HttpHeader("x-amz-grant-read")), + GrantReadACP: S.optional(S.String).pipe( + T.HttpHeader("x-amz-grant-read-acp"), + ), + GrantWriteACP: S.optional(S.String).pipe( + T.HttpHeader("x-amz-grant-write-acp"), + ), + Key: S.String.pipe(T.HttpLabel("Key"), T.ContextParam("Key")), + Metadata: S.optional(Metadata).pipe(T.HttpPrefixHeaders("x-amz-meta-")), + ServerSideEncryption: S.optional(ServerSideEncryption).pipe( + T.HttpHeader("x-amz-server-side-encryption"), + ), + StorageClass: S.optional(StorageClass).pipe( + T.HttpHeader("x-amz-storage-class"), + ), + WebsiteRedirectLocation: S.optional(S.String).pipe( + T.HttpHeader("x-amz-website-redirect-location"), + ), + SSECustomerAlgorithm: S.optional(S.String).pipe( + T.HttpHeader("x-amz-server-side-encryption-customer-algorithm"), + ), + SSECustomerKey: S.optional(SensitiveString).pipe( + T.HttpHeader("x-amz-server-side-encryption-customer-key"), + ), + SSECustomerKeyMD5: S.optional(S.String).pipe( + T.HttpHeader("x-amz-server-side-encryption-customer-key-MD5"), + ), + SSEKMSKeyId: S.optional(SensitiveString).pipe( + T.HttpHeader("x-amz-server-side-encryption-aws-kms-key-id"), + ), + SSEKMSEncryptionContext: S.optional(SensitiveString).pipe( + T.HttpHeader("x-amz-server-side-encryption-context"), + ), + BucketKeyEnabled: S.optional(S.Boolean).pipe( + T.HttpHeader("x-amz-server-side-encryption-bucket-key-enabled"), + ), + RequestPayer: S.optional(RequestPayer).pipe( + T.HttpHeader("x-amz-request-payer"), + ), + Tagging: S.optional(S.String).pipe(T.HttpHeader("x-amz-tagging")), + ObjectLockMode: S.optional(ObjectLockMode).pipe( + T.HttpHeader("x-amz-object-lock-mode"), + ), + ObjectLockRetainUntilDate: S.optional( + S.Date.pipe(T.TimestampFormat("http-date")), + ).pipe(T.HttpHeader("x-amz-object-lock-retain-until-date")), + ObjectLockLegalHoldStatus: S.optional(ObjectLockLegalHoldStatus).pipe( + T.HttpHeader("x-amz-object-lock-legal-hold"), + ), + ExpectedBucketOwner: S.optional(S.String).pipe( + T.HttpHeader("x-amz-expected-bucket-owner"), + ), + ChecksumAlgorithm: S.optional(ChecksumAlgorithm).pipe( + T.HttpHeader("x-amz-checksum-algorithm"), + ), + ChecksumType: S.optional(ChecksumType).pipe( + T.HttpHeader("x-amz-checksum-type"), + ), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/{Bucket}/{Key+}?uploads" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "CreateMultipartUploadRequest", +}) as any as S.Schema; +export interface CreateMultipartUploadOutput { + AbortDate?: Date; + AbortRuleId?: string; + Bucket?: string; + Key?: string; + UploadId?: string; + ServerSideEncryption?: ServerSideEncryption; + SSECustomerAlgorithm?: string; + SSECustomerKeyMD5?: string; SSEKMSKeyId?: string | redacted.Redacted; SSEKMSEncryptionContext?: string | redacted.Redacted; BucketKeyEnabled?: boolean; @@ -4338,49 +4330,46 @@ export interface CreateMultipartUploadOutput { ChecksumAlgorithm?: ChecksumAlgorithm; ChecksumType?: ChecksumType; } -export const CreateMultipartUploadOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AbortDate: S.optional(S.Date.pipe(T.TimestampFormat("http-date"))).pipe( - T.HttpHeader("x-amz-abort-date"), - ), - AbortRuleId: S.optional(S.String).pipe( - T.HttpHeader("x-amz-abort-rule-id"), - ), - Bucket: S.optional(S.String).pipe(T.XmlName("Bucket")), - Key: S.optional(S.String), - UploadId: S.optional(S.String), - ServerSideEncryption: S.optional(ServerSideEncryption).pipe( - T.HttpHeader("x-amz-server-side-encryption"), - ), - SSECustomerAlgorithm: S.optional(S.String).pipe( - T.HttpHeader("x-amz-server-side-encryption-customer-algorithm"), - ), - SSECustomerKeyMD5: S.optional(S.String).pipe( - T.HttpHeader("x-amz-server-side-encryption-customer-key-MD5"), - ), - SSEKMSKeyId: S.optional(SensitiveString).pipe( - T.HttpHeader("x-amz-server-side-encryption-aws-kms-key-id"), - ), - SSEKMSEncryptionContext: S.optional(SensitiveString).pipe( - T.HttpHeader("x-amz-server-side-encryption-context"), - ), - BucketKeyEnabled: S.optional(S.Boolean).pipe( - T.HttpHeader("x-amz-server-side-encryption-bucket-key-enabled"), - ), - RequestCharged: S.optional(RequestCharged).pipe( - T.HttpHeader("x-amz-request-charged"), - ), - ChecksumAlgorithm: S.optional(ChecksumAlgorithm).pipe( - T.HttpHeader("x-amz-checksum-algorithm"), - ), - ChecksumType: S.optional(ChecksumType).pipe( - T.HttpHeader("x-amz-checksum-type"), - ), - }).pipe(T.all(T.XmlName("InitiateMultipartUploadResult"), ns)), - ).annotate({ - identifier: "CreateMultipartUploadOutput", - }) as any as S.Schema; +export const CreateMultipartUploadOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AbortDate: S.optional(S.Date.pipe(T.TimestampFormat("http-date"))).pipe( + T.HttpHeader("x-amz-abort-date"), + ), + AbortRuleId: S.optional(S.String).pipe(T.HttpHeader("x-amz-abort-rule-id")), + Bucket: S.optional(S.String).pipe(T.XmlName("Bucket")), + Key: S.optional(S.String), + UploadId: S.optional(S.String), + ServerSideEncryption: S.optional(ServerSideEncryption).pipe( + T.HttpHeader("x-amz-server-side-encryption"), + ), + SSECustomerAlgorithm: S.optional(S.String).pipe( + T.HttpHeader("x-amz-server-side-encryption-customer-algorithm"), + ), + SSECustomerKeyMD5: S.optional(S.String).pipe( + T.HttpHeader("x-amz-server-side-encryption-customer-key-MD5"), + ), + SSEKMSKeyId: S.optional(SensitiveString).pipe( + T.HttpHeader("x-amz-server-side-encryption-aws-kms-key-id"), + ), + SSEKMSEncryptionContext: S.optional(SensitiveString).pipe( + T.HttpHeader("x-amz-server-side-encryption-context"), + ), + BucketKeyEnabled: S.optional(S.Boolean).pipe( + T.HttpHeader("x-amz-server-side-encryption-bucket-key-enabled"), + ), + RequestCharged: S.optional(RequestCharged).pipe( + T.HttpHeader("x-amz-request-charged"), + ), + ChecksumAlgorithm: S.optional(ChecksumAlgorithm).pipe( + T.HttpHeader("x-amz-checksum-algorithm"), + ), + ChecksumType: S.optional(ChecksumType).pipe( + T.HttpHeader("x-amz-checksum-type"), + ), + }).pipe(T.all(T.XmlName("InitiateMultipartUploadResult"), ns)), +).annotate({ + identifier: "CreateMultipartUploadOutput", +}) as any as S.Schema; export type SessionMode = "ReadOnly" | "ReadWrite" | (string & {}); export const SessionMode = /*@__PURE__*/ S.String; export interface CreateSessionRequest { @@ -4567,33 +4556,33 @@ export interface DeleteBucketEncryptionRequest { Bucket: string; ExpectedBucketOwner?: string; } -export const DeleteBucketEncryptionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), - ExpectedBucketOwner: S.optional(S.String).pipe( - T.HttpHeader("x-amz-expected-bucket-owner"), - ), - }).pipe( - T.all( - ns, - T.Http({ method: "DELETE", uri: "/{Bucket}?encryption" }), - svc, - auth, - proto, - ver, - rules, - T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), - ), +export const DeleteBucketEncryptionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), + ExpectedBucketOwner: S.optional(S.String).pipe( + T.HttpHeader("x-amz-expected-bucket-owner"), ), - ).annotate({ - identifier: "DeleteBucketEncryptionRequest", - }) as any as S.Schema; + }).pipe( + T.all( + ns, + T.Http({ method: "DELETE", uri: "/{Bucket}?encryption" }), + svc, + auth, + proto, + ver, + rules, + T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), + ), + ), +).annotate({ + identifier: "DeleteBucketEncryptionRequest", +}) as any as S.Schema; export interface DeleteBucketEncryptionResponse {} -export const DeleteBucketEncryptionResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteBucketEncryptionResponse", - }) as any as S.Schema; +export const DeleteBucketEncryptionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteBucketEncryptionResponse", +}) as any as S.Schema; export interface DeleteBucketIntelligentTieringConfigurationRequest { Bucket: string; Id: string; @@ -4664,39 +4653,39 @@ export interface DeleteBucketLifecycleRequest { Bucket: string; ExpectedBucketOwner?: string; } -export const DeleteBucketLifecycleRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), - ExpectedBucketOwner: S.optional(S.String).pipe( - T.HttpHeader("x-amz-expected-bucket-owner"), - ), - }).pipe( - T.all( - ns, - T.Http({ method: "DELETE", uri: "/{Bucket}?lifecycle" }), - svc, - auth, - proto, - ver, - rules, - T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), - ), +export const DeleteBucketLifecycleRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), + ExpectedBucketOwner: S.optional(S.String).pipe( + T.HttpHeader("x-amz-expected-bucket-owner"), ), - ).annotate({ - identifier: "DeleteBucketLifecycleRequest", - }) as any as S.Schema; + }).pipe( + T.all( + ns, + T.Http({ method: "DELETE", uri: "/{Bucket}?lifecycle" }), + svc, + auth, + proto, + ver, + rules, + T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), + ), + ), +).annotate({ + identifier: "DeleteBucketLifecycleRequest", +}) as any as S.Schema; export interface DeleteBucketLifecycleResponse {} -export const DeleteBucketLifecycleResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteBucketLifecycleResponse", - }) as any as S.Schema; +export const DeleteBucketLifecycleResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteBucketLifecycleResponse", +}) as any as S.Schema; export interface DeleteBucketMetadataConfigurationRequest { Bucket: string; ExpectedBucketOwner?: string; } -export const DeleteBucketMetadataConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const DeleteBucketMetadataConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), ExpectedBucketOwner: S.optional(S.String).pipe( @@ -4714,9 +4703,9 @@ export const DeleteBucketMetadataConfigurationRequest = T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), ), ), - ).annotate({ - identifier: "DeleteBucketMetadataConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteBucketMetadataConfigurationRequest", +}) as any as S.Schema; export interface DeleteBucketMetadataConfigurationResponse {} export const DeleteBucketMetadataConfigurationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ @@ -4758,8 +4747,8 @@ export interface DeleteBucketMetricsConfigurationRequest { Id: string; ExpectedBucketOwner?: string; } -export const DeleteBucketMetricsConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const DeleteBucketMetricsConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), Id: S.String.pipe(T.HttpQuery("id")), @@ -4778,20 +4767,21 @@ export const DeleteBucketMetricsConfigurationRequest = T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), ), ), - ).annotate({ - identifier: "DeleteBucketMetricsConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteBucketMetricsConfigurationRequest", +}) as any as S.Schema; export interface DeleteBucketMetricsConfigurationResponse {} -export const DeleteBucketMetricsConfigurationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteBucketMetricsConfigurationResponse", - }) as any as S.Schema; +export const DeleteBucketMetricsConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteBucketMetricsConfigurationResponse", +}) as any as S.Schema; export interface DeleteBucketOwnershipControlsRequest { Bucket: string; ExpectedBucketOwner?: string; } -export const DeleteBucketOwnershipControlsRequest = - /*@__PURE__*/ S.suspend(() => +export const DeleteBucketOwnershipControlsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), ExpectedBucketOwner: S.optional(S.String).pipe( @@ -4809,14 +4799,15 @@ export const DeleteBucketOwnershipControlsRequest = T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), ), ), - ).annotate({ - identifier: "DeleteBucketOwnershipControlsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "DeleteBucketOwnershipControlsRequest", +}) as any as S.Schema; export interface DeleteBucketOwnershipControlsResponse {} -export const DeleteBucketOwnershipControlsResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteBucketOwnershipControlsResponse", - }) as any as S.Schema; +export const DeleteBucketOwnershipControlsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteBucketOwnershipControlsResponse", +}) as any as S.Schema; export interface DeleteBucketPolicyRequest { Bucket: string; ExpectedBucketOwner?: string; @@ -4852,33 +4843,33 @@ export interface DeleteBucketReplicationRequest { Bucket: string; ExpectedBucketOwner?: string; } -export const DeleteBucketReplicationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), - ExpectedBucketOwner: S.optional(S.String).pipe( - T.HttpHeader("x-amz-expected-bucket-owner"), - ), - }).pipe( - T.all( - ns, - T.Http({ method: "DELETE", uri: "/{Bucket}?replication" }), - svc, - auth, - proto, - ver, - rules, - T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), - ), +export const DeleteBucketReplicationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), + ExpectedBucketOwner: S.optional(S.String).pipe( + T.HttpHeader("x-amz-expected-bucket-owner"), ), - ).annotate({ - identifier: "DeleteBucketReplicationRequest", - }) as any as S.Schema; + }).pipe( + T.all( + ns, + T.Http({ method: "DELETE", uri: "/{Bucket}?replication" }), + svc, + auth, + proto, + ver, + rules, + T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), + ), + ), +).annotate({ + identifier: "DeleteBucketReplicationRequest", +}) as any as S.Schema; export interface DeleteBucketReplicationResponse {} -export const DeleteBucketReplicationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteBucketReplicationResponse", - }) as any as S.Schema; +export const DeleteBucketReplicationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteBucketReplicationResponse", +}) as any as S.Schema; export interface DeleteBucketTaggingRequest { Bucket: string; ExpectedBucketOwner?: string; @@ -4905,10 +4896,11 @@ export const DeleteBucketTaggingRequest = /*@__PURE__*/ S.suspend(() => identifier: "DeleteBucketTaggingRequest", }) as any as S.Schema; export interface DeleteBucketTaggingResponse {} -export const DeleteBucketTaggingResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteBucketTaggingResponse", - }) as any as S.Schema; +export const DeleteBucketTaggingResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteBucketTaggingResponse", +}) as any as S.Schema; export interface DeleteBucketWebsiteRequest { Bucket: string; ExpectedBucketOwner?: string; @@ -4935,10 +4927,11 @@ export const DeleteBucketWebsiteRequest = /*@__PURE__*/ S.suspend(() => identifier: "DeleteBucketWebsiteRequest", }) as any as S.Schema; export interface DeleteBucketWebsiteResponse {} -export const DeleteBucketWebsiteResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeleteBucketWebsiteResponse", - }) as any as S.Schema; +export const DeleteBucketWebsiteResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeleteBucketWebsiteResponse", +}) as any as S.Schema; export interface DeleteObjectRequest { Bucket: string; Key: string; @@ -4992,73 +4985,71 @@ export interface DeleteObjectOutput { } export const DeleteObjectOutput = /*@__PURE__*/ S.suspend(() => S.Struct({ - DeleteMarker: S.optional(S.Boolean).pipe( - T.HttpHeader("x-amz-delete-marker"), + DeleteMarker: S.optional(S.Boolean).pipe( + T.HttpHeader("x-amz-delete-marker"), + ), + VersionId: S.optional(S.String).pipe(T.HttpHeader("x-amz-version-id")), + RequestCharged: S.optional(RequestCharged).pipe( + T.HttpHeader("x-amz-request-charged"), + ), + }).pipe(ns), +).annotate({ + identifier: "DeleteObjectOutput", +}) as any as S.Schema; +export interface DeleteObjectAnnotationRequest { + Bucket: string; + Key: string; + AnnotationName: string; + VersionId?: string; + RequestPayer?: RequestPayer; + ExpectedBucketOwner?: string; + ObjectIfMatch?: string; +} +export const DeleteObjectAnnotationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), + Key: S.String.pipe(T.HttpLabel("Key")), + AnnotationName: S.String.pipe(T.HttpQuery("annotationName")), + VersionId: S.optional(S.String).pipe(T.HttpQuery("versionId")), + RequestPayer: S.optional(RequestPayer).pipe( + T.HttpHeader("x-amz-request-payer"), + ), + ExpectedBucketOwner: S.optional(S.String).pipe( + T.HttpHeader("x-amz-expected-bucket-owner"), + ), + ObjectIfMatch: S.optional(S.String).pipe( + T.HttpHeader("x-amz-object-if-match"), + ), + }).pipe( + T.all( + ns, + T.Http({ method: "DELETE", uri: "/{Bucket}/{Key+}?annotation" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "DeleteObjectAnnotationRequest", +}) as any as S.Schema; +export interface DeleteObjectAnnotationOutput { + ObjectVersionId?: string; + RequestCharged?: RequestCharged; +} +export const DeleteObjectAnnotationOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ObjectVersionId: S.optional(S.String).pipe( + T.HttpHeader("x-amz-object-version-id"), ), - VersionId: S.optional(S.String).pipe(T.HttpHeader("x-amz-version-id")), RequestCharged: S.optional(RequestCharged).pipe( T.HttpHeader("x-amz-request-charged"), ), }).pipe(ns), ).annotate({ - identifier: "DeleteObjectOutput", -}) as any as S.Schema; -export interface DeleteObjectAnnotationRequest { - Bucket: string; - Key: string; - AnnotationName: string; - VersionId?: string; - RequestPayer?: RequestPayer; - ExpectedBucketOwner?: string; - ObjectIfMatch?: string; -} -export const DeleteObjectAnnotationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), - Key: S.String.pipe(T.HttpLabel("Key")), - AnnotationName: S.String.pipe(T.HttpQuery("annotationName")), - VersionId: S.optional(S.String).pipe(T.HttpQuery("versionId")), - RequestPayer: S.optional(RequestPayer).pipe( - T.HttpHeader("x-amz-request-payer"), - ), - ExpectedBucketOwner: S.optional(S.String).pipe( - T.HttpHeader("x-amz-expected-bucket-owner"), - ), - ObjectIfMatch: S.optional(S.String).pipe( - T.HttpHeader("x-amz-object-if-match"), - ), - }).pipe( - T.all( - ns, - T.Http({ method: "DELETE", uri: "/{Bucket}/{Key+}?annotation" }), - svc, - auth, - proto, - ver, - rules, - ), - ), - ).annotate({ - identifier: "DeleteObjectAnnotationRequest", - }) as any as S.Schema; -export interface DeleteObjectAnnotationOutput { - ObjectVersionId?: string; - RequestCharged?: RequestCharged; -} -export const DeleteObjectAnnotationOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ObjectVersionId: S.optional(S.String).pipe( - T.HttpHeader("x-amz-object-version-id"), - ), - RequestCharged: S.optional(RequestCharged).pipe( - T.HttpHeader("x-amz-request-charged"), - ), - }).pipe(ns), - ).annotate({ - identifier: "DeleteObjectAnnotationOutput", - }) as any as S.Schema; + identifier: "DeleteObjectAnnotationOutput", +}) as any as S.Schema; export interface ObjectIdentifier { Key: string; VersionId?: string; @@ -5225,33 +5216,33 @@ export interface DeletePublicAccessBlockRequest { Bucket: string; ExpectedBucketOwner?: string; } -export const DeletePublicAccessBlockRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), - ExpectedBucketOwner: S.optional(S.String).pipe( - T.HttpHeader("x-amz-expected-bucket-owner"), - ), - }).pipe( - T.all( - ns, - T.Http({ method: "DELETE", uri: "/{Bucket}?publicAccessBlock" }), - svc, - auth, - proto, - ver, - rules, - T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), - ), +export const DeletePublicAccessBlockRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), + ExpectedBucketOwner: S.optional(S.String).pipe( + T.HttpHeader("x-amz-expected-bucket-owner"), ), - ).annotate({ - identifier: "DeletePublicAccessBlockRequest", - }) as any as S.Schema; + }).pipe( + T.all( + ns, + T.Http({ method: "DELETE", uri: "/{Bucket}?publicAccessBlock" }), + svc, + auth, + proto, + ver, + rules, + T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), + ), + ), +).annotate({ + identifier: "DeletePublicAccessBlockRequest", +}) as any as S.Schema; export interface DeletePublicAccessBlockResponse {} -export const DeletePublicAccessBlockResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "DeletePublicAccessBlockResponse", - }) as any as S.Schema; +export const DeletePublicAccessBlockResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "DeletePublicAccessBlockResponse", +}) as any as S.Schema; export interface GetBucketAbacRequest { Bucket: string; ExpectedBucketOwner?: string; @@ -5301,8 +5292,8 @@ export interface GetBucketAccelerateConfigurationRequest { ExpectedBucketOwner?: string; RequestPayer?: RequestPayer; } -export const GetBucketAccelerateConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const GetBucketAccelerateConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), ExpectedBucketOwner: S.optional(S.String).pipe( @@ -5323,26 +5314,26 @@ export const GetBucketAccelerateConfigurationRequest = T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), ), ), - ).annotate({ - identifier: "GetBucketAccelerateConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "GetBucketAccelerateConfigurationRequest", +}) as any as S.Schema; export type BucketAccelerateStatus = "Enabled" | "Suspended" | (string & {}); export const BucketAccelerateStatus = /*@__PURE__*/ S.String; export interface GetBucketAccelerateConfigurationOutput { Status?: BucketAccelerateStatus; RequestCharged?: RequestCharged; } -export const GetBucketAccelerateConfigurationOutput = - /*@__PURE__*/ S.suspend(() => +export const GetBucketAccelerateConfigurationOutput = /*@__PURE__*/ S.suspend( + () => S.Struct({ Status: S.optional(BucketAccelerateStatus), RequestCharged: S.optional(RequestCharged).pipe( T.HttpHeader("x-amz-request-charged"), ), }).pipe(T.all(T.XmlName("AccelerateConfiguration"), ns)), - ).annotate({ - identifier: "GetBucketAccelerateConfigurationOutput", - }) as any as S.Schema; +).annotate({ + identifier: "GetBucketAccelerateConfigurationOutput", +}) as any as S.Schema; export interface GetBucketAclRequest { Bucket: string; ExpectedBucketOwner?: string; @@ -5436,8 +5427,8 @@ export interface GetBucketAnalyticsConfigurationRequest { Id: string; ExpectedBucketOwner?: string; } -export const GetBucketAnalyticsConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const GetBucketAnalyticsConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), Id: S.String.pipe(T.HttpQuery("id")), @@ -5459,9 +5450,9 @@ export const GetBucketAnalyticsConfigurationRequest = T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), ), ), - ).annotate({ - identifier: "GetBucketAnalyticsConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "GetBucketAnalyticsConfigurationRequest", +}) as any as S.Schema; export interface AnalyticsAndOperator { Prefix?: string; Tags?: Tag[]; @@ -5493,17 +5484,16 @@ export interface AnalyticsS3BucketDestination { Bucket: string; Prefix?: string; } -export const AnalyticsS3BucketDestination = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Format: AnalyticsS3ExportFileFormat, - BucketAccountId: S.optional(S.String), - Bucket: S.String, - Prefix: S.optional(S.String), - }), - ).annotate({ - identifier: "AnalyticsS3BucketDestination", - }) as any as S.Schema; +export const AnalyticsS3BucketDestination = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Format: AnalyticsS3ExportFileFormat, + BucketAccountId: S.optional(S.String), + Bucket: S.String, + Prefix: S.optional(S.String), + }), +).annotate({ + identifier: "AnalyticsS3BucketDestination", +}) as any as S.Schema; export interface AnalyticsExportDestination { S3BucketDestination: AnalyticsS3BucketDestination; } @@ -5516,15 +5506,14 @@ export interface StorageClassAnalysisDataExport { OutputSchemaVersion: StorageClassAnalysisSchemaVersion; Destination: AnalyticsExportDestination; } -export const StorageClassAnalysisDataExport = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - OutputSchemaVersion: StorageClassAnalysisSchemaVersion, - Destination: AnalyticsExportDestination, - }), - ).annotate({ - identifier: "StorageClassAnalysisDataExport", - }) as any as S.Schema; +export const StorageClassAnalysisDataExport = /*@__PURE__*/ S.suspend(() => + S.Struct({ + OutputSchemaVersion: StorageClassAnalysisSchemaVersion, + Destination: AnalyticsExportDestination, + }), +).annotate({ + identifier: "StorageClassAnalysisDataExport", +}) as any as S.Schema; export interface StorageClassAnalysis { DataExport?: StorageClassAnalysisDataExport; } @@ -5550,16 +5539,16 @@ export const AnalyticsConfiguration = /*@__PURE__*/ S.suspend(() => export interface GetBucketAnalyticsConfigurationOutput { AnalyticsConfiguration?: AnalyticsConfiguration; } -export const GetBucketAnalyticsConfigurationOutput = - /*@__PURE__*/ S.suspend(() => +export const GetBucketAnalyticsConfigurationOutput = /*@__PURE__*/ S.suspend( + () => S.Struct({ AnalyticsConfiguration: S.optional(AnalyticsConfiguration) .pipe(T.HttpPayload()) .annotate({ identifier: "AnalyticsConfiguration" }), }).pipe(ns), - ).annotate({ - identifier: "GetBucketAnalyticsConfigurationOutput", - }) as any as S.Schema; +).annotate({ + identifier: "GetBucketAnalyticsConfigurationOutput", +}) as any as S.Schema; export interface GetBucketCorsRequest { Bucket: string; ExpectedBucketOwner?: string; @@ -5667,15 +5656,14 @@ export interface ServerSideEncryptionByDefault { SSEAlgorithm: ServerSideEncryption; KMSMasterKeyID?: string | redacted.Redacted; } -export const ServerSideEncryptionByDefault = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SSEAlgorithm: ServerSideEncryption, - KMSMasterKeyID: S.optional(SensitiveString), - }), - ).annotate({ - identifier: "ServerSideEncryptionByDefault", - }) as any as S.Schema; +export const ServerSideEncryptionByDefault = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SSEAlgorithm: ServerSideEncryption, + KMSMasterKeyID: S.optional(SensitiveString), + }), +).annotate({ + identifier: "ServerSideEncryptionByDefault", +}) as any as S.Schema; export type EncryptionType = "NONE" | "SSE-C" | (string & {}); export const EncryptionType = /*@__PURE__*/ S.String; export type EncryptionTypeList = EncryptionType[]; @@ -5715,17 +5703,13 @@ export const ServerSideEncryptionRules = /*@__PURE__*/ S.Array( export interface ServerSideEncryptionConfiguration { Rules: ServerSideEncryptionRule[]; } -export const ServerSideEncryptionConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Rules: ServerSideEncryptionRules.pipe( - T.XmlName("Rule"), - T.XmlFlattened(), - ), - }), - ).annotate({ - identifier: "ServerSideEncryptionConfiguration", - }) as any as S.Schema; +export const ServerSideEncryptionConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Rules: ServerSideEncryptionRules.pipe(T.XmlName("Rule"), T.XmlFlattened()), + }), +).annotate({ + identifier: "ServerSideEncryptionConfiguration", +}) as any as S.Schema; export interface GetBucketEncryptionOutput { ServerSideEncryptionConfiguration?: ServerSideEncryptionConfiguration; } @@ -5775,15 +5759,14 @@ export interface IntelligentTieringAndOperator { Prefix?: string; Tags?: Tag[]; } -export const IntelligentTieringAndOperator = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Prefix: S.optional(S.String), - Tags: S.optional(TagSet).pipe(T.XmlName("Tag"), T.XmlFlattened()), - }), - ).annotate({ - identifier: "IntelligentTieringAndOperator", - }) as any as S.Schema; +export const IntelligentTieringAndOperator = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Prefix: S.optional(S.String), + Tags: S.optional(TagSet).pipe(T.XmlName("Tag"), T.XmlFlattened()), + }), +).annotate({ + identifier: "IntelligentTieringAndOperator", +}) as any as S.Schema; export interface IntelligentTieringFilter { Prefix?: string; Tag?: Tag; @@ -5820,17 +5803,16 @@ export interface IntelligentTieringConfiguration { Status: IntelligentTieringStatus; Tierings: Tiering[]; } -export const IntelligentTieringConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Id: S.String, - Filter: S.optional(IntelligentTieringFilter), - Status: IntelligentTieringStatus, - Tierings: TieringList.pipe(T.XmlName("Tiering"), T.XmlFlattened()), - }), - ).annotate({ - identifier: "IntelligentTieringConfiguration", - }) as any as S.Schema; +export const IntelligentTieringConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Id: S.String, + Filter: S.optional(IntelligentTieringFilter), + Status: IntelligentTieringStatus, + Tierings: TieringList.pipe(T.XmlName("Tiering"), T.XmlFlattened()), + }), +).annotate({ + identifier: "IntelligentTieringConfiguration", +}) as any as S.Schema; export interface GetBucketIntelligentTieringConfigurationOutput { IntelligentTieringConfiguration?: IntelligentTieringConfiguration; } @@ -5851,8 +5833,8 @@ export interface GetBucketInventoryConfigurationRequest { Id: string; ExpectedBucketOwner?: string; } -export const GetBucketInventoryConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const GetBucketInventoryConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), Id: S.String.pipe(T.HttpQuery("id")), @@ -5874,9 +5856,9 @@ export const GetBucketInventoryConfigurationRequest = T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), ), ), - ).annotate({ - identifier: "GetBucketInventoryConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "GetBucketInventoryConfigurationRequest", +}) as any as S.Schema; export type InventoryFormat = "CSV" | "ORC" | "Parquet" | (string & {}); export const InventoryFormat = /*@__PURE__*/ S.String; export interface SSES3 {} @@ -5912,18 +5894,17 @@ export interface InventoryS3BucketDestination { Prefix?: string; Encryption?: InventoryEncryption; } -export const InventoryS3BucketDestination = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - AccountId: S.optional(S.String), - Bucket: S.String, - Format: InventoryFormat, - Prefix: S.optional(S.String), - Encryption: S.optional(InventoryEncryption), - }), - ).annotate({ - identifier: "InventoryS3BucketDestination", - }) as any as S.Schema; +export const InventoryS3BucketDestination = /*@__PURE__*/ S.suspend(() => + S.Struct({ + AccountId: S.optional(S.String), + Bucket: S.String, + Format: InventoryFormat, + Prefix: S.optional(S.String), + Encryption: S.optional(InventoryEncryption), + }), +).annotate({ + identifier: "InventoryS3BucketDestination", +}) as any as S.Schema; export interface InventoryDestination { S3BucketDestination: InventoryS3BucketDestination; } @@ -6000,22 +5981,22 @@ export const InventoryConfiguration = /*@__PURE__*/ S.suspend(() => export interface GetBucketInventoryConfigurationOutput { InventoryConfiguration?: InventoryConfiguration; } -export const GetBucketInventoryConfigurationOutput = - /*@__PURE__*/ S.suspend(() => +export const GetBucketInventoryConfigurationOutput = /*@__PURE__*/ S.suspend( + () => S.Struct({ InventoryConfiguration: S.optional(InventoryConfiguration) .pipe(T.HttpPayload()) .annotate({ identifier: "InventoryConfiguration" }), }).pipe(ns), - ).annotate({ - identifier: "GetBucketInventoryConfigurationOutput", - }) as any as S.Schema; +).annotate({ + identifier: "GetBucketInventoryConfigurationOutput", +}) as any as S.Schema; export interface GetBucketLifecycleConfigurationRequest { Bucket: string; ExpectedBucketOwner?: string; } -export const GetBucketLifecycleConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const GetBucketLifecycleConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), ExpectedBucketOwner: S.optional(S.String).pipe( @@ -6033,9 +6014,9 @@ export const GetBucketLifecycleConfigurationRequest = T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), ), ), - ).annotate({ - identifier: "GetBucketLifecycleConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "GetBucketLifecycleConfigurationRequest", +}) as any as S.Schema; export interface LifecycleExpiration { Date?: Date; Days?: number; @@ -6114,41 +6095,39 @@ export interface NoncurrentVersionTransition { StorageClass?: TransitionStorageClass; NewerNoncurrentVersions?: number; } -export const NoncurrentVersionTransition = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - NoncurrentDays: S.optional(S.Number), - StorageClass: S.optional(TransitionStorageClass), - NewerNoncurrentVersions: S.optional(S.Number), - }), - ).annotate({ - identifier: "NoncurrentVersionTransition", - }) as any as S.Schema; +export const NoncurrentVersionTransition = /*@__PURE__*/ S.suspend(() => + S.Struct({ + NoncurrentDays: S.optional(S.Number), + StorageClass: S.optional(TransitionStorageClass), + NewerNoncurrentVersions: S.optional(S.Number), + }), +).annotate({ + identifier: "NoncurrentVersionTransition", +}) as any as S.Schema; export type NoncurrentVersionTransitionList = NoncurrentVersionTransition[]; -export const NoncurrentVersionTransitionList = - /*@__PURE__*/ S.Array(NoncurrentVersionTransition); +export const NoncurrentVersionTransitionList = /*@__PURE__*/ S.Array( + NoncurrentVersionTransition, +); export interface NoncurrentVersionExpiration { NoncurrentDays?: number; NewerNoncurrentVersions?: number; } -export const NoncurrentVersionExpiration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - NoncurrentDays: S.optional(S.Number), - NewerNoncurrentVersions: S.optional(S.Number), - }), - ).annotate({ - identifier: "NoncurrentVersionExpiration", - }) as any as S.Schema; +export const NoncurrentVersionExpiration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + NoncurrentDays: S.optional(S.Number), + NewerNoncurrentVersions: S.optional(S.Number), + }), +).annotate({ + identifier: "NoncurrentVersionExpiration", +}) as any as S.Schema; export interface AbortIncompleteMultipartUpload { DaysAfterInitiation?: number; } -export const AbortIncompleteMultipartUpload = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DaysAfterInitiation: S.optional(S.Number) }), - ).annotate({ - identifier: "AbortIncompleteMultipartUpload", - }) as any as S.Schema; +export const AbortIncompleteMultipartUpload = /*@__PURE__*/ S.suspend(() => + S.Struct({ DaysAfterInitiation: S.optional(S.Number) }), +).annotate({ + identifier: "AbortIncompleteMultipartUpload", +}) as any as S.Schema; export interface LifecycleRule { Expiration?: LifecycleExpiration; ID?: string; @@ -6189,8 +6168,8 @@ export interface GetBucketLifecycleConfigurationOutput { Rules?: LifecycleRule[]; TransitionDefaultMinimumObjectSize?: TransitionDefaultMinimumObjectSize; } -export const GetBucketLifecycleConfigurationOutput = - /*@__PURE__*/ S.suspend(() => +export const GetBucketLifecycleConfigurationOutput = /*@__PURE__*/ S.suspend( + () => S.Struct({ Rules: S.optional(LifecycleRules).pipe( T.XmlName("Rule"), @@ -6200,9 +6179,9 @@ export const GetBucketLifecycleConfigurationOutput = TransitionDefaultMinimumObjectSize, ).pipe(T.HttpHeader("x-amz-transition-default-minimum-object-size")), }).pipe(T.all(T.XmlName("LifecycleConfiguration"), ns)), - ).annotate({ - identifier: "GetBucketLifecycleConfigurationOutput", - }) as any as S.Schema; +).annotate({ + identifier: "GetBucketLifecycleConfigurationOutput", +}) as any as S.Schema; export interface GetBucketLocationRequest { Bucket: string; ExpectedBucketOwner?: string; @@ -6343,8 +6322,8 @@ export interface GetBucketMetadataConfigurationRequest { Bucket: string; ExpectedBucketOwner?: string; } -export const GetBucketMetadataConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const GetBucketMetadataConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), ExpectedBucketOwner: S.optional(S.String).pipe( @@ -6362,9 +6341,9 @@ export const GetBucketMetadataConfigurationRequest = T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), ), ), - ).annotate({ - identifier: "GetBucketMetadataConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "GetBucketMetadataConfigurationRequest", +}) as any as S.Schema; export type S3TablesBucketType = "aws" | "customer" | (string & {}); export const S3TablesBucketType = /*@__PURE__*/ S.String; export interface DestinationResult { @@ -6398,18 +6377,17 @@ export interface JournalTableConfigurationResult { TableArn?: string; RecordExpiration: RecordExpiration; } -export const JournalTableConfigurationResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TableStatus: S.String, - Error: S.optional(ErrorDetails), - TableName: S.String, - TableArn: S.optional(S.String), - RecordExpiration: RecordExpiration, - }), - ).annotate({ - identifier: "JournalTableConfigurationResult", - }) as any as S.Schema; +export const JournalTableConfigurationResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TableStatus: S.String, + Error: S.optional(ErrorDetails), + TableName: S.String, + TableArn: S.optional(S.String), + RecordExpiration: RecordExpiration, + }), +).annotate({ + identifier: "JournalTableConfigurationResult", +}) as any as S.Schema; export interface InventoryTableConfigurationResult { ConfigurationState: InventoryConfigurationState; TableStatus?: string; @@ -6417,18 +6395,17 @@ export interface InventoryTableConfigurationResult { TableName?: string; TableArn?: string; } -export const InventoryTableConfigurationResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ConfigurationState: InventoryConfigurationState, - TableStatus: S.optional(S.String), - Error: S.optional(ErrorDetails), - TableName: S.optional(S.String), - TableArn: S.optional(S.String), - }), - ).annotate({ - identifier: "InventoryTableConfigurationResult", - }) as any as S.Schema; +export const InventoryTableConfigurationResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ConfigurationState: InventoryConfigurationState, + TableStatus: S.optional(S.String), + Error: S.optional(ErrorDetails), + TableName: S.optional(S.String), + TableArn: S.optional(S.String), + }), +).annotate({ + identifier: "InventoryTableConfigurationResult", +}) as any as S.Schema; export interface AnnotationTableConfigurationResult { ConfigurationState: AnnotationConfigurationState; TableStatus?: string; @@ -6437,56 +6414,53 @@ export interface AnnotationTableConfigurationResult { TableArn?: string; Role?: string; } -export const AnnotationTableConfigurationResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ConfigurationState: AnnotationConfigurationState, - TableStatus: S.optional(S.String), - Error: S.optional(ErrorDetails), - TableName: S.optional(S.String), - TableArn: S.optional(S.String), - Role: S.optional(S.String), - }), - ).annotate({ - identifier: "AnnotationTableConfigurationResult", - }) as any as S.Schema; +export const AnnotationTableConfigurationResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ConfigurationState: AnnotationConfigurationState, + TableStatus: S.optional(S.String), + Error: S.optional(ErrorDetails), + TableName: S.optional(S.String), + TableArn: S.optional(S.String), + Role: S.optional(S.String), + }), +).annotate({ + identifier: "AnnotationTableConfigurationResult", +}) as any as S.Schema; export interface MetadataConfigurationResult { DestinationResult: DestinationResult; JournalTableConfigurationResult?: JournalTableConfigurationResult; InventoryTableConfigurationResult?: InventoryTableConfigurationResult; AnnotationTableConfigurationResult?: AnnotationTableConfigurationResult; } -export const MetadataConfigurationResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - DestinationResult: DestinationResult, - JournalTableConfigurationResult: S.optional( - JournalTableConfigurationResult, - ), - InventoryTableConfigurationResult: S.optional( - InventoryTableConfigurationResult, - ), - AnnotationTableConfigurationResult: S.optional( - AnnotationTableConfigurationResult, - ), - }), - ).annotate({ - identifier: "MetadataConfigurationResult", - }) as any as S.Schema; +export const MetadataConfigurationResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + DestinationResult: DestinationResult, + JournalTableConfigurationResult: S.optional( + JournalTableConfigurationResult, + ), + InventoryTableConfigurationResult: S.optional( + InventoryTableConfigurationResult, + ), + AnnotationTableConfigurationResult: S.optional( + AnnotationTableConfigurationResult, + ), + }), +).annotate({ + identifier: "MetadataConfigurationResult", +}) as any as S.Schema; export interface GetBucketMetadataConfigurationResult { MetadataConfigurationResult: MetadataConfigurationResult; } -export const GetBucketMetadataConfigurationResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ MetadataConfigurationResult: MetadataConfigurationResult }), - ).annotate({ - identifier: "GetBucketMetadataConfigurationResult", - }) as any as S.Schema; +export const GetBucketMetadataConfigurationResult = /*@__PURE__*/ S.suspend( + () => S.Struct({ MetadataConfigurationResult: MetadataConfigurationResult }), +).annotate({ + identifier: "GetBucketMetadataConfigurationResult", +}) as any as S.Schema; export interface GetBucketMetadataConfigurationOutput { GetBucketMetadataConfigurationResult?: GetBucketMetadataConfigurationResult; } -export const GetBucketMetadataConfigurationOutput = - /*@__PURE__*/ S.suspend(() => +export const GetBucketMetadataConfigurationOutput = /*@__PURE__*/ S.suspend( + () => S.Struct({ GetBucketMetadataConfigurationResult: S.optional( GetBucketMetadataConfigurationResult, @@ -6494,9 +6468,9 @@ export const GetBucketMetadataConfigurationOutput = .pipe(T.HttpPayload()) .annotate({ identifier: "GetBucketMetadataConfigurationResult" }), }).pipe(ns), - ).annotate({ - identifier: "GetBucketMetadataConfigurationOutput", - }) as any as S.Schema; +).annotate({ + identifier: "GetBucketMetadataConfigurationOutput", +}) as any as S.Schema; export interface GetBucketMetadataTableConfigurationRequest { Bucket: string; ExpectedBucketOwner?: string; @@ -6542,12 +6516,11 @@ export const S3TablesDestinationResult = /*@__PURE__*/ S.suspend(() => export interface MetadataTableConfigurationResult { S3TablesDestinationResult: S3TablesDestinationResult; } -export const MetadataTableConfigurationResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ S3TablesDestinationResult: S3TablesDestinationResult }), - ).annotate({ - identifier: "MetadataTableConfigurationResult", - }) as any as S.Schema; +export const MetadataTableConfigurationResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ S3TablesDestinationResult: S3TablesDestinationResult }), +).annotate({ + identifier: "MetadataTableConfigurationResult", +}) as any as S.Schema; export interface GetBucketMetadataTableConfigurationResult { MetadataTableConfigurationResult: MetadataTableConfigurationResult; Status: string; @@ -6583,8 +6556,8 @@ export interface GetBucketMetricsConfigurationRequest { Id: string; ExpectedBucketOwner?: string; } -export const GetBucketMetricsConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const GetBucketMetricsConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), Id: S.String.pipe(T.HttpQuery("id")), @@ -6606,9 +6579,9 @@ export const GetBucketMetricsConfigurationRequest = T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), ), ), - ).annotate({ - identifier: "GetBucketMetricsConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "GetBucketMetricsConfigurationRequest", +}) as any as S.Schema; export interface MetricsAndOperator { Prefix?: string; Tags?: Tag[]; @@ -6651,16 +6624,15 @@ export const MetricsConfiguration = /*@__PURE__*/ S.suspend(() => export interface GetBucketMetricsConfigurationOutput { MetricsConfiguration?: MetricsConfiguration; } -export const GetBucketMetricsConfigurationOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - MetricsConfiguration: S.optional(MetricsConfiguration) - .pipe(T.HttpPayload()) - .annotate({ identifier: "MetricsConfiguration" }), - }).pipe(ns), - ).annotate({ - identifier: "GetBucketMetricsConfigurationOutput", - }) as any as S.Schema; +export const GetBucketMetricsConfigurationOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + MetricsConfiguration: S.optional(MetricsConfiguration) + .pipe(T.HttpPayload()) + .annotate({ identifier: "MetricsConfiguration" }), + }).pipe(ns), +).annotate({ + identifier: "GetBucketMetricsConfigurationOutput", +}) as any as S.Schema; export interface GetBucketNotificationConfigurationRequest { Bucket: string; ExpectedBucketOwner?: string; @@ -6745,18 +6717,17 @@ export const S3KeyFilter = /*@__PURE__*/ S.suspend(() => }), ).annotate({ identifier: "S3KeyFilter" }) as any as S.Schema; export interface NotificationConfigurationFilter { - Key?: S3KeyFilter; -} -export const NotificationConfigurationFilter = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Key: S.optional(S3KeyFilter) - .pipe(T.XmlName("S3Key")) - .annotate({ identifier: "S3KeyFilter" }), - }), - ).annotate({ - identifier: "NotificationConfigurationFilter", - }) as any as S.Schema; + Key?: S3KeyFilter; +} +export const NotificationConfigurationFilter = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Key: S.optional(S3KeyFilter) + .pipe(T.XmlName("S3Key")) + .annotate({ identifier: "S3KeyFilter" }), + }), +).annotate({ + identifier: "NotificationConfigurationFilter", +}) as any as S.Schema; export interface TopicConfiguration { Id?: string; TopicArn: string; @@ -6799,20 +6770,20 @@ export interface LambdaFunctionConfiguration { Events: Event[]; Filter?: NotificationConfigurationFilter; } -export const LambdaFunctionConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Id: S.optional(S.String), - LambdaFunctionArn: S.String.pipe(T.XmlName("CloudFunction")), - Events: EventList.pipe(T.XmlName("Event"), T.XmlFlattened()), - Filter: S.optional(NotificationConfigurationFilter), - }), - ).annotate({ - identifier: "LambdaFunctionConfiguration", - }) as any as S.Schema; +export const LambdaFunctionConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Id: S.optional(S.String), + LambdaFunctionArn: S.String.pipe(T.XmlName("CloudFunction")), + Events: EventList.pipe(T.XmlName("Event"), T.XmlFlattened()), + Filter: S.optional(NotificationConfigurationFilter), + }), +).annotate({ + identifier: "LambdaFunctionConfiguration", +}) as any as S.Schema; export type LambdaFunctionConfigurationList = LambdaFunctionConfiguration[]; -export const LambdaFunctionConfigurationList = - /*@__PURE__*/ S.Array(LambdaFunctionConfiguration); +export const LambdaFunctionConfigurationList = /*@__PURE__*/ S.Array( + LambdaFunctionConfiguration, +); export interface EventBridgeConfiguration {} export const EventBridgeConfiguration = /*@__PURE__*/ S.suspend(() => S.Struct({}), @@ -6847,28 +6818,27 @@ export interface GetBucketOwnershipControlsRequest { Bucket: string; ExpectedBucketOwner?: string; } -export const GetBucketOwnershipControlsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), - ExpectedBucketOwner: S.optional(S.String).pipe( - T.HttpHeader("x-amz-expected-bucket-owner"), - ), - }).pipe( - T.all( - ns, - T.Http({ method: "GET", uri: "/{Bucket}?ownershipControls" }), - svc, - auth, - proto, - ver, - rules, - T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), - ), +export const GetBucketOwnershipControlsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), + ExpectedBucketOwner: S.optional(S.String).pipe( + T.HttpHeader("x-amz-expected-bucket-owner"), ), - ).annotate({ - identifier: "GetBucketOwnershipControlsRequest", - }) as any as S.Schema; + }).pipe( + T.all( + ns, + T.Http({ method: "GET", uri: "/{Bucket}?ownershipControls" }), + svc, + auth, + proto, + ver, + rules, + T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), + ), + ), +).annotate({ + identifier: "GetBucketOwnershipControlsRequest", +}) as any as S.Schema; export interface OwnershipControlsRule { ObjectOwnership: ObjectOwnership; } @@ -6894,16 +6864,15 @@ export const OwnershipControls = /*@__PURE__*/ S.suspend(() => export interface GetBucketOwnershipControlsOutput { OwnershipControls?: OwnershipControls; } -export const GetBucketOwnershipControlsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - OwnershipControls: S.optional(OwnershipControls) - .pipe(T.HttpPayload()) - .annotate({ identifier: "OwnershipControls" }), - }).pipe(ns), - ).annotate({ - identifier: "GetBucketOwnershipControlsOutput", - }) as any as S.Schema; +export const GetBucketOwnershipControlsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + OwnershipControls: S.optional(OwnershipControls) + .pipe(T.HttpPayload()) + .annotate({ identifier: "OwnershipControls" }), + }).pipe(ns), +).annotate({ + identifier: "GetBucketOwnershipControlsOutput", +}) as any as S.Schema; export interface GetBucketPolicyRequest { Bucket: string; ExpectedBucketOwner?: string; @@ -6941,28 +6910,27 @@ export interface GetBucketPolicyStatusRequest { Bucket: string; ExpectedBucketOwner?: string; } -export const GetBucketPolicyStatusRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), - ExpectedBucketOwner: S.optional(S.String).pipe( - T.HttpHeader("x-amz-expected-bucket-owner"), - ), - }).pipe( - T.all( - ns, - T.Http({ method: "GET", uri: "/{Bucket}?policyStatus" }), - svc, - auth, - proto, - ver, - rules, - T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), - ), +export const GetBucketPolicyStatusRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), + ExpectedBucketOwner: S.optional(S.String).pipe( + T.HttpHeader("x-amz-expected-bucket-owner"), ), - ).annotate({ - identifier: "GetBucketPolicyStatusRequest", - }) as any as S.Schema; + }).pipe( + T.all( + ns, + T.Http({ method: "GET", uri: "/{Bucket}?policyStatus" }), + svc, + auth, + proto, + ver, + rules, + T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), + ), + ), +).annotate({ + identifier: "GetBucketPolicyStatusRequest", +}) as any as S.Schema; export interface PolicyStatus { IsPublic?: boolean; } @@ -6972,42 +6940,40 @@ export const PolicyStatus = /*@__PURE__*/ S.suspend(() => export interface GetBucketPolicyStatusOutput { PolicyStatus?: PolicyStatus; } -export const GetBucketPolicyStatusOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - PolicyStatus: S.optional(PolicyStatus) - .pipe(T.HttpPayload()) - .annotate({ identifier: "PolicyStatus" }), - }).pipe(ns), - ).annotate({ - identifier: "GetBucketPolicyStatusOutput", - }) as any as S.Schema; +export const GetBucketPolicyStatusOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + PolicyStatus: S.optional(PolicyStatus) + .pipe(T.HttpPayload()) + .annotate({ identifier: "PolicyStatus" }), + }).pipe(ns), +).annotate({ + identifier: "GetBucketPolicyStatusOutput", +}) as any as S.Schema; export interface GetBucketReplicationRequest { Bucket: string; ExpectedBucketOwner?: string; } -export const GetBucketReplicationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), - ExpectedBucketOwner: S.optional(S.String).pipe( - T.HttpHeader("x-amz-expected-bucket-owner"), - ), - }).pipe( - T.all( - ns, - T.Http({ method: "GET", uri: "/{Bucket}?replication" }), - svc, - auth, - proto, - ver, - rules, - T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), - ), +export const GetBucketReplicationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), + ExpectedBucketOwner: S.optional(S.String).pipe( + T.HttpHeader("x-amz-expected-bucket-owner"), ), - ).annotate({ - identifier: "GetBucketReplicationRequest", - }) as any as S.Schema; + }).pipe( + T.all( + ns, + T.Http({ method: "GET", uri: "/{Bucket}?replication" }), + svc, + auth, + proto, + ver, + rules, + T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), + ), + ), +).annotate({ + identifier: "GetBucketReplicationRequest", +}) as any as S.Schema; export interface ReplicationRuleAndOperator { Prefix?: string; Tags?: Tag[]; @@ -7222,41 +7188,39 @@ export interface GetBucketRequestPaymentRequest { Bucket: string; ExpectedBucketOwner?: string; } -export const GetBucketRequestPaymentRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), - ExpectedBucketOwner: S.optional(S.String).pipe( - T.HttpHeader("x-amz-expected-bucket-owner"), - ), - }).pipe( - T.all( - ns, - T.Http({ method: "GET", uri: "/{Bucket}?requestPayment" }), - svc, - auth, - proto, - ver, - rules, - T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), - ), +export const GetBucketRequestPaymentRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), + ExpectedBucketOwner: S.optional(S.String).pipe( + T.HttpHeader("x-amz-expected-bucket-owner"), ), - ).annotate({ - identifier: "GetBucketRequestPaymentRequest", - }) as any as S.Schema; + }).pipe( + T.all( + ns, + T.Http({ method: "GET", uri: "/{Bucket}?requestPayment" }), + svc, + auth, + proto, + ver, + rules, + T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), + ), + ), +).annotate({ + identifier: "GetBucketRequestPaymentRequest", +}) as any as S.Schema; export type Payer = "Requester" | "BucketOwner" | (string & {}); export const Payer = /*@__PURE__*/ S.String; export interface GetBucketRequestPaymentOutput { Payer?: Payer; } -export const GetBucketRequestPaymentOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Payer: S.optional(Payer) }).pipe( - T.all(T.XmlName("RequestPaymentConfiguration"), ns), - ), - ).annotate({ - identifier: "GetBucketRequestPaymentOutput", - }) as any as S.Schema; +export const GetBucketRequestPaymentOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ Payer: S.optional(Payer) }).pipe( + T.all(T.XmlName("RequestPaymentConfiguration"), ns), + ), +).annotate({ + identifier: "GetBucketRequestPaymentOutput", +}) as any as S.Schema; export interface GetBucketTaggingRequest { Bucket: string; ExpectedBucketOwner?: string; @@ -8105,27 +8069,26 @@ export interface GetObjectLockConfigurationRequest { Bucket: string; ExpectedBucketOwner?: string; } -export const GetObjectLockConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), - ExpectedBucketOwner: S.optional(S.String).pipe( - T.HttpHeader("x-amz-expected-bucket-owner"), - ), - }).pipe( - T.all( - ns, - T.Http({ method: "GET", uri: "/{Bucket}?object-lock" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetObjectLockConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), + ExpectedBucketOwner: S.optional(S.String).pipe( + T.HttpHeader("x-amz-expected-bucket-owner"), ), - ).annotate({ - identifier: "GetObjectLockConfigurationRequest", - }) as any as S.Schema; + }).pipe( + T.all( + ns, + T.Http({ method: "GET", uri: "/{Bucket}?object-lock" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "GetObjectLockConfigurationRequest", +}) as any as S.Schema; export type ObjectLockEnabled = "Enabled" | (string & {}); export const ObjectLockEnabled = /*@__PURE__*/ S.String; export type ObjectLockRetentionMode = @@ -8168,16 +8131,15 @@ export const ObjectLockConfiguration = /*@__PURE__*/ S.suspend(() => export interface GetObjectLockConfigurationOutput { ObjectLockConfiguration?: ObjectLockConfiguration; } -export const GetObjectLockConfigurationOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ObjectLockConfiguration: S.optional(ObjectLockConfiguration) - .pipe(T.HttpPayload()) - .annotate({ identifier: "ObjectLockConfiguration" }), - }).pipe(ns), - ).annotate({ - identifier: "GetObjectLockConfigurationOutput", - }) as any as S.Schema; +export const GetObjectLockConfigurationOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ObjectLockConfiguration: S.optional(ObjectLockConfiguration) + .pipe(T.HttpPayload()) + .annotate({ identifier: "ObjectLockConfiguration" }), + }).pipe(ns), +).annotate({ + identifier: "GetObjectLockConfigurationOutput", +}) as any as S.Schema; export interface GetObjectRetentionRequest { Bucket: string; Key: string; @@ -8270,12 +8232,12 @@ export const GetObjectTaggingRequest = /*@__PURE__*/ S.suspend(() => }) as any as S.Schema; export interface GetObjectTaggingOutput { VersionId?: string; - TagSet: Tag[]; + TagSet?: Tag[]; } export const GetObjectTaggingOutput = /*@__PURE__*/ S.suspend(() => S.Struct({ VersionId: S.optional(S.String).pipe(T.HttpHeader("x-amz-version-id")), - TagSet: TagSet, + TagSet: S.optional(TagSet), }).pipe(T.all(T.XmlName("Tagging"), ns)), ).annotate({ identifier: "GetObjectTaggingOutput", @@ -8328,51 +8290,47 @@ export interface GetPublicAccessBlockRequest { Bucket: string; ExpectedBucketOwner?: string; } -export const GetPublicAccessBlockRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), - ExpectedBucketOwner: S.optional(S.String).pipe( - T.HttpHeader("x-amz-expected-bucket-owner"), - ), - }).pipe( - T.all( - ns, - T.Http({ method: "GET", uri: "/{Bucket}?publicAccessBlock" }), - svc, - auth, - proto, - ver, - rules, - T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), - ), +export const GetPublicAccessBlockRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), + ExpectedBucketOwner: S.optional(S.String).pipe( + T.HttpHeader("x-amz-expected-bucket-owner"), ), - ).annotate({ - identifier: "GetPublicAccessBlockRequest", - }) as any as S.Schema; + }).pipe( + T.all( + ns, + T.Http({ method: "GET", uri: "/{Bucket}?publicAccessBlock" }), + svc, + auth, + proto, + ver, + rules, + T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), + ), + ), +).annotate({ + identifier: "GetPublicAccessBlockRequest", +}) as any as S.Schema; export interface PublicAccessBlockConfiguration { BlockPublicAcls?: boolean; - IgnorePublicAcls?: boolean; - BlockPublicPolicy?: boolean; - RestrictPublicBuckets?: boolean; -} -export const PublicAccessBlockConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - BlockPublicAcls: S.optional(S.Boolean).pipe(T.XmlName("BlockPublicAcls")), - IgnorePublicAcls: S.optional(S.Boolean).pipe( - T.XmlName("IgnorePublicAcls"), - ), - BlockPublicPolicy: S.optional(S.Boolean).pipe( - T.XmlName("BlockPublicPolicy"), - ), - RestrictPublicBuckets: S.optional(S.Boolean).pipe( - T.XmlName("RestrictPublicBuckets"), - ), - }), - ).annotate({ - identifier: "PublicAccessBlockConfiguration", - }) as any as S.Schema; + IgnorePublicAcls?: boolean; + BlockPublicPolicy?: boolean; + RestrictPublicBuckets?: boolean; +} +export const PublicAccessBlockConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + BlockPublicAcls: S.optional(S.Boolean).pipe(T.XmlName("BlockPublicAcls")), + IgnorePublicAcls: S.optional(S.Boolean).pipe(T.XmlName("IgnorePublicAcls")), + BlockPublicPolicy: S.optional(S.Boolean).pipe( + T.XmlName("BlockPublicPolicy"), + ), + RestrictPublicBuckets: S.optional(S.Boolean).pipe( + T.XmlName("RestrictPublicBuckets"), + ), + }), +).annotate({ + identifier: "PublicAccessBlockConfiguration", +}) as any as S.Schema; export interface GetPublicAccessBlockOutput { PublicAccessBlockConfiguration?: PublicAccessBlockConfiguration; } @@ -8683,8 +8641,8 @@ export interface ListBucketAnalyticsConfigurationsRequest { ContinuationToken?: string; ExpectedBucketOwner?: string; } -export const ListBucketAnalyticsConfigurationsRequest = - /*@__PURE__*/ S.suspend(() => +export const ListBucketAnalyticsConfigurationsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), ContinuationToken: S.optional(S.String).pipe( @@ -8708,9 +8666,9 @@ export const ListBucketAnalyticsConfigurationsRequest = T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), ), ), - ).annotate({ - identifier: "ListBucketAnalyticsConfigurationsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListBucketAnalyticsConfigurationsRequest", +}) as any as S.Schema; export type AnalyticsConfigurationList = AnalyticsConfiguration[]; export const AnalyticsConfigurationList = /*@__PURE__*/ S.Array( AnalyticsConfiguration, @@ -8721,8 +8679,8 @@ export interface ListBucketAnalyticsConfigurationsOutput { NextContinuationToken?: string; AnalyticsConfigurationList?: AnalyticsConfiguration[]; } -export const ListBucketAnalyticsConfigurationsOutput = - /*@__PURE__*/ S.suspend(() => +export const ListBucketAnalyticsConfigurationsOutput = /*@__PURE__*/ S.suspend( + () => S.Struct({ IsTruncated: S.optional(S.Boolean), ContinuationToken: S.optional(S.String), @@ -8732,9 +8690,9 @@ export const ListBucketAnalyticsConfigurationsOutput = T.XmlFlattened(), ), }).pipe(T.all(T.XmlName("ListBucketAnalyticsConfigurationResult"), ns)), - ).annotate({ - identifier: "ListBucketAnalyticsConfigurationsOutput", - }) as any as S.Schema; +).annotate({ + identifier: "ListBucketAnalyticsConfigurationsOutput", +}) as any as S.Schema; export interface ListBucketIntelligentTieringConfigurationsRequest { Bucket: string; ContinuationToken?: string; @@ -8770,8 +8728,9 @@ export const ListBucketIntelligentTieringConfigurationsRequest = }) as any as S.Schema; export type IntelligentTieringConfigurationList = IntelligentTieringConfiguration[]; -export const IntelligentTieringConfigurationList = - /*@__PURE__*/ S.Array(IntelligentTieringConfiguration); +export const IntelligentTieringConfigurationList = /*@__PURE__*/ S.Array( + IntelligentTieringConfiguration, +); export interface ListBucketIntelligentTieringConfigurationsOutput { IsTruncated?: boolean; ContinuationToken?: string; @@ -8796,8 +8755,8 @@ export interface ListBucketInventoryConfigurationsRequest { ContinuationToken?: string; ExpectedBucketOwner?: string; } -export const ListBucketInventoryConfigurationsRequest = - /*@__PURE__*/ S.suspend(() => +export const ListBucketInventoryConfigurationsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), ContinuationToken: S.optional(S.String).pipe( @@ -8821,9 +8780,9 @@ export const ListBucketInventoryConfigurationsRequest = T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), ), ), - ).annotate({ - identifier: "ListBucketInventoryConfigurationsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListBucketInventoryConfigurationsRequest", +}) as any as S.Schema; export type InventoryConfigurationList = InventoryConfiguration[]; export const InventoryConfigurationList = /*@__PURE__*/ S.Array( InventoryConfiguration, @@ -8834,8 +8793,8 @@ export interface ListBucketInventoryConfigurationsOutput { IsTruncated?: boolean; NextContinuationToken?: string; } -export const ListBucketInventoryConfigurationsOutput = - /*@__PURE__*/ S.suspend(() => +export const ListBucketInventoryConfigurationsOutput = /*@__PURE__*/ S.suspend( + () => S.Struct({ ContinuationToken: S.optional(S.String), InventoryConfigurationList: S.optional(InventoryConfigurationList).pipe( @@ -8845,16 +8804,16 @@ export const ListBucketInventoryConfigurationsOutput = IsTruncated: S.optional(S.Boolean), NextContinuationToken: S.optional(S.String), }).pipe(T.all(T.XmlName("ListInventoryConfigurationsResult"), ns)), - ).annotate({ - identifier: "ListBucketInventoryConfigurationsOutput", - }) as any as S.Schema; +).annotate({ + identifier: "ListBucketInventoryConfigurationsOutput", +}) as any as S.Schema; export interface ListBucketMetricsConfigurationsRequest { Bucket: string; ContinuationToken?: string; ExpectedBucketOwner?: string; } -export const ListBucketMetricsConfigurationsRequest = - /*@__PURE__*/ S.suspend(() => +export const ListBucketMetricsConfigurationsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), ContinuationToken: S.optional(S.String).pipe( @@ -8878,9 +8837,9 @@ export const ListBucketMetricsConfigurationsRequest = T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), ), ), - ).annotate({ - identifier: "ListBucketMetricsConfigurationsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListBucketMetricsConfigurationsRequest", +}) as any as S.Schema; export type MetricsConfigurationList = MetricsConfiguration[]; export const MetricsConfigurationList = /*@__PURE__*/ S.Array(MetricsConfiguration); @@ -8890,8 +8849,8 @@ export interface ListBucketMetricsConfigurationsOutput { NextContinuationToken?: string; MetricsConfigurationList?: MetricsConfiguration[]; } -export const ListBucketMetricsConfigurationsOutput = - /*@__PURE__*/ S.suspend(() => +export const ListBucketMetricsConfigurationsOutput = /*@__PURE__*/ S.suspend( + () => S.Struct({ IsTruncated: S.optional(S.Boolean), ContinuationToken: S.optional(S.String), @@ -8901,9 +8860,9 @@ export const ListBucketMetricsConfigurationsOutput = T.XmlFlattened(), ), }).pipe(T.all(T.XmlName("ListMetricsConfigurationsResult"), ns)), - ).annotate({ - identifier: "ListBucketMetricsConfigurationsOutput", - }) as any as S.Schema; +).annotate({ + identifier: "ListBucketMetricsConfigurationsOutput", +}) as any as S.Schema; export interface ListBucketsRequest { MaxBuckets?: number; ContinuationToken?: string; @@ -8970,30 +8929,29 @@ export interface ListDirectoryBucketsRequest { ContinuationToken?: string; MaxDirectoryBuckets?: number; } -export const ListDirectoryBucketsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ContinuationToken: S.optional(S.String).pipe( - T.HttpQuery("continuation-token"), - ), - MaxDirectoryBuckets: S.optional(S.Number).pipe( - T.HttpQuery("max-directory-buckets"), - ), - }).pipe( - T.all( - ns, - T.Http({ method: "GET", uri: "/?x-id=ListDirectoryBuckets" }), - svc, - auth, - proto, - ver, - rules, - T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), - ), +export const ListDirectoryBucketsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ContinuationToken: S.optional(S.String).pipe( + T.HttpQuery("continuation-token"), ), - ).annotate({ - identifier: "ListDirectoryBucketsRequest", - }) as any as S.Schema; + MaxDirectoryBuckets: S.optional(S.Number).pipe( + T.HttpQuery("max-directory-buckets"), + ), + }).pipe( + T.all( + ns, + T.Http({ method: "GET", uri: "/?x-id=ListDirectoryBuckets" }), + svc, + auth, + proto, + ver, + rules, + T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), + ), + ), +).annotate({ + identifier: "ListDirectoryBucketsRequest", +}) as any as S.Schema; export interface ListDirectoryBucketsOutput { Buckets?: Bucket[]; ContinuationToken?: string; @@ -9019,41 +8977,38 @@ export interface ListMultipartUploadsRequest { ExpectedBucketOwner?: string; RequestPayer?: RequestPayer; } -export const ListMultipartUploadsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), - Delimiter: S.optional(S.String).pipe(T.HttpQuery("delimiter")), - EncodingType: S.optional(EncodingType).pipe(T.HttpQuery("encoding-type")), - KeyMarker: S.optional(S.String).pipe(T.HttpQuery("key-marker")), - MaxUploads: S.optional(S.Number).pipe(T.HttpQuery("max-uploads")), - Prefix: S.optional(S.String).pipe( - T.HttpQuery("prefix"), - T.ContextParam("Prefix"), - ), - UploadIdMarker: S.optional(S.String).pipe( - T.HttpQuery("upload-id-marker"), - ), - ExpectedBucketOwner: S.optional(S.String).pipe( - T.HttpHeader("x-amz-expected-bucket-owner"), - ), - RequestPayer: S.optional(RequestPayer).pipe( - T.HttpHeader("x-amz-request-payer"), - ), - }).pipe( - T.all( - ns, - T.Http({ method: "GET", uri: "/{Bucket}?uploads" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListMultipartUploadsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), + Delimiter: S.optional(S.String).pipe(T.HttpQuery("delimiter")), + EncodingType: S.optional(EncodingType).pipe(T.HttpQuery("encoding-type")), + KeyMarker: S.optional(S.String).pipe(T.HttpQuery("key-marker")), + MaxUploads: S.optional(S.Number).pipe(T.HttpQuery("max-uploads")), + Prefix: S.optional(S.String).pipe( + T.HttpQuery("prefix"), + T.ContextParam("Prefix"), ), - ).annotate({ - identifier: "ListMultipartUploadsRequest", - }) as any as S.Schema; + UploadIdMarker: S.optional(S.String).pipe(T.HttpQuery("upload-id-marker")), + ExpectedBucketOwner: S.optional(S.String).pipe( + T.HttpHeader("x-amz-expected-bucket-owner"), + ), + RequestPayer: S.optional(RequestPayer).pipe( + T.HttpHeader("x-amz-request-payer"), + ), + }).pipe( + T.all( + ns, + T.Http({ method: "GET", uri: "/{Bucket}?uploads" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "ListMultipartUploadsRequest", +}) as any as S.Schema; export interface Initiator { ID?: string; DisplayName?: string; @@ -9144,44 +9099,43 @@ export interface ListObjectAnnotationsRequest { RequestPayer?: RequestPayer; ExpectedBucketOwner?: string; } -export const ListObjectAnnotationsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), - Key: S.String.pipe(T.HttpLabel("Key")), - VersionId: S.optional(S.String).pipe(T.HttpQuery("versionId")), - MaxAnnotationResults: S.optional(S.Number).pipe( - T.HttpQuery("max-annotation-results"), - ), - AnnotationPrefix: S.optional(S.String).pipe( - T.HttpQuery("annotation-prefix"), - ), - ContinuationToken: S.optional(S.String).pipe( - T.HttpQuery("continuation-token"), - ), - RequestPayer: S.optional(RequestPayer).pipe( - T.HttpHeader("x-amz-request-payer"), - ), - ExpectedBucketOwner: S.optional(S.String).pipe( - T.HttpHeader("x-amz-expected-bucket-owner"), - ), - }).pipe( - T.all( - ns, - T.Http({ - method: "GET", - uri: "/{Bucket}/{Key+}?annotation&x-id=ListObjectAnnotations", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListObjectAnnotationsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), + Key: S.String.pipe(T.HttpLabel("Key")), + VersionId: S.optional(S.String).pipe(T.HttpQuery("versionId")), + MaxAnnotationResults: S.optional(S.Number).pipe( + T.HttpQuery("max-annotation-results"), ), - ).annotate({ - identifier: "ListObjectAnnotationsRequest", - }) as any as S.Schema; + AnnotationPrefix: S.optional(S.String).pipe( + T.HttpQuery("annotation-prefix"), + ), + ContinuationToken: S.optional(S.String).pipe( + T.HttpQuery("continuation-token"), + ), + RequestPayer: S.optional(RequestPayer).pipe( + T.HttpHeader("x-amz-request-payer"), + ), + ExpectedBucketOwner: S.optional(S.String).pipe( + T.HttpHeader("x-amz-expected-bucket-owner"), + ), + }).pipe( + T.all( + ns, + T.Http({ + method: "GET", + uri: "/{Bucket}/{Key+}?annotation&x-id=ListObjectAnnotations", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "ListObjectAnnotationsRequest", +}) as any as S.Schema; export type ChecksumAlgorithmList = ChecksumAlgorithm[]; export const ChecksumAlgorithmList = /*@__PURE__*/ S.Array(ChecksumAlgorithm); export interface AnnotationEntry { @@ -9222,27 +9176,26 @@ export interface ListObjectAnnotationsOutput { NextContinuationToken?: string; RequestCharged?: RequestCharged; } -export const ListObjectAnnotationsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Annotations: S.optional(AnnotationList), - Bucket: S.optional(S.String), - Key: S.optional(S.String), - ObjectVersionId: S.optional(S.String).pipe( - T.HttpHeader("x-amz-object-version-id"), - ), - AnnotationPrefix: S.optional(S.String), - MaxAnnotationResults: S.optional(S.Number), - AnnotationCount: S.optional(S.Number), - ContinuationToken: S.optional(S.String), - NextContinuationToken: S.optional(S.String), - RequestCharged: S.optional(RequestCharged).pipe( - T.HttpHeader("x-amz-request-charged"), - ), - }).pipe(ns), - ).annotate({ - identifier: "ListObjectAnnotationsOutput", - }) as any as S.Schema; +export const ListObjectAnnotationsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Annotations: S.optional(AnnotationList), + Bucket: S.optional(S.String), + Key: S.optional(S.String), + ObjectVersionId: S.optional(S.String).pipe( + T.HttpHeader("x-amz-object-version-id"), + ), + AnnotationPrefix: S.optional(S.String), + MaxAnnotationResults: S.optional(S.Number), + AnnotationCount: S.optional(S.Number), + ContinuationToken: S.optional(S.String), + NextContinuationToken: S.optional(S.String), + RequestCharged: S.optional(RequestCharged).pipe( + T.HttpHeader("x-amz-request-charged"), + ), + }).pipe(ns), +).annotate({ + identifier: "ListObjectAnnotationsOutput", +}) as any as S.Schema; export type OptionalObjectAttributes = "RestoreStatus" | (string & {}); export const OptionalObjectAttributes = /*@__PURE__*/ S.String; export type OptionalObjectAttributesList = OptionalObjectAttributes[]; @@ -9798,8 +9751,8 @@ export interface PutBucketAccelerateConfigurationRequest { ExpectedBucketOwner?: string; ChecksumAlgorithm?: ChecksumAlgorithm; } -export const PutBucketAccelerateConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const PutBucketAccelerateConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), AccelerateConfiguration: AccelerateConfiguration.pipe( @@ -9827,14 +9780,15 @@ export const PutBucketAccelerateConfigurationRequest = T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), ), ), - ).annotate({ - identifier: "PutBucketAccelerateConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "PutBucketAccelerateConfigurationRequest", +}) as any as S.Schema; export interface PutBucketAccelerateConfigurationResponse {} -export const PutBucketAccelerateConfigurationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "PutBucketAccelerateConfigurationResponse", - }) as any as S.Schema; +export const PutBucketAccelerateConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}).pipe(ns), +).annotate({ + identifier: "PutBucketAccelerateConfigurationResponse", +}) as any as S.Schema; export interface AccessControlPolicy { Grants?: Grant[]; Owner?: Owner; @@ -9916,8 +9870,8 @@ export interface PutBucketAnalyticsConfigurationRequest { AnalyticsConfiguration: AnalyticsConfiguration; ExpectedBucketOwner?: string; } -export const PutBucketAnalyticsConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const PutBucketAnalyticsConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), Id: S.String.pipe(T.HttpQuery("id")), @@ -9940,14 +9894,15 @@ export const PutBucketAnalyticsConfigurationRequest = T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), ), ), - ).annotate({ - identifier: "PutBucketAnalyticsConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "PutBucketAnalyticsConfigurationRequest", +}) as any as S.Schema; export interface PutBucketAnalyticsConfigurationResponse {} -export const PutBucketAnalyticsConfigurationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "PutBucketAnalyticsConfigurationResponse", - }) as any as S.Schema; +export const PutBucketAnalyticsConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}).pipe(ns), +).annotate({ + identifier: "PutBucketAnalyticsConfigurationResponse", +}) as any as S.Schema; export interface CORSConfiguration { CORSRules: CORSRule[]; } @@ -10045,10 +10000,11 @@ export const PutBucketEncryptionRequest = /*@__PURE__*/ S.suspend(() => identifier: "PutBucketEncryptionRequest", }) as any as S.Schema; export interface PutBucketEncryptionResponse {} -export const PutBucketEncryptionResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "PutBucketEncryptionResponse", - }) as any as S.Schema; +export const PutBucketEncryptionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "PutBucketEncryptionResponse", +}) as any as S.Schema; export interface PutBucketIntelligentTieringConfigurationRequest { Bucket: string; Id: string; @@ -10093,8 +10049,8 @@ export interface PutBucketInventoryConfigurationRequest { InventoryConfiguration: InventoryConfiguration; ExpectedBucketOwner?: string; } -export const PutBucketInventoryConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const PutBucketInventoryConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), Id: S.String.pipe(T.HttpQuery("id")), @@ -10117,25 +10073,23 @@ export const PutBucketInventoryConfigurationRequest = T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), ), ), - ).annotate({ - identifier: "PutBucketInventoryConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "PutBucketInventoryConfigurationRequest", +}) as any as S.Schema; export interface PutBucketInventoryConfigurationResponse {} -export const PutBucketInventoryConfigurationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "PutBucketInventoryConfigurationResponse", - }) as any as S.Schema; +export const PutBucketInventoryConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}).pipe(ns), +).annotate({ + identifier: "PutBucketInventoryConfigurationResponse", +}) as any as S.Schema; export interface BucketLifecycleConfiguration { Rules: LifecycleRule[]; } -export const BucketLifecycleConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Rules: LifecycleRules.pipe(T.XmlName("Rule"), T.XmlFlattened()), - }), - ).annotate({ - identifier: "BucketLifecycleConfiguration", - }) as any as S.Schema; +export const BucketLifecycleConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ Rules: LifecycleRules.pipe(T.XmlName("Rule"), T.XmlFlattened()) }), +).annotate({ + identifier: "BucketLifecycleConfiguration", +}) as any as S.Schema; export interface PutBucketLifecycleConfigurationRequest { Bucket: string; ChecksumAlgorithm?: ChecksumAlgorithm; @@ -10143,8 +10097,8 @@ export interface PutBucketLifecycleConfigurationRequest { ExpectedBucketOwner?: string; TransitionDefaultMinimumObjectSize?: TransitionDefaultMinimumObjectSize; } -export const PutBucketLifecycleConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const PutBucketLifecycleConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), ChecksumAlgorithm: S.optional(ChecksumAlgorithm).pipe( @@ -10175,22 +10129,22 @@ export const PutBucketLifecycleConfigurationRequest = T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), ), ), - ).annotate({ - identifier: "PutBucketLifecycleConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "PutBucketLifecycleConfigurationRequest", +}) as any as S.Schema; export interface PutBucketLifecycleConfigurationOutput { TransitionDefaultMinimumObjectSize?: TransitionDefaultMinimumObjectSize; } -export const PutBucketLifecycleConfigurationOutput = - /*@__PURE__*/ S.suspend(() => +export const PutBucketLifecycleConfigurationOutput = /*@__PURE__*/ S.suspend( + () => S.Struct({ TransitionDefaultMinimumObjectSize: S.optional( TransitionDefaultMinimumObjectSize, ).pipe(T.HttpHeader("x-amz-transition-default-minimum-object-size")), }).pipe(ns), - ).annotate({ - identifier: "PutBucketLifecycleConfigurationOutput", - }) as any as S.Schema; +).annotate({ + identifier: "PutBucketLifecycleConfigurationOutput", +}) as any as S.Schema; export interface BucketLoggingStatus { LoggingEnabled?: LoggingEnabled; } @@ -10251,8 +10205,8 @@ export interface PutBucketMetricsConfigurationRequest { MetricsConfiguration: MetricsConfiguration; ExpectedBucketOwner?: string; } -export const PutBucketMetricsConfigurationRequest = - /*@__PURE__*/ S.suspend(() => +export const PutBucketMetricsConfigurationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), Id: S.String.pipe(T.HttpQuery("id")), @@ -10275,14 +10229,15 @@ export const PutBucketMetricsConfigurationRequest = T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), ), ), - ).annotate({ - identifier: "PutBucketMetricsConfigurationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "PutBucketMetricsConfigurationRequest", +}) as any as S.Schema; export interface PutBucketMetricsConfigurationResponse {} -export const PutBucketMetricsConfigurationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "PutBucketMetricsConfigurationResponse", - }) as any as S.Schema; +export const PutBucketMetricsConfigurationResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}).pipe(ns), +).annotate({ + identifier: "PutBucketMetricsConfigurationResponse", +}) as any as S.Schema; export interface PutBucketNotificationConfigurationRequest { Bucket: string; NotificationConfiguration: NotificationConfiguration; @@ -10316,59 +10271,59 @@ export const PutBucketNotificationConfigurationRequest = ), ), ).annotate({ - identifier: "PutBucketNotificationConfigurationRequest", - }) as any as S.Schema; -export interface PutBucketNotificationConfigurationResponse {} -export const PutBucketNotificationConfigurationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "PutBucketNotificationConfigurationResponse", - }) as any as S.Schema; -export interface PutBucketOwnershipControlsRequest { - Bucket: string; - ContentMD5?: string; - ExpectedBucketOwner?: string; - OwnershipControls: OwnershipControls; - ChecksumAlgorithm?: ChecksumAlgorithm; -} -export const PutBucketOwnershipControlsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), - ContentMD5: S.optional(S.String).pipe(T.HttpHeader("Content-MD5")), - ExpectedBucketOwner: S.optional(S.String).pipe( - T.HttpHeader("x-amz-expected-bucket-owner"), - ), - OwnershipControls: OwnershipControls.pipe( - T.HttpPayload(), - T.XmlName("OwnershipControls"), - ).annotate({ identifier: "OwnershipControls" }), - ChecksumAlgorithm: S.optional(ChecksumAlgorithm).pipe( - T.HttpHeader("x-amz-sdk-checksum-algorithm"), - ), - }).pipe( - T.all( - ns, - T.Http({ method: "PUT", uri: "/{Bucket}?ownershipControls" }), - svc, - auth, - proto, - ver, - rules, - T.AwsProtocolsHttpChecksum({ - requestAlgorithmMember: "ChecksumAlgorithm", - requestChecksumRequired: true, - }), - T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), - ), - ), - ).annotate({ - identifier: "PutBucketOwnershipControlsRequest", - }) as any as S.Schema; -export interface PutBucketOwnershipControlsResponse {} -export const PutBucketOwnershipControlsResponse = + identifier: "PutBucketNotificationConfigurationRequest", + }) as any as S.Schema; +export interface PutBucketNotificationConfigurationResponse {} +export const PutBucketNotificationConfigurationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "PutBucketOwnershipControlsResponse", - }) as any as S.Schema; + identifier: "PutBucketNotificationConfigurationResponse", + }) as any as S.Schema; +export interface PutBucketOwnershipControlsRequest { + Bucket: string; + ContentMD5?: string; + ExpectedBucketOwner?: string; + OwnershipControls: OwnershipControls; + ChecksumAlgorithm?: ChecksumAlgorithm; +} +export const PutBucketOwnershipControlsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), + ContentMD5: S.optional(S.String).pipe(T.HttpHeader("Content-MD5")), + ExpectedBucketOwner: S.optional(S.String).pipe( + T.HttpHeader("x-amz-expected-bucket-owner"), + ), + OwnershipControls: OwnershipControls.pipe( + T.HttpPayload(), + T.XmlName("OwnershipControls"), + ).annotate({ identifier: "OwnershipControls" }), + ChecksumAlgorithm: S.optional(ChecksumAlgorithm).pipe( + T.HttpHeader("x-amz-sdk-checksum-algorithm"), + ), + }).pipe( + T.all( + ns, + T.Http({ method: "PUT", uri: "/{Bucket}?ownershipControls" }), + svc, + auth, + proto, + ver, + rules, + T.AwsProtocolsHttpChecksum({ + requestAlgorithmMember: "ChecksumAlgorithm", + requestChecksumRequired: true, + }), + T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), + ), + ), +).annotate({ + identifier: "PutBucketOwnershipControlsRequest", +}) as any as S.Schema; +export interface PutBucketOwnershipControlsResponse {} +export const PutBucketOwnershipControlsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "PutBucketOwnershipControlsResponse", +}) as any as S.Schema; export interface PutBucketPolicyRequest { Bucket: string; ContentMD5?: string; @@ -10424,55 +10379,56 @@ export interface PutBucketReplicationRequest { Token?: string; ExpectedBucketOwner?: string; } -export const PutBucketReplicationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), - ContentMD5: S.optional(S.String).pipe(T.HttpHeader("Content-MD5")), - ChecksumAlgorithm: S.optional(ChecksumAlgorithm).pipe( - T.HttpHeader("x-amz-sdk-checksum-algorithm"), - ), - ReplicationConfiguration: ReplicationConfiguration.pipe( - T.HttpPayload(), - T.XmlName("ReplicationConfiguration"), - ).annotate({ identifier: "ReplicationConfiguration" }), - Token: S.optional(S.String).pipe( - T.HttpHeader("x-amz-bucket-object-lock-token"), - ), - ExpectedBucketOwner: S.optional(S.String).pipe( - T.HttpHeader("x-amz-expected-bucket-owner"), - ), - }).pipe( - T.all( - ns, - T.Http({ method: "PUT", uri: "/{Bucket}?replication" }), - svc, - auth, - proto, - ver, - rules, - T.AwsProtocolsHttpChecksum({ - requestAlgorithmMember: "ChecksumAlgorithm", - requestChecksumRequired: true, - }), - T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), - ), +export const PutBucketReplicationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), + ContentMD5: S.optional(S.String).pipe(T.HttpHeader("Content-MD5")), + ChecksumAlgorithm: S.optional(ChecksumAlgorithm).pipe( + T.HttpHeader("x-amz-sdk-checksum-algorithm"), ), - ).annotate({ - identifier: "PutBucketReplicationRequest", - }) as any as S.Schema; + ReplicationConfiguration: ReplicationConfiguration.pipe( + T.HttpPayload(), + T.XmlName("ReplicationConfiguration"), + ).annotate({ identifier: "ReplicationConfiguration" }), + Token: S.optional(S.String).pipe( + T.HttpHeader("x-amz-bucket-object-lock-token"), + ), + ExpectedBucketOwner: S.optional(S.String).pipe( + T.HttpHeader("x-amz-expected-bucket-owner"), + ), + }).pipe( + T.all( + ns, + T.Http({ method: "PUT", uri: "/{Bucket}?replication" }), + svc, + auth, + proto, + ver, + rules, + T.AwsProtocolsHttpChecksum({ + requestAlgorithmMember: "ChecksumAlgorithm", + requestChecksumRequired: true, + }), + T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), + ), + ), +).annotate({ + identifier: "PutBucketReplicationRequest", +}) as any as S.Schema; export interface PutBucketReplicationResponse {} -export const PutBucketReplicationResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "PutBucketReplicationResponse", - }) as any as S.Schema; +export const PutBucketReplicationResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "PutBucketReplicationResponse", +}) as any as S.Schema; export interface RequestPaymentConfiguration { Payer: Payer; } -export const RequestPaymentConfiguration = - /*@__PURE__*/ S.suspend(() => S.Struct({ Payer: Payer })).annotate({ - identifier: "RequestPaymentConfiguration", - }) as any as S.Schema; +export const RequestPaymentConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ Payer: Payer }), +).annotate({ + identifier: "RequestPaymentConfiguration", +}) as any as S.Schema; export interface PutBucketRequestPaymentRequest { Bucket: string; ContentMD5?: string; @@ -10480,45 +10436,45 @@ export interface PutBucketRequestPaymentRequest { RequestPaymentConfiguration: RequestPaymentConfiguration; ExpectedBucketOwner?: string; } -export const PutBucketRequestPaymentRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), - ContentMD5: S.optional(S.String).pipe(T.HttpHeader("Content-MD5")), - ChecksumAlgorithm: S.optional(ChecksumAlgorithm).pipe( - T.HttpHeader("x-amz-sdk-checksum-algorithm"), - ), - RequestPaymentConfiguration: RequestPaymentConfiguration.pipe( - T.HttpPayload(), - T.XmlName("RequestPaymentConfiguration"), - ).annotate({ identifier: "RequestPaymentConfiguration" }), - ExpectedBucketOwner: S.optional(S.String).pipe( - T.HttpHeader("x-amz-expected-bucket-owner"), - ), - }).pipe( - T.all( - ns, - T.Http({ method: "PUT", uri: "/{Bucket}?requestPayment" }), - svc, - auth, - proto, - ver, - rules, - T.AwsProtocolsHttpChecksum({ - requestAlgorithmMember: "ChecksumAlgorithm", - requestChecksumRequired: true, - }), - T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), - ), +export const PutBucketRequestPaymentRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), + ContentMD5: S.optional(S.String).pipe(T.HttpHeader("Content-MD5")), + ChecksumAlgorithm: S.optional(ChecksumAlgorithm).pipe( + T.HttpHeader("x-amz-sdk-checksum-algorithm"), ), - ).annotate({ - identifier: "PutBucketRequestPaymentRequest", - }) as any as S.Schema; + RequestPaymentConfiguration: RequestPaymentConfiguration.pipe( + T.HttpPayload(), + T.XmlName("RequestPaymentConfiguration"), + ).annotate({ identifier: "RequestPaymentConfiguration" }), + ExpectedBucketOwner: S.optional(S.String).pipe( + T.HttpHeader("x-amz-expected-bucket-owner"), + ), + }).pipe( + T.all( + ns, + T.Http({ method: "PUT", uri: "/{Bucket}?requestPayment" }), + svc, + auth, + proto, + ver, + rules, + T.AwsProtocolsHttpChecksum({ + requestAlgorithmMember: "ChecksumAlgorithm", + requestChecksumRequired: true, + }), + T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), + ), + ), +).annotate({ + identifier: "PutBucketRequestPaymentRequest", +}) as any as S.Schema; export interface PutBucketRequestPaymentResponse {} -export const PutBucketRequestPaymentResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "PutBucketRequestPaymentResponse", - }) as any as S.Schema; +export const PutBucketRequestPaymentResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "PutBucketRequestPaymentResponse", +}) as any as S.Schema; export interface Tagging { TagSet: Tag[]; } @@ -10627,10 +10583,11 @@ export const PutBucketVersioningRequest = /*@__PURE__*/ S.suspend(() => identifier: "PutBucketVersioningRequest", }) as any as S.Schema; export interface PutBucketVersioningResponse {} -export const PutBucketVersioningResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "PutBucketVersioningResponse", - }) as any as S.Schema; +export const PutBucketVersioningResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "PutBucketVersioningResponse", +}) as any as S.Schema; export interface WebsiteConfiguration { ErrorDocument?: ErrorDocument; IndexDocument?: IndexDocument; @@ -11252,57 +11209,55 @@ export interface PutObjectLockConfigurationRequest { ChecksumAlgorithm?: ChecksumAlgorithm; ExpectedBucketOwner?: string; } -export const PutObjectLockConfigurationRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), - ObjectLockConfiguration: S.optional(ObjectLockConfiguration) - .pipe(T.HttpPayload(), T.XmlName("ObjectLockConfiguration")) - .annotate({ identifier: "ObjectLockConfiguration" }), - RequestPayer: S.optional(RequestPayer).pipe( - T.HttpHeader("x-amz-request-payer"), - ), - Token: S.optional(S.String).pipe( - T.HttpHeader("x-amz-bucket-object-lock-token"), - ), - ContentMD5: S.optional(S.String).pipe(T.HttpHeader("Content-MD5")), - ChecksumAlgorithm: S.optional(ChecksumAlgorithm).pipe( - T.HttpHeader("x-amz-sdk-checksum-algorithm"), - ), - ExpectedBucketOwner: S.optional(S.String).pipe( - T.HttpHeader("x-amz-expected-bucket-owner"), - ), - }).pipe( - T.all( - ns, - T.Http({ method: "PUT", uri: "/{Bucket}?object-lock" }), - svc, - auth, - proto, - ver, - rules, - T.AwsProtocolsHttpChecksum({ - requestAlgorithmMember: "ChecksumAlgorithm", - requestChecksumRequired: true, - }), - ), +export const PutObjectLockConfigurationRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), + ObjectLockConfiguration: S.optional(ObjectLockConfiguration) + .pipe(T.HttpPayload(), T.XmlName("ObjectLockConfiguration")) + .annotate({ identifier: "ObjectLockConfiguration" }), + RequestPayer: S.optional(RequestPayer).pipe( + T.HttpHeader("x-amz-request-payer"), ), - ).annotate({ - identifier: "PutObjectLockConfigurationRequest", - }) as any as S.Schema; + Token: S.optional(S.String).pipe( + T.HttpHeader("x-amz-bucket-object-lock-token"), + ), + ContentMD5: S.optional(S.String).pipe(T.HttpHeader("Content-MD5")), + ChecksumAlgorithm: S.optional(ChecksumAlgorithm).pipe( + T.HttpHeader("x-amz-sdk-checksum-algorithm"), + ), + ExpectedBucketOwner: S.optional(S.String).pipe( + T.HttpHeader("x-amz-expected-bucket-owner"), + ), + }).pipe( + T.all( + ns, + T.Http({ method: "PUT", uri: "/{Bucket}?object-lock" }), + svc, + auth, + proto, + ver, + rules, + T.AwsProtocolsHttpChecksum({ + requestAlgorithmMember: "ChecksumAlgorithm", + requestChecksumRequired: true, + }), + ), + ), +).annotate({ + identifier: "PutObjectLockConfigurationRequest", +}) as any as S.Schema; export interface PutObjectLockConfigurationOutput { RequestCharged?: RequestCharged; } -export const PutObjectLockConfigurationOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RequestCharged: S.optional(RequestCharged).pipe( - T.HttpHeader("x-amz-request-charged"), - ), - }).pipe(ns), - ).annotate({ - identifier: "PutObjectLockConfigurationOutput", - }) as any as S.Schema; +export const PutObjectLockConfigurationOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RequestCharged: S.optional(RequestCharged).pipe( + T.HttpHeader("x-amz-request-charged"), + ), + }).pipe(ns), +).annotate({ + identifier: "PutObjectLockConfigurationOutput", +}) as any as S.Schema; export interface PutObjectRetentionRequest { Bucket: string; Key: string; @@ -11428,45 +11383,45 @@ export interface PutPublicAccessBlockRequest { PublicAccessBlockConfiguration: PublicAccessBlockConfiguration; ExpectedBucketOwner?: string; } -export const PutPublicAccessBlockRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), - ContentMD5: S.optional(S.String).pipe(T.HttpHeader("Content-MD5")), - ChecksumAlgorithm: S.optional(ChecksumAlgorithm).pipe( - T.HttpHeader("x-amz-sdk-checksum-algorithm"), - ), - PublicAccessBlockConfiguration: PublicAccessBlockConfiguration.pipe( - T.HttpPayload(), - T.XmlName("PublicAccessBlockConfiguration"), - ).annotate({ identifier: "PublicAccessBlockConfiguration" }), - ExpectedBucketOwner: S.optional(S.String).pipe( - T.HttpHeader("x-amz-expected-bucket-owner"), - ), - }).pipe( - T.all( - ns, - T.Http({ method: "PUT", uri: "/{Bucket}?publicAccessBlock" }), - svc, - auth, - proto, - ver, - rules, - T.AwsProtocolsHttpChecksum({ - requestAlgorithmMember: "ChecksumAlgorithm", - requestChecksumRequired: true, - }), - T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), - ), +export const PutPublicAccessBlockRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), + ContentMD5: S.optional(S.String).pipe(T.HttpHeader("Content-MD5")), + ChecksumAlgorithm: S.optional(ChecksumAlgorithm).pipe( + T.HttpHeader("x-amz-sdk-checksum-algorithm"), ), - ).annotate({ - identifier: "PutPublicAccessBlockRequest", - }) as any as S.Schema; + PublicAccessBlockConfiguration: PublicAccessBlockConfiguration.pipe( + T.HttpPayload(), + T.XmlName("PublicAccessBlockConfiguration"), + ).annotate({ identifier: "PublicAccessBlockConfiguration" }), + ExpectedBucketOwner: S.optional(S.String).pipe( + T.HttpHeader("x-amz-expected-bucket-owner"), + ), + }).pipe( + T.all( + ns, + T.Http({ method: "PUT", uri: "/{Bucket}?publicAccessBlock" }), + svc, + auth, + proto, + ver, + rules, + T.AwsProtocolsHttpChecksum({ + requestAlgorithmMember: "ChecksumAlgorithm", + requestChecksumRequired: true, + }), + T.StaticContextParams({ UseS3ExpressControlEndpoint: { value: true } }), + ), + ), +).annotate({ + identifier: "PutPublicAccessBlockRequest", +}) as any as S.Schema; export interface PutPublicAccessBlockResponse {} -export const PutPublicAccessBlockResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "PutPublicAccessBlockResponse", - }) as any as S.Schema; +export const PutPublicAccessBlockResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "PutPublicAccessBlockResponse", +}) as any as S.Schema; export interface RenameObjectRequest { Bucket: string; Key: string; @@ -11833,10 +11788,7 @@ export const SelectObjectContentRequest = /*@__PURE__*/ S.suspend(() => }).pipe( T.all( ns, - T.Http({ - method: "POST", - uri: "/{Bucket}/{Key+}?select&select-type=2", - }), + T.Http({ method: "POST", uri: "/{Bucket}/{Key+}?select&select-type=2" }), svc, auth, proto, @@ -11943,18 +11895,17 @@ export type SelectObjectContentEventStream = Cont?: never; End: EndEvent; }; -export const SelectObjectContentEventStream = - /*@__PURE__*/ T.EventStream( - S.Union([ - S.Struct({ Records: RecordsEvent }), - S.Struct({ Stats: StatsEvent }), - S.Struct({ Progress: ProgressEvent }), - S.Struct({ Cont: ContinuationEvent }), - S.Struct({ End: EndEvent }), - ]), - ) as any as S.Schema< - stream.Stream - >; +export const SelectObjectContentEventStream = /*@__PURE__*/ T.EventStream( + S.Union([ + S.Struct({ Records: RecordsEvent }), + S.Struct({ Stats: StatsEvent }), + S.Struct({ Progress: ProgressEvent }), + S.Struct({ Cont: ContinuationEvent }), + S.Struct({ End: EndEvent }), + ]), +) as any as S.Schema< + stream.Stream +>; export interface SelectObjectContentOutput { Payload?: stream.Stream; } @@ -11970,16 +11921,15 @@ export interface AnnotationTableConfigurationUpdates { EncryptionConfiguration?: MetadataTableEncryptionConfiguration; Role?: string; } -export const AnnotationTableConfigurationUpdates = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ConfigurationState: AnnotationConfigurationState, - EncryptionConfiguration: S.optional(MetadataTableEncryptionConfiguration), - Role: S.optional(S.String), - }), - ).annotate({ - identifier: "AnnotationTableConfigurationUpdates", - }) as any as S.Schema; +export const AnnotationTableConfigurationUpdates = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ConfigurationState: AnnotationConfigurationState, + EncryptionConfiguration: S.optional(MetadataTableEncryptionConfiguration), + Role: S.optional(S.String), + }), +).annotate({ + identifier: "AnnotationTableConfigurationUpdates", +}) as any as S.Schema; export interface UpdateBucketMetadataAnnotationTableConfigurationRequest { Bucket: string; ContentMD5?: string; @@ -12030,15 +11980,14 @@ export interface InventoryTableConfigurationUpdates { ConfigurationState: InventoryConfigurationState; EncryptionConfiguration?: MetadataTableEncryptionConfiguration; } -export const InventoryTableConfigurationUpdates = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ConfigurationState: InventoryConfigurationState, - EncryptionConfiguration: S.optional(MetadataTableEncryptionConfiguration), - }), - ).annotate({ - identifier: "InventoryTableConfigurationUpdates", - }) as any as S.Schema; +export const InventoryTableConfigurationUpdates = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ConfigurationState: InventoryConfigurationState, + EncryptionConfiguration: S.optional(MetadataTableEncryptionConfiguration), + }), +).annotate({ + identifier: "InventoryTableConfigurationUpdates", +}) as any as S.Schema; export interface UpdateBucketMetadataInventoryTableConfigurationRequest { Bucket: string; ContentMD5?: string; @@ -12088,12 +12037,11 @@ export const UpdateBucketMetadataInventoryTableConfigurationResponse = export interface JournalTableConfigurationUpdates { RecordExpiration: RecordExpiration; } -export const JournalTableConfigurationUpdates = - /*@__PURE__*/ S.suspend(() => - S.Struct({ RecordExpiration: RecordExpiration }), - ).annotate({ - identifier: "JournalTableConfigurationUpdates", - }) as any as S.Schema; +export const JournalTableConfigurationUpdates = /*@__PURE__*/ S.suspend(() => + S.Struct({ RecordExpiration: RecordExpiration }), +).annotate({ + identifier: "JournalTableConfigurationUpdates", +}) as any as S.Schema; export interface UpdateBucketMetadataJournalTableConfigurationRequest { Bucket: string; ContentMD5?: string; @@ -12170,54 +12118,52 @@ export interface UpdateObjectEncryptionRequest { ContentMD5?: string; ChecksumAlgorithm?: ChecksumAlgorithm; } -export const UpdateObjectEncryptionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), - Key: S.String.pipe(T.HttpLabel("Key")), - VersionId: S.optional(S.String).pipe(T.HttpQuery("versionId")), - ObjectEncryption: ObjectEncryption.pipe(T.HttpPayload()), - RequestPayer: S.optional(RequestPayer).pipe( - T.HttpHeader("x-amz-request-payer"), - ), - ExpectedBucketOwner: S.optional(S.String).pipe( - T.HttpHeader("x-amz-expected-bucket-owner"), - ), - ContentMD5: S.optional(S.String).pipe(T.HttpHeader("Content-MD5")), - ChecksumAlgorithm: S.optional(ChecksumAlgorithm).pipe( - T.HttpHeader("x-amz-sdk-checksum-algorithm"), - ), - }).pipe( - T.all( - ns, - T.Http({ method: "PUT", uri: "/{Bucket}/{Key+}?encryption" }), - svc, - auth, - proto, - ver, - rules, - T.AwsProtocolsHttpChecksum({ - requestAlgorithmMember: "ChecksumAlgorithm", - requestChecksumRequired: true, - }), - ), +export const UpdateObjectEncryptionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Bucket: S.String.pipe(T.HttpLabel("Bucket"), T.ContextParam("Bucket")), + Key: S.String.pipe(T.HttpLabel("Key")), + VersionId: S.optional(S.String).pipe(T.HttpQuery("versionId")), + ObjectEncryption: ObjectEncryption.pipe(T.HttpPayload()), + RequestPayer: S.optional(RequestPayer).pipe( + T.HttpHeader("x-amz-request-payer"), ), - ).annotate({ - identifier: "UpdateObjectEncryptionRequest", - }) as any as S.Schema; + ExpectedBucketOwner: S.optional(S.String).pipe( + T.HttpHeader("x-amz-expected-bucket-owner"), + ), + ContentMD5: S.optional(S.String).pipe(T.HttpHeader("Content-MD5")), + ChecksumAlgorithm: S.optional(ChecksumAlgorithm).pipe( + T.HttpHeader("x-amz-sdk-checksum-algorithm"), + ), + }).pipe( + T.all( + ns, + T.Http({ method: "PUT", uri: "/{Bucket}/{Key+}?encryption" }), + svc, + auth, + proto, + ver, + rules, + T.AwsProtocolsHttpChecksum({ + requestAlgorithmMember: "ChecksumAlgorithm", + requestChecksumRequired: true, + }), + ), + ), +).annotate({ + identifier: "UpdateObjectEncryptionRequest", +}) as any as S.Schema; export interface UpdateObjectEncryptionResponse { RequestCharged?: RequestCharged; } -export const UpdateObjectEncryptionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RequestCharged: S.optional(RequestCharged).pipe( - T.HttpHeader("x-amz-request-charged"), - ), - }).pipe(ns), - ).annotate({ - identifier: "UpdateObjectEncryptionResponse", - }) as any as S.Schema; +export const UpdateObjectEncryptionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RequestCharged: S.optional(RequestCharged).pipe( + T.HttpHeader("x-amz-request-charged"), + ), + }).pipe(ns), +).annotate({ + identifier: "UpdateObjectEncryptionResponse", +}) as any as S.Schema; export interface UploadPartRequest { Body?: T.StreamingInputBody; Bucket: string; @@ -12592,171 +12538,170 @@ export interface WriteGetObjectResponseRequest { VersionId?: string; BucketKeyEnabled?: boolean; } -export const WriteGetObjectResponseRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - RequestRoute: S.String.pipe( - T.HttpHeader("x-amz-request-route"), - T.HostLabel(), - ), - RequestToken: S.String.pipe(T.HttpHeader("x-amz-request-token")), - Body: S.optional(T.StreamingInput).pipe(T.HttpPayload()), - StatusCode: S.optional(S.Number).pipe(T.HttpHeader("x-amz-fwd-status")), - ErrorCode: S.optional(S.String).pipe( - T.HttpHeader("x-amz-fwd-error-code"), - ), - ErrorMessage: S.optional(S.String).pipe( - T.HttpHeader("x-amz-fwd-error-message"), - ), - AcceptRanges: S.optional(S.String).pipe( - T.HttpHeader("x-amz-fwd-header-accept-ranges"), - ), - CacheControl: S.optional(S.String).pipe( - T.HttpHeader("x-amz-fwd-header-Cache-Control"), - ), - ContentDisposition: S.optional(S.String).pipe( - T.HttpHeader("x-amz-fwd-header-Content-Disposition"), - ), - ContentEncoding: S.optional(S.String).pipe( - T.HttpHeader("x-amz-fwd-header-Content-Encoding"), - ), - ContentLanguage: S.optional(S.String).pipe( - T.HttpHeader("x-amz-fwd-header-Content-Language"), - ), - ContentLength: S.optional(S.Number).pipe(T.HttpHeader("Content-Length")), - ContentRange: S.optional(S.String).pipe( - T.HttpHeader("x-amz-fwd-header-Content-Range"), - ), - ContentType: S.optional(S.String).pipe( - T.HttpHeader("x-amz-fwd-header-Content-Type"), - ), - ChecksumCRC32: S.optional(S.String).pipe( - T.HttpHeader("x-amz-fwd-header-x-amz-checksum-crc32"), - ), - ChecksumCRC32C: S.optional(S.String).pipe( - T.HttpHeader("x-amz-fwd-header-x-amz-checksum-crc32c"), - ), - ChecksumCRC64NVME: S.optional(S.String).pipe( - T.HttpHeader("x-amz-fwd-header-x-amz-checksum-crc64nvme"), - ), - ChecksumSHA1: S.optional(S.String).pipe( - T.HttpHeader("x-amz-fwd-header-x-amz-checksum-sha1"), - ), - ChecksumSHA256: S.optional(S.String).pipe( - T.HttpHeader("x-amz-fwd-header-x-amz-checksum-sha256"), - ), - ChecksumSHA512: S.optional(S.String).pipe( - T.HttpHeader("x-amz-fwd-header-x-amz-checksum-sha512"), - ), - ChecksumMD5: S.optional(S.String).pipe( - T.HttpHeader("x-amz-fwd-header-x-amz-checksum-md5"), - ), - ChecksumXXHASH64: S.optional(S.String).pipe( - T.HttpHeader("x-amz-fwd-header-x-amz-checksum-xxhash64"), - ), - ChecksumXXHASH3: S.optional(S.String).pipe( - T.HttpHeader("x-amz-fwd-header-x-amz-checksum-xxhash3"), - ), - ChecksumXXHASH128: S.optional(S.String).pipe( - T.HttpHeader("x-amz-fwd-header-x-amz-checksum-xxhash128"), - ), - DeleteMarker: S.optional(S.Boolean).pipe( - T.HttpHeader("x-amz-fwd-header-x-amz-delete-marker"), - ), - ETag: S.optional(S.String).pipe(T.HttpHeader("x-amz-fwd-header-ETag")), - Expires: S.optional(S.String).pipe( - T.HttpHeader("x-amz-fwd-header-Expires"), - ), - Expiration: S.optional(S.String).pipe( - T.HttpHeader("x-amz-fwd-header-x-amz-expiration"), - ), - LastModified: S.optional( - S.Date.pipe(T.TimestampFormat("http-date")), - ).pipe(T.HttpHeader("x-amz-fwd-header-Last-Modified")), - MissingMeta: S.optional(S.Number).pipe( - T.HttpHeader("x-amz-fwd-header-x-amz-missing-meta"), - ), - Metadata: S.optional(Metadata).pipe(T.HttpPrefixHeaders("x-amz-meta-")), - ObjectLockMode: S.optional(ObjectLockMode).pipe( - T.HttpHeader("x-amz-fwd-header-x-amz-object-lock-mode"), - ), - ObjectLockLegalHoldStatus: S.optional(ObjectLockLegalHoldStatus).pipe( - T.HttpHeader("x-amz-fwd-header-x-amz-object-lock-legal-hold"), - ), - ObjectLockRetainUntilDate: S.optional( - S.Date.pipe(T.TimestampFormat("http-date")), - ).pipe( - T.HttpHeader("x-amz-fwd-header-x-amz-object-lock-retain-until-date"), - ), - PartsCount: S.optional(S.Number).pipe( - T.HttpHeader("x-amz-fwd-header-x-amz-mp-parts-count"), - ), - ReplicationStatus: S.optional(ReplicationStatus).pipe( - T.HttpHeader("x-amz-fwd-header-x-amz-replication-status"), - ), - RequestCharged: S.optional(RequestCharged).pipe( - T.HttpHeader("x-amz-fwd-header-x-amz-request-charged"), - ), - Restore: S.optional(S.String).pipe( - T.HttpHeader("x-amz-fwd-header-x-amz-restore"), - ), - ServerSideEncryption: S.optional(ServerSideEncryption).pipe( - T.HttpHeader("x-amz-fwd-header-x-amz-server-side-encryption"), - ), - SSECustomerAlgorithm: S.optional(S.String).pipe( - T.HttpHeader( - "x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm", - ), - ), - SSEKMSKeyId: S.optional(SensitiveString).pipe( - T.HttpHeader( - "x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id", - ), - ), - SSECustomerKeyMD5: S.optional(S.String).pipe( - T.HttpHeader( - "x-amz-fwd-header-x-amz-server-side-encryption-customer-key-MD5", - ), - ), - StorageClass: S.optional(StorageClass).pipe( - T.HttpHeader("x-amz-fwd-header-x-amz-storage-class"), - ), - TagCount: S.optional(S.Number).pipe( - T.HttpHeader("x-amz-fwd-header-x-amz-tagging-count"), +export const WriteGetObjectResponseRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + RequestRoute: S.String.pipe( + T.HttpHeader("x-amz-request-route"), + T.HostLabel(), + ), + RequestToken: S.String.pipe(T.HttpHeader("x-amz-request-token")), + Body: S.optional(T.StreamingInput).pipe(T.HttpPayload()), + StatusCode: S.optional(S.Number).pipe(T.HttpHeader("x-amz-fwd-status")), + ErrorCode: S.optional(S.String).pipe(T.HttpHeader("x-amz-fwd-error-code")), + ErrorMessage: S.optional(S.String).pipe( + T.HttpHeader("x-amz-fwd-error-message"), + ), + AcceptRanges: S.optional(S.String).pipe( + T.HttpHeader("x-amz-fwd-header-accept-ranges"), + ), + CacheControl: S.optional(S.String).pipe( + T.HttpHeader("x-amz-fwd-header-Cache-Control"), + ), + ContentDisposition: S.optional(S.String).pipe( + T.HttpHeader("x-amz-fwd-header-Content-Disposition"), + ), + ContentEncoding: S.optional(S.String).pipe( + T.HttpHeader("x-amz-fwd-header-Content-Encoding"), + ), + ContentLanguage: S.optional(S.String).pipe( + T.HttpHeader("x-amz-fwd-header-Content-Language"), + ), + ContentLength: S.optional(S.Number).pipe(T.HttpHeader("Content-Length")), + ContentRange: S.optional(S.String).pipe( + T.HttpHeader("x-amz-fwd-header-Content-Range"), + ), + ContentType: S.optional(S.String).pipe( + T.HttpHeader("x-amz-fwd-header-Content-Type"), + ), + ChecksumCRC32: S.optional(S.String).pipe( + T.HttpHeader("x-amz-fwd-header-x-amz-checksum-crc32"), + ), + ChecksumCRC32C: S.optional(S.String).pipe( + T.HttpHeader("x-amz-fwd-header-x-amz-checksum-crc32c"), + ), + ChecksumCRC64NVME: S.optional(S.String).pipe( + T.HttpHeader("x-amz-fwd-header-x-amz-checksum-crc64nvme"), + ), + ChecksumSHA1: S.optional(S.String).pipe( + T.HttpHeader("x-amz-fwd-header-x-amz-checksum-sha1"), + ), + ChecksumSHA256: S.optional(S.String).pipe( + T.HttpHeader("x-amz-fwd-header-x-amz-checksum-sha256"), + ), + ChecksumSHA512: S.optional(S.String).pipe( + T.HttpHeader("x-amz-fwd-header-x-amz-checksum-sha512"), + ), + ChecksumMD5: S.optional(S.String).pipe( + T.HttpHeader("x-amz-fwd-header-x-amz-checksum-md5"), + ), + ChecksumXXHASH64: S.optional(S.String).pipe( + T.HttpHeader("x-amz-fwd-header-x-amz-checksum-xxhash64"), + ), + ChecksumXXHASH3: S.optional(S.String).pipe( + T.HttpHeader("x-amz-fwd-header-x-amz-checksum-xxhash3"), + ), + ChecksumXXHASH128: S.optional(S.String).pipe( + T.HttpHeader("x-amz-fwd-header-x-amz-checksum-xxhash128"), + ), + DeleteMarker: S.optional(S.Boolean).pipe( + T.HttpHeader("x-amz-fwd-header-x-amz-delete-marker"), + ), + ETag: S.optional(S.String).pipe(T.HttpHeader("x-amz-fwd-header-ETag")), + Expires: S.optional(S.String).pipe( + T.HttpHeader("x-amz-fwd-header-Expires"), + ), + Expiration: S.optional(S.String).pipe( + T.HttpHeader("x-amz-fwd-header-x-amz-expiration"), + ), + LastModified: S.optional(S.Date.pipe(T.TimestampFormat("http-date"))).pipe( + T.HttpHeader("x-amz-fwd-header-Last-Modified"), + ), + MissingMeta: S.optional(S.Number).pipe( + T.HttpHeader("x-amz-fwd-header-x-amz-missing-meta"), + ), + Metadata: S.optional(Metadata).pipe(T.HttpPrefixHeaders("x-amz-meta-")), + ObjectLockMode: S.optional(ObjectLockMode).pipe( + T.HttpHeader("x-amz-fwd-header-x-amz-object-lock-mode"), + ), + ObjectLockLegalHoldStatus: S.optional(ObjectLockLegalHoldStatus).pipe( + T.HttpHeader("x-amz-fwd-header-x-amz-object-lock-legal-hold"), + ), + ObjectLockRetainUntilDate: S.optional( + S.Date.pipe(T.TimestampFormat("http-date")), + ).pipe( + T.HttpHeader("x-amz-fwd-header-x-amz-object-lock-retain-until-date"), + ), + PartsCount: S.optional(S.Number).pipe( + T.HttpHeader("x-amz-fwd-header-x-amz-mp-parts-count"), + ), + ReplicationStatus: S.optional(ReplicationStatus).pipe( + T.HttpHeader("x-amz-fwd-header-x-amz-replication-status"), + ), + RequestCharged: S.optional(RequestCharged).pipe( + T.HttpHeader("x-amz-fwd-header-x-amz-request-charged"), + ), + Restore: S.optional(S.String).pipe( + T.HttpHeader("x-amz-fwd-header-x-amz-restore"), + ), + ServerSideEncryption: S.optional(ServerSideEncryption).pipe( + T.HttpHeader("x-amz-fwd-header-x-amz-server-side-encryption"), + ), + SSECustomerAlgorithm: S.optional(S.String).pipe( + T.HttpHeader( + "x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm", ), - VersionId: S.optional(S.String).pipe( - T.HttpHeader("x-amz-fwd-header-x-amz-version-id"), + ), + SSEKMSKeyId: S.optional(SensitiveString).pipe( + T.HttpHeader( + "x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id", ), - BucketKeyEnabled: S.optional(S.Boolean).pipe( - T.HttpHeader( - "x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled", - ), + ), + SSECustomerKeyMD5: S.optional(S.String).pipe( + T.HttpHeader( + "x-amz-fwd-header-x-amz-server-side-encryption-customer-key-MD5", ), - }).pipe( - T.all( - ns, - T.Http({ method: "POST", uri: "/WriteGetObjectResponse" }), - svc, - auth, - proto, - ver, - rules, - T.StaticContextParams({ UseObjectLambdaEndpoint: { value: true } }), + ), + StorageClass: S.optional(StorageClass).pipe( + T.HttpHeader("x-amz-fwd-header-x-amz-storage-class"), + ), + TagCount: S.optional(S.Number).pipe( + T.HttpHeader("x-amz-fwd-header-x-amz-tagging-count"), + ), + VersionId: S.optional(S.String).pipe( + T.HttpHeader("x-amz-fwd-header-x-amz-version-id"), + ), + BucketKeyEnabled: S.optional(S.Boolean).pipe( + T.HttpHeader( + "x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled", ), ), - ).annotate({ - identifier: "WriteGetObjectResponseRequest", - }) as any as S.Schema; + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/WriteGetObjectResponse" }), + svc, + auth, + proto, + ver, + rules, + T.StaticContextParams({ UseObjectLambdaEndpoint: { value: true } }), + ), + ), +).annotate({ + identifier: "WriteGetObjectResponseRequest", +}) as any as S.Schema; export interface WriteGetObjectResponseResponse {} -export const WriteGetObjectResponseResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(ns)).annotate({ - identifier: "WriteGetObjectResponseResponse", - }) as any as S.Schema; +export const WriteGetObjectResponseResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}).pipe(ns), +).annotate({ + identifier: "WriteGetObjectResponseResponse", +}) as any as S.Schema; //# Errors export class NoSuchUpload extends S.TaggedErrorClass()( "NoSuchUpload", {}, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class RequestLimitExceeded extends S.TaggedErrorClass()( "RequestLimitExceeded", @@ -12774,6 +12719,7 @@ export class NotFound extends S.TaggedErrorClass()("NotFound", {}) {} export class ObjectNotInActiveTierError extends S.TaggedErrorClass()( "ObjectNotInActiveTierError", {}, + T.HttpError(403), ).pipe(C.withAuthError) {} export class PermanentRedirect extends S.TaggedErrorClass()( "PermanentRedirect", @@ -12789,10 +12735,12 @@ export class PermanentRedirect extends S.TaggedErrorClass()( export class BucketAlreadyExists extends S.TaggedErrorClass()( "BucketAlreadyExists", {}, + T.HttpError(409), ).pipe(C.withConflictError, C.withAlreadyExistsError) {} export class BucketAlreadyOwnedByYou extends S.TaggedErrorClass()( "BucketAlreadyOwnedByYou", {}, + T.HttpError(409), ).pipe(C.withConflictError, C.withAlreadyExistsError) {} export class IllegalLocationConstraintException extends S.TaggedErrorClass()( "IllegalLocationConstraintException", @@ -12814,6 +12762,10 @@ export class BucketNotEmpty extends S.TaggedErrorClass()( "BucketNotEmpty", {}, ).pipe(C.withConflictError) {} +export class BucketHasAccessPointsAttached extends S.TaggedErrorClass()( + "BucketHasAccessPointsAttached", + {}, +).pipe(C.withConflictError) {} export class SignatureDoesNotMatch extends S.TaggedErrorClass()( "SignatureDoesNotMatch", {}, @@ -12821,6 +12773,7 @@ export class SignatureDoesNotMatch extends S.TaggedErrorClass()( "NoSuchKey", {}, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class NoSuchConfiguration extends S.TaggedErrorClass()( "NoSuchConfiguration", @@ -12864,10 +12817,12 @@ export class InvalidObjectState extends S.TaggedErrorClass() StorageClass: S.optional(StorageClass), AccessTier: S.optional(IntelligentTieringAccessTier), }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class NoSuchAnnotation extends S.TaggedErrorClass()( "NoSuchAnnotation", {}, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class InvalidRequest extends S.TaggedErrorClass()( "InvalidRequest", @@ -12888,6 +12843,7 @@ export class RequestError extends S.TaggedErrorClass()( export class InvalidPrefix extends S.TaggedErrorClass()( "InvalidPrefix", {}, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class MalformedXML extends S.TaggedErrorClass()( "MalformedXML", @@ -12908,14 +12864,17 @@ export class MalformedPolicy extends S.TaggedErrorClass()( export class EncryptionTypeMismatch extends S.TaggedErrorClass()( "EncryptionTypeMismatch", {}, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidWriteOffset extends S.TaggedErrorClass()( "InvalidWriteOffset", {}, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class TooManyParts extends S.TaggedErrorClass()( "TooManyParts", {}, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class PreconditionFailed extends S.TaggedErrorClass()( "PreconditionFailed", @@ -12928,18 +12887,22 @@ export class ConditionalRequestConflict extends S.TaggedErrorClass()( "AnnotationLimitExceeded", {}, + T.HttpError(400), ).pipe(C.withBadRequestError, C.withThrottlingError) {} export class AnnotationNameTooLong extends S.TaggedErrorClass()( "AnnotationNameTooLong", {}, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class InvalidAnnotationName extends S.TaggedErrorClass()( "InvalidAnnotationName", {}, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class UnsupportedMediaType extends S.TaggedErrorClass()( "UnsupportedMediaType", {}, + T.HttpError(415), ).pipe(C.withBadRequestError) {} export class InvalidBucketState extends S.TaggedErrorClass()( "InvalidBucketState", @@ -12948,10 +12911,12 @@ export class InvalidBucketState extends S.TaggedErrorClass() export class IdempotencyParameterMismatch extends S.TaggedErrorClass()( "IdempotencyParameterMismatch", {}, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ObjectAlreadyInActiveTierError extends S.TaggedErrorClass()( "ObjectAlreadyInActiveTierError", {}, + T.HttpError(403), ).pipe(C.withAuthError) {} //# Operations @@ -13929,6 +13894,7 @@ export type DeleteBucketError = | RequestLimitExceeded | SlowDown | BucketNotEmpty + | BucketHasAccessPointsAttached | NoSuchBucket | PermanentRedirect | CommonErrors; @@ -13979,6 +13945,7 @@ export const deleteBucket: API.OperationMethod< RequestLimitExceeded, SlowDown, BucketNotEmpty, + BucketHasAccessPointsAttached, NoSuchBucket, PermanentRedirect, ], @@ -19537,6 +19504,7 @@ export type PutObjectLegalHoldError = | RequestLimitExceeded | SlowDown | MalformedXML + | InvalidRequest | CommonErrors; /** * This operation is not supported for directory buckets. @@ -19555,7 +19523,7 @@ export const putObjectLegalHold: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: PutObjectLegalHoldRequest, output: PutObjectLegalHoldOutput, - errors: [RequestLimitExceeded, SlowDown, MalformedXML], + errors: [RequestLimitExceeded, SlowDown, MalformedXML, InvalidRequest], operationName: "PutObjectLegalHold", })); export type PutObjectLockConfigurationError = @@ -19796,6 +19764,7 @@ export type RestoreObjectError = | SlowDown | NoSuchKey | PermanentRedirect + | InvalidObjectState | CommonErrors; /** * This operation is not supported for directory buckets. @@ -19951,6 +19920,7 @@ export const restoreObject: API.OperationMethod< SlowDown, NoSuchKey, PermanentRedirect, + InvalidObjectState, ], operationName: "RestoreObject", })); @@ -20707,4 +20677,5 @@ export const writeGetObjectResponse: API.OperationMethod< output: WriteGetObjectResponseResponse, errors: [], operationName: "WriteGetObjectResponse", + endpointHostPrefix: "{RequestRoute}.", })); diff --git a/packages/aws/src/services/s3tables.ts b/packages/aws/src/services/s3tables.ts index 2f09cea112..2b73fddf98 100644 --- a/packages/aws/src/services/s3tables.ts +++ b/packages/aws/src/services/s3tables.ts @@ -1700,7 +1700,7 @@ export interface GetTableResponse { createdBy: string; managedByService?: string; modifiedAt: Date; - modifiedBy: string; + modifiedBy?: string; ownerAccountId: string; format: OpenTableFormat; tableBucketId?: string; @@ -1720,7 +1720,7 @@ export const GetTableResponse = /*@__PURE__*/ S.suspend(() => createdBy: S.String, managedByService: S.optional(S.String), modifiedAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - modifiedBy: S.String, + modifiedBy: S.optional(S.String), ownerAccountId: S.String, format: OpenTableFormat, tableBucketId: S.optional(S.String), @@ -2330,34 +2330,42 @@ export const UpdateTableMetadataLocationResponse = export class BadRequestException extends S.TaggedErrorClass()( "BadRequestException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ForbiddenException extends S.TaggedErrorClass()( "ForbiddenException", { message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class InternalServerErrorException extends S.TaggedErrorClass()( "InternalServerErrorException", { message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class NotFoundException extends S.TaggedErrorClass()( "NotFoundException", { message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class TooManyRequestsException extends S.TaggedErrorClass()( "TooManyRequestsException", { message: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class MethodNotAllowedException extends S.TaggedErrorClass()( "MethodNotAllowedException", { message: S.optional(S.String) }, + T.HttpError(405), ).pipe(C.withBadRequestError) {} //# Operations diff --git a/packages/aws/src/services/sagemaker-featurestore-runtime.ts b/packages/aws/src/services/sagemaker-featurestore-runtime.ts index db4352d6e2..06b0fe5cc8 100644 --- a/packages/aws/src/services/sagemaker-featurestore-runtime.ts +++ b/packages/aws/src/services/sagemaker-featurestore-runtime.ts @@ -487,23 +487,36 @@ export const PutRecordResponse = /*@__PURE__*/ S.suspend(() => export class AccessForbidden extends S.TaggedErrorClass()( "AccessForbidden", { Message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class InternalFailure extends S.TaggedErrorClass()( "InternalFailure", { Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class ServiceUnavailable extends S.TaggedErrorClass()( "ServiceUnavailable", { Message: S.optional(S.String) }, + T.HttpError(503), ).pipe(C.withServerError) {} export class ValidationError extends S.TaggedErrorClass()( "ValidationError", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ResourceNotFound extends S.TaggedErrorClass()( "ResourceNotFound", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} +export class FeatureGroupNotFound extends S.TaggedErrorClass()( + "FeatureGroupNotFound", + { Message: S.optional(S.String) }, + T.SyntheticError({ + from: "ValidationError", + message: { includes: "Resource Not Found" }, + }), +).pipe(C.withNotFoundError) {} //# Operations export type BatchGetRecordError = @@ -570,6 +583,7 @@ export type DeleteRecordError = | InternalFailure | ServiceUnavailable | ValidationError + | FeatureGroupNotFound | CommonErrors; /** * Deletes a `Record` from a `FeatureGroup` in the @@ -617,6 +631,7 @@ export const deleteRecord: API.OperationMethod< InternalFailure, ServiceUnavailable, ValidationError, + FeatureGroupNotFound, ], operationName: "DeleteRecord", })); @@ -626,6 +641,7 @@ export type GetRecordError = | ResourceNotFound | ServiceUnavailable | ValidationError + | FeatureGroupNotFound | CommonErrors; /** * Use for `OnlineStore` serving from a `FeatureStore`. Only the @@ -646,6 +662,7 @@ export const getRecord: API.OperationMethod< ResourceNotFound, ServiceUnavailable, ValidationError, + FeatureGroupNotFound, ], operationName: "GetRecord", })); @@ -704,6 +721,7 @@ export type PutRecordError = | InternalFailure | ServiceUnavailable | ValidationError + | FeatureGroupNotFound | CommonErrors; /** * The `PutRecord` API is used to ingest a list of `Records` into @@ -739,6 +757,7 @@ export const putRecord: API.OperationMethod< InternalFailure, ServiceUnavailable, ValidationError, + FeatureGroupNotFound, ], operationName: "PutRecord", })); diff --git a/packages/aws/src/services/sagemaker.ts b/packages/aws/src/services/sagemaker.ts index a790fc9b82..720c0f13f2 100644 --- a/packages/aws/src/services/sagemaker.ts +++ b/packages/aws/src/services/sagemaker.ts @@ -38234,6 +38234,56 @@ export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { Message: S.optional(S.String) }, ) {} +export class EndpointConfigNotFound extends S.TaggedErrorClass()( + "EndpointConfigNotFound", + {}, + T.SyntheticError({ + from: "ValidationException", + message: { includes: "Could not find endpoint configuration" }, + }), +).pipe(C.withNotFoundError) {} +export class EndpointAlreadyExists extends S.TaggedErrorClass()( + "EndpointAlreadyExists", + {}, + T.SyntheticError({ + from: "ValidationException", + message: { includes: "Cannot create already existing endpoint" }, + }), +).pipe(C.withAlreadyExistsError, C.withConflictError) {} +export class EndpointConfigAlreadyExists extends S.TaggedErrorClass()( + "EndpointConfigAlreadyExists", + {}, + T.SyntheticError({ + from: "ValidationException", + message: { + includes: "Cannot create already existing endpoint configuration", + }, + }), +).pipe(C.withAlreadyExistsError, C.withConflictError) {} +export class ModelAlreadyExists extends S.TaggedErrorClass()( + "ModelAlreadyExists", + {}, + T.SyntheticError({ + from: "ValidationException", + message: { includes: "Cannot create already existing model" }, + }), +).pipe(C.withAlreadyExistsError, C.withConflictError) {} +export class EndpointNotFound extends S.TaggedErrorClass()( + "EndpointNotFound", + {}, + T.SyntheticError({ + from: "ValidationException", + message: { includes: 'Could not find endpoint "' }, + }), +).pipe(C.withNotFoundError) {} +export class ModelNotFound extends S.TaggedErrorClass()( + "ModelNotFound", + {}, + T.SyntheticError({ + from: "ValidationException", + message: { includes: "Could not find model" }, + }), +).pipe(C.withNotFoundError) {} //# Operations export type AddAssociationError = @@ -38853,7 +38903,11 @@ export const createEdgePackagingJob: API.OperationMethod< errors: [ResourceLimitExceeded], operationName: "CreateEdgePackagingJob", })); -export type CreateEndpointError = ResourceLimitExceeded | CommonErrors; +export type CreateEndpointError = + | ResourceLimitExceeded + | EndpointConfigNotFound + | EndpointAlreadyExists + | CommonErrors; /** * Creates an endpoint using the endpoint configuration specified in the request. SageMaker uses the endpoint to provision resources and deploy models. You create the endpoint configuration with the CreateEndpointConfig API. * @@ -38897,10 +38951,17 @@ export const createEndpoint: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateEndpointInput, output: CreateEndpointOutput, - errors: [ResourceLimitExceeded], + errors: [ + ResourceLimitExceeded, + EndpointConfigNotFound, + EndpointAlreadyExists, + ], operationName: "CreateEndpoint", })); -export type CreateEndpointConfigError = ResourceLimitExceeded | CommonErrors; +export type CreateEndpointConfigError = + | ResourceLimitExceeded + | EndpointConfigAlreadyExists + | CommonErrors; /** * Creates an endpoint configuration that SageMaker hosting services uses to deploy models. In the configuration, you identify one or more models, created using the `CreateModel` API, to deploy and the resources that you want SageMaker to provision. Then you call the CreateEndpoint API. * @@ -38920,7 +38981,7 @@ export const createEndpointConfig: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateEndpointConfigInput, output: CreateEndpointConfigOutput, - errors: [ResourceLimitExceeded], + errors: [ResourceLimitExceeded, EndpointConfigAlreadyExists], operationName: "CreateEndpointConfig", })); export type CreateExperimentError = ResourceLimitExceeded | CommonErrors; @@ -39304,7 +39365,10 @@ export const createMlflowTrackingServer: API.OperationMethod< errors: [ResourceLimitExceeded], operationName: "CreateMlflowTrackingServer", })); -export type CreateModelError = ResourceLimitExceeded | CommonErrors; +export type CreateModelError = + | ResourceLimitExceeded + | ModelAlreadyExists + | CommonErrors; /** * Creates a model in SageMaker. In the request, you name the model and describe a primary container. For the primary container, you specify the Docker image that contains inference code, artifacts (from prior training), and a custom environment map that the inference code uses when you deploy the model for predictions. * @@ -39324,7 +39388,7 @@ export const createModel: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateModelInput, output: CreateModelOutput, - errors: [ResourceLimitExceeded], + errors: [ResourceLimitExceeded, ModelAlreadyExists], operationName: "CreateModel", })); export type CreateModelBiasJobDefinitionError = @@ -40303,7 +40367,7 @@ export const deleteEdgeDeploymentStage: API.OperationMethod< errors: [ResourceInUse], operationName: "DeleteEdgeDeploymentStage", })); -export type DeleteEndpointError = CommonErrors; +export type DeleteEndpointError = EndpointNotFound | CommonErrors; /** * Deletes an endpoint. SageMaker frees up all of the resources that were deployed when the endpoint was created. * @@ -40319,10 +40383,10 @@ export const deleteEndpoint: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteEndpointInput, output: DeleteEndpointResponse, - errors: [], + errors: [EndpointNotFound], operationName: "DeleteEndpoint", })); -export type DeleteEndpointConfigError = CommonErrors; +export type DeleteEndpointConfigError = EndpointConfigNotFound | CommonErrors; /** * Deletes an endpoint configuration. The `DeleteEndpointConfig` API deletes only the specified configuration. It does not delete endpoints created using the configuration. * @@ -40336,7 +40400,7 @@ export const deleteEndpointConfig: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteEndpointConfigInput, output: DeleteEndpointConfigResponse, - errors: [], + errors: [EndpointConfigNotFound], operationName: "DeleteEndpointConfig", })); export type DeleteExperimentError = ResourceNotFound | CommonErrors; @@ -40592,7 +40656,7 @@ export const deleteMlflowTrackingServer: API.OperationMethod< errors: [ResourceNotFound], operationName: "DeleteMlflowTrackingServer", })); -export type DeleteModelError = CommonErrors; +export type DeleteModelError = ModelNotFound | CommonErrors; /** * Deletes a model. The `DeleteModel` API deletes only the model entry that was created in SageMaker when you called the `CreateModel` API. It does not delete model artifacts, inference code, or the IAM role that you specified when creating the model. */ @@ -40604,7 +40668,7 @@ export const deleteModel: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteModelInput, output: DeleteModelResponse, - errors: [], + errors: [ModelNotFound], operationName: "DeleteModel", })); export type DeleteModelBiasJobDefinitionError = ResourceNotFound | CommonErrors; @@ -41389,7 +41453,7 @@ export const describeEdgePackagingJob: API.OperationMethod< errors: [ResourceNotFound], operationName: "DescribeEdgePackagingJob", })); -export type DescribeEndpointError = CommonErrors; +export type DescribeEndpointError = EndpointNotFound | CommonErrors; /** * Returns the description of an endpoint. */ @@ -41401,10 +41465,10 @@ export const describeEndpoint: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeEndpointInput, output: DescribeEndpointOutput, - errors: [], + errors: [EndpointNotFound], operationName: "DescribeEndpoint", })); -export type DescribeEndpointConfigError = CommonErrors; +export type DescribeEndpointConfigError = EndpointConfigNotFound | CommonErrors; /** * Returns the description of an endpoint configuration created using the `CreateEndpointConfig` API. */ @@ -41416,7 +41480,7 @@ export const describeEndpointConfig: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeEndpointConfigInput, output: DescribeEndpointConfigOutput, - errors: [], + errors: [EndpointConfigNotFound], operationName: "DescribeEndpointConfig", })); export type DescribeExperimentError = ResourceNotFound | CommonErrors; @@ -41724,7 +41788,7 @@ export const describeMlflowTrackingServer: API.OperationMethod< errors: [ResourceNotFound], operationName: "DescribeMlflowTrackingServer", })); -export type DescribeModelError = CommonErrors; +export type DescribeModelError = ModelNotFound | CommonErrors; /** * Describes a model that you created using the `CreateModel` API. */ @@ -41736,7 +41800,7 @@ export const describeModel: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeModelInput, output: DescribeModelOutput, - errors: [], + errors: [ModelNotFound], operationName: "DescribeModel", })); export type DescribeModelBiasJobDefinitionError = @@ -46522,7 +46586,11 @@ export const updateDomain: API.OperationMethod< errors: [ResourceInUse, ResourceLimitExceeded, ResourceNotFound], operationName: "UpdateDomain", })); -export type UpdateEndpointError = ResourceLimitExceeded | CommonErrors; +export type UpdateEndpointError = + | ResourceLimitExceeded + | EndpointConfigNotFound + | EndpointNotFound + | CommonErrors; /** * Deploys the `EndpointConfig` specified in the request to a new fleet of instances. SageMaker shifts endpoint traffic to the new instances with the updated endpoint configuration and then deletes the old instances using the previous `EndpointConfig` (there is no availability loss). For more information about how to control the update and traffic shifting process, see Update models in production. * @@ -46540,7 +46608,7 @@ export const updateEndpoint: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: UpdateEndpointInput, output: UpdateEndpointOutput, - errors: [ResourceLimitExceeded], + errors: [ResourceLimitExceeded, EndpointConfigNotFound, EndpointNotFound], operationName: "UpdateEndpoint", })); export type UpdateEndpointWeightsAndCapacitiesError = diff --git a/packages/aws/src/services/schemas.ts b/packages/aws/src/services/schemas.ts index 55a3c53c82..9475e1fbc2 100644 --- a/packages/aws/src/services/schemas.ts +++ b/packages/aws/src/services/schemas.ts @@ -1402,42 +1402,52 @@ export const UpdateSchemaResponse = /*@__PURE__*/ S.suspend(() => export class BadRequestException extends S.TaggedErrorClass()( "BadRequestException", { Code: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { Code: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ForbiddenException extends S.TaggedErrorClass()( "ForbiddenException", { Code: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class InternalServerErrorException extends S.TaggedErrorClass()( "InternalServerErrorException", { Code: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class ServiceUnavailableException extends S.TaggedErrorClass()( "ServiceUnavailableException", { Code: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(503), ).pipe(C.withServerError) {} export class UnauthorizedException extends S.TaggedErrorClass()( "UnauthorizedException", { Code: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(401), ).pipe(C.withAuthError) {} export class NotFoundException extends S.TaggedErrorClass()( "NotFoundException", { Code: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class TooManyRequestsException extends S.TaggedErrorClass()( "TooManyRequestsException", { Code: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class GoneException extends S.TaggedErrorClass()( "GoneException", { Code: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(410), ).pipe(C.withBadRequestError) {} export class PreconditionFailedException extends S.TaggedErrorClass()( "PreconditionFailedException", { Code: S.optional(S.String), Message: S.optional(S.String) }, + T.HttpError(412), ) {} //# Operations @@ -2130,6 +2140,7 @@ export type PutCodeBindingError = | NotFoundException | TooManyRequestsException | UnauthorizedException + | ConflictException | CommonErrors; /** * Put code binding URI @@ -2150,6 +2161,7 @@ export const putCodeBinding: API.OperationMethod< NotFoundException, TooManyRequestsException, UnauthorizedException, + ConflictException, ], operationName: "PutCodeBinding", })); diff --git a/packages/aws/src/services/securitylake.ts b/packages/aws/src/services/securitylake.ts index b9f8795129..c052a47e13 100644 --- a/packages/aws/src/services/securitylake.ts +++ b/packages/aws/src/services/securitylake.ts @@ -1,4 +1,5 @@ import * as HttpClient from "effect/unstable/http/HttpClient"; +import * as redacted from "effect/Redacted"; import * as S from "@distilled.cloud/core/schema"; import * as stream from "effect/Stream"; import * as API from "../client/api.ts"; @@ -7,6 +8,7 @@ import * as C from "../category.ts"; import type { Credentials } from "../credentials.ts"; import type { CommonErrors } from "../errors.ts"; import type { Region as Rgn } from "../region.ts"; +import { SensitiveString } from "../sensitive.ts"; const svc = T.AwsApiService({ sdkId: "SecurityLake", serviceShapeName: "SecurityLake", @@ -1352,7 +1354,7 @@ export const HttpMethod = /*@__PURE__*/ S.String; export interface HttpsNotificationConfiguration { endpoint: string; authorizationApiKeyName?: string; - authorizationApiKeyValue?: string; + authorizationApiKeyValue?: string | redacted.Redacted; httpMethod?: HttpMethod; targetRoleArn: string; } @@ -1361,7 +1363,7 @@ export const HttpsNotificationConfiguration = S.Struct({ endpoint: S.String, authorizationApiKeyName: S.optional(S.String), - authorizationApiKeyValue: S.optional(S.String), + authorizationApiKeyValue: S.optional(SensitiveString), httpMethod: S.optional(HttpMethod), targetRoleArn: S.String, }), @@ -1480,10 +1482,12 @@ export const UpdateSubscriberNotificationResponse = export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.optional(S.String), errorCode: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class BadRequestException extends S.TaggedErrorClass()( "BadRequestException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", @@ -1492,11 +1496,12 @@ export class ConflictException extends S.TaggedErrorClass()( resourceName: S.optional(S.String), resourceType: S.optional(S.String), }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { message: S.optional(S.String) }, - T.Retryable(), + T.all(T.HttpError(500), T.Retryable()), ).pipe(C.withServerError, C.withRetryableError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", @@ -1505,6 +1510,7 @@ export class ResourceNotFoundException extends S.TaggedErrorClass()( "ThrottlingException", @@ -1514,8 +1520,12 @@ export class ThrottlingException extends S.TaggedErrorClass quotaCode: S.optional(S.String), retryAfterSeconds: S.optional(S.Number).pipe(T.HttpHeader("Retry-After")), }, - T.Retryable({ throttling: true }), + T.all(T.HttpError(429), T.Retryable({ throttling: true })), ).pipe(C.withThrottlingError, C.withRetryableError) {} +export class UnauthorizedException extends S.TaggedErrorClass()( + "UnauthorizedException", + {}, +).pipe(C.withAuthError) {} //# Operations export type CreateDataLakeExceptionSubscriptionError = @@ -1525,6 +1535,7 @@ export type CreateDataLakeExceptionSubscriptionError = | InternalServerException | ResourceNotFoundException | ThrottlingException + | UnauthorizedException | CommonErrors; /** * Creates the specified notification subscription in Amazon Security Lake for the organization @@ -1545,6 +1556,7 @@ export const createDataLakeExceptionSubscription: API.OperationMethod< InternalServerException, ResourceNotFoundException, ThrottlingException, + UnauthorizedException, ], operationName: "CreateDataLakeExceptionSubscription", })); @@ -1555,6 +1567,7 @@ export type DeleteDataLakeExceptionSubscriptionError = | InternalServerException | ResourceNotFoundException | ThrottlingException + | UnauthorizedException | CommonErrors; /** * Deletes the specified notification subscription in Amazon Security Lake for the organization @@ -1575,6 +1588,7 @@ export const deleteDataLakeExceptionSubscription: API.OperationMethod< InternalServerException, ResourceNotFoundException, ThrottlingException, + UnauthorizedException, ], operationName: "DeleteDataLakeExceptionSubscription", })); @@ -1616,6 +1630,7 @@ export type GetDataLakeExceptionSubscriptionError = | InternalServerException | ResourceNotFoundException | ThrottlingException + | UnauthorizedException | CommonErrors; /** * Retrieves the protocol and endpoint that were provided when subscribing to Amazon SNS topics for exception notifications. @@ -1635,6 +1650,7 @@ export const getDataLakeExceptionSubscription: API.OperationMethod< InternalServerException, ResourceNotFoundException, ThrottlingException, + UnauthorizedException, ], operationName: "GetDataLakeExceptionSubscription", })); @@ -1645,6 +1661,7 @@ export type ListDataLakeExceptionsError = | InternalServerException | ResourceNotFoundException | ThrottlingException + | UnauthorizedException | CommonErrors; /** * Lists the Amazon Security Lake exceptions that you can use to find the source of problems and @@ -1680,6 +1697,7 @@ export const listDataLakeExceptions: API.OperationMethod< InternalServerException, ResourceNotFoundException, ThrottlingException, + UnauthorizedException, ], operationName: "ListDataLakeExceptions", pagination: { @@ -1696,6 +1714,7 @@ export type ListTagsForResourceError = | InternalServerException | ResourceNotFoundException | ThrottlingException + | UnauthorizedException | CommonErrors; /** * Retrieves the tags (keys and values) that are associated with an Amazon Security Lake resource: a subscriber, or the data lake configuration for @@ -1716,6 +1735,7 @@ export const listTagsForResource: API.OperationMethod< InternalServerException, ResourceNotFoundException, ThrottlingException, + UnauthorizedException, ], operationName: "ListTagsForResource", })); @@ -1757,6 +1777,7 @@ export type TagResourceError = | InternalServerException | ResourceNotFoundException | ThrottlingException + | UnauthorizedException | CommonErrors; /** * Adds or updates one or more tags that are associated with an Amazon Security Lake resource: a subscriber, or the data lake configuration for your @@ -1783,6 +1804,7 @@ export const tagResource: API.OperationMethod< InternalServerException, ResourceNotFoundException, ThrottlingException, + UnauthorizedException, ], operationName: "TagResource", })); @@ -1793,6 +1815,7 @@ export type UntagResourceError = | InternalServerException | ResourceNotFoundException | ThrottlingException + | UnauthorizedException | CommonErrors; /** * Removes one or more tags (keys and values) from an Amazon Security Lake resource: a subscriber, or the data lake configuration for your @@ -1813,6 +1836,7 @@ export const untagResource: API.OperationMethod< InternalServerException, ResourceNotFoundException, ThrottlingException, + UnauthorizedException, ], operationName: "UntagResource", })); @@ -1823,6 +1847,7 @@ export type UpdateDataLakeExceptionSubscriptionError = | InternalServerException | ResourceNotFoundException | ThrottlingException + | UnauthorizedException | CommonErrors; /** * Updates the specified notification subscription in Amazon Security Lake for the organization @@ -1843,6 +1868,7 @@ export const updateDataLakeExceptionSubscription: API.OperationMethod< InternalServerException, ResourceNotFoundException, ThrottlingException, + UnauthorizedException, ], operationName: "UpdateDataLakeExceptionSubscription", })); @@ -1853,6 +1879,7 @@ export type CreateAwsLogSourceError = | InternalServerException | ResourceNotFoundException | ThrottlingException + | UnauthorizedException | CommonErrors; /** * Adds a natively supported Amazon Web Services service as an Amazon Security Lake source. Enables @@ -1879,6 +1906,7 @@ export const createAwsLogSource: API.OperationMethod< InternalServerException, ResourceNotFoundException, ThrottlingException, + UnauthorizedException, ], operationName: "CreateAwsLogSource", })); @@ -1889,6 +1917,7 @@ export type CreateCustomLogSourceError = | InternalServerException | ResourceNotFoundException | ThrottlingException + | UnauthorizedException | CommonErrors; /** * Adds a third-party custom source in Amazon Security Lake, from the Amazon Web Services Region @@ -1914,6 +1943,7 @@ export const createCustomLogSource: API.OperationMethod< InternalServerException, ResourceNotFoundException, ThrottlingException, + UnauthorizedException, ], operationName: "CreateCustomLogSource", })); @@ -1924,6 +1954,7 @@ export type CreateDataLakeError = | InternalServerException | ResourceNotFoundException | ThrottlingException + | UnauthorizedException | CommonErrors; /** * Initializes an Amazon Security Lake instance with the provided (or default) configuration. You @@ -1957,6 +1988,7 @@ export const createDataLake: API.OperationMethod< InternalServerException, ResourceNotFoundException, ThrottlingException, + UnauthorizedException, ], operationName: "CreateDataLake", })); @@ -2000,6 +2032,7 @@ export type DeleteAwsLogSourceError = | InternalServerException | ResourceNotFoundException | ThrottlingException + | UnauthorizedException | CommonErrors; /** * Removes a natively supported Amazon Web Services service as an Amazon Security Lake source. You @@ -2026,6 +2059,7 @@ export const deleteAwsLogSource: API.OperationMethod< InternalServerException, ResourceNotFoundException, ThrottlingException, + UnauthorizedException, ], operationName: "DeleteAwsLogSource", })); @@ -2036,6 +2070,7 @@ export type DeleteCustomLogSourceError = | InternalServerException | ResourceNotFoundException | ThrottlingException + | UnauthorizedException | CommonErrors; /** * Removes a custom log source from Amazon Security Lake, to stop sending data from the custom @@ -2056,6 +2091,7 @@ export const deleteCustomLogSource: API.OperationMethod< InternalServerException, ResourceNotFoundException, ThrottlingException, + UnauthorizedException, ], operationName: "DeleteCustomLogSource", })); @@ -2066,6 +2102,7 @@ export type DeleteDataLakeError = | InternalServerException | ResourceNotFoundException | ThrottlingException + | UnauthorizedException | CommonErrors; /** * When you disable Amazon Security Lake from your account, Security Lake is disabled in all Amazon Web Services Regions and it stops collecting data from your sources. Also, this API @@ -2093,6 +2130,7 @@ export const deleteDataLake: API.OperationMethod< InternalServerException, ResourceNotFoundException, ThrottlingException, + UnauthorizedException, ], operationName: "DeleteDataLake", })); @@ -2165,6 +2203,7 @@ export type GetDataLakeSourcesError = | InternalServerException | ResourceNotFoundException | ThrottlingException + | UnauthorizedException | CommonErrors; /** * Retrieves a snapshot of the current Region, including whether Amazon Security Lake is enabled @@ -2200,6 +2239,7 @@ export const getDataLakeSources: API.OperationMethod< InternalServerException, ResourceNotFoundException, ThrottlingException, + UnauthorizedException, ], operationName: "GetDataLakeSources", pagination: { @@ -2216,6 +2256,7 @@ export type ListDataLakesError = | InternalServerException | ResourceNotFoundException | ThrottlingException + | UnauthorizedException | CommonErrors; /** * Retrieves the Amazon Security Lake configuration object for the specified Amazon Web Services Regions. You can use this operation to determine whether @@ -2236,6 +2277,7 @@ export const listDataLakes: API.OperationMethod< InternalServerException, ResourceNotFoundException, ThrottlingException, + UnauthorizedException, ], operationName: "ListDataLakes", })); @@ -2246,6 +2288,7 @@ export type ListLogSourcesError = | InternalServerException | ResourceNotFoundException | ThrottlingException + | UnauthorizedException | CommonErrors; /** * Retrieves the log sources. @@ -2280,6 +2323,7 @@ export const listLogSources: API.OperationMethod< InternalServerException, ResourceNotFoundException, ThrottlingException, + UnauthorizedException, ], operationName: "ListLogSources", pagination: { @@ -2296,6 +2340,7 @@ export type UpdateDataLakeError = | InternalServerException | ResourceNotFoundException | ThrottlingException + | UnauthorizedException | CommonErrors; /** * You can use `UpdateDataLake` to specify where to store your security data, how it should @@ -2327,6 +2372,7 @@ export const updateDataLake: API.OperationMethod< InternalServerException, ResourceNotFoundException, ThrottlingException, + UnauthorizedException, ], operationName: "UpdateDataLake", })); @@ -2337,6 +2383,7 @@ export type CreateSubscriberError = | InternalServerException | ResourceNotFoundException | ThrottlingException + | UnauthorizedException | CommonErrors; /** * Creates a subscriber for accounts that are already enabled in Amazon Security Lake. You can @@ -2357,6 +2404,7 @@ export const createSubscriber: API.OperationMethod< InternalServerException, ResourceNotFoundException, ThrottlingException, + UnauthorizedException, ], operationName: "CreateSubscriber", })); @@ -2367,6 +2415,7 @@ export type GetSubscriberError = | InternalServerException | ResourceNotFoundException | ThrottlingException + | UnauthorizedException | CommonErrors; /** * Retrieves the subscription information for the specified subscription ID. You can get @@ -2387,6 +2436,7 @@ export const getSubscriber: API.OperationMethod< InternalServerException, ResourceNotFoundException, ThrottlingException, + UnauthorizedException, ], operationName: "GetSubscriber", })); @@ -2397,6 +2447,7 @@ export type UpdateSubscriberError = | InternalServerException | ResourceNotFoundException | ThrottlingException + | UnauthorizedException | CommonErrors; /** * Updates an existing subscription for the given Amazon Security Lake account ID. You can update @@ -2417,6 +2468,7 @@ export const updateSubscriber: API.OperationMethod< InternalServerException, ResourceNotFoundException, ThrottlingException, + UnauthorizedException, ], operationName: "UpdateSubscriber", })); @@ -2427,6 +2479,7 @@ export type DeleteSubscriberError = | InternalServerException | ResourceNotFoundException | ThrottlingException + | UnauthorizedException | CommonErrors; /** * Deletes the subscription permission and all notification settings for accounts that are @@ -2449,6 +2502,7 @@ export const deleteSubscriber: API.OperationMethod< InternalServerException, ResourceNotFoundException, ThrottlingException, + UnauthorizedException, ], operationName: "DeleteSubscriber", })); @@ -2459,6 +2513,7 @@ export type ListSubscribersError = | InternalServerException | ResourceNotFoundException | ThrottlingException + | UnauthorizedException | CommonErrors; /** * Lists all subscribers for the specific Amazon Security Lake account ID. You can retrieve a list @@ -2494,6 +2549,7 @@ export const listSubscribers: API.OperationMethod< InternalServerException, ResourceNotFoundException, ThrottlingException, + UnauthorizedException, ], operationName: "ListSubscribers", pagination: { @@ -2510,6 +2566,7 @@ export type CreateSubscriberNotificationError = | InternalServerException | ResourceNotFoundException | ThrottlingException + | UnauthorizedException | CommonErrors; /** * Notifies the subscriber when new data is written to the data lake for the sources that @@ -2531,6 +2588,7 @@ export const createSubscriberNotification: API.OperationMethod< InternalServerException, ResourceNotFoundException, ThrottlingException, + UnauthorizedException, ], operationName: "CreateSubscriberNotification", })); @@ -2541,6 +2599,7 @@ export type DeleteSubscriberNotificationError = | InternalServerException | ResourceNotFoundException | ThrottlingException + | UnauthorizedException | CommonErrors; /** * Deletes the specified subscription notification in Amazon Security Lake for the organization @@ -2561,6 +2620,7 @@ export const deleteSubscriberNotification: API.OperationMethod< InternalServerException, ResourceNotFoundException, ThrottlingException, + UnauthorizedException, ], operationName: "DeleteSubscriberNotification", })); @@ -2571,6 +2631,7 @@ export type UpdateSubscriberNotificationError = | InternalServerException | ResourceNotFoundException | ThrottlingException + | UnauthorizedException | CommonErrors; /** * Updates an existing notification method for the subscription (SQS or HTTPs endpoint) or @@ -2591,6 +2652,7 @@ export const updateSubscriberNotification: API.OperationMethod< InternalServerException, ResourceNotFoundException, ThrottlingException, + UnauthorizedException, ], operationName: "UpdateSubscriberNotification", })); diff --git a/packages/aws/src/services/service-catalog-appregistry.ts b/packages/aws/src/services/service-catalog-appregistry.ts index d774573920..d83ec60978 100644 --- a/packages/aws/src/services/service-catalog-appregistry.ts +++ b/packages/aws/src/services/service-catalog-appregistry.ts @@ -116,40 +116,38 @@ export interface AssociateAttributeGroupRequest { application: string; attributeGroup: string; } -export const AssociateAttributeGroupRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - application: S.String.pipe(T.HttpLabel("application")), - attributeGroup: S.String.pipe(T.HttpLabel("attributeGroup")), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/applications/{application}/attribute-groups/{attributeGroup}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const AssociateAttributeGroupRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + application: S.String.pipe(T.HttpLabel("application")), + attributeGroup: S.String.pipe(T.HttpLabel("attributeGroup")), + }).pipe( + T.all( + T.Http({ + method: "PUT", + uri: "/applications/{application}/attribute-groups/{attributeGroup}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "AssociateAttributeGroupRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "AssociateAttributeGroupRequest", +}) as any as S.Schema; export interface AssociateAttributeGroupResponse { applicationArn?: string; attributeGroupArn?: string; } -export const AssociateAttributeGroupResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - applicationArn: S.optional(S.String), - attributeGroupArn: S.optional(S.String), - }), - ).annotate({ - identifier: "AssociateAttributeGroupResponse", - }) as any as S.Schema; +export const AssociateAttributeGroupResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + applicationArn: S.optional(S.String), + attributeGroupArn: S.optional(S.String), + }), +).annotate({ + identifier: "AssociateAttributeGroupResponse", +}) as any as S.Schema; export type ResourceType = "CFN_STACK" | "RESOURCE_TAG_VALUE" | (string & {}); export const ResourceType = /*@__PURE__*/ S.String; export type AssociationOption = @@ -274,27 +272,26 @@ export interface CreateAttributeGroupRequest { tags?: { [key: string]: string | undefined }; clientToken: string; } -export const CreateAttributeGroupRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - name: S.String, - description: S.optional(S.String), - attributes: S.String, - tags: S.optional(Tags), - clientToken: S.String.pipe(T.IdempotencyToken()), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/attribute-groups" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateAttributeGroupRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + name: S.String, + description: S.optional(S.String), + attributes: S.String, + tags: S.optional(Tags), + clientToken: S.String.pipe(T.IdempotencyToken()), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/attribute-groups" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateAttributeGroupRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateAttributeGroupRequest", +}) as any as S.Schema; export interface AttributeGroup { id?: string; arn?: string; @@ -322,12 +319,11 @@ export const AttributeGroup = /*@__PURE__*/ S.suspend(() => export interface CreateAttributeGroupResponse { attributeGroup?: AttributeGroup; } -export const CreateAttributeGroupResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ attributeGroup: S.optional(AttributeGroup) }), - ).annotate({ - identifier: "CreateAttributeGroupResponse", - }) as any as S.Schema; +export const CreateAttributeGroupResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ attributeGroup: S.optional(AttributeGroup) }), +).annotate({ + identifier: "CreateAttributeGroupResponse", +}) as any as S.Schema; export interface DeleteApplicationRequest { application: string; } @@ -380,23 +376,22 @@ export const DeleteApplicationResponse = /*@__PURE__*/ S.suspend(() => export interface DeleteAttributeGroupRequest { attributeGroup: string; } -export const DeleteAttributeGroupRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - attributeGroup: S.String.pipe(T.HttpLabel("attributeGroup")), - }).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/attribute-groups/{attributeGroup}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteAttributeGroupRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + attributeGroup: S.String.pipe(T.HttpLabel("attributeGroup")), + }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/attribute-groups/{attributeGroup}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DeleteAttributeGroupRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DeleteAttributeGroupRequest", +}) as any as S.Schema; export interface AttributeGroupSummary { id?: string; arn?: string; @@ -426,90 +421,85 @@ export const AttributeGroupSummary = /*@__PURE__*/ S.suspend(() => export interface DeleteAttributeGroupResponse { attributeGroup?: AttributeGroupSummary; } -export const DeleteAttributeGroupResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ attributeGroup: S.optional(AttributeGroupSummary) }), - ).annotate({ - identifier: "DeleteAttributeGroupResponse", - }) as any as S.Schema; +export const DeleteAttributeGroupResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ attributeGroup: S.optional(AttributeGroupSummary) }), +).annotate({ + identifier: "DeleteAttributeGroupResponse", +}) as any as S.Schema; export interface DisassociateAttributeGroupRequest { application: string; attributeGroup: string; } -export const DisassociateAttributeGroupRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - application: S.String.pipe(T.HttpLabel("application")), - attributeGroup: S.String.pipe(T.HttpLabel("attributeGroup")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/applications/{application}/attribute-groups/{attributeGroup}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DisassociateAttributeGroupRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + application: S.String.pipe(T.HttpLabel("application")), + attributeGroup: S.String.pipe(T.HttpLabel("attributeGroup")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/applications/{application}/attribute-groups/{attributeGroup}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DisassociateAttributeGroupRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DisassociateAttributeGroupRequest", +}) as any as S.Schema; export interface DisassociateAttributeGroupResponse { applicationArn?: string; attributeGroupArn?: string; } -export const DisassociateAttributeGroupResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - applicationArn: S.optional(S.String), - attributeGroupArn: S.optional(S.String), - }), - ).annotate({ - identifier: "DisassociateAttributeGroupResponse", - }) as any as S.Schema; +export const DisassociateAttributeGroupResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + applicationArn: S.optional(S.String), + attributeGroupArn: S.optional(S.String), + }), +).annotate({ + identifier: "DisassociateAttributeGroupResponse", +}) as any as S.Schema; export interface DisassociateResourceRequest { application: string; resourceType: ResourceType; resource: string; } -export const DisassociateResourceRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - application: S.String.pipe(T.HttpLabel("application")), - resourceType: ResourceType.pipe(T.HttpLabel("resourceType")), - resource: S.String.pipe(T.HttpLabel("resource")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/applications/{application}/resources/{resourceType}/{resource}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const DisassociateResourceRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + application: S.String.pipe(T.HttpLabel("application")), + resourceType: ResourceType.pipe(T.HttpLabel("resourceType")), + resource: S.String.pipe(T.HttpLabel("resource")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/applications/{application}/resources/{resourceType}/{resource}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "DisassociateResourceRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "DisassociateResourceRequest", +}) as any as S.Schema; export interface DisassociateResourceResponse { applicationArn?: string; resourceArn?: string; } -export const DisassociateResourceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - applicationArn: S.optional(S.String), - resourceArn: S.optional(S.String), - }), - ).annotate({ - identifier: "DisassociateResourceResponse", - }) as any as S.Schema; +export const DisassociateResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + applicationArn: S.optional(S.String), + resourceArn: S.optional(S.String), + }), +).annotate({ + identifier: "DisassociateResourceResponse", +}) as any as S.Schema; export interface GetApplicationRequest { application: string; } @@ -608,33 +598,32 @@ export interface GetAssociatedResourceRequest { resourceTagStatus?: ResourceItemStatus[]; maxResults?: number; } -export const GetAssociatedResourceRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - application: S.String.pipe(T.HttpLabel("application")), - resourceType: ResourceType.pipe(T.HttpLabel("resourceType")), - resource: S.String.pipe(T.HttpLabel("resource")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - resourceTagStatus: S.optional(GetAssociatedResourceFilter).pipe( - T.HttpQuery("resourceTagStatus"), - ), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/applications/{application}/resources/{resourceType}/{resource}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetAssociatedResourceRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + application: S.String.pipe(T.HttpLabel("application")), + resourceType: ResourceType.pipe(T.HttpLabel("resourceType")), + resource: S.String.pipe(T.HttpLabel("resource")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + resourceTagStatus: S.optional(GetAssociatedResourceFilter).pipe( + T.HttpQuery("resourceTagStatus"), ), - ).annotate({ - identifier: "GetAssociatedResourceRequest", - }) as any as S.Schema; + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/applications/{application}/resources/{resourceType}/{resource}", + }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "GetAssociatedResourceRequest", +}) as any as S.Schema; export interface ResourceIntegrations { resourceGroup?: ResourceGroup; } @@ -704,16 +693,15 @@ export interface GetAssociatedResourceResponse { options?: AssociationOption[]; applicationTagResult?: ApplicationTagResult; } -export const GetAssociatedResourceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - resource: S.optional(Resource), - options: S.optional(Options), - applicationTagResult: S.optional(ApplicationTagResult), - }), - ).annotate({ - identifier: "GetAssociatedResourceResponse", - }) as any as S.Schema; +export const GetAssociatedResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + resource: S.optional(Resource), + options: S.optional(Options), + applicationTagResult: S.optional(ApplicationTagResult), + }), +).annotate({ + identifier: "GetAssociatedResourceResponse", +}) as any as S.Schema; export interface GetAttributeGroupRequest { attributeGroup: string; } @@ -766,7 +754,14 @@ export const GetAttributeGroupResponse = /*@__PURE__*/ S.suspend(() => export interface GetConfigurationRequest {} export const GetConfigurationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + T.all( + T.Http({ method: "GET", uri: "/configuration" }), + svc, + auth, + proto, + ver, + rules, + ), ), ).annotate({ identifier: "GetConfigurationRequest", @@ -835,8 +830,8 @@ export interface ListAssociatedAttributeGroupsRequest { nextToken?: string; maxResults?: number; } -export const ListAssociatedAttributeGroupsRequest = - /*@__PURE__*/ S.suspend(() => +export const ListAssociatedAttributeGroupsRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ application: S.String.pipe(T.HttpLabel("application")), nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), @@ -854,48 +849,47 @@ export const ListAssociatedAttributeGroupsRequest = rules, ), ), - ).annotate({ - identifier: "ListAssociatedAttributeGroupsRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListAssociatedAttributeGroupsRequest", +}) as any as S.Schema; export type AttributeGroupIds = string[]; export const AttributeGroupIds = /*@__PURE__*/ S.Array(S.String); export interface ListAssociatedAttributeGroupsResponse { attributeGroups?: string[]; nextToken?: string; } -export const ListAssociatedAttributeGroupsResponse = - /*@__PURE__*/ S.suspend(() => +export const ListAssociatedAttributeGroupsResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({ attributeGroups: S.optional(AttributeGroupIds), nextToken: S.optional(S.String), }), - ).annotate({ - identifier: "ListAssociatedAttributeGroupsResponse", - }) as any as S.Schema; +).annotate({ + identifier: "ListAssociatedAttributeGroupsResponse", +}) as any as S.Schema; export interface ListAssociatedResourcesRequest { application: string; nextToken?: string; maxResults?: number; } -export const ListAssociatedResourcesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - application: S.String.pipe(T.HttpLabel("application")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/applications/{application}/resources" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListAssociatedResourcesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + application: S.String.pipe(T.HttpLabel("application")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/applications/{application}/resources" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListAssociatedResourcesRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListAssociatedResourcesRequest", +}) as any as S.Schema; export interface ResourceDetails { tagValue?: string; } @@ -926,15 +920,14 @@ export interface ListAssociatedResourcesResponse { resources?: ResourceInfo[]; nextToken?: string; } -export const ListAssociatedResourcesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - resources: S.optional(Resources), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListAssociatedResourcesResponse", - }) as any as S.Schema; +export const ListAssociatedResourcesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + resources: S.optional(Resources), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListAssociatedResourcesResponse", +}) as any as S.Schema; export interface ListAttributeGroupsRequest { nextToken?: string; maxResults?: number; @@ -964,22 +957,21 @@ export interface ListAttributeGroupsResponse { attributeGroups?: AttributeGroupSummary[]; nextToken?: string; } -export const ListAttributeGroupsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - attributeGroups: S.optional(AttributeGroupSummaries), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListAttributeGroupsResponse", - }) as any as S.Schema; +export const ListAttributeGroupsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + attributeGroups: S.optional(AttributeGroupSummaries), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListAttributeGroupsResponse", +}) as any as S.Schema; export interface ListAttributeGroupsForApplicationRequest { application: string; nextToken?: string; maxResults?: number; } -export const ListAttributeGroupsForApplicationRequest = - /*@__PURE__*/ S.suspend(() => +export const ListAttributeGroupsForApplicationRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ application: S.String.pipe(T.HttpLabel("application")), nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), @@ -997,9 +989,9 @@ export const ListAttributeGroupsForApplicationRequest = rules, ), ), - ).annotate({ - identifier: "ListAttributeGroupsForApplicationRequest", - }) as any as S.Schema; +).annotate({ + identifier: "ListAttributeGroupsForApplicationRequest", +}) as any as S.Schema; export interface AttributeGroupDetails { id?: string; arn?: string; @@ -1053,10 +1045,11 @@ export const ListTagsForResourceRequest = /*@__PURE__*/ S.suspend(() => export interface ListTagsForResourceResponse { tags?: { [key: string]: string | undefined }; } -export const ListTagsForResourceResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({ tags: S.optional(Tags) })).annotate({ - identifier: "ListTagsForResourceResponse", - }) as any as S.Schema; +export const ListTagsForResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ tags: S.optional(Tags) }), +).annotate({ + identifier: "ListTagsForResourceResponse", +}) as any as S.Schema; export interface PutConfigurationRequest { configuration: AppRegistryConfiguration; } @@ -1210,61 +1203,64 @@ export interface UpdateAttributeGroupRequest { description?: string; attributes?: string; } -export const UpdateAttributeGroupRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - attributeGroup: S.String.pipe(T.HttpLabel("attributeGroup")), - name: S.optional(S.String), - description: S.optional(S.String), - attributes: S.optional(S.String), - }).pipe( - T.all( - T.Http({ method: "PATCH", uri: "/attribute-groups/{attributeGroup}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateAttributeGroupRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + attributeGroup: S.String.pipe(T.HttpLabel("attributeGroup")), + name: S.optional(S.String), + description: S.optional(S.String), + attributes: S.optional(S.String), + }).pipe( + T.all( + T.Http({ method: "PATCH", uri: "/attribute-groups/{attributeGroup}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateAttributeGroupRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateAttributeGroupRequest", +}) as any as S.Schema; export interface UpdateAttributeGroupResponse { attributeGroup?: AttributeGroup; } -export const UpdateAttributeGroupResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ attributeGroup: S.optional(AttributeGroup) }), - ).annotate({ - identifier: "UpdateAttributeGroupResponse", - }) as any as S.Schema; +export const UpdateAttributeGroupResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ attributeGroup: S.optional(AttributeGroup) }), +).annotate({ + identifier: "UpdateAttributeGroupResponse", +}) as any as S.Schema; //# Errors export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { message: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", { message: S.optional(S.String) }, + T.HttpError(402), ).pipe(C.withQuotaError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", - { message: S.String, serviceCode: S.optional(S.String) }, -).pipe(C.withThrottlingError) {} + { message: S.optional(S.String), serviceCode: S.optional(S.String) }, +).pipe(C.withThrottlingError, C.withRetryableError) {} //# Operations export type AssociateAttributeGroupError = @@ -1273,6 +1269,7 @@ export type AssociateAttributeGroupError = | ResourceNotFoundException | ServiceQuotaExceededException | ValidationException + | ThrottlingException | CommonErrors; /** * Associates an attribute group with an application to augment the application's metadata @@ -1293,6 +1290,7 @@ export const associateAttributeGroup: API.OperationMethod< ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, + ThrottlingException, ], operationName: "AssociateAttributeGroup", })); diff --git a/packages/aws/src/services/service-catalog.ts b/packages/aws/src/services/service-catalog.ts index 65f4403d45..cc67744c4f 100644 --- a/packages/aws/src/services/service-catalog.ts +++ b/packages/aws/src/services/service-catalog.ts @@ -4232,6 +4232,14 @@ export class ResourceInUseException extends S.TaggedErrorClass()( + "ProvisionedProductNotFound", + {}, + T.SyntheticError({ + from: "ValidationException", + message: { includes: "Provisioned product not found" }, + }), +) {} //# Operations export type AcceptPortfolioShareError = @@ -5439,6 +5447,7 @@ export type ExecuteProvisionedProductServiceActionError = | InvalidParametersException | InvalidStateException | ResourceNotFoundException + | ProvisionedProductNotFound | CommonErrors; /** * Executes a self-service action against a provisioned product. @@ -5455,6 +5464,7 @@ export const executeProvisionedProductServiceAction: API.OperationMethod< InvalidParametersException, InvalidStateException, ResourceNotFoundException, + ProvisionedProductNotFound, ], operationName: "ExecuteProvisionedProductServiceAction", })); diff --git a/packages/aws/src/services/servicediscovery.ts b/packages/aws/src/services/servicediscovery.ts index 34cdbfa55a..62a95fe0c0 100644 --- a/packages/aws/src/services/servicediscovery.ts +++ b/packages/aws/src/services/servicediscovery.ts @@ -155,34 +155,33 @@ export const CreateHttpNamespaceRequest = /*@__PURE__*/ S.suspend(() => export interface CreateHttpNamespaceResponse { OperationId?: string; } -export const CreateHttpNamespaceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ OperationId: S.optional(S.String) }), - ).annotate({ - identifier: "CreateHttpNamespaceResponse", - }) as any as S.Schema; +export const CreateHttpNamespaceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ OperationId: S.optional(S.String) }), +).annotate({ + identifier: "CreateHttpNamespaceResponse", +}) as any as S.Schema; export interface SOA { - TTL: number; + TTL?: number; } export const SOA = /*@__PURE__*/ S.suspend(() => - S.Struct({ TTL: S.Number }), + S.Struct({ TTL: S.optional(S.Number) }), ).annotate({ identifier: "SOA" }) as any as S.Schema; export interface PrivateDnsPropertiesMutable { SOA: SOA; } -export const PrivateDnsPropertiesMutable = - /*@__PURE__*/ S.suspend(() => S.Struct({ SOA: SOA })).annotate({ - identifier: "PrivateDnsPropertiesMutable", - }) as any as S.Schema; +export const PrivateDnsPropertiesMutable = /*@__PURE__*/ S.suspend(() => + S.Struct({ SOA: SOA }), +).annotate({ + identifier: "PrivateDnsPropertiesMutable", +}) as any as S.Schema; export interface PrivateDnsNamespaceProperties { DnsProperties: PrivateDnsPropertiesMutable; } -export const PrivateDnsNamespaceProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DnsProperties: PrivateDnsPropertiesMutable }), - ).annotate({ - identifier: "PrivateDnsNamespaceProperties", - }) as any as S.Schema; +export const PrivateDnsNamespaceProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ DnsProperties: PrivateDnsPropertiesMutable }), +).annotate({ + identifier: "PrivateDnsNamespaceProperties", +}) as any as S.Schema; export interface CreatePrivateDnsNamespaceRequest { Name: string; CreatorRequestId?: string; @@ -191,30 +190,28 @@ export interface CreatePrivateDnsNamespaceRequest { Tags?: Tag[]; Properties?: PrivateDnsNamespaceProperties; } -export const CreatePrivateDnsNamespaceRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Name: S.String, - CreatorRequestId: S.optional(S.String).pipe(T.IdempotencyToken()), - Description: S.optional(S.String), - Vpc: S.String, - Tags: S.optional(TagList), - Properties: S.optional(PrivateDnsNamespaceProperties), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "CreatePrivateDnsNamespaceRequest", - }) as any as S.Schema; +export const CreatePrivateDnsNamespaceRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.String, + CreatorRequestId: S.optional(S.String).pipe(T.IdempotencyToken()), + Description: S.optional(S.String), + Vpc: S.String, + Tags: S.optional(TagList), + Properties: S.optional(PrivateDnsNamespaceProperties), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "CreatePrivateDnsNamespaceRequest", +}) as any as S.Schema; export interface CreatePrivateDnsNamespaceResponse { OperationId?: string; } -export const CreatePrivateDnsNamespaceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ OperationId: S.optional(S.String) }), - ).annotate({ - identifier: "CreatePrivateDnsNamespaceResponse", - }) as any as S.Schema; +export const CreatePrivateDnsNamespaceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ OperationId: S.optional(S.String) }), +).annotate({ + identifier: "CreatePrivateDnsNamespaceResponse", +}) as any as S.Schema; export interface PublicDnsPropertiesMutable { SOA: SOA; } @@ -226,12 +223,11 @@ export const PublicDnsPropertiesMutable = /*@__PURE__*/ S.suspend(() => export interface PublicDnsNamespaceProperties { DnsProperties: PublicDnsPropertiesMutable; } -export const PublicDnsNamespaceProperties = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DnsProperties: PublicDnsPropertiesMutable }), - ).annotate({ - identifier: "PublicDnsNamespaceProperties", - }) as any as S.Schema; +export const PublicDnsNamespaceProperties = /*@__PURE__*/ S.suspend(() => + S.Struct({ DnsProperties: PublicDnsPropertiesMutable }), +).annotate({ + identifier: "PublicDnsNamespaceProperties", +}) as any as S.Schema; export interface CreatePublicDnsNamespaceRequest { Name: string; CreatorRequestId?: string; @@ -239,29 +235,27 @@ export interface CreatePublicDnsNamespaceRequest { Tags?: Tag[]; Properties?: PublicDnsNamespaceProperties; } -export const CreatePublicDnsNamespaceRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Name: S.String, - CreatorRequestId: S.optional(S.String).pipe(T.IdempotencyToken()), - Description: S.optional(S.String), - Tags: S.optional(TagList), - Properties: S.optional(PublicDnsNamespaceProperties), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "CreatePublicDnsNamespaceRequest", - }) as any as S.Schema; +export const CreatePublicDnsNamespaceRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.String, + CreatorRequestId: S.optional(S.String).pipe(T.IdempotencyToken()), + Description: S.optional(S.String), + Tags: S.optional(TagList), + Properties: S.optional(PublicDnsNamespaceProperties), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "CreatePublicDnsNamespaceRequest", +}) as any as S.Schema; export interface CreatePublicDnsNamespaceResponse { OperationId?: string; } -export const CreatePublicDnsNamespaceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ OperationId: S.optional(S.String) }), - ).annotate({ - identifier: "CreatePublicDnsNamespaceResponse", - }) as any as S.Schema; +export const CreatePublicDnsNamespaceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ OperationId: S.optional(S.String) }), +).annotate({ + identifier: "CreatePublicDnsNamespaceResponse", +}) as any as S.Schema; export type RoutingPolicy = "MULTIVALUE" | "WEIGHTED" | (string & {}); export const RoutingPolicy = /*@__PURE__*/ S.String; export type RecordType = "SRV" | "A" | "AAAA" | "CNAME" | (string & {}); @@ -278,13 +272,13 @@ export const DnsRecordList = /*@__PURE__*/ S.Array(DnsRecord); export interface DnsConfig { NamespaceId?: string; RoutingPolicy?: RoutingPolicy; - DnsRecords: DnsRecord[]; + DnsRecords?: DnsRecord[]; } export const DnsConfig = /*@__PURE__*/ S.suspend(() => S.Struct({ NamespaceId: S.optional(S.String), RoutingPolicy: S.optional(RoutingPolicy), - DnsRecords: DnsRecordList, + DnsRecords: S.optional(DnsRecordList), }), ).annotate({ identifier: "DnsConfig" }) as any as S.Schema; export type HealthCheckType = "HTTP" | "HTTPS" | "TCP" | (string & {}); @@ -425,19 +419,19 @@ export interface DeleteServiceAttributesRequest { ServiceId: string; Attributes: string[]; } -export const DeleteServiceAttributesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ServiceId: S.String, Attributes: ServiceAttributeKeyList }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "DeleteServiceAttributesRequest", - }) as any as S.Schema; +export const DeleteServiceAttributesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ ServiceId: S.String, Attributes: ServiceAttributeKeyList }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "DeleteServiceAttributesRequest", +}) as any as S.Schema; export interface DeleteServiceAttributesResponse {} -export const DeleteServiceAttributesResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteServiceAttributesResponse", - }) as any as S.Schema; +export const DeleteServiceAttributesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteServiceAttributesResponse", +}) as any as S.Schema; export interface DeregisterInstanceRequest { ServiceId: string; InstanceId: string; @@ -533,27 +527,25 @@ export interface DiscoverInstancesRevisionRequest { ServiceName: string; OwnerAccount?: string; } -export const DiscoverInstancesRevisionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - NamespaceName: S.String, - ServiceName: S.String, - OwnerAccount: S.optional(S.String), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "DiscoverInstancesRevisionRequest", - }) as any as S.Schema; +export const DiscoverInstancesRevisionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + NamespaceName: S.String, + ServiceName: S.String, + OwnerAccount: S.optional(S.String), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "DiscoverInstancesRevisionRequest", +}) as any as S.Schema; export interface DiscoverInstancesRevisionResponse { InstancesRevision?: number; } -export const DiscoverInstancesRevisionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ InstancesRevision: S.optional(S.Number) }), - ).annotate({ - identifier: "DiscoverInstancesRevisionResponse", - }) as any as S.Schema; +export const DiscoverInstancesRevisionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ InstancesRevision: S.optional(S.Number) }), +).annotate({ + identifier: "DiscoverInstancesRevisionResponse", +}) as any as S.Schema; export interface GetInstanceRequest { ServiceId: string; InstanceId: string; @@ -601,19 +593,18 @@ export interface GetInstancesHealthStatusRequest { MaxResults?: number; NextToken?: string; } -export const GetInstancesHealthStatusRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - ServiceId: S.String, - Instances: S.optional(InstanceIdList), - MaxResults: S.optional(S.Number), - NextToken: S.optional(S.String), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "GetInstancesHealthStatusRequest", - }) as any as S.Schema; +export const GetInstancesHealthStatusRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + ServiceId: S.String, + Instances: S.optional(InstanceIdList), + MaxResults: S.optional(S.Number), + NextToken: S.optional(S.String), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "GetInstancesHealthStatusRequest", +}) as any as S.Schema; export type InstanceHealthStatusMap = { [key: string]: HealthStatus | undefined; }; @@ -625,15 +616,14 @@ export interface GetInstancesHealthStatusResponse { Status?: { [key: string]: HealthStatus | undefined }; NextToken?: string; } -export const GetInstancesHealthStatusResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Status: S.optional(InstanceHealthStatusMap), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "GetInstancesHealthStatusResponse", - }) as any as S.Schema; +export const GetInstancesHealthStatusResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Status: S.optional(InstanceHealthStatusMap), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "GetInstancesHealthStatusResponse", +}) as any as S.Schema; export interface GetNamespaceRequest { Id: string; } @@ -800,14 +790,13 @@ export const GetServiceResponse = /*@__PURE__*/ S.suspend(() => export interface GetServiceAttributesRequest { ServiceId: string; } -export const GetServiceAttributesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ServiceId: S.String }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "GetServiceAttributesRequest", - }) as any as S.Schema; +export const GetServiceAttributesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ ServiceId: S.String }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "GetServiceAttributesRequest", +}) as any as S.Schema; export type ServiceAttributesMap = { [key: string]: string | undefined }; export const ServiceAttributesMap = /*@__PURE__*/ S.Record( S.String, @@ -830,12 +819,11 @@ export const ServiceAttributes = /*@__PURE__*/ S.suspend(() => export interface GetServiceAttributesResponse { ServiceAttributes?: ServiceAttributes; } -export const GetServiceAttributesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ServiceAttributes: S.optional(ServiceAttributes) }), - ).annotate({ - identifier: "GetServiceAttributesResponse", - }) as any as S.Schema; +export const GetServiceAttributesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ ServiceAttributes: S.optional(ServiceAttributes) }), +).annotate({ + identifier: "GetServiceAttributesResponse", +}) as any as S.Schema; export interface ListInstancesRequest { ServiceId: string; NextToken?: string; @@ -1147,12 +1135,11 @@ export const ListTagsForResourceRequest = /*@__PURE__*/ S.suspend(() => export interface ListTagsForResourceResponse { Tags?: Tag[]; } -export const ListTagsForResourceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Tags: S.optional(TagList) }), - ).annotate({ - identifier: "ListTagsForResourceResponse", - }) as any as S.Schema; +export const ListTagsForResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ Tags: S.optional(TagList) }), +).annotate({ + identifier: "ListTagsForResourceResponse", +}) as any as S.Schema; export interface RegisterInstanceRequest { ServiceId: string; InstanceId: string; @@ -1242,12 +1229,11 @@ export const UpdateHttpNamespaceRequest = /*@__PURE__*/ S.suspend(() => export interface UpdateHttpNamespaceResponse { OperationId?: string; } -export const UpdateHttpNamespaceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ OperationId: S.optional(S.String) }), - ).annotate({ - identifier: "UpdateHttpNamespaceResponse", - }) as any as S.Schema; +export const UpdateHttpNamespaceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ OperationId: S.optional(S.String) }), +).annotate({ + identifier: "UpdateHttpNamespaceResponse", +}) as any as S.Schema; export type CustomHealthStatus = "HEALTHY" | "UNHEALTHY" | (string & {}); export const CustomHealthStatus = /*@__PURE__*/ S.String; export interface UpdateInstanceCustomHealthStatusRequest { @@ -1255,8 +1241,8 @@ export interface UpdateInstanceCustomHealthStatusRequest { InstanceId: string; Status: CustomHealthStatus; } -export const UpdateInstanceCustomHealthStatusRequest = - /*@__PURE__*/ S.suspend(() => +export const UpdateInstanceCustomHealthStatusRequest = /*@__PURE__*/ S.suspend( + () => S.Struct({ ServiceId: S.String, InstanceId: S.String, @@ -1264,14 +1250,15 @@ export const UpdateInstanceCustomHealthStatusRequest = }).pipe( T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), ), - ).annotate({ - identifier: "UpdateInstanceCustomHealthStatusRequest", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateInstanceCustomHealthStatusRequest", +}) as any as S.Schema; export interface UpdateInstanceCustomHealthStatusResponse {} -export const UpdateInstanceCustomHealthStatusResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateInstanceCustomHealthStatusResponse", - }) as any as S.Schema; +export const UpdateInstanceCustomHealthStatusResponse = /*@__PURE__*/ S.suspend( + () => S.Struct({}), +).annotate({ + identifier: "UpdateInstanceCustomHealthStatusResponse", +}) as any as S.Schema; export interface SOAChange { TTL: number; } @@ -1281,19 +1268,19 @@ export const SOAChange = /*@__PURE__*/ S.suspend(() => export interface PrivateDnsPropertiesMutableChange { SOA: SOAChange; } -export const PrivateDnsPropertiesMutableChange = - /*@__PURE__*/ S.suspend(() => S.Struct({ SOA: SOAChange })).annotate({ - identifier: "PrivateDnsPropertiesMutableChange", - }) as any as S.Schema; +export const PrivateDnsPropertiesMutableChange = /*@__PURE__*/ S.suspend(() => + S.Struct({ SOA: SOAChange }), +).annotate({ + identifier: "PrivateDnsPropertiesMutableChange", +}) as any as S.Schema; export interface PrivateDnsNamespacePropertiesChange { DnsProperties: PrivateDnsPropertiesMutableChange; } -export const PrivateDnsNamespacePropertiesChange = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DnsProperties: PrivateDnsPropertiesMutableChange }), - ).annotate({ - identifier: "PrivateDnsNamespacePropertiesChange", - }) as any as S.Schema; +export const PrivateDnsNamespacePropertiesChange = /*@__PURE__*/ S.suspend(() => + S.Struct({ DnsProperties: PrivateDnsPropertiesMutableChange }), +).annotate({ + identifier: "PrivateDnsNamespacePropertiesChange", +}) as any as S.Schema; export interface PrivateDnsNamespaceChange { Description?: string; Properties?: PrivateDnsNamespacePropertiesChange; @@ -1311,43 +1298,41 @@ export interface UpdatePrivateDnsNamespaceRequest { UpdaterRequestId?: string; Namespace: PrivateDnsNamespaceChange; } -export const UpdatePrivateDnsNamespaceRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Id: S.String, - UpdaterRequestId: S.optional(S.String).pipe(T.IdempotencyToken()), - Namespace: PrivateDnsNamespaceChange, - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "UpdatePrivateDnsNamespaceRequest", - }) as any as S.Schema; +export const UpdatePrivateDnsNamespaceRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Id: S.String, + UpdaterRequestId: S.optional(S.String).pipe(T.IdempotencyToken()), + Namespace: PrivateDnsNamespaceChange, + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "UpdatePrivateDnsNamespaceRequest", +}) as any as S.Schema; export interface UpdatePrivateDnsNamespaceResponse { OperationId?: string; } -export const UpdatePrivateDnsNamespaceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ OperationId: S.optional(S.String) }), - ).annotate({ - identifier: "UpdatePrivateDnsNamespaceResponse", - }) as any as S.Schema; +export const UpdatePrivateDnsNamespaceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ OperationId: S.optional(S.String) }), +).annotate({ + identifier: "UpdatePrivateDnsNamespaceResponse", +}) as any as S.Schema; export interface PublicDnsPropertiesMutableChange { SOA: SOAChange; } -export const PublicDnsPropertiesMutableChange = - /*@__PURE__*/ S.suspend(() => S.Struct({ SOA: SOAChange })).annotate({ - identifier: "PublicDnsPropertiesMutableChange", - }) as any as S.Schema; +export const PublicDnsPropertiesMutableChange = /*@__PURE__*/ S.suspend(() => + S.Struct({ SOA: SOAChange }), +).annotate({ + identifier: "PublicDnsPropertiesMutableChange", +}) as any as S.Schema; export interface PublicDnsNamespacePropertiesChange { DnsProperties: PublicDnsPropertiesMutableChange; } -export const PublicDnsNamespacePropertiesChange = - /*@__PURE__*/ S.suspend(() => - S.Struct({ DnsProperties: PublicDnsPropertiesMutableChange }), - ).annotate({ - identifier: "PublicDnsNamespacePropertiesChange", - }) as any as S.Schema; +export const PublicDnsNamespacePropertiesChange = /*@__PURE__*/ S.suspend(() => + S.Struct({ DnsProperties: PublicDnsPropertiesMutableChange }), +).annotate({ + identifier: "PublicDnsNamespacePropertiesChange", +}) as any as S.Schema; export interface PublicDnsNamespaceChange { Description?: string; Properties?: PublicDnsNamespacePropertiesChange; @@ -1365,27 +1350,25 @@ export interface UpdatePublicDnsNamespaceRequest { UpdaterRequestId?: string; Namespace: PublicDnsNamespaceChange; } -export const UpdatePublicDnsNamespaceRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Id: S.String, - UpdaterRequestId: S.optional(S.String).pipe(T.IdempotencyToken()), - Namespace: PublicDnsNamespaceChange, - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "UpdatePublicDnsNamespaceRequest", - }) as any as S.Schema; +export const UpdatePublicDnsNamespaceRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Id: S.String, + UpdaterRequestId: S.optional(S.String).pipe(T.IdempotencyToken()), + Namespace: PublicDnsNamespaceChange, + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "UpdatePublicDnsNamespaceRequest", +}) as any as S.Schema; export interface UpdatePublicDnsNamespaceResponse { OperationId?: string; } -export const UpdatePublicDnsNamespaceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ OperationId: S.optional(S.String) }), - ).annotate({ - identifier: "UpdatePublicDnsNamespaceResponse", - }) as any as S.Schema; +export const UpdatePublicDnsNamespaceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ OperationId: S.optional(S.String) }), +).annotate({ + identifier: "UpdatePublicDnsNamespaceResponse", +}) as any as S.Schema; export interface DnsConfigChange { DnsRecords: DnsRecord[]; } @@ -1429,28 +1412,30 @@ export interface UpdateServiceAttributesRequest { ServiceId: string; Attributes: { [key: string]: string | undefined }; } -export const UpdateServiceAttributesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ServiceId: S.String, Attributes: ServiceAttributesMap }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "UpdateServiceAttributesRequest", - }) as any as S.Schema; +export const UpdateServiceAttributesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ ServiceId: S.String, Attributes: ServiceAttributesMap }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "UpdateServiceAttributesRequest", +}) as any as S.Schema; export interface UpdateServiceAttributesResponse {} -export const UpdateServiceAttributesResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateServiceAttributesResponse", - }) as any as S.Schema; +export const UpdateServiceAttributesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "UpdateServiceAttributesResponse", +}) as any as S.Schema; //# Errors export class DuplicateRequest extends S.TaggedErrorClass()( "DuplicateRequest", { Message: S.optional(S.String), DuplicateOperationId: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class InvalidInput extends S.TaggedErrorClass()( "InvalidInput", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class NamespaceAlreadyExists extends S.TaggedErrorClass()( "NamespaceAlreadyExists", @@ -1459,18 +1444,22 @@ export class NamespaceAlreadyExists extends S.TaggedErrorClass()( "ResourceLimitExceeded", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError, C.withThrottlingError) {} export class TooManyTagsException extends S.TaggedErrorClass()( "TooManyTagsException", { Message: S.optional(S.String), ResourceName: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class NamespaceNotFound extends S.TaggedErrorClass()( "NamespaceNotFound", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ServiceAlreadyExists extends S.TaggedErrorClass()( "ServiceAlreadyExists", @@ -1480,38 +1469,47 @@ export class ServiceAlreadyExists extends S.TaggedErrorClass()( "ResourceInUse", { Message: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError, C.withDependencyViolationError) {} export class ServiceNotFound extends S.TaggedErrorClass()( "ServiceNotFound", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class InstanceNotFound extends S.TaggedErrorClass()( "InstanceNotFound", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class RequestLimitExceeded extends S.TaggedErrorClass()( "RequestLimitExceeded", { Message: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class OperationNotFound extends S.TaggedErrorClass()( "OperationNotFound", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class CustomHealthNotFound extends S.TaggedErrorClass()( "CustomHealthNotFound", { Message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ServiceAttributesLimitExceededException extends S.TaggedErrorClass()( "ServiceAttributesLimitExceededException", { Message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} //# Operations @@ -1780,6 +1778,7 @@ export const discoverInstances: API.OperationMethod< ServiceNotFound, ], operationName: "DiscoverInstances", + endpointHostPrefix: "data-", })); export type DiscoverInstancesRevisionError = | InvalidInput @@ -1805,6 +1804,7 @@ export const discoverInstancesRevision: API.OperationMethod< ServiceNotFound, ], operationName: "DiscoverInstancesRevision", + endpointHostPrefix: "data-", })); export type GetInstanceError = | InstanceNotFound diff --git a/packages/aws/src/services/sesv2.ts b/packages/aws/src/services/sesv2.ts index 2e9f9bb6ca..2a56cf9fdc 100644 --- a/packages/aws/src/services/sesv2.ts +++ b/packages/aws/src/services/sesv2.ts @@ -3004,15 +3004,15 @@ export type BehaviorOnMxFailure = | (string & {}); export const BehaviorOnMxFailure = /*@__PURE__*/ S.String; export interface MailFromAttributes { - MailFromDomain: string; - MailFromDomainStatus: MailFromDomainStatus; - BehaviorOnMxFailure: BehaviorOnMxFailure; + MailFromDomain?: string; + MailFromDomainStatus?: MailFromDomainStatus; + BehaviorOnMxFailure?: BehaviorOnMxFailure; } export const MailFromAttributes = /*@__PURE__*/ S.suspend(() => S.Struct({ - MailFromDomain: S.String, - MailFromDomainStatus: MailFromDomainStatus, - BehaviorOnMxFailure: BehaviorOnMxFailure, + MailFromDomain: S.optional(S.String), + MailFromDomainStatus: S.optional(MailFromDomainStatus), + BehaviorOnMxFailure: S.optional(BehaviorOnMxFailure), }), ).annotate({ identifier: "MailFromAttributes", diff --git a/packages/aws/src/services/sfn.ts b/packages/aws/src/services/sfn.ts index c840091285..1ff517f249 100644 --- a/packages/aws/src/services/sfn.ts +++ b/packages/aws/src/services/sfn.ts @@ -4072,6 +4072,7 @@ export const startSyncExecution: API.OperationMethod< StateMachineTypeNotSupported, ], operationName: "StartSyncExecution", + endpointHostPrefix: "sync-", })); export type StopExecutionError = | ExecutionDoesNotExist @@ -4185,6 +4186,7 @@ export const testState: API.OperationMethod< ValidationException, ], operationName: "TestState", + endpointHostPrefix: "sync-", })); export type UntagResourceError = InvalidArn | ResourceNotFound | CommonErrors; /** diff --git a/packages/aws/src/services/shield.ts b/packages/aws/src/services/shield.ts index 89db0e43e8..6ed1cd9ec7 100644 --- a/packages/aws/src/services/shield.ts +++ b/packages/aws/src/services/shield.ts @@ -1643,6 +1643,14 @@ export class ResourceAlreadyExistsException extends S.TaggedErrorClass()( + "SubscriptionNotFound", + { message: S.optional(S.String), resourceType: S.optional(S.String) }, + T.SyntheticError({ + from: "ResourceNotFoundException", + message: "The subscription does not exist.", + }), +).pipe(C.withNotFoundError) {} export class LockedSubscriptionException extends S.TaggedErrorClass()( "LockedSubscriptionException", { message: S.optional(S.String) }, @@ -1805,6 +1813,7 @@ export type CreateProtectionError = | OptimisticLockException | ResourceAlreadyExistsException | ResourceNotFoundException + | SubscriptionNotFound | CommonErrors; /** * Enables Shield Advanced for a specific Amazon Web Services resource. The resource can be an Amazon CloudFront distribution, Amazon Route 53 hosted zone, Global Accelerator standard accelerator, Elastic IP Address, Application Load Balancer, or a Classic Load Balancer. You can protect Amazon EC2 instances and Network Load Balancers by association with protected Amazon EC2 Elastic IP addresses. @@ -1832,6 +1841,7 @@ export const createProtection: API.OperationMethod< OptimisticLockException, ResourceAlreadyExistsException, ResourceNotFoundException, + SubscriptionNotFound, ], operationName: "CreateProtection", })); @@ -1842,6 +1852,7 @@ export type CreateProtectionGroupError = | OptimisticLockException | ResourceAlreadyExistsException | ResourceNotFoundException + | SubscriptionNotFound | CommonErrors; /** * Creates a grouping of protected resources so they can be handled as a collective. This resource grouping improves the accuracy of detection and reduces false positives. @@ -1861,6 +1872,7 @@ export const createProtectionGroup: API.OperationMethod< OptimisticLockException, ResourceAlreadyExistsException, ResourceNotFoundException, + SubscriptionNotFound, ], operationName: "CreateProtectionGroup", })); @@ -1891,6 +1903,7 @@ export type DeleteProtectionError = | InternalErrorException | OptimisticLockException | ResourceNotFoundException + | SubscriptionNotFound | CommonErrors; /** * Deletes an Shield Advanced Protection. @@ -1907,6 +1920,7 @@ export const deleteProtection: API.OperationMethod< InternalErrorException, OptimisticLockException, ResourceNotFoundException, + SubscriptionNotFound, ], operationName: "DeleteProtection", })); @@ -1914,6 +1928,7 @@ export type DeleteProtectionGroupError = | InternalErrorException | OptimisticLockException | ResourceNotFoundException + | SubscriptionNotFound | CommonErrors; /** * Removes the specified protection group. @@ -1930,6 +1945,7 @@ export const deleteProtectionGroup: API.OperationMethod< InternalErrorException, OptimisticLockException, ResourceNotFoundException, + SubscriptionNotFound, ], operationName: "DeleteProtectionGroup", })); @@ -1937,6 +1953,7 @@ export type DeleteSubscriptionError = | InternalErrorException | LockedSubscriptionException | ResourceNotFoundException + | SubscriptionNotFound | CommonErrors; /** * Removes Shield Advanced from an account. Shield Advanced requires a 1-year subscription commitment. You cannot delete a subscription prior to the completion of that commitment. @@ -1953,6 +1970,7 @@ export const deleteSubscription: API.OperationMethod< InternalErrorException, LockedSubscriptionException, ResourceNotFoundException, + SubscriptionNotFound, ], operationName: "DeleteSubscription", })); @@ -2035,6 +2053,7 @@ export type DescribeProtectionError = | InternalErrorException | InvalidParameterException | ResourceNotFoundException + | SubscriptionNotFound | CommonErrors; /** * Lists the details of a Protection object. @@ -2051,12 +2070,14 @@ export const describeProtection: API.OperationMethod< InternalErrorException, InvalidParameterException, ResourceNotFoundException, + SubscriptionNotFound, ], operationName: "DescribeProtection", })); export type DescribeProtectionGroupError = | InternalErrorException | ResourceNotFoundException + | SubscriptionNotFound | CommonErrors; /** * Returns the specification for the specified protection group. @@ -2069,12 +2090,17 @@ export const describeProtectionGroup: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeProtectionGroupRequest, output: DescribeProtectionGroupResponse, - errors: [InternalErrorException, ResourceNotFoundException], + errors: [ + InternalErrorException, + ResourceNotFoundException, + SubscriptionNotFound, + ], operationName: "DescribeProtectionGroup", })); export type DescribeSubscriptionError = | InternalErrorException | ResourceNotFoundException + | SubscriptionNotFound | CommonErrors; /** * Provides details about the Shield Advanced subscription for an account. @@ -2087,7 +2113,11 @@ export const describeSubscription: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeSubscriptionRequest, output: DescribeSubscriptionResponse, - errors: [InternalErrorException, ResourceNotFoundException], + errors: [ + InternalErrorException, + ResourceNotFoundException, + SubscriptionNotFound, + ], operationName: "DescribeSubscription", })); export type DisableApplicationLayerAutomaticResponseError = @@ -2362,6 +2392,7 @@ export type ListProtectionGroupsError = | InternalErrorException | InvalidPaginationTokenException | ResourceNotFoundException + | SubscriptionNotFound | CommonErrors; /** * Retrieves ProtectionGroup objects for the account. You can retrieve all protection groups or you can provide @@ -2394,6 +2425,7 @@ export const listProtectionGroups: API.OperationMethod< InternalErrorException, InvalidPaginationTokenException, ResourceNotFoundException, + SubscriptionNotFound, ], operationName: "ListProtectionGroups", pagination: { @@ -2406,6 +2438,7 @@ export type ListProtectionsError = | InternalErrorException | InvalidPaginationTokenException | ResourceNotFoundException + | SubscriptionNotFound | CommonErrors; /** * Retrieves Protection objects for the account. You can retrieve all protections or you can provide @@ -2438,6 +2471,7 @@ export const listProtections: API.OperationMethod< InternalErrorException, InvalidPaginationTokenException, ResourceNotFoundException, + SubscriptionNotFound, ], operationName: "ListProtections", pagination: { @@ -2494,6 +2528,7 @@ export type ListTagsForResourceError = | InternalErrorException | InvalidResourceException | ResourceNotFoundException + | SubscriptionNotFound | CommonErrors; /** * Gets information about Amazon Web Services tags for a specified Amazon Resource Name (ARN) in Shield. @@ -2510,6 +2545,7 @@ export const listTagsForResource: API.OperationMethod< InternalErrorException, InvalidResourceException, ResourceNotFoundException, + SubscriptionNotFound, ], operationName: "ListTagsForResource", })); @@ -2518,6 +2554,7 @@ export type TagResourceError = | InvalidParameterException | InvalidResourceException | ResourceNotFoundException + | SubscriptionNotFound | CommonErrors; /** * Adds or updates tags for a resource in Shield. @@ -2535,6 +2572,7 @@ export const tagResource: API.OperationMethod< InvalidParameterException, InvalidResourceException, ResourceNotFoundException, + SubscriptionNotFound, ], operationName: "TagResource", })); @@ -2543,6 +2581,7 @@ export type UntagResourceError = | InvalidParameterException | InvalidResourceException | ResourceNotFoundException + | SubscriptionNotFound | CommonErrors; /** * Removes tags from a resource in Shield. @@ -2560,6 +2599,7 @@ export const untagResource: API.OperationMethod< InvalidParameterException, InvalidResourceException, ResourceNotFoundException, + SubscriptionNotFound, ], operationName: "UntagResource", })); @@ -2620,6 +2660,7 @@ export type UpdateProtectionGroupError = | InvalidParameterException | OptimisticLockException | ResourceNotFoundException + | SubscriptionNotFound | CommonErrors; /** * Updates an existing protection group. A protection group is a grouping of protected resources so they can be handled as a collective. This resource grouping improves the accuracy of detection and reduces false positives. @@ -2637,6 +2678,7 @@ export const updateProtectionGroup: API.OperationMethod< InvalidParameterException, OptimisticLockException, ResourceNotFoundException, + SubscriptionNotFound, ], operationName: "UpdateProtectionGroup", })); @@ -2646,6 +2688,7 @@ export type UpdateSubscriptionError = | LockedSubscriptionException | OptimisticLockException | ResourceNotFoundException + | SubscriptionNotFound | CommonErrors; /** * Updates the details of an existing subscription. Only enter values for parameters you want to change. Empty parameters are not updated. @@ -2667,6 +2710,7 @@ export const updateSubscription: API.OperationMethod< LockedSubscriptionException, OptimisticLockException, ResourceNotFoundException, + SubscriptionNotFound, ], operationName: "UpdateSubscription", })); diff --git a/packages/aws/src/services/signer.ts b/packages/aws/src/services/signer.ts index f87840b2d0..8a60959487 100644 --- a/packages/aws/src/services/signer.ts +++ b/packages/aws/src/services/signer.ts @@ -121,63 +121,61 @@ export interface AddProfilePermissionRequest { revisionId?: string; statementId: string; } -export const AddProfilePermissionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - profileName: S.String.pipe(T.HttpLabel("profileName")), - profileVersion: S.optional(S.String), - action: S.String, - principal: S.String, - revisionId: S.optional(S.String), - statementId: S.String, - }).pipe( - T.all( - T.Http({ - method: "POST", - uri: "/signing-profiles/{profileName}/permissions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const AddProfilePermissionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + profileName: S.String.pipe(T.HttpLabel("profileName")), + profileVersion: S.optional(S.String), + action: S.String, + principal: S.String, + revisionId: S.optional(S.String), + statementId: S.String, + }).pipe( + T.all( + T.Http({ + method: "POST", + uri: "/signing-profiles/{profileName}/permissions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "AddProfilePermissionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "AddProfilePermissionRequest", +}) as any as S.Schema; export interface AddProfilePermissionResponse { revisionId?: string; } -export const AddProfilePermissionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ revisionId: S.optional(S.String) }), - ).annotate({ - identifier: "AddProfilePermissionResponse", - }) as any as S.Schema; +export const AddProfilePermissionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ revisionId: S.optional(S.String) }), +).annotate({ + identifier: "AddProfilePermissionResponse", +}) as any as S.Schema; export interface CancelSigningProfileRequest { profileName: string; } -export const CancelSigningProfileRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ profileName: S.String.pipe(T.HttpLabel("profileName")) }).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/signing-profiles/{profileName}" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CancelSigningProfileRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ profileName: S.String.pipe(T.HttpLabel("profileName")) }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/signing-profiles/{profileName}" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CancelSigningProfileRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CancelSigningProfileRequest", +}) as any as S.Schema; export interface CancelSigningProfileResponse {} -export const CancelSigningProfileResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "CancelSigningProfileResponse", - }) as any as S.Schema; +export const CancelSigningProfileResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "CancelSigningProfileResponse", +}) as any as S.Schema; export interface DescribeSigningJobRequest { jobId: string; } @@ -210,10 +208,10 @@ export const Source = /*@__PURE__*/ S.suspend(() => S.Struct({ s3: S.optional(S3Source) }), ).annotate({ identifier: "Source" }) as any as S.Schema; export interface SigningMaterial { - certificateArn: string; + certificateArn?: string; } export const SigningMaterial = /*@__PURE__*/ S.suspend(() => - S.Struct({ certificateArn: S.String }), + S.Struct({ certificateArn: S.optional(S.String) }), ).annotate({ identifier: "SigningMaterial", }) as any as S.Schema; @@ -225,15 +223,14 @@ export interface SigningConfigurationOverrides { encryptionAlgorithm?: EncryptionAlgorithm; hashAlgorithm?: HashAlgorithm; } -export const SigningConfigurationOverrides = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - encryptionAlgorithm: S.optional(EncryptionAlgorithm), - hashAlgorithm: S.optional(HashAlgorithm), - }), - ).annotate({ - identifier: "SigningConfigurationOverrides", - }) as any as S.Schema; +export const SigningConfigurationOverrides = /*@__PURE__*/ S.suspend(() => + S.Struct({ + encryptionAlgorithm: S.optional(EncryptionAlgorithm), + hashAlgorithm: S.optional(HashAlgorithm), + }), +).annotate({ + identifier: "SigningConfigurationOverrides", +}) as any as S.Schema; export type ImageFormat = | "JSON" | "JSONEmbedded" @@ -374,12 +371,11 @@ export const RevokedEntities = /*@__PURE__*/ S.Array(S.String); export interface GetRevocationStatusResponse { revokedEntities?: string[]; } -export const GetRevocationStatusResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ revokedEntities: S.optional(RevokedEntities) }), - ).annotate({ - identifier: "GetRevocationStatusResponse", - }) as any as S.Schema; +export const GetRevocationStatusResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ revokedEntities: S.optional(RevokedEntities) }), +).annotate({ + identifier: "GetRevocationStatusResponse", +}) as any as S.Schema; export interface GetSigningPlatformRequest { platformId: string; } @@ -499,18 +495,17 @@ export interface SigningProfileRevocationRecord { revokedAt?: Date; revokedBy?: string; } -export const SigningProfileRevocationRecord = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - revocationEffectiveFrom: S.optional( - S.Date.pipe(T.TimestampFormat("epoch-seconds")), - ), - revokedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), - revokedBy: S.optional(S.String), - }), - ).annotate({ - identifier: "SigningProfileRevocationRecord", - }) as any as S.Schema; +export const SigningProfileRevocationRecord = /*@__PURE__*/ S.suspend(() => + S.Struct({ + revocationEffectiveFrom: S.optional( + S.Date.pipe(T.TimestampFormat("epoch-seconds")), + ), + revokedAt: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))), + revokedBy: S.optional(S.String), + }), +).annotate({ + identifier: "SigningProfileRevocationRecord", +}) as any as S.Schema; export type ValidityType = "DAYS" | "MONTHS" | "YEARS" | (string & {}); export const ValidityType = /*@__PURE__*/ S.String; export interface SignatureValidityPeriod { @@ -573,27 +568,26 @@ export interface ListProfilePermissionsRequest { profileName: string; nextToken?: string; } -export const ListProfilePermissionsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - profileName: S.String.pipe(T.HttpLabel("profileName")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - }).pipe( - T.all( - T.Http({ - method: "GET", - uri: "/signing-profiles/{profileName}/permissions", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListProfilePermissionsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + profileName: S.String.pipe(T.HttpLabel("profileName")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + }).pipe( + T.all( + T.Http({ + method: "GET", + uri: "/signing-profiles/{profileName}/permissions", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListProfilePermissionsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListProfilePermissionsRequest", +}) as any as S.Schema; export interface Permission { action?: string; principal?: string; @@ -616,17 +610,16 @@ export interface ListProfilePermissionsResponse { permissions?: Permission[]; nextToken?: string; } -export const ListProfilePermissionsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - revisionId: S.optional(S.String), - policySizeBytes: S.optional(S.Number), - permissions: S.optional(Permissions), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListProfilePermissionsResponse", - }) as any as S.Schema; +export const ListProfilePermissionsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + revisionId: S.optional(S.String), + policySizeBytes: S.optional(S.Number), + permissions: S.optional(Permissions), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListProfilePermissionsResponse", +}) as any as S.Schema; export interface ListSigningJobsRequest { status?: SigningStatus; platformId?: string; @@ -709,10 +702,7 @@ export interface ListSigningJobsResponse { nextToken?: string; } export const ListSigningJobsResponse = /*@__PURE__*/ S.suspend(() => - S.Struct({ - jobs: S.optional(SigningJobs), - nextToken: S.optional(S.String), - }), + S.Struct({ jobs: S.optional(SigningJobs), nextToken: S.optional(S.String) }), ).annotate({ identifier: "ListSigningJobsResponse", }) as any as S.Schema; @@ -723,27 +713,26 @@ export interface ListSigningPlatformsRequest { maxResults?: number; nextToken?: string; } -export const ListSigningPlatformsRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - category: S.optional(S.String).pipe(T.HttpQuery("category")), - partner: S.optional(S.String).pipe(T.HttpQuery("partner")), - target: S.optional(S.String).pipe(T.HttpQuery("target")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/signing-platforms" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListSigningPlatformsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + category: S.optional(S.String).pipe(T.HttpQuery("category")), + partner: S.optional(S.String).pipe(T.HttpQuery("partner")), + target: S.optional(S.String).pipe(T.HttpQuery("target")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/signing-platforms" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListSigningPlatformsRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListSigningPlatformsRequest", +}) as any as S.Schema; export interface SigningPlatform { platformId?: string; displayName?: string; @@ -776,15 +765,14 @@ export interface ListSigningPlatformsResponse { platforms?: SigningPlatform[]; nextToken?: string; } -export const ListSigningPlatformsResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - platforms: S.optional(SigningPlatforms), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListSigningPlatformsResponse", - }) as any as S.Schema; +export const ListSigningPlatformsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + platforms: S.optional(SigningPlatforms), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListSigningPlatformsResponse", +}) as any as S.Schema; export type Statuses = SigningProfileStatus[]; export const Statuses = /*@__PURE__*/ S.Array(SigningProfileStatus); export interface ListSigningProfilesRequest { @@ -848,15 +836,14 @@ export interface ListSigningProfilesResponse { profiles?: SigningProfile[]; nextToken?: string; } -export const ListSigningProfilesResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - profiles: S.optional(SigningProfiles), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListSigningProfilesResponse", - }) as any as S.Schema; +export const ListSigningProfilesResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + profiles: S.optional(SigningProfiles), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListSigningProfilesResponse", +}) as any as S.Schema; export interface ListTagsForResourceRequest { resourceArn: string; } @@ -877,12 +864,11 @@ export const ListTagsForResourceRequest = /*@__PURE__*/ S.suspend(() => export interface ListTagsForResourceResponse { tags?: { [key: string]: string | undefined }; } -export const ListTagsForResourceResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ tags: S.optional(TagMap) }), - ).annotate({ - identifier: "ListTagsForResourceResponse", - }) as any as S.Schema; +export const ListTagsForResourceResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ tags: S.optional(TagMap) }), +).annotate({ + identifier: "ListTagsForResourceResponse", +}) as any as S.Schema; export interface PutSigningProfileRequest { profileName: string; signingMaterial?: SigningMaterial; @@ -933,37 +919,35 @@ export interface RemoveProfilePermissionRequest { revisionId: string; statementId: string; } -export const RemoveProfilePermissionRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - profileName: S.String.pipe(T.HttpLabel("profileName")), - revisionId: S.String.pipe(T.HttpQuery("revisionId")), - statementId: S.String.pipe(T.HttpLabel("statementId")), - }).pipe( - T.all( - T.Http({ - method: "DELETE", - uri: "/signing-profiles/{profileName}/permissions/{statementId}", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const RemoveProfilePermissionRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + profileName: S.String.pipe(T.HttpLabel("profileName")), + revisionId: S.String.pipe(T.HttpQuery("revisionId")), + statementId: S.String.pipe(T.HttpLabel("statementId")), + }).pipe( + T.all( + T.Http({ + method: "DELETE", + uri: "/signing-profiles/{profileName}/permissions/{statementId}", + }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "RemoveProfilePermissionRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "RemoveProfilePermissionRequest", +}) as any as S.Schema; export interface RemoveProfilePermissionResponse { revisionId?: string; } -export const RemoveProfilePermissionResponse = - /*@__PURE__*/ S.suspend(() => - S.Struct({ revisionId: S.optional(S.String) }), - ).annotate({ - identifier: "RemoveProfilePermissionResponse", - }) as any as S.Schema; +export const RemoveProfilePermissionResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ revisionId: S.optional(S.String) }), +).annotate({ + identifier: "RemoveProfilePermissionResponse", +}) as any as S.Schema; export interface RevokeSignatureRequest { jobId: string; jobOwner?: string; @@ -999,34 +983,31 @@ export interface RevokeSigningProfileRequest { reason: string; effectiveTime: Date; } -export const RevokeSigningProfileRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - profileName: S.String.pipe(T.HttpLabel("profileName")), - profileVersion: S.String, - reason: S.String, - effectiveTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - }).pipe( - T.all( - T.Http({ - method: "PUT", - uri: "/signing-profiles/{profileName}/revoke", - }), - svc, - auth, - proto, - ver, - rules, - ), +export const RevokeSigningProfileRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + profileName: S.String.pipe(T.HttpLabel("profileName")), + profileVersion: S.String, + reason: S.String, + effectiveTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + }).pipe( + T.all( + T.Http({ method: "PUT", uri: "/signing-profiles/{profileName}/revoke" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "RevokeSigningProfileRequest", - }) as any as S.Schema; + ), +).annotate({ + identifier: "RevokeSigningProfileRequest", +}) as any as S.Schema; export interface RevokeSigningProfileResponse {} -export const RevokeSigningProfileResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "RevokeSigningProfileResponse", - }) as any as S.Schema; +export const RevokeSigningProfileResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "RevokeSigningProfileResponse", +}) as any as S.Schema; export interface SignPayloadRequest { profileName: string; profileOwner?: string; @@ -1183,42 +1164,60 @@ export const UntagResourceResponse = /*@__PURE__*/ S.suspend(() => export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.optional(S.String), code: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { message: S.optional(S.String), code: S.optional(S.String) }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class InternalServiceErrorException extends S.TaggedErrorClass()( "InternalServiceErrorException", { message: S.optional(S.String), code: S.optional(S.String) }, + T.HttpError(500), ).pipe(C.withServerError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.optional(S.String), code: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ServiceLimitExceededException extends S.TaggedErrorClass()( "ServiceLimitExceededException", { message: S.optional(S.String), code: S.optional(S.String) }, + T.HttpError(402), ).pipe(C.withQuotaError) {} export class TooManyRequestsException extends S.TaggedErrorClass()( "TooManyRequestsException", { message: S.optional(S.String), code: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", { message: S.optional(S.String), code: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class BadRequestException extends S.TaggedErrorClass()( "BadRequestException", { message: S.optional(S.String), code: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class NotFoundException extends S.TaggedErrorClass()( "NotFoundException", { message: S.optional(S.String), code: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} +export class SigningProfileAlreadyExists extends S.TaggedErrorClass()( + "SigningProfileAlreadyExists", + { message: S.optional(S.String), code: S.optional(S.String) }, + T.SyntheticError({ + from: "ValidationException", + message: { includes: "already exists" }, + }), +).pipe(C.withAlreadyExistsError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", { message: S.optional(S.String), code: S.optional(S.String) }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} //# Operations @@ -1332,6 +1331,7 @@ export const getRevocationStatus: API.OperationMethod< ValidationException, ], operationName: "GetRevocationStatus", + endpointHostPrefix: "data-", })); export type GetSigningPlatformError = | AccessDeniedException @@ -1593,6 +1593,7 @@ export type PutSigningProfileError = | ResourceNotFoundException | TooManyRequestsException | ValidationException + | SigningProfileAlreadyExists | CommonErrors; /** * Creates a signing profile. A signing profile is a code-signing template that can be used to @@ -1612,6 +1613,7 @@ export const putSigningProfile: API.OperationMethod< ResourceNotFoundException, TooManyRequestsException, ValidationException, + SigningProfileAlreadyExists, ], operationName: "PutSigningProfile", })); diff --git a/packages/aws/src/services/simpledb.ts b/packages/aws/src/services/simpledb.ts new file mode 100644 index 0000000000..2ad811896a --- /dev/null +++ b/packages/aws/src/services/simpledb.ts @@ -0,0 +1,900 @@ +/** + * Amazon SimpleDB (classic, 2009-04-15) — HAND-WRITTEN service module. + * + * AWS never published a Smithy model for classic SimpleDB (it exists only in + * SDK v2 / botocore), so this module cannot be generated from + * `specs/api-models-aws` and must not be regenerated. The modern + * "SimpleDBv2" Smithy model (`simpledbv2.ts`) covers ONLY the domain-export + * migration API; domain management (CreateDomain / DeleteDomain / + * DomainMetadata / ListDomains) lives here. + * + * Protocol notes (verified against the live endpoint): + * - awsQuery wire shape with `{Op}Result` response wrappers. + * - Signature Version 2 ONLY (`T.AwsAuthSigv2`) — the endpoint rejects SigV4 + * with `AuthFailure: access credentials are missing`. + * - Errors are wrapped EC2-style: + * `..` + * (handled by the aws-query protocol's legacy fallback). + */ +import * as HttpClient from "effect/unstable/http/HttpClient"; +import * as S from "@distilled.cloud/core/schema"; +import * as stream from "effect/Stream"; +import * as API from "../client/api.ts"; +import * as T from "../traits.ts"; +import * as C from "../category.ts"; +import type { Credentials } from "../credentials.ts"; +import type { CommonErrors } from "../errors.ts"; +import type { Region } from "../region.ts"; +const ns = T.XmlNamespace("http://sdb.amazonaws.com/doc/2009-04-15/"); +const svc = T.AwsApiService({ + sdkId: "SimpleDB", + serviceShapeName: "AmazonSimpleDB", +}); +const auth = T.AwsAuthSigv2({ name: "sdb" }); +const ver = T.ServiceVersion("2009-04-15"); +const proto = T.AwsProtocolsAwsQuery(); +const rules = T.EndpointResolver((p, _) => { + const { UseDualStack = false, UseFIPS = false, Endpoint, Region } = p; + const e = (u: unknown, p = {}, h = {}): T.EndpointResolverResult => ({ + type: "endpoint" as const, + endpoint: { url: u as string, properties: p, headers: h }, + }); + const err = (m: unknown): T.EndpointResolverResult => ({ + type: "error" as const, + message: m as string, + }); + if (Endpoint != null) { + if (UseFIPS === true) { + return err( + "Invalid Configuration: FIPS and custom endpoint are not supported", + ); + } + if (UseDualStack === true) { + return err( + "Invalid Configuration: Dualstack and custom endpoint are not supported", + ); + } + return e(Endpoint); + } + if (Region != null) { + if (Region === "us-east-1") { + return e("https://sdb.amazonaws.com"); + } + return e(`https://sdb.${Region}.amazonaws.com`); + } + return err("Invalid Configuration: Missing Region"); +}); + +//# Newtypes +export type DomainName = string; + +//# Schemas +export interface CreateDomainRequest { + DomainName: string; +} +export const CreateDomainRequest = /*@__PURE__*/ /*#__PURE__*/ S.suspend(() => + S.Struct({ DomainName: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "CreateDomainRequest", +}) as any as S.Schema; +export interface CreateDomainResponse {} +export const CreateDomainResponse = /*@__PURE__*/ /*#__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "CreateDomainResponse", +}) as any as S.Schema; + +export interface DeleteDomainRequest { + DomainName: string; +} +export const DeleteDomainRequest = /*@__PURE__*/ /*#__PURE__*/ S.suspend(() => + S.Struct({ DomainName: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "DeleteDomainRequest", +}) as any as S.Schema; +export interface DeleteDomainResponse {} +export const DeleteDomainResponse = /*@__PURE__*/ /*#__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteDomainResponse", +}) as any as S.Schema; + +export interface DomainMetadataRequest { + DomainName: string; +} +export const DomainMetadataRequest = /*@__PURE__*/ /*#__PURE__*/ S.suspend(() => + S.Struct({ DomainName: S.String }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "DomainMetadataRequest", +}) as any as S.Schema; +export interface DomainMetadataResponse { + ItemCount?: number; + ItemNamesSizeBytes?: number; + AttributeNameCount?: number; + AttributeNamesSizeBytes?: number; + AttributeValueCount?: number; + AttributeValuesSizeBytes?: number; + Timestamp?: number; +} +export const DomainMetadataResponse = /*@__PURE__*/ /*#__PURE__*/ S.suspend( + () => + S.Struct({ + ItemCount: S.optional(S.Number), + ItemNamesSizeBytes: S.optional(S.Number), + AttributeNameCount: S.optional(S.Number), + AttributeNamesSizeBytes: S.optional(S.Number), + AttributeValueCount: S.optional(S.Number), + AttributeValuesSizeBytes: S.optional(S.Number), + Timestamp: S.optional(S.Number), + }), +).annotate({ + identifier: "DomainMetadataResponse", +}) as any as S.Schema; + +export interface ListDomainsRequest { + MaxNumberOfDomains?: number; + NextToken?: string; +} +export const ListDomainsRequest = /*@__PURE__*/ /*#__PURE__*/ S.suspend(() => + S.Struct({ + MaxNumberOfDomains: S.optional(S.Number), + NextToken: S.optional(S.String), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "ListDomainsRequest", +}) as any as S.Schema; +export type DomainNameList = string[]; +export const DomainNameList = /*@__PURE__*/ /*#__PURE__*/ S.Array(S.String); +export interface ListDomainsResponse { + DomainNames?: string[]; + NextToken?: string; +} +export const ListDomainsResponse = /*@__PURE__*/ /*#__PURE__*/ S.suspend(() => + S.Struct({ + // SimpleDB returns a flattened list of repeated elements + DomainNames: S.optional(DomainNameList).pipe( + T.XmlName("DomainName"), + T.XmlFlattened(), + ), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListDomainsResponse", +}) as any as S.Schema; + +//# Schemas — data plane (Select / GetAttributes / PutAttributes / +//# DeleteAttributes / BatchPutAttributes / BatchDeleteAttributes) +// +// Wire shapes verified against the SimpleDB API reference and the SDK v2 / +// botocore `sdb-2009-04-15` model: all lists are FLATTENED with singular +// locationNames (`Attribute.N.*`, `Item.N.*`, `AttributeName.N`), and batch +// item structures use the `ItemName` member on the wire. +export interface Attribute { + Name: string; + AlternateNameEncoding?: string; + Value: string; + AlternateValueEncoding?: string; +} +export const Attribute = /*@__PURE__*/ /*#__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.String, + AlternateNameEncoding: S.optional(S.String), + Value: S.String, + AlternateValueEncoding: S.optional(S.String), + }), +).annotate({ + identifier: "Attribute", +}) as any as S.Schema; +export type AttributeList = Attribute[]; +export const AttributeList = /*@__PURE__*/ /*#__PURE__*/ S.Array(Attribute); + +export interface ReplaceableAttribute { + Name: string; + Value: string; + Replace?: boolean; +} +export const ReplaceableAttribute = /*@__PURE__*/ /*#__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.String, + Value: S.String, + Replace: S.optional(S.Boolean), + }), +).annotate({ + identifier: "ReplaceableAttribute", +}) as any as S.Schema; +export type ReplaceableAttributeList = ReplaceableAttribute[]; +export const ReplaceableAttributeList = + /*@__PURE__*/ /*#__PURE__*/ S.Array(ReplaceableAttribute); + +export interface DeletableAttribute { + Name: string; + Value?: string; +} +export const DeletableAttribute = /*@__PURE__*/ /*#__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.String, + Value: S.optional(S.String), + }), +).annotate({ + identifier: "DeletableAttribute", +}) as any as S.Schema; +export type DeletableAttributeList = DeletableAttribute[]; +export const DeletableAttributeList = + /*@__PURE__*/ /*#__PURE__*/ S.Array(DeletableAttribute); + +export interface UpdateCondition { + Name?: string; + Value?: string; + Exists?: boolean; +} +export const UpdateCondition = /*@__PURE__*/ /*#__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.optional(S.String), + Value: S.optional(S.String), + Exists: S.optional(S.Boolean), + }), +).annotate({ + identifier: "UpdateCondition", +}) as any as S.Schema; + +export interface ReplaceableItem { + ItemName: string; + Attributes: ReplaceableAttribute[]; +} +export const ReplaceableItem = /*@__PURE__*/ /*#__PURE__*/ S.suspend(() => + S.Struct({ + ItemName: S.String, + Attributes: ReplaceableAttributeList.pipe( + T.XmlName("Attribute"), + T.XmlFlattened(), + ), + }), +).annotate({ + identifier: "ReplaceableItem", +}) as any as S.Schema; +export type ReplaceableItemList = ReplaceableItem[]; +export const ReplaceableItemList = + /*@__PURE__*/ /*#__PURE__*/ S.Array(ReplaceableItem); + +export interface DeletableItem { + ItemName: string; + Attributes?: DeletableAttribute[]; +} +export const DeletableItem = /*@__PURE__*/ /*#__PURE__*/ S.suspend(() => + S.Struct({ + ItemName: S.String, + Attributes: S.optional(DeletableAttributeList).pipe( + T.XmlName("Attribute"), + T.XmlFlattened(), + ), + }), +).annotate({ + identifier: "DeletableItem", +}) as any as S.Schema; +export type DeletableItemList = DeletableItem[]; +export const DeletableItemList = + /*@__PURE__*/ /*#__PURE__*/ S.Array(DeletableItem); + +export interface Item { + Name: string; + AlternateNameEncoding?: string; + Attributes?: Attribute[]; +} +export const Item = /*@__PURE__*/ /*#__PURE__*/ S.suspend(() => + S.Struct({ + Name: S.String, + AlternateNameEncoding: S.optional(S.String), + Attributes: S.optional(AttributeList).pipe( + T.XmlName("Attribute"), + T.XmlFlattened(), + ), + }), +).annotate({ + identifier: "Item", +}) as any as S.Schema; +export type ItemList = Item[]; +export const ItemList = /*@__PURE__*/ /*#__PURE__*/ S.Array(Item); + +export interface GetAttributesRequest { + DomainName: string; + ItemName: string; + AttributeNames?: string[]; + ConsistentRead?: boolean; +} +export const GetAttributesRequest = /*@__PURE__*/ /*#__PURE__*/ S.suspend(() => + S.Struct({ + DomainName: S.String, + ItemName: S.String, + AttributeNames: S.optional(S.Array(S.String)).pipe( + T.XmlName("AttributeName"), + T.XmlFlattened(), + ), + ConsistentRead: S.optional(S.Boolean), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "GetAttributesRequest", +}) as any as S.Schema; +export interface GetAttributesResponse { + Attributes?: Attribute[]; +} +export const GetAttributesResponse = /*@__PURE__*/ /*#__PURE__*/ S.suspend(() => + S.Struct({ + // SimpleDB returns a flattened list of repeated elements + Attributes: S.optional(AttributeList).pipe( + T.XmlName("Attribute"), + T.XmlFlattened(), + ), + }), +).annotate({ + identifier: "GetAttributesResponse", +}) as any as S.Schema; + +export interface PutAttributesRequest { + DomainName: string; + ItemName: string; + Attributes: ReplaceableAttribute[]; + Expected?: UpdateCondition; +} +export const PutAttributesRequest = /*@__PURE__*/ /*#__PURE__*/ S.suspend(() => + S.Struct({ + DomainName: S.String, + ItemName: S.String, + Attributes: ReplaceableAttributeList.pipe( + T.XmlName("Attribute"), + T.XmlFlattened(), + ), + Expected: S.optional(UpdateCondition), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "PutAttributesRequest", +}) as any as S.Schema; +export interface PutAttributesResponse {} +export const PutAttributesResponse = /*@__PURE__*/ /*#__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "PutAttributesResponse", +}) as any as S.Schema; + +export interface DeleteAttributesRequest { + DomainName: string; + ItemName: string; + Attributes?: DeletableAttribute[]; + Expected?: UpdateCondition; +} +export const DeleteAttributesRequest = /*@__PURE__*/ /*#__PURE__*/ S.suspend( + () => + S.Struct({ + DomainName: S.String, + ItemName: S.String, + Attributes: S.optional(DeletableAttributeList).pipe( + T.XmlName("Attribute"), + T.XmlFlattened(), + ), + Expected: S.optional(UpdateCondition), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "DeleteAttributesRequest", +}) as any as S.Schema; +export interface DeleteAttributesResponse {} +export const DeleteAttributesResponse = /*@__PURE__*/ /*#__PURE__*/ S.suspend( + () => S.Struct({}), +).annotate({ + identifier: "DeleteAttributesResponse", +}) as any as S.Schema; + +export interface BatchPutAttributesRequest { + DomainName: string; + Items: ReplaceableItem[]; +} +export const BatchPutAttributesRequest = + /*@__PURE__*/ /*#__PURE__*/ S.suspend(() => + S.Struct({ + DomainName: S.String, + Items: ReplaceableItemList.pipe(T.XmlName("Item"), T.XmlFlattened()), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, + ), + ), + ).annotate({ + identifier: "BatchPutAttributesRequest", + }) as any as S.Schema; +export interface BatchPutAttributesResponse {} +export const BatchPutAttributesResponse = + /*@__PURE__*/ /*#__PURE__*/ S.suspend(() => S.Struct({})).annotate({ + identifier: "BatchPutAttributesResponse", + }) as any as S.Schema; + +export interface BatchDeleteAttributesRequest { + DomainName: string; + Items: DeletableItem[]; +} +export const BatchDeleteAttributesRequest = + /*@__PURE__*/ /*#__PURE__*/ S.suspend(() => + S.Struct({ + DomainName: S.String, + Items: DeletableItemList.pipe(T.XmlName("Item"), T.XmlFlattened()), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, + ), + ), + ).annotate({ + identifier: "BatchDeleteAttributesRequest", + }) as any as S.Schema; +export interface BatchDeleteAttributesResponse {} +export const BatchDeleteAttributesResponse = + /*@__PURE__*/ /*#__PURE__*/ S.suspend(() => S.Struct({})).annotate({ + identifier: "BatchDeleteAttributesResponse", + }) as any as S.Schema; + +export interface SelectRequest { + SelectExpression: string; + NextToken?: string; + ConsistentRead?: boolean; +} +export const SelectRequest = /*@__PURE__*/ /*#__PURE__*/ S.suspend(() => + S.Struct({ + SelectExpression: S.String, + NextToken: S.optional(S.String), + ConsistentRead: S.optional(S.Boolean), + }).pipe( + T.all( + ns, + T.Http({ method: "POST", uri: "/" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "SelectRequest", +}) as any as S.Schema; +export interface SelectResponse { + Items?: Item[]; + NextToken?: string; +} +export const SelectResponse = /*@__PURE__*/ /*#__PURE__*/ S.suspend(() => + S.Struct({ + // SimpleDB returns a flattened list of repeated elements + Items: S.optional(ItemList).pipe(T.XmlName("Item"), T.XmlFlattened()), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "SelectResponse", +}) as any as S.Schema; + +//# Errors +export class NoSuchDomain extends S.TaggedErrorClass()( + "NoSuchDomain", + { message: S.optional(S.String), BoxUsage: S.optional(S.String) }, +).pipe(C.withBadRequestError, C.withNotFoundError) {} +export class InvalidParameterValue extends S.TaggedErrorClass()( + "InvalidParameterValue", + { message: S.optional(S.String), BoxUsage: S.optional(S.String) }, +).pipe(C.withBadRequestError) {} +export class MissingParameter extends S.TaggedErrorClass()( + "MissingParameter", + { message: S.optional(S.String), BoxUsage: S.optional(S.String) }, +).pipe(C.withBadRequestError) {} +export class NumberDomainsExceeded extends S.TaggedErrorClass()( + "NumberDomainsExceeded", + { message: S.optional(S.String), BoxUsage: S.optional(S.String) }, +).pipe(C.withQuotaError) {} +export class InvalidNextToken extends S.TaggedErrorClass()( + "InvalidNextToken", + { message: S.optional(S.String), BoxUsage: S.optional(S.String) }, +).pipe(C.withBadRequestError) {} +export class AttributeDoesNotExist extends S.TaggedErrorClass()( + "AttributeDoesNotExist", + { message: S.optional(S.String), BoxUsage: S.optional(S.String) }, +).pipe(C.withNotFoundError) {} +export class DuplicateItemName extends S.TaggedErrorClass()( + "DuplicateItemName", + { message: S.optional(S.String), BoxUsage: S.optional(S.String) }, +).pipe(C.withBadRequestError) {} +export class InvalidNumberPredicates extends S.TaggedErrorClass()( + "InvalidNumberPredicates", + { message: S.optional(S.String), BoxUsage: S.optional(S.String) }, +).pipe(C.withBadRequestError) {} +export class InvalidNumberValueTests extends S.TaggedErrorClass()( + "InvalidNumberValueTests", + { message: S.optional(S.String), BoxUsage: S.optional(S.String) }, +).pipe(C.withBadRequestError) {} +export class InvalidQueryExpression extends S.TaggedErrorClass()( + "InvalidQueryExpression", + { message: S.optional(S.String), BoxUsage: S.optional(S.String) }, +).pipe(C.withBadRequestError) {} +export class TooManyRequestedAttributes extends S.TaggedErrorClass()( + "TooManyRequestedAttributes", + { message: S.optional(S.String), BoxUsage: S.optional(S.String) }, +).pipe(C.withBadRequestError) {} +export class RequestTimeout extends S.TaggedErrorClass()( + "RequestTimeout", + { message: S.optional(S.String), BoxUsage: S.optional(S.String) }, +).pipe(C.withTimeoutError) {} +export class NumberDomainAttributesExceeded extends S.TaggedErrorClass()( + "NumberDomainAttributesExceeded", + { message: S.optional(S.String), BoxUsage: S.optional(S.String) }, +).pipe(C.withQuotaError) {} +export class NumberDomainBytesExceeded extends S.TaggedErrorClass()( + "NumberDomainBytesExceeded", + { message: S.optional(S.String), BoxUsage: S.optional(S.String) }, +).pipe(C.withQuotaError) {} +export class NumberItemAttributesExceeded extends S.TaggedErrorClass()( + "NumberItemAttributesExceeded", + { message: S.optional(S.String), BoxUsage: S.optional(S.String) }, +).pipe(C.withQuotaError) {} +export class NumberSubmittedAttributesExceeded extends S.TaggedErrorClass()( + "NumberSubmittedAttributesExceeded", + { message: S.optional(S.String), BoxUsage: S.optional(S.String) }, +).pipe(C.withQuotaError) {} +export class NumberSubmittedItemsExceeded extends S.TaggedErrorClass()( + "NumberSubmittedItemsExceeded", + { message: S.optional(S.String), BoxUsage: S.optional(S.String) }, +).pipe(C.withQuotaError) {} + +//# Operations +export type CreateDomainError = + | InvalidParameterValue + | MissingParameter + | NumberDomainsExceeded + | CommonErrors; +/** + * Creates a new SimpleDB domain. Idempotent — creating an existing domain + * succeeds without error. + */ +export const createDomain: API.OperationMethod< + CreateDomainRequest, + CreateDomainResponse, + CreateDomainError, + Credentials | Region | HttpClient.HttpClient +> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({ + input: CreateDomainRequest, + output: CreateDomainResponse, + errors: [InvalidParameterValue, MissingParameter, NumberDomainsExceeded], + operationName: "CreateDomain", +})); +export type DeleteDomainError = MissingParameter | CommonErrors; +/** + * Deletes a SimpleDB domain and all of its items. Idempotent — deleting a + * missing domain succeeds without error. + */ +export const deleteDomain: API.OperationMethod< + DeleteDomainRequest, + DeleteDomainResponse, + DeleteDomainError, + Credentials | Region | HttpClient.HttpClient +> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({ + input: DeleteDomainRequest, + output: DeleteDomainResponse, + errors: [MissingParameter], + operationName: "DeleteDomain", +})); +export type DomainMetadataError = + | MissingParameter + | NoSuchDomain + | CommonErrors; +/** + * Returns information about a SimpleDB domain (item count, sizes, timestamp). + */ +export const domainMetadata: API.OperationMethod< + DomainMetadataRequest, + DomainMetadataResponse, + DomainMetadataError, + Credentials | Region | HttpClient.HttpClient +> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({ + input: DomainMetadataRequest, + output: DomainMetadataResponse, + errors: [MissingParameter, NoSuchDomain], + operationName: "DomainMetadata", +})); +export type ListDomainsError = + | InvalidNextToken + | InvalidParameterValue + | CommonErrors; +/** + * Lists all SimpleDB domains in the account/region. Paginated. + */ +export const listDomains: API.OperationMethod< + ListDomainsRequest, + ListDomainsResponse, + ListDomainsError, + Credentials | Region | HttpClient.HttpClient +> & { + pages: ( + input: ListDomainsRequest, + ) => stream.Stream< + ListDomainsResponse, + ListDomainsError, + Credentials | Region | HttpClient.HttpClient + >; + items: ( + input: ListDomainsRequest, + ) => stream.Stream< + string, + ListDomainsError, + Credentials | Region | HttpClient.HttpClient + >; +} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({ + input: ListDomainsRequest, + output: ListDomainsResponse, + errors: [InvalidNextToken, InvalidParameterValue], + operationName: "ListDomains", + pagination: { + inputToken: "NextToken", + outputToken: "NextToken", + items: "DomainNames", + pageSize: "MaxNumberOfDomains", + } as const, +})); +export type GetAttributesError = + | InvalidParameterValue + | MissingParameter + | NoSuchDomain + | CommonErrors; +/** + * Returns all (or the requested subset of) attributes of a SimpleDB item. + * Reads are eventually consistent unless `ConsistentRead` is set. + */ +export const getAttributes: API.OperationMethod< + GetAttributesRequest, + GetAttributesResponse, + GetAttributesError, + Credentials | Region | HttpClient.HttpClient +> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({ + input: GetAttributesRequest, + output: GetAttributesResponse, + errors: [InvalidParameterValue, MissingParameter, NoSuchDomain], + operationName: "GetAttributes", +})); +export type PutAttributesError = + | AttributeDoesNotExist + | InvalidParameterValue + | MissingParameter + | NoSuchDomain + | NumberDomainAttributesExceeded + | NumberDomainBytesExceeded + | NumberItemAttributesExceeded + | CommonErrors; +/** + * Creates or replaces attributes of a SimpleDB item. With `Replace: true` an + * attribute's existing values are overwritten; otherwise values accumulate. + */ +export const putAttributes: API.OperationMethod< + PutAttributesRequest, + PutAttributesResponse, + PutAttributesError, + Credentials | Region | HttpClient.HttpClient +> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({ + input: PutAttributesRequest, + output: PutAttributesResponse, + errors: [ + AttributeDoesNotExist, + InvalidParameterValue, + MissingParameter, + NoSuchDomain, + NumberDomainAttributesExceeded, + NumberDomainBytesExceeded, + NumberItemAttributesExceeded, + ], + operationName: "PutAttributes", +})); +export type DeleteAttributesError = + | AttributeDoesNotExist + | InvalidParameterValue + | MissingParameter + | NoSuchDomain + | CommonErrors; +/** + * Deletes one or more attributes of a SimpleDB item — or the whole item when + * no attributes are named. Idempotent: deleting a missing attribute/item + * succeeds. + */ +export const deleteAttributes: API.OperationMethod< + DeleteAttributesRequest, + DeleteAttributesResponse, + DeleteAttributesError, + Credentials | Region | HttpClient.HttpClient +> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({ + input: DeleteAttributesRequest, + output: DeleteAttributesResponse, + errors: [ + AttributeDoesNotExist, + InvalidParameterValue, + MissingParameter, + NoSuchDomain, + ], + operationName: "DeleteAttributes", +})); +export type BatchPutAttributesError = + | DuplicateItemName + | InvalidParameterValue + | MissingParameter + | NoSuchDomain + | NumberDomainAttributesExceeded + | NumberDomainBytesExceeded + | NumberItemAttributesExceeded + | NumberSubmittedAttributesExceeded + | NumberSubmittedItemsExceeded + | CommonErrors; +/** + * Puts attributes on up to 25 items in a single call. + */ +export const batchPutAttributes: API.OperationMethod< + BatchPutAttributesRequest, + BatchPutAttributesResponse, + BatchPutAttributesError, + Credentials | Region | HttpClient.HttpClient +> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({ + input: BatchPutAttributesRequest, + output: BatchPutAttributesResponse, + errors: [ + DuplicateItemName, + InvalidParameterValue, + MissingParameter, + NoSuchDomain, + NumberDomainAttributesExceeded, + NumberDomainBytesExceeded, + NumberItemAttributesExceeded, + NumberSubmittedAttributesExceeded, + NumberSubmittedItemsExceeded, + ], + operationName: "BatchPutAttributes", +})); +export type BatchDeleteAttributesError = CommonErrors; +/** + * Deletes attributes (or whole items) on up to 25 items in a single call. + * Idempotent — missing items/attributes are not an error. + */ +export const batchDeleteAttributes: API.OperationMethod< + BatchDeleteAttributesRequest, + BatchDeleteAttributesResponse, + BatchDeleteAttributesError, + Credentials | Region | HttpClient.HttpClient +> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({ + input: BatchDeleteAttributesRequest, + output: BatchDeleteAttributesResponse, + errors: [], + operationName: "BatchDeleteAttributes", +})); +export type SelectError = + | InvalidNextToken + | InvalidNumberPredicates + | InvalidNumberValueTests + | InvalidParameterValue + | InvalidQueryExpression + | MissingParameter + | NoSuchDomain + | RequestTimeout + | TooManyRequestedAttributes + | CommonErrors; +/** + * Runs a SimpleDB select expression (`select output_list from domain + * [where ...]`). Paginated via `NextToken`. + */ +export const select: API.OperationMethod< + SelectRequest, + SelectResponse, + SelectError, + Credentials | Region | HttpClient.HttpClient +> & { + pages: ( + input: SelectRequest, + ) => stream.Stream< + SelectResponse, + SelectError, + Credentials | Region | HttpClient.HttpClient + >; + items: ( + input: SelectRequest, + ) => stream.Stream< + Item, + SelectError, + Credentials | Region | HttpClient.HttpClient + >; +} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({ + input: SelectRequest, + output: SelectResponse, + errors: [ + InvalidNextToken, + InvalidNumberPredicates, + InvalidNumberValueTests, + InvalidParameterValue, + InvalidQueryExpression, + MissingParameter, + NoSuchDomain, + RequestTimeout, + TooManyRequestedAttributes, + ], + operationName: "Select", + pagination: { + inputToken: "NextToken", + outputToken: "NextToken", + items: "Items", + } as const, +})); diff --git a/packages/aws/src/services/socialmessaging.ts b/packages/aws/src/services/socialmessaging.ts index 499d8c4d40..056910612a 100644 --- a/packages/aws/src/services/socialmessaging.ts +++ b/packages/aws/src/services/socialmessaging.ts @@ -250,11 +250,11 @@ export const UntagResourceOutput = /*@__PURE__*/ S.suspend(() => identifier: "UntagResourceOutput", }) as any as S.Schema; export interface WhatsAppSignupCallback { - accessToken: string; + accessToken: string | redacted.Redacted; callbackUrl?: string; } export const WhatsAppSignupCallback = /*@__PURE__*/ S.suspend(() => - S.Struct({ accessToken: S.String, callbackUrl: S.optional(S.String) }), + S.Struct({ accessToken: SensitiveString, callbackUrl: S.optional(S.String) }), ).annotate({ identifier: "WhatsAppSignupCallback", }) as any as S.Schema; @@ -264,35 +264,36 @@ export interface WabaPhoneNumberSetupFinalization { dataLocalizationRegion?: string; tags?: Tag[]; } -export const WabaPhoneNumberSetupFinalization = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String, - twoFactorPin: SensitiveString, - dataLocalizationRegion: S.optional(S.String), - tags: S.optional(TagList), - }), - ).annotate({ - identifier: "WabaPhoneNumberSetupFinalization", - }) as any as S.Schema; +export const WabaPhoneNumberSetupFinalization = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + twoFactorPin: SensitiveString, + dataLocalizationRegion: S.optional(S.String), + tags: S.optional(TagList), + }), +).annotate({ + identifier: "WabaPhoneNumberSetupFinalization", +}) as any as S.Schema; export type WabaPhoneNumberSetupFinalizationList = WabaPhoneNumberSetupFinalization[]; -export const WabaPhoneNumberSetupFinalizationList = - /*@__PURE__*/ S.Array(WabaPhoneNumberSetupFinalization); +export const WabaPhoneNumberSetupFinalizationList = /*@__PURE__*/ S.Array( + WabaPhoneNumberSetupFinalization, +); export interface WhatsAppBusinessAccountEventDestination { eventDestinationArn: string; roleArn?: string; } -export const WhatsAppBusinessAccountEventDestination = - /*@__PURE__*/ S.suspend(() => +export const WhatsAppBusinessAccountEventDestination = /*@__PURE__*/ S.suspend( + () => S.Struct({ eventDestinationArn: S.String, roleArn: S.optional(S.String) }), - ).annotate({ - identifier: "WhatsAppBusinessAccountEventDestination", - }) as any as S.Schema; +).annotate({ + identifier: "WhatsAppBusinessAccountEventDestination", +}) as any as S.Schema; export type WhatsAppBusinessAccountEventDestinations = WhatsAppBusinessAccountEventDestination[]; -export const WhatsAppBusinessAccountEventDestinations = - /*@__PURE__*/ S.Array(WhatsAppBusinessAccountEventDestination); +export const WhatsAppBusinessAccountEventDestinations = /*@__PURE__*/ S.Array( + WhatsAppBusinessAccountEventDestination, +); export interface WabaSetupFinalization { id?: string; eventDestinations?: WhatsAppBusinessAccountEventDestination[]; @@ -327,8 +328,8 @@ export interface AssociateWhatsAppBusinessAccountInput { signupCallback?: WhatsAppSignupCallback; setupFinalization?: WhatsAppSetupFinalization; } -export const AssociateWhatsAppBusinessAccountInput = - /*@__PURE__*/ S.suspend(() => +export const AssociateWhatsAppBusinessAccountInput = /*@__PURE__*/ S.suspend( + () => S.Struct({ signupCallback: S.optional(WhatsAppSignupCallback), setupFinalization: S.optional(WhatsAppSetupFinalization), @@ -342,9 +343,9 @@ export const AssociateWhatsAppBusinessAccountInput = rules, ), ), - ).annotate({ - identifier: "AssociateWhatsAppBusinessAccountInput", - }) as any as S.Schema; +).annotate({ + identifier: "AssociateWhatsAppBusinessAccountInput", +}) as any as S.Schema; export type RegistrationStatus = "COMPLETE" | "INCOMPLETE" | (string & {}); export const RegistrationStatus = /*@__PURE__*/ S.String; export interface WhatsAppPhoneNumberDetail { @@ -372,16 +373,17 @@ export const WhatsAppPhoneNumberDetail = /*@__PURE__*/ S.suspend(() => identifier: "WhatsAppPhoneNumberDetail", }) as any as S.Schema; export type WhatsAppPhoneNumberDetailList = WhatsAppPhoneNumberDetail[]; -export const WhatsAppPhoneNumberDetailList = - /*@__PURE__*/ S.Array(WhatsAppPhoneNumberDetail); +export const WhatsAppPhoneNumberDetailList = /*@__PURE__*/ S.Array( + WhatsAppPhoneNumberDetail, +); export interface LinkedWhatsAppBusinessAccountIdMetaData { accountName?: string; registrationStatus?: RegistrationStatus; unregisteredWhatsAppPhoneNumbers?: WhatsAppPhoneNumberDetail[]; wabaId?: string; } -export const LinkedWhatsAppBusinessAccountIdMetaData = - /*@__PURE__*/ S.suspend(() => +export const LinkedWhatsAppBusinessAccountIdMetaData = /*@__PURE__*/ S.suspend( + () => S.Struct({ accountName: S.optional(S.String), registrationStatus: S.optional(RegistrationStatus), @@ -390,54 +392,52 @@ export const LinkedWhatsAppBusinessAccountIdMetaData = ), wabaId: S.optional(S.String), }), - ).annotate({ - identifier: "LinkedWhatsAppBusinessAccountIdMetaData", - }) as any as S.Schema; +).annotate({ + identifier: "LinkedWhatsAppBusinessAccountIdMetaData", +}) as any as S.Schema; export type LinkedAccountWithIncompleteSetup = { [key: string]: LinkedWhatsAppBusinessAccountIdMetaData | undefined; }; -export const LinkedAccountWithIncompleteSetup = - /*@__PURE__*/ S.Record( - S.String, - LinkedWhatsAppBusinessAccountIdMetaData.pipe(S.optional), - ); +export const LinkedAccountWithIncompleteSetup = /*@__PURE__*/ S.Record( + S.String, + LinkedWhatsAppBusinessAccountIdMetaData.pipe(S.optional), +); export interface WhatsAppSignupCallbackResult { associateInProgressToken?: string | redacted.Redacted; linkedAccountsWithIncompleteSetup?: { [key: string]: LinkedWhatsAppBusinessAccountIdMetaData | undefined; }; } -export const WhatsAppSignupCallbackResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - associateInProgressToken: S.optional(SensitiveString), - linkedAccountsWithIncompleteSetup: S.optional( - LinkedAccountWithIncompleteSetup, - ), - }), - ).annotate({ - identifier: "WhatsAppSignupCallbackResult", - }) as any as S.Schema; +export const WhatsAppSignupCallbackResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + associateInProgressToken: S.optional(SensitiveString), + linkedAccountsWithIncompleteSetup: S.optional( + LinkedAccountWithIncompleteSetup, + ), + }), +).annotate({ + identifier: "WhatsAppSignupCallbackResult", +}) as any as S.Schema; export interface AssociateWhatsAppBusinessAccountOutput { signupCallbackResult?: WhatsAppSignupCallbackResult; statusCode?: number; linkedWhatsAppBusinessAccountId?: string; } -export const AssociateWhatsAppBusinessAccountOutput = - /*@__PURE__*/ S.suspend(() => +export const AssociateWhatsAppBusinessAccountOutput = /*@__PURE__*/ S.suspend( + () => S.Struct({ signupCallbackResult: S.optional(WhatsAppSignupCallbackResult), statusCode: S.optional(S.Number), linkedWhatsAppBusinessAccountId: S.optional(S.String), }), - ).annotate({ - identifier: "AssociateWhatsAppBusinessAccountOutput", - }) as any as S.Schema; +).annotate({ + identifier: "AssociateWhatsAppBusinessAccountOutput", +}) as any as S.Schema; export interface GetLinkedWhatsAppBusinessAccountInput { id: string; } -export const GetLinkedWhatsAppBusinessAccountInput = - /*@__PURE__*/ S.suspend(() => +export const GetLinkedWhatsAppBusinessAccountInput = /*@__PURE__*/ S.suspend( + () => S.Struct({ id: S.String.pipe(T.HttpQuery("id")) }).pipe( T.all( T.Http({ method: "GET", uri: "/v1/whatsapp/waba/details" }), @@ -448,9 +448,9 @@ export const GetLinkedWhatsAppBusinessAccountInput = rules, ), ), - ).annotate({ - identifier: "GetLinkedWhatsAppBusinessAccountInput", - }) as any as S.Schema; +).annotate({ + identifier: "GetLinkedWhatsAppBusinessAccountInput", +}) as any as S.Schema; export interface WhatsAppPhoneNumberSummary { arn: string; phoneNumber: string; @@ -476,8 +476,9 @@ export const WhatsAppPhoneNumberSummary = /*@__PURE__*/ S.suspend(() => identifier: "WhatsAppPhoneNumberSummary", }) as any as S.Schema; export type WhatsAppPhoneNumberSummaryList = WhatsAppPhoneNumberSummary[]; -export const WhatsAppPhoneNumberSummaryList = - /*@__PURE__*/ S.Array(WhatsAppPhoneNumberSummary); +export const WhatsAppPhoneNumberSummaryList = /*@__PURE__*/ S.Array( + WhatsAppPhoneNumberSummary, +); export interface LinkedWhatsAppBusinessAccount { arn: string; id: string; @@ -489,36 +490,34 @@ export interface LinkedWhatsAppBusinessAccount { marketingMessagesOnboardingStatus?: string; phoneNumbers: WhatsAppPhoneNumberSummary[]; } -export const LinkedWhatsAppBusinessAccount = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - arn: S.String, - id: S.String, - wabaId: S.String, - registrationStatus: RegistrationStatus, - linkDate: S.Date.pipe(T.TimestampFormat("epoch-seconds")), - wabaName: S.String, - eventDestinations: WhatsAppBusinessAccountEventDestinations, - marketingMessagesOnboardingStatus: S.optional(S.String), - phoneNumbers: WhatsAppPhoneNumberSummaryList, - }), - ).annotate({ - identifier: "LinkedWhatsAppBusinessAccount", - }) as any as S.Schema; +export const LinkedWhatsAppBusinessAccount = /*@__PURE__*/ S.suspend(() => + S.Struct({ + arn: S.String, + id: S.String, + wabaId: S.String, + registrationStatus: RegistrationStatus, + linkDate: S.Date.pipe(T.TimestampFormat("epoch-seconds")), + wabaName: S.String, + eventDestinations: WhatsAppBusinessAccountEventDestinations, + marketingMessagesOnboardingStatus: S.optional(S.String), + phoneNumbers: WhatsAppPhoneNumberSummaryList, + }), +).annotate({ + identifier: "LinkedWhatsAppBusinessAccount", +}) as any as S.Schema; export interface GetLinkedWhatsAppBusinessAccountOutput { account?: LinkedWhatsAppBusinessAccount; } -export const GetLinkedWhatsAppBusinessAccountOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ account: S.optional(LinkedWhatsAppBusinessAccount) }), - ).annotate({ - identifier: "GetLinkedWhatsAppBusinessAccountOutput", - }) as any as S.Schema; +export const GetLinkedWhatsAppBusinessAccountOutput = /*@__PURE__*/ S.suspend( + () => S.Struct({ account: S.optional(LinkedWhatsAppBusinessAccount) }), +).annotate({ + identifier: "GetLinkedWhatsAppBusinessAccountOutput", +}) as any as S.Schema; export interface DisassociateWhatsAppBusinessAccountInput { id: string; } -export const DisassociateWhatsAppBusinessAccountInput = - /*@__PURE__*/ S.suspend(() => +export const DisassociateWhatsAppBusinessAccountInput = /*@__PURE__*/ S.suspend( + () => S.Struct({ id: S.String.pipe(T.HttpQuery("id")) }).pipe( T.all( T.Http({ method: "DELETE", uri: "/v1/whatsapp/waba/disassociate" }), @@ -529,9 +528,9 @@ export const DisassociateWhatsAppBusinessAccountInput = rules, ), ), - ).annotate({ - identifier: "DisassociateWhatsAppBusinessAccountInput", - }) as any as S.Schema; +).annotate({ + identifier: "DisassociateWhatsAppBusinessAccountInput", +}) as any as S.Schema; export interface DisassociateWhatsAppBusinessAccountOutput {} export const DisassociateWhatsAppBusinessAccountOutput = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ @@ -541,8 +540,8 @@ export interface ListLinkedWhatsAppBusinessAccountsInput { nextToken?: string; maxResults?: number; } -export const ListLinkedWhatsAppBusinessAccountsInput = - /*@__PURE__*/ S.suspend(() => +export const ListLinkedWhatsAppBusinessAccountsInput = /*@__PURE__*/ S.suspend( + () => S.Struct({ nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), @@ -556,9 +555,9 @@ export const ListLinkedWhatsAppBusinessAccountsInput = rules, ), ), - ).annotate({ - identifier: "ListLinkedWhatsAppBusinessAccountsInput", - }) as any as S.Schema; +).annotate({ + identifier: "ListLinkedWhatsAppBusinessAccountsInput", +}) as any as S.Schema; export interface LinkedWhatsAppBusinessAccountSummary { arn: string; id: string; @@ -569,8 +568,8 @@ export interface LinkedWhatsAppBusinessAccountSummary { eventDestinations: WhatsAppBusinessAccountEventDestination[]; marketingMessagesOnboardingStatus?: string; } -export const LinkedWhatsAppBusinessAccountSummary = - /*@__PURE__*/ S.suspend(() => +export const LinkedWhatsAppBusinessAccountSummary = /*@__PURE__*/ S.suspend( + () => S.Struct({ arn: S.String, id: S.String, @@ -581,26 +580,27 @@ export const LinkedWhatsAppBusinessAccountSummary = eventDestinations: WhatsAppBusinessAccountEventDestinations, marketingMessagesOnboardingStatus: S.optional(S.String), }), - ).annotate({ - identifier: "LinkedWhatsAppBusinessAccountSummary", - }) as any as S.Schema; +).annotate({ + identifier: "LinkedWhatsAppBusinessAccountSummary", +}) as any as S.Schema; export type LinkedWhatsAppBusinessAccountSummaryList = LinkedWhatsAppBusinessAccountSummary[]; -export const LinkedWhatsAppBusinessAccountSummaryList = - /*@__PURE__*/ S.Array(LinkedWhatsAppBusinessAccountSummary); +export const LinkedWhatsAppBusinessAccountSummaryList = /*@__PURE__*/ S.Array( + LinkedWhatsAppBusinessAccountSummary, +); export interface ListLinkedWhatsAppBusinessAccountsOutput { linkedAccounts?: LinkedWhatsAppBusinessAccountSummary[]; nextToken?: string; } -export const ListLinkedWhatsAppBusinessAccountsOutput = - /*@__PURE__*/ S.suspend(() => +export const ListLinkedWhatsAppBusinessAccountsOutput = /*@__PURE__*/ S.suspend( + () => S.Struct({ linkedAccounts: S.optional(LinkedWhatsAppBusinessAccountSummaryList), nextToken: S.optional(S.String), }), - ).annotate({ - identifier: "ListLinkedWhatsAppBusinessAccountsOutput", - }) as any as S.Schema; +).annotate({ + identifier: "ListLinkedWhatsAppBusinessAccountsOutput", +}) as any as S.Schema; export type MetaFlowCategory = | "SIGN_UP" | "SIGN_IN" @@ -662,36 +662,34 @@ export interface CreateWhatsAppMessageTemplateInput { templateDefinition: Uint8Array; id: string; } -export const CreateWhatsAppMessageTemplateInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ templateDefinition: T.Blob, id: S.String }).pipe( - T.all( - T.Http({ method: "POST", uri: "/v1/whatsapp/template/put" }), - svc, - auth, - proto, - ver, - rules, - ), +export const CreateWhatsAppMessageTemplateInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ templateDefinition: T.Blob, id: S.String }).pipe( + T.all( + T.Http({ method: "POST", uri: "/v1/whatsapp/template/put" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "CreateWhatsAppMessageTemplateInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "CreateWhatsAppMessageTemplateInput", +}) as any as S.Schema; export interface CreateWhatsAppMessageTemplateOutput { metaTemplateId?: string; templateStatus?: string; category?: string; } -export const CreateWhatsAppMessageTemplateOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - metaTemplateId: S.optional(S.String), - templateStatus: S.optional(S.String), - category: S.optional(S.String), - }), - ).annotate({ - identifier: "CreateWhatsAppMessageTemplateOutput", - }) as any as S.Schema; +export const CreateWhatsAppMessageTemplateOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + metaTemplateId: S.optional(S.String), + templateStatus: S.optional(S.String), + category: S.optional(S.String), + }), +).annotate({ + identifier: "CreateWhatsAppMessageTemplateOutput", +}) as any as S.Schema; export type MetaUrlWithSuffixExample = { [key: string]: string | undefined }; export const MetaUrlWithSuffixExample = /*@__PURE__*/ S.Record( S.String, @@ -725,8 +723,9 @@ export const LibraryTemplateButtonInput = /*@__PURE__*/ S.suspend(() => identifier: "LibraryTemplateButtonInput", }) as any as S.Schema; export type MetaLibraryTemplateButtonInputs = LibraryTemplateButtonInput[]; -export const MetaLibraryTemplateButtonInputs = - /*@__PURE__*/ S.Array(LibraryTemplateButtonInput); +export const MetaLibraryTemplateButtonInputs = /*@__PURE__*/ S.Array( + LibraryTemplateButtonInput, +); export interface LibraryTemplateBodyInputs { addContactNumber?: boolean; addLearnMoreLink?: boolean; @@ -810,8 +809,8 @@ export interface CreateWhatsAppMessageTemplateMediaInput { id: string; sourceS3File?: S3File; } -export const CreateWhatsAppMessageTemplateMediaInput = - /*@__PURE__*/ S.suspend(() => +export const CreateWhatsAppMessageTemplateMediaInput = /*@__PURE__*/ S.suspend( + () => S.Struct({ id: S.String, sourceS3File: S.optional(S3File) }).pipe( T.all( T.Http({ method: "POST", uri: "/v1/whatsapp/template/media" }), @@ -822,18 +821,17 @@ export const CreateWhatsAppMessageTemplateMediaInput = rules, ), ), - ).annotate({ - identifier: "CreateWhatsAppMessageTemplateMediaInput", - }) as any as S.Schema; +).annotate({ + identifier: "CreateWhatsAppMessageTemplateMediaInput", +}) as any as S.Schema; export interface CreateWhatsAppMessageTemplateMediaOutput { metaHeaderHandle?: string; } -export const CreateWhatsAppMessageTemplateMediaOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ metaHeaderHandle: S.optional(S.String) }), - ).annotate({ - identifier: "CreateWhatsAppMessageTemplateMediaOutput", - }) as any as S.Schema; +export const CreateWhatsAppMessageTemplateMediaOutput = /*@__PURE__*/ S.suspend( + () => S.Struct({ metaHeaderHandle: S.optional(S.String) }), +).annotate({ + identifier: "CreateWhatsAppMessageTemplateMediaOutput", +}) as any as S.Schema; export interface DeleteWhatsAppFlowInput { id: string; flowId: string; @@ -867,33 +865,33 @@ export interface DeleteWhatsAppMessageTemplateInput { id: string; templateName: string; } -export const DeleteWhatsAppMessageTemplateInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - metaTemplateId: S.optional(S.String).pipe(T.HttpQuery("metaTemplateId")), - deleteAllLanguages: S.optional(S.Boolean).pipe( - T.HttpQuery("deleteAllTemplates"), - ), - id: S.String.pipe(T.HttpQuery("id")), - templateName: S.String.pipe(T.HttpQuery("templateName")), - }).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/v1/whatsapp/template" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteWhatsAppMessageTemplateInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + metaTemplateId: S.optional(S.String).pipe(T.HttpQuery("metaTemplateId")), + deleteAllLanguages: S.optional(S.Boolean).pipe( + T.HttpQuery("deleteAllTemplates"), ), - ).annotate({ - identifier: "DeleteWhatsAppMessageTemplateInput", - }) as any as S.Schema; + id: S.String.pipe(T.HttpQuery("id")), + templateName: S.String.pipe(T.HttpQuery("templateName")), + }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/v1/whatsapp/template" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "DeleteWhatsAppMessageTemplateInput", +}) as any as S.Schema; export interface DeleteWhatsAppMessageTemplateOutput {} -export const DeleteWhatsAppMessageTemplateOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeleteWhatsAppMessageTemplateOutput", - }) as any as S.Schema; +export const DeleteWhatsAppMessageTemplateOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteWhatsAppMessageTemplateOutput", +}) as any as S.Schema; export interface DeprecateWhatsAppFlowInput { id: string; flowId: string; @@ -913,10 +911,11 @@ export const DeprecateWhatsAppFlowInput = /*@__PURE__*/ S.suspend(() => identifier: "DeprecateWhatsAppFlowInput", }) as any as S.Schema; export interface DeprecateWhatsAppFlowOutput {} -export const DeprecateWhatsAppFlowOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeprecateWhatsAppFlowOutput", - }) as any as S.Schema; +export const DeprecateWhatsAppFlowOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeprecateWhatsAppFlowOutput", +}) as any as S.Schema; export interface GetWhatsAppFlowInput { id: string; flowId: string; @@ -954,18 +953,17 @@ export interface MetaFlowWhatsAppBusinessAccountInfo { timezoneId?: string; messageTemplateNamespace?: string; } -export const MetaFlowWhatsAppBusinessAccountInfo = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String, - name: S.String, - currency: S.optional(S.String), - timezoneId: S.optional(S.String), - messageTemplateNamespace: S.optional(S.String), - }), - ).annotate({ - identifier: "MetaFlowWhatsAppBusinessAccountInfo", - }) as any as S.Schema; +export const MetaFlowWhatsAppBusinessAccountInfo = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + name: S.String, + currency: S.optional(S.String), + timezoneId: S.optional(S.String), + messageTemplateNamespace: S.optional(S.String), + }), +).annotate({ + identifier: "MetaFlowWhatsAppBusinessAccountInfo", +}) as any as S.Schema; export interface MetaFlowApplicationInfo { link?: string; name: string; @@ -1038,98 +1036,93 @@ export interface GetWhatsAppFlowPreviewInput { flowId: string; invalidate?: boolean; } -export const GetWhatsAppFlowPreviewInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String.pipe(T.HttpQuery("id")), - flowId: S.String.pipe(T.HttpQuery("flowId")), - invalidate: S.optional(S.Boolean).pipe(T.HttpQuery("invalidate")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/v1/whatsapp/flow/preview" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetWhatsAppFlowPreviewInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String.pipe(T.HttpQuery("id")), + flowId: S.String.pipe(T.HttpQuery("flowId")), + invalidate: S.optional(S.Boolean).pipe(T.HttpQuery("invalidate")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/v1/whatsapp/flow/preview" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetWhatsAppFlowPreviewInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetWhatsAppFlowPreviewInput", +}) as any as S.Schema; export interface GetWhatsAppFlowPreviewOutput { flowId: string; preview: MetaFlowPreviewInfo; } -export const GetWhatsAppFlowPreviewOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ flowId: S.String, preview: MetaFlowPreviewInfo }), - ).annotate({ - identifier: "GetWhatsAppFlowPreviewOutput", - }) as any as S.Schema; +export const GetWhatsAppFlowPreviewOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ flowId: S.String, preview: MetaFlowPreviewInfo }), +).annotate({ + identifier: "GetWhatsAppFlowPreviewOutput", +}) as any as S.Schema; export interface GetWhatsAppMessageTemplateInput { metaTemplateId?: string; id: string; templateName?: string; templateLanguageCode?: string; } -export const GetWhatsAppMessageTemplateInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - metaTemplateId: S.optional(S.String).pipe(T.HttpQuery("metaTemplateId")), - id: S.String.pipe(T.HttpQuery("id")), - templateName: S.optional(S.String).pipe(T.HttpQuery("templateName")), - templateLanguageCode: S.optional(S.String).pipe( - T.HttpQuery("templateLanguageCode"), - ), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/v1/whatsapp/template" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetWhatsAppMessageTemplateInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + metaTemplateId: S.optional(S.String).pipe(T.HttpQuery("metaTemplateId")), + id: S.String.pipe(T.HttpQuery("id")), + templateName: S.optional(S.String).pipe(T.HttpQuery("templateName")), + templateLanguageCode: S.optional(S.String).pipe( + T.HttpQuery("templateLanguageCode"), ), - ).annotate({ - identifier: "GetWhatsAppMessageTemplateInput", - }) as any as S.Schema; + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/v1/whatsapp/template" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "GetWhatsAppMessageTemplateInput", +}) as any as S.Schema; export interface GetWhatsAppMessageTemplateOutput { template?: string; } -export const GetWhatsAppMessageTemplateOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ template: S.optional(S.String) }), - ).annotate({ - identifier: "GetWhatsAppMessageTemplateOutput", - }) as any as S.Schema; +export const GetWhatsAppMessageTemplateOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ template: S.optional(S.String) }), +).annotate({ + identifier: "GetWhatsAppMessageTemplateOutput", +}) as any as S.Schema; export interface ListWhatsAppFlowAssetsInput { id: string; flowId: string; nextToken?: string; maxResults?: number; } -export const ListWhatsAppFlowAssetsInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String.pipe(T.HttpQuery("id")), - flowId: S.String.pipe(T.HttpQuery("flowId")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/v1/whatsapp/flow/assets" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListWhatsAppFlowAssetsInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String.pipe(T.HttpQuery("id")), + flowId: S.String.pipe(T.HttpQuery("flowId")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/v1/whatsapp/flow/assets" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListWhatsAppFlowAssetsInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListWhatsAppFlowAssetsInput", +}) as any as S.Schema; export interface MetaFlowAsset { name: string; assetType: string; @@ -1144,15 +1137,11 @@ export interface ListWhatsAppFlowAssetsOutput { flowAssets: MetaFlowAsset[]; nextToken?: string; } -export const ListWhatsAppFlowAssetsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - flowAssets: MetaFlowAssetList, - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListWhatsAppFlowAssetsOutput", - }) as any as S.Schema; +export const ListWhatsAppFlowAssetsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ flowAssets: MetaFlowAssetList, nextToken: S.optional(S.String) }), +).annotate({ + identifier: "ListWhatsAppFlowAssetsOutput", +}) as any as S.Schema; export interface ListWhatsAppFlowsInput { id: string; nextToken?: string; @@ -1210,25 +1199,24 @@ export interface ListWhatsAppMessageTemplatesInput { nextToken?: string; maxResults?: number; } -export const ListWhatsAppMessageTemplatesInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String.pipe(T.HttpQuery("id")), - nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), - maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), - }).pipe( - T.all( - T.Http({ method: "GET", uri: "/v1/whatsapp/template/list" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListWhatsAppMessageTemplatesInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String.pipe(T.HttpQuery("id")), + nextToken: S.optional(S.String).pipe(T.HttpQuery("nextToken")), + maxResults: S.optional(S.Number).pipe(T.HttpQuery("maxResults")), + }).pipe( + T.all( + T.Http({ method: "GET", uri: "/v1/whatsapp/template/list" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListWhatsAppMessageTemplatesInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListWhatsAppMessageTemplatesInput", +}) as any as S.Schema; export interface TemplateSummary { templateName?: string; metaTemplateId?: string; @@ -1255,15 +1243,14 @@ export interface ListWhatsAppMessageTemplatesOutput { templates?: TemplateSummary[]; nextToken?: string; } -export const ListWhatsAppMessageTemplatesOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - templates: S.optional(TemplateSummaryList), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListWhatsAppMessageTemplatesOutput", - }) as any as S.Schema; +export const ListWhatsAppMessageTemplatesOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + templates: S.optional(TemplateSummaryList), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListWhatsAppMessageTemplatesOutput", +}) as any as S.Schema; export type Filter = { [key: string]: string | undefined }; export const Filter = /*@__PURE__*/ S.Record( S.String, @@ -1275,26 +1262,25 @@ export interface ListWhatsAppTemplateLibraryInput { id: string; filters?: { [key: string]: string | undefined }; } -export const ListWhatsAppTemplateLibraryInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - nextToken: S.optional(S.String), - maxResults: S.optional(S.Number), - id: S.String.pipe(T.HttpQuery("id")), - filters: S.optional(Filter), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/v1/whatsapp/template/library" }), - svc, - auth, - proto, - ver, - rules, - ), +export const ListWhatsAppTemplateLibraryInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + nextToken: S.optional(S.String), + maxResults: S.optional(S.Number), + id: S.String.pipe(T.HttpQuery("id")), + filters: S.optional(Filter), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/v1/whatsapp/template/library" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "ListWhatsAppTemplateLibraryInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "ListWhatsAppTemplateLibraryInput", +}) as any as S.Schema; export type MetaIndustries = string[]; export const MetaIndustries = /*@__PURE__*/ S.Array(S.String); export interface LibraryTemplateButtonList { @@ -1320,8 +1306,9 @@ export const LibraryTemplateButtonList = /*@__PURE__*/ S.suspend(() => identifier: "LibraryTemplateButtonList", }) as any as S.Schema; export type MetaLibraryTemplateButtonList = LibraryTemplateButtonList[]; -export const MetaLibraryTemplateButtonList = - /*@__PURE__*/ S.Array(LibraryTemplateButtonList); +export const MetaLibraryTemplateButtonList = /*@__PURE__*/ S.Array( + LibraryTemplateButtonList, +); export type MetaTemplateBodyExampleParams = string[]; export const MetaTemplateBodyExampleParams = /*@__PURE__*/ S.Array(S.String); export interface MetaLibraryTemplateDefinition { @@ -1337,24 +1324,23 @@ export interface MetaLibraryTemplateDefinition { templateId?: string; templateBodyExampleParams?: string[]; } -export const MetaLibraryTemplateDefinition = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - templateName: S.optional(S.String), - templateLanguage: S.optional(S.String), - templateCategory: S.optional(S.String), - templateTopic: S.optional(S.String), - templateUseCase: S.optional(S.String), - templateIndustry: S.optional(MetaIndustries), - templateHeader: S.optional(S.String), - templateBody: S.optional(S.String), - templateButtons: S.optional(MetaLibraryTemplateButtonList), - templateId: S.optional(S.String), - templateBodyExampleParams: S.optional(MetaTemplateBodyExampleParams), - }), - ).annotate({ - identifier: "MetaLibraryTemplateDefinition", - }) as any as S.Schema; +export const MetaLibraryTemplateDefinition = /*@__PURE__*/ S.suspend(() => + S.Struct({ + templateName: S.optional(S.String), + templateLanguage: S.optional(S.String), + templateCategory: S.optional(S.String), + templateTopic: S.optional(S.String), + templateUseCase: S.optional(S.String), + templateIndustry: S.optional(MetaIndustries), + templateHeader: S.optional(S.String), + templateBody: S.optional(S.String), + templateButtons: S.optional(MetaLibraryTemplateButtonList), + templateId: S.optional(S.String), + templateBodyExampleParams: S.optional(MetaTemplateBodyExampleParams), + }), +).annotate({ + identifier: "MetaLibraryTemplateDefinition", +}) as any as S.Schema; export type MetaLibraryTemplatesList = MetaLibraryTemplateDefinition[]; export const MetaLibraryTemplatesList = /*@__PURE__*/ S.Array( MetaLibraryTemplateDefinition, @@ -1363,15 +1349,14 @@ export interface ListWhatsAppTemplateLibraryOutput { metaLibraryTemplates?: MetaLibraryTemplateDefinition[]; nextToken?: string; } -export const ListWhatsAppTemplateLibraryOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - metaLibraryTemplates: S.optional(MetaLibraryTemplatesList), - nextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListWhatsAppTemplateLibraryOutput", - }) as any as S.Schema; +export const ListWhatsAppTemplateLibraryOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + metaLibraryTemplates: S.optional(MetaLibraryTemplatesList), + nextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListWhatsAppTemplateLibraryOutput", +}) as any as S.Schema; export interface PublishWhatsAppFlowInput { id: string; flowId: string; @@ -1459,30 +1444,28 @@ export interface UpdateWhatsAppFlowAssetsInput { flowId: string; flowJson: Uint8Array; } -export const UpdateWhatsAppFlowAssetsInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ id: S.String, flowId: S.String, flowJson: T.Blob }).pipe( - T.all( - T.Http({ method: "POST", uri: "/v1/whatsapp/flow/assets/update" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateWhatsAppFlowAssetsInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ id: S.String, flowId: S.String, flowJson: T.Blob }).pipe( + T.all( + T.Http({ method: "POST", uri: "/v1/whatsapp/flow/assets/update" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateWhatsAppFlowAssetsInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateWhatsAppFlowAssetsInput", +}) as any as S.Schema; export interface UpdateWhatsAppFlowAssetsOutput { validationErrors?: string[]; } -export const UpdateWhatsAppFlowAssetsOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ validationErrors: S.optional(ValidationErrorList) }), - ).annotate({ - identifier: "UpdateWhatsAppFlowAssetsOutput", - }) as any as S.Schema; +export const UpdateWhatsAppFlowAssetsOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ validationErrors: S.optional(ValidationErrorList) }), +).annotate({ + identifier: "UpdateWhatsAppFlowAssetsOutput", +}) as any as S.Schema; export interface UpdateWhatsAppMessageTemplateInput { id: string; metaTemplateId?: string; @@ -1493,35 +1476,35 @@ export interface UpdateWhatsAppMessageTemplateInput { templateComponents?: Uint8Array; ctaUrlLinkTrackingOptedOut?: boolean; } -export const UpdateWhatsAppMessageTemplateInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String, - metaTemplateId: S.optional(S.String), - templateName: S.optional(S.String), - templateLanguageCode: S.optional(S.String), - parameterFormat: S.optional(S.String), - templateCategory: S.optional(S.String), - templateComponents: S.optional(T.Blob), - ctaUrlLinkTrackingOptedOut: S.optional(S.Boolean), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/v1/whatsapp/template" }), - svc, - auth, - proto, - ver, - rules, - ), +export const UpdateWhatsAppMessageTemplateInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + metaTemplateId: S.optional(S.String), + templateName: S.optional(S.String), + templateLanguageCode: S.optional(S.String), + parameterFormat: S.optional(S.String), + templateCategory: S.optional(S.String), + templateComponents: S.optional(T.Blob), + ctaUrlLinkTrackingOptedOut: S.optional(S.Boolean), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/v1/whatsapp/template" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "UpdateWhatsAppMessageTemplateInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "UpdateWhatsAppMessageTemplateInput", +}) as any as S.Schema; export interface UpdateWhatsAppMessageTemplateOutput {} -export const UpdateWhatsAppMessageTemplateOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "UpdateWhatsAppMessageTemplateOutput", - }) as any as S.Schema; +export const UpdateWhatsAppMessageTemplateOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "UpdateWhatsAppMessageTemplateOutput", +}) as any as S.Schema; export interface GetLinkedWhatsAppBusinessAccountPhoneNumberInput { id: string; } @@ -1557,35 +1540,33 @@ export interface DeleteWhatsAppMessageMediaInput { mediaId: string; originationPhoneNumberId: string; } -export const DeleteWhatsAppMessageMediaInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - mediaId: S.String.pipe(T.HttpQuery("mediaId")), - originationPhoneNumberId: S.String.pipe( - T.HttpQuery("originationPhoneNumberId"), - ), - }).pipe( - T.all( - T.Http({ method: "DELETE", uri: "/v1/whatsapp/media" }), - svc, - auth, - proto, - ver, - rules, - ), +export const DeleteWhatsAppMessageMediaInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + mediaId: S.String.pipe(T.HttpQuery("mediaId")), + originationPhoneNumberId: S.String.pipe( + T.HttpQuery("originationPhoneNumberId"), ), - ).annotate({ - identifier: "DeleteWhatsAppMessageMediaInput", - }) as any as S.Schema; + }).pipe( + T.all( + T.Http({ method: "DELETE", uri: "/v1/whatsapp/media" }), + svc, + auth, + proto, + ver, + rules, + ), + ), +).annotate({ + identifier: "DeleteWhatsAppMessageMediaInput", +}) as any as S.Schema; export interface DeleteWhatsAppMessageMediaOutput { success?: boolean; } -export const DeleteWhatsAppMessageMediaOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ success: S.optional(S.Boolean) }), - ).annotate({ - identifier: "DeleteWhatsAppMessageMediaOutput", - }) as any as S.Schema; +export const DeleteWhatsAppMessageMediaOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ success: S.optional(S.Boolean) }), +).annotate({ + identifier: "DeleteWhatsAppMessageMediaOutput", +}) as any as S.Schema; export type Headers = { [key: string]: string | undefined }; export const Headers = /*@__PURE__*/ S.Record( S.String, @@ -1605,73 +1586,66 @@ export interface GetWhatsAppMessageMediaInput { destinationS3PresignedUrl?: S3PresignedUrl; destinationS3File?: S3File; } -export const GetWhatsAppMessageMediaInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - mediaId: S.String, - originationPhoneNumberId: S.String, - metadataOnly: S.optional(S.Boolean), - destinationS3PresignedUrl: S.optional(S3PresignedUrl), - destinationS3File: S.optional(S3File), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/v1/whatsapp/media/get" }), - svc, - auth, - proto, - ver, - rules, - ), +export const GetWhatsAppMessageMediaInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + mediaId: S.String, + originationPhoneNumberId: S.String, + metadataOnly: S.optional(S.Boolean), + destinationS3PresignedUrl: S.optional(S3PresignedUrl), + destinationS3File: S.optional(S3File), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/v1/whatsapp/media/get" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "GetWhatsAppMessageMediaInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "GetWhatsAppMessageMediaInput", +}) as any as S.Schema; export interface GetWhatsAppMessageMediaOutput { mimeType?: string; fileSize?: number; } -export const GetWhatsAppMessageMediaOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - mimeType: S.optional(S.String), - fileSize: S.optional(S.Number), - }), - ).annotate({ - identifier: "GetWhatsAppMessageMediaOutput", - }) as any as S.Schema; +export const GetWhatsAppMessageMediaOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ mimeType: S.optional(S.String), fileSize: S.optional(S.Number) }), +).annotate({ + identifier: "GetWhatsAppMessageMediaOutput", +}) as any as S.Schema; export interface PostWhatsAppMessageMediaInput { originationPhoneNumberId: string; sourceS3PresignedUrl?: S3PresignedUrl; sourceS3File?: S3File; } -export const PostWhatsAppMessageMediaInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - originationPhoneNumberId: S.String, - sourceS3PresignedUrl: S.optional(S3PresignedUrl), - sourceS3File: S.optional(S3File), - }).pipe( - T.all( - T.Http({ method: "POST", uri: "/v1/whatsapp/media" }), - svc, - auth, - proto, - ver, - rules, - ), +export const PostWhatsAppMessageMediaInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + originationPhoneNumberId: S.String, + sourceS3PresignedUrl: S.optional(S3PresignedUrl), + sourceS3File: S.optional(S3File), + }).pipe( + T.all( + T.Http({ method: "POST", uri: "/v1/whatsapp/media" }), + svc, + auth, + proto, + ver, + rules, ), - ).annotate({ - identifier: "PostWhatsAppMessageMediaInput", - }) as any as S.Schema; + ), +).annotate({ + identifier: "PostWhatsAppMessageMediaInput", +}) as any as S.Schema; export interface PostWhatsAppMessageMediaOutput { mediaId?: string; } -export const PostWhatsAppMessageMediaOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ mediaId: S.optional(S.String) }), - ).annotate({ - identifier: "PostWhatsAppMessageMediaOutput", - }) as any as S.Schema; +export const PostWhatsAppMessageMediaOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ mediaId: S.optional(S.String) }), +).annotate({ + identifier: "PostWhatsAppMessageMediaOutput", +}) as any as S.Schema; export interface SendWhatsAppMessageInput { originationPhoneNumberId: string; message: Uint8Array | redacted.Redacted; @@ -1708,33 +1682,37 @@ export const SendWhatsAppMessageOutput = /*@__PURE__*/ S.suspend(() => export class InternalServiceException extends S.TaggedErrorClass()( "InternalServiceException", { message: S.optional(S.String) }, - T.Retryable(), + T.all(T.HttpError(500), T.Retryable()), ).pipe(C.withServerError, C.withRetryableError) {} export class InvalidParametersException extends S.TaggedErrorClass()( "InvalidParametersException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ThrottledRequestException extends S.TaggedErrorClass()( "ThrottledRequestException", { message: S.optional(S.String) }, - T.Retryable(), + T.all(T.HttpError(429), T.Retryable()), ).pipe(C.withThrottlingError, C.withRetryableError) {} export class DependencyException extends S.TaggedErrorClass()( "DependencyException", { message: S.optional(S.String) }, - T.Retryable(), + T.all(T.HttpError(502), T.Retryable()), ).pipe(C.withServerError, C.withRetryableError) {} export class LimitExceededException extends S.TaggedErrorClass()( "LimitExceededException", { message: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.optional(S.String) }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class AccessDeniedByMetaException extends S.TaggedErrorClass()( "AccessDeniedByMetaException", { message: S.optional(S.String) }, + T.HttpError(403), ).pipe(C.withAuthError) {} //# Operations @@ -2692,6 +2670,7 @@ export type SendWhatsAppMessageError = | InvalidParametersException | ResourceNotFoundException | ThrottledRequestException + | AccessDeniedByMetaException | CommonErrors; /** * Send a WhatsApp message. For examples of sending a message using the Amazon Web Services @@ -2714,6 +2693,7 @@ export const sendWhatsAppMessage: API.OperationMethod< InvalidParametersException, ResourceNotFoundException, ThrottledRequestException, + AccessDeniedByMetaException, ], operationName: "SendWhatsAppMessage", })); diff --git a/packages/aws/src/services/sqs.ts b/packages/aws/src/services/sqs.ts index 1c67b81a7e..54b6bf13bb 100644 --- a/packages/aws/src/services/sqs.ts +++ b/packages/aws/src/services/sqs.ts @@ -127,60 +127,58 @@ export const AddPermissionResponse = /*@__PURE__*/ S.suspend(() => export interface CancelMessageMoveTaskRequest { TaskHandle: string; } -export const CancelMessageMoveTaskRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ TaskHandle: S.String }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "CancelMessageMoveTaskRequest", - }) as any as S.Schema; +export const CancelMessageMoveTaskRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ TaskHandle: S.String }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "CancelMessageMoveTaskRequest", +}) as any as S.Schema; export interface CancelMessageMoveTaskResult { ApproximateNumberOfMessagesMoved?: number; } -export const CancelMessageMoveTaskResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ ApproximateNumberOfMessagesMoved: S.optional(S.Number) }), - ).annotate({ - identifier: "CancelMessageMoveTaskResult", - }) as any as S.Schema; +export const CancelMessageMoveTaskResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ ApproximateNumberOfMessagesMoved: S.optional(S.Number) }), +).annotate({ + identifier: "CancelMessageMoveTaskResult", +}) as any as S.Schema; export interface ChangeMessageVisibilityRequest { QueueUrl: string; ReceiptHandle: string; VisibilityTimeout: number; } -export const ChangeMessageVisibilityRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - QueueUrl: S.String, - ReceiptHandle: S.String, - VisibilityTimeout: S.Number, - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "ChangeMessageVisibilityRequest", - }) as any as S.Schema; +export const ChangeMessageVisibilityRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + QueueUrl: S.String, + ReceiptHandle: S.String, + VisibilityTimeout: S.Number, + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "ChangeMessageVisibilityRequest", +}) as any as S.Schema; export interface ChangeMessageVisibilityResponse {} -export const ChangeMessageVisibilityResponse = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "ChangeMessageVisibilityResponse", - }) as any as S.Schema; +export const ChangeMessageVisibilityResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "ChangeMessageVisibilityResponse", +}) as any as S.Schema; export interface ChangeMessageVisibilityBatchRequestEntry { Id: string; ReceiptHandle: string; VisibilityTimeout?: number; } -export const ChangeMessageVisibilityBatchRequestEntry = - /*@__PURE__*/ S.suspend(() => +export const ChangeMessageVisibilityBatchRequestEntry = /*@__PURE__*/ S.suspend( + () => S.Struct({ Id: S.String, ReceiptHandle: S.String, VisibilityTimeout: S.optional(S.Number), }), - ).annotate({ - identifier: "ChangeMessageVisibilityBatchRequestEntry", - }) as any as S.Schema; +).annotate({ + identifier: "ChangeMessageVisibilityBatchRequestEntry", +}) as any as S.Schema; export type ChangeMessageVisibilityBatchRequestEntryList = ChangeMessageVisibilityBatchRequestEntry[]; export const ChangeMessageVisibilityBatchRequestEntryList = @@ -189,27 +187,27 @@ export interface ChangeMessageVisibilityBatchRequest { QueueUrl: string; Entries: ChangeMessageVisibilityBatchRequestEntry[]; } -export const ChangeMessageVisibilityBatchRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - QueueUrl: S.String, - Entries: ChangeMessageVisibilityBatchRequestEntryList.pipe( - T.XmlName("ChangeMessageVisibilityBatchRequestEntry"), - T.XmlFlattened(), - ), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), +export const ChangeMessageVisibilityBatchRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + QueueUrl: S.String, + Entries: ChangeMessageVisibilityBatchRequestEntryList.pipe( + T.XmlName("ChangeMessageVisibilityBatchRequestEntry"), + T.XmlFlattened(), ), - ).annotate({ - identifier: "ChangeMessageVisibilityBatchRequest", - }) as any as S.Schema; + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "ChangeMessageVisibilityBatchRequest", +}) as any as S.Schema; export interface ChangeMessageVisibilityBatchResultEntry { Id: string; } -export const ChangeMessageVisibilityBatchResultEntry = - /*@__PURE__*/ S.suspend(() => S.Struct({ Id: S.String })).annotate({ - identifier: "ChangeMessageVisibilityBatchResultEntry", - }) as any as S.Schema; +export const ChangeMessageVisibilityBatchResultEntry = /*@__PURE__*/ S.suspend( + () => S.Struct({ Id: S.String }), +).annotate({ + identifier: "ChangeMessageVisibilityBatchResultEntry", +}) as any as S.Schema; export type ChangeMessageVisibilityBatchResultEntryList = ChangeMessageVisibilityBatchResultEntry[]; export const ChangeMessageVisibilityBatchResultEntryList = @@ -235,24 +233,23 @@ export const BatchResultErrorEntryList = /*@__PURE__*/ S.Array( BatchResultErrorEntry, ); export interface ChangeMessageVisibilityBatchResult { - Successful: ChangeMessageVisibilityBatchResultEntry[]; - Failed: BatchResultErrorEntry[]; + Successful?: ChangeMessageVisibilityBatchResultEntry[]; + Failed?: BatchResultErrorEntry[]; } -export const ChangeMessageVisibilityBatchResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Successful: ChangeMessageVisibilityBatchResultEntryList.pipe( - T.XmlName("ChangeMessageVisibilityBatchResultEntry"), - T.XmlFlattened(), - ), - Failed: BatchResultErrorEntryList.pipe( - T.XmlName("BatchResultErrorEntry"), - T.XmlFlattened(), - ), - }), - ).annotate({ - identifier: "ChangeMessageVisibilityBatchResult", - }) as any as S.Schema; +export const ChangeMessageVisibilityBatchResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Successful: S.optional(ChangeMessageVisibilityBatchResultEntryList).pipe( + T.XmlName("ChangeMessageVisibilityBatchResultEntry"), + T.XmlFlattened(), + ), + Failed: S.optional(BatchResultErrorEntryList).pipe( + T.XmlName("BatchResultErrorEntry"), + T.XmlFlattened(), + ), + }), +).annotate({ + identifier: "ChangeMessageVisibilityBatchResult", +}) as any as S.Schema; export type QueueAttributeName = | "All" | "Policy" @@ -336,16 +333,16 @@ export interface DeleteMessageBatchRequestEntry { Id: string; ReceiptHandle: string; } -export const DeleteMessageBatchRequestEntry = - /*@__PURE__*/ S.suspend(() => - S.Struct({ Id: S.String, ReceiptHandle: S.String }), - ).annotate({ - identifier: "DeleteMessageBatchRequestEntry", - }) as any as S.Schema; +export const DeleteMessageBatchRequestEntry = /*@__PURE__*/ S.suspend(() => + S.Struct({ Id: S.String, ReceiptHandle: S.String }), +).annotate({ + identifier: "DeleteMessageBatchRequestEntry", +}) as any as S.Schema; export type DeleteMessageBatchRequestEntryList = DeleteMessageBatchRequestEntry[]; -export const DeleteMessageBatchRequestEntryList = - /*@__PURE__*/ S.Array(DeleteMessageBatchRequestEntry); +export const DeleteMessageBatchRequestEntryList = /*@__PURE__*/ S.Array( + DeleteMessageBatchRequestEntry, +); export interface DeleteMessageBatchRequest { QueueUrl: string; Entries: DeleteMessageBatchRequestEntry[]; @@ -366,24 +363,26 @@ export const DeleteMessageBatchRequest = /*@__PURE__*/ S.suspend(() => export interface DeleteMessageBatchResultEntry { Id: string; } -export const DeleteMessageBatchResultEntry = - /*@__PURE__*/ S.suspend(() => S.Struct({ Id: S.String })).annotate({ - identifier: "DeleteMessageBatchResultEntry", - }) as any as S.Schema; +export const DeleteMessageBatchResultEntry = /*@__PURE__*/ S.suspend(() => + S.Struct({ Id: S.String }), +).annotate({ + identifier: "DeleteMessageBatchResultEntry", +}) as any as S.Schema; export type DeleteMessageBatchResultEntryList = DeleteMessageBatchResultEntry[]; -export const DeleteMessageBatchResultEntryList = - /*@__PURE__*/ S.Array(DeleteMessageBatchResultEntry); +export const DeleteMessageBatchResultEntryList = /*@__PURE__*/ S.Array( + DeleteMessageBatchResultEntry, +); export interface DeleteMessageBatchResult { - Successful: DeleteMessageBatchResultEntry[]; - Failed: BatchResultErrorEntry[]; + Successful?: DeleteMessageBatchResultEntry[]; + Failed?: BatchResultErrorEntry[]; } export const DeleteMessageBatchResult = /*@__PURE__*/ S.suspend(() => S.Struct({ - Successful: DeleteMessageBatchResultEntryList.pipe( + Successful: S.optional(DeleteMessageBatchResultEntryList).pipe( T.XmlName("DeleteMessageBatchResultEntry"), T.XmlFlattened(), ), - Failed: BatchResultErrorEntryList.pipe( + Failed: S.optional(BatchResultErrorEntryList).pipe( T.XmlName("BatchResultErrorEntry"), T.XmlFlattened(), ), @@ -466,45 +465,42 @@ export interface ListDeadLetterSourceQueuesRequest { NextToken?: string; MaxResults?: number; } -export const ListDeadLetterSourceQueuesRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - QueueUrl: S.String, - NextToken: S.optional(S.String), - MaxResults: S.optional(S.Number), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "ListDeadLetterSourceQueuesRequest", - }) as any as S.Schema; +export const ListDeadLetterSourceQueuesRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + QueueUrl: S.String, + NextToken: S.optional(S.String), + MaxResults: S.optional(S.Number), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "ListDeadLetterSourceQueuesRequest", +}) as any as S.Schema; export type QueueUrlList = string[]; export const QueueUrlList = /*@__PURE__*/ S.Array(S.String); export interface ListDeadLetterSourceQueuesResult { queueUrls: string[]; NextToken?: string; } -export const ListDeadLetterSourceQueuesResult = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - queueUrls: QueueUrlList.pipe(T.XmlName("QueueUrl"), T.XmlFlattened()), - NextToken: S.optional(S.String), - }), - ).annotate({ - identifier: "ListDeadLetterSourceQueuesResult", - }) as any as S.Schema; +export const ListDeadLetterSourceQueuesResult = /*@__PURE__*/ S.suspend(() => + S.Struct({ + queueUrls: QueueUrlList.pipe(T.XmlName("QueueUrl"), T.XmlFlattened()), + NextToken: S.optional(S.String), + }), +).annotate({ + identifier: "ListDeadLetterSourceQueuesResult", +}) as any as S.Schema; export interface ListMessageMoveTasksRequest { SourceArn: string; MaxResults?: number; } -export const ListMessageMoveTasksRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ SourceArn: S.String, MaxResults: S.optional(S.Number) }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "ListMessageMoveTasksRequest", - }) as any as S.Schema; +export const ListMessageMoveTasksRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ SourceArn: S.String, MaxResults: S.optional(S.Number) }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "ListMessageMoveTasksRequest", +}) as any as S.Schema; export interface ListMessageMoveTasksResultEntry { TaskHandle?: string; Status?: string; @@ -516,26 +512,26 @@ export interface ListMessageMoveTasksResultEntry { FailureReason?: string; StartedTimestamp?: number; } -export const ListMessageMoveTasksResultEntry = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - TaskHandle: S.optional(S.String), - Status: S.optional(S.String), - SourceArn: S.optional(S.String), - DestinationArn: S.optional(S.String), - MaxNumberOfMessagesPerSecond: S.optional(S.Number), - ApproximateNumberOfMessagesMoved: S.optional(S.Number), - ApproximateNumberOfMessagesToMove: S.optional(S.Number), - FailureReason: S.optional(S.String), - StartedTimestamp: S.optional(S.Number), - }), - ).annotate({ - identifier: "ListMessageMoveTasksResultEntry", - }) as any as S.Schema; +export const ListMessageMoveTasksResultEntry = /*@__PURE__*/ S.suspend(() => + S.Struct({ + TaskHandle: S.optional(S.String), + Status: S.optional(S.String), + SourceArn: S.optional(S.String), + DestinationArn: S.optional(S.String), + MaxNumberOfMessagesPerSecond: S.optional(S.Number), + ApproximateNumberOfMessagesMoved: S.optional(S.Number), + ApproximateNumberOfMessagesToMove: S.optional(S.Number), + FailureReason: S.optional(S.String), + StartedTimestamp: S.optional(S.Number), + }), +).annotate({ + identifier: "ListMessageMoveTasksResultEntry", +}) as any as S.Schema; export type ListMessageMoveTasksResultEntryList = ListMessageMoveTasksResultEntry[]; -export const ListMessageMoveTasksResultEntryList = - /*@__PURE__*/ S.Array(ListMessageMoveTasksResultEntry); +export const ListMessageMoveTasksResultEntryList = /*@__PURE__*/ S.Array( + ListMessageMoveTasksResultEntry, +); export interface ListMessageMoveTasksResult { Results?: ListMessageMoveTasksResultEntry[]; } @@ -787,34 +783,32 @@ export interface MessageSystemAttributeValue { BinaryListValues?: Uint8Array[]; DataType: string; } -export const MessageSystemAttributeValue = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - StringValue: S.optional(S.String), - BinaryValue: S.optional(T.Blob), - StringListValues: S.optional(StringList).pipe( - T.XmlName("StringListValue"), - T.XmlFlattened(), - ), - BinaryListValues: S.optional(BinaryList).pipe( - T.XmlName("BinaryListValue"), - T.XmlFlattened(), - ), - DataType: S.String, - }), - ).annotate({ - identifier: "MessageSystemAttributeValue", - }) as any as S.Schema; +export const MessageSystemAttributeValue = /*@__PURE__*/ S.suspend(() => + S.Struct({ + StringValue: S.optional(S.String), + BinaryValue: S.optional(T.Blob), + StringListValues: S.optional(StringList).pipe( + T.XmlName("StringListValue"), + T.XmlFlattened(), + ), + BinaryListValues: S.optional(BinaryList).pipe( + T.XmlName("BinaryListValue"), + T.XmlFlattened(), + ), + DataType: S.String, + }), +).annotate({ + identifier: "MessageSystemAttributeValue", +}) as any as S.Schema; export type MessageBodySystemAttributeMap = { [key in MessageSystemAttributeNameForSends]?: MessageSystemAttributeValue; }; -export const MessageBodySystemAttributeMap = - /*@__PURE__*/ S.Record( - MessageSystemAttributeNameForSends.pipe(T.XmlName("Name")), - MessageSystemAttributeValue.pipe(T.XmlName("Value")) - .annotate({ identifier: "MessageSystemAttributeValue" }) - .pipe(S.optional), - ); +export const MessageBodySystemAttributeMap = /*@__PURE__*/ S.Record( + MessageSystemAttributeNameForSends.pipe(T.XmlName("Name")), + MessageSystemAttributeValue.pipe(T.XmlName("Value")) + .annotate({ identifier: "MessageSystemAttributeValue" }) + .pipe(S.optional), +); export interface SendMessageRequest { QueueUrl: string; MessageBody: string; @@ -876,29 +870,29 @@ export interface SendMessageBatchRequestEntry { MessageDeduplicationId?: string; MessageGroupId?: string; } -export const SendMessageBatchRequestEntry = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Id: S.String, - MessageBody: S.String, - DelaySeconds: S.optional(S.Number), - MessageAttributes: S.optional(MessageBodyAttributeMap).pipe( - T.XmlName("MessageAttribute"), - T.XmlFlattened(), - ), - MessageSystemAttributes: S.optional(MessageBodySystemAttributeMap).pipe( - T.XmlName("MessageSystemAttribute"), - T.XmlFlattened(), - ), - MessageDeduplicationId: S.optional(S.String), - MessageGroupId: S.optional(S.String), - }), - ).annotate({ - identifier: "SendMessageBatchRequestEntry", - }) as any as S.Schema; +export const SendMessageBatchRequestEntry = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Id: S.String, + MessageBody: S.String, + DelaySeconds: S.optional(S.Number), + MessageAttributes: S.optional(MessageBodyAttributeMap).pipe( + T.XmlName("MessageAttribute"), + T.XmlFlattened(), + ), + MessageSystemAttributes: S.optional(MessageBodySystemAttributeMap).pipe( + T.XmlName("MessageSystemAttribute"), + T.XmlFlattened(), + ), + MessageDeduplicationId: S.optional(S.String), + MessageGroupId: S.optional(S.String), + }), +).annotate({ + identifier: "SendMessageBatchRequestEntry", +}) as any as S.Schema; export type SendMessageBatchRequestEntryList = SendMessageBatchRequestEntry[]; -export const SendMessageBatchRequestEntryList = - /*@__PURE__*/ S.Array(SendMessageBatchRequestEntry); +export const SendMessageBatchRequestEntryList = /*@__PURE__*/ S.Array( + SendMessageBatchRequestEntry, +); export interface SendMessageBatchRequest { QueueUrl: string; Entries: SendMessageBatchRequestEntry[]; @@ -924,29 +918,29 @@ export interface SendMessageBatchResultEntry { MD5OfMessageSystemAttributes?: string; SequenceNumber?: string; } -export const SendMessageBatchResultEntry = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - Id: S.String, - MessageId: S.String, - MD5OfMessageBody: S.String, - MD5OfMessageAttributes: S.optional(S.String), - MD5OfMessageSystemAttributes: S.optional(S.String), - SequenceNumber: S.optional(S.String), - }), - ).annotate({ - identifier: "SendMessageBatchResultEntry", - }) as any as S.Schema; +export const SendMessageBatchResultEntry = /*@__PURE__*/ S.suspend(() => + S.Struct({ + Id: S.String, + MessageId: S.String, + MD5OfMessageBody: S.String, + MD5OfMessageAttributes: S.optional(S.String), + MD5OfMessageSystemAttributes: S.optional(S.String), + SequenceNumber: S.optional(S.String), + }), +).annotate({ + identifier: "SendMessageBatchResultEntry", +}) as any as S.Schema; export type SendMessageBatchResultEntryList = SendMessageBatchResultEntry[]; -export const SendMessageBatchResultEntryList = - /*@__PURE__*/ S.Array(SendMessageBatchResultEntry); +export const SendMessageBatchResultEntryList = /*@__PURE__*/ S.Array( + SendMessageBatchResultEntry, +); export interface SendMessageBatchResult { - Successful: SendMessageBatchResultEntry[]; + Successful?: SendMessageBatchResultEntry[]; Failed?: BatchResultErrorEntry[]; } export const SendMessageBatchResult = /*@__PURE__*/ S.suspend(() => S.Struct({ - Successful: SendMessageBatchResultEntryList.pipe( + Successful: S.optional(SendMessageBatchResultEntryList).pipe( T.XmlName("SendMessageBatchResultEntry"), T.XmlFlattened(), ), @@ -986,18 +980,17 @@ export interface StartMessageMoveTaskRequest { DestinationArn?: string; MaxNumberOfMessagesPerSecond?: number; } -export const StartMessageMoveTaskRequest = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - SourceArn: S.String, - DestinationArn: S.optional(S.String), - MaxNumberOfMessagesPerSecond: S.optional(S.Number), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "StartMessageMoveTaskRequest", - }) as any as S.Schema; +export const StartMessageMoveTaskRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + SourceArn: S.String, + DestinationArn: S.optional(S.String), + MaxNumberOfMessagesPerSecond: S.optional(S.Number), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "StartMessageMoveTaskRequest", +}) as any as S.Schema; export interface StartMessageMoveTaskResult { TaskHandle?: string; } @@ -1053,43 +1046,67 @@ export const UntagQueueResponse = /*@__PURE__*/ S.suspend(() => export class InvalidAddress extends S.TaggedErrorClass()( "InvalidAddress", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidAddress", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "InvalidAddress", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class InvalidSecurity extends S.TaggedErrorClass()( "InvalidSecurity", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "InvalidSecurity", httpResponseCode: 403 }), + T.all( + T.AwsQueryError({ code: "InvalidSecurity", httpResponseCode: 403 }), + T.HttpError(403), + ), ).pipe(C.withAuthError) {} export class OverLimit extends S.TaggedErrorClass()( "OverLimit", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "OverLimit", httpResponseCode: 403 }), + T.all( + T.AwsQueryError({ code: "OverLimit", httpResponseCode: 403 }), + T.HttpError(403), + ), ).pipe(C.withAuthError, C.withQuotaError) {} export class QueueDoesNotExist extends S.TaggedErrorClass()( "QueueDoesNotExist", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "AWS.SimpleQueueService.NonExistentQueue", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "AWS.SimpleQueueService.NonExistentQueue", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class RequestThrottled extends S.TaggedErrorClass()( "RequestThrottled", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "RequestThrottled", httpResponseCode: 403 }), + T.all( + T.AwsQueryError({ code: "RequestThrottled", httpResponseCode: 403 }), + T.HttpError(403), + ), ).pipe(C.withAuthError, C.withThrottlingError, C.withRetryableError) {} export class UnsupportedOperation extends S.TaggedErrorClass()( "UnsupportedOperation", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "AWS.SimpleQueueService.UnsupportedOperation", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "AWS.SimpleQueueService.UnsupportedOperation", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "ResourceNotFoundException", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ + code: "ResourceNotFoundException", + httpResponseCode: 404, + }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class RequestLimitExceeded extends S.TaggedErrorClass()( "RequestLimitExceeded", @@ -1097,52 +1114,70 @@ export class RequestLimitExceeded extends S.TaggedErrorClass()( "InvalidParameterValueException", - {}, + { message: S.optional(S.String) }, ).pipe(C.withBadRequestError) {} export class MessageNotInflight extends S.TaggedErrorClass()( "MessageNotInflight", {}, - T.AwsQueryError({ - code: "AWS.SimpleQueueService.MessageNotInflight", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "AWS.SimpleQueueService.MessageNotInflight", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ReceiptHandleIsInvalid extends S.TaggedErrorClass()( "ReceiptHandleIsInvalid", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "ReceiptHandleIsInvalid", httpResponseCode: 404 }), + T.all( + T.AwsQueryError({ code: "ReceiptHandleIsInvalid", httpResponseCode: 404 }), + T.HttpError(404), + ), ).pipe(C.withBadRequestError) {} export class BatchEntryIdsNotDistinct extends S.TaggedErrorClass()( "BatchEntryIdsNotDistinct", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "AWS.SimpleQueueService.BatchEntryIdsNotDistinct", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "AWS.SimpleQueueService.BatchEntryIdsNotDistinct", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class EmptyBatchRequest extends S.TaggedErrorClass()( "EmptyBatchRequest", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "AWS.SimpleQueueService.EmptyBatchRequest", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "AWS.SimpleQueueService.EmptyBatchRequest", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidBatchEntryId extends S.TaggedErrorClass()( "InvalidBatchEntryId", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "AWS.SimpleQueueService.InvalidBatchEntryId", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "AWS.SimpleQueueService.InvalidBatchEntryId", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class TooManyEntriesInBatchRequest extends S.TaggedErrorClass()( "TooManyEntriesInBatchRequest", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "AWS.SimpleQueueService.TooManyEntriesInBatchRequest", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "AWS.SimpleQueueService.TooManyEntriesInBatchRequest", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidAttributeName extends S.TaggedErrorClass()( "InvalidAttributeName", @@ -1155,15 +1190,21 @@ export class InvalidAttributeValue extends S.TaggedErrorClass()( "QueueDeletedRecently", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "AWS.SimpleQueueService.QueueDeletedRecently", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "AWS.SimpleQueueService.QueueDeletedRecently", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class QueueNameExists extends S.TaggedErrorClass()( "QueueNameExists", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "QueueAlreadyExists", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "QueueAlreadyExists", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class InvalidIdFormat extends S.TaggedErrorClass()( "InvalidIdFormat", @@ -1172,48 +1213,78 @@ export class InvalidIdFormat extends S.TaggedErrorClass()( export class PurgeQueueInProgress extends S.TaggedErrorClass()( "PurgeQueueInProgress", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "AWS.SimpleQueueService.PurgeQueueInProgress", - httpResponseCode: 403, - }), + T.all( + T.AwsQueryError({ + code: "AWS.SimpleQueueService.PurgeQueueInProgress", + httpResponseCode: 403, + }), + T.HttpError(403), + ), ).pipe(C.withAuthError, C.withConflictError, C.withRetryableError) {} export class KmsAccessDenied extends S.TaggedErrorClass()( "KmsAccessDenied", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "KMS.AccessDeniedException", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "KMS.AccessDeniedException", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withAuthError) {} export class KmsDisabled extends S.TaggedErrorClass()( "KmsDisabled", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "KMS.DisabledException", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "KMS.DisabledException", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class KmsInvalidKeyUsage extends S.TaggedErrorClass()( "KmsInvalidKeyUsage", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "KMS.InvalidKeyUsageException", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "KMS.InvalidKeyUsageException", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class KmsInvalidState extends S.TaggedErrorClass()( "KmsInvalidState", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "KMS.InvalidStateException", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ + code: "KMS.InvalidStateException", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class KmsNotFound extends S.TaggedErrorClass()( "KmsNotFound", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "KMS.NotFoundException", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "KMS.NotFoundException", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class KmsOptInRequired extends S.TaggedErrorClass()( "KmsOptInRequired", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "KMS.OptInRequired", httpResponseCode: 403 }), + T.all( + T.AwsQueryError({ code: "KMS.OptInRequired", httpResponseCode: 403 }), + T.HttpError(403), + ), ).pipe(C.withAuthError) {} export class KmsThrottled extends S.TaggedErrorClass()( "KmsThrottled", { message: S.optional(S.String) }, - T.AwsQueryError({ code: "KMS.ThrottlingException", httpResponseCode: 400 }), + T.all( + T.AwsQueryError({ code: "KMS.ThrottlingException", httpResponseCode: 400 }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError, C.withThrottlingError, C.withRetryableError) {} export class InvalidMessageContents extends S.TaggedErrorClass()( "InvalidMessageContents", @@ -1226,10 +1297,13 @@ export class MissingRequiredParameterException extends S.TaggedErrorClass()( "BatchRequestTooLong", { message: S.optional(S.String) }, - T.AwsQueryError({ - code: "AWS.SimpleQueueService.BatchRequestTooLong", - httpResponseCode: 400, - }), + T.all( + T.AwsQueryError({ + code: "AWS.SimpleQueueService.BatchRequestTooLong", + httpResponseCode: 400, + }), + T.HttpError(400), + ), ).pipe(C.withBadRequestError) {} export class ParseError extends S.TaggedErrorClass()( "ParseError", diff --git a/packages/aws/src/services/ssm-contacts.ts b/packages/aws/src/services/ssm-contacts.ts index b2cc077f87..e92e669f2f 100644 --- a/packages/aws/src/services/ssm-contacts.ts +++ b/packages/aws/src/services/ssm-contacts.ts @@ -1542,6 +1542,7 @@ export const UpdateRotationResult = /*@__PURE__*/ S.suspend(() => export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { Message: S.String }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", @@ -1549,10 +1550,12 @@ export class InternalServerException extends S.TaggedErrorClass()( "ResourceNotFoundException", { Message: S.String, ResourceId: S.String, ResourceType: S.String }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", @@ -1562,6 +1565,7 @@ export class ThrottlingException extends S.TaggedErrorClass ServiceCode: S.optional(S.String), RetryAfterSeconds: S.optional(S.Number).pipe(T.HttpHeader("Retry-After")), }, + T.HttpError(429), ).pipe(C.withThrottlingError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", @@ -1570,6 +1574,19 @@ export class ValidationException extends S.TaggedErrorClass Reason: S.optional(ValidationExceptionReason), Fields: S.optional(ValidationExceptionFieldList), }, + T.HttpError(400), +).pipe(C.withBadRequestError) {} +export class IncidentManagerNotOnboarded extends S.TaggedErrorClass()( + "IncidentManagerNotOnboarded", + { + Message: S.String, + Reason: S.optional(ValidationExceptionReason), + Fields: S.optional(ValidationExceptionFieldList), + }, + T.SyntheticError({ + from: "ValidationException", + message: { includes: "Account not found for the request" }, + }), ).pipe(C.withBadRequestError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", @@ -1579,10 +1596,12 @@ export class ConflictException extends S.TaggedErrorClass()( ResourceType: S.String, DependentEntities: S.optional(DependentEntityList), }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class DataEncryptionException extends S.TaggedErrorClass()( "DataEncryptionException", { Message: S.String }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", @@ -1593,7 +1612,20 @@ export class ServiceQuotaExceededException extends S.TaggedErrorClass()( + "InvalidRotationArn", + { + Message: S.String, + Reason: S.optional(ValidationExceptionReason), + Fields: S.optional(ValidationExceptionFieldList), + }, + T.SyntheticError({ + from: "ValidationException", + message: { includes: "Invalid resource Arn" }, + }), +).pipe(C.withBadRequestError) {} //# Operations export type AcceptPageError = @@ -1602,6 +1634,7 @@ export type AcceptPageError = | ResourceNotFoundException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * Used to acknowledge an engagement to a contact channel during an incident. @@ -1620,6 +1653,7 @@ export const acceptPage: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "AcceptPage", })); @@ -1629,6 +1663,7 @@ export type ActivateContactChannelError = | ResourceNotFoundException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * Activates a contact's contact channel. Incident Manager can't engage a contact until the @@ -1648,6 +1683,7 @@ export const activateContactChannel: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "ActivateContactChannel", })); @@ -1659,6 +1695,7 @@ export type CreateContactError = | ServiceQuotaExceededException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * Contacts are either the contacts that Incident Manager engages during an incident or the @@ -1681,6 +1718,7 @@ export const createContact: API.OperationMethod< ServiceQuotaExceededException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "CreateContact", })); @@ -1691,6 +1729,7 @@ export type CreateContactChannelError = | InternalServerException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * A contact channel is the method that Incident Manager uses to engage your contact. @@ -1710,6 +1749,7 @@ export const createContactChannel: API.OperationMethod< InternalServerException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "CreateContactChannel", })); @@ -1720,6 +1760,8 @@ export type CreateRotationError = | ServiceQuotaExceededException | ThrottlingException | ValidationException + | ConflictException + | IncidentManagerNotOnboarded | CommonErrors; /** * Creates a rotation in an on-call schedule. @@ -1739,6 +1781,8 @@ export const createRotation: API.OperationMethod< ServiceQuotaExceededException, ThrottlingException, ValidationException, + ConflictException, + IncidentManagerNotOnboarded, ], operationName: "CreateRotation", })); @@ -1749,6 +1793,8 @@ export type CreateRotationOverrideError = | ServiceQuotaExceededException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded + | InvalidRotationArn | CommonErrors; /** * Creates an override for a rotation in an on-call schedule. @@ -1768,6 +1814,8 @@ export const createRotationOverride: API.OperationMethod< ServiceQuotaExceededException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, + InvalidRotationArn, ], operationName: "CreateRotationOverride", })); @@ -1777,6 +1825,7 @@ export type DeactivateContactChannelError = | ResourceNotFoundException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * To no longer receive Incident Manager engagements to a contact channel, you can deactivate @@ -1796,6 +1845,7 @@ export const deactivateContactChannel: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "DeactivateContactChannel", })); @@ -1806,6 +1856,7 @@ export type DeleteContactError = | ResourceNotFoundException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * To remove a contact from Incident Manager, you can delete the contact. However, deleting a @@ -1829,6 +1880,7 @@ export const deleteContact: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "DeleteContact", })); @@ -1838,6 +1890,7 @@ export type DeleteContactChannelError = | ResourceNotFoundException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * To stop receiving engagements on a contact channel, you can delete the channel from a @@ -1860,6 +1913,7 @@ export const deleteContactChannel: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "DeleteContactChannel", })); @@ -1870,6 +1924,8 @@ export type DeleteRotationError = | ResourceNotFoundException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded + | InvalidRotationArn | CommonErrors; /** * Deletes a rotation from the system. If a rotation belongs to more than one on-call @@ -1890,6 +1946,8 @@ export const deleteRotation: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, + InvalidRotationArn, ], operationName: "DeleteRotation", })); @@ -1899,6 +1957,8 @@ export type DeleteRotationOverrideError = | ResourceNotFoundException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded + | InvalidRotationArn | CommonErrors; /** * Deletes an existing override for an on-call rotation. @@ -1917,6 +1977,8 @@ export const deleteRotationOverride: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, + InvalidRotationArn, ], operationName: "DeleteRotationOverride", })); @@ -1927,6 +1989,7 @@ export type DescribeEngagementError = | ResourceNotFoundException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * Incident Manager uses engagements to engage contacts and escalation plans during an incident. @@ -1947,6 +2010,7 @@ export const describeEngagement: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "DescribeEngagement", })); @@ -1957,6 +2021,7 @@ export type DescribePageError = | ResourceNotFoundException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * Lists details of the engagement to a contact channel. @@ -1976,6 +2041,7 @@ export const describePage: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "DescribePage", })); @@ -1986,6 +2052,7 @@ export type GetContactError = | ResourceNotFoundException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * Retrieves information about the specified contact or escalation plan. @@ -2005,6 +2072,7 @@ export const getContact: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "GetContact", })); @@ -2015,6 +2083,7 @@ export type GetContactChannelError = | ResourceNotFoundException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * List details about a specific contact channel. @@ -2034,6 +2103,7 @@ export const getContactChannel: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "GetContactChannel", })); @@ -2043,6 +2113,7 @@ export type GetContactPolicyError = | ResourceNotFoundException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * Retrieves the resource policies attached to the specified contact or escalation @@ -2062,6 +2133,7 @@ export const getContactPolicy: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "GetContactPolicy", })); @@ -2071,6 +2143,8 @@ export type GetRotationError = | ResourceNotFoundException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded + | InvalidRotationArn | CommonErrors; /** * Retrieves information about an on-call rotation. @@ -2089,6 +2163,8 @@ export const getRotation: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, + InvalidRotationArn, ], operationName: "GetRotation", })); @@ -2098,6 +2174,8 @@ export type GetRotationOverrideError = | ResourceNotFoundException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded + | InvalidRotationArn | CommonErrors; /** * Retrieves information about an override to an on-call rotation. @@ -2116,6 +2194,8 @@ export const getRotationOverride: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, + InvalidRotationArn, ], operationName: "GetRotationOverride", })); @@ -2126,6 +2206,7 @@ export type ListContactChannelsError = | ResourceNotFoundException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * Lists all contact channels for the specified contact. @@ -2160,6 +2241,7 @@ export const listContactChannels: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "ListContactChannels", pagination: { @@ -2174,6 +2256,7 @@ export type ListContactsError = | InternalServerException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * Lists all contacts and escalation plans in Incident Manager. @@ -2206,6 +2289,7 @@ export const listContacts: API.OperationMethod< InternalServerException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "ListContacts", pagination: { @@ -2220,6 +2304,7 @@ export type ListEngagementsError = | InternalServerException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * Lists all engagements that have happened in an incident. @@ -2252,6 +2337,7 @@ export const listEngagements: API.OperationMethod< InternalServerException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "ListEngagements", pagination: { @@ -2267,6 +2353,7 @@ export type ListPageReceiptsError = | ResourceNotFoundException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * Lists all of the engagements to contact channels that have been acknowledged. @@ -2300,6 +2387,7 @@ export const listPageReceipts: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "ListPageReceipts", pagination: { @@ -2315,6 +2403,7 @@ export type ListPageResolutionsError = | ResourceNotFoundException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * Returns the resolution path of an engagement. For example, the escalation plan engaged @@ -2352,6 +2441,7 @@ export const listPageResolutions: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "ListPageResolutions", pagination: { @@ -2366,6 +2456,7 @@ export type ListPagesByContactError = | ResourceNotFoundException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * Lists the engagements to a contact's contact channels. @@ -2399,6 +2490,7 @@ export const listPagesByContact: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "ListPagesByContact", pagination: { @@ -2414,6 +2506,7 @@ export type ListPagesByEngagementError = | ResourceNotFoundException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * Lists the engagements to contact channels that occurred by engaging a contact. @@ -2447,6 +2540,7 @@ export const listPagesByEngagement: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "ListPagesByEngagement", pagination: { @@ -2461,6 +2555,7 @@ export type ListPreviewRotationShiftsError = | InternalServerException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * Returns a list of shifts based on rotation configuration parameters. @@ -2495,6 +2590,7 @@ export const listPreviewRotationShifts: API.OperationMethod< InternalServerException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "ListPreviewRotationShifts", pagination: { @@ -2510,6 +2606,8 @@ export type ListRotationOverridesError = | ResourceNotFoundException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded + | InvalidRotationArn | CommonErrors; /** * Retrieves a list of overrides currently specified for an on-call rotation. @@ -2543,6 +2641,8 @@ export const listRotationOverrides: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, + InvalidRotationArn, ], operationName: "ListRotationOverrides", pagination: { @@ -2558,6 +2658,7 @@ export type ListRotationsError = | ResourceNotFoundException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * Retrieves a list of on-call rotations. @@ -2591,6 +2692,7 @@ export const listRotations: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "ListRotations", pagination: { @@ -2607,6 +2709,8 @@ export type ListRotationShiftsError = | ResourceNotFoundException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded + | InvalidRotationArn | CommonErrors; /** * Returns a list of shifts generated by an existing rotation in the system. @@ -2641,6 +2745,8 @@ export const listRotationShifts: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, + InvalidRotationArn, ], operationName: "ListRotationShifts", pagination: { @@ -2656,6 +2762,7 @@ export type ListTagsForResourceError = | ResourceNotFoundException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * Lists the tags of a contact, escalation plan, rotation, or on-call schedule. @@ -2674,6 +2781,7 @@ export const listTagsForResource: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "ListTagsForResource", })); @@ -2684,6 +2792,7 @@ export type PutContactPolicyError = | ResourceNotFoundException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * Adds a resource policy to the specified contact or escalation plan. The resource policy @@ -2705,6 +2814,7 @@ export const putContactPolicy: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "PutContactPolicy", })); @@ -2716,6 +2826,7 @@ export type SendActivationCodeError = | ServiceQuotaExceededException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * Sends an activation code to a contact channel. The contact can use this code to activate @@ -2738,6 +2849,7 @@ export const sendActivationCode: API.OperationMethod< ServiceQuotaExceededException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "SendActivationCode", })); @@ -2748,6 +2860,7 @@ export type StartEngagementError = | ResourceNotFoundException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * Starts an engagement to a contact or escalation plan. The engagement engages each @@ -2768,6 +2881,7 @@ export const startEngagement: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "StartEngagement", })); @@ -2777,6 +2891,7 @@ export type StopEngagementError = | ResourceNotFoundException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * Stops an engagement before it finishes the final stage of the escalation plan or @@ -2796,6 +2911,7 @@ export const stopEngagement: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "StopEngagement", })); @@ -2806,6 +2922,7 @@ export type TagResourceError = | ServiceQuotaExceededException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * Tags a contact or escalation plan. You can tag only contacts and escalation plans in the @@ -2826,6 +2943,7 @@ export const tagResource: API.OperationMethod< ServiceQuotaExceededException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "TagResource", })); @@ -2835,6 +2953,7 @@ export type UntagResourceError = | ResourceNotFoundException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * Removes tags from the specified resource. @@ -2853,6 +2972,7 @@ export const untagResource: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "UntagResource", })); @@ -2864,6 +2984,7 @@ export type UpdateContactError = | ServiceQuotaExceededException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * Updates the contact or escalation plan specified. @@ -2884,6 +3005,7 @@ export const updateContact: API.OperationMethod< ServiceQuotaExceededException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "UpdateContact", })); @@ -2895,6 +3017,7 @@ export type UpdateContactChannelError = | ResourceNotFoundException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded | CommonErrors; /** * Updates a contact's contact channel. @@ -2915,6 +3038,7 @@ export const updateContactChannel: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, ], operationName: "UpdateContactChannel", })); @@ -2925,6 +3049,8 @@ export type UpdateRotationError = | ResourceNotFoundException | ThrottlingException | ValidationException + | IncidentManagerNotOnboarded + | InvalidRotationArn | CommonErrors; /** * Updates the information specified for an on-call rotation. @@ -2944,6 +3070,8 @@ export const updateRotation: API.OperationMethod< ResourceNotFoundException, ThrottlingException, ValidationException, + IncidentManagerNotOnboarded, + InvalidRotationArn, ], operationName: "UpdateRotation", })); diff --git a/packages/aws/src/services/ssm-incidents.ts b/packages/aws/src/services/ssm-incidents.ts index fc79323c38..6176529b7a 100644 --- a/packages/aws/src/services/ssm-incidents.ts +++ b/packages/aws/src/services/ssm-incidents.ts @@ -1726,6 +1726,10 @@ export class ServiceQuotaExceededException extends S.TaggedErrorClass()( + "UnsupportedOperationException", + {}, +).pipe(C.withBadRequestError) {} //# Operations export type BatchGetIncidentFindingsError = @@ -1765,6 +1769,7 @@ export type CreateReplicationSetError = | ServiceQuotaExceededException | ThrottlingException | ValidationException + | UnsupportedOperationException | CommonErrors; /** * A replication set replicates and encrypts your data to the provided Regions with the @@ -1785,6 +1790,7 @@ export const createReplicationSet: API.OperationMethod< ServiceQuotaExceededException, ThrottlingException, ValidationException, + UnsupportedOperationException, ], operationName: "CreateReplicationSet", })); diff --git a/packages/aws/src/services/synthetics.ts b/packages/aws/src/services/synthetics.ts index 2e4ac939ac..c15744ba1b 100644 --- a/packages/aws/src/services/synthetics.ts +++ b/packages/aws/src/services/synthetics.ts @@ -1887,6 +1887,7 @@ export const disassociateResource: API.OperationMethod< export type GetCanaryError = | InternalServerException | ValidationException + | ResourceNotFoundException | CommonErrors; /** * Retrieves complete information about one canary. You must specify @@ -1901,7 +1902,11 @@ export const getCanary: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetCanaryRequest, output: GetCanaryResponse, - errors: [InternalServerException, ValidationException], + errors: [ + InternalServerException, + ValidationException, + ResourceNotFoundException, + ], operationName: "GetCanary", })); export type GetCanaryRunsError = diff --git a/packages/aws/src/services/timestream-query.ts b/packages/aws/src/services/timestream-query.ts index e48e1bfdb3..229aecbd9c 100644 --- a/packages/aws/src/services/timestream-query.ts +++ b/packages/aws/src/services/timestream-query.ts @@ -1225,6 +1225,16 @@ export class ResourceNotFoundException extends S.TaggedErrorClass()( + "TimestreamNotOnboarded", + { Message: S.optional(S.String) }, + T.SyntheticError({ + from: "AccessDeniedException", + message: { + includes: "Only existing Timestream for LiveAnalytics customers", + }, + }), +).pipe(C.withAuthError) {} export class QueryExecutionException extends S.TaggedErrorClass()( "QueryExecutionException", { Message: S.optional(S.String) }, @@ -1358,6 +1368,7 @@ export type DescribeEndpointsError = | InternalServerException | ThrottlingException | ValidationException + | TimestreamNotOnboarded | CommonErrors; /** * DescribeEndpoints returns a list of available endpoints to make Timestream @@ -1385,7 +1396,12 @@ export const describeEndpoints: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeEndpointsRequest, output: DescribeEndpointsResponse, - errors: [InternalServerException, ThrottlingException, ValidationException], + errors: [ + InternalServerException, + ThrottlingException, + ValidationException, + TimestreamNotOnboarded, + ], operationName: "DescribeEndpoints", })); export type DescribeScheduledQueryError = @@ -1580,6 +1596,7 @@ export type QueryError = | QueryExecutionException | ThrottlingException | ValidationException + | TimestreamNotOnboarded | CommonErrors; /** * `Query` is a synchronous operation that enables you to run a query against @@ -1644,6 +1661,7 @@ export const query: API.OperationMethod< QueryExecutionException, ThrottlingException, ValidationException, + TimestreamNotOnboarded, ], operationName: "Query", pagination: { diff --git a/packages/aws/src/services/timestream-write.ts b/packages/aws/src/services/timestream-write.ts index e103f80d90..b6acac3077 100644 --- a/packages/aws/src/services/timestream-write.ts +++ b/packages/aws/src/services/timestream-write.ts @@ -1088,6 +1088,16 @@ export class ValidationException extends S.TaggedErrorClass "ValidationException", { Message: S.String }, ).pipe(C.withBadRequestError) {} +export class TimestreamNotOnboarded extends S.TaggedErrorClass()( + "TimestreamNotOnboarded", + { Message: S.String }, + T.SyntheticError({ + from: "AccessDeniedException", + message: { + includes: "Only existing Timestream for LiveAnalytics customers", + }, + }), +).pipe(C.withAuthError) {} export class RejectedRecordsException extends S.TaggedErrorClass()( "RejectedRecordsException", { @@ -1146,6 +1156,7 @@ export type CreateDatabaseError = | ServiceQuotaExceededException | ThrottlingException | ValidationException + | TimestreamNotOnboarded | CommonErrors; /** * Creates a new Timestream database. If the KMS key is not @@ -1168,6 +1179,7 @@ export const createDatabase: API.OperationMethod< ServiceQuotaExceededException, ThrottlingException, ValidationException, + TimestreamNotOnboarded, ], operationName: "CreateDatabase", })); @@ -1352,6 +1364,7 @@ export type DescribeEndpointsError = | InternalServerException | ThrottlingException | ValidationException + | TimestreamNotOnboarded | CommonErrors; /** * Returns a list of available endpoints to make Timestream API calls against. @@ -1380,7 +1393,12 @@ export const describeEndpoints: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DescribeEndpointsRequest, output: DescribeEndpointsResponse, - errors: [InternalServerException, ThrottlingException, ValidationException], + errors: [ + InternalServerException, + ThrottlingException, + ValidationException, + TimestreamNotOnboarded, + ], operationName: "DescribeEndpoints", })); export type DescribeTableError = diff --git a/packages/aws/src/services/verifiedpermissions.ts b/packages/aws/src/services/verifiedpermissions.ts index e926f2d1df..2e30192cd6 100644 --- a/packages/aws/src/services/verifiedpermissions.ts +++ b/packages/aws/src/services/verifiedpermissions.ts @@ -433,10 +433,7 @@ export interface ListPolicyStoresOutput { policyStores: PolicyStoreItem[]; } export const ListPolicyStoresOutput = /*@__PURE__*/ S.suspend(() => - S.Struct({ - nextToken: S.optional(S.String), - policyStores: PolicyStoreList, - }), + S.Struct({ nextToken: S.optional(S.String), policyStores: PolicyStoreList }), ).annotate({ identifier: "ListPolicyStoresOutput", }) as any as S.Schema; @@ -884,17 +881,16 @@ export interface BatchIsAuthorizedOutputItem { determiningPolicies: DeterminingPolicyItem[]; errors: EvaluationErrorItem[]; } -export const BatchIsAuthorizedOutputItem = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - request: BatchIsAuthorizedInputItem, - decision: Decision, - determiningPolicies: DeterminingPolicyList, - errors: EvaluationErrorList, - }), - ).annotate({ - identifier: "BatchIsAuthorizedOutputItem", - }) as any as S.Schema; +export const BatchIsAuthorizedOutputItem = /*@__PURE__*/ S.suspend(() => + S.Struct({ + request: BatchIsAuthorizedInputItem, + decision: Decision, + determiningPolicies: DeterminingPolicyList, + errors: EvaluationErrorList, + }), +).annotate({ + identifier: "BatchIsAuthorizedOutputItem", +}) as any as S.Schema; export type BatchIsAuthorizedOutputList = BatchIsAuthorizedOutputItem[]; export const BatchIsAuthorizedOutputList = /*@__PURE__*/ S.Array( BatchIsAuthorizedOutputItem, @@ -912,20 +908,20 @@ export interface BatchIsAuthorizedWithTokenInputItem { resource?: EntityIdentifier; context?: ContextDefinition; } -export const BatchIsAuthorizedWithTokenInputItem = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - action: S.optional(ActionIdentifier), - resource: S.optional(EntityIdentifier), - context: S.optional(ContextDefinition), - }), - ).annotate({ - identifier: "BatchIsAuthorizedWithTokenInputItem", - }) as any as S.Schema; +export const BatchIsAuthorizedWithTokenInputItem = /*@__PURE__*/ S.suspend(() => + S.Struct({ + action: S.optional(ActionIdentifier), + resource: S.optional(EntityIdentifier), + context: S.optional(ContextDefinition), + }), +).annotate({ + identifier: "BatchIsAuthorizedWithTokenInputItem", +}) as any as S.Schema; export type BatchIsAuthorizedWithTokenInputList = BatchIsAuthorizedWithTokenInputItem[]; -export const BatchIsAuthorizedWithTokenInputList = - /*@__PURE__*/ S.Array(BatchIsAuthorizedWithTokenInputItem); +export const BatchIsAuthorizedWithTokenInputList = /*@__PURE__*/ S.Array( + BatchIsAuthorizedWithTokenInputItem, +); export interface BatchIsAuthorizedWithTokenInput { policyStoreId: string; identityToken?: string | redacted.Redacted; @@ -933,54 +929,53 @@ export interface BatchIsAuthorizedWithTokenInput { entities?: EntitiesDefinition; requests: BatchIsAuthorizedWithTokenInputItem[]; } -export const BatchIsAuthorizedWithTokenInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - policyStoreId: S.String, - identityToken: S.optional(SensitiveString), - accessToken: S.optional(SensitiveString), - entities: S.optional(EntitiesDefinition), - requests: BatchIsAuthorizedWithTokenInputList, - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "BatchIsAuthorizedWithTokenInput", - }) as any as S.Schema; +export const BatchIsAuthorizedWithTokenInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + policyStoreId: S.String, + identityToken: S.optional(SensitiveString), + accessToken: S.optional(SensitiveString), + entities: S.optional(EntitiesDefinition), + requests: BatchIsAuthorizedWithTokenInputList, + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "BatchIsAuthorizedWithTokenInput", +}) as any as S.Schema; export interface BatchIsAuthorizedWithTokenOutputItem { request: BatchIsAuthorizedWithTokenInputItem; decision: Decision; determiningPolicies: DeterminingPolicyItem[]; errors: EvaluationErrorItem[]; } -export const BatchIsAuthorizedWithTokenOutputItem = - /*@__PURE__*/ S.suspend(() => +export const BatchIsAuthorizedWithTokenOutputItem = /*@__PURE__*/ S.suspend( + () => S.Struct({ request: BatchIsAuthorizedWithTokenInputItem, decision: Decision, determiningPolicies: DeterminingPolicyList, errors: EvaluationErrorList, }), - ).annotate({ - identifier: "BatchIsAuthorizedWithTokenOutputItem", - }) as any as S.Schema; +).annotate({ + identifier: "BatchIsAuthorizedWithTokenOutputItem", +}) as any as S.Schema; export type BatchIsAuthorizedWithTokenOutputList = BatchIsAuthorizedWithTokenOutputItem[]; -export const BatchIsAuthorizedWithTokenOutputList = - /*@__PURE__*/ S.Array(BatchIsAuthorizedWithTokenOutputItem); +export const BatchIsAuthorizedWithTokenOutputList = /*@__PURE__*/ S.Array( + BatchIsAuthorizedWithTokenOutputItem, +); export interface BatchIsAuthorizedWithTokenOutput { principal?: EntityIdentifier; results: BatchIsAuthorizedWithTokenOutputItem[]; } -export const BatchIsAuthorizedWithTokenOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - principal: S.optional(EntityIdentifier), - results: BatchIsAuthorizedWithTokenOutputList, - }), - ).annotate({ - identifier: "BatchIsAuthorizedWithTokenOutput", - }) as any as S.Schema; +export const BatchIsAuthorizedWithTokenOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + principal: S.optional(EntityIdentifier), + results: BatchIsAuthorizedWithTokenOutputList, + }), +).annotate({ + identifier: "BatchIsAuthorizedWithTokenOutput", +}) as any as S.Schema; export interface GetSchemaInput { policyStoreId: string; } @@ -989,14 +984,14 @@ export const GetSchemaInput = /*@__PURE__*/ S.suspend(() => T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), ), ).annotate({ identifier: "GetSchemaInput" }) as any as S.Schema; -export type NamespaceList = string | redacted.Redacted[]; +export type NamespaceList = (string | redacted.Redacted)[]; export const NamespaceList = /*@__PURE__*/ S.Array(SensitiveString); export interface GetSchemaOutput { policyStoreId: string; schema: string | redacted.Redacted; createdDate: Date; lastUpdatedDate: Date; - namespaces?: string | redacted.Redacted[]; + namespaces?: (string | redacted.Redacted)[]; } export const GetSchemaOutput = /*@__PURE__*/ S.suspend(() => S.Struct({ @@ -1075,17 +1070,16 @@ export interface IsAuthorizedWithTokenOutput { errors: EvaluationErrorItem[]; principal?: EntityIdentifier; } -export const IsAuthorizedWithTokenOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - decision: Decision, - determiningPolicies: DeterminingPolicyList, - errors: EvaluationErrorList, - principal: S.optional(EntityIdentifier), - }), - ).annotate({ - identifier: "IsAuthorizedWithTokenOutput", - }) as any as S.Schema; +export const IsAuthorizedWithTokenOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + decision: Decision, + determiningPolicies: DeterminingPolicyList, + errors: EvaluationErrorList, + principal: S.optional(EntityIdentifier), + }), +).annotate({ + identifier: "IsAuthorizedWithTokenOutput", +}) as any as S.Schema; export type SchemaDefinition = { cedarJson: string | redacted.Redacted; }; @@ -1103,7 +1097,7 @@ export const PutSchemaInput = /*@__PURE__*/ S.suspend(() => ).annotate({ identifier: "PutSchemaInput" }) as any as S.Schema; export interface PutSchemaOutput { policyStoreId: string; - namespaces: string | redacted.Redacted[]; + namespaces: (string | redacted.Redacted)[]; createdDate: Date; lastUpdatedDate: Date; } @@ -1146,30 +1140,29 @@ export interface StaticPolicyDefinitionDetail { description?: string | redacted.Redacted; statement: string | redacted.Redacted; } -export const StaticPolicyDefinitionDetail = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - description: S.optional(SensitiveString), - statement: SensitiveString, - }), - ).annotate({ - identifier: "StaticPolicyDefinitionDetail", - }) as any as S.Schema; +export const StaticPolicyDefinitionDetail = /*@__PURE__*/ S.suspend(() => + S.Struct({ + description: S.optional(SensitiveString), + statement: SensitiveString, + }), +).annotate({ + identifier: "StaticPolicyDefinitionDetail", +}) as any as S.Schema; export interface TemplateLinkedPolicyDefinitionDetail { policyTemplateId: string; principal?: EntityIdentifier; resource?: EntityIdentifier; } -export const TemplateLinkedPolicyDefinitionDetail = - /*@__PURE__*/ S.suspend(() => +export const TemplateLinkedPolicyDefinitionDetail = /*@__PURE__*/ S.suspend( + () => S.Struct({ policyTemplateId: S.String, principal: S.optional(EntityIdentifier), resource: S.optional(EntityIdentifier), }), - ).annotate({ - identifier: "TemplateLinkedPolicyDefinitionDetail", - }) as any as S.Schema; +).annotate({ + identifier: "TemplateLinkedPolicyDefinitionDetail", +}) as any as S.Schema; export type PolicyDefinitionDetail = | { static: StaticPolicyDefinitionDetail; templateLinked?: never } | { static?: never; templateLinked: TemplateLinkedPolicyDefinitionDetail }; @@ -1241,7 +1234,7 @@ export const BatchGetPolicyOutput = /*@__PURE__*/ S.suspend(() => ).annotate({ identifier: "BatchGetPolicyOutput", }) as any as S.Schema; -export type ClientIds = string | redacted.Redacted[]; +export type ClientIds = (string | redacted.Redacted)[]; export const ClientIds = /*@__PURE__*/ S.Array(SensitiveString); export interface CognitoGroupConfiguration { groupEntityType: string | redacted.Redacted; @@ -1253,57 +1246,55 @@ export const CognitoGroupConfiguration = /*@__PURE__*/ S.suspend(() => }) as any as S.Schema; export interface CognitoUserPoolConfiguration { userPoolArn: string; - clientIds?: string | redacted.Redacted[]; + clientIds?: (string | redacted.Redacted)[]; groupConfiguration?: CognitoGroupConfiguration; } -export const CognitoUserPoolConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - userPoolArn: S.String, - clientIds: S.optional(ClientIds), - groupConfiguration: S.optional(CognitoGroupConfiguration), - }), - ).annotate({ - identifier: "CognitoUserPoolConfiguration", - }) as any as S.Schema; +export const CognitoUserPoolConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + userPoolArn: S.String, + clientIds: S.optional(ClientIds), + groupConfiguration: S.optional(CognitoGroupConfiguration), + }), +).annotate({ + identifier: "CognitoUserPoolConfiguration", +}) as any as S.Schema; export interface OpenIdConnectGroupConfiguration { groupClaim: string | redacted.Redacted; groupEntityType: string | redacted.Redacted; } -export const OpenIdConnectGroupConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ groupClaim: SensitiveString, groupEntityType: SensitiveString }), - ).annotate({ - identifier: "OpenIdConnectGroupConfiguration", - }) as any as S.Schema; +export const OpenIdConnectGroupConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ groupClaim: SensitiveString, groupEntityType: SensitiveString }), +).annotate({ + identifier: "OpenIdConnectGroupConfiguration", +}) as any as S.Schema; export type Audiences = string[]; export const Audiences = /*@__PURE__*/ S.Array(S.String); export interface OpenIdConnectAccessTokenConfiguration { principalIdClaim?: string | redacted.Redacted; audiences?: string[]; } -export const OpenIdConnectAccessTokenConfiguration = - /*@__PURE__*/ S.suspend(() => +export const OpenIdConnectAccessTokenConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ principalIdClaim: S.optional(SensitiveString), audiences: S.optional(Audiences), }), - ).annotate({ - identifier: "OpenIdConnectAccessTokenConfiguration", - }) as any as S.Schema; +).annotate({ + identifier: "OpenIdConnectAccessTokenConfiguration", +}) as any as S.Schema; export interface OpenIdConnectIdentityTokenConfiguration { principalIdClaim?: string | redacted.Redacted; - clientIds?: string | redacted.Redacted[]; + clientIds?: (string | redacted.Redacted)[]; } -export const OpenIdConnectIdentityTokenConfiguration = - /*@__PURE__*/ S.suspend(() => +export const OpenIdConnectIdentityTokenConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ principalIdClaim: S.optional(SensitiveString), clientIds: S.optional(ClientIds), }), - ).annotate({ - identifier: "OpenIdConnectIdentityTokenConfiguration", - }) as any as S.Schema; +).annotate({ + identifier: "OpenIdConnectIdentityTokenConfiguration", +}) as any as S.Schema; export type OpenIdConnectTokenSelection = | { accessTokenOnly: OpenIdConnectAccessTokenConfiguration; @@ -1394,7 +1385,7 @@ export const GetIdentitySourceInput = /*@__PURE__*/ S.suspend(() => export type OpenIdIssuer = "COGNITO" | (string & {}); export const OpenIdIssuer = /*@__PURE__*/ S.String; export interface IdentitySourceDetails { - clientIds?: string | redacted.Redacted[]; + clientIds?: (string | redacted.Redacted)[]; userPoolArn?: string; discoveryUrl?: string; openIdIssuer?: OpenIdIssuer; @@ -1412,39 +1403,37 @@ export const IdentitySourceDetails = /*@__PURE__*/ S.suspend(() => export interface CognitoGroupConfigurationDetail { groupEntityType?: string | redacted.Redacted; } -export const CognitoGroupConfigurationDetail = - /*@__PURE__*/ S.suspend(() => - S.Struct({ groupEntityType: S.optional(SensitiveString) }), - ).annotate({ - identifier: "CognitoGroupConfigurationDetail", - }) as any as S.Schema; +export const CognitoGroupConfigurationDetail = /*@__PURE__*/ S.suspend(() => + S.Struct({ groupEntityType: S.optional(SensitiveString) }), +).annotate({ + identifier: "CognitoGroupConfigurationDetail", +}) as any as S.Schema; export interface CognitoUserPoolConfigurationDetail { userPoolArn: string; - clientIds: string | redacted.Redacted[]; + clientIds: (string | redacted.Redacted)[]; issuer: string; groupConfiguration?: CognitoGroupConfigurationDetail; } -export const CognitoUserPoolConfigurationDetail = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - userPoolArn: S.String, - clientIds: ClientIds, - issuer: S.String, - groupConfiguration: S.optional(CognitoGroupConfigurationDetail), - }), - ).annotate({ - identifier: "CognitoUserPoolConfigurationDetail", - }) as any as S.Schema; +export const CognitoUserPoolConfigurationDetail = /*@__PURE__*/ S.suspend(() => + S.Struct({ + userPoolArn: S.String, + clientIds: ClientIds, + issuer: S.String, + groupConfiguration: S.optional(CognitoGroupConfigurationDetail), + }), +).annotate({ + identifier: "CognitoUserPoolConfigurationDetail", +}) as any as S.Schema; export interface OpenIdConnectGroupConfigurationDetail { groupClaim: string | redacted.Redacted; groupEntityType: string | redacted.Redacted; } -export const OpenIdConnectGroupConfigurationDetail = - /*@__PURE__*/ S.suspend(() => +export const OpenIdConnectGroupConfigurationDetail = /*@__PURE__*/ S.suspend( + () => S.Struct({ groupClaim: SensitiveString, groupEntityType: SensitiveString }), - ).annotate({ - identifier: "OpenIdConnectGroupConfigurationDetail", - }) as any as S.Schema; +).annotate({ + identifier: "OpenIdConnectGroupConfigurationDetail", +}) as any as S.Schema; export interface OpenIdConnectAccessTokenConfigurationDetail { principalIdClaim?: string | redacted.Redacted; audiences?: string[]; @@ -1460,7 +1449,7 @@ export const OpenIdConnectAccessTokenConfigurationDetail = }) as any as S.Schema; export interface OpenIdConnectIdentityTokenConfigurationDetail { principalIdClaim?: string | redacted.Redacted; - clientIds?: string | redacted.Redacted[]; + clientIds?: (string | redacted.Redacted)[]; } export const OpenIdConnectIdentityTokenConfigurationDetail = /*@__PURE__*/ S.suspend(() => @@ -1480,30 +1469,28 @@ export type OpenIdConnectTokenSelectionDetail = accessTokenOnly?: never; identityTokenOnly: OpenIdConnectIdentityTokenConfigurationDetail; }; -export const OpenIdConnectTokenSelectionDetail = - /*@__PURE__*/ S.Union([ - S.Struct({ accessTokenOnly: OpenIdConnectAccessTokenConfigurationDetail }), - S.Struct({ - identityTokenOnly: OpenIdConnectIdentityTokenConfigurationDetail, - }), - ]); +export const OpenIdConnectTokenSelectionDetail = /*@__PURE__*/ S.Union([ + S.Struct({ accessTokenOnly: OpenIdConnectAccessTokenConfigurationDetail }), + S.Struct({ + identityTokenOnly: OpenIdConnectIdentityTokenConfigurationDetail, + }), +]); export interface OpenIdConnectConfigurationDetail { issuer: string; entityIdPrefix?: string | redacted.Redacted; groupConfiguration?: OpenIdConnectGroupConfigurationDetail; tokenSelection: OpenIdConnectTokenSelectionDetail; } -export const OpenIdConnectConfigurationDetail = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - issuer: S.String, - entityIdPrefix: S.optional(SensitiveString), - groupConfiguration: S.optional(OpenIdConnectGroupConfigurationDetail), - tokenSelection: OpenIdConnectTokenSelectionDetail, - }), - ).annotate({ - identifier: "OpenIdConnectConfigurationDetail", - }) as any as S.Schema; +export const OpenIdConnectConfigurationDetail = /*@__PURE__*/ S.suspend(() => + S.Struct({ + issuer: S.String, + entityIdPrefix: S.optional(SensitiveString), + groupConfiguration: S.optional(OpenIdConnectGroupConfigurationDetail), + tokenSelection: OpenIdConnectTokenSelectionDetail, + }), +).annotate({ + identifier: "OpenIdConnectConfigurationDetail", +}) as any as S.Schema; export type ConfigurationDetail = | { cognitoUserPoolConfiguration: CognitoUserPoolConfigurationDetail; @@ -1544,37 +1531,35 @@ export const GetIdentitySourceOutput = /*@__PURE__*/ S.suspend(() => export interface UpdateCognitoGroupConfiguration { groupEntityType: string | redacted.Redacted; } -export const UpdateCognitoGroupConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ groupEntityType: SensitiveString }), - ).annotate({ - identifier: "UpdateCognitoGroupConfiguration", - }) as any as S.Schema; +export const UpdateCognitoGroupConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ groupEntityType: SensitiveString }), +).annotate({ + identifier: "UpdateCognitoGroupConfiguration", +}) as any as S.Schema; export interface UpdateCognitoUserPoolConfiguration { userPoolArn: string; - clientIds?: string | redacted.Redacted[]; + clientIds?: (string | redacted.Redacted)[]; groupConfiguration?: UpdateCognitoGroupConfiguration; } -export const UpdateCognitoUserPoolConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - userPoolArn: S.String, - clientIds: S.optional(ClientIds), - groupConfiguration: S.optional(UpdateCognitoGroupConfiguration), - }), - ).annotate({ - identifier: "UpdateCognitoUserPoolConfiguration", - }) as any as S.Schema; +export const UpdateCognitoUserPoolConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + userPoolArn: S.String, + clientIds: S.optional(ClientIds), + groupConfiguration: S.optional(UpdateCognitoGroupConfiguration), + }), +).annotate({ + identifier: "UpdateCognitoUserPoolConfiguration", +}) as any as S.Schema; export interface UpdateOpenIdConnectGroupConfiguration { groupClaim: string | redacted.Redacted; groupEntityType: string | redacted.Redacted; } -export const UpdateOpenIdConnectGroupConfiguration = - /*@__PURE__*/ S.suspend(() => +export const UpdateOpenIdConnectGroupConfiguration = /*@__PURE__*/ S.suspend( + () => S.Struct({ groupClaim: SensitiveString, groupEntityType: SensitiveString }), - ).annotate({ - identifier: "UpdateOpenIdConnectGroupConfiguration", - }) as any as S.Schema; +).annotate({ + identifier: "UpdateOpenIdConnectGroupConfiguration", +}) as any as S.Schema; export interface UpdateOpenIdConnectAccessTokenConfiguration { principalIdClaim?: string | redacted.Redacted; audiences?: string[]; @@ -1590,7 +1575,7 @@ export const UpdateOpenIdConnectAccessTokenConfiguration = }) as any as S.Schema; export interface UpdateOpenIdConnectIdentityTokenConfiguration { principalIdClaim?: string | redacted.Redacted; - clientIds?: string | redacted.Redacted[]; + clientIds?: (string | redacted.Redacted)[]; } export const UpdateOpenIdConnectIdentityTokenConfiguration = /*@__PURE__*/ S.suspend(() => @@ -1610,30 +1595,28 @@ export type UpdateOpenIdConnectTokenSelection = accessTokenOnly?: never; identityTokenOnly: UpdateOpenIdConnectIdentityTokenConfiguration; }; -export const UpdateOpenIdConnectTokenSelection = - /*@__PURE__*/ S.Union([ - S.Struct({ accessTokenOnly: UpdateOpenIdConnectAccessTokenConfiguration }), - S.Struct({ - identityTokenOnly: UpdateOpenIdConnectIdentityTokenConfiguration, - }), - ]); +export const UpdateOpenIdConnectTokenSelection = /*@__PURE__*/ S.Union([ + S.Struct({ accessTokenOnly: UpdateOpenIdConnectAccessTokenConfiguration }), + S.Struct({ + identityTokenOnly: UpdateOpenIdConnectIdentityTokenConfiguration, + }), +]); export interface UpdateOpenIdConnectConfiguration { issuer: string; entityIdPrefix?: string | redacted.Redacted; groupConfiguration?: UpdateOpenIdConnectGroupConfiguration; tokenSelection: UpdateOpenIdConnectTokenSelection; } -export const UpdateOpenIdConnectConfiguration = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - issuer: S.String, - entityIdPrefix: S.optional(SensitiveString), - groupConfiguration: S.optional(UpdateOpenIdConnectGroupConfiguration), - tokenSelection: UpdateOpenIdConnectTokenSelection, - }), - ).annotate({ - identifier: "UpdateOpenIdConnectConfiguration", - }) as any as S.Schema; +export const UpdateOpenIdConnectConfiguration = /*@__PURE__*/ S.suspend(() => + S.Struct({ + issuer: S.String, + entityIdPrefix: S.optional(SensitiveString), + groupConfiguration: S.optional(UpdateOpenIdConnectGroupConfiguration), + tokenSelection: UpdateOpenIdConnectTokenSelection, + }), +).annotate({ + identifier: "UpdateOpenIdConnectConfiguration", +}) as any as S.Schema; export type UpdateConfiguration = | { cognitoUserPoolConfiguration: UpdateCognitoUserPoolConfiguration; @@ -1730,7 +1713,7 @@ export const ListIdentitySourcesInput = /*@__PURE__*/ S.suspend(() => identifier: "ListIdentitySourcesInput", }) as any as S.Schema; export interface IdentitySourceItemDetails { - clientIds?: string | redacted.Redacted[]; + clientIds?: (string | redacted.Redacted)[]; userPoolArn?: string; discoveryUrl?: string; openIdIssuer?: OpenIdIssuer; @@ -1748,39 +1731,36 @@ export const IdentitySourceItemDetails = /*@__PURE__*/ S.suspend(() => export interface CognitoGroupConfigurationItem { groupEntityType?: string | redacted.Redacted; } -export const CognitoGroupConfigurationItem = - /*@__PURE__*/ S.suspend(() => - S.Struct({ groupEntityType: S.optional(SensitiveString) }), - ).annotate({ - identifier: "CognitoGroupConfigurationItem", - }) as any as S.Schema; +export const CognitoGroupConfigurationItem = /*@__PURE__*/ S.suspend(() => + S.Struct({ groupEntityType: S.optional(SensitiveString) }), +).annotate({ + identifier: "CognitoGroupConfigurationItem", +}) as any as S.Schema; export interface CognitoUserPoolConfigurationItem { userPoolArn: string; - clientIds: string | redacted.Redacted[]; + clientIds: (string | redacted.Redacted)[]; issuer: string; groupConfiguration?: CognitoGroupConfigurationItem; } -export const CognitoUserPoolConfigurationItem = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - userPoolArn: S.String, - clientIds: ClientIds, - issuer: S.String, - groupConfiguration: S.optional(CognitoGroupConfigurationItem), - }), - ).annotate({ - identifier: "CognitoUserPoolConfigurationItem", - }) as any as S.Schema; +export const CognitoUserPoolConfigurationItem = /*@__PURE__*/ S.suspend(() => + S.Struct({ + userPoolArn: S.String, + clientIds: ClientIds, + issuer: S.String, + groupConfiguration: S.optional(CognitoGroupConfigurationItem), + }), +).annotate({ + identifier: "CognitoUserPoolConfigurationItem", +}) as any as S.Schema; export interface OpenIdConnectGroupConfigurationItem { groupClaim: string | redacted.Redacted; groupEntityType: string | redacted.Redacted; } -export const OpenIdConnectGroupConfigurationItem = - /*@__PURE__*/ S.suspend(() => - S.Struct({ groupClaim: SensitiveString, groupEntityType: SensitiveString }), - ).annotate({ - identifier: "OpenIdConnectGroupConfigurationItem", - }) as any as S.Schema; +export const OpenIdConnectGroupConfigurationItem = /*@__PURE__*/ S.suspend(() => + S.Struct({ groupClaim: SensitiveString, groupEntityType: SensitiveString }), +).annotate({ + identifier: "OpenIdConnectGroupConfigurationItem", +}) as any as S.Schema; export interface OpenIdConnectAccessTokenConfigurationItem { principalIdClaim?: string | redacted.Redacted; audiences?: string[]; @@ -1796,7 +1776,7 @@ export const OpenIdConnectAccessTokenConfigurationItem = }) as any as S.Schema; export interface OpenIdConnectIdentityTokenConfigurationItem { principalIdClaim?: string | redacted.Redacted; - clientIds?: string | redacted.Redacted[]; + clientIds?: (string | redacted.Redacted)[]; } export const OpenIdConnectIdentityTokenConfigurationItem = /*@__PURE__*/ S.suspend(() => @@ -1816,30 +1796,26 @@ export type OpenIdConnectTokenSelectionItem = accessTokenOnly?: never; identityTokenOnly: OpenIdConnectIdentityTokenConfigurationItem; }; -export const OpenIdConnectTokenSelectionItem = - /*@__PURE__*/ S.Union([ - S.Struct({ accessTokenOnly: OpenIdConnectAccessTokenConfigurationItem }), - S.Struct({ - identityTokenOnly: OpenIdConnectIdentityTokenConfigurationItem, - }), - ]); +export const OpenIdConnectTokenSelectionItem = /*@__PURE__*/ S.Union([ + S.Struct({ accessTokenOnly: OpenIdConnectAccessTokenConfigurationItem }), + S.Struct({ identityTokenOnly: OpenIdConnectIdentityTokenConfigurationItem }), +]); export interface OpenIdConnectConfigurationItem { issuer: string; entityIdPrefix?: string | redacted.Redacted; groupConfiguration?: OpenIdConnectGroupConfigurationItem; tokenSelection: OpenIdConnectTokenSelectionItem; } -export const OpenIdConnectConfigurationItem = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - issuer: S.String, - entityIdPrefix: S.optional(SensitiveString), - groupConfiguration: S.optional(OpenIdConnectGroupConfigurationItem), - tokenSelection: OpenIdConnectTokenSelectionItem, - }), - ).annotate({ - identifier: "OpenIdConnectConfigurationItem", - }) as any as S.Schema; +export const OpenIdConnectConfigurationItem = /*@__PURE__*/ S.suspend(() => + S.Struct({ + issuer: S.String, + entityIdPrefix: S.optional(SensitiveString), + groupConfiguration: S.optional(OpenIdConnectGroupConfigurationItem), + tokenSelection: OpenIdConnectTokenSelectionItem, + }), +).annotate({ + identifier: "OpenIdConnectConfigurationItem", +}) as any as S.Schema; export type ConfigurationItem = | { cognitoUserPoolConfiguration: CognitoUserPoolConfigurationItem; @@ -1906,16 +1882,15 @@ export interface TemplateLinkedPolicyDefinition { principal?: EntityIdentifier; resource?: EntityIdentifier; } -export const TemplateLinkedPolicyDefinition = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - policyTemplateId: S.String, - principal: S.optional(EntityIdentifier), - resource: S.optional(EntityIdentifier), - }), - ).annotate({ - identifier: "TemplateLinkedPolicyDefinition", - }) as any as S.Schema; +export const TemplateLinkedPolicyDefinition = /*@__PURE__*/ S.suspend(() => + S.Struct({ + policyTemplateId: S.String, + principal: S.optional(EntityIdentifier), + resource: S.optional(EntityIdentifier), + }), +).annotate({ + identifier: "TemplateLinkedPolicyDefinition", +}) as any as S.Schema; export type PolicyDefinition = | { static: StaticPolicyDefinition; templateLinked?: never } | { static?: never; templateLinked: TemplateLinkedPolicyDefinition }; @@ -2014,15 +1989,14 @@ export interface UpdateStaticPolicyDefinition { description?: string | redacted.Redacted; statement: string | redacted.Redacted; } -export const UpdateStaticPolicyDefinition = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - description: S.optional(SensitiveString), - statement: SensitiveString, - }), - ).annotate({ - identifier: "UpdateStaticPolicyDefinition", - }) as any as S.Schema; +export const UpdateStaticPolicyDefinition = /*@__PURE__*/ S.suspend(() => + S.Struct({ + description: S.optional(SensitiveString), + statement: SensitiveString, + }), +).annotate({ + identifier: "UpdateStaticPolicyDefinition", +}) as any as S.Schema; export type UpdatePolicyDefinition = { static: UpdateStaticPolicyDefinition }; export const UpdatePolicyDefinition = /*@__PURE__*/ S.Union([ S.Struct({ static: UpdateStaticPolicyDefinition }), @@ -2140,16 +2114,15 @@ export interface TemplateLinkedPolicyDefinitionItem { principal?: EntityIdentifier; resource?: EntityIdentifier; } -export const TemplateLinkedPolicyDefinitionItem = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - policyTemplateId: S.String, - principal: S.optional(EntityIdentifier), - resource: S.optional(EntityIdentifier), - }), - ).annotate({ - identifier: "TemplateLinkedPolicyDefinitionItem", - }) as any as S.Schema; +export const TemplateLinkedPolicyDefinitionItem = /*@__PURE__*/ S.suspend(() => + S.Struct({ + policyTemplateId: S.String, + principal: S.optional(EntityIdentifier), + resource: S.optional(EntityIdentifier), + }), +).annotate({ + identifier: "TemplateLinkedPolicyDefinitionItem", +}) as any as S.Schema; export type PolicyDefinitionItem = | { static: StaticPolicyDefinitionItem; templateLinked?: never } | { static?: never; templateLinked: TemplateLinkedPolicyDefinitionItem }; @@ -2372,31 +2345,29 @@ export interface CreatePolicyStoreAliasInput { aliasName: string; policyStoreId: string; } -export const CreatePolicyStoreAliasInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ aliasName: S.String, policyStoreId: S.String }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "CreatePolicyStoreAliasInput", - }) as any as S.Schema; +export const CreatePolicyStoreAliasInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ aliasName: S.String, policyStoreId: S.String }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "CreatePolicyStoreAliasInput", +}) as any as S.Schema; export interface CreatePolicyStoreAliasOutput { aliasName: string; policyStoreId: string; aliasArn: string; createdAt: Date; } -export const CreatePolicyStoreAliasOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - aliasName: S.String, - policyStoreId: S.String, - aliasArn: S.String, - createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), - }), - ).annotate({ - identifier: "CreatePolicyStoreAliasOutput", - }) as any as S.Schema; +export const CreatePolicyStoreAliasOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + aliasName: S.String, + policyStoreId: S.String, + aliasArn: S.String, + createdAt: T.DateFromString.pipe(T.TimestampFormat("date-time")), + }), +).annotate({ + identifier: "CreatePolicyStoreAliasOutput", +}) as any as S.Schema; export interface GetPolicyStoreAliasInput { aliasName: string; } @@ -2433,22 +2404,22 @@ export interface DeletePolicyStoreAliasInput { aliasName: string; deletionMode?: DeletionMode; } -export const DeletePolicyStoreAliasInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - aliasName: S.String, - deletionMode: S.optional(DeletionMode), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "DeletePolicyStoreAliasInput", - }) as any as S.Schema; +export const DeletePolicyStoreAliasInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + aliasName: S.String, + deletionMode: S.optional(DeletionMode), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "DeletePolicyStoreAliasInput", +}) as any as S.Schema; export interface DeletePolicyStoreAliasOutput {} -export const DeletePolicyStoreAliasOutput = - /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ - identifier: "DeletePolicyStoreAliasOutput", - }) as any as S.Schema; +export const DeletePolicyStoreAliasOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeletePolicyStoreAliasOutput", +}) as any as S.Schema; export interface PolicyStoreAliasFilter { policyStoreId?: string; } @@ -2462,18 +2433,17 @@ export interface ListPolicyStoreAliasesInput { maxResults?: number; filter?: PolicyStoreAliasFilter; } -export const ListPolicyStoreAliasesInput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - nextToken: S.optional(S.String), - maxResults: S.optional(S.Number), - filter: S.optional(PolicyStoreAliasFilter), - }).pipe( - T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), - ), - ).annotate({ - identifier: "ListPolicyStoreAliasesInput", - }) as any as S.Schema; +export const ListPolicyStoreAliasesInput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + nextToken: S.optional(S.String), + maxResults: S.optional(S.Number), + filter: S.optional(PolicyStoreAliasFilter), + }).pipe( + T.all(T.Http({ method: "POST", uri: "/" }), svc, auth, proto, ver, rules), + ), +).annotate({ + identifier: "ListPolicyStoreAliasesInput", +}) as any as S.Schema; export interface PolicyStoreAliasItem { aliasName: string; policyStoreId: string; @@ -2498,29 +2468,30 @@ export interface ListPolicyStoreAliasesOutput { nextToken?: string; policyStoreAliases: PolicyStoreAliasItem[]; } -export const ListPolicyStoreAliasesOutput = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - nextToken: S.optional(S.String), - policyStoreAliases: PolicyStoreAliasList, - }), - ).annotate({ - identifier: "ListPolicyStoreAliasesOutput", - }) as any as S.Schema; +export const ListPolicyStoreAliasesOutput = /*@__PURE__*/ S.suspend(() => + S.Struct({ + nextToken: S.optional(S.String), + policyStoreAliases: PolicyStoreAliasList, + }), +).annotate({ + identifier: "ListPolicyStoreAliasesOutput", +}) as any as S.Schema; //# Errors export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.String }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", { message: S.String }, - T.Retryable(), + T.all(T.HttpError(500), T.Retryable()), ).pipe(C.withServerError, C.withRetryableError) {} export class ResourceNotFoundException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.String, resourceId: S.String, resourceType: ResourceType }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", @@ -2529,15 +2500,17 @@ export class ThrottlingException extends S.TaggedErrorClass serviceCode: S.optional(S.String), quotaCode: S.optional(S.String), }, - T.Retryable({ throttling: true }), + T.all(T.HttpError(429), T.Retryable({ throttling: true })), ).pipe(C.withThrottlingError, C.withRetryableError) {} export class TooManyTagsException extends S.TaggedErrorClass()( "TooManyTagsException", { message: S.optional(S.String), resourceName: S.optional(S.String) }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { message: S.String, resources: ResourceConflictList }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", @@ -2548,10 +2521,16 @@ export class ServiceQuotaExceededException extends S.TaggedErrorClass()( + "ValidationException", + {}, +) {} export class InvalidStateException extends S.TaggedErrorClass()( "InvalidStateException", { message: S.String }, + T.HttpError(406), ).pipe(C.withBadRequestError) {} //# Operations @@ -2641,6 +2620,7 @@ export const untagResource: API.OperationMethod< export type CreatePolicyStoreError = | ConflictException | ServiceQuotaExceededException + | ValidationException | CommonErrors; /** * Creates a policy store. A policy store is a container for policy resources. @@ -2657,10 +2637,17 @@ export const createPolicyStore: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreatePolicyStoreInput, output: CreatePolicyStoreOutput, - errors: [ConflictException, ServiceQuotaExceededException], + errors: [ + ConflictException, + ServiceQuotaExceededException, + ValidationException, + ], operationName: "CreatePolicyStore", })); -export type GetPolicyStoreError = ResourceNotFoundException | CommonErrors; +export type GetPolicyStoreError = + | ResourceNotFoundException + | ValidationException + | CommonErrors; /** * Retrieves details about a policy store. */ @@ -2672,12 +2659,13 @@ export const getPolicyStore: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetPolicyStoreInput, output: GetPolicyStoreOutput, - errors: [ResourceNotFoundException], + errors: [ResourceNotFoundException, ValidationException], operationName: "GetPolicyStore", })); export type UpdatePolicyStoreError = | ConflictException | ResourceNotFoundException + | ValidationException | CommonErrors; /** * Modifies the validation setting for a policy store. @@ -2692,7 +2680,7 @@ export const updatePolicyStore: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: UpdatePolicyStoreInput, output: UpdatePolicyStoreOutput, - errors: [ConflictException, ResourceNotFoundException], + errors: [ConflictException, ResourceNotFoundException, ValidationException], operationName: "UpdatePolicyStore", })); export type DeletePolicyStoreError = InvalidStateException | CommonErrors; @@ -2748,7 +2736,10 @@ export const listPolicyStores: API.OperationMethod< pageSize: "maxResults", } as const, })); -export type BatchIsAuthorizedError = ResourceNotFoundException | CommonErrors; +export type BatchIsAuthorizedError = + | ResourceNotFoundException + | ValidationException + | CommonErrors; /** * Makes a series of decisions about multiple authorization requests for one principal or resource. Each request contains the equivalent content of an `IsAuthorized` request: principal, action, resource, and context. Either the `principal` or the `resource` parameter must be identical across all requests. For example, Verified Permissions won't evaluate a pair of requests where `bob` views `photo1` and `alice` views `photo2`. Authorization of `bob` to view `photo1` and `photo2`, or `bob` and `alice` to view `photo1`, are valid batches. * @@ -2766,11 +2757,12 @@ export const batchIsAuthorized: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: BatchIsAuthorizedInput, output: BatchIsAuthorizedOutput, - errors: [ResourceNotFoundException], + errors: [ResourceNotFoundException, ValidationException], operationName: "BatchIsAuthorized", })); export type BatchIsAuthorizedWithTokenError = | ResourceNotFoundException + | ValidationException | CommonErrors; /** * Makes a series of decisions about multiple authorization requests for one token. The principal in this request comes from an external identity source in the form of an identity or access token, formatted as a JSON web token (JWT). The information in the parameters can also define additional context that Verified Permissions can include in the evaluations. @@ -2789,10 +2781,13 @@ export const batchIsAuthorizedWithToken: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: BatchIsAuthorizedWithTokenInput, output: BatchIsAuthorizedWithTokenOutput, - errors: [ResourceNotFoundException], + errors: [ResourceNotFoundException, ValidationException], operationName: "BatchIsAuthorizedWithToken", })); -export type GetSchemaError = ResourceNotFoundException | CommonErrors; +export type GetSchemaError = + | ResourceNotFoundException + | ValidationException + | CommonErrors; /** * Retrieve the details for the specified schema in the specified policy store. */ @@ -2804,10 +2799,13 @@ export const getSchema: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetSchemaInput, output: GetSchemaOutput, - errors: [ResourceNotFoundException], + errors: [ResourceNotFoundException, ValidationException], operationName: "GetSchema", })); -export type IsAuthorizedError = ResourceNotFoundException | CommonErrors; +export type IsAuthorizedError = + | ResourceNotFoundException + | ValidationException + | CommonErrors; /** * Makes an authorization decision about a service request described in the parameters. The information in the parameters can also define additional context that Verified Permissions can include in the evaluation. The request is evaluated against all matching policies in the specified policy store. The result of the decision is either `Allow` or `Deny`, along with a list of the policies that resulted in the decision. */ @@ -2819,11 +2817,12 @@ export const isAuthorized: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: IsAuthorizedInput, output: IsAuthorizedOutput, - errors: [ResourceNotFoundException], + errors: [ResourceNotFoundException, ValidationException], operationName: "IsAuthorized", })); export type IsAuthorizedWithTokenError = | ResourceNotFoundException + | ValidationException | CommonErrors; /** * Makes an authorization decision about a service request described in the parameters. The principal in this request comes from an external identity source in the form of an identity token formatted as a JSON web token (JWT). The information in the parameters can also define additional context that Verified Permissions can include in the evaluation. The request is evaluated against all matching policies in the specified policy store. The result of the decision is either `Allow` or `Deny`, along with a list of the policies that resulted in the decision. @@ -2840,13 +2839,14 @@ export const isAuthorizedWithToken: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: IsAuthorizedWithTokenInput, output: IsAuthorizedWithTokenOutput, - errors: [ResourceNotFoundException], + errors: [ResourceNotFoundException, ValidationException], operationName: "IsAuthorizedWithToken", })); export type PutSchemaError = | ConflictException | ResourceNotFoundException | ServiceQuotaExceededException + | ValidationException | CommonErrors; /** * Creates or updates the policy schema in the specified policy store. The schema is used to validate any Cedar policies and policy templates submitted to the policy store. Any changes to the schema validate only policies and templates submitted after the schema change. Existing policies and templates are not re-evaluated against the changed schema. If you later update a policy, then it is evaluated against the new schema at that time. @@ -2865,10 +2865,11 @@ export const putSchema: API.OperationMethod< ConflictException, ResourceNotFoundException, ServiceQuotaExceededException, + ValidationException, ], operationName: "PutSchema", })); -export type BatchGetPolicyError = CommonErrors; +export type BatchGetPolicyError = ValidationException | CommonErrors; /** * Retrieves information about a group (batch) of policies. * @@ -2882,13 +2883,14 @@ export const batchGetPolicy: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: BatchGetPolicyInput, output: BatchGetPolicyOutput, - errors: [], + errors: [ValidationException], operationName: "BatchGetPolicy", })); export type CreateIdentitySourceError = | ConflictException | ResourceNotFoundException | ServiceQuotaExceededException + | ValidationException | CommonErrors; /** * Adds an identity source to a policy store–an Amazon Cognito user pool or OpenID Connect (OIDC) identity provider (IdP). @@ -2917,6 +2919,7 @@ export const createIdentitySource: API.OperationMethod< ConflictException, ResourceNotFoundException, ServiceQuotaExceededException, + ValidationException, ], operationName: "CreateIdentitySource", })); @@ -2938,6 +2941,7 @@ export const getIdentitySource: API.OperationMethod< export type UpdateIdentitySourceError = | ConflictException | ResourceNotFoundException + | ValidationException | CommonErrors; /** * Updates the specified identity source to use a new identity provider (IdP), or to change the mapping of identities from the IdP to a different principal entity type. @@ -2952,7 +2956,7 @@ export const updateIdentitySource: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: UpdateIdentitySourceInput, output: UpdateIdentitySourceOutput, - errors: [ConflictException, ResourceNotFoundException], + errors: [ConflictException, ResourceNotFoundException, ValidationException], operationName: "UpdateIdentitySource", })); export type DeleteIdentitySourceError = @@ -3013,6 +3017,7 @@ export type CreatePolicyError = | ConflictException | ResourceNotFoundException | ServiceQuotaExceededException + | ValidationException | CommonErrors; /** * Creates a Cedar policy and saves it in the specified policy store. You can create either a static policy or a policy linked to a policy template. @@ -3037,10 +3042,14 @@ export const createPolicy: API.OperationMethod< ConflictException, ResourceNotFoundException, ServiceQuotaExceededException, + ValidationException, ], operationName: "CreatePolicy", })); -export type GetPolicyError = ResourceNotFoundException | CommonErrors; +export type GetPolicyError = + | ResourceNotFoundException + | ValidationException + | CommonErrors; /** * Retrieves information about the specified policy. */ @@ -3052,13 +3061,14 @@ export const getPolicy: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetPolicyInput, output: GetPolicyOutput, - errors: [ResourceNotFoundException], + errors: [ResourceNotFoundException, ValidationException], operationName: "GetPolicy", })); export type UpdatePolicyError = | ConflictException | ResourceNotFoundException | ServiceQuotaExceededException + | ValidationException | CommonErrors; /** * Modifies a Cedar static policy in the specified policy store. You can change only certain elements of the UpdatePolicyDefinition parameter. You can directly update only static policies. To change a template-linked policy, you must update the template instead, using UpdatePolicyTemplate. @@ -3097,6 +3107,7 @@ export const updatePolicy: API.OperationMethod< ConflictException, ResourceNotFoundException, ServiceQuotaExceededException, + ValidationException, ], operationName: "UpdatePolicy", })); @@ -3160,6 +3171,7 @@ export type CreatePolicyTemplateError = | ConflictException | ResourceNotFoundException | ServiceQuotaExceededException + | ValidationException | CommonErrors; /** * Creates a policy template. A template can use placeholders for the principal and resource. A template must be instantiated into a policy by associating it with specific principals and resources to use for the placeholders. That instantiated policy can then be considered in authorization decisions. The instantiated policy works identically to any other policy, except that it is dynamically linked to the template. If the template changes, then any policies that are linked to that template are immediately updated as well. @@ -3178,6 +3190,7 @@ export const createPolicyTemplate: API.OperationMethod< ConflictException, ResourceNotFoundException, ServiceQuotaExceededException, + ValidationException, ], operationName: "CreatePolicyTemplate", })); @@ -3199,6 +3212,7 @@ export const getPolicyTemplate: API.OperationMethod< export type UpdatePolicyTemplateError = | ConflictException | ResourceNotFoundException + | ValidationException | CommonErrors; /** * Updates the specified policy template. You can update only the description and the some elements of the policyBody. @@ -3215,7 +3229,7 @@ export const updatePolicyTemplate: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: UpdatePolicyTemplateInput, output: UpdatePolicyTemplateOutput, - errors: [ConflictException, ResourceNotFoundException], + errors: [ConflictException, ResourceNotFoundException, ValidationException], operationName: "UpdatePolicyTemplate", })); export type DeletePolicyTemplateError = @@ -3278,6 +3292,7 @@ export type CreatePolicyStoreAliasError = | ConflictException | ResourceNotFoundException | ServiceQuotaExceededException + | ValidationException | CommonErrors; /** * Creates a policy store alias for the specified policy store. A policy store alias is an alternative identifier that you can use to reference a policy store in API operations. @@ -3298,6 +3313,7 @@ export const createPolicyStoreAlias: API.OperationMethod< ConflictException, ResourceNotFoundException, ServiceQuotaExceededException, + ValidationException, ], operationName: "CreatePolicyStoreAlias", })); @@ -3316,7 +3332,11 @@ export const getPolicyStoreAlias: API.OperationMethod< errors: [ResourceNotFoundException], operationName: "GetPolicyStoreAlias", })); -export type DeletePolicyStoreAliasError = InvalidStateException | CommonErrors; +export type DeletePolicyStoreAliasError = + | InvalidStateException + | ValidationException + | ResourceNotFoundException + | CommonErrors; /** * Deletes the specified policy store alias. * @@ -3336,7 +3356,11 @@ export const deletePolicyStoreAlias: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeletePolicyStoreAliasInput, output: DeletePolicyStoreAliasOutput, - errors: [InvalidStateException], + errors: [ + InvalidStateException, + ValidationException, + ResourceNotFoundException, + ], operationName: "DeletePolicyStoreAlias", })); export type ListPolicyStoreAliasesError = CommonErrors; diff --git a/packages/aws/src/services/vpc-lattice.ts b/packages/aws/src/services/vpc-lattice.ts index 279455d257..12a8e0012a 100644 --- a/packages/aws/src/services/vpc-lattice.ts +++ b/packages/aws/src/services/vpc-lattice.ts @@ -4277,10 +4277,12 @@ export const RegisterTargetsResponse = /*@__PURE__*/ S.suspend(() => export class AccessDeniedException extends S.TaggedErrorClass()( "AccessDeniedException", { message: S.String }, + T.HttpError(403), ).pipe(C.withAuthError) {} export class ConflictException extends S.TaggedErrorClass()( "ConflictException", { message: S.String, resourceId: S.String, resourceType: S.String }, + T.HttpError(409), ).pipe(C.withConflictError) {} export class InternalServerException extends S.TaggedErrorClass()( "InternalServerException", @@ -4288,11 +4290,12 @@ export class InternalServerException extends S.TaggedErrorClass()( "ResourceNotFoundException", { message: S.String, resourceId: S.String, resourceType: S.String }, + T.HttpError(404), ).pipe(C.withBadRequestError) {} export class ThrottlingException extends S.TaggedErrorClass()( "ThrottlingException", @@ -4302,7 +4305,7 @@ export class ThrottlingException extends S.TaggedErrorClass quotaCode: S.optional(S.String), retryAfterSeconds: S.optional(S.Number).pipe(T.HttpHeader("Retry-After")), }, - T.Retryable({ throttling: true }), + T.all(T.HttpError(429), T.Retryable({ throttling: true })), ).pipe(C.withThrottlingError, C.withRetryableError) {} export class ValidationException extends S.TaggedErrorClass()( "ValidationException", @@ -4311,6 +4314,7 @@ export class ValidationException extends S.TaggedErrorClass reason: S.String, fieldList: S.optional(ValidationExceptionFieldList), }, + T.HttpError(400), ).pipe(C.withBadRequestError) {} export class ServiceQuotaExceededException extends S.TaggedErrorClass()( "ServiceQuotaExceededException", @@ -4321,6 +4325,7 @@ export class ServiceQuotaExceededException extends S.TaggedErrorClass()( + "GroupAlreadyExists", + { Message: S.optional(S.String) }, + T.SyntheticError({ + from: "InvalidRequestException", + message: { matches: " already exists$" }, + }), +).pipe(C.withAlreadyExistsError, C.withConflictError) {} export class RuleLimitExceededException extends S.TaggedErrorClass()( "RuleLimitExceededException", { Message: S.optional(S.String) }, ) {} +export class SamplingRuleAlreadyExists extends S.TaggedErrorClass()( + "SamplingRuleAlreadyExists", + { Message: S.optional(S.String) }, + T.SyntheticError({ + from: "InvalidRequestException", + message: "Sampling rule already exists", + }), +).pipe(C.withAlreadyExistsError, C.withConflictError) {} +export class GroupNotFound extends S.TaggedErrorClass()( + "GroupNotFound", + { Message: S.optional(S.String) }, + T.SyntheticError({ + from: "InvalidRequestException", + message: "Group not found", + }), +).pipe(C.withNotFoundError) {} export class InvalidPolicyRevisionIdException extends S.TaggedErrorClass()( "InvalidPolicyRevisionIdException", { Message: S.optional(S.String) }, ).pipe(C.withBadRequestError) {} +export class SamplingRuleNotFound extends S.TaggedErrorClass()( + "SamplingRuleNotFound", + { Message: S.optional(S.String) }, + T.SyntheticError({ + from: "InvalidRequestException", + message: "Sampling rule does not exist", + }), +).pipe(C.withNotFoundError) {} export class LockoutPreventionException extends S.TaggedErrorClass()( "LockoutPreventionException", { Message: S.optional(S.String) }, @@ -2654,6 +2686,7 @@ export const cancelTraceRetrieval: API.OperationMethod< export type CreateGroupError = | InvalidRequestException | ThrottledException + | GroupAlreadyExists | CommonErrors; /** * Creates a group resource with a name and a filter expression. @@ -2666,13 +2699,14 @@ export const createGroup: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: CreateGroupRequest, output: CreateGroupResult, - errors: [InvalidRequestException, ThrottledException], + errors: [InvalidRequestException, ThrottledException, GroupAlreadyExists], operationName: "CreateGroup", })); export type CreateSamplingRuleError = | InvalidRequestException | RuleLimitExceededException | ThrottledException + | SamplingRuleAlreadyExists | CommonErrors; /** * Creates a rule to control sampling behavior for instrumented applications. Services @@ -2695,12 +2729,14 @@ export const createSamplingRule: API.OperationMethod< InvalidRequestException, RuleLimitExceededException, ThrottledException, + SamplingRuleAlreadyExists, ], operationName: "CreateSamplingRule", })); export type DeleteGroupError = | InvalidRequestException | ThrottledException + | GroupNotFound | CommonErrors; /** * Deletes a group resource. @@ -2713,7 +2749,7 @@ export const deleteGroup: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteGroupRequest, output: DeleteGroupResult, - errors: [InvalidRequestException, ThrottledException], + errors: [InvalidRequestException, ThrottledException, GroupNotFound], operationName: "DeleteGroup", })); export type DeleteResourcePolicyError = @@ -2742,6 +2778,7 @@ export const deleteResourcePolicy: API.OperationMethod< export type DeleteSamplingRuleError = | InvalidRequestException | ThrottledException + | SamplingRuleNotFound | CommonErrors; /** * Deletes a sampling rule. @@ -2754,7 +2791,7 @@ export const deleteSamplingRule: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: DeleteSamplingRuleRequest, output: DeleteSamplingRuleResult, - errors: [InvalidRequestException, ThrottledException], + errors: [InvalidRequestException, ThrottledException, SamplingRuleNotFound], operationName: "DeleteSamplingRule", })); export type GetEncryptionConfigError = @@ -2778,6 +2815,7 @@ export const getEncryptionConfig: API.OperationMethod< export type GetGroupError = | InvalidRequestException | ThrottledException + | GroupNotFound | CommonErrors; /** * Retrieves group resource details. @@ -2790,7 +2828,7 @@ export const getGroup: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetGroupRequest, output: GetGroupResult, - errors: [InvalidRequestException, ThrottledException], + errors: [InvalidRequestException, ThrottledException, GroupNotFound], operationName: "GetGroup", })); export type GetGroupsError = @@ -3615,6 +3653,7 @@ export const untagResource: API.OperationMethod< export type UpdateGroupError = | InvalidRequestException | ThrottledException + | GroupNotFound | CommonErrors; /** * Updates a group resource. @@ -3627,7 +3666,7 @@ export const updateGroup: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: UpdateGroupRequest, output: UpdateGroupResult, - errors: [InvalidRequestException, ThrottledException], + errors: [InvalidRequestException, ThrottledException, GroupNotFound], operationName: "UpdateGroup", })); export type UpdateIndexingRuleError = @@ -3658,6 +3697,7 @@ export const updateIndexingRule: API.OperationMethod< export type UpdateSamplingRuleError = | InvalidRequestException | ThrottledException + | SamplingRuleNotFound | CommonErrors; /** * Modifies a sampling rule's configuration. @@ -3670,7 +3710,7 @@ export const updateSamplingRule: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: UpdateSamplingRuleRequest, output: UpdateSamplingRuleResult, - errors: [InvalidRequestException, ThrottledException], + errors: [InvalidRequestException, ThrottledException, SamplingRuleNotFound], operationName: "UpdateSamplingRule", })); export type UpdateTraceSegmentDestinationError = diff --git a/packages/aws/src/traits.ts b/packages/aws/src/traits.ts index 8829511fc1..df0c20424d 100644 --- a/packages/aws/src/traits.ts +++ b/packages/aws/src/traits.ts @@ -231,7 +231,11 @@ export const TimestampFormat = (format: TimestampFormatType) => { S.Date, SchemaTransformation.transform({ decode: (n) => new Date(n * 1000), - encode: (d) => d.getTime() / 1000, + // Truncate to whole seconds: some services parse + // epoch-seconds strictly and reject fractional values — + // e.g. IoT SiteWise's GetAssetPropertyAggregates fails + // with "The date can only be in seconds." + encode: (d) => Math.floor(d.getTime() / 1000), }), ), ) @@ -291,6 +295,21 @@ export interface AwsAuthSigv4Trait { export const AwsAuthSigv4 = (trait: AwsAuthSigv4Trait) => makeAnnotation(awsAuthSigv4Symbol, trait); +/** + * Legacy Signature Version 2 authentication. SimpleDB (2009-04-15) is the + * sole remaining SigV2-only service: its endpoint rejects SigV4 + * Authorization headers outright (`AuthFailure: access credentials are + * missing`). SigV2 auth parameters ride in the form-encoded request body + * (`AWSAccessKeyId`, `SignatureVersion=2`, `SignatureMethod=HmacSHA256`, + * `Timestamp`, `SecurityToken`, `Signature`) rather than in headers. + */ +export const awsAuthSigv2Symbol = "distilled-aws/aws.auth#sigv2" as const; +export interface AwsAuthSigv2Trait { + name: string; +} +export const AwsAuthSigv2 = (trait: AwsAuthSigv2Trait) => + makeAnnotation(awsAuthSigv2Symbol, trait); + // ============================================================================= // AWS Protocol Traits (aws.protocols#*) // Each protocol annotation embeds its implementation for optimal tree-shaking @@ -564,6 +583,28 @@ export interface AwsQueryErrorTrait { export const AwsQueryError = (trait: AwsQueryErrorTrait) => makeAnnotation(awsQueryErrorSymbol, trait); +/** + * distilled patch trait - synthesizes a NEW error class from an existing wire + * error plus a message predicate. Some AWS services overload a single wire + * error (e.g. X-Ray's InvalidRequestException) for semantically distinct + * failures that are only distinguishable by message text. The response parser + * checks synthetic matchers BEFORE the plain wire-code lookup so the + * synthetic tag specializes the base error. + */ +export const syntheticErrorSymbol = "distilled-aws/synthetic-error" as const; +export interface SyntheticErrorTrait { + /** The wire error code this synthetic error derives from (e.g., "InvalidRequestException") */ + from: string; + /** + * Message predicate: a plain string is an exact match; the object form + * supports substring (`includes`) and regular-expression (`matches`) + * predicates. + */ + message: string | { includes?: string; matches?: string }; +} +export const SyntheticError = (trait: SyntheticErrorTrait) => + makeAnnotation(syntheticErrorSymbol, trait); + /** aws.customizations#s3UnwrappedXmlOutput - S3 output not wrapped in operation-level XML node */ export const s3UnwrappedXmlOutputSymbol = "distilled-aws/aws.customizations#s3UnwrappedXmlOutput" as const; @@ -833,6 +874,47 @@ export const getEventPayloadMap = ( return ast.annotations?.eventPayloadMap as Record | undefined; }; +/** + * Derive the event-type → payload-member map for an OUTPUT event stream from + * its event union schema (`T.EventStream(S.Union([...]))`). + * + * Smithy's `eventPayload` trait means an event's wire payload IS that single + * member's raw bytes (e.g. Lambda `InvokeWithResponseStream`'s + * `PayloadChunk.Payload`), not a JSON document of the event struct — so the + * parser must bind the raw payload to that member instead of JSON-parsing it + * into struct fields. Input streams carry this map explicitly + * (`T.InputEventStream(..., eventPayloadMap)`); for outputs we recover it + * from the `T.EventPayload()` member annotations. + */ +export const getOutputEventPayloadMap = ( + eventSchema: S.Schema, +): Record | undefined => { + const unwrap = (ast: AST.AST): AST.AST => { + let current = ast; + while (current._tag === "Suspend") current = current.thunk(); + return current; + }; + const union = unwrap(eventSchema.ast); + if (union._tag !== "Union") return undefined; + const map: Record = {}; + for (const member of union.types) { + const eventStructWrapper = unwrap(member); + if (eventStructWrapper._tag !== "Objects") continue; + const wrapperProps = eventStructWrapper.propertySignatures; + if (wrapperProps.length !== 1) continue; + const eventType = String(wrapperProps[0].name); + const eventStruct = unwrap(wrapperProps[0].type); + if (eventStruct._tag !== "Objects") continue; + for (const prop of eventStruct.propertySignatures) { + if (hasPropAnnotation(prop, eventPayloadSymbol)) { + map[eventType] = String(prop.name); + break; + } + } + } + return Object.keys(map).length > 0 ? map : undefined; +}; + // ============================================================================= // Annotation Retrieval Helpers // ============================================================================= @@ -1014,6 +1096,9 @@ export const getAwsApiService = ( export const getAwsAuthSigv4 = (ast: AST.AST): AwsAuthSigv4Trait | undefined => getAnnotationUnwrap(ast, awsAuthSigv4Symbol); +export const getAwsAuthSigv2 = (ast: AST.AST): AwsAuthSigv2Trait | undefined => + getAnnotationUnwrap(ast, awsAuthSigv2Symbol); + export const getServiceVersion = (ast: AST.AST): string | undefined => getAnnotationUnwrap(ast, serviceVersionSymbol); @@ -1051,6 +1136,15 @@ export const getAwsQueryError = ( ): AwsQueryErrorTrait | undefined => getAnnotationUnwrap(ast, awsQueryErrorSymbol); +/** smithy.api#httpError status code declared on an error shape */ +export const getHttpError = (ast: AST.AST): number | undefined => + getAnnotationUnwrap(ast, httpErrorSymbol); + +export const getSyntheticError = ( + ast: AST.AST, +): SyntheticErrorTrait | undefined => + getAnnotationUnwrap(ast, syntheticErrorSymbol); + export const getTimestampFormat = ( prop: AST.PropertySignature, ): TimestampFormatType | undefined => diff --git a/packages/aws/src/util/error.ts b/packages/aws/src/util/error.ts index 5cf52c1ebf..330b443473 100644 --- a/packages/aws/src/util/error.ts +++ b/packages/aws/src/util/error.ts @@ -25,8 +25,12 @@ * @returns The sanitized error code */ export function sanitizeErrorCode(value: string): string { + // 0. Repeated `x-amzn-errortype` headers are joined with ", " by the + // fetch Headers API — e.g. resource-explorer-2 throttling responds + // with "ThrottlingException, TooManyRequestsException". Take the + // first entry. // 1. Take before first ':' - let code = value.split(":")[0]; + let code = value.split(",")[0].trim().split(":")[0]; // 2. Take after first '#' const hashIndex = code.indexOf("#"); if (hashIndex >= 0) { diff --git a/packages/aws/src/util/stream.ts b/packages/aws/src/util/stream.ts index 9c489c57c0..5b90164ab7 100644 --- a/packages/aws/src/util/stream.ts +++ b/packages/aws/src/util/stream.ts @@ -23,6 +23,21 @@ export const readStreamAsText = ( ? Effect.succeed(stream) : Effect.promise(() => new globalThis.Response(stream).text()); +/** + * Read a ReadableStream fully as raw bytes (for non-streaming binary + * responses such as httpPayload blobs). + * This is lazy - only consumes when called. + */ +export const readStreamAsBytes = ( + stream: string | ReadableStream, +): Effect.Effect => + typeof stream === "string" + ? Effect.succeed(new TextEncoder().encode(stream)) + : Effect.promise(async () => { + const buffer = await new globalThis.Response(stream).arrayBuffer(); + return new Uint8Array(buffer); + }); + /** * Convert Effect Stream to ReadableStream for fetch. */ diff --git a/packages/aws/test/client/apigatewaymanagementapi-signing.test.ts b/packages/aws/test/client/apigatewaymanagementapi-signing.test.ts new file mode 100644 index 0000000000..b159c7fabc --- /dev/null +++ b/packages/aws/test/client/apigatewaymanagementapi-signing.test.ts @@ -0,0 +1,87 @@ +import { AwsV4Signer } from "aws4fetch"; +import { describe, expect, it } from "vitest"; +import * as Effect from "effect/Effect"; +import * as Layer from "effect/Layer"; +import * as Redacted from "effect/Redacted"; +import * as HttpClient from "effect/unstable/http/HttpClient"; +import * as HttpClientResponse from "effect/unstable/http/HttpClientResponse"; +import * as Credentials from "../../src/credentials.browser.ts"; +import { Endpoint } from "../../src/endpoint.ts"; +import { Region } from "../../src/region.ts"; +import { postToConnection } from "../../src/services/apigatewaymanagementapi.ts"; + +const accessKeyId = "AKIDEXAMPLE"; +const secretAccessKey = "test-secret-access-key"; +const endpoint = "https://abc123.execute-api.us-west-2.amazonaws.com/test"; + +describe("ApiGatewayManagementApi signing", () => { + it("hashes PostToConnection's buffered frame in the SigV4 canonical request", async () => { + let captured: + | Parameters[0]>[0] + | undefined; + + const client = HttpClient.make((request) => { + captured = request; + return Effect.succeed( + HttpClientResponse.fromWeb( + request, + new Response(undefined, { + status: 200, + headers: { "content-length": "0" }, + }), + ), + ); + }); + + await Effect.runPromise( + postToConnection({ + ConnectionId: "connection-id==", + Data: "echo:hello-websocket", + }).pipe( + Effect.provide(Layer.succeed(HttpClient.HttpClient, client)), + Effect.provideService( + Credentials.Credentials, + Effect.succeed({ + accessKeyId: Redacted.make(accessKeyId), + secretAccessKey: Redacted.make(secretAccessKey), + sessionToken: undefined, + }), + ), + Effect.provideService(Region, Effect.succeed("us-west-2")), + Effect.provideService(Endpoint, Effect.succeed(endpoint)), + ), + ); + + expect(captured).toBeDefined(); + expect(captured!.url).toBe(`${endpoint}/@connections/connection-id%3D%3D`); + expect(captured!.headers["x-amz-content-sha256"]).toBeUndefined(); + + const datetime = captured!.headers["x-amz-date"]!; + const expected = await new AwsV4Signer({ + method: "POST", + url: captured!.url, + body: "echo:hello-websocket", + accessKeyId, + secretAccessKey, + service: "execute-api", + region: "us-west-2", + datetime, + }).sign(); + + expect(captured!.headers.authorization).toBe( + expected.headers.get("authorization"), + ); + expect( + await new AwsV4Signer({ + method: "POST", + url: captured!.url, + body: "echo:hello-websocket", + accessKeyId, + secretAccessKey, + service: "execute-api", + region: "us-west-2", + datetime, + }).canonicalString(), + ).toContain("/test/%40connections/connection-id%253D%253D"); + }); +}); diff --git a/packages/aws/test/client/bedrock-runtime-signing.test.ts b/packages/aws/test/client/bedrock-runtime-signing.test.ts new file mode 100644 index 0000000000..ce4f26d3d9 --- /dev/null +++ b/packages/aws/test/client/bedrock-runtime-signing.test.ts @@ -0,0 +1,78 @@ +import { AwsV4Signer } from "aws4fetch"; +import { describe, expect, it } from "vitest"; +import * as Effect from "effect/Effect"; +import * as Layer from "effect/Layer"; +import * as Redacted from "effect/Redacted"; +import * as HttpClient from "effect/unstable/http/HttpClient"; +import * as HttpClientResponse from "effect/unstable/http/HttpClientResponse"; +import * as Credentials from "../../src/credentials.browser.ts"; +import { Endpoint } from "../../src/endpoint.ts"; +import { Region } from "../../src/region.ts"; +import { invokeModel } from "../../src/services/bedrock-runtime.ts"; + +const accessKeyId = "AKIDEXAMPLE"; +const secretAccessKey = "test-secret-access-key"; +const endpoint = "https://bedrock-runtime.us-west-2.amazonaws.com"; + +describe("Bedrock Runtime signing", () => { + it("hashes InvokeModel's buffered body in the SigV4 canonical request", async () => { + let captured: + | Parameters[0]>[0] + | undefined; + + const client = HttpClient.make((request) => { + captured = request; + return Effect.succeed( + HttpClientResponse.fromWeb( + request, + new Response("{}", { + status: 200, + headers: { "content-type": "application/json" }, + }), + ), + ); + }); + const body = JSON.stringify({ prompt: "hello" }); + + await Effect.runPromise( + invokeModel({ + modelId: "us.amazon.nova-micro-v1:0", + contentType: "application/json", + accept: "application/json", + body, + }).pipe( + Effect.provide(Layer.succeed(HttpClient.HttpClient, client)), + Effect.provideService( + Credentials.Credentials, + Effect.succeed({ + accessKeyId: Redacted.make(accessKeyId), + secretAccessKey: Redacted.make(secretAccessKey), + sessionToken: undefined, + }), + ), + Effect.provideService(Region, Effect.succeed("us-west-2")), + Effect.provideService(Endpoint, Effect.succeed(endpoint)), + ), + ); + + expect(captured).toBeDefined(); + expect(captured!.headers["x-amz-content-sha256"]).toBeUndefined(); + + const datetime = captured!.headers["x-amz-date"]!; + const expected = await new AwsV4Signer({ + method: "POST", + url: captured!.url, + body, + headers: { accept: "application/json" }, + accessKeyId, + secretAccessKey, + service: "bedrock", + region: "us-west-2", + datetime, + }).sign(); + + expect(captured!.headers.authorization).toBe( + expected.headers.get("authorization"), + ); + }); +}); diff --git a/packages/aws/test/client/iot-data-plane-signing.test.ts b/packages/aws/test/client/iot-data-plane-signing.test.ts new file mode 100644 index 0000000000..b2500da8e5 --- /dev/null +++ b/packages/aws/test/client/iot-data-plane-signing.test.ts @@ -0,0 +1,72 @@ +import { AwsV4Signer } from "aws4fetch"; +import { describe, expect, it } from "vitest"; +import * as Effect from "effect/Effect"; +import * as Layer from "effect/Layer"; +import * as Redacted from "effect/Redacted"; +import * as HttpClient from "effect/unstable/http/HttpClient"; +import * as HttpClientResponse from "effect/unstable/http/HttpClientResponse"; +import * as Credentials from "../../src/credentials.browser.ts"; +import { Endpoint } from "../../src/endpoint.ts"; +import { Region } from "../../src/region.ts"; +import { updateThingShadow } from "../../src/services/iot-data-plane.ts"; + +const accessKeyId = "AKIDEXAMPLE"; +const secretAccessKey = "test-secret-access-key"; +const endpoint = "https://data-ats.iot.us-west-2.amazonaws.com"; + +describe("IoT Data Plane signing", () => { + it("hashes UpdateThingShadow's buffered payload in the SigV4 canonical request", async () => { + let captured: + | Parameters[0]>[0] + | undefined; + + const client = HttpClient.make((request) => { + captured = request; + return Effect.succeed( + HttpClientResponse.fromWeb( + request, + new Response("{}", { + status: 200, + headers: { "content-type": "application/json" }, + }), + ), + ); + }); + const payload = JSON.stringify({ state: { desired: { led: "on" } } }); + + await Effect.runPromise( + updateThingShadow({ thingName: "test-thing", payload }).pipe( + Effect.provide(Layer.succeed(HttpClient.HttpClient, client)), + Effect.provideService( + Credentials.Credentials, + Effect.succeed({ + accessKeyId: Redacted.make(accessKeyId), + secretAccessKey: Redacted.make(secretAccessKey), + sessionToken: undefined, + }), + ), + Effect.provideService(Region, Effect.succeed("us-west-2")), + Effect.provideService(Endpoint, Effect.succeed(endpoint)), + ), + ); + + expect(captured).toBeDefined(); + expect(captured!.headers["x-amz-content-sha256"]).toBeUndefined(); + + const datetime = captured!.headers["x-amz-date"]!; + const expected = await new AwsV4Signer({ + method: "POST", + url: captured!.url, + body: payload, + accessKeyId, + secretAccessKey, + service: "iotdata", + region: "us-west-2", + datetime, + }).sign(); + + expect(captured!.headers.authorization).toBe( + expected.headers.get("authorization"), + ); + }); +}); diff --git a/packages/aws/test/client/iot-wireless-signing.test.ts b/packages/aws/test/client/iot-wireless-signing.test.ts new file mode 100644 index 0000000000..9daed36e97 --- /dev/null +++ b/packages/aws/test/client/iot-wireless-signing.test.ts @@ -0,0 +1,79 @@ +import { AwsV4Signer } from "aws4fetch"; +import { describe, expect, it } from "vitest"; +import * as Effect from "effect/Effect"; +import * as Layer from "effect/Layer"; +import * as Redacted from "effect/Redacted"; +import * as HttpClient from "effect/unstable/http/HttpClient"; +import * as HttpClientResponse from "effect/unstable/http/HttpClientResponse"; +import * as Credentials from "../../src/credentials.browser.ts"; +import { Endpoint } from "../../src/endpoint.ts"; +import { Region } from "../../src/region.ts"; +import { updateResourcePosition } from "../../src/services/iot-wireless.ts"; + +const accessKeyId = "AKIDEXAMPLE"; +const secretAccessKey = "test-secret-access-key"; +const endpoint = "https://api.iotwireless.us-west-2.amazonaws.com"; + +describe("IoT Wireless signing", () => { + it("hashes UpdateResourcePosition's buffered GeoJSON payload", async () => { + let captured: + | Parameters[0]>[0] + | undefined; + + const client = HttpClient.make((request) => { + captured = request; + return Effect.succeed( + HttpClientResponse.fromWeb( + request, + new Response(undefined, { + status: 200, + headers: { "content-length": "0" }, + }), + ), + ); + }); + const body = JSON.stringify({ + type: "Point", + coordinates: [-122.33, 47.61, 10], + }); + + await Effect.runPromise( + updateResourcePosition({ + ResourceIdentifier: "device-id", + ResourceType: "WirelessDevice", + GeoJsonPayload: body, + }).pipe( + Effect.provide(Layer.succeed(HttpClient.HttpClient, client)), + Effect.provideService( + Credentials.Credentials, + Effect.succeed({ + accessKeyId: Redacted.make(accessKeyId), + secretAccessKey: Redacted.make(secretAccessKey), + sessionToken: undefined, + }), + ), + Effect.provideService(Region, Effect.succeed("us-west-2")), + Effect.provideService(Endpoint, Effect.succeed(endpoint)), + ), + ); + + expect(captured).toBeDefined(); + expect(captured!.headers["x-amz-content-sha256"]).toBeUndefined(); + + const datetime = captured!.headers["x-amz-date"]!; + const expected = await new AwsV4Signer({ + method: "PATCH", + url: `${captured!.url}?resourceType=WirelessDevice`, + body, + accessKeyId, + secretAccessKey, + service: "iotwireless", + region: "us-west-2", + datetime, + }).sign(); + + expect(captured!.headers.authorization).toBe( + expected.headers.get("authorization"), + ); + }); +}); diff --git a/packages/aws/test/client/lambda-signing.test.ts b/packages/aws/test/client/lambda-signing.test.ts new file mode 100644 index 0000000000..6b11b822a3 --- /dev/null +++ b/packages/aws/test/client/lambda-signing.test.ts @@ -0,0 +1,77 @@ +import { AwsV4Signer } from "aws4fetch"; +import { describe, expect, it } from "vitest"; +import * as Effect from "effect/Effect"; +import * as Layer from "effect/Layer"; +import * as Redacted from "effect/Redacted"; +import * as HttpClient from "effect/unstable/http/HttpClient"; +import * as HttpClientResponse from "effect/unstable/http/HttpClientResponse"; +import * as Credentials from "../../src/credentials.browser.ts"; +import { Endpoint } from "../../src/endpoint.ts"; +import { Region } from "../../src/region.ts"; +import { invoke } from "../../src/services/lambda.ts"; + +const accessKeyId = "AKIDEXAMPLE"; +const secretAccessKey = "test-secret-access-key"; +const endpoint = "https://lambda.us-west-2.amazonaws.com"; + +describe("Lambda signing", () => { + it("hashes Invoke's buffered payload in the SigV4 canonical request", async () => { + let captured: + | Parameters[0]>[0] + | undefined; + + const client = HttpClient.make((request) => { + captured = request; + return Effect.succeed( + HttpClientResponse.fromWeb( + request, + new Response(undefined, { + status: 200, + headers: { "content-length": "0" }, + }), + ), + ); + }); + const body = JSON.stringify({ operation: "durable-test" }); + + await Effect.runPromise( + invoke({ + FunctionName: "test-function", + DurableExecutionName: "stable-execution", + Payload: body, + }).pipe( + Effect.provide(Layer.succeed(HttpClient.HttpClient, client)), + Effect.provideService( + Credentials.Credentials, + Effect.succeed({ + accessKeyId: Redacted.make(accessKeyId), + secretAccessKey: Redacted.make(secretAccessKey), + sessionToken: undefined, + }), + ), + Effect.provideService(Region, Effect.succeed("us-west-2")), + Effect.provideService(Endpoint, Effect.succeed(endpoint)), + ), + ); + + expect(captured).toBeDefined(); + expect(captured!.headers["x-amz-content-sha256"]).toBeUndefined(); + + const datetime = captured!.headers["x-amz-date"]!; + const expected = await new AwsV4Signer({ + method: "POST", + url: captured!.url, + body, + headers: { "x-amz-durable-execution-name": "stable-execution" }, + accessKeyId, + secretAccessKey, + service: "lambda", + region: "us-west-2", + datetime, + }).sign(); + + expect(captured!.headers.authorization).toBe( + expected.headers.get("authorization"), + ); + }); +}); diff --git a/packages/aws/test/client/paginate-done.test.ts b/packages/aws/test/client/paginate-done.test.ts new file mode 100644 index 0000000000..78290f322f --- /dev/null +++ b/packages/aws/test/client/paginate-done.test.ts @@ -0,0 +1,43 @@ +/** + * Unit tests for paginator done-detection. + * + * `makePaginated` streams pages until the response's continuation token is + * terminal. AWS marks the final page by omitting the token, returning it as + * `null`, or — for several services (e.g. SSM, CloudWatch Logs) — as an + * empty string. Treating `""` as a live token re-requests the first page + * with `NextToken: ""` forever. The official aws-sdk-js-v3 paginators stop + * on any falsy token (`hasNext = !!token`); `isTerminalPageToken` matches + * that behavior while keeping object tokens (DynamoDB `LastEvaluatedKey`) + * live. + */ +import { describe, expect, it } from "vitest"; +import { isTerminalPageToken } from "../../src/client/api.ts"; + +describe("isTerminalPageToken", () => { + it("treats an absent token as terminal", () => { + expect(isTerminalPageToken(undefined)).toBe(true); + }); + + it("treats a null token as terminal", () => { + expect(isTerminalPageToken(null)).toBe(true); + }); + + it("treats an empty-string token as terminal (SSM/CloudWatch Logs style)", () => { + expect(isTerminalPageToken("")).toBe(true); + }); + + it("treats a non-empty string token as a live token", () => { + expect(isTerminalPageToken("AAAAKgEB...")).toBe(false); + }); + + it("treats an object token (DynamoDB LastEvaluatedKey) as live", () => { + expect(isTerminalPageToken({ pk: { S: "a" } })).toBe(false); + // even an empty key object is not a documented terminal marker + expect(isTerminalPageToken({})).toBe(false); + }); + + it("treats a numeric token as live", () => { + expect(isTerminalPageToken(0)).toBe(false); + expect(isTerminalPageToken(2)).toBe(false); + }); +}); diff --git a/packages/aws/test/client/synthetic-errors.test.ts b/packages/aws/test/client/synthetic-errors.test.ts new file mode 100644 index 0000000000..d3ce0c695b --- /dev/null +++ b/packages/aws/test/client/synthetic-errors.test.ts @@ -0,0 +1,218 @@ +import { isNotFoundError } from "@distilled.cloud/core/category"; +import { it } from "@effect/vitest"; +import * as Effect from "effect/Effect"; +import type * as S from "effect/Schema"; +import { describe, expect } from "vitest"; +import { makeResponseParser } from "../../src/client/response-parser.ts"; +import type { Response } from "../../src/client/response.ts"; +import { restJson1Protocol } from "../../src/protocols/rest-json.ts"; + +// Real generated schemas from X-Ray — the reference consumer of synthetic +// errors. X-Ray overloads InvalidRequestException for missing/duplicate +// groups and sampling rules, distinguishable only by message text; the +// patches/xray.json syntheticErrors entries carve those out as typed tags. +import { + CreateGroupRequest, + CreateGroupResult, + DeleteSamplingRuleRequest, + DeleteSamplingRuleResult, + GroupAlreadyExists, + GroupNotFound, + InvalidRequestException, + SamplingRuleNotFound, + ThrottledException, +} from "../../src/services/xray.ts"; + +// Helper to parse an error response for an operation with the given error union +const parseResponse = ( + input: S.Top, + output: S.Top, + errors: S.Top[], + response: Response, +) => { + const operation = { input, output, errors }; + const parser = makeResponseParser(operation as any, { + protocol: restJson1Protocol, + }); + return parser(response); +}; + +const deleteSamplingRuleErrors = [ + InvalidRequestException, + ThrottledException, + SamplingRuleNotFound, +]; + +const errorResponse = ( + errorType: string, + body: Record, +): Response => ({ + status: 400, + statusText: "Bad Request", + headers: { "x-amzn-errortype": errorType }, + body: JSON.stringify(body), +}); + +describe("synthetic errors", () => { + it.effect( + "should decode the synthetic tag when the wire error + exact message match", + () => + Effect.gen(function* () { + const result = yield* parseResponse( + DeleteSamplingRuleRequest, + DeleteSamplingRuleResult, + deleteSamplingRuleErrors, + errorResponse("InvalidRequestException", { + Message: "Sampling rule does not exist", + }), + ).pipe(Effect.flip); + + expect(result).toBeInstanceOf(SamplingRuleNotFound); + expect((result as SamplingRuleNotFound)._tag).toBe( + "SamplingRuleNotFound", + ); + expect((result as SamplingRuleNotFound).Message).toBe( + "Sampling rule does not exist", + ); + }), + ); + + it.effect( + "should carry the patched error category on the synthetic tag", + () => + Effect.gen(function* () { + const result = yield* parseResponse( + DeleteSamplingRuleRequest, + DeleteSamplingRuleResult, + deleteSamplingRuleErrors, + errorResponse("InvalidRequestException", { + Message: "Sampling rule does not exist", + }), + ).pipe(Effect.flip); + + expect(isNotFoundError(result)).toBe(true); + }), + ); + + it.effect( + "should fall back to the base wire error when the message does not match", + () => + Effect.gen(function* () { + const result = yield* parseResponse( + DeleteSamplingRuleRequest, + DeleteSamplingRuleResult, + deleteSamplingRuleErrors, + errorResponse("InvalidRequestException", { + Message: "Rule name cannot be Default", + }), + ).pipe(Effect.flip); + + expect(result).toBeInstanceOf(InvalidRequestException); + expect((result as InvalidRequestException)._tag).toBe( + "InvalidRequestException", + ); + }), + ); + + it.effect( + "should fall back to the base wire error when the message is absent", + () => + Effect.gen(function* () { + const result = yield* parseResponse( + DeleteSamplingRuleRequest, + DeleteSamplingRuleResult, + deleteSamplingRuleErrors, + errorResponse("InvalidRequestException", {}), + ).pipe(Effect.flip); + + expect(result).toBeInstanceOf(InvalidRequestException); + }), + ); + + it.effect("should not intercept other wire errors in the same union", () => + Effect.gen(function* () { + const result = yield* parseResponse( + DeleteSamplingRuleRequest, + DeleteSamplingRuleResult, + deleteSamplingRuleErrors, + errorResponse("ThrottledException", { + Message: "Sampling rule does not exist", + }), + ).pipe(Effect.flip); + + expect(result).toBeInstanceOf(ThrottledException); + }), + ); + + it.effect("should match a regex message predicate (GroupAlreadyExists)", () => + Effect.gen(function* () { + const result = yield* parseResponse( + CreateGroupRequest, + CreateGroupResult, + [InvalidRequestException, ThrottledException, GroupAlreadyExists], + errorResponse("InvalidRequestException", { + Message: "my-test-group already exists", + }), + ).pipe(Effect.flip); + + expect(result).toBeInstanceOf(GroupAlreadyExists); + expect((result as GroupAlreadyExists).Message).toBe( + "my-test-group already exists", + ); + }), + ); + + it.effect( + "should match when the wire code uses the short form (suffix-stripped)", + () => + Effect.gen(function* () { + const result = yield* parseResponse( + DeleteSamplingRuleRequest, + DeleteSamplingRuleResult, + deleteSamplingRuleErrors, + errorResponse("InvalidRequest", { + Message: "Sampling rule does not exist", + }), + ).pipe(Effect.flip); + + expect(result).toBeInstanceOf(SamplingRuleNotFound); + }), + ); + + it.effect("should match against the lowercase message field as well", () => + Effect.gen(function* () { + const result = yield* parseResponse( + DeleteSamplingRuleRequest, + DeleteSamplingRuleResult, + deleteSamplingRuleErrors, + errorResponse("InvalidRequestException", { + message: "Sampling rule does not exist", + }), + ).pipe(Effect.flip); + + expect(result).toBeInstanceOf(SamplingRuleNotFound); + }), + ); + + it.effect( + "should keep GroupNotFound and GroupAlreadyExists disjoint on the same base error", + () => + Effect.gen(function* () { + const result = yield* parseResponse( + CreateGroupRequest, + CreateGroupResult, + [ + InvalidRequestException, + ThrottledException, + GroupAlreadyExists, + GroupNotFound, + ], + errorResponse("InvalidRequestException", { + Message: "Group not found", + }), + ).pipe(Effect.flip); + + expect(result).toBeInstanceOf(GroupNotFound); + }), + ); +}); diff --git a/packages/aws/test/presign.test.ts b/packages/aws/test/presign.test.ts new file mode 100644 index 0000000000..3d06b512bb --- /dev/null +++ b/packages/aws/test/presign.test.ts @@ -0,0 +1,200 @@ +import { describe, expect, it } from "@effect/vitest"; +import * as Effect from "effect/Effect"; +import * as Layer from "effect/Layer"; +import * as Credentials from "../src/credentials.browser.ts"; +import { Endpoint } from "../src/endpoint.ts"; +import { presignS3Url, presignUrl } from "../src/presign.ts"; +import { Region } from "../src/region.ts"; + +const staticCredentials = Credentials.fromCredentials({ + accessKeyId: "AKIDEXAMPLE", + secretAccessKey: "wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY", +}); + +const staticCredentialsWithSessionToken = Credentials.fromCredentials({ + accessKeyId: "AKIDEXAMPLE", + secretAccessKey: "wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY", + sessionToken: "THESESSIONTOKEN", +}); + +const region = Layer.succeed(Region, Effect.succeed("us-east-1")); + +const layers = Layer.mergeAll(staticCredentials, region); + +const DATETIME = "20260101T000000Z"; + +describe("Presign", () => { + describe("presignS3Url", () => { + it.effect("mints a virtual-hosted-style presigned GET URL", () => + Effect.gen(function* () { + const signed = yield* presignS3Url({ + bucket: "my-bucket", + key: "path/to/object.txt", + datetime: DATETIME, + }); + const url = new URL(signed); + expect(url.origin).toBe("https://my-bucket.s3.us-east-1.amazonaws.com"); + expect(url.pathname).toBe("/path/to/object.txt"); + expect(url.searchParams.get("X-Amz-Algorithm")).toBe( + "AWS4-HMAC-SHA256", + ); + expect(url.searchParams.get("X-Amz-Credential")).toBe( + "AKIDEXAMPLE/20260101/us-east-1/s3/aws4_request", + ); + expect(url.searchParams.get("X-Amz-Date")).toBe(DATETIME); + expect(url.searchParams.get("X-Amz-Expires")).toBe("900"); + expect(url.searchParams.get("X-Amz-SignedHeaders")).toBe("host"); + expect(url.searchParams.get("X-Amz-Signature")).toMatch( + /^[0-9a-f]{64}$/, + ); + }).pipe(Effect.provide(layers)), + ); + + it.effect("is deterministic for a fixed datetime and credentials", () => + Effect.gen(function* () { + const options = { + bucket: "my-bucket", + key: "object.txt", + datetime: DATETIME, + } as const; + const first = yield* presignS3Url(options); + const second = yield* presignS3Url(options); + expect(first).toBe(second); + }).pipe(Effect.provide(layers)), + ); + + it.effect("signs content-type into PUT URLs", () => + Effect.gen(function* () { + const signed = yield* presignS3Url({ + method: "PUT", + bucket: "my-bucket", + key: "upload.json", + contentType: "application/json", + expiresIn: 3600, + datetime: DATETIME, + }); + const url = new URL(signed); + expect(url.searchParams.get("X-Amz-Expires")).toBe("3600"); + expect(url.searchParams.get("X-Amz-SignedHeaders")).toBe( + "content-type;host", + ); + }).pipe(Effect.provide(layers)), + ); + + it.effect("signs response-content-type overrides into GET URLs", () => + Effect.gen(function* () { + const signed = yield* presignS3Url({ + bucket: "my-bucket", + key: "report.bin", + responseContentType: "application/pdf", + datetime: DATETIME, + }); + const url = new URL(signed); + expect(url.searchParams.get("response-content-type")).toBe( + "application/pdf", + ); + // pre-signature query params participate in the signature + const without = yield* presignS3Url({ + bucket: "my-bucket", + key: "report.bin", + datetime: DATETIME, + }); + expect(new URL(without).searchParams.get("X-Amz-Signature")).not.toBe( + url.searchParams.get("X-Amz-Signature"), + ); + }).pipe(Effect.provide(layers)), + ); + + it.effect("URI-encodes the key while preserving slashes", () => + Effect.gen(function* () { + const signed = yield* presignS3Url({ + bucket: "my-bucket", + key: "dir with spaces/file+name.txt", + datetime: DATETIME, + }); + const url = new URL(signed); + expect(url.pathname).toBe("/dir%20with%20spaces/file%2Bname.txt"); + }).pipe(Effect.provide(layers)), + ); + + it.effect("includes the session token when present", () => + Effect.gen(function* () { + const signed = yield* presignS3Url({ + bucket: "my-bucket", + key: "object.txt", + datetime: DATETIME, + }); + const url = new URL(signed); + expect(url.searchParams.get("X-Amz-Security-Token")).toBe( + "THESESSIONTOKEN", + ); + }).pipe( + Effect.provide( + Layer.mergeAll(staticCredentialsWithSessionToken, region), + ), + ), + ); + + it.effect("honors an explicit region over the Region service", () => + Effect.gen(function* () { + const signed = yield* presignS3Url({ + bucket: "my-bucket", + key: "object.txt", + region: "eu-west-1", + datetime: DATETIME, + }); + const url = new URL(signed); + expect(url.host).toBe("my-bucket.s3.eu-west-1.amazonaws.com"); + expect(url.searchParams.get("X-Amz-Credential")).toBe( + "AKIDEXAMPLE/20260101/eu-west-1/s3/aws4_request", + ); + }).pipe(Effect.provide(layers)), + ); + + it.effect("uses path-style URLs under a custom Endpoint", () => + Effect.gen(function* () { + const signed = yield* presignS3Url({ + bucket: "my-bucket", + key: "object.txt", + datetime: DATETIME, + }); + const url = new URL(signed); + expect(url.origin).toBe("http://localhost:4566"); + expect(url.pathname).toBe("/my-bucket/object.txt"); + expect(url.searchParams.get("X-Amz-Signature")).toMatch( + /^[0-9a-f]{64}$/, + ); + }).pipe( + Effect.provide( + Layer.mergeAll( + layers, + Layer.succeed(Endpoint, Effect.succeed("http://localhost:4566/")), + ), + ), + ), + ); + }); + + describe("presignUrl", () => { + it.effect("presigns an arbitrary URL for any service", () => + Effect.gen(function* () { + const signed = yield* presignUrl({ + method: "POST", + url: "https://abc123.execute-api.us-east-1.amazonaws.com/prod/orders?limit=10", + service: "execute-api", + expiresIn: 60, + datetime: DATETIME, + }); + const url = new URL(signed); + expect(url.searchParams.get("limit")).toBe("10"); + expect(url.searchParams.get("X-Amz-Expires")).toBe("60"); + expect(url.searchParams.get("X-Amz-Credential")).toBe( + "AKIDEXAMPLE/20260101/us-east-1/execute-api/aws4_request", + ); + expect(url.searchParams.get("X-Amz-Signature")).toMatch( + /^[0-9a-f]{64}$/, + ); + }).pipe(Effect.provide(layers)), + ); + }); +}); diff --git a/packages/aws/test/protocols/aws-json-1.0.test.ts b/packages/aws/test/protocols/aws-json-1.0.test.ts index 2238a349e7..84b5f6a83a 100644 --- a/packages/aws/test/protocols/aws-json-1.0.test.ts +++ b/packages/aws/test/protocols/aws-json-1.0.test.ts @@ -919,9 +919,44 @@ describe("awsJson1_0 protocol", () => { ).pipe(Effect.flip); expect(result).toBeInstanceOf(ValidationException); + // The service's validation message must survive decoding — a + // ValidationException with an empty message hides the actual reason. + expect((result as ValidationException).message).toBe("Invalid input"); }), ); + it.effect( + "should surface ValidationException reason and fieldList details", + () => + Effect.gen(function* () { + const response: Response = { + status: 400, + statusText: "Bad Request", + headers: {}, + body: JSON.stringify({ + __type: "ValidationException", + message: "1 validation error detected", + reason: "FIELD_VALIDATION_FAILED", + fieldList: [{ name: "Name", message: "Member must not be null" }], + }), + }; + + const result = yield* parseResponse( + DescribeTableInput, + response, + [], + ).pipe(Effect.flip); + + expect(result).toBeInstanceOf(ValidationException); + const err = result as ValidationException; + expect(err.message).toBe("1 validation error detected"); + expect(err.reason).toBe("FIELD_VALIDATION_FAILED"); + expect(err.fieldList).toEqual([ + { name: "Name", message: "Member must not be null" }, + ]); + }), + ); + it.effect("should return UnknownAwsError for unknown error codes", () => Effect.gen(function* () { const response: Response = { diff --git a/packages/cloudflare/specs/cloudflare/workers.openapi.yml b/packages/cloudflare/specs/cloudflare/workers.openapi.yml index daf28cc70e..7a07f73006 100644 --- a/packages/cloudflare/specs/cloudflare/workers.openapi.yml +++ b/packages/cloudflare/specs/cloudflare/workers.openapi.yml @@ -10997,6 +10997,8 @@ paths: - code: 7003 Forbidden: - status: 403 + RouteScriptNotFound: + - code: 10019 /accounts/{account_id}/workers/scripts/{scriptName}: get: operationId: getScript diff --git a/packages/core/src/pagination.ts b/packages/core/src/pagination.ts index d2623eba72..997712974a 100644 --- a/packages/core/src/pagination.ts +++ b/packages/core/src/pagination.ts @@ -63,6 +63,18 @@ export type PaginationStrategy = < const missingPaginationConfig = (kind: string) => Stream.die(new Error(kind)); +/** + * Whether a continuation token/cursor returned by a paginated operation + * means "no more pages". + * + * APIs mark the terminal page by omitting the output token, returning it + * as `null`, or returning it as an empty string. Treating `""` as a live + * token re-requests the first page forever (the request builders skip + * falsy cursors, so the same page is fetched in an infinite loop). + */ +export const isTerminalToken = (token: unknown): boolean => + token === undefined || token === null || token === ""; + /** * Creates a stream for single-shot list endpoints that still expose the paginated API surface. */ @@ -227,7 +239,7 @@ export const paginateCursor = < const nextState: State = { cursor: nextCursor ?? undefined, - done: nextCursor === null || nextCursor === undefined, + done: isTerminalToken(nextCursor), }; return [response, nextState] as const; @@ -294,7 +306,7 @@ export const paginateToken = < const nextState: State = { token: nextToken, - done: nextToken === undefined || nextToken === null, + done: isTerminalToken(nextToken), }; return [response, nextState] as const; diff --git a/packages/core/test/pagination.test.ts b/packages/core/test/pagination.test.ts index 0e7d3ee27d..bf51490eb7 100644 --- a/packages/core/test/pagination.test.ts +++ b/packages/core/test/pagination.test.ts @@ -1,7 +1,13 @@ import * as Effect from "effect/Effect"; import * as Stream from "effect/Stream"; import { describe, expect, test } from "vitest"; -import { paginatePageNumber, paginateWithDefaults } from "../src/pagination.ts"; +import { + isTerminalToken, + paginateCursor, + paginatePageNumber, + paginateToken, + paginateWithDefaults, +} from "../src/pagination.ts"; const trait = { mode: "page", @@ -121,3 +127,119 @@ describe("paginatePageNumber", () => { expect(seenOptions).toEqual([options, options]); }); }); + +describe("isTerminalToken", () => { + test("treats undefined, null, and empty string as terminal", () => { + expect(isTerminalToken(undefined)).toBe(true); + expect(isTerminalToken(null)).toBe(true); + expect(isTerminalToken("")).toBe(true); + }); + + test("treats real tokens as live", () => { + expect(isTerminalToken("abc123")).toBe(false); + // object tokens (e.g. DynamoDB LastEvaluatedKey) + expect(isTerminalToken({ pk: "a" })).toBe(false); + expect(isTerminalToken(0)).toBe(false); + }); +}); + +describe("paginateToken", () => { + const tokenTrait = { + mode: "token", + inputToken: "NextToken", + outputToken: "NextToken", + items: "Items", + } as const; + + test("stops on an empty-string terminal token instead of looping", async () => { + // Several APIs (e.g. AWS SSM, CloudWatch Logs) mark the final page + // with `NextToken: ""` rather than omitting it. Treating "" as a live + // token re-requests the first page forever. + let calls = 0; + const op = (input: { NextToken?: string }) => + Effect.sync(() => { + calls++; + if (calls > 10) throw new Error("infinite pagination loop"); + return input.NextToken === "page2" + ? { Items: [{ id: "c" }], NextToken: "" } + : { Items: [{ id: "a" }, { id: "b" }], NextToken: "page2" }; + }); + + const items = await Effect.runPromise( + Stream.runCollect( + paginateToken(op as never, {}, tokenTrait).pipe( + Stream.flatMap((p) => + Stream.fromIterable((p as { Items: { id: string }[] }).Items), + ), + ), + ), + ); + + expect(Array.from(items).map((i) => i.id)).toEqual(["a", "b", "c"]); + expect(calls).toBe(2); + }); + + test("stops when the token is absent on the final page", async () => { + let calls = 0; + const op = (input: { NextToken?: string }) => + Effect.sync(() => { + calls++; + if (calls > 10) throw new Error("infinite pagination loop"); + return input.NextToken === "page2" + ? { Items: [{ id: "c" }] } + : { Items: [{ id: "a" }, { id: "b" }], NextToken: "page2" }; + }); + + const items = await Effect.runPromise( + Stream.runCollect( + paginateToken(op as never, {}, tokenTrait).pipe( + Stream.flatMap((p) => + Stream.fromIterable((p as { Items: { id: string }[] }).Items), + ), + ), + ), + ); + + expect(Array.from(items).map((i) => i.id)).toEqual(["a", "b", "c"]); + expect(calls).toBe(2); + }); +}); + +describe("paginateCursor", () => { + const cursorTrait = { + mode: "cursor", + inputToken: "cursor", + outputToken: "pagination.cursor", + items: "data", + } as const; + + test("stops on an empty-string cursor instead of looping", async () => { + // The request builder skips falsy cursors, so a live "" cursor would + // re-fetch the first page in an infinite loop. + let calls = 0; + const op = (input: { cursor?: string }) => + Effect.sync(() => { + calls++; + if (calls > 10) throw new Error("infinite pagination loop"); + return input.cursor === "cur2" + ? { data: [{ id: "c" }], pagination: { cursor: "" } } + : { + data: [{ id: "a" }, { id: "b" }], + pagination: { cursor: "cur2" }, + }; + }); + + const items = await Effect.runPromise( + Stream.runCollect( + paginateCursor(op as never, {}, cursorTrait).pipe( + Stream.flatMap((p) => + Stream.fromIterable((p as { data: { id: string }[] }).data), + ), + ), + ), + ); + + expect(Array.from(items).map((i) => i.id)).toEqual(["a", "b", "c"]); + expect(calls).toBe(2); + }); +});