From 51113fc246f6b9b581188fe8ab6415b3d373950f Mon Sep 17 00:00:00 2001 From: Daniel Lamando Date: Wed, 28 Apr 2021 23:03:23 +0200 Subject: [PATCH] Strip API version strings from bundled clients --- README.md | 1 + generation/script/update-readme.ts | 57 +- generation/script/update-services.ts | 27 +- grid-services.csv | 305 +--- lib/README.md | 328 +--- lib/SERVICES.md | 288 --- lib/demo.ts | 10 +- lib/examples/cloudwatch-emitter.ts | 2 +- lib/examples/dynamodb.ts | 2 +- lib/examples/ec2-launch-instance.ts | 2 +- lib/examples/kinesis-demo.ts | 2 +- lib/examples/s3-bucket-lifecycle.ts | 2 +- lib/examples/sqs-redriver.ts | 2 +- .../mod.ts | 0 .../structs.ts | 0 .../{dynamodb@2012-08-10 => dynamodb}/mod.ts | 0 .../structs.ts | 0 lib/services/dynamodb@2011-12-05/mod.ts | 575 ------ lib/services/dynamodb@2011-12-05/structs.ts | 331 ---- .../mod.ts | 0 .../structs.ts | 0 lib/services/{ec2@2016-11-15 => ec2}/mod.ts | 0 .../{ec2@2016-11-15 => ec2}/structs.ts | 0 lib/services/{ecr@2015-09-21 => ecr}/mod.ts | 0 .../{ecr@2015-09-21 => ecr}/structs.ts | 0 lib/services/{eks@2017-11-01 => eks}/mod.ts | 0 .../{eks@2017-11-01 => eks}/structs.ts | 0 lib/services/{elb@2012-06-01 => elb}/mod.ts | 0 .../{elb@2012-06-01 => elb}/structs.ts | 0 .../{elbv2@2015-12-01 => elbv2}/mod.ts | 0 .../{elbv2@2015-12-01 => elbv2}/structs.ts | 0 lib/services/{es@2015-01-01 => es}/mod.ts | 0 lib/services/{es@2015-01-01 => es}/structs.ts | 0 lib/services/{iam@2010-05-08 => iam}/mod.ts | 0 .../{iam@2010-05-08 => iam}/structs.ts | 0 .../{kinesis@2013-12-02 => kinesis}/mod.ts | 0 .../structs.ts | 0 lib/services/{kms@2014-11-01 => kms}/mod.ts | 0 .../{kms@2014-11-01 => kms}/structs.ts | 0 .../{lambda@2015-03-31 => lambda}/mod.ts | 0 .../{lambda@2015-03-31 => lambda}/structs.ts | 0 lib/services/lambda@2014-11-11/mod.ts | 348 ---- lib/services/lambda@2014-11-11/structs.ts | 148 -- .../{pricing@2017-10-15 => pricing}/mod.ts | 0 .../structs.ts | 0 lib/services/{rds@2014-10-31 => rds}/mod.ts | 0 .../{rds@2014-10-31 => rds}/structs.ts | 0 lib/services/rds@2013-01-10/mod.ts | 1351 --------------- lib/services/rds@2013-01-10/structs.ts | 990 ----------- lib/services/rds@2013-02-12/mod.ts | 1442 --------------- lib/services/rds@2013-02-12/structs.ts | 1056 ----------- lib/services/rds@2013-09-09/mod.ts | 1532 ---------------- lib/services/rds@2013-09-09/structs.ts | 1106 ------------ lib/services/rds@2014-09-01/mod.ts | 1540 ----------------- lib/services/rds@2014-09-01/structs.ts | 1151 ------------ .../{route53@2013-04-01 => route53}/mod.ts | 0 .../structs.ts | 0 lib/services/{s3@2006-03-01 => s3}/mod.ts | 0 lib/services/{s3@2006-03-01 => s3}/structs.ts | 0 lib/services/{ses@2010-12-01 => ses}/mod.ts | 0 .../{ses@2010-12-01 => ses}/structs.ts | 0 .../{sesv2@2019-09-27 => sesv2}/mod.ts | 0 .../{sesv2@2019-09-27 => sesv2}/structs.ts | 0 lib/services/{sns@2010-03-31 => sns}/mod.ts | 0 .../{sns@2010-03-31 => sns}/structs.ts | 0 lib/services/{sqs@2012-11-05 => sqs}/mod.ts | 0 .../{sqs@2012-11-05 => sqs}/structs.ts | 0 lib/services/{ssm@2014-11-06 => ssm}/mod.ts | 0 .../{ssm@2014-11-06 => ssm}/structs.ts | 0 lib/services/{sts@2011-06-15 => sts}/mod.ts | 0 .../{sts@2011-06-15 => sts}/structs.ts | 0 71 files changed, 134 insertions(+), 12464 deletions(-) delete mode 100644 lib/SERVICES.md rename lib/services/{cloudwatch@2010-08-01 => cloudwatch}/mod.ts (100%) rename lib/services/{cloudwatch@2010-08-01 => cloudwatch}/structs.ts (100%) rename lib/services/{dynamodb@2012-08-10 => dynamodb}/mod.ts (100%) rename lib/services/{dynamodb@2012-08-10 => dynamodb}/structs.ts (100%) delete mode 100644 lib/services/dynamodb@2011-12-05/mod.ts delete mode 100644 lib/services/dynamodb@2011-12-05/structs.ts rename lib/services/{dynamodbstreams@2012-08-10 => dynamodbstreams}/mod.ts (100%) rename lib/services/{dynamodbstreams@2012-08-10 => dynamodbstreams}/structs.ts (100%) rename lib/services/{ec2@2016-11-15 => ec2}/mod.ts (100%) rename lib/services/{ec2@2016-11-15 => ec2}/structs.ts (100%) rename lib/services/{ecr@2015-09-21 => ecr}/mod.ts (100%) rename lib/services/{ecr@2015-09-21 => ecr}/structs.ts (100%) rename lib/services/{eks@2017-11-01 => eks}/mod.ts (100%) rename lib/services/{eks@2017-11-01 => eks}/structs.ts (100%) rename lib/services/{elb@2012-06-01 => elb}/mod.ts (100%) rename lib/services/{elb@2012-06-01 => elb}/structs.ts (100%) rename lib/services/{elbv2@2015-12-01 => elbv2}/mod.ts (100%) rename lib/services/{elbv2@2015-12-01 => elbv2}/structs.ts (100%) rename lib/services/{es@2015-01-01 => es}/mod.ts (100%) rename lib/services/{es@2015-01-01 => es}/structs.ts (100%) rename lib/services/{iam@2010-05-08 => iam}/mod.ts (100%) rename lib/services/{iam@2010-05-08 => iam}/structs.ts (100%) rename lib/services/{kinesis@2013-12-02 => kinesis}/mod.ts (100%) rename lib/services/{kinesis@2013-12-02 => kinesis}/structs.ts (100%) rename lib/services/{kms@2014-11-01 => kms}/mod.ts (100%) rename lib/services/{kms@2014-11-01 => kms}/structs.ts (100%) rename lib/services/{lambda@2015-03-31 => lambda}/mod.ts (100%) rename lib/services/{lambda@2015-03-31 => lambda}/structs.ts (100%) delete mode 100644 lib/services/lambda@2014-11-11/mod.ts delete mode 100644 lib/services/lambda@2014-11-11/structs.ts rename lib/services/{pricing@2017-10-15 => pricing}/mod.ts (100%) rename lib/services/{pricing@2017-10-15 => pricing}/structs.ts (100%) rename lib/services/{rds@2014-10-31 => rds}/mod.ts (100%) rename lib/services/{rds@2014-10-31 => rds}/structs.ts (100%) delete mode 100644 lib/services/rds@2013-01-10/mod.ts delete mode 100644 lib/services/rds@2013-01-10/structs.ts delete mode 100644 lib/services/rds@2013-02-12/mod.ts delete mode 100644 lib/services/rds@2013-02-12/structs.ts delete mode 100644 lib/services/rds@2013-09-09/mod.ts delete mode 100644 lib/services/rds@2013-09-09/structs.ts delete mode 100644 lib/services/rds@2014-09-01/mod.ts delete mode 100644 lib/services/rds@2014-09-01/structs.ts rename lib/services/{route53@2013-04-01 => route53}/mod.ts (100%) rename lib/services/{route53@2013-04-01 => route53}/structs.ts (100%) rename lib/services/{s3@2006-03-01 => s3}/mod.ts (100%) rename lib/services/{s3@2006-03-01 => s3}/structs.ts (100%) rename lib/services/{ses@2010-12-01 => ses}/mod.ts (100%) rename lib/services/{ses@2010-12-01 => ses}/structs.ts (100%) rename lib/services/{sesv2@2019-09-27 => sesv2}/mod.ts (100%) rename lib/services/{sesv2@2019-09-27 => sesv2}/structs.ts (100%) rename lib/services/{sns@2010-03-31 => sns}/mod.ts (100%) rename lib/services/{sns@2010-03-31 => sns}/structs.ts (100%) rename lib/services/{sqs@2012-11-05 => sqs}/mod.ts (100%) rename lib/services/{sqs@2012-11-05 => sqs}/structs.ts (100%) rename lib/services/{ssm@2014-11-06 => ssm}/mod.ts (100%) rename lib/services/{ssm@2014-11-06 => ssm}/structs.ts (100%) rename lib/services/{sts@2011-06-15 => sts}/mod.ts (100%) rename lib/services/{sts@2011-06-15 => sts}/structs.ts (100%) diff --git a/README.md b/README.md index 54aab26a..f4116432 100644 --- a/README.md +++ b/README.md @@ -10,5 +10,6 @@ There's two main parts to this repo: * `lib/` is the signing client, helpers, and generated API bindings that get uploaded to the `/x/` registry. * `generation/` is a big mash of Typescript that uses `aws-sdk-js@2` API definitions to write out all the files in `lib/services/`. + * `generation/deploy/` contains a Deno Deploy application to dynamically serve generated API bindings. I'm not affiliated to Amazon at all, but I do intend to support reasonable usecases. Don't be afraid to submit issues on this repository or reach out to me on the Deno Discord about this effort. diff --git a/generation/script/update-readme.ts b/generation/script/update-readme.ts index 79ab0b88..8dee5687 100644 --- a/generation/script/update-readme.ts +++ b/generation/script/update-readme.ts @@ -36,7 +36,7 @@ services.sort((a, b) => const workingSvc = services.filter(x => x.typechecked === 'ok'); await updateReadme(header); -await updateServices(header); +// await updateServices(header); async function updateFile(path: string, contents: string) { const original = await Deno.readTextFile(path); @@ -48,12 +48,13 @@ async function updateFile(path: string, contents: string) { async function updateReadme(header: string) { const chunks = new Array(); - chunks.push(`| Module | File size | Approx check time |`); - chunks.push(`| --- | ---: | ---: |`); + chunks.push(`| Module | Protocol | File size | Approx check time |`); + chunks.push(`| --- | --- | ---: | ---: |`); for (const svc of workingSvc) { chunks.push(`| `+[ - `\`${svc.id}@${svc.version}\``, + `\`${svc.id}/mod.ts\``, + svc.protocol, formatFileSize(parseInt(svc.bytecount)), formatDuration(parseInt(svc.cachetime)), ].join(' | ')+` |`); @@ -62,30 +63,30 @@ async function updateReadme(header: string) { return updateFile('lib/README.md', chunks.join('\n')); } -async function updateServices(header: string) { - const chunks = new Array(); - - const icons: Record = { - '': '', - 'ok': '✔️', - 'fail': '🚫', - }; - - chunks.push(`| Module | Protocol | Generates | File size | Typechecks | Approx check time |`); - chunks.push(`| --- | --- | :---: | ---: | :---: | ---: |`); - for (const svc of services) { - chunks.push(`| `+[ - `\`${svc.service}@${svc.version}\``, - svc.protocol, - icons[svc.generated], - svc.generated === 'ok' ? formatFileSize(parseInt(svc.bytecount)) : '', - icons[svc.typechecked], - svc.typechecked === 'ok' ? formatDuration(parseInt(svc.cachetime)) : '', - ].join(' | ')+` |`); - } - - return updateFile('lib/SERVICES.md', chunks.join('\n')); -} +// async function updateServices(header: string) { +// const chunks = new Array(); + +// const icons: Record = { +// '': '', +// 'ok': '✔️', +// 'fail': '🚫', +// }; + +// chunks.push(`| Module | Protocol | Generates | File size | Typechecks | Approx check time |`); +// chunks.push(`| --- | --- | :---: | ---: | :---: | ---: |`); +// for (const svc of services) { +// chunks.push(`| `+[ +// `\`${svc.service}@${svc.version}\``, +// svc.protocol, +// icons[svc.generated], +// svc.generated === 'ok' ? formatFileSize(parseInt(svc.bytecount)) : '', +// icons[svc.typechecked], +// svc.typechecked === 'ok' ? formatDuration(parseInt(svc.cachetime)) : '', +// ].join(' | ')+` |`); +// } + +// return updateFile('lib/SERVICES.md', chunks.join('\n')); +// } function formatFileSize(bytes: number): string { return `${Math.round(bytes / 1024)} KiB`; diff --git a/generation/script/update-services.ts b/generation/script/update-services.ts index ae81a402..164bbe54 100644 --- a/generation/script/update-services.ts +++ b/generation/script/update-services.ts @@ -43,6 +43,7 @@ const opts = new URLSearchParams(); const specSuffix = `.normal.json`; const specificServices = Deno.args[0]?.split(','); +const relevantServices = new Map(); for await (const entry of Deno.readDir(`./aws-sdk-js/apis`)) { if (!entry.name.endsWith(specSuffix)) continue; const uid = entry.name.slice(0, -specSuffix.length); @@ -70,18 +71,26 @@ for await (const entry of Deno.readDir(`./aws-sdk-js/apis`)) { }; } - const svc = services[`${service}@${version}`]; - svc.id = serviceList[service].modId; - svc.namespace = serviceList[service].name; + const existing = relevantServices.get(service); + if (existing) { + if (existing.version > version) continue; + } + relevantServices.set(service, services[`${service}@${version}`]); +} + +for (const svc of relevantServices.values()) { + const uid = `${svc.service}-${svc.version}`; + svc.id = serviceList[svc.service].modId; + svc.namespace = serviceList[svc.service].name; let modPath: string; let byteCount: number; try { - [modPath, byteCount] = await generateApi('aws-sdk-js/apis', uid, svc.namespace, serviceList[service].modId); + [modPath, byteCount] = await generateApi('aws-sdk-js/apis', uid, svc.namespace, svc.id); svc.bytecount = byteCount.toString(); svc.generated = 'ok'; } catch (err) { - console.log(`${service}@${version}`, 'build fail:', err.message); + console.log(`${svc.service}@${svc.version}`, 'build fail:', err.message); svc.generated = 'fail'; continue; } @@ -96,7 +105,7 @@ for await (const entry of Deno.readDir(`./aws-sdk-js/apis`)) { const cacheEnd = new Date; if (code !== 0) { - console.log(`${service}@${version}`, 'cache fail code', code); + console.log(`${svc.service}@${svc.version}`, 'cache fail code', code); svc.typechecked = 'fail'; continue; } @@ -143,10 +152,10 @@ async function generateApi(apisPath: string, apiUid: string, namespace: string, const structsCode = codeGen.generateStructsTypescript(); const version = apiUid.slice(-10); - const modName = `${serviceId}@${version}`; - console.log('Writing', modName); + // const modName = `${serviceId}@${version}`; + console.log('Writing', serviceId); - const modPath = path.join('lib', 'services', modName); + const modPath = path.join('lib', 'services', serviceId); await Deno.run({cmd: ['mkdir', '-p', modPath]}).status(); await Deno.writeTextFile(modPath+'/mod.ts', modCode); await Deno.writeTextFile(modPath+'/structs.ts', structsCode); diff --git a/grid-services.csv b/grid-services.csv index 70fa5509..9ceecced 100644 --- a/grid-services.csv +++ b/grid-services.csv @@ -1,277 +1,30 @@ service,version,fullname,id,namespace,protocol,generated,typechecked,bytecount,cachetime -accessanalyzer,2019-11-01,Access Analyzer,accessanalyzer,AccessAnalyzer,rest-json,ok,ok,49466,1749 -acm-pca,2017-08-22,AWS Certificate Manager Private Certificate Authority,acmpca,ACMPCA,json,ok,ok,39558,2075 -acm,2015-12-08,AWS Certificate Manager,acm,ACM,json,ok,ok,23902,1520 -alexaforbusiness,2017-11-09,Alexa For Business,alexaforbusiness,AlexaForBusiness,json,ok,ok,110217,2584 -amp,2020-08-01,Amazon Prometheus Service,amp,Amp,rest-json,ok,ok,6847,1417 -amplify,2017-07-25,AWS Amplify,amplify,Amplify,rest-json,ok,ok,51494,1983 -amplifybackend,2020-08-11,AmplifyBackend,amplifybackend,AmplifyBackend,rest-json,ok,ok,50053,3132 -apigateway,2015-07-09,Amazon API Gateway,apigateway,APIGateway,rest-json,ok,ok,153378,3739 -apigatewaymanagementapi,2018-11-29,AmazonApiGatewayManagementApi,apigatewaymanagementapi,ApiGatewayManagementApi,rest-json,ok,ok,3266,1292 -apigatewayv2,2018-11-29,AmazonApiGatewayV2,apigatewayv2,ApiGatewayV2,rest-json,ok,ok,123089,2716 -appconfig,2019-10-09,Amazon AppConfig,appconfig,AppConfig,rest-json,ok,ok,43396,1768 -appflow,2020-08-23,Amazon Appflow,appflow,Appflow,rest-json,ok,ok,97230,2097 -appintegrations,2020-07-29,Amazon AppIntegrations Service,appintegrations,AppIntegrations,rest-json,ok,ok,10646,1137 -application-autoscaling,2016-02-06,Application Auto Scaling,applicationautoscaling,ApplicationAutoScaling,json,ok,ok,25809,2774 -application-insights,2018-11-25,Amazon CloudWatch Application Insights,applicationinsights,ApplicationInsights,json,ok,ok,33325,1551 -appmesh,2018-10-01,AWS App Mesh,appmesh,AppMesh,rest-json,ok,ok,30747,1811 -appmesh,2019-01-25,AWS App Mesh,appmesh,AppMesh,rest-json,ok,ok,124641,3207 -appstream,2016-12-01,Amazon AppStream,appstream,AppStream,json,ok,ok,68022,2335 -appsync,2017-07-25,AWS AppSync,appsync,AppSync,rest-json,ok,ok,60098,2117 -athena,2017-05-18,Amazon Athena,athena,Athena,json,ok,ok,44384,1692 -auditmanager,2017-07-25,AWS Audit Manager,auditmanager,AuditManager,rest-json,ok,ok,80393,2301 -autoscaling-plans,2018-01-06,AWS Auto Scaling Plans,autoscalingplans,AutoScalingPlans,json,ok,ok,22514,1893 -autoscaling,2011-01-01,Auto Scaling,autoscaling,AutoScaling,query,ok,ok,105153,2397 -AWSMigrationHub,2017-05-31,AWS Migration Hub,migrationhub,MigrationHub,json,ok,ok,20189,1321 -backup,2018-11-15,AWS Backup,backup,Backup,rest-json,ok,ok,71868,2051 -batch,2016-08-10,AWS Batch,batch,Batch,rest-json,ok,ok,53494,1871 -braket,2019-09-01,Braket,braket,Braket,rest-json,ok,ok,12814,1302 -budgets,2016-10-20,AWS Budgets,budgets,Budgets,json,ok,ok,37052,1612 -ce,2017-10-25,AWS Cost Explorer Service,costexplorer,CostExplorer,json,ok,ok,89878,2275 -chime,2018-05-01,Amazon Chime,chime,Chime,rest-json,ok,ok,222013,3815 -cloud9,2017-09-23,AWS Cloud9,cloud9,Cloud9,json,ok,ok,14188,1604 -clouddirectory,2016-05-10,Amazon CloudDirectory,clouddirectory,CloudDirectory,rest-json,ok,ok,121059,3540 -clouddirectory,2017-01-11,Amazon CloudDirectory,clouddirectory,CloudDirectory,rest-json,ok,ok,124219,4233 -cloudformation,2010-05-15,AWS CloudFormation,cloudformation,CloudFormation,query,ok,ok,134008,2766 -cloudfront,2016-11-25,Amazon CloudFront,cloudfront,CloudFront,rest-xml,ok,ok,84783,2616 -cloudfront,2017-03-25,Amazon CloudFront,cloudfront,CloudFront,rest-xml,ok,ok,85823,2507 -cloudfront,2017-10-30,Amazon CloudFront,cloudfront,CloudFront,rest-xml,ok,ok,121973,2802 -cloudfront,2018-06-18,Amazon CloudFront,cloudfront,CloudFront,rest-xml,ok,ok,122152,3253 -cloudfront,2018-11-05,Amazon CloudFront,cloudfront,CloudFront,rest-xml,ok,ok,126631,2471 -cloudfront,2019-03-26,Amazon CloudFront,cloudfront,CloudFront,rest-xml,ok,ok,127935,3378 -cloudfront,2020-05-31,Amazon CloudFront,cloudfront,CloudFront,rest-xml,ok,ok,187329,3392 -cloudhsm,2014-05-30,Amazon CloudHSM,cloudhsm,CloudHSM,json,ok,ok,19125,1526 -cloudhsmv2,2017-04-28,AWS CloudHSM V2,cloudhsmv2,CloudHSMV2,json,ok,ok,18671,4408 -cloudsearch,2011-02-01,Amazon CloudSearch,cloudsearch,CloudSearch,query,ok,ok,35477,2794 -cloudsearch,2013-01-01,Amazon CloudSearch,cloudsearch,CloudSearch,query,ok,ok,59383,2119 -cloudsearchdomain,2013-01-01,Amazon CloudSearch Domain,cloudsearchdomain,CloudSearchDomain,rest-json,ok,ok,9850,2114 -cloudtrail,2013-11-01,AWS CloudTrail,cloudtrail,CloudTrail,json,ok,ok,27759,1621 -codeartifact,2018-09-22,CodeArtifact,codeartifact,CodeArtifact,rest-json,ok,ok,56489,1986 -codebuild,2016-10-06,AWS CodeBuild,codebuild,CodeBuild,json,ok,ok,90909,2134 -codecommit,2015-04-13,AWS CodeCommit,codecommit,CodeCommit,json,ok,ok,112076,3994 -codedeploy,2014-10-06,AWS CodeDeploy,codedeploy,CodeDeploy,json,ok,ok,87929,2292 -codeguru-reviewer,2019-09-19,Amazon CodeGuru Reviewer,codegurureviewer,CodeGuruReviewer,rest-json,ok,ok,26317,5708 -codeguruprofiler,2019-07-18,Amazon CodeGuru Profiler,codeguruprofiler,CodeGuruProfiler,rest-json,ok,ok,36550,1689 -codepipeline,2015-07-09,AWS CodePipeline,codepipeline,CodePipeline,json,ok,ok,75804,2299 -codestar-connections,2019-12-01,AWS CodeStar connections,codestarconnections,CodeStarconnections,json,ok,ok,12423,1539 -codestar-notifications,2019-10-15,AWS CodeStar Notifications,codestarnotifications,CodeStarNotifications,rest-json,ok,ok,16371,1487 -codestar,2017-04-19,AWS CodeStar,codestar,CodeStar,json,ok,ok,21714,1708 -cognito-identity,2014-06-30,Amazon Cognito Identity,cognitoidentity,CognitoIdentity,json,ok,ok,28143,1618 -cognito-idp,2016-04-18,Amazon Cognito Identity Provider,cognitoidentityserviceprovider,CognitoIdentityServiceProvider,json,ok,ok,148172,3270 -cognito-sync,2014-06-30,Amazon Cognito Sync,cognitosync,CognitoSync,rest-json,ok,ok,22185,1574 -comprehend,2017-11-27,Amazon Comprehend,comprehend,Comprehend,json,ok,ok,100383,2125 -comprehendmedical,2018-10-30,AWS Comprehend Medical,comprehendmedical,ComprehendMedical,json,ok,ok,34141,1835 -compute-optimizer,2019-11-01,AWS Compute Optimizer,computeoptimizer,ComputeOptimizer,json,ok,ok,36668,1628 -config,2014-11-12,AWS Config,configservice,ConfigService,json,ok,ok,143111,2850 -connect-contact-lens,2020-08-21,Amazon Connect Contact Lens,connectcontactlens,ConnectContactLens,rest-json,ok,ok,5303,1122 -connect,2017-08-08,Amazon Connect Service,connect,Connect,rest-json,ok,ok,130105,2504 -connectparticipant,2018-09-07,Amazon Connect Participant Service,connectparticipant,ConnectParticipant,rest-json,ok,ok,13167,1259 -cur,2017-01-06,AWS Cost and Usage Report Service,cur,CUR,json,ok,ok,7088,1274 -customer-profiles,2020-08-15,Amazon Connect Customer Profiles,customerprofiles,CustomerProfiles,rest-json,ok,ok,53668,2218 -databrew,2017-07-25,AWS Glue DataBrew,databrew,DataBrew,rest-json,ok,ok,60823,1854 -dataexchange,2017-07-25,AWS Data Exchange,dataexchange,DataExchange,rest-json,ok,ok,40050,1712 -datapipeline,2012-10-29,AWS Data Pipeline,datapipeline,DataPipeline,json,ok,ok,22767,1941 -datasync,2018-11-09,AWS DataSync,datasync,DataSync,json,ok,ok,47174,1715 -dax,2017-04-19,Amazon DynamoDB Accelerator (DAX),dax,DAX,json,ok,ok,29080,1714 -detective,2018-10-26,Amazon Detective,detective,Detective,rest-json,ok,ok,11825,1548 -devicefarm,2015-06-23,AWS Device Farm,devicefarm,DeviceFarm,json,ok,ok,101817,2490 -devops-guru,2020-12-01,Amazon DevOps Guru,devopsguru,DevOpsGuru,rest-json,ok,ok,44604,1941 -directconnect,2012-10-25,AWS Direct Connect,directconnect,DirectConnect,json,ok,ok,72188,4739 -discovery,2015-11-01,AWS Application Discovery Service,discovery,Discovery,json,ok,ok,33176,1733 -dlm,2018-01-12,Amazon Data Lifecycle Manager,dlm,DLM,rest-json,ok,ok,22797,1611 -dms,2016-01-01,AWS Database Migration Service,dms,DMS,json,ok,ok,128441,2953 -docdb,2014-10-31,Amazon DocumentDB with MongoDB compatibility,docdb,DocDB,query,ok,ok,88860,2537 -ds,2015-04-16,AWS Directory Service,directoryservice,DirectoryService,json,ok,ok,71666,2006 -dynamodb,2011-12-05,Amazon DynamoDB,dynamodb,DynamoDB,json,ok,ok,25600,1332 -dynamodb,2012-08-10,Amazon DynamoDB,dynamodb,DynamoDB,json,ok,ok,126018,3194 -ebs,2019-11-02,Amazon Elastic Block Store,ebs,EBS,rest-json,ok,ok,11702,1258 -ec2-instance-connect,2018-04-02,AWS EC2 Instance Connect,ec2instanceconnect,EC2InstanceConnect,json,ok,ok,1971,1243 -ec2,2016-11-15,Amazon Elastic Compute Cloud,ec2,EC2,ec2,ok,ok,1141144,11480 -ecr-public,2020-10-30,Amazon Elastic Container Registry Public,ecrpublic,ECRPUBLIC,json,ok,ok,30613,1573 -ecr,2015-09-21,Amazon EC2 Container Registry,ecr,ECR,json,ok,ok,50339,2243 -ecs,2014-11-13,Amazon EC2 Container Service,ecs,ECS,json,ok,ok,132500,4072 -eks,2017-11-01,Amazon Elastic Kubernetes Service,eks,EKS,rest-json,ok,ok,62953,3095 -elastic-inference,2017-07-25,Amazon Elastic Inference,elasticinference,ElasticInference,rest-json,ok,ok,8756,1263 -elasticache,2015-02-02,Amazon ElastiCache,elasticache,ElastiCache,query,ok,ok,151207,3340 -elasticbeanstalk,2010-12-01,AWS Elastic Beanstalk,elasticbeanstalk,ElasticBeanstalk,query,ok,ok,103392,2819 -elasticfilesystem,2015-02-01,Amazon Elastic File System,efs,EFS,rest-json,ok,ok,32463,1751 -elasticloadbalancing,2012-06-01,Elastic Load Balancing,elb,ELB,query,ok,ok,47728,2277 -elasticloadbalancingv2,2015-12-01,Elastic Load Balancing,elbv2,ELBv2,query,ok,ok,78826,2680 -elasticmapreduce,2009-03-31,Amazon Elastic MapReduce,emr,EMR,json,ok,ok,112803,4519 -elastictranscoder,2012-09-25,Amazon Elastic Transcoder,elastictranscoder,ElasticTranscoder,rest-json,ok,ok,42838,2270 -email,2010-12-01,Amazon Simple Email Service,ses,SES,query,ok,ok,95877,2902 -emr-containers,2020-10-01,Amazon EMR Containers,emrcontainers,EMRcontainers,rest-json,ok,ok,28001,1485 -entitlement.marketplace,2017-01-11,AWS Marketplace Entitlement Service,marketplaceentitlementservice,MarketplaceEntitlementService,json,ok,ok,3286,1084 -es,2015-01-01,Amazon Elasticsearch Service,es,ES,rest-json,ok,ok,92215,3142 -eventbridge,2015-10-07,Amazon EventBridge,eventbridge,EventBridge,json,ok,ok,84857,2687 -events,2015-10-07,Amazon CloudWatch Events,cloudwatchevents,CloudWatchEvents,json,ok,ok,84886,2788 -firehose,2015-08-04,Amazon Kinesis Firehose,firehose,Firehose,json,ok,ok,66827,3104 -fis,2020-12-01,AWS Fault Injection Simulator,fis,Fis,rest-json,ok,ok,28849,1772 -fms,2018-01-01,Firewall Management Service,fms,FMS,json,ok,ok,41098,1746 -forecast,2018-06-26,Amazon Forecast Service,forecastservice,ForecastService,json,ok,ok,54990,2266 -forecastquery,2018-06-26,Amazon Forecast Query Service,forecastqueryservice,ForecastQueryService,json,ok,ok,2647,1718 -frauddetector,2019-11-15,Amazon Fraud Detector,frauddetector,FraudDetector,json,ok,ok,63056,2104 -fsx,2018-03-01,Amazon FSx,fsx,FSx,json,ok,ok,42860,2046 -gamelift,2015-10-01,Amazon GameLift,gamelift,GameLift,json,ok,ok,138910,5229 -glacier,2012-06-01,Amazon Glacier,glacier,Glacier,rest-json,ok,ok,49225,2292 -globalaccelerator,2018-08-08,AWS Global Accelerator,globalaccelerator,GlobalAccelerator,json,ok,ok,57162,1838 -glue,2017-03-31,AWS Glue,glue,Glue,json,ok,ok,250744,3975 -greengrass,2017-06-07,AWS Greengrass,greengrass,Greengrass,rest-json,ok,ok,131560,4304 -greengrassv2,2020-11-30,AWS IoT Greengrass V2,greengrassv2,GreengrassV2,rest-json,ok,ok,46182,1530 -groundstation,2019-05-23,AWS Ground Station,groundstation,GroundStation,rest-json,ok,ok,46567,2601 -guardduty,2017-11-28,Amazon GuardDuty,guardduty,GuardDuty,rest-json,ok,ok,86226,2066 -health,2016-08-04,AWS Health APIs and Notifications,health,Health,json,ok,ok,24535,1654 -healthlake,2017-07-01,Amazon HealthLake,healthlake,HealthLake,json,ok,ok,14214,2002 -honeycode,2020-03-01,Amazon Honeycode,honeycode,Honeycode,rest-json,ok,ok,26318,1710 -iam,2010-05-08,AWS Identity and Access Management,iam,IAM,query,ok,ok,192644,6108 -identitystore,2020-06-15,AWS SSO Identity Store,identitystore,IdentityStore,json,ok,ok,5304,1792 -imagebuilder,2019-12-02,EC2 Image Builder,imagebuilder,Imagebuilder,rest-json,ok,ok,85609,2235 -importexport,2010-06-01,AWS Import/Export,importexport,ImportExport,query,ok,ok,11334,1669 -inspector,2016-02-16,Amazon Inspector,inspector,Inspector,json,ok,ok,52732,2066 -iot-data,2015-05-28,AWS IoT Data Plane,iotdata,IotData,rest-json,ok,ok,5449,1188 -iot-jobs-data,2017-09-29,AWS IoT Jobs Data Plane,iotjobsdataplane,IoTJobsDataPlane,rest-json,ok,ok,7937,1912 -iot,2015-05-28,AWS IoT,iot,Iot,rest-json,ok,ok,353076,4811 -iot1click-devices,2018-05-14,AWS IoT 1-Click Devices Service,iot1clickdevicesservice,IoT1ClickDevicesService,rest-json,ok,ok,13828,1508 -iot1click-projects,2018-05-14,AWS IoT 1-Click Projects Service,iot1clickprojects,IoT1ClickProjects,rest-json,ok,ok,16327,1289 -iotanalytics,2017-11-27,AWS IoT Analytics,iotanalytics,IoTAnalytics,rest-json,ok,ok,75642,2372 -iotdeviceadvisor,2020-09-18,AWS IoT Core Device Advisor,iotdeviceadvisor,IotDeviceAdvisor,rest-json,ok,ok,22157,1471 -iotevents-data,2018-10-23,AWS IoT Events Data,ioteventsdata,IoTEventsData,rest-json,ok,ok,10769,1512 -iotevents,2018-07-27,AWS IoT Events,iotevents,IoTEvents,rest-json,ok,ok,44172,3053 -iotfleethub,2020-11-03,AWS IoT Fleet Hub,iotfleethub,IoTFleetHub,rest-json,ok,ok,9200,1284 -iotsecuretunneling,2018-10-05,AWS IoT Secure Tunneling,iotsecuretunneling,IoTSecureTunneling,json,ok,ok,9813,1372 -iotsitewise,2019-12-02,AWS IoT SiteWise,iotsitewise,IoTSiteWise,rest-json,ok,ok,103211,3788 -iotthingsgraph,2018-09-06,AWS IoT Things Graph,iotthingsgraph,IoTThingsGraph,json,ok,ok,41286,1678 -iotwireless,2020-11-22,AWS IoT Wireless,iotwireless,IoTWireless,rest-json,ok,ok,68616,2004 -ivs,2020-07-14,Amazon Interactive Video Service,ivs,IVS,rest-json,ok,ok,22769,1531 -kafka,2018-11-14,Managed Streaming for Kafka,kafka,Kafka,rest-json,ok,ok,55383,2133 -kendra,2019-02-03,AWSKendraFrontendService,kendra,Kendra,json,ok,ok,96407,2480 -kinesis-video-archived-media,2017-09-30,Amazon Kinesis Video Streams Archived Media,kinesisvideoarchivedmedia,KinesisVideoArchivedMedia,rest-json,ok,ok,12903,1073 -kinesis-video-media,2017-09-30,Amazon Kinesis Video Streams Media,kinesisvideomedia,KinesisVideoMedia,rest-json,ok,ok,2708,1049 -kinesis-video-signaling,2019-12-04,Amazon Kinesis Video Signaling Channels,kinesisvideosignalingchannels,KinesisVideoSignalingChannels,rest-json,ok,ok,3451,1146 -kinesis,2013-12-02,Amazon Kinesis,kinesis,Kinesis,json,ok,ok,32515,1896 -kinesisanalytics,2015-08-14,Amazon Kinesis Analytics,kinesisanalytics,KinesisAnalytics,json,ok,ok,45625,1826 -kinesisanalyticsv2,2018-05-23,Amazon Kinesis Analytics,kinesisanalyticsv2,KinesisAnalyticsV2,json,ok,ok,83164,2233 -kinesisvideo,2017-09-30,Amazon Kinesis Video Streams,kinesisvideo,KinesisVideo,rest-json,ok,ok,21586,1582 -kms,2014-11-01,AWS Key Management Service,kms,KMS,json,ok,ok,49045,4025 -lakeformation,2017-03-31,AWS Lake Formation,lakeformation,LakeFormation,json,ok,ok,23362,1380 -lambda,2014-11-11,AWS Lambda,lambda,Lambda,rest-json,ok,ok,14964,1365 -lambda,2015-03-31,AWS Lambda,lambda,Lambda,rest-json,ok,ok,101845,2449 -lex-models,2017-04-19,Amazon Lex Model Building Service,lexmodelbuildingservice,LexModelBuildingService,rest-json,ok,ok,70861,2054 -license-manager,2018-08-01,AWS License Manager,licensemanager,LicenseManager,json,ok,ok,65186,2986 -lightsail,2016-11-28,Amazon Lightsail,lightsail,Lightsail,json,ok,ok,204114,3607 -location,2020-11-19,Amazon Location Service,location,Location,rest-json,ok,ok,45334,1737 -logs,2014-03-28,Amazon CloudWatch Logs,cloudwatchlogs,CloudWatchLogs,json,ok,ok,44790,1835 -lookoutmetrics,2017-07-25,Amazon Lookout for Metrics,lookoutmetrics,LookoutMetrics,rest-json,ok,ok,49392,1767 -lookoutvision,2020-11-20,Amazon Lookout for Vision,lookoutvision,LookoutVision,rest-json,ok,ok,28585,1624 -machinelearning,2014-12-12,Amazon Machine Learning,machinelearning,MachineLearning,json,ok,ok,48896,2068 -macie,2017-12-19,Amazon Macie,macie,Macie,json,ok,ok,10343,1400 -macie2,2020-01-01,Amazon Macie 2,macie2,Macie2,rest-json,ok,ok,107202,3005 -managedblockchain,2018-09-24,Amazon Managed Blockchain,managedblockchain,ManagedBlockchain,rest-json,ok,ok,43875,1710 -marketplace-catalog,2018-09-17,AWS Marketplace Catalog Service,marketplacecatalog,MarketplaceCatalog,rest-json,ok,ok,11888,1612 -marketplacecommerceanalytics,2015-07-01,AWS Marketplace Commerce Analytics,marketplacecommerceanalytics,MarketplaceCommerceAnalytics,json,ok,ok,5071,1465 -mediaconnect,2018-11-14,AWS MediaConnect,mediaconnect,MediaConnect,rest-json,ok,ok,43481,1857 -mediaconvert,2017-08-29,AWS Elemental MediaConvert,mediaconvert,MediaConvert,rest-json,ok,ok,257186,3774 -medialive,2017-10-14,AWS Elemental MediaLive,medialive,MediaLive,rest-json,ok,ok,318627,4230 -mediapackage-vod,2018-11-07,AWS Elemental MediaPackage VOD,mediapackagevod,MediaPackageVod,rest-json,ok,ok,33941,1636 -mediapackage,2017-10-12,AWS Elemental MediaPackage,mediapackage,MediaPackage,rest-json,ok,ok,46922,1994 -mediastore-data,2017-09-01,AWS Elemental MediaStore Data Plane,mediastoredata,MediaStoreData,rest-json,ok,ok,7445,1364 -mediastore,2017-09-01,AWS Elemental MediaStore,mediastore,MediaStore,json,ok,ok,16877,1448 -mediatailor,2018-04-23,AWS MediaTailor,mediatailor,MediaTailor,rest-json,ok,ok,55748,1839 -meteringmarketplace,2016-01-14,AWSMarketplace Metering,marketplacemetering,MarketplaceMetering,json,ok,ok,7404,1213 -migrationhub-config,2019-06-30,AWS Migration Hub Config,migrationhubconfig,MigrationHubConfig,json,ok,ok,4688,1102 -mobile,2017-07-01,AWS Mobile,mobile,Mobile,rest-json,ok,ok,11586,1581 -mobileanalytics,2014-06-05,Amazon Mobile Analytics,mobileanalytics,MobileAnalytics,rest-json,ok,ok,2734,1141 -models.lex.v2,2020-08-07,Amazon Lex Model Building V2,lexmodelsv2,LexModelsV2,rest-json,ok,ok,102829,2310 -monitoring,2010-08-01,Amazon CloudWatch,cloudwatch,CloudWatch,query,ok,ok,61325,2625 -mq,2017-11-27,AmazonMQ,mq,MQ,rest-json,ok,ok,41129,1808 -mturk-requester,2017-01-17,Amazon Mechanical Turk,mturk,MTurk,json,ok,ok,49707,1969 -mwaa,2020-07-01,AmazonMWAA,mwaa,MWAA,rest-json,ok,ok,21379,1317 -neptune,2014-10-31,Amazon Neptune,neptune,Neptune,query,ok,ok,142250,3260 -network-firewall,2020-11-12,AWS Network Firewall,networkfirewall,NetworkFirewall,json,ok,ok,54806,1819 -networkmanager,2019-07-05,AWS Network Manager,networkmanager,NetworkManager,rest-json,ok,ok,48159,1847 -opsworks,2013-02-18,AWS OpsWorks,opsworks,OpsWorks,json,ok,ok,107967,2729 -opsworkscm,2016-11-01,AWS OpsWorks CM,opsworkscm,OpsWorksCM,json,ok,ok,24649,1550 -organizations,2016-11-28,AWS Organizations,organizations,Organizations,json,ok,ok,52244,1951 -outposts,2019-12-03,AWS Outposts,outposts,Outposts,rest-json,ok,ok,10238,1260 -personalize-events,2018-03-22,Amazon Personalize Events,personalizeevents,PersonalizeEvents,rest-json,ok,ok,4090,1136 -personalize-runtime,2018-05-22,Amazon Personalize Runtime,personalizeruntime,PersonalizeRuntime,rest-json,ok,ok,3835,1181 -personalize,2018-05-22,Amazon Personalize,personalize,Personalize,json,ok,ok,66937,2580 -pi,2018-02-27,AWS Performance Insights,pi,PI,json,ok,ok,7338,1381 -pinpoint-email,2018-07-26,Amazon Pinpoint Email Service,pinpointemail,PinpointEmail,rest-json,ok,ok,58807,2248 -pinpoint,2016-12-01,Amazon Pinpoint,pinpoint,Pinpoint,rest-json,ok,ok,249235,3672 -polly,2016-06-10,Amazon Polly,polly,Polly,rest-json,ok,ok,15567,1327 -pricing,2017-10-15,AWS Price List Service,pricing,Pricing,json,ok,ok,5262,1407 -qldb-session,2019-07-11,Amazon QLDB Session,qldbsession,QLDBSession,json,ok,ok,9954,1692 -qldb,2019-01-02,Amazon QLDB,qldb,QLDB,rest-json,ok,ok,24417,1415 -quicksight,2018-04-01,Amazon QuickSight,quicksight,QuickSight,rest-json,ok,ok,206053,7062 -ram,2018-01-04,AWS Resource Access Manager,ram,RAM,rest-json,ok,ok,34099,1812 -rds-data,2018-08-01,AWS RDS DataService,rdsdataservice,RDSDataService,rest-json,ok,ok,14642,1746 -rds,2013-01-10,Amazon Relational Database Service,rds,RDS,query,ok,ok,96478,2943 -rds,2013-02-12,Amazon Relational Database Service,rds,RDS,query,ok,ok,103372,3032 -rds,2013-09-09,Amazon Relational Database Service,rds,RDS,query,ok,ok,111942,3539 -rds,2014-09-01,Amazon Relational Database Service,rds,RDS,query,ok,ok,114779,3247 -rds,2014-10-31,Amazon Relational Database Service,rds,RDS,query,ok,ok,328901,6053 -redshift-data,2019-12-20,Redshift Data API Service,redshiftdata,RedshiftData,json,ok,ok,14252,1692 -redshift,2012-12-01,Amazon Redshift,redshift,Redshift,query,ok,ok,184920,3349 -rekognition,2016-06-27,Amazon Rekognition,rekognition,Rekognition,json,ok,ok,94308,2412 -resource-groups,2017-11-27,AWS Resource Groups,resourcegroups,ResourceGroups,rest-json,ok,ok,22606,1492 -resourcegroupstaggingapi,2017-01-26,AWS Resource Groups Tagging API,resourcegroupstaggingapi,ResourceGroupsTaggingAPI,json,ok,ok,11156,1157 -robomaker,2018-06-29,AWS RoboMaker,robomaker,RoboMaker,rest-json,ok,ok,106170,2568 -route53,2013-04-01,Amazon Route 53,route53,Route53,rest-xml,ok,ok,100512,3550 -route53domains,2014-05-15,Amazon Route 53 Domains,route53domains,Route53Domains,json,ok,ok,35953,2309 -route53resolver,2018-04-01,Amazon Route 53 Resolver,route53resolver,Route53Resolver,json,ok,ok,43692,1784 -runtime.lex.v2,2020-08-07,Amazon Lex Runtime V2,lexruntimev2,LexRuntimeV2,rest-json,ok,ok,18097,1232 -runtime.lex,2016-11-28,Amazon Lex Runtime Service,lexruntime,LexRuntime,rest-json,ok,ok,19098,1470 -runtime.sagemaker,2017-05-13,Amazon SageMaker Runtime,sagemakerruntime,SageMakerRuntime,rest-json,ok,ok,3101,1358 -s3,2006-03-01,Amazon Simple Storage Service,s3,S3,rest-xml,ok,ok,266690,7076 -s3control,2018-08-20,AWS S3 Control,s3control,S3Control,rest-xml,ok,ok,109810,2868 -s3outposts,2017-07-25,Amazon S3 on Outposts,s3outposts,S3Outposts,rest-json,ok,ok,4608,1505 -sagemaker-a2i-runtime,2019-11-07,Amazon Augmented AI Runtime,augmentedairuntime,AugmentedAIRuntime,rest-json,ok,ok,7865,1298 -sagemaker-edge,2020-09-23,Amazon Sagemaker Edge Manager,sagemakeredge,SagemakerEdge,rest-json,ok,ok,3808,2231 -sagemaker-featurestore-runtime,2020-07-01,Amazon SageMaker Feature Store Runtime,sagemakerfeaturestoreruntime,SageMakerFeatureStoreRuntime,rest-json,ok,ok,3965,2118 -sagemaker,2017-07-24,Amazon SageMaker Service,sagemaker,SageMaker,json,ok,ok,548531,7478 -savingsplans,2019-06-28,AWS Savings Plans,savingsplans,SavingsPlans,rest-json,ok,ok,21785,1377 -schemas,2019-12-02,Schemas,schemas,Schemas,rest-json,ok,ok,37580,1643 -sdb,2009-04-15,Amazon SimpleDB,simpledb,SimpleDB,query,ok,ok,13225,1781 -secretsmanager,2017-10-17,AWS Secrets Manager,secretsmanager,SecretsManager,json,ok,ok,28314,1712 -securityhub,2018-10-26,AWS SecurityHub,securityhub,SecurityHub,rest-json,ok,ok,312118,5068 -serverlessrepo,2017-09-08,AWSServerlessApplicationRepository,serverlessapplicationrepository,ServerlessApplicationRepository,rest-json,ok,ok,25810,1808 -service-quotas,2019-06-24,Service Quotas,servicequotas,ServiceQuotas,json,ok,ok,22183,1505 -servicecatalog-appregistry,2020-06-24,AWS Service Catalog App Registry,servicecatalogappregistry,ServiceCatalogAppRegistry,rest-json,ok,ok,22872,1508 -servicecatalog,2015-12-10,AWS Service Catalog,servicecatalog,ServiceCatalog,json,ok,ok,127113,2539 -servicediscovery,2017-03-14,AWS Cloud Map,servicediscovery,ServiceDiscovery,json,ok,ok,34351,1710 -sesv2,2019-09-27,Amazon Simple Email Service,sesv2,SESV2,rest-json,ok,ok,113919,3304 -shield,2016-06-02,AWS Shield,shield,Shield,json,ok,ok,34198,1795 -signer,2017-08-25,AWS Signer,signer,Signer,rest-json,ok,ok,34198,1775 -sms-voice,2018-09-05,Amazon Pinpoint SMS and Voice Service,pinpointsmsvoice,PinpointSMSVoice,rest-json,ok,ok,13165,1684 -sms,2016-10-24,AWS Server Migration Service,sms,SMS,json,ok,ok,54175,1964 -snowball,2016-06-30,Amazon Import/Export Snowball,snowball,Snowball,json,ok,ok,35480,1658 -sns,2010-03-31,Amazon Simple Notification Service,sns,SNS,query,ok,ok,33350,1885 -sqs,2012-11-05,Amazon Simple Queue Service,sqs,SQS,query,ok,ok,30032,2632 -ssm,2014-11-06,Amazon Simple Systems Manager (SSM),ssm,SSM,json,ok,ok,270337,7233 -sso-admin,2020-07-20,AWS Single Sign-On Admin,ssoadmin,SSOAdmin,json,ok,ok,37980,1572 -sso-oidc,2019-06-10,AWS SSO OIDC,ssooidc,SSOOIDC,rest-json,ok,ok,4631,1106 -sso,2019-06-10,AWS Single Sign-On,sso,SSO,rest-json,ok,ok,5940,1487 -states,2016-11-23,AWS Step Functions,stepfunctions,StepFunctions,json,ok,ok,46004,4485 -storagegateway,2013-06-30,AWS Storage Gateway,storagegateway,StorageGateway,json,ok,ok,102287,2864 -streams.dynamodb,2012-08-10,Amazon DynamoDB Streams,dynamodbstreams,DynamoDBStreams,json,ok,ok,10504,1659 -sts,2011-06-15,AWS Security Token Service,sts,STS,query,ok,ok,14316,1493 -support,2013-04-15,AWS Support,support,Support,json,ok,ok,21868,1439 -swf,2012-01-25,Amazon Simple Workflow Service,swf,SWF,json,ok,ok,104591,2903 -synthetics,2017-10-11,Synthetics,synthetics,Synthetics,rest-json,ok,ok,20099,3578 -textract,2018-06-27,Amazon Textract,textract,Textract,json,ok,ok,15793,1444 -timestream-query,2018-11-01,Amazon Timestream Query,timestreamquery,TimestreamQuery,json,ok,ok,6558,1210 -timestream-write,2018-11-01,Amazon Timestream Write,timestreamwrite,TimestreamWrite,json,ok,ok,15759,1406 -transcribe,2017-10-26,Amazon Transcribe Service,transcribeservice,TranscribeService,json,ok,ok,45261,1759 -transfer,2018-11-05,AWS Transfer Family,transfer,Transfer,json,ok,ok,26429,1540 -translate,2017-07-01,Amazon Translate,translate,Translate,json,ok,ok,24848,1586 -waf-regional,2016-11-28,AWS WAF Regional,wafregional,WAFRegional,json,ok,ok,95399,2508 -waf,2015-08-24,AWS WAF,waf,WAF,json,ok,ok,92651,2350 -wafv2,2019-07-29,AWS WAFV2,wafv2,WAFV2,json,ok,ok,73117,2085 -wellarchitected,2020-03-31,AWS Well-Architected Tool,wellarchitected,WellArchitected,rest-json,ok,ok,48493,2496 -workdocs,2016-05-01,Amazon WorkDocs,workdocs,WorkDocs,rest-json,ok,ok,66019,3419 -worklink,2018-09-25,Amazon WorkLink,worklink,WorkLink,rest-json,ok,ok,31993,1907 -workmail,2017-10-01,Amazon WorkMail,workmail,WorkMail,json,ok,ok,49121,1804 -workmailmessageflow,2019-05-01,Amazon WorkMail Message Flow,workmailmessageflow,WorkMailMessageFlow,rest-json,ok,ok,2911,1079 -workspaces,2015-04-08,Amazon WorkSpaces,workspaces,WorkSpaces,json,ok,ok,66978,2172 -xray,2016-04-12,AWS X-Ray,xray,XRay,rest-json,ok,ok,56735,1983 \ No newline at end of file +dynamodb,2011-12-05,Amazon DynamoDB,,,json,,,, +dynamodb,2012-08-10,Amazon DynamoDB,dynamodb,DynamoDB,json,ok,ok,126018,2903 +ec2,2016-11-15,Amazon Elastic Compute Cloud,ec2,EC2,ec2,ok,ok,1140992,9389 +ecr,2015-09-21,Amazon EC2 Container Registry,ecr,ECR,json,ok,ok,50339,2607 +eks,2017-11-01,Amazon Elastic Kubernetes Service,eks,EKS,rest-json,ok,ok,62953,2748 +elasticloadbalancing,2012-06-01,Elastic Load Balancing,elb,ELB,query,ok,ok,47728,2537 +elasticloadbalancingv2,2015-12-01,Elastic Load Balancing,elbv2,ELBv2,query,ok,ok,78826,2652 +email,2010-12-01,Amazon Simple Email Service,ses,SES,query,ok,ok,95877,7546 +es,2015-01-01,Amazon Elasticsearch Service,es,ES,rest-json,ok,ok,92215,2885 +iam,2010-05-08,AWS Identity and Access Management,iam,IAM,query,ok,ok,192644,3892 +kinesis,2013-12-02,Amazon Kinesis,kinesis,Kinesis,json,ok,ok,32515,6388 +kms,2014-11-01,AWS Key Management Service,kms,KMS,json,ok,ok,49045,2247 +lambda,2014-11-11,AWS Lambda,,,rest-json,,,, +lambda,2015-03-31,AWS Lambda,lambda,Lambda,rest-json,ok,ok,101845,3554 +monitoring,2010-08-01,Amazon CloudWatch,cloudwatch,CloudWatch,query,ok,ok,61325,3217 +pricing,2017-10-15,AWS Price List Service,pricing,Pricing,json,ok,ok,5262,1771 +rds,2013-01-10,Amazon Relational Database Service,,,query,,,, +rds,2013-02-12,Amazon Relational Database Service,,,query,,,, +rds,2013-09-09,Amazon Relational Database Service,,,query,,,, +rds,2014-09-01,Amazon Relational Database Service,,,query,,,, +rds,2014-10-31,Amazon Relational Database Service,rds,RDS,query,ok,ok,328901,6144 +route53,2013-04-01,Amazon Route 53,route53,Route53,rest-xml,ok,ok,100512,3088 +s3,2006-03-01,Amazon Simple Storage Service,s3,S3,rest-xml,ok,ok,266690,4578 +sesv2,2019-09-27,Amazon Simple Email Service,sesv2,SESV2,rest-json,ok,ok,113919,2751 +sns,2010-03-31,Amazon Simple Notification Service,sns,SNS,query,ok,ok,33350,2132 +sqs,2012-11-05,Amazon Simple Queue Service,sqs,SQS,query,ok,ok,30032,1897 +ssm,2014-11-06,Amazon Simple Systems Manager (SSM),ssm,SSM,json,ok,ok,270337,4488 +streams.dynamodb,2012-08-10,Amazon DynamoDB Streams,dynamodbstreams,DynamoDBStreams,json,ok,ok,10504,1926 +sts,2011-06-15,AWS Security Token Service,sts,STS,query,ok,ok,14316,2164 \ No newline at end of file diff --git a/lib/README.md b/lib/README.md index f13c213f..f4703e67 100644 --- a/lib/README.md +++ b/lib/README.md @@ -17,11 +17,20 @@ Each service has its own isolated `mod.ts`; you'll need to make an `ApiFactory` from `client/mod.ts` and then pass it to the service you want to use. +**Version 0.4.0** of this library stopped +including every service's API in the published module. +Instead, the code-generation process is running on Deno Deploy +and allows importing extremely precise modules, +generated on the fly based on multiple configuration options. +*This is a bit experimental!* +While any issues are worked out, feel free to import APIs +from [v0.3.1](https://deno.land/x/aws_api@v0.3.1) for now. + Package layout: * `client/`: A handwritten generic AWS API client (credentials, signing, etc) * `encoding/`: Shared modules for dealing with XML, JSON, & querystrings -* `services/`: Generated Typescript classes and interfaces for all supported AWS services +* `services/`: Generated Typescript classes and interfaces for the most popular AWS services * `demo.ts`: A trivial example of using this library * `examples/`: Several full examples of using individual services * `SERVICES.md`: A complete list of all AWS APIs and their build status @@ -37,7 +46,7 @@ Basic example: (a subset of `demo.ts`) import {ApiFactory} from 'https://deno.land/x/aws_api/client/mod.ts'; const factory = new ApiFactory(); -import STS from 'https://deno.land/x/aws_api/services/sts@2011-06-15/mod.ts'; +import STS from 'https://deno.land/x/aws_api/services/sts/mod.ts'; const sts = new STS(factory); const identity = await sts.getCallerIdentity(); @@ -64,6 +73,8 @@ and working directly with a Kinesis stream. * Using definitions from `aws-sdk-js@2.839.0` * `v0.3.1` on `2021-03-28`: Fix ini-parsing edgecase. Remove zero-field API types. * Using definitions from `aws-sdk-js@2.874.0` +* `v0.4.0`: Deno 1.9 compatibility. Remove most less-common AWS services. + * To use a service that is no longer bundled, see https://aws-api.deno.dev/ ## Disclaimer @@ -135,291 +146,44 @@ Multiple bits are *missing*: * AWS endpoints other than `**.amazonaws.com` (#3) * govcloud, China AWS, IPv6, etc. -## List of Typechecked API Clients +## List of Pre-Generated API Clients [//]: # (Generated Content Barrier) All API definitions are current as of [aws-sdk-js `v2.874.0`](https://github.com/aws/aws-sdk-js/releases/tag/v2.874.0). -| Module | File size | Approx check time | -| --- | ---: | ---: | -| `accessanalyzer@2019-11-01` | 48 KiB | 1.7 sec | -| `acm@2015-12-08` | 23 KiB | 1.5 sec | -| `acmpca@2017-08-22` | 39 KiB | 2.1 sec | -| `alexaforbusiness@2017-11-09` | 108 KiB | 2.6 sec | -| `amp@2020-08-01` | 7 KiB | 1.4 sec | -| `amplify@2017-07-25` | 50 KiB | 2.0 sec | -| `amplifybackend@2020-08-11` | 49 KiB | 3.1 sec | -| `apigateway@2015-07-09` | 150 KiB | 3.7 sec | -| `apigatewaymanagementapi@2018-11-29` | 3 KiB | 1.3 sec | -| `apigatewayv2@2018-11-29` | 120 KiB | 2.7 sec | -| `appconfig@2019-10-09` | 42 KiB | 1.8 sec | -| `appflow@2020-08-23` | 95 KiB | 2.1 sec | -| `appintegrations@2020-07-29` | 10 KiB | 1.1 sec | -| `applicationautoscaling@2016-02-06` | 25 KiB | 2.8 sec | -| `applicationinsights@2018-11-25` | 33 KiB | 1.6 sec | -| `appmesh@2018-10-01` | 30 KiB | 1.8 sec | -| `appmesh@2019-01-25` | 122 KiB | 3.2 sec | -| `appstream@2016-12-01` | 66 KiB | 2.3 sec | -| `appsync@2017-07-25` | 59 KiB | 2.1 sec | -| `athena@2017-05-18` | 43 KiB | 1.7 sec | -| `auditmanager@2017-07-25` | 79 KiB | 2.3 sec | -| `augmentedairuntime@2019-11-07` | 8 KiB | 1.3 sec | -| `autoscaling@2011-01-01` | 103 KiB | 2.4 sec | -| `autoscalingplans@2018-01-06` | 22 KiB | 1.9 sec | -| `backup@2018-11-15` | 70 KiB | 2.1 sec | -| `batch@2016-08-10` | 52 KiB | 1.9 sec | -| `braket@2019-09-01` | 13 KiB | 1.3 sec | -| `budgets@2016-10-20` | 36 KiB | 1.6 sec | -| `chime@2018-05-01` | 217 KiB | 3.8 sec | -| `cloud9@2017-09-23` | 14 KiB | 1.6 sec | -| `clouddirectory@2016-05-10` | 118 KiB | 3.5 sec | -| `clouddirectory@2017-01-11` | 121 KiB | 4.2 sec | -| `cloudformation@2010-05-15` | 131 KiB | 2.8 sec | -| `cloudfront@2016-11-25` | 83 KiB | 2.6 sec | -| `cloudfront@2017-03-25` | 84 KiB | 2.5 sec | -| `cloudfront@2017-10-30` | 119 KiB | 2.8 sec | -| `cloudfront@2018-06-18` | 119 KiB | 3.3 sec | -| `cloudfront@2018-11-05` | 124 KiB | 2.5 sec | -| `cloudfront@2019-03-26` | 125 KiB | 3.4 sec | -| `cloudfront@2020-05-31` | 183 KiB | 3.4 sec | -| `cloudhsm@2014-05-30` | 19 KiB | 1.5 sec | -| `cloudhsmv2@2017-04-28` | 18 KiB | 4.4 sec | -| `cloudsearch@2011-02-01` | 35 KiB | 2.8 sec | -| `cloudsearch@2013-01-01` | 58 KiB | 2.1 sec | -| `cloudsearchdomain@2013-01-01` | 10 KiB | 2.1 sec | -| `cloudtrail@2013-11-01` | 27 KiB | 1.6 sec | -| `cloudwatch@2010-08-01` | 60 KiB | 2.6 sec | -| `cloudwatchevents@2015-10-07` | 83 KiB | 2.8 sec | -| `cloudwatchlogs@2014-03-28` | 44 KiB | 1.8 sec | -| `codeartifact@2018-09-22` | 55 KiB | 2.0 sec | -| `codebuild@2016-10-06` | 89 KiB | 2.1 sec | -| `codecommit@2015-04-13` | 109 KiB | 4.0 sec | -| `codedeploy@2014-10-06` | 86 KiB | 2.3 sec | -| `codeguruprofiler@2019-07-18` | 36 KiB | 1.7 sec | -| `codegurureviewer@2019-09-19` | 26 KiB | 5.7 sec | -| `codepipeline@2015-07-09` | 74 KiB | 2.3 sec | -| `codestar@2017-04-19` | 21 KiB | 1.7 sec | -| `codestarconnections@2019-12-01` | 12 KiB | 1.5 sec | -| `codestarnotifications@2019-10-15` | 16 KiB | 1.5 sec | -| `cognitoidentity@2014-06-30` | 27 KiB | 1.6 sec | -| `cognitoidentityserviceprovider@2016-04-18` | 145 KiB | 3.3 sec | -| `cognitosync@2014-06-30` | 22 KiB | 1.6 sec | -| `comprehend@2017-11-27` | 98 KiB | 2.1 sec | -| `comprehendmedical@2018-10-30` | 33 KiB | 1.8 sec | -| `computeoptimizer@2019-11-01` | 36 KiB | 1.6 sec | -| `configservice@2014-11-12` | 140 KiB | 2.9 sec | -| `connect@2017-08-08` | 127 KiB | 2.5 sec | -| `connectcontactlens@2020-08-21` | 5 KiB | 1.1 sec | -| `connectparticipant@2018-09-07` | 13 KiB | 1.3 sec | -| `costexplorer@2017-10-25` | 88 KiB | 2.3 sec | -| `cur@2017-01-06` | 7 KiB | 1.3 sec | -| `customerprofiles@2020-08-15` | 52 KiB | 2.2 sec | -| `databrew@2017-07-25` | 59 KiB | 1.9 sec | -| `dataexchange@2017-07-25` | 39 KiB | 1.7 sec | -| `datapipeline@2012-10-29` | 22 KiB | 1.9 sec | -| `datasync@2018-11-09` | 46 KiB | 1.7 sec | -| `dax@2017-04-19` | 28 KiB | 1.7 sec | -| `detective@2018-10-26` | 12 KiB | 1.5 sec | -| `devicefarm@2015-06-23` | 99 KiB | 2.5 sec | -| `devopsguru@2020-12-01` | 44 KiB | 1.9 sec | -| `directconnect@2012-10-25` | 70 KiB | 4.7 sec | -| `directoryservice@2015-04-16` | 70 KiB | 2.0 sec | -| `discovery@2015-11-01` | 32 KiB | 1.7 sec | -| `dlm@2018-01-12` | 22 KiB | 1.6 sec | -| `dms@2016-01-01` | 125 KiB | 3.0 sec | -| `docdb@2014-10-31` | 87 KiB | 2.5 sec | -| `dynamodb@2011-12-05` | 25 KiB | 1.3 sec | -| `dynamodb@2012-08-10` | 123 KiB | 3.2 sec | -| `dynamodbstreams@2012-08-10` | 10 KiB | 1.7 sec | -| `ebs@2019-11-02` | 11 KiB | 1.3 sec | -| `ec2@2016-11-15` | 1114 KiB | 11.5 sec | -| `ec2instanceconnect@2018-04-02` | 2 KiB | 1.2 sec | -| `ecr@2015-09-21` | 49 KiB | 2.2 sec | -| `ecrpublic@2020-10-30` | 30 KiB | 1.6 sec | -| `ecs@2014-11-13` | 129 KiB | 4.1 sec | -| `efs@2015-02-01` | 32 KiB | 1.8 sec | -| `eks@2017-11-01` | 61 KiB | 3.1 sec | -| `elasticache@2015-02-02` | 148 KiB | 3.3 sec | -| `elasticbeanstalk@2010-12-01` | 101 KiB | 2.8 sec | -| `elasticinference@2017-07-25` | 9 KiB | 1.3 sec | -| `elastictranscoder@2012-09-25` | 42 KiB | 2.3 sec | -| `elb@2012-06-01` | 47 KiB | 2.3 sec | -| `elbv2@2015-12-01` | 77 KiB | 2.7 sec | -| `emr@2009-03-31` | 110 KiB | 4.5 sec | -| `emrcontainers@2020-10-01` | 27 KiB | 1.5 sec | -| `es@2015-01-01` | 90 KiB | 3.1 sec | -| `eventbridge@2015-10-07` | 83 KiB | 2.7 sec | -| `firehose@2015-08-04` | 65 KiB | 3.1 sec | -| `fis@2020-12-01` | 28 KiB | 1.8 sec | -| `fms@2018-01-01` | 40 KiB | 1.7 sec | -| `forecastqueryservice@2018-06-26` | 3 KiB | 1.7 sec | -| `forecastservice@2018-06-26` | 54 KiB | 2.3 sec | -| `frauddetector@2019-11-15` | 62 KiB | 2.1 sec | -| `fsx@2018-03-01` | 42 KiB | 2.0 sec | -| `gamelift@2015-10-01` | 136 KiB | 5.2 sec | -| `glacier@2012-06-01` | 48 KiB | 2.3 sec | -| `globalaccelerator@2018-08-08` | 56 KiB | 1.8 sec | -| `glue@2017-03-31` | 245 KiB | 4.0 sec | -| `greengrass@2017-06-07` | 128 KiB | 4.3 sec | -| `greengrassv2@2020-11-30` | 45 KiB | 1.5 sec | -| `groundstation@2019-05-23` | 45 KiB | 2.6 sec | -| `guardduty@2017-11-28` | 84 KiB | 2.1 sec | -| `health@2016-08-04` | 24 KiB | 1.7 sec | -| `healthlake@2017-07-01` | 14 KiB | 2.0 sec | -| `honeycode@2020-03-01` | 26 KiB | 1.7 sec | -| `iam@2010-05-08` | 188 KiB | 6.1 sec | -| `identitystore@2020-06-15` | 5 KiB | 1.8 sec | -| `imagebuilder@2019-12-02` | 84 KiB | 2.2 sec | -| `importexport@2010-06-01` | 11 KiB | 1.7 sec | -| `inspector@2016-02-16` | 51 KiB | 2.1 sec | -| `iot@2015-05-28` | 345 KiB | 4.8 sec | -| `iot1clickdevicesservice@2018-05-14` | 14 KiB | 1.5 sec | -| `iot1clickprojects@2018-05-14` | 16 KiB | 1.3 sec | -| `iotanalytics@2017-11-27` | 74 KiB | 2.4 sec | -| `iotdata@2015-05-28` | 5 KiB | 1.2 sec | -| `iotdeviceadvisor@2020-09-18` | 22 KiB | 1.5 sec | -| `iotevents@2018-07-27` | 43 KiB | 3.1 sec | -| `ioteventsdata@2018-10-23` | 11 KiB | 1.5 sec | -| `iotfleethub@2020-11-03` | 9 KiB | 1.3 sec | -| `iotjobsdataplane@2017-09-29` | 8 KiB | 1.9 sec | -| `iotsecuretunneling@2018-10-05` | 10 KiB | 1.4 sec | -| `iotsitewise@2019-12-02` | 101 KiB | 3.8 sec | -| `iotthingsgraph@2018-09-06` | 40 KiB | 1.7 sec | -| `iotwireless@2020-11-22` | 67 KiB | 2.0 sec | -| `ivs@2020-07-14` | 22 KiB | 1.5 sec | -| `kafka@2018-11-14` | 54 KiB | 2.1 sec | -| `kendra@2019-02-03` | 94 KiB | 2.5 sec | -| `kinesis@2013-12-02` | 32 KiB | 1.9 sec | -| `kinesisanalytics@2015-08-14` | 45 KiB | 1.8 sec | -| `kinesisanalyticsv2@2018-05-23` | 81 KiB | 2.2 sec | -| `kinesisvideo@2017-09-30` | 21 KiB | 1.6 sec | -| `kinesisvideoarchivedmedia@2017-09-30` | 13 KiB | 1.1 sec | -| `kinesisvideomedia@2017-09-30` | 3 KiB | 1.0 sec | -| `kinesisvideosignalingchannels@2019-12-04` | 3 KiB | 1.1 sec | -| `kms@2014-11-01` | 48 KiB | 4.0 sec | -| `lakeformation@2017-03-31` | 23 KiB | 1.4 sec | -| `lambda@2014-11-11` | 15 KiB | 1.4 sec | -| `lambda@2015-03-31` | 99 KiB | 2.4 sec | -| `lexmodelbuildingservice@2017-04-19` | 69 KiB | 2.1 sec | -| `lexmodelsv2@2020-08-07` | 100 KiB | 2.3 sec | -| `lexruntime@2016-11-28` | 19 KiB | 1.5 sec | -| `lexruntimev2@2020-08-07` | 18 KiB | 1.2 sec | -| `licensemanager@2018-08-01` | 64 KiB | 3.0 sec | -| `lightsail@2016-11-28` | 199 KiB | 3.6 sec | -| `location@2020-11-19` | 44 KiB | 1.7 sec | -| `lookoutmetrics@2017-07-25` | 48 KiB | 1.8 sec | -| `lookoutvision@2020-11-20` | 28 KiB | 1.6 sec | -| `machinelearning@2014-12-12` | 48 KiB | 2.1 sec | -| `macie@2017-12-19` | 10 KiB | 1.4 sec | -| `macie2@2020-01-01` | 105 KiB | 3.0 sec | -| `managedblockchain@2018-09-24` | 43 KiB | 1.7 sec | -| `marketplacecatalog@2018-09-17` | 12 KiB | 1.6 sec | -| `marketplacecommerceanalytics@2015-07-01` | 5 KiB | 1.5 sec | -| `marketplaceentitlementservice@2017-01-11` | 3 KiB | 1.1 sec | -| `marketplacemetering@2016-01-14` | 7 KiB | 1.2 sec | -| `mediaconnect@2018-11-14` | 42 KiB | 1.9 sec | -| `mediaconvert@2017-08-29` | 251 KiB | 3.8 sec | -| `medialive@2017-10-14` | 311 KiB | 4.2 sec | -| `mediapackage@2017-10-12` | 46 KiB | 2.0 sec | -| `mediapackagevod@2018-11-07` | 33 KiB | 1.6 sec | -| `mediastore@2017-09-01` | 16 KiB | 1.4 sec | -| `mediastoredata@2017-09-01` | 7 KiB | 1.4 sec | -| `mediatailor@2018-04-23` | 54 KiB | 1.8 sec | -| `migrationhub@2017-05-31` | 20 KiB | 1.3 sec | -| `migrationhubconfig@2019-06-30` | 5 KiB | 1.1 sec | -| `mobile@2017-07-01` | 11 KiB | 1.6 sec | -| `mobileanalytics@2014-06-05` | 3 KiB | 1.1 sec | -| `mq@2017-11-27` | 40 KiB | 1.8 sec | -| `mturk@2017-01-17` | 49 KiB | 2.0 sec | -| `mwaa@2020-07-01` | 21 KiB | 1.3 sec | -| `neptune@2014-10-31` | 139 KiB | 3.3 sec | -| `networkfirewall@2020-11-12` | 54 KiB | 1.8 sec | -| `networkmanager@2019-07-05` | 47 KiB | 1.8 sec | -| `opsworks@2013-02-18` | 105 KiB | 2.7 sec | -| `opsworkscm@2016-11-01` | 24 KiB | 1.6 sec | -| `organizations@2016-11-28` | 51 KiB | 2.0 sec | -| `outposts@2019-12-03` | 10 KiB | 1.3 sec | -| `personalize@2018-05-22` | 65 KiB | 2.6 sec | -| `personalizeevents@2018-03-22` | 4 KiB | 1.1 sec | -| `personalizeruntime@2018-05-22` | 4 KiB | 1.2 sec | -| `pi@2018-02-27` | 7 KiB | 1.4 sec | -| `pinpoint@2016-12-01` | 243 KiB | 3.7 sec | -| `pinpointemail@2018-07-26` | 57 KiB | 2.2 sec | -| `pinpointsmsvoice@2018-09-05` | 13 KiB | 1.7 sec | -| `polly@2016-06-10` | 15 KiB | 1.3 sec | -| `pricing@2017-10-15` | 5 KiB | 1.4 sec | -| `qldb@2019-01-02` | 24 KiB | 1.4 sec | -| `qldbsession@2019-07-11` | 10 KiB | 1.7 sec | -| `quicksight@2018-04-01` | 201 KiB | 7.1 sec | -| `ram@2018-01-04` | 33 KiB | 1.8 sec | -| `rds@2013-01-10` | 94 KiB | 2.9 sec | -| `rds@2013-02-12` | 101 KiB | 3.0 sec | -| `rds@2013-09-09` | 109 KiB | 3.5 sec | -| `rds@2014-09-01` | 112 KiB | 3.2 sec | -| `rds@2014-10-31` | 321 KiB | 6.1 sec | -| `rdsdataservice@2018-08-01` | 14 KiB | 1.7 sec | -| `redshift@2012-12-01` | 181 KiB | 3.3 sec | -| `redshiftdata@2019-12-20` | 14 KiB | 1.7 sec | -| `rekognition@2016-06-27` | 92 KiB | 2.4 sec | -| `resourcegroups@2017-11-27` | 22 KiB | 1.5 sec | -| `resourcegroupstaggingapi@2017-01-26` | 11 KiB | 1.2 sec | -| `robomaker@2018-06-29` | 104 KiB | 2.6 sec | -| `route53@2013-04-01` | 98 KiB | 3.6 sec | -| `route53domains@2014-05-15` | 35 KiB | 2.3 sec | -| `route53resolver@2018-04-01` | 43 KiB | 1.8 sec | -| `s3@2006-03-01` | 260 KiB | 7.1 sec | -| `s3control@2018-08-20` | 107 KiB | 2.9 sec | -| `s3outposts@2017-07-25` | 5 KiB | 1.5 sec | -| `sagemaker@2017-07-24` | 536 KiB | 7.5 sec | -| `sagemakeredge@2020-09-23` | 4 KiB | 2.2 sec | -| `sagemakerfeaturestoreruntime@2020-07-01` | 4 KiB | 2.1 sec | -| `sagemakerruntime@2017-05-13` | 3 KiB | 1.4 sec | -| `savingsplans@2019-06-28` | 21 KiB | 1.4 sec | -| `schemas@2019-12-02` | 37 KiB | 1.6 sec | -| `secretsmanager@2017-10-17` | 28 KiB | 1.7 sec | -| `securityhub@2018-10-26` | 305 KiB | 5.1 sec | -| `serverlessapplicationrepository@2017-09-08` | 25 KiB | 1.8 sec | -| `servicecatalog@2015-12-10` | 124 KiB | 2.5 sec | -| `servicecatalogappregistry@2020-06-24` | 22 KiB | 1.5 sec | -| `servicediscovery@2017-03-14` | 34 KiB | 1.7 sec | -| `servicequotas@2019-06-24` | 22 KiB | 1.5 sec | -| `ses@2010-12-01` | 94 KiB | 2.9 sec | -| `sesv2@2019-09-27` | 111 KiB | 3.3 sec | -| `shield@2016-06-02` | 33 KiB | 1.8 sec | -| `signer@2017-08-25` | 33 KiB | 1.8 sec | -| `simpledb@2009-04-15` | 13 KiB | 1.8 sec | -| `sms@2016-10-24` | 53 KiB | 2.0 sec | -| `snowball@2016-06-30` | 35 KiB | 1.7 sec | -| `sns@2010-03-31` | 33 KiB | 1.9 sec | -| `sqs@2012-11-05` | 29 KiB | 2.6 sec | -| `ssm@2014-11-06` | 264 KiB | 7.2 sec | -| `sso@2019-06-10` | 6 KiB | 1.5 sec | -| `ssoadmin@2020-07-20` | 37 KiB | 1.6 sec | -| `ssooidc@2019-06-10` | 5 KiB | 1.1 sec | -| `stepfunctions@2016-11-23` | 45 KiB | 4.5 sec | -| `storagegateway@2013-06-30` | 100 KiB | 2.9 sec | -| `sts@2011-06-15` | 14 KiB | 1.5 sec | -| `support@2013-04-15` | 21 KiB | 1.4 sec | -| `swf@2012-01-25` | 102 KiB | 2.9 sec | -| `synthetics@2017-10-11` | 20 KiB | 3.6 sec | -| `textract@2018-06-27` | 15 KiB | 1.4 sec | -| `timestreamquery@2018-11-01` | 6 KiB | 1.2 sec | -| `timestreamwrite@2018-11-01` | 15 KiB | 1.4 sec | -| `transcribeservice@2017-10-26` | 44 KiB | 1.8 sec | -| `transfer@2018-11-05` | 26 KiB | 1.5 sec | -| `translate@2017-07-01` | 24 KiB | 1.6 sec | -| `waf@2015-08-24` | 90 KiB | 2.4 sec | -| `wafregional@2016-11-28` | 93 KiB | 2.5 sec | -| `wafv2@2019-07-29` | 71 KiB | 2.1 sec | -| `wellarchitected@2020-03-31` | 47 KiB | 2.5 sec | -| `workdocs@2016-05-01` | 64 KiB | 3.4 sec | -| `worklink@2018-09-25` | 31 KiB | 1.9 sec | -| `workmail@2017-10-01` | 48 KiB | 1.8 sec | -| `workmailmessageflow@2019-05-01` | 3 KiB | 1.1 sec | -| `workspaces@2015-04-08` | 65 KiB | 2.2 sec | -| `xray@2016-04-12` | 55 KiB | 2.0 sec | +| Module | Protocol | File size | Approx check time | +| --- | --- | ---: | ---: | +| `cloudwatch/mod.ts` | query | 60 KiB | 3.2 sec | +| `dynamodb/mod.ts` | json | 123 KiB | 2.9 sec | +| `dynamodbstreams/mod.ts` | json | 10 KiB | 1.9 sec | +| `ec2/mod.ts` | ec2 | 1114 KiB | 9.4 sec | +| `ecr/mod.ts` | json | 49 KiB | 2.6 sec | +| `eks/mod.ts` | rest-json | 61 KiB | 2.7 sec | +| `elb/mod.ts` | query | 47 KiB | 2.5 sec | +| `elbv2/mod.ts` | query | 77 KiB | 2.7 sec | +| `es/mod.ts` | rest-json | 90 KiB | 2.9 sec | +| `iam/mod.ts` | query | 188 KiB | 3.9 sec | +| `kinesis/mod.ts` | json | 32 KiB | 6.4 sec | +| `kms/mod.ts` | json | 48 KiB | 2.2 sec | +| `lambda/mod.ts` | rest-json | 99 KiB | 3.6 sec | +| `pricing/mod.ts` | json | 5 KiB | 1.8 sec | +| `rds/mod.ts` | query | 321 KiB | 6.1 sec | +| `route53/mod.ts` | rest-xml | 98 KiB | 3.1 sec | +| `s3/mod.ts` | rest-xml | 260 KiB | 4.6 sec | +| `ses/mod.ts` | query | 94 KiB | 7.5 sec | +| `sesv2/mod.ts` | rest-json | 111 KiB | 2.8 sec | +| `sns/mod.ts` | query | 33 KiB | 2.1 sec | +| `sqs/mod.ts` | query | 29 KiB | 1.9 sec | +| `ssm/mod.ts` | json | 264 KiB | 4.5 sec | +| `sts/mod.ts` | query | 14 KiB | 2.2 sec | [//]: # (Generated Content Barrier) -If something new is missing from this list, feel free to open an issue! +For any other services, please check out https://aws-api.deno.dev/ +which performs on-the-fly code generation. +You can import the generated URL directly in your application, +or download a copy of the file and save it in your source code for safe keeping. + +The generation service also allows skipping methods that doesn't match a passlist, +allowing for much smaller byte-counts on the imported modules. diff --git a/lib/SERVICES.md b/lib/SERVICES.md deleted file mode 100644 index 5b7c9a5c..00000000 --- a/lib/SERVICES.md +++ /dev/null @@ -1,288 +0,0 @@ -## Full List of AWS APIs - -[//]: # (Generated Content Barrier) - -All API definitions are current as of [aws-sdk-js `v2.874.0`](https://github.com/aws/aws-sdk-js/releases/tag/v2.874.0). - -| Module | Protocol | Generates | File size | Typechecks | Approx check time | -| --- | --- | :---: | ---: | :---: | ---: | -| `accessanalyzer@2019-11-01` | rest-json | ✔️ | 48 KiB | ✔️ | 1.7 sec | -| `acm@2015-12-08` | json | ✔️ | 23 KiB | ✔️ | 1.5 sec | -| `acm-pca@2017-08-22` | json | ✔️ | 39 KiB | ✔️ | 2.1 sec | -| `alexaforbusiness@2017-11-09` | json | ✔️ | 108 KiB | ✔️ | 2.6 sec | -| `amp@2020-08-01` | rest-json | ✔️ | 7 KiB | ✔️ | 1.4 sec | -| `amplify@2017-07-25` | rest-json | ✔️ | 50 KiB | ✔️ | 2.0 sec | -| `amplifybackend@2020-08-11` | rest-json | ✔️ | 49 KiB | ✔️ | 3.1 sec | -| `apigateway@2015-07-09` | rest-json | ✔️ | 150 KiB | ✔️ | 3.7 sec | -| `apigatewaymanagementapi@2018-11-29` | rest-json | ✔️ | 3 KiB | ✔️ | 1.3 sec | -| `apigatewayv2@2018-11-29` | rest-json | ✔️ | 120 KiB | ✔️ | 2.7 sec | -| `appconfig@2019-10-09` | rest-json | ✔️ | 42 KiB | ✔️ | 1.8 sec | -| `appflow@2020-08-23` | rest-json | ✔️ | 95 KiB | ✔️ | 2.1 sec | -| `appintegrations@2020-07-29` | rest-json | ✔️ | 10 KiB | ✔️ | 1.1 sec | -| `application-autoscaling@2016-02-06` | json | ✔️ | 25 KiB | ✔️ | 2.8 sec | -| `application-insights@2018-11-25` | json | ✔️ | 33 KiB | ✔️ | 1.6 sec | -| `appmesh@2018-10-01` | rest-json | ✔️ | 30 KiB | ✔️ | 1.8 sec | -| `appmesh@2019-01-25` | rest-json | ✔️ | 122 KiB | ✔️ | 3.2 sec | -| `appstream@2016-12-01` | json | ✔️ | 66 KiB | ✔️ | 2.3 sec | -| `appsync@2017-07-25` | rest-json | ✔️ | 59 KiB | ✔️ | 2.1 sec | -| `athena@2017-05-18` | json | ✔️ | 43 KiB | ✔️ | 1.7 sec | -| `auditmanager@2017-07-25` | rest-json | ✔️ | 79 KiB | ✔️ | 2.3 sec | -| `sagemaker-a2i-runtime@2019-11-07` | rest-json | ✔️ | 8 KiB | ✔️ | 1.3 sec | -| `autoscaling@2011-01-01` | query | ✔️ | 103 KiB | ✔️ | 2.4 sec | -| `autoscaling-plans@2018-01-06` | json | ✔️ | 22 KiB | ✔️ | 1.9 sec | -| `backup@2018-11-15` | rest-json | ✔️ | 70 KiB | ✔️ | 2.1 sec | -| `batch@2016-08-10` | rest-json | ✔️ | 52 KiB | ✔️ | 1.9 sec | -| `braket@2019-09-01` | rest-json | ✔️ | 13 KiB | ✔️ | 1.3 sec | -| `budgets@2016-10-20` | json | ✔️ | 36 KiB | ✔️ | 1.6 sec | -| `chime@2018-05-01` | rest-json | ✔️ | 217 KiB | ✔️ | 3.8 sec | -| `cloud9@2017-09-23` | json | ✔️ | 14 KiB | ✔️ | 1.6 sec | -| `clouddirectory@2016-05-10` | rest-json | ✔️ | 118 KiB | ✔️ | 3.5 sec | -| `clouddirectory@2017-01-11` | rest-json | ✔️ | 121 KiB | ✔️ | 4.2 sec | -| `cloudformation@2010-05-15` | query | ✔️ | 131 KiB | ✔️ | 2.8 sec | -| `cloudfront@2016-11-25` | rest-xml | ✔️ | 83 KiB | ✔️ | 2.6 sec | -| `cloudfront@2017-03-25` | rest-xml | ✔️ | 84 KiB | ✔️ | 2.5 sec | -| `cloudfront@2017-10-30` | rest-xml | ✔️ | 119 KiB | ✔️ | 2.8 sec | -| `cloudfront@2018-06-18` | rest-xml | ✔️ | 119 KiB | ✔️ | 3.3 sec | -| `cloudfront@2018-11-05` | rest-xml | ✔️ | 124 KiB | ✔️ | 2.5 sec | -| `cloudfront@2019-03-26` | rest-xml | ✔️ | 125 KiB | ✔️ | 3.4 sec | -| `cloudfront@2020-05-31` | rest-xml | ✔️ | 183 KiB | ✔️ | 3.4 sec | -| `cloudhsm@2014-05-30` | json | ✔️ | 19 KiB | ✔️ | 1.5 sec | -| `cloudhsmv2@2017-04-28` | json | ✔️ | 18 KiB | ✔️ | 4.4 sec | -| `cloudsearch@2011-02-01` | query | ✔️ | 35 KiB | ✔️ | 2.8 sec | -| `cloudsearch@2013-01-01` | query | ✔️ | 58 KiB | ✔️ | 2.1 sec | -| `cloudsearchdomain@2013-01-01` | rest-json | ✔️ | 10 KiB | ✔️ | 2.1 sec | -| `cloudtrail@2013-11-01` | json | ✔️ | 27 KiB | ✔️ | 1.6 sec | -| `monitoring@2010-08-01` | query | ✔️ | 60 KiB | ✔️ | 2.6 sec | -| `events@2015-10-07` | json | ✔️ | 83 KiB | ✔️ | 2.8 sec | -| `logs@2014-03-28` | json | ✔️ | 44 KiB | ✔️ | 1.8 sec | -| `codeartifact@2018-09-22` | rest-json | ✔️ | 55 KiB | ✔️ | 2.0 sec | -| `codebuild@2016-10-06` | json | ✔️ | 89 KiB | ✔️ | 2.1 sec | -| `codecommit@2015-04-13` | json | ✔️ | 109 KiB | ✔️ | 4.0 sec | -| `codedeploy@2014-10-06` | json | ✔️ | 86 KiB | ✔️ | 2.3 sec | -| `codeguruprofiler@2019-07-18` | rest-json | ✔️ | 36 KiB | ✔️ | 1.7 sec | -| `codeguru-reviewer@2019-09-19` | rest-json | ✔️ | 26 KiB | ✔️ | 5.7 sec | -| `codepipeline@2015-07-09` | json | ✔️ | 74 KiB | ✔️ | 2.3 sec | -| `codestar@2017-04-19` | json | ✔️ | 21 KiB | ✔️ | 1.7 sec | -| `codestar-connections@2019-12-01` | json | ✔️ | 12 KiB | ✔️ | 1.5 sec | -| `codestar-notifications@2019-10-15` | rest-json | ✔️ | 16 KiB | ✔️ | 1.5 sec | -| `cognito-identity@2014-06-30` | json | ✔️ | 27 KiB | ✔️ | 1.6 sec | -| `cognito-idp@2016-04-18` | json | ✔️ | 145 KiB | ✔️ | 3.3 sec | -| `cognito-sync@2014-06-30` | rest-json | ✔️ | 22 KiB | ✔️ | 1.6 sec | -| `comprehend@2017-11-27` | json | ✔️ | 98 KiB | ✔️ | 2.1 sec | -| `comprehendmedical@2018-10-30` | json | ✔️ | 33 KiB | ✔️ | 1.8 sec | -| `compute-optimizer@2019-11-01` | json | ✔️ | 36 KiB | ✔️ | 1.6 sec | -| `config@2014-11-12` | json | ✔️ | 140 KiB | ✔️ | 2.9 sec | -| `connect@2017-08-08` | rest-json | ✔️ | 127 KiB | ✔️ | 2.5 sec | -| `connect-contact-lens@2020-08-21` | rest-json | ✔️ | 5 KiB | ✔️ | 1.1 sec | -| `connectparticipant@2018-09-07` | rest-json | ✔️ | 13 KiB | ✔️ | 1.3 sec | -| `ce@2017-10-25` | json | ✔️ | 88 KiB | ✔️ | 2.3 sec | -| `cur@2017-01-06` | json | ✔️ | 7 KiB | ✔️ | 1.3 sec | -| `customer-profiles@2020-08-15` | rest-json | ✔️ | 52 KiB | ✔️ | 2.2 sec | -| `databrew@2017-07-25` | rest-json | ✔️ | 59 KiB | ✔️ | 1.9 sec | -| `dataexchange@2017-07-25` | rest-json | ✔️ | 39 KiB | ✔️ | 1.7 sec | -| `datapipeline@2012-10-29` | json | ✔️ | 22 KiB | ✔️ | 1.9 sec | -| `datasync@2018-11-09` | json | ✔️ | 46 KiB | ✔️ | 1.7 sec | -| `dax@2017-04-19` | json | ✔️ | 28 KiB | ✔️ | 1.7 sec | -| `detective@2018-10-26` | rest-json | ✔️ | 12 KiB | ✔️ | 1.5 sec | -| `devicefarm@2015-06-23` | json | ✔️ | 99 KiB | ✔️ | 2.5 sec | -| `devops-guru@2020-12-01` | rest-json | ✔️ | 44 KiB | ✔️ | 1.9 sec | -| `directconnect@2012-10-25` | json | ✔️ | 70 KiB | ✔️ | 4.7 sec | -| `ds@2015-04-16` | json | ✔️ | 70 KiB | ✔️ | 2.0 sec | -| `discovery@2015-11-01` | json | ✔️ | 32 KiB | ✔️ | 1.7 sec | -| `dlm@2018-01-12` | rest-json | ✔️ | 22 KiB | ✔️ | 1.6 sec | -| `dms@2016-01-01` | json | ✔️ | 125 KiB | ✔️ | 3.0 sec | -| `docdb@2014-10-31` | query | ✔️ | 87 KiB | ✔️ | 2.5 sec | -| `dynamodb@2011-12-05` | json | ✔️ | 25 KiB | ✔️ | 1.3 sec | -| `dynamodb@2012-08-10` | json | ✔️ | 123 KiB | ✔️ | 3.2 sec | -| `streams.dynamodb@2012-08-10` | json | ✔️ | 10 KiB | ✔️ | 1.7 sec | -| `ebs@2019-11-02` | rest-json | ✔️ | 11 KiB | ✔️ | 1.3 sec | -| `ec2@2016-11-15` | ec2 | ✔️ | 1114 KiB | ✔️ | 11.5 sec | -| `ec2-instance-connect@2018-04-02` | json | ✔️ | 2 KiB | ✔️ | 1.2 sec | -| `ecr@2015-09-21` | json | ✔️ | 49 KiB | ✔️ | 2.2 sec | -| `ecr-public@2020-10-30` | json | ✔️ | 30 KiB | ✔️ | 1.6 sec | -| `ecs@2014-11-13` | json | ✔️ | 129 KiB | ✔️ | 4.1 sec | -| `elasticfilesystem@2015-02-01` | rest-json | ✔️ | 32 KiB | ✔️ | 1.8 sec | -| `eks@2017-11-01` | rest-json | ✔️ | 61 KiB | ✔️ | 3.1 sec | -| `elasticache@2015-02-02` | query | ✔️ | 148 KiB | ✔️ | 3.3 sec | -| `elasticbeanstalk@2010-12-01` | query | ✔️ | 101 KiB | ✔️ | 2.8 sec | -| `elastic-inference@2017-07-25` | rest-json | ✔️ | 9 KiB | ✔️ | 1.3 sec | -| `elastictranscoder@2012-09-25` | rest-json | ✔️ | 42 KiB | ✔️ | 2.3 sec | -| `elasticloadbalancing@2012-06-01` | query | ✔️ | 47 KiB | ✔️ | 2.3 sec | -| `elasticloadbalancingv2@2015-12-01` | query | ✔️ | 77 KiB | ✔️ | 2.7 sec | -| `elasticmapreduce@2009-03-31` | json | ✔️ | 110 KiB | ✔️ | 4.5 sec | -| `emr-containers@2020-10-01` | rest-json | ✔️ | 27 KiB | ✔️ | 1.5 sec | -| `es@2015-01-01` | rest-json | ✔️ | 90 KiB | ✔️ | 3.1 sec | -| `eventbridge@2015-10-07` | json | ✔️ | 83 KiB | ✔️ | 2.7 sec | -| `firehose@2015-08-04` | json | ✔️ | 65 KiB | ✔️ | 3.1 sec | -| `fis@2020-12-01` | rest-json | ✔️ | 28 KiB | ✔️ | 1.8 sec | -| `fms@2018-01-01` | json | ✔️ | 40 KiB | ✔️ | 1.7 sec | -| `forecastquery@2018-06-26` | json | ✔️ | 3 KiB | ✔️ | 1.7 sec | -| `forecast@2018-06-26` | json | ✔️ | 54 KiB | ✔️ | 2.3 sec | -| `frauddetector@2019-11-15` | json | ✔️ | 62 KiB | ✔️ | 2.1 sec | -| `fsx@2018-03-01` | json | ✔️ | 42 KiB | ✔️ | 2.0 sec | -| `gamelift@2015-10-01` | json | ✔️ | 136 KiB | ✔️ | 5.2 sec | -| `glacier@2012-06-01` | rest-json | ✔️ | 48 KiB | ✔️ | 2.3 sec | -| `globalaccelerator@2018-08-08` | json | ✔️ | 56 KiB | ✔️ | 1.8 sec | -| `glue@2017-03-31` | json | ✔️ | 245 KiB | ✔️ | 4.0 sec | -| `greengrass@2017-06-07` | rest-json | ✔️ | 128 KiB | ✔️ | 4.3 sec | -| `greengrassv2@2020-11-30` | rest-json | ✔️ | 45 KiB | ✔️ | 1.5 sec | -| `groundstation@2019-05-23` | rest-json | ✔️ | 45 KiB | ✔️ | 2.6 sec | -| `guardduty@2017-11-28` | rest-json | ✔️ | 84 KiB | ✔️ | 2.1 sec | -| `health@2016-08-04` | json | ✔️ | 24 KiB | ✔️ | 1.7 sec | -| `healthlake@2017-07-01` | json | ✔️ | 14 KiB | ✔️ | 2.0 sec | -| `honeycode@2020-03-01` | rest-json | ✔️ | 26 KiB | ✔️ | 1.7 sec | -| `iam@2010-05-08` | query | ✔️ | 188 KiB | ✔️ | 6.1 sec | -| `identitystore@2020-06-15` | json | ✔️ | 5 KiB | ✔️ | 1.8 sec | -| `imagebuilder@2019-12-02` | rest-json | ✔️ | 84 KiB | ✔️ | 2.2 sec | -| `importexport@2010-06-01` | query | ✔️ | 11 KiB | ✔️ | 1.7 sec | -| `inspector@2016-02-16` | json | ✔️ | 51 KiB | ✔️ | 2.1 sec | -| `iot@2015-05-28` | rest-json | ✔️ | 345 KiB | ✔️ | 4.8 sec | -| `iot1click-devices@2018-05-14` | rest-json | ✔️ | 14 KiB | ✔️ | 1.5 sec | -| `iot1click-projects@2018-05-14` | rest-json | ✔️ | 16 KiB | ✔️ | 1.3 sec | -| `iotanalytics@2017-11-27` | rest-json | ✔️ | 74 KiB | ✔️ | 2.4 sec | -| `iot-data@2015-05-28` | rest-json | ✔️ | 5 KiB | ✔️ | 1.2 sec | -| `iotdeviceadvisor@2020-09-18` | rest-json | ✔️ | 22 KiB | ✔️ | 1.5 sec | -| `iotevents@2018-07-27` | rest-json | ✔️ | 43 KiB | ✔️ | 3.1 sec | -| `iotevents-data@2018-10-23` | rest-json | ✔️ | 11 KiB | ✔️ | 1.5 sec | -| `iotfleethub@2020-11-03` | rest-json | ✔️ | 9 KiB | ✔️ | 1.3 sec | -| `iot-jobs-data@2017-09-29` | rest-json | ✔️ | 8 KiB | ✔️ | 1.9 sec | -| `iotsecuretunneling@2018-10-05` | json | ✔️ | 10 KiB | ✔️ | 1.4 sec | -| `iotsitewise@2019-12-02` | rest-json | ✔️ | 101 KiB | ✔️ | 3.8 sec | -| `iotthingsgraph@2018-09-06` | json | ✔️ | 40 KiB | ✔️ | 1.7 sec | -| `iotwireless@2020-11-22` | rest-json | ✔️ | 67 KiB | ✔️ | 2.0 sec | -| `ivs@2020-07-14` | rest-json | ✔️ | 22 KiB | ✔️ | 1.5 sec | -| `kafka@2018-11-14` | rest-json | ✔️ | 54 KiB | ✔️ | 2.1 sec | -| `kendra@2019-02-03` | json | ✔️ | 94 KiB | ✔️ | 2.5 sec | -| `kinesis@2013-12-02` | json | ✔️ | 32 KiB | ✔️ | 1.9 sec | -| `kinesisanalytics@2015-08-14` | json | ✔️ | 45 KiB | ✔️ | 1.8 sec | -| `kinesisanalyticsv2@2018-05-23` | json | ✔️ | 81 KiB | ✔️ | 2.2 sec | -| `kinesisvideo@2017-09-30` | rest-json | ✔️ | 21 KiB | ✔️ | 1.6 sec | -| `kinesis-video-archived-media@2017-09-30` | rest-json | ✔️ | 13 KiB | ✔️ | 1.1 sec | -| `kinesis-video-media@2017-09-30` | rest-json | ✔️ | 3 KiB | ✔️ | 1.0 sec | -| `kinesis-video-signaling@2019-12-04` | rest-json | ✔️ | 3 KiB | ✔️ | 1.1 sec | -| `kms@2014-11-01` | json | ✔️ | 48 KiB | ✔️ | 4.0 sec | -| `lakeformation@2017-03-31` | json | ✔️ | 23 KiB | ✔️ | 1.4 sec | -| `lambda@2014-11-11` | rest-json | ✔️ | 15 KiB | ✔️ | 1.4 sec | -| `lambda@2015-03-31` | rest-json | ✔️ | 99 KiB | ✔️ | 2.4 sec | -| `lex-models@2017-04-19` | rest-json | ✔️ | 69 KiB | ✔️ | 2.1 sec | -| `models.lex.v2@2020-08-07` | rest-json | ✔️ | 100 KiB | ✔️ | 2.3 sec | -| `runtime.lex@2016-11-28` | rest-json | ✔️ | 19 KiB | ✔️ | 1.5 sec | -| `runtime.lex.v2@2020-08-07` | rest-json | ✔️ | 18 KiB | ✔️ | 1.2 sec | -| `license-manager@2018-08-01` | json | ✔️ | 64 KiB | ✔️ | 3.0 sec | -| `lightsail@2016-11-28` | json | ✔️ | 199 KiB | ✔️ | 3.6 sec | -| `location@2020-11-19` | rest-json | ✔️ | 44 KiB | ✔️ | 1.7 sec | -| `lookoutmetrics@2017-07-25` | rest-json | ✔️ | 48 KiB | ✔️ | 1.8 sec | -| `lookoutvision@2020-11-20` | rest-json | ✔️ | 28 KiB | ✔️ | 1.6 sec | -| `machinelearning@2014-12-12` | json | ✔️ | 48 KiB | ✔️ | 2.1 sec | -| `macie@2017-12-19` | json | ✔️ | 10 KiB | ✔️ | 1.4 sec | -| `macie2@2020-01-01` | rest-json | ✔️ | 105 KiB | ✔️ | 3.0 sec | -| `managedblockchain@2018-09-24` | rest-json | ✔️ | 43 KiB | ✔️ | 1.7 sec | -| `marketplace-catalog@2018-09-17` | rest-json | ✔️ | 12 KiB | ✔️ | 1.6 sec | -| `marketplacecommerceanalytics@2015-07-01` | json | ✔️ | 5 KiB | ✔️ | 1.5 sec | -| `entitlement.marketplace@2017-01-11` | json | ✔️ | 3 KiB | ✔️ | 1.1 sec | -| `meteringmarketplace@2016-01-14` | json | ✔️ | 7 KiB | ✔️ | 1.2 sec | -| `mediaconnect@2018-11-14` | rest-json | ✔️ | 42 KiB | ✔️ | 1.9 sec | -| `mediaconvert@2017-08-29` | rest-json | ✔️ | 251 KiB | ✔️ | 3.8 sec | -| `medialive@2017-10-14` | rest-json | ✔️ | 311 KiB | ✔️ | 4.2 sec | -| `mediapackage@2017-10-12` | rest-json | ✔️ | 46 KiB | ✔️ | 2.0 sec | -| `mediapackage-vod@2018-11-07` | rest-json | ✔️ | 33 KiB | ✔️ | 1.6 sec | -| `mediastore@2017-09-01` | json | ✔️ | 16 KiB | ✔️ | 1.4 sec | -| `mediastore-data@2017-09-01` | rest-json | ✔️ | 7 KiB | ✔️ | 1.4 sec | -| `mediatailor@2018-04-23` | rest-json | ✔️ | 54 KiB | ✔️ | 1.8 sec | -| `AWSMigrationHub@2017-05-31` | json | ✔️ | 20 KiB | ✔️ | 1.3 sec | -| `migrationhub-config@2019-06-30` | json | ✔️ | 5 KiB | ✔️ | 1.1 sec | -| `mobile@2017-07-01` | rest-json | ✔️ | 11 KiB | ✔️ | 1.6 sec | -| `mobileanalytics@2014-06-05` | rest-json | ✔️ | 3 KiB | ✔️ | 1.1 sec | -| `mq@2017-11-27` | rest-json | ✔️ | 40 KiB | ✔️ | 1.8 sec | -| `mturk-requester@2017-01-17` | json | ✔️ | 49 KiB | ✔️ | 2.0 sec | -| `mwaa@2020-07-01` | rest-json | ✔️ | 21 KiB | ✔️ | 1.3 sec | -| `neptune@2014-10-31` | query | ✔️ | 139 KiB | ✔️ | 3.3 sec | -| `network-firewall@2020-11-12` | json | ✔️ | 54 KiB | ✔️ | 1.8 sec | -| `networkmanager@2019-07-05` | rest-json | ✔️ | 47 KiB | ✔️ | 1.8 sec | -| `opsworks@2013-02-18` | json | ✔️ | 105 KiB | ✔️ | 2.7 sec | -| `opsworkscm@2016-11-01` | json | ✔️ | 24 KiB | ✔️ | 1.6 sec | -| `organizations@2016-11-28` | json | ✔️ | 51 KiB | ✔️ | 2.0 sec | -| `outposts@2019-12-03` | rest-json | ✔️ | 10 KiB | ✔️ | 1.3 sec | -| `personalize@2018-05-22` | json | ✔️ | 65 KiB | ✔️ | 2.6 sec | -| `personalize-events@2018-03-22` | rest-json | ✔️ | 4 KiB | ✔️ | 1.1 sec | -| `personalize-runtime@2018-05-22` | rest-json | ✔️ | 4 KiB | ✔️ | 1.2 sec | -| `pi@2018-02-27` | json | ✔️ | 7 KiB | ✔️ | 1.4 sec | -| `pinpoint@2016-12-01` | rest-json | ✔️ | 243 KiB | ✔️ | 3.7 sec | -| `pinpoint-email@2018-07-26` | rest-json | ✔️ | 57 KiB | ✔️ | 2.2 sec | -| `sms-voice@2018-09-05` | rest-json | ✔️ | 13 KiB | ✔️ | 1.7 sec | -| `polly@2016-06-10` | rest-json | ✔️ | 15 KiB | ✔️ | 1.3 sec | -| `pricing@2017-10-15` | json | ✔️ | 5 KiB | ✔️ | 1.4 sec | -| `qldb@2019-01-02` | rest-json | ✔️ | 24 KiB | ✔️ | 1.4 sec | -| `qldb-session@2019-07-11` | json | ✔️ | 10 KiB | ✔️ | 1.7 sec | -| `quicksight@2018-04-01` | rest-json | ✔️ | 201 KiB | ✔️ | 7.1 sec | -| `ram@2018-01-04` | rest-json | ✔️ | 33 KiB | ✔️ | 1.8 sec | -| `rds@2013-01-10` | query | ✔️ | 94 KiB | ✔️ | 2.9 sec | -| `rds@2013-02-12` | query | ✔️ | 101 KiB | ✔️ | 3.0 sec | -| `rds@2013-09-09` | query | ✔️ | 109 KiB | ✔️ | 3.5 sec | -| `rds@2014-09-01` | query | ✔️ | 112 KiB | ✔️ | 3.2 sec | -| `rds@2014-10-31` | query | ✔️ | 321 KiB | ✔️ | 6.1 sec | -| `rds-data@2018-08-01` | rest-json | ✔️ | 14 KiB | ✔️ | 1.7 sec | -| `redshift@2012-12-01` | query | ✔️ | 181 KiB | ✔️ | 3.3 sec | -| `redshift-data@2019-12-20` | json | ✔️ | 14 KiB | ✔️ | 1.7 sec | -| `rekognition@2016-06-27` | json | ✔️ | 92 KiB | ✔️ | 2.4 sec | -| `resource-groups@2017-11-27` | rest-json | ✔️ | 22 KiB | ✔️ | 1.5 sec | -| `resourcegroupstaggingapi@2017-01-26` | json | ✔️ | 11 KiB | ✔️ | 1.2 sec | -| `robomaker@2018-06-29` | rest-json | ✔️ | 104 KiB | ✔️ | 2.6 sec | -| `route53@2013-04-01` | rest-xml | ✔️ | 98 KiB | ✔️ | 3.6 sec | -| `route53domains@2014-05-15` | json | ✔️ | 35 KiB | ✔️ | 2.3 sec | -| `route53resolver@2018-04-01` | json | ✔️ | 43 KiB | ✔️ | 1.8 sec | -| `s3@2006-03-01` | rest-xml | ✔️ | 260 KiB | ✔️ | 7.1 sec | -| `s3control@2018-08-20` | rest-xml | ✔️ | 107 KiB | ✔️ | 2.9 sec | -| `s3outposts@2017-07-25` | rest-json | ✔️ | 5 KiB | ✔️ | 1.5 sec | -| `sagemaker@2017-07-24` | json | ✔️ | 536 KiB | ✔️ | 7.5 sec | -| `sagemaker-edge@2020-09-23` | rest-json | ✔️ | 4 KiB | ✔️ | 2.2 sec | -| `sagemaker-featurestore-runtime@2020-07-01` | rest-json | ✔️ | 4 KiB | ✔️ | 2.1 sec | -| `runtime.sagemaker@2017-05-13` | rest-json | ✔️ | 3 KiB | ✔️ | 1.4 sec | -| `savingsplans@2019-06-28` | rest-json | ✔️ | 21 KiB | ✔️ | 1.4 sec | -| `schemas@2019-12-02` | rest-json | ✔️ | 37 KiB | ✔️ | 1.6 sec | -| `secretsmanager@2017-10-17` | json | ✔️ | 28 KiB | ✔️ | 1.7 sec | -| `securityhub@2018-10-26` | rest-json | ✔️ | 305 KiB | ✔️ | 5.1 sec | -| `serverlessrepo@2017-09-08` | rest-json | ✔️ | 25 KiB | ✔️ | 1.8 sec | -| `servicecatalog@2015-12-10` | json | ✔️ | 124 KiB | ✔️ | 2.5 sec | -| `servicecatalog-appregistry@2020-06-24` | rest-json | ✔️ | 22 KiB | ✔️ | 1.5 sec | -| `servicediscovery@2017-03-14` | json | ✔️ | 34 KiB | ✔️ | 1.7 sec | -| `service-quotas@2019-06-24` | json | ✔️ | 22 KiB | ✔️ | 1.5 sec | -| `email@2010-12-01` | query | ✔️ | 94 KiB | ✔️ | 2.9 sec | -| `sesv2@2019-09-27` | rest-json | ✔️ | 111 KiB | ✔️ | 3.3 sec | -| `shield@2016-06-02` | json | ✔️ | 33 KiB | ✔️ | 1.8 sec | -| `signer@2017-08-25` | rest-json | ✔️ | 33 KiB | ✔️ | 1.8 sec | -| `sdb@2009-04-15` | query | ✔️ | 13 KiB | ✔️ | 1.8 sec | -| `sms@2016-10-24` | json | ✔️ | 53 KiB | ✔️ | 2.0 sec | -| `snowball@2016-06-30` | json | ✔️ | 35 KiB | ✔️ | 1.7 sec | -| `sns@2010-03-31` | query | ✔️ | 33 KiB | ✔️ | 1.9 sec | -| `sqs@2012-11-05` | query | ✔️ | 29 KiB | ✔️ | 2.6 sec | -| `ssm@2014-11-06` | json | ✔️ | 264 KiB | ✔️ | 7.2 sec | -| `sso@2019-06-10` | rest-json | ✔️ | 6 KiB | ✔️ | 1.5 sec | -| `sso-admin@2020-07-20` | json | ✔️ | 37 KiB | ✔️ | 1.6 sec | -| `sso-oidc@2019-06-10` | rest-json | ✔️ | 5 KiB | ✔️ | 1.1 sec | -| `states@2016-11-23` | json | ✔️ | 45 KiB | ✔️ | 4.5 sec | -| `storagegateway@2013-06-30` | json | ✔️ | 100 KiB | ✔️ | 2.9 sec | -| `sts@2011-06-15` | query | ✔️ | 14 KiB | ✔️ | 1.5 sec | -| `support@2013-04-15` | json | ✔️ | 21 KiB | ✔️ | 1.4 sec | -| `swf@2012-01-25` | json | ✔️ | 102 KiB | ✔️ | 2.9 sec | -| `synthetics@2017-10-11` | rest-json | ✔️ | 20 KiB | ✔️ | 3.6 sec | -| `textract@2018-06-27` | json | ✔️ | 15 KiB | ✔️ | 1.4 sec | -| `timestream-query@2018-11-01` | json | ✔️ | 6 KiB | ✔️ | 1.2 sec | -| `timestream-write@2018-11-01` | json | ✔️ | 15 KiB | ✔️ | 1.4 sec | -| `transcribe@2017-10-26` | json | ✔️ | 44 KiB | ✔️ | 1.8 sec | -| `transfer@2018-11-05` | json | ✔️ | 26 KiB | ✔️ | 1.5 sec | -| `translate@2017-07-01` | json | ✔️ | 24 KiB | ✔️ | 1.6 sec | -| `waf@2015-08-24` | json | ✔️ | 90 KiB | ✔️ | 2.4 sec | -| `waf-regional@2016-11-28` | json | ✔️ | 93 KiB | ✔️ | 2.5 sec | -| `wafv2@2019-07-29` | json | ✔️ | 71 KiB | ✔️ | 2.1 sec | -| `wellarchitected@2020-03-31` | rest-json | ✔️ | 47 KiB | ✔️ | 2.5 sec | -| `workdocs@2016-05-01` | rest-json | ✔️ | 64 KiB | ✔️ | 3.4 sec | -| `worklink@2018-09-25` | rest-json | ✔️ | 31 KiB | ✔️ | 1.9 sec | -| `workmail@2017-10-01` | json | ✔️ | 48 KiB | ✔️ | 1.8 sec | -| `workmailmessageflow@2019-05-01` | rest-json | ✔️ | 3 KiB | ✔️ | 1.1 sec | -| `workspaces@2015-04-08` | json | ✔️ | 65 KiB | ✔️ | 2.2 sec | -| `xray@2016-04-12` | rest-json | ✔️ | 55 KiB | ✔️ | 2.0 sec | - -[//]: # (Generated Content Barrier) - -If you want a client that isn't listed, please open a Github Issue. diff --git a/lib/demo.ts b/lib/demo.ts index b79d720b..0926cfc6 100755 --- a/lib/demo.ts +++ b/lib/demo.ts @@ -6,7 +6,7 @@ const factory = new ApiFactory(); await factory.ensureCredentialsAvailable(); -import STS from './services/sts@2011-06-15/mod.ts'; +import STS from './services/sts/mod.ts'; const sts = new STS(factory); await sts.getCallerIdentity().then(identity => { console.log('You are', identity.UserId, 'in account', identity.Account); @@ -14,21 +14,21 @@ await sts.getCallerIdentity().then(identity => { }).catch(console.log); -import EC2 from './services/ec2@2016-11-15/mod.ts'; +import EC2 from './services/ec2/mod.ts'; const ec2 = new EC2(factory); console.log(await ec2.describeInstances().then(x => x.Reservations).catch(err => err)); -import SQS from './services/sqs@2012-11-05/mod.ts'; +import SQS from './services/sqs/mod.ts'; const sqs = new SQS(factory); console.log(await sqs.listQueues().catch(err => err)); -import SNS from './services/sns@2010-03-31/mod.ts'; +import SNS from './services/sns/mod.ts'; const sns = new SNS(factory); console.log(await sns.listTopics().catch(err => err)); -import S3 from './services/s3@2006-03-01/mod.ts'; +import S3 from './services/s3/mod.ts'; const s3 = new S3(factory); console.log(await s3.listBuckets().catch(err => err)); diff --git a/lib/examples/cloudwatch-emitter.ts b/lib/examples/cloudwatch-emitter.ts index 084c7b54..cbae3e14 100755 --- a/lib/examples/cloudwatch-emitter.ts +++ b/lib/examples/cloudwatch-emitter.ts @@ -1,7 +1,7 @@ #!/usr/bin/env -S deno run --allow-env --allow-read=${HOME}/.aws --allow-net --unstable import { ApiFactory } from '../client/mod.ts'; -import CloudWatch from '../services/cloudwatch@2010-08-01/mod.ts'; +import CloudWatch from '../services/cloudwatch/mod.ts'; const factory = new ApiFactory(); const cw = new CloudWatch(factory); diff --git a/lib/examples/dynamodb.ts b/lib/examples/dynamodb.ts index 40d28e99..ccd6ad6d 100755 --- a/lib/examples/dynamodb.ts +++ b/lib/examples/dynamodb.ts @@ -1,7 +1,7 @@ #!/usr/bin/env -S deno run --allow-env --allow-read=${HOME}/.aws --allow-net import { ApiFactory } from '../client/mod.ts'; -import DynamoDB from '../services/dynamodb@2012-08-10/mod.ts'; +import DynamoDB from '../services/dynamodb/mod.ts'; const factory = new ApiFactory(); const ddb = new DynamoDB(factory); diff --git a/lib/examples/ec2-launch-instance.ts b/lib/examples/ec2-launch-instance.ts index 974a00e2..9bc11447 100755 --- a/lib/examples/ec2-launch-instance.ts +++ b/lib/examples/ec2-launch-instance.ts @@ -7,7 +7,7 @@ const ThisScriptUrl = `https://deno.land/x/aws_api/examples/ec2-launch-instance.ts`; import { ApiFactory } from '../client/mod.ts'; -import EC2, { Instance } from '../services/ec2@2016-11-15/mod.ts'; +import EC2, { Instance } from '../services/ec2/mod.ts'; const factory = new ApiFactory(); const ec2 = new EC2(factory); diff --git a/lib/examples/kinesis-demo.ts b/lib/examples/kinesis-demo.ts index 0c3b87ae..f112cf31 100755 --- a/lib/examples/kinesis-demo.ts +++ b/lib/examples/kinesis-demo.ts @@ -1,7 +1,7 @@ #!/usr/bin/env -S deno run --allow-env --allow-read=${HOME}/.aws --allow-net import { ApiFactory } from '../client/mod.ts'; -import Kinesis from '../services/kinesis@2013-12-02/mod.ts'; +import Kinesis from '../services/kinesis/mod.ts'; const factory = new ApiFactory(); const kinesis = new Kinesis(factory); diff --git a/lib/examples/s3-bucket-lifecycle.ts b/lib/examples/s3-bucket-lifecycle.ts index 79105625..1c36ce3b 100755 --- a/lib/examples/s3-bucket-lifecycle.ts +++ b/lib/examples/s3-bucket-lifecycle.ts @@ -1,7 +1,7 @@ #!/usr/bin/env -S deno run --allow-env --allow-read=${HOME}/.aws --allow-net import { ApiFactory } from '../client/mod.ts'; -import S3, {BucketLocationConstraint} from '../services/s3@2006-03-01/mod.ts'; +import S3, {BucketLocationConstraint} from '../services/s3/mod.ts'; const factory = new ApiFactory(); const s3 = new S3(factory); diff --git a/lib/examples/sqs-redriver.ts b/lib/examples/sqs-redriver.ts index 55c00b97..90853a9d 100755 --- a/lib/examples/sqs-redriver.ts +++ b/lib/examples/sqs-redriver.ts @@ -1,7 +1,7 @@ #!/usr/bin/env -S deno run --allow-env --allow-read=${HOME}/.aws --allow-net import { ApiFactory } from '../client/mod.ts'; -import SQS from '../services/sqs@2012-11-05/mod.ts'; +import SQS from '../services/sqs/mod.ts'; const factory = new ApiFactory(); const sqs = new SQS(factory); diff --git a/lib/services/cloudwatch@2010-08-01/mod.ts b/lib/services/cloudwatch/mod.ts similarity index 100% rename from lib/services/cloudwatch@2010-08-01/mod.ts rename to lib/services/cloudwatch/mod.ts diff --git a/lib/services/cloudwatch@2010-08-01/structs.ts b/lib/services/cloudwatch/structs.ts similarity index 100% rename from lib/services/cloudwatch@2010-08-01/structs.ts rename to lib/services/cloudwatch/structs.ts diff --git a/lib/services/dynamodb@2012-08-10/mod.ts b/lib/services/dynamodb/mod.ts similarity index 100% rename from lib/services/dynamodb@2012-08-10/mod.ts rename to lib/services/dynamodb/mod.ts diff --git a/lib/services/dynamodb@2012-08-10/structs.ts b/lib/services/dynamodb/structs.ts similarity index 100% rename from lib/services/dynamodb@2012-08-10/structs.ts rename to lib/services/dynamodb/structs.ts diff --git a/lib/services/dynamodb@2011-12-05/mod.ts b/lib/services/dynamodb@2011-12-05/mod.ts deleted file mode 100644 index 812e319a..00000000 --- a/lib/services/dynamodb@2011-12-05/mod.ts +++ /dev/null @@ -1,575 +0,0 @@ -// Autogenerated API client for: Amazon DynamoDB - -interface RequestConfig { - abortSignal?: AbortSignal; -} - -export * from "./structs.ts"; -import * as Base64 from "https://deno.land/std@0.91.0/encoding/base64.ts"; -import * as client from "../../client/common.ts"; -import * as cmnP from "../../encoding/common.ts"; -import * as jsonP from "../../encoding/json.ts"; -import type * as s from "./structs.ts"; -function serializeBlob(input: string | Uint8Array | null | undefined) { - if (input == null) return input; - return Base64.encode(input); -} - -export default class DynamoDB { - #client: client.ServiceClient; - constructor(apiFactory: client.ApiFactory) { - this.#client = apiFactory.buildServiceClient(DynamoDB.ApiMetadata); - } - - static ApiMetadata: client.ApiMetadata = { - "apiVersion": "2011-12-05", - "endpointPrefix": "dynamodb", - "jsonVersion": "1.0", - "protocol": "json", - "serviceAbbreviation": "DynamoDB", - "serviceFullName": "Amazon DynamoDB", - "serviceId": "DynamoDB", - "signatureVersion": "v4", - "targetPrefix": "DynamoDB_20111205", - "uid": "dynamodb-2011-12-05" - }; - - async batchGetItem( - {abortSignal, ...params}: RequestConfig & s.BatchGetItemInput, - ): Promise { - const body: jsonP.JSONObject = { - RequestItems: jsonP.serializeMap(params["RequestItems"], x => fromKeysAndAttributes(x)), - }; - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "BatchGetItem", - }); - return jsonP.readObj({ - required: {}, - optional: { - "Responses": x => jsonP.readMap(String, toBatchResponse, x), - "UnprocessedKeys": x => jsonP.readMap(String, toKeysAndAttributes, x), - }, - }, await resp.json()); - } - - async batchWriteItem( - {abortSignal, ...params}: RequestConfig & s.BatchWriteItemInput, - ): Promise { - const body: jsonP.JSONObject = { - RequestItems: jsonP.serializeMap(params["RequestItems"], x => x?.map(fromWriteRequest)), - }; - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "BatchWriteItem", - }); - return jsonP.readObj({ - required: {}, - optional: { - "Responses": x => jsonP.readMap(String, toBatchWriteResponse, x), - "UnprocessedItems": x => jsonP.readMap(String, l => Array.isArray(l) ? l.map(toWriteRequest) : [], x), - }, - }, await resp.json()); - } - - async createTable( - {abortSignal, ...params}: RequestConfig & s.CreateTableInput, - ): Promise { - const body: jsonP.JSONObject = { - TableName: params["TableName"], - KeySchema: fromKeySchema(params["KeySchema"]), - ProvisionedThroughput: fromProvisionedThroughput(params["ProvisionedThroughput"]), - }; - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateTable", - }); - return jsonP.readObj({ - required: {}, - optional: { - "TableDescription": toTableDescription, - }, - }, await resp.json()); - } - - async deleteItem( - {abortSignal, ...params}: RequestConfig & s.DeleteItemInput, - ): Promise { - const body: jsonP.JSONObject = { - TableName: params["TableName"], - Key: fromKey(params["Key"]), - Expected: jsonP.serializeMap(params["Expected"], x => fromExpectedAttributeValue(x)), - ReturnValues: params["ReturnValues"], - }; - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteItem", - }); - return jsonP.readObj({ - required: {}, - optional: { - "Attributes": x => jsonP.readMap(String, toAttributeValue, x), - "ConsumedCapacityUnits": "n", - }, - }, await resp.json()); - } - - async deleteTable( - {abortSignal, ...params}: RequestConfig & s.DeleteTableInput, - ): Promise { - const body: jsonP.JSONObject = { - TableName: params["TableName"], - }; - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteTable", - }); - return jsonP.readObj({ - required: {}, - optional: { - "TableDescription": toTableDescription, - }, - }, await resp.json()); - } - - async describeTable( - {abortSignal, ...params}: RequestConfig & s.DescribeTableInput, - ): Promise { - const body: jsonP.JSONObject = { - TableName: params["TableName"], - }; - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeTable", - }); - return jsonP.readObj({ - required: {}, - optional: { - "Table": toTableDescription, - }, - }, await resp.json()); - } - - async getItem( - {abortSignal, ...params}: RequestConfig & s.GetItemInput, - ): Promise { - const body: jsonP.JSONObject = { - TableName: params["TableName"], - Key: fromKey(params["Key"]), - AttributesToGet: params["AttributesToGet"], - ConsistentRead: params["ConsistentRead"], - }; - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "GetItem", - }); - return jsonP.readObj({ - required: {}, - optional: { - "Item": x => jsonP.readMap(String, toAttributeValue, x), - "ConsumedCapacityUnits": "n", - }, - }, await resp.json()); - } - - async listTables( - {abortSignal, ...params}: RequestConfig & s.ListTablesInput = {}, - ): Promise { - const body: jsonP.JSONObject = { - ExclusiveStartTableName: params["ExclusiveStartTableName"], - Limit: params["Limit"], - }; - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "ListTables", - }); - return jsonP.readObj({ - required: {}, - optional: { - "TableNames": ["s"], - "LastEvaluatedTableName": "s", - }, - }, await resp.json()); - } - - async putItem( - {abortSignal, ...params}: RequestConfig & s.PutItemInput, - ): Promise { - const body: jsonP.JSONObject = { - TableName: params["TableName"], - Item: jsonP.serializeMap(params["Item"], x => fromAttributeValue(x)), - Expected: jsonP.serializeMap(params["Expected"], x => fromExpectedAttributeValue(x)), - ReturnValues: params["ReturnValues"], - }; - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "PutItem", - }); - return jsonP.readObj({ - required: {}, - optional: { - "Attributes": x => jsonP.readMap(String, toAttributeValue, x), - "ConsumedCapacityUnits": "n", - }, - }, await resp.json()); - } - - async query( - {abortSignal, ...params}: RequestConfig & s.QueryInput, - ): Promise { - const body: jsonP.JSONObject = { - TableName: params["TableName"], - AttributesToGet: params["AttributesToGet"], - Limit: params["Limit"], - ConsistentRead: params["ConsistentRead"], - Count: params["Count"], - HashKeyValue: fromAttributeValue(params["HashKeyValue"]), - RangeKeyCondition: fromCondition(params["RangeKeyCondition"]), - ScanIndexForward: params["ScanIndexForward"], - ExclusiveStartKey: fromKey(params["ExclusiveStartKey"]), - }; - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "Query", - }); - return jsonP.readObj({ - required: {}, - optional: { - "Items": [x => jsonP.readMap(String, toAttributeValue, x)], - "Count": "n", - "LastEvaluatedKey": toKey, - "ConsumedCapacityUnits": "n", - }, - }, await resp.json()); - } - - async scan( - {abortSignal, ...params}: RequestConfig & s.ScanInput, - ): Promise { - const body: jsonP.JSONObject = { - TableName: params["TableName"], - AttributesToGet: params["AttributesToGet"], - Limit: params["Limit"], - Count: params["Count"], - ScanFilter: jsonP.serializeMap(params["ScanFilter"], x => fromCondition(x)), - ExclusiveStartKey: fromKey(params["ExclusiveStartKey"]), - }; - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "Scan", - }); - return jsonP.readObj({ - required: {}, - optional: { - "Items": [x => jsonP.readMap(String, toAttributeValue, x)], - "Count": "n", - "ScannedCount": "n", - "LastEvaluatedKey": toKey, - "ConsumedCapacityUnits": "n", - }, - }, await resp.json()); - } - - async updateItem( - {abortSignal, ...params}: RequestConfig & s.UpdateItemInput, - ): Promise { - const body: jsonP.JSONObject = { - TableName: params["TableName"], - Key: fromKey(params["Key"]), - AttributeUpdates: jsonP.serializeMap(params["AttributeUpdates"], x => fromAttributeValueUpdate(x)), - Expected: jsonP.serializeMap(params["Expected"], x => fromExpectedAttributeValue(x)), - ReturnValues: params["ReturnValues"], - }; - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "UpdateItem", - }); - return jsonP.readObj({ - required: {}, - optional: { - "Attributes": x => jsonP.readMap(String, toAttributeValue, x), - "ConsumedCapacityUnits": "n", - }, - }, await resp.json()); - } - - async updateTable( - {abortSignal, ...params}: RequestConfig & s.UpdateTableInput, - ): Promise { - const body: jsonP.JSONObject = { - TableName: params["TableName"], - ProvisionedThroughput: fromProvisionedThroughput(params["ProvisionedThroughput"]), - }; - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "UpdateTable", - }); - return jsonP.readObj({ - required: {}, - optional: { - "TableDescription": toTableDescription, - }, - }, await resp.json()); - } - - // Resource State Waiters - - /** Checks state up to 25 times, 20 seconds apart (about 9 minutes max wait time). */ - async waitForTableExists( - params: RequestConfig & s.DescribeTableInput, - ): Promise { - const errMessage = 'ResourceNotReady: Resource is not in the state TableExists'; - for (let i = 0; i < 25; i++) { - try { - const resp = await this.describeTable(params); - if (resp?.Table?.TableStatus === "ACTIVE") return resp; - } catch (err) { - if (!["ResourceNotFoundException"].includes(err.shortCode)) throw err; - } - await new Promise(r => setTimeout(r, 20000)); - } - throw new Error(errMessage); - } - - /** Checks state up to 25 times, 20 seconds apart (about 9 minutes max wait time). */ - async waitForTableNotExists( - params: RequestConfig & s.DescribeTableInput, - ): Promise { - const errMessage = 'ResourceNotReady: Resource is not in the state TableNotExists'; - for (let i = 0; i < 25; i++) { - try { - const resp = await this.describeTable(params); - } catch (err) { - if (["ResourceNotFoundException"].includes(err.shortCode)) return err; - throw err; - } - await new Promise(r => setTimeout(r, 20000)); - } - throw new Error(errMessage); - } - -} - -function fromKeysAndAttributes(input?: s.KeysAndAttributes | null): jsonP.JSONValue { - if (!input) return input; - return { - Keys: input["Keys"]?.map(x => fromKey(x)), - AttributesToGet: input["AttributesToGet"], - ConsistentRead: input["ConsistentRead"], - } -} -function toKeysAndAttributes(root: jsonP.JSONValue): s.KeysAndAttributes { - return jsonP.readObj({ - required: { - "Keys": [toKey], - }, - optional: { - "AttributesToGet": ["s"], - "ConsistentRead": "b", - }, - }, root); -} - -function fromKey(input?: s.Key | null): jsonP.JSONValue { - if (!input) return input; - return { - HashKeyElement: fromAttributeValue(input["HashKeyElement"]), - RangeKeyElement: fromAttributeValue(input["RangeKeyElement"]), - } -} -function toKey(root: jsonP.JSONValue): s.Key { - return jsonP.readObj({ - required: { - "HashKeyElement": toAttributeValue, - }, - optional: { - "RangeKeyElement": toAttributeValue, - }, - }, root); -} - -function fromAttributeValue(input?: s.AttributeValue | null): jsonP.JSONValue { - if (!input) return input; - return { - S: input["S"], - N: input["N"], - B: serializeBlob(input["B"]), - SS: input["SS"], - NS: input["NS"], - BS: input["BS"]?.map(x => serializeBlob(x)), - } -} -function toAttributeValue(root: jsonP.JSONValue): s.AttributeValue { - return jsonP.readObj({ - required: {}, - optional: { - "S": "s", - "N": "s", - "B": "a", - "SS": ["s"], - "NS": ["s"], - "BS": ["a"], - }, - }, root); -} - -function fromWriteRequest(input?: s.WriteRequest | null): jsonP.JSONValue { - if (!input) return input; - return { - PutRequest: fromPutRequest(input["PutRequest"]), - DeleteRequest: fromDeleteRequest(input["DeleteRequest"]), - } -} -function toWriteRequest(root: jsonP.JSONValue): s.WriteRequest { - return jsonP.readObj({ - required: {}, - optional: { - "PutRequest": toPutRequest, - "DeleteRequest": toDeleteRequest, - }, - }, root); -} - -function fromPutRequest(input?: s.PutRequest | null): jsonP.JSONValue { - if (!input) return input; - return { - Item: jsonP.serializeMap(input["Item"], x => fromAttributeValue(x)), - } -} -function toPutRequest(root: jsonP.JSONValue): s.PutRequest { - return jsonP.readObj({ - required: { - "Item": x => jsonP.readMap(String, toAttributeValue, x), - }, - optional: {}, - }, root); -} - -function fromDeleteRequest(input?: s.DeleteRequest | null): jsonP.JSONValue { - if (!input) return input; - return { - Key: fromKey(input["Key"]), - } -} -function toDeleteRequest(root: jsonP.JSONValue): s.DeleteRequest { - return jsonP.readObj({ - required: { - "Key": toKey, - }, - optional: {}, - }, root); -} - -function fromKeySchema(input?: s.KeySchema | null): jsonP.JSONValue { - if (!input) return input; - return { - HashKeyElement: fromKeySchemaElement(input["HashKeyElement"]), - RangeKeyElement: fromKeySchemaElement(input["RangeKeyElement"]), - } -} -function toKeySchema(root: jsonP.JSONValue): s.KeySchema { - return jsonP.readObj({ - required: { - "HashKeyElement": toKeySchemaElement, - }, - optional: { - "RangeKeyElement": toKeySchemaElement, - }, - }, root); -} - -function fromKeySchemaElement(input?: s.KeySchemaElement | null): jsonP.JSONValue { - if (!input) return input; - return { - AttributeName: input["AttributeName"], - AttributeType: input["AttributeType"], - } -} -function toKeySchemaElement(root: jsonP.JSONValue): s.KeySchemaElement { - return jsonP.readObj({ - required: { - "AttributeName": "s", - "AttributeType": (x: jsonP.JSONValue) => cmnP.readEnum(x), - }, - optional: {}, - }, root); -} - -function fromProvisionedThroughput(input?: s.ProvisionedThroughput | null): jsonP.JSONValue { - if (!input) return input; - return { - ReadCapacityUnits: input["ReadCapacityUnits"], - WriteCapacityUnits: input["WriteCapacityUnits"], - } -} - -function fromExpectedAttributeValue(input?: s.ExpectedAttributeValue | null): jsonP.JSONValue { - if (!input) return input; - return { - Value: fromAttributeValue(input["Value"]), - Exists: input["Exists"], - } -} - -function fromCondition(input?: s.Condition | null): jsonP.JSONValue { - if (!input) return input; - return { - AttributeValueList: input["AttributeValueList"]?.map(x => fromAttributeValue(x)), - ComparisonOperator: input["ComparisonOperator"], - } -} - -function fromAttributeValueUpdate(input?: s.AttributeValueUpdate | null): jsonP.JSONValue { - if (!input) return input; - return { - Value: fromAttributeValue(input["Value"]), - Action: input["Action"], - } -} - -function toBatchResponse(root: jsonP.JSONValue): s.BatchResponse { - return jsonP.readObj({ - required: {}, - optional: { - "Items": [x => jsonP.readMap(String, toAttributeValue, x)], - "ConsumedCapacityUnits": "n", - }, - }, root); -} - -function toBatchWriteResponse(root: jsonP.JSONValue): s.BatchWriteResponse { - return jsonP.readObj({ - required: {}, - optional: { - "ConsumedCapacityUnits": "n", - }, - }, root); -} - -function toTableDescription(root: jsonP.JSONValue): s.TableDescription { - return jsonP.readObj({ - required: {}, - optional: { - "TableName": "s", - "KeySchema": toKeySchema, - "TableStatus": (x: jsonP.JSONValue) => cmnP.readEnum(x), - "CreationDateTime": "d", - "ProvisionedThroughput": toProvisionedThroughputDescription, - "TableSizeBytes": "n", - "ItemCount": "n", - }, - }, root); -} - -function toProvisionedThroughputDescription(root: jsonP.JSONValue): s.ProvisionedThroughputDescription { - return jsonP.readObj({ - required: {}, - optional: { - "LastIncreaseDateTime": "d", - "LastDecreaseDateTime": "d", - "NumberOfDecreasesToday": "n", - "ReadCapacityUnits": "n", - "WriteCapacityUnits": "n", - }, - }, root); -} diff --git a/lib/services/dynamodb@2011-12-05/structs.ts b/lib/services/dynamodb@2011-12-05/structs.ts deleted file mode 100644 index 656f8841..00000000 --- a/lib/services/dynamodb@2011-12-05/structs.ts +++ /dev/null @@ -1,331 +0,0 @@ -// Autogenerated API structures for: Amazon DynamoDB - -import * as cmnP from "../../encoding/common.ts"; - -// refs: 1 - tags: named, input -export interface BatchGetItemInput { - RequestItems: { [key: string]: KeysAndAttributes | null | undefined }; -} - -// refs: 1 - tags: named, input -export interface BatchWriteItemInput { - RequestItems: { [key: string]: WriteRequest[] | null | undefined }; -} - -// refs: 1 - tags: named, input -export interface CreateTableInput { - TableName: string; - KeySchema: KeySchema; - ProvisionedThroughput: ProvisionedThroughput; -} - -// refs: 1 - tags: named, input -export interface DeleteItemInput { - TableName: string; - Key: Key; - Expected?: { [key: string]: ExpectedAttributeValue | null | undefined } | null; - ReturnValues?: ReturnValue | null; -} - -// refs: 1 - tags: named, input -export interface DeleteTableInput { - TableName: string; -} - -// refs: 1 - tags: named, input -export interface DescribeTableInput { - TableName: string; -} - -// refs: 1 - tags: named, input -export interface GetItemInput { - TableName: string; - Key: Key; - AttributesToGet?: string[] | null; - ConsistentRead?: boolean | null; -} - -// refs: 1 - tags: named, input -export interface ListTablesInput { - ExclusiveStartTableName?: string | null; - Limit?: number | null; -} - -// refs: 1 - tags: named, input -export interface PutItemInput { - TableName: string; - Item: { [key: string]: AttributeValue | null | undefined }; - Expected?: { [key: string]: ExpectedAttributeValue | null | undefined } | null; - ReturnValues?: ReturnValue | null; -} - -// refs: 1 - tags: named, input -export interface QueryInput { - TableName: string; - AttributesToGet?: string[] | null; - Limit?: number | null; - ConsistentRead?: boolean | null; - Count?: boolean | null; - HashKeyValue: AttributeValue; - RangeKeyCondition?: Condition | null; - ScanIndexForward?: boolean | null; - ExclusiveStartKey?: Key | null; -} - -// refs: 1 - tags: named, input -export interface ScanInput { - TableName: string; - AttributesToGet?: string[] | null; - Limit?: number | null; - Count?: boolean | null; - ScanFilter?: { [key: string]: Condition | null | undefined } | null; - ExclusiveStartKey?: Key | null; -} - -// refs: 1 - tags: named, input -export interface UpdateItemInput { - TableName: string; - Key: Key; - AttributeUpdates: { [key: string]: AttributeValueUpdate | null | undefined }; - Expected?: { [key: string]: ExpectedAttributeValue | null | undefined } | null; - ReturnValues?: ReturnValue | null; -} - -// refs: 1 - tags: named, input -export interface UpdateTableInput { - TableName: string; - ProvisionedThroughput: ProvisionedThroughput; -} - -// refs: 1 - tags: named, output -export interface BatchGetItemOutput { - Responses?: { [key: string]: BatchResponse | null | undefined } | null; - UnprocessedKeys?: { [key: string]: KeysAndAttributes | null | undefined } | null; -} - -// refs: 1 - tags: named, output -export interface BatchWriteItemOutput { - Responses?: { [key: string]: BatchWriteResponse | null | undefined } | null; - UnprocessedItems?: { [key: string]: WriteRequest[] | null | undefined } | null; -} - -// refs: 1 - tags: named, output -export interface CreateTableOutput { - TableDescription?: TableDescription | null; -} - -// refs: 1 - tags: named, output -export interface DeleteItemOutput { - Attributes?: { [key: string]: AttributeValue | null | undefined } | null; - ConsumedCapacityUnits?: number | null; -} - -// refs: 1 - tags: named, output -export interface DeleteTableOutput { - TableDescription?: TableDescription | null; -} - -// refs: 1 - tags: named, output -export interface DescribeTableOutput { - Table?: TableDescription | null; -} - -// refs: 1 - tags: named, output -export interface GetItemOutput { - Item?: { [key: string]: AttributeValue | null | undefined } | null; - ConsumedCapacityUnits?: number | null; -} - -// refs: 1 - tags: named, output -export interface ListTablesOutput { - TableNames?: string[] | null; - LastEvaluatedTableName?: string | null; -} - -// refs: 1 - tags: named, output -export interface PutItemOutput { - Attributes?: { [key: string]: AttributeValue | null | undefined } | null; - ConsumedCapacityUnits?: number | null; -} - -// refs: 1 - tags: named, output -export interface QueryOutput { - Items?: ({ [key: string]: AttributeValue | null | undefined })[] | null; - Count?: number | null; - LastEvaluatedKey?: Key | null; - ConsumedCapacityUnits?: number | null; -} - -// refs: 1 - tags: named, output -export interface ScanOutput { - Items?: ({ [key: string]: AttributeValue | null | undefined })[] | null; - Count?: number | null; - ScannedCount?: number | null; - LastEvaluatedKey?: Key | null; - ConsumedCapacityUnits?: number | null; -} - -// refs: 1 - tags: named, output -export interface UpdateItemOutput { - Attributes?: { [key: string]: AttributeValue | null | undefined } | null; - ConsumedCapacityUnits?: number | null; -} - -// refs: 1 - tags: named, output -export interface UpdateTableOutput { - TableDescription?: TableDescription | null; -} - -// refs: 2 - tags: input, named, interface, output -export interface KeysAndAttributes { - Keys: Key[]; - AttributesToGet?: string[] | null; - ConsistentRead?: boolean | null; -} - -// refs: 11 - tags: input, named, interface, output -export interface Key { - HashKeyElement: AttributeValue; - RangeKeyElement?: AttributeValue | null; -} - -// refs: 39 - tags: input, named, interface, output -export interface AttributeValue { - S?: string | null; - N?: string | null; - B?: Uint8Array | string | null; - SS?: string[] | null; - NS?: string[] | null; - BS?: (Uint8Array | string)[] | null; -} - -// refs: 2 - tags: input, named, interface, output -export interface WriteRequest { - PutRequest?: PutRequest | null; - DeleteRequest?: DeleteRequest | null; -} - -// refs: 2 - tags: input, named, interface, output -export interface PutRequest { - Item: { [key: string]: AttributeValue | null | undefined }; -} - -// refs: 2 - tags: input, named, interface, output -export interface DeleteRequest { - Key: Key; -} - -// refs: 5 - tags: input, named, interface, output -export interface KeySchema { - HashKeyElement: KeySchemaElement; - RangeKeyElement?: KeySchemaElement | null; -} - -// refs: 10 - tags: input, named, interface, output -export interface KeySchemaElement { - AttributeName: string; - AttributeType: ScalarAttributeType; -} - -// refs: 10 - tags: input, named, enum, output -export type ScalarAttributeType = -| "S" -| "N" -| "B" -| cmnP.UnexpectedEnumValue; - -// refs: 2 - tags: input, named, interface -export interface ProvisionedThroughput { - ReadCapacityUnits: number; - WriteCapacityUnits: number; -} - -// refs: 3 - tags: input, named, interface -export interface ExpectedAttributeValue { - Value?: AttributeValue | null; - Exists?: boolean | null; -} - -// refs: 3 - tags: input, named, enum -export type ReturnValue = -| "NONE" -| "ALL_OLD" -| "UPDATED_OLD" -| "ALL_NEW" -| "UPDATED_NEW" -| cmnP.UnexpectedEnumValue; - -// refs: 2 - tags: input, named, interface -export interface Condition { - AttributeValueList?: AttributeValue[] | null; - ComparisonOperator: ComparisonOperator; -} - -// refs: 2 - tags: input, named, enum -export type ComparisonOperator = -| "EQ" -| "NE" -| "IN" -| "LE" -| "LT" -| "GE" -| "GT" -| "BETWEEN" -| "NOT_NULL" -| "NULL" -| "CONTAINS" -| "NOT_CONTAINS" -| "BEGINS_WITH" -| cmnP.UnexpectedEnumValue; - -// refs: 1 - tags: input, named, interface -export interface AttributeValueUpdate { - Value?: AttributeValue | null; - Action?: AttributeAction | null; -} - -// refs: 1 - tags: input, named, enum -export type AttributeAction = -| "ADD" -| "PUT" -| "DELETE" -| cmnP.UnexpectedEnumValue; - -// refs: 1 - tags: output, named, interface -export interface BatchResponse { - Items?: ({ [key: string]: AttributeValue | null | undefined })[] | null; - ConsumedCapacityUnits?: number | null; -} - -// refs: 1 - tags: output, named, interface -export interface BatchWriteResponse { - ConsumedCapacityUnits?: number | null; -} - -// refs: 4 - tags: output, named, interface -export interface TableDescription { - TableName?: string | null; - KeySchema?: KeySchema | null; - TableStatus?: TableStatus | null; - CreationDateTime?: Date | number | null; - ProvisionedThroughput?: ProvisionedThroughputDescription | null; - TableSizeBytes?: number | null; - ItemCount?: number | null; -} - -// refs: 4 - tags: output, named, enum -export type TableStatus = -| "CREATING" -| "UPDATING" -| "DELETING" -| "ACTIVE" -| cmnP.UnexpectedEnumValue; - -// refs: 4 - tags: output, named, interface -export interface ProvisionedThroughputDescription { - LastIncreaseDateTime?: Date | number | null; - LastDecreaseDateTime?: Date | number | null; - NumberOfDecreasesToday?: number | null; - ReadCapacityUnits?: number | null; - WriteCapacityUnits?: number | null; -} diff --git a/lib/services/dynamodbstreams@2012-08-10/mod.ts b/lib/services/dynamodbstreams/mod.ts similarity index 100% rename from lib/services/dynamodbstreams@2012-08-10/mod.ts rename to lib/services/dynamodbstreams/mod.ts diff --git a/lib/services/dynamodbstreams@2012-08-10/structs.ts b/lib/services/dynamodbstreams/structs.ts similarity index 100% rename from lib/services/dynamodbstreams@2012-08-10/structs.ts rename to lib/services/dynamodbstreams/structs.ts diff --git a/lib/services/ec2@2016-11-15/mod.ts b/lib/services/ec2/mod.ts similarity index 100% rename from lib/services/ec2@2016-11-15/mod.ts rename to lib/services/ec2/mod.ts diff --git a/lib/services/ec2@2016-11-15/structs.ts b/lib/services/ec2/structs.ts similarity index 100% rename from lib/services/ec2@2016-11-15/structs.ts rename to lib/services/ec2/structs.ts diff --git a/lib/services/ecr@2015-09-21/mod.ts b/lib/services/ecr/mod.ts similarity index 100% rename from lib/services/ecr@2015-09-21/mod.ts rename to lib/services/ecr/mod.ts diff --git a/lib/services/ecr@2015-09-21/structs.ts b/lib/services/ecr/structs.ts similarity index 100% rename from lib/services/ecr@2015-09-21/structs.ts rename to lib/services/ecr/structs.ts diff --git a/lib/services/eks@2017-11-01/mod.ts b/lib/services/eks/mod.ts similarity index 100% rename from lib/services/eks@2017-11-01/mod.ts rename to lib/services/eks/mod.ts diff --git a/lib/services/eks@2017-11-01/structs.ts b/lib/services/eks/structs.ts similarity index 100% rename from lib/services/eks@2017-11-01/structs.ts rename to lib/services/eks/structs.ts diff --git a/lib/services/elb@2012-06-01/mod.ts b/lib/services/elb/mod.ts similarity index 100% rename from lib/services/elb@2012-06-01/mod.ts rename to lib/services/elb/mod.ts diff --git a/lib/services/elb@2012-06-01/structs.ts b/lib/services/elb/structs.ts similarity index 100% rename from lib/services/elb@2012-06-01/structs.ts rename to lib/services/elb/structs.ts diff --git a/lib/services/elbv2@2015-12-01/mod.ts b/lib/services/elbv2/mod.ts similarity index 100% rename from lib/services/elbv2@2015-12-01/mod.ts rename to lib/services/elbv2/mod.ts diff --git a/lib/services/elbv2@2015-12-01/structs.ts b/lib/services/elbv2/structs.ts similarity index 100% rename from lib/services/elbv2@2015-12-01/structs.ts rename to lib/services/elbv2/structs.ts diff --git a/lib/services/es@2015-01-01/mod.ts b/lib/services/es/mod.ts similarity index 100% rename from lib/services/es@2015-01-01/mod.ts rename to lib/services/es/mod.ts diff --git a/lib/services/es@2015-01-01/structs.ts b/lib/services/es/structs.ts similarity index 100% rename from lib/services/es@2015-01-01/structs.ts rename to lib/services/es/structs.ts diff --git a/lib/services/iam@2010-05-08/mod.ts b/lib/services/iam/mod.ts similarity index 100% rename from lib/services/iam@2010-05-08/mod.ts rename to lib/services/iam/mod.ts diff --git a/lib/services/iam@2010-05-08/structs.ts b/lib/services/iam/structs.ts similarity index 100% rename from lib/services/iam@2010-05-08/structs.ts rename to lib/services/iam/structs.ts diff --git a/lib/services/kinesis@2013-12-02/mod.ts b/lib/services/kinesis/mod.ts similarity index 100% rename from lib/services/kinesis@2013-12-02/mod.ts rename to lib/services/kinesis/mod.ts diff --git a/lib/services/kinesis@2013-12-02/structs.ts b/lib/services/kinesis/structs.ts similarity index 100% rename from lib/services/kinesis@2013-12-02/structs.ts rename to lib/services/kinesis/structs.ts diff --git a/lib/services/kms@2014-11-01/mod.ts b/lib/services/kms/mod.ts similarity index 100% rename from lib/services/kms@2014-11-01/mod.ts rename to lib/services/kms/mod.ts diff --git a/lib/services/kms@2014-11-01/structs.ts b/lib/services/kms/structs.ts similarity index 100% rename from lib/services/kms@2014-11-01/structs.ts rename to lib/services/kms/structs.ts diff --git a/lib/services/lambda@2015-03-31/mod.ts b/lib/services/lambda/mod.ts similarity index 100% rename from lib/services/lambda@2015-03-31/mod.ts rename to lib/services/lambda/mod.ts diff --git a/lib/services/lambda@2015-03-31/structs.ts b/lib/services/lambda/structs.ts similarity index 100% rename from lib/services/lambda@2015-03-31/structs.ts rename to lib/services/lambda/structs.ts diff --git a/lib/services/lambda@2014-11-11/mod.ts b/lib/services/lambda@2014-11-11/mod.ts deleted file mode 100644 index e13310cf..00000000 --- a/lib/services/lambda@2014-11-11/mod.ts +++ /dev/null @@ -1,348 +0,0 @@ -// Autogenerated API client for: AWS Lambda - -interface RequestConfig { - abortSignal?: AbortSignal; -} - -export * from "./structs.ts"; -import * as client from "../../client/common.ts"; -import * as cmnP from "../../encoding/common.ts"; -import * as jsonP from "../../encoding/json.ts"; -import type * as s from "./structs.ts"; - -export default class Lambda { - #client: client.ServiceClient; - constructor(apiFactory: client.ApiFactory) { - this.#client = apiFactory.buildServiceClient(Lambda.ApiMetadata); - } - - static ApiMetadata: client.ApiMetadata = { - "apiVersion": "2014-11-11", - "endpointPrefix": "lambda", - "serviceFullName": "AWS Lambda", - "serviceId": "Lambda", - "signatureVersion": "v4", - "protocol": "rest-json", - "uid": "lambda-2014-11-11" - }; - - async addEventSource( - {abortSignal, ...params}: RequestConfig & s.AddEventSourceRequest, - ): Promise { - const body: jsonP.JSONObject = { - EventSource: params["EventSource"], - FunctionName: params["FunctionName"], - Role: params["Role"], - BatchSize: params["BatchSize"], - Parameters: params["Parameters"], - }; - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "AddEventSource", - requestUri: "/2014-11-13/event-source-mappings/", - }); - return jsonP.readObj({ - required: {}, - optional: { - "UUID": "s", - "BatchSize": "n", - "EventSource": "s", - "FunctionName": "s", - "Parameters": x => jsonP.readMap(String, String, x), - "Role": "s", - "LastModified": "d", - "IsActive": "b", - "Status": "s", - }, - }, await resp.json()); - } - - async deleteFunction( - {abortSignal, ...params}: RequestConfig & s.DeleteFunctionRequest, - ): Promise { - - const resp = await this.#client.performRequest({ - abortSignal, - action: "DeleteFunction", - method: "DELETE", - requestUri: cmnP.encodePath`/2014-11-13/functions/${params["FunctionName"]}`, - responseCode: 204, - }); - } - - async getEventSource( - {abortSignal, ...params}: RequestConfig & s.GetEventSourceRequest, - ): Promise { - - const resp = await this.#client.performRequest({ - abortSignal, - action: "GetEventSource", - method: "GET", - requestUri: cmnP.encodePath`/2014-11-13/event-source-mappings/${params["UUID"]}`, - responseCode: 200, - }); - return jsonP.readObj({ - required: {}, - optional: { - "UUID": "s", - "BatchSize": "n", - "EventSource": "s", - "FunctionName": "s", - "Parameters": x => jsonP.readMap(String, String, x), - "Role": "s", - "LastModified": "d", - "IsActive": "b", - "Status": "s", - }, - }, await resp.json()); - } - - async getFunction( - {abortSignal, ...params}: RequestConfig & s.GetFunctionRequest, - ): Promise { - - const resp = await this.#client.performRequest({ - abortSignal, - action: "GetFunction", - method: "GET", - requestUri: cmnP.encodePath`/2014-11-13/functions/${params["FunctionName"]}`, - responseCode: 200, - }); - return jsonP.readObj({ - required: {}, - optional: { - "Configuration": toFunctionConfiguration, - "Code": toFunctionCodeLocation, - }, - }, await resp.json()); - } - - async getFunctionConfiguration( - {abortSignal, ...params}: RequestConfig & s.GetFunctionConfigurationRequest, - ): Promise { - - const resp = await this.#client.performRequest({ - abortSignal, - action: "GetFunctionConfiguration", - method: "GET", - requestUri: cmnP.encodePath`/2014-11-13/functions/${params["FunctionName"]}/configuration`, - responseCode: 200, - }); - return jsonP.readObj({ - required: {}, - optional: { - "FunctionName": "s", - "FunctionARN": "s", - "ConfigurationId": "s", - "Runtime": (x: jsonP.JSONValue) => cmnP.readEnum(x), - "Role": "s", - "Handler": "s", - "Mode": (x: jsonP.JSONValue) => cmnP.readEnum(x), - "CodeSize": "n", - "Description": "s", - "Timeout": "n", - "MemorySize": "n", - "LastModified": "d", - }, - }, await resp.json()); - } - - async invokeAsync( - {abortSignal, ...params}: RequestConfig & s.InvokeAsyncRequest, - ): Promise { - const body = typeof params["InvokeArgs"] === 'string' ? new TextEncoder().encode(params["InvokeArgs"]) : params["InvokeArgs"]; - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "InvokeAsync", - requestUri: cmnP.encodePath`/2014-11-13/functions/${params["FunctionName"]}/invoke-async/`, - responseCode: 202, - }); - return { - Status: resp.status, - ...jsonP.readObj({ - required: {}, - optional: {}, - }, await resp.json()), - }; - } - - async listEventSources( - {abortSignal, ...params}: RequestConfig & s.ListEventSourcesRequest = {}, - ): Promise { - const query = new URLSearchParams; - if (params["EventSourceArn"] != null) query.set("EventSource", params["EventSourceArn"]?.toString() ?? ""); - if (params["FunctionName"] != null) query.set("FunctionName", params["FunctionName"]?.toString() ?? ""); - if (params["Marker"] != null) query.set("Marker", params["Marker"]?.toString() ?? ""); - if (params["MaxItems"] != null) query.set("MaxItems", params["MaxItems"]?.toString() ?? ""); - const resp = await this.#client.performRequest({ - abortSignal, query, - action: "ListEventSources", - method: "GET", - requestUri: "/2014-11-13/event-source-mappings/", - responseCode: 200, - }); - return jsonP.readObj({ - required: {}, - optional: { - "NextMarker": "s", - "EventSources": [toEventSourceConfiguration], - }, - }, await resp.json()); - } - - async listFunctions( - {abortSignal, ...params}: RequestConfig & s.ListFunctionsRequest = {}, - ): Promise { - const query = new URLSearchParams; - if (params["Marker"] != null) query.set("Marker", params["Marker"]?.toString() ?? ""); - if (params["MaxItems"] != null) query.set("MaxItems", params["MaxItems"]?.toString() ?? ""); - const resp = await this.#client.performRequest({ - abortSignal, query, - action: "ListFunctions", - method: "GET", - requestUri: "/2014-11-13/functions/", - responseCode: 200, - }); - return jsonP.readObj({ - required: {}, - optional: { - "NextMarker": "s", - "Functions": [toFunctionConfiguration], - }, - }, await resp.json()); - } - - async removeEventSource( - {abortSignal, ...params}: RequestConfig & s.RemoveEventSourceRequest, - ): Promise { - - const resp = await this.#client.performRequest({ - abortSignal, - action: "RemoveEventSource", - method: "DELETE", - requestUri: cmnP.encodePath`/2014-11-13/event-source-mappings/${params["UUID"]}`, - responseCode: 204, - }); - } - - async updateFunctionConfiguration( - {abortSignal, ...params}: RequestConfig & s.UpdateFunctionConfigurationRequest, - ): Promise { - const query = new URLSearchParams; - if (params["Role"] != null) query.set("Role", params["Role"]?.toString() ?? ""); - if (params["Handler"] != null) query.set("Handler", params["Handler"]?.toString() ?? ""); - if (params["Description"] != null) query.set("Description", params["Description"]?.toString() ?? ""); - if (params["Timeout"] != null) query.set("Timeout", params["Timeout"]?.toString() ?? ""); - if (params["MemorySize"] != null) query.set("MemorySize", params["MemorySize"]?.toString() ?? ""); - const resp = await this.#client.performRequest({ - abortSignal, query, - action: "UpdateFunctionConfiguration", - method: "PUT", - requestUri: cmnP.encodePath`/2014-11-13/functions/${params["FunctionName"]}/configuration`, - responseCode: 200, - }); - return jsonP.readObj({ - required: {}, - optional: { - "FunctionName": "s", - "FunctionARN": "s", - "ConfigurationId": "s", - "Runtime": (x: jsonP.JSONValue) => cmnP.readEnum(x), - "Role": "s", - "Handler": "s", - "Mode": (x: jsonP.JSONValue) => cmnP.readEnum(x), - "CodeSize": "n", - "Description": "s", - "Timeout": "n", - "MemorySize": "n", - "LastModified": "d", - }, - }, await resp.json()); - } - - async uploadFunction( - {abortSignal, ...params}: RequestConfig & s.UploadFunctionRequest, - ): Promise { - const body = typeof params["FunctionZip"] === 'string' ? new TextEncoder().encode(params["FunctionZip"]) : params["FunctionZip"]; - const query = new URLSearchParams; - query.set("Runtime", params["Runtime"]?.toString() ?? ""); - query.set("Role", params["Role"]?.toString() ?? ""); - query.set("Handler", params["Handler"]?.toString() ?? ""); - query.set("Mode", params["Mode"]?.toString() ?? ""); - if (params["Description"] != null) query.set("Description", params["Description"]?.toString() ?? ""); - if (params["Timeout"] != null) query.set("Timeout", params["Timeout"]?.toString() ?? ""); - if (params["MemorySize"] != null) query.set("MemorySize", params["MemorySize"]?.toString() ?? ""); - const resp = await this.#client.performRequest({ - abortSignal, query, body, - action: "UploadFunction", - method: "PUT", - requestUri: cmnP.encodePath`/2014-11-13/functions/${params["FunctionName"]}`, - responseCode: 201, - }); - return jsonP.readObj({ - required: {}, - optional: { - "FunctionName": "s", - "FunctionARN": "s", - "ConfigurationId": "s", - "Runtime": (x: jsonP.JSONValue) => cmnP.readEnum(x), - "Role": "s", - "Handler": "s", - "Mode": (x: jsonP.JSONValue) => cmnP.readEnum(x), - "CodeSize": "n", - "Description": "s", - "Timeout": "n", - "MemorySize": "n", - "LastModified": "d", - }, - }, await resp.json()); - } - -} - -function toEventSourceConfiguration(root: jsonP.JSONValue): s.EventSourceConfiguration { - return jsonP.readObj({ - required: {}, - optional: { - "UUID": "s", - "BatchSize": "n", - "EventSource": "s", - "FunctionName": "s", - "Parameters": x => jsonP.readMap(String, String, x), - "Role": "s", - "LastModified": "d", - "IsActive": "b", - "Status": "s", - }, - }, root); -} - -function toFunctionConfiguration(root: jsonP.JSONValue): s.FunctionConfiguration { - return jsonP.readObj({ - required: {}, - optional: { - "FunctionName": "s", - "FunctionARN": "s", - "ConfigurationId": "s", - "Runtime": (x: jsonP.JSONValue) => cmnP.readEnum(x), - "Role": "s", - "Handler": "s", - "Mode": (x: jsonP.JSONValue) => cmnP.readEnum(x), - "CodeSize": "n", - "Description": "s", - "Timeout": "n", - "MemorySize": "n", - "LastModified": "d", - }, - }, root); -} - -function toFunctionCodeLocation(root: jsonP.JSONValue): s.FunctionCodeLocation { - return jsonP.readObj({ - required: {}, - optional: { - "RepositoryType": "s", - "Location": "s", - }, - }, root); -} diff --git a/lib/services/lambda@2014-11-11/structs.ts b/lib/services/lambda@2014-11-11/structs.ts deleted file mode 100644 index b0c91f81..00000000 --- a/lib/services/lambda@2014-11-11/structs.ts +++ /dev/null @@ -1,148 +0,0 @@ -// Autogenerated API structures for: AWS Lambda - -import * as cmnP from "../../encoding/common.ts"; - -// refs: 1 - tags: named, input -export interface AddEventSourceRequest { - EventSource: string; - FunctionName: string; - Role: string; - BatchSize?: number | null; - Parameters?: { [key: string]: string | null | undefined } | null; -} - -// refs: 1 - tags: named, input -export interface DeleteFunctionRequest { - FunctionName: string; -} - -// refs: 1 - tags: named, input -export interface GetEventSourceRequest { - UUID: string; -} - -// refs: 1 - tags: named, input -export interface GetFunctionRequest { - FunctionName: string; -} - -// refs: 1 - tags: named, input -export interface GetFunctionConfigurationRequest { - FunctionName: string; -} - -// refs: 1 - tags: named, input -export interface InvokeAsyncRequest { - FunctionName: string; - InvokeArgs: Uint8Array | string; -} - -// refs: 1 - tags: named, input -export interface ListEventSourcesRequest { - EventSourceArn?: string | null; - FunctionName?: string | null; - Marker?: string | null; - MaxItems?: number | null; -} - -// refs: 1 - tags: named, input -export interface ListFunctionsRequest { - Marker?: string | null; - MaxItems?: number | null; -} - -// refs: 1 - tags: named, input -export interface RemoveEventSourceRequest { - UUID: string; -} - -// refs: 1 - tags: named, input -export interface UpdateFunctionConfigurationRequest { - FunctionName: string; - Role?: string | null; - Handler?: string | null; - Description?: string | null; - Timeout?: number | null; - MemorySize?: number | null; -} - -// refs: 1 - tags: named, input -export interface UploadFunctionRequest { - FunctionName: string; - FunctionZip: Uint8Array | string; - Runtime: Runtime; - Role: string; - Handler: string; - Mode: Mode; - Description?: string | null; - Timeout?: number | null; - MemorySize?: number | null; -} - -// refs: 2 - tags: named, output, interface -export interface EventSourceConfiguration { - UUID?: string | null; - BatchSize?: number | null; - EventSource?: string | null; - FunctionName?: string | null; - Parameters?: { [key: string]: string | null | undefined } | null; - Role?: string | null; - LastModified?: Date | number | null; - IsActive?: boolean | null; - Status?: string | null; -} - -// refs: 1 - tags: named, output -export interface GetFunctionResponse { - Configuration?: FunctionConfiguration | null; - Code?: FunctionCodeLocation | null; -} - -// refs: 3 - tags: output, named, interface -export interface FunctionConfiguration { - FunctionName?: string | null; - FunctionARN?: string | null; - ConfigurationId?: string | null; - Runtime?: Runtime | null; - Role?: string | null; - Handler?: string | null; - Mode?: Mode | null; - CodeSize?: number | null; - Description?: string | null; - Timeout?: number | null; - MemorySize?: number | null; - LastModified?: Date | number | null; -} - -// refs: 1 - tags: named, output -export interface InvokeAsyncResponse { - Status?: number | null; -} - -// refs: 1 - tags: named, output -export interface ListEventSourcesResponse { - NextMarker?: string | null; - EventSources?: EventSourceConfiguration[] | null; -} - -// refs: 1 - tags: named, output -export interface ListFunctionsResponse { - NextMarker?: string | null; - Functions?: FunctionConfiguration[] | null; -} - -// refs: 4 - tags: input, named, enum, output -export type Runtime = -| "nodejs" -| cmnP.UnexpectedEnumValue; - -// refs: 4 - tags: input, named, enum, output -export type Mode = -| "event" -| cmnP.UnexpectedEnumValue; - -// refs: 1 - tags: output, named, interface -export interface FunctionCodeLocation { - RepositoryType?: string | null; - Location?: string | null; -} diff --git a/lib/services/pricing@2017-10-15/mod.ts b/lib/services/pricing/mod.ts similarity index 100% rename from lib/services/pricing@2017-10-15/mod.ts rename to lib/services/pricing/mod.ts diff --git a/lib/services/pricing@2017-10-15/structs.ts b/lib/services/pricing/structs.ts similarity index 100% rename from lib/services/pricing@2017-10-15/structs.ts rename to lib/services/pricing/structs.ts diff --git a/lib/services/rds@2014-10-31/mod.ts b/lib/services/rds/mod.ts similarity index 100% rename from lib/services/rds@2014-10-31/mod.ts rename to lib/services/rds/mod.ts diff --git a/lib/services/rds@2014-10-31/structs.ts b/lib/services/rds/structs.ts similarity index 100% rename from lib/services/rds@2014-10-31/structs.ts rename to lib/services/rds/structs.ts diff --git a/lib/services/rds@2013-01-10/mod.ts b/lib/services/rds@2013-01-10/mod.ts deleted file mode 100644 index 08ce7714..00000000 --- a/lib/services/rds@2013-01-10/mod.ts +++ /dev/null @@ -1,1351 +0,0 @@ -// Autogenerated API client for: Amazon Relational Database Service - -interface RequestConfig { - abortSignal?: AbortSignal; -} - -export * from "./structs.ts"; -import * as client from "../../client/common.ts"; -import * as qsP from "../../encoding/querystring.ts"; -import * as xmlP from "../../encoding/xml.ts"; -import type * as s from "./structs.ts"; - -export default class RDS { - #client: client.ServiceClient; - constructor(apiFactory: client.ApiFactory) { - this.#client = apiFactory.buildServiceClient(RDS.ApiMetadata); - } - - static ApiMetadata: client.ApiMetadata = { - "apiVersion": "2013-01-10", - "endpointPrefix": "rds", - "protocol": "query", - "serviceAbbreviation": "Amazon RDS", - "serviceFullName": "Amazon Relational Database Service", - "serviceId": "RDS", - "signatureVersion": "v4", - "uid": "rds-2013-01-10", - "xmlNamespace": "http://rds.amazonaws.com/doc/2013-01-10/" - }; - - async addSourceIdentifierToSubscription( - {abortSignal, ...params}: RequestConfig & s.AddSourceIdentifierToSubscriptionMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SubscriptionName", (params["SubscriptionName"] ?? '').toString()); - body.append(prefix+"SourceIdentifier", (params["SourceIdentifier"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "AddSourceIdentifierToSubscription", - }); - const xml = xmlP.readXmlResult(await resp.text(), "AddSourceIdentifierToSubscriptionResult"); - return { - EventSubscription: xml.first("EventSubscription", false, EventSubscription_Parse), - }; - } - - async addTagsToResource( - {abortSignal, ...params}: RequestConfig & s.AddTagsToResourceMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"ResourceName", (params["ResourceName"] ?? '').toString()); - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "AddTagsToResource", - }); - await resp.arrayBuffer(); // consume body without use - } - - async authorizeDBSecurityGroupIngress( - {abortSignal, ...params}: RequestConfig & s.AuthorizeDBSecurityGroupIngressMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSecurityGroupName", (params["DBSecurityGroupName"] ?? '').toString()); - if ("CIDRIP" in params) body.append(prefix+"CIDRIP", (params["CIDRIP"] ?? '').toString()); - if ("EC2SecurityGroupName" in params) body.append(prefix+"EC2SecurityGroupName", (params["EC2SecurityGroupName"] ?? '').toString()); - if ("EC2SecurityGroupId" in params) body.append(prefix+"EC2SecurityGroupId", (params["EC2SecurityGroupId"] ?? '').toString()); - if ("EC2SecurityGroupOwnerId" in params) body.append(prefix+"EC2SecurityGroupOwnerId", (params["EC2SecurityGroupOwnerId"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "AuthorizeDBSecurityGroupIngress", - }); - const xml = xmlP.readXmlResult(await resp.text(), "AuthorizeDBSecurityGroupIngressResult"); - return { - DBSecurityGroup: xml.first("DBSecurityGroup", false, DBSecurityGroup_Parse), - }; - } - - async copyDBSnapshot( - {abortSignal, ...params}: RequestConfig & s.CopyDBSnapshotMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SourceDBSnapshotIdentifier", (params["SourceDBSnapshotIdentifier"] ?? '').toString()); - body.append(prefix+"TargetDBSnapshotIdentifier", (params["TargetDBSnapshotIdentifier"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CopyDBSnapshot", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CopyDBSnapshotResult"); - return { - DBSnapshot: xml.first("DBSnapshot", false, DBSnapshot_Parse), - }; - } - - async createDBInstance( - {abortSignal, ...params}: RequestConfig & s.CreateDBInstanceMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("DBName" in params) body.append(prefix+"DBName", (params["DBName"] ?? '').toString()); - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - body.append(prefix+"AllocatedStorage", (params["AllocatedStorage"] ?? '').toString()); - body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - body.append(prefix+"Engine", (params["Engine"] ?? '').toString()); - body.append(prefix+"MasterUsername", (params["MasterUsername"] ?? '').toString()); - body.append(prefix+"MasterUserPassword", (params["MasterUserPassword"] ?? '').toString()); - if (params["DBSecurityGroups"]) qsP.appendList(body, prefix+"DBSecurityGroups", params["DBSecurityGroups"], {"entryPrefix":".DBSecurityGroupName."}) - if (params["VpcSecurityGroupIds"]) qsP.appendList(body, prefix+"VpcSecurityGroupIds", params["VpcSecurityGroupIds"], {"entryPrefix":".VpcSecurityGroupId."}) - if ("AvailabilityZone" in params) body.append(prefix+"AvailabilityZone", (params["AvailabilityZone"] ?? '').toString()); - if ("DBSubnetGroupName" in params) body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - if ("PreferredMaintenanceWindow" in params) body.append(prefix+"PreferredMaintenanceWindow", (params["PreferredMaintenanceWindow"] ?? '').toString()); - if ("DBParameterGroupName" in params) body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - if ("BackupRetentionPeriod" in params) body.append(prefix+"BackupRetentionPeriod", (params["BackupRetentionPeriod"] ?? '').toString()); - if ("PreferredBackupWindow" in params) body.append(prefix+"PreferredBackupWindow", (params["PreferredBackupWindow"] ?? '').toString()); - if ("Port" in params) body.append(prefix+"Port", (params["Port"] ?? '').toString()); - if ("MultiAZ" in params) body.append(prefix+"MultiAZ", (params["MultiAZ"] ?? '').toString()); - if ("EngineVersion" in params) body.append(prefix+"EngineVersion", (params["EngineVersion"] ?? '').toString()); - if ("AutoMinorVersionUpgrade" in params) body.append(prefix+"AutoMinorVersionUpgrade", (params["AutoMinorVersionUpgrade"] ?? '').toString()); - if ("LicenseModel" in params) body.append(prefix+"LicenseModel", (params["LicenseModel"] ?? '').toString()); - if ("Iops" in params) body.append(prefix+"Iops", (params["Iops"] ?? '').toString()); - if ("OptionGroupName" in params) body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - if ("CharacterSetName" in params) body.append(prefix+"CharacterSetName", (params["CharacterSetName"] ?? '').toString()); - if ("PubliclyAccessible" in params) body.append(prefix+"PubliclyAccessible", (params["PubliclyAccessible"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateDBInstance", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateDBInstanceResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async createDBInstanceReadReplica( - {abortSignal, ...params}: RequestConfig & s.CreateDBInstanceReadReplicaMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - body.append(prefix+"SourceDBInstanceIdentifier", (params["SourceDBInstanceIdentifier"] ?? '').toString()); - if ("DBInstanceClass" in params) body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - if ("AvailabilityZone" in params) body.append(prefix+"AvailabilityZone", (params["AvailabilityZone"] ?? '').toString()); - if ("Port" in params) body.append(prefix+"Port", (params["Port"] ?? '').toString()); - if ("AutoMinorVersionUpgrade" in params) body.append(prefix+"AutoMinorVersionUpgrade", (params["AutoMinorVersionUpgrade"] ?? '').toString()); - if ("Iops" in params) body.append(prefix+"Iops", (params["Iops"] ?? '').toString()); - if ("OptionGroupName" in params) body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - if ("PubliclyAccessible" in params) body.append(prefix+"PubliclyAccessible", (params["PubliclyAccessible"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateDBInstanceReadReplica", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateDBInstanceReadReplicaResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async createDBParameterGroup( - {abortSignal, ...params}: RequestConfig & s.CreateDBParameterGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - body.append(prefix+"DBParameterGroupFamily", (params["DBParameterGroupFamily"] ?? '').toString()); - body.append(prefix+"Description", (params["Description"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateDBParameterGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateDBParameterGroupResult"); - return { - DBParameterGroup: xml.first("DBParameterGroup", false, DBParameterGroup_Parse), - }; - } - - async createDBSecurityGroup( - {abortSignal, ...params}: RequestConfig & s.CreateDBSecurityGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSecurityGroupName", (params["DBSecurityGroupName"] ?? '').toString()); - body.append(prefix+"DBSecurityGroupDescription", (params["DBSecurityGroupDescription"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateDBSecurityGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateDBSecurityGroupResult"); - return { - DBSecurityGroup: xml.first("DBSecurityGroup", false, DBSecurityGroup_Parse), - }; - } - - async createDBSnapshot( - {abortSignal, ...params}: RequestConfig & s.CreateDBSnapshotMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSnapshotIdentifier", (params["DBSnapshotIdentifier"] ?? '').toString()); - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateDBSnapshot", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateDBSnapshotResult"); - return { - DBSnapshot: xml.first("DBSnapshot", false, DBSnapshot_Parse), - }; - } - - async createDBSubnetGroup( - {abortSignal, ...params}: RequestConfig & s.CreateDBSubnetGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - body.append(prefix+"DBSubnetGroupDescription", (params["DBSubnetGroupDescription"] ?? '').toString()); - if (params["SubnetIds"]) qsP.appendList(body, prefix+"SubnetIds", params["SubnetIds"], {"entryPrefix":".SubnetIdentifier."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateDBSubnetGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateDBSubnetGroupResult"); - return { - DBSubnetGroup: xml.first("DBSubnetGroup", false, DBSubnetGroup_Parse), - }; - } - - async createEventSubscription( - {abortSignal, ...params}: RequestConfig & s.CreateEventSubscriptionMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SubscriptionName", (params["SubscriptionName"] ?? '').toString()); - body.append(prefix+"SnsTopicArn", (params["SnsTopicArn"] ?? '').toString()); - if ("SourceType" in params) body.append(prefix+"SourceType", (params["SourceType"] ?? '').toString()); - if (params["EventCategories"]) qsP.appendList(body, prefix+"EventCategories", params["EventCategories"], {"entryPrefix":".EventCategory."}) - if (params["SourceIds"]) qsP.appendList(body, prefix+"SourceIds", params["SourceIds"], {"entryPrefix":".SourceId."}) - if ("Enabled" in params) body.append(prefix+"Enabled", (params["Enabled"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateEventSubscription", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateEventSubscriptionResult"); - return { - EventSubscription: xml.first("EventSubscription", false, EventSubscription_Parse), - }; - } - - async createOptionGroup( - {abortSignal, ...params}: RequestConfig & s.CreateOptionGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - body.append(prefix+"EngineName", (params["EngineName"] ?? '').toString()); - body.append(prefix+"MajorEngineVersion", (params["MajorEngineVersion"] ?? '').toString()); - body.append(prefix+"OptionGroupDescription", (params["OptionGroupDescription"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateOptionGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateOptionGroupResult"); - return { - OptionGroup: xml.first("OptionGroup", false, OptionGroup_Parse), - }; - } - - async deleteDBInstance( - {abortSignal, ...params}: RequestConfig & s.DeleteDBInstanceMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - if ("SkipFinalSnapshot" in params) body.append(prefix+"SkipFinalSnapshot", (params["SkipFinalSnapshot"] ?? '').toString()); - if ("FinalDBSnapshotIdentifier" in params) body.append(prefix+"FinalDBSnapshotIdentifier", (params["FinalDBSnapshotIdentifier"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteDBInstance", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DeleteDBInstanceResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async deleteDBParameterGroup( - {abortSignal, ...params}: RequestConfig & s.DeleteDBParameterGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteDBParameterGroup", - }); - await resp.arrayBuffer(); // consume body without use - } - - async deleteDBSecurityGroup( - {abortSignal, ...params}: RequestConfig & s.DeleteDBSecurityGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSecurityGroupName", (params["DBSecurityGroupName"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteDBSecurityGroup", - }); - await resp.arrayBuffer(); // consume body without use - } - - async deleteDBSnapshot( - {abortSignal, ...params}: RequestConfig & s.DeleteDBSnapshotMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSnapshotIdentifier", (params["DBSnapshotIdentifier"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteDBSnapshot", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DeleteDBSnapshotResult"); - return { - DBSnapshot: xml.first("DBSnapshot", false, DBSnapshot_Parse), - }; - } - - async deleteDBSubnetGroup( - {abortSignal, ...params}: RequestConfig & s.DeleteDBSubnetGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteDBSubnetGroup", - }); - await resp.arrayBuffer(); // consume body without use - } - - async deleteEventSubscription( - {abortSignal, ...params}: RequestConfig & s.DeleteEventSubscriptionMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SubscriptionName", (params["SubscriptionName"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteEventSubscription", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DeleteEventSubscriptionResult"); - return { - EventSubscription: xml.first("EventSubscription", false, EventSubscription_Parse), - }; - } - - async deleteOptionGroup( - {abortSignal, ...params}: RequestConfig & s.DeleteOptionGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteOptionGroup", - }); - await resp.arrayBuffer(); // consume body without use - } - - async describeDBEngineVersions( - {abortSignal, ...params}: RequestConfig & s.DescribeDBEngineVersionsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("Engine" in params) body.append(prefix+"Engine", (params["Engine"] ?? '').toString()); - if ("EngineVersion" in params) body.append(prefix+"EngineVersion", (params["EngineVersion"] ?? '').toString()); - if ("DBParameterGroupFamily" in params) body.append(prefix+"DBParameterGroupFamily", (params["DBParameterGroupFamily"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - if ("DefaultOnly" in params) body.append(prefix+"DefaultOnly", (params["DefaultOnly"] ?? '').toString()); - if ("ListSupportedCharacterSets" in params) body.append(prefix+"ListSupportedCharacterSets", (params["ListSupportedCharacterSets"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBEngineVersions", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBEngineVersionsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - DBEngineVersions: xml.getList("DBEngineVersions", "DBEngineVersion").map(DBEngineVersion_Parse), - }; - } - - async describeDBInstances( - {abortSignal, ...params}: RequestConfig & s.DescribeDBInstancesMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("DBInstanceIdentifier" in params) body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBInstances", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBInstancesResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - DBInstances: xml.getList("DBInstances", "DBInstance").map(DBInstance_Parse), - }; - } - - async describeDBParameterGroups( - {abortSignal, ...params}: RequestConfig & s.DescribeDBParameterGroupsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("DBParameterGroupName" in params) body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBParameterGroups", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBParameterGroupsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - DBParameterGroups: xml.getList("DBParameterGroups", "DBParameterGroup").map(DBParameterGroup_Parse), - }; - } - - async describeDBParameters( - {abortSignal, ...params}: RequestConfig & s.DescribeDBParametersMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - if ("Source" in params) body.append(prefix+"Source", (params["Source"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBParameters", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBParametersResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - Parameters: xml.getList("Parameters", "Parameter").map(Parameter_Parse), - }; - } - - async describeDBSecurityGroups( - {abortSignal, ...params}: RequestConfig & s.DescribeDBSecurityGroupsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("DBSecurityGroupName" in params) body.append(prefix+"DBSecurityGroupName", (params["DBSecurityGroupName"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBSecurityGroups", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBSecurityGroupsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - DBSecurityGroups: xml.getList("DBSecurityGroups", "DBSecurityGroup").map(DBSecurityGroup_Parse), - }; - } - - async describeDBSnapshots( - {abortSignal, ...params}: RequestConfig & s.DescribeDBSnapshotsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("DBInstanceIdentifier" in params) body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - if ("DBSnapshotIdentifier" in params) body.append(prefix+"DBSnapshotIdentifier", (params["DBSnapshotIdentifier"] ?? '').toString()); - if ("SnapshotType" in params) body.append(prefix+"SnapshotType", (params["SnapshotType"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBSnapshots", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBSnapshotsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - DBSnapshots: xml.getList("DBSnapshots", "DBSnapshot").map(DBSnapshot_Parse), - }; - } - - async describeDBSubnetGroups( - {abortSignal, ...params}: RequestConfig & s.DescribeDBSubnetGroupsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("DBSubnetGroupName" in params) body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBSubnetGroups", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBSubnetGroupsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - DBSubnetGroups: xml.getList("DBSubnetGroups", "DBSubnetGroup").map(DBSubnetGroup_Parse), - }; - } - - async describeEngineDefaultParameters( - {abortSignal, ...params}: RequestConfig & s.DescribeEngineDefaultParametersMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBParameterGroupFamily", (params["DBParameterGroupFamily"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeEngineDefaultParameters", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeEngineDefaultParametersResult"); - return { - EngineDefaults: xml.first("EngineDefaults", false, EngineDefaults_Parse), - }; - } - - async describeEventCategories( - {abortSignal, ...params}: RequestConfig & s.DescribeEventCategoriesMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("SourceType" in params) body.append(prefix+"SourceType", (params["SourceType"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeEventCategories", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeEventCategoriesResult"); - return { - EventCategoriesMapList: xml.getList("EventCategoriesMapList", "EventCategoriesMap").map(EventCategoriesMap_Parse), - }; - } - - async describeEventSubscriptions( - {abortSignal, ...params}: RequestConfig & s.DescribeEventSubscriptionsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("SubscriptionName" in params) body.append(prefix+"SubscriptionName", (params["SubscriptionName"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeEventSubscriptions", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeEventSubscriptionsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - EventSubscriptionsList: xml.getList("EventSubscriptionsList", "EventSubscription").map(EventSubscription_Parse), - }; - } - - async describeEvents( - {abortSignal, ...params}: RequestConfig & s.DescribeEventsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("SourceIdentifier" in params) body.append(prefix+"SourceIdentifier", (params["SourceIdentifier"] ?? '').toString()); - if ("SourceType" in params) body.append(prefix+"SourceType", (params["SourceType"] ?? '').toString()); - if ("StartTime" in params) body.append(prefix+"StartTime", qsP.encodeDate_iso8601(params["StartTime"])); - if ("EndTime" in params) body.append(prefix+"EndTime", qsP.encodeDate_iso8601(params["EndTime"])); - if ("Duration" in params) body.append(prefix+"Duration", (params["Duration"] ?? '').toString()); - if (params["EventCategories"]) qsP.appendList(body, prefix+"EventCategories", params["EventCategories"], {"entryPrefix":".EventCategory."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeEvents", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeEventsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - Events: xml.getList("Events", "Event").map(Event_Parse), - }; - } - - async describeOptionGroupOptions( - {abortSignal, ...params}: RequestConfig & s.DescribeOptionGroupOptionsMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"EngineName", (params["EngineName"] ?? '').toString()); - if ("MajorEngineVersion" in params) body.append(prefix+"MajorEngineVersion", (params["MajorEngineVersion"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeOptionGroupOptions", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeOptionGroupOptionsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - OptionGroupOptions: xml.getList("OptionGroupOptions", "OptionGroupOption").map(OptionGroupOption_Parse), - }; - } - - async describeOptionGroups( - {abortSignal, ...params}: RequestConfig & s.DescribeOptionGroupsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("OptionGroupName" in params) body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("EngineName" in params) body.append(prefix+"EngineName", (params["EngineName"] ?? '').toString()); - if ("MajorEngineVersion" in params) body.append(prefix+"MajorEngineVersion", (params["MajorEngineVersion"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeOptionGroups", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeOptionGroupsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - OptionGroupsList: xml.getList("OptionGroupsList", "OptionGroup").map(OptionGroup_Parse), - }; - } - - async describeOrderableDBInstanceOptions( - {abortSignal, ...params}: RequestConfig & s.DescribeOrderableDBInstanceOptionsMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"Engine", (params["Engine"] ?? '').toString()); - if ("EngineVersion" in params) body.append(prefix+"EngineVersion", (params["EngineVersion"] ?? '').toString()); - if ("DBInstanceClass" in params) body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - if ("LicenseModel" in params) body.append(prefix+"LicenseModel", (params["LicenseModel"] ?? '').toString()); - if ("Vpc" in params) body.append(prefix+"Vpc", (params["Vpc"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeOrderableDBInstanceOptions", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeOrderableDBInstanceOptionsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - OrderableDBInstanceOptions: xml.getList("OrderableDBInstanceOptions", "OrderableDBInstanceOption").map(OrderableDBInstanceOption_Parse), - }; - } - - async describeReservedDBInstances( - {abortSignal, ...params}: RequestConfig & s.DescribeReservedDBInstancesMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("ReservedDBInstanceId" in params) body.append(prefix+"ReservedDBInstanceId", (params["ReservedDBInstanceId"] ?? '').toString()); - if ("ReservedDBInstancesOfferingId" in params) body.append(prefix+"ReservedDBInstancesOfferingId", (params["ReservedDBInstancesOfferingId"] ?? '').toString()); - if ("DBInstanceClass" in params) body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - if ("Duration" in params) body.append(prefix+"Duration", (params["Duration"] ?? '').toString()); - if ("ProductDescription" in params) body.append(prefix+"ProductDescription", (params["ProductDescription"] ?? '').toString()); - if ("OfferingType" in params) body.append(prefix+"OfferingType", (params["OfferingType"] ?? '').toString()); - if ("MultiAZ" in params) body.append(prefix+"MultiAZ", (params["MultiAZ"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeReservedDBInstances", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeReservedDBInstancesResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - ReservedDBInstances: xml.getList("ReservedDBInstances", "ReservedDBInstance").map(ReservedDBInstance_Parse), - }; - } - - async describeReservedDBInstancesOfferings( - {abortSignal, ...params}: RequestConfig & s.DescribeReservedDBInstancesOfferingsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("ReservedDBInstancesOfferingId" in params) body.append(prefix+"ReservedDBInstancesOfferingId", (params["ReservedDBInstancesOfferingId"] ?? '').toString()); - if ("DBInstanceClass" in params) body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - if ("Duration" in params) body.append(prefix+"Duration", (params["Duration"] ?? '').toString()); - if ("ProductDescription" in params) body.append(prefix+"ProductDescription", (params["ProductDescription"] ?? '').toString()); - if ("OfferingType" in params) body.append(prefix+"OfferingType", (params["OfferingType"] ?? '').toString()); - if ("MultiAZ" in params) body.append(prefix+"MultiAZ", (params["MultiAZ"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeReservedDBInstancesOfferings", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeReservedDBInstancesOfferingsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - ReservedDBInstancesOfferings: xml.getList("ReservedDBInstancesOfferings", "ReservedDBInstancesOffering").map(ReservedDBInstancesOffering_Parse), - }; - } - - async listTagsForResource( - {abortSignal, ...params}: RequestConfig & s.ListTagsForResourceMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"ResourceName", (params["ResourceName"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "ListTagsForResource", - }); - const xml = xmlP.readXmlResult(await resp.text(), "ListTagsForResourceResult"); - return { - TagList: xml.getList("TagList", "Tag").map(Tag_Parse), - }; - } - - async modifyDBInstance( - {abortSignal, ...params}: RequestConfig & s.ModifyDBInstanceMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - if ("AllocatedStorage" in params) body.append(prefix+"AllocatedStorage", (params["AllocatedStorage"] ?? '').toString()); - if ("DBInstanceClass" in params) body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - if (params["DBSecurityGroups"]) qsP.appendList(body, prefix+"DBSecurityGroups", params["DBSecurityGroups"], {"entryPrefix":".DBSecurityGroupName."}) - if (params["VpcSecurityGroupIds"]) qsP.appendList(body, prefix+"VpcSecurityGroupIds", params["VpcSecurityGroupIds"], {"entryPrefix":".VpcSecurityGroupId."}) - if ("ApplyImmediately" in params) body.append(prefix+"ApplyImmediately", (params["ApplyImmediately"] ?? '').toString()); - if ("MasterUserPassword" in params) body.append(prefix+"MasterUserPassword", (params["MasterUserPassword"] ?? '').toString()); - if ("DBParameterGroupName" in params) body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - if ("BackupRetentionPeriod" in params) body.append(prefix+"BackupRetentionPeriod", (params["BackupRetentionPeriod"] ?? '').toString()); - if ("PreferredBackupWindow" in params) body.append(prefix+"PreferredBackupWindow", (params["PreferredBackupWindow"] ?? '').toString()); - if ("PreferredMaintenanceWindow" in params) body.append(prefix+"PreferredMaintenanceWindow", (params["PreferredMaintenanceWindow"] ?? '').toString()); - if ("MultiAZ" in params) body.append(prefix+"MultiAZ", (params["MultiAZ"] ?? '').toString()); - if ("EngineVersion" in params) body.append(prefix+"EngineVersion", (params["EngineVersion"] ?? '').toString()); - if ("AllowMajorVersionUpgrade" in params) body.append(prefix+"AllowMajorVersionUpgrade", (params["AllowMajorVersionUpgrade"] ?? '').toString()); - if ("AutoMinorVersionUpgrade" in params) body.append(prefix+"AutoMinorVersionUpgrade", (params["AutoMinorVersionUpgrade"] ?? '').toString()); - if ("Iops" in params) body.append(prefix+"Iops", (params["Iops"] ?? '').toString()); - if ("OptionGroupName" in params) body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - if ("NewDBInstanceIdentifier" in params) body.append(prefix+"NewDBInstanceIdentifier", (params["NewDBInstanceIdentifier"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "ModifyDBInstance", - }); - const xml = xmlP.readXmlResult(await resp.text(), "ModifyDBInstanceResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async modifyDBParameterGroup( - {abortSignal, ...params}: RequestConfig & s.ModifyDBParameterGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - if (params["Parameters"]) qsP.appendList(body, prefix+"Parameters", params["Parameters"], {"appender":Parameter_Serialize,"entryPrefix":".Parameter."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "ModifyDBParameterGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "ModifyDBParameterGroupResult"); - return xml.strings({ - optional: {"DBParameterGroupName":true}, - }); - } - - async modifyDBSubnetGroup( - {abortSignal, ...params}: RequestConfig & s.ModifyDBSubnetGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - if ("DBSubnetGroupDescription" in params) body.append(prefix+"DBSubnetGroupDescription", (params["DBSubnetGroupDescription"] ?? '').toString()); - if (params["SubnetIds"]) qsP.appendList(body, prefix+"SubnetIds", params["SubnetIds"], {"entryPrefix":".SubnetIdentifier."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "ModifyDBSubnetGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "ModifyDBSubnetGroupResult"); - return { - DBSubnetGroup: xml.first("DBSubnetGroup", false, DBSubnetGroup_Parse), - }; - } - - async modifyEventSubscription( - {abortSignal, ...params}: RequestConfig & s.ModifyEventSubscriptionMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SubscriptionName", (params["SubscriptionName"] ?? '').toString()); - if ("SnsTopicArn" in params) body.append(prefix+"SnsTopicArn", (params["SnsTopicArn"] ?? '').toString()); - if ("SourceType" in params) body.append(prefix+"SourceType", (params["SourceType"] ?? '').toString()); - if (params["EventCategories"]) qsP.appendList(body, prefix+"EventCategories", params["EventCategories"], {"entryPrefix":".EventCategory."}) - if ("Enabled" in params) body.append(prefix+"Enabled", (params["Enabled"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "ModifyEventSubscription", - }); - const xml = xmlP.readXmlResult(await resp.text(), "ModifyEventSubscriptionResult"); - return { - EventSubscription: xml.first("EventSubscription", false, EventSubscription_Parse), - }; - } - - async modifyOptionGroup( - {abortSignal, ...params}: RequestConfig & s.ModifyOptionGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - if (params["OptionsToInclude"]) qsP.appendList(body, prefix+"OptionsToInclude", params["OptionsToInclude"], {"appender":OptionConfiguration_Serialize,"entryPrefix":".OptionConfiguration."}) - if (params["OptionsToRemove"]) qsP.appendList(body, prefix+"OptionsToRemove", params["OptionsToRemove"], {"entryPrefix":".member."}) - if ("ApplyImmediately" in params) body.append(prefix+"ApplyImmediately", (params["ApplyImmediately"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "ModifyOptionGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "ModifyOptionGroupResult"); - return { - OptionGroup: xml.first("OptionGroup", false, OptionGroup_Parse), - }; - } - - async promoteReadReplica( - {abortSignal, ...params}: RequestConfig & s.PromoteReadReplicaMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - if ("BackupRetentionPeriod" in params) body.append(prefix+"BackupRetentionPeriod", (params["BackupRetentionPeriod"] ?? '').toString()); - if ("PreferredBackupWindow" in params) body.append(prefix+"PreferredBackupWindow", (params["PreferredBackupWindow"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "PromoteReadReplica", - }); - const xml = xmlP.readXmlResult(await resp.text(), "PromoteReadReplicaResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async purchaseReservedDBInstancesOffering( - {abortSignal, ...params}: RequestConfig & s.PurchaseReservedDBInstancesOfferingMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"ReservedDBInstancesOfferingId", (params["ReservedDBInstancesOfferingId"] ?? '').toString()); - if ("ReservedDBInstanceId" in params) body.append(prefix+"ReservedDBInstanceId", (params["ReservedDBInstanceId"] ?? '').toString()); - if ("DBInstanceCount" in params) body.append(prefix+"DBInstanceCount", (params["DBInstanceCount"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "PurchaseReservedDBInstancesOffering", - }); - const xml = xmlP.readXmlResult(await resp.text(), "PurchaseReservedDBInstancesOfferingResult"); - return { - ReservedDBInstance: xml.first("ReservedDBInstance", false, ReservedDBInstance_Parse), - }; - } - - async rebootDBInstance( - {abortSignal, ...params}: RequestConfig & s.RebootDBInstanceMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - if ("ForceFailover" in params) body.append(prefix+"ForceFailover", (params["ForceFailover"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "RebootDBInstance", - }); - const xml = xmlP.readXmlResult(await resp.text(), "RebootDBInstanceResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async removeSourceIdentifierFromSubscription( - {abortSignal, ...params}: RequestConfig & s.RemoveSourceIdentifierFromSubscriptionMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SubscriptionName", (params["SubscriptionName"] ?? '').toString()); - body.append(prefix+"SourceIdentifier", (params["SourceIdentifier"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "RemoveSourceIdentifierFromSubscription", - }); - const xml = xmlP.readXmlResult(await resp.text(), "RemoveSourceIdentifierFromSubscriptionResult"); - return { - EventSubscription: xml.first("EventSubscription", false, EventSubscription_Parse), - }; - } - - async removeTagsFromResource( - {abortSignal, ...params}: RequestConfig & s.RemoveTagsFromResourceMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"ResourceName", (params["ResourceName"] ?? '').toString()); - if (params["TagKeys"]) qsP.appendList(body, prefix+"TagKeys", params["TagKeys"], {"entryPrefix":".member."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "RemoveTagsFromResource", - }); - await resp.arrayBuffer(); // consume body without use - } - - async resetDBParameterGroup( - {abortSignal, ...params}: RequestConfig & s.ResetDBParameterGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - if ("ResetAllParameters" in params) body.append(prefix+"ResetAllParameters", (params["ResetAllParameters"] ?? '').toString()); - if (params["Parameters"]) qsP.appendList(body, prefix+"Parameters", params["Parameters"], {"appender":Parameter_Serialize,"entryPrefix":".Parameter."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "ResetDBParameterGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "ResetDBParameterGroupResult"); - return xml.strings({ - optional: {"DBParameterGroupName":true}, - }); - } - - async restoreDBInstanceFromDBSnapshot( - {abortSignal, ...params}: RequestConfig & s.RestoreDBInstanceFromDBSnapshotMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - body.append(prefix+"DBSnapshotIdentifier", (params["DBSnapshotIdentifier"] ?? '').toString()); - if ("DBInstanceClass" in params) body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - if ("Port" in params) body.append(prefix+"Port", (params["Port"] ?? '').toString()); - if ("AvailabilityZone" in params) body.append(prefix+"AvailabilityZone", (params["AvailabilityZone"] ?? '').toString()); - if ("DBSubnetGroupName" in params) body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - if ("MultiAZ" in params) body.append(prefix+"MultiAZ", (params["MultiAZ"] ?? '').toString()); - if ("PubliclyAccessible" in params) body.append(prefix+"PubliclyAccessible", (params["PubliclyAccessible"] ?? '').toString()); - if ("AutoMinorVersionUpgrade" in params) body.append(prefix+"AutoMinorVersionUpgrade", (params["AutoMinorVersionUpgrade"] ?? '').toString()); - if ("LicenseModel" in params) body.append(prefix+"LicenseModel", (params["LicenseModel"] ?? '').toString()); - if ("DBName" in params) body.append(prefix+"DBName", (params["DBName"] ?? '').toString()); - if ("Engine" in params) body.append(prefix+"Engine", (params["Engine"] ?? '').toString()); - if ("Iops" in params) body.append(prefix+"Iops", (params["Iops"] ?? '').toString()); - if ("OptionGroupName" in params) body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "RestoreDBInstanceFromDBSnapshot", - }); - const xml = xmlP.readXmlResult(await resp.text(), "RestoreDBInstanceFromDBSnapshotResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async restoreDBInstanceToPointInTime( - {abortSignal, ...params}: RequestConfig & s.RestoreDBInstanceToPointInTimeMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SourceDBInstanceIdentifier", (params["SourceDBInstanceIdentifier"] ?? '').toString()); - body.append(prefix+"TargetDBInstanceIdentifier", (params["TargetDBInstanceIdentifier"] ?? '').toString()); - if ("RestoreTime" in params) body.append(prefix+"RestoreTime", qsP.encodeDate_iso8601(params["RestoreTime"])); - if ("UseLatestRestorableTime" in params) body.append(prefix+"UseLatestRestorableTime", (params["UseLatestRestorableTime"] ?? '').toString()); - if ("DBInstanceClass" in params) body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - if ("Port" in params) body.append(prefix+"Port", (params["Port"] ?? '').toString()); - if ("AvailabilityZone" in params) body.append(prefix+"AvailabilityZone", (params["AvailabilityZone"] ?? '').toString()); - if ("DBSubnetGroupName" in params) body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - if ("MultiAZ" in params) body.append(prefix+"MultiAZ", (params["MultiAZ"] ?? '').toString()); - if ("PubliclyAccessible" in params) body.append(prefix+"PubliclyAccessible", (params["PubliclyAccessible"] ?? '').toString()); - if ("AutoMinorVersionUpgrade" in params) body.append(prefix+"AutoMinorVersionUpgrade", (params["AutoMinorVersionUpgrade"] ?? '').toString()); - if ("LicenseModel" in params) body.append(prefix+"LicenseModel", (params["LicenseModel"] ?? '').toString()); - if ("DBName" in params) body.append(prefix+"DBName", (params["DBName"] ?? '').toString()); - if ("Engine" in params) body.append(prefix+"Engine", (params["Engine"] ?? '').toString()); - if ("Iops" in params) body.append(prefix+"Iops", (params["Iops"] ?? '').toString()); - if ("OptionGroupName" in params) body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "RestoreDBInstanceToPointInTime", - }); - const xml = xmlP.readXmlResult(await resp.text(), "RestoreDBInstanceToPointInTimeResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async revokeDBSecurityGroupIngress( - {abortSignal, ...params}: RequestConfig & s.RevokeDBSecurityGroupIngressMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSecurityGroupName", (params["DBSecurityGroupName"] ?? '').toString()); - if ("CIDRIP" in params) body.append(prefix+"CIDRIP", (params["CIDRIP"] ?? '').toString()); - if ("EC2SecurityGroupName" in params) body.append(prefix+"EC2SecurityGroupName", (params["EC2SecurityGroupName"] ?? '').toString()); - if ("EC2SecurityGroupId" in params) body.append(prefix+"EC2SecurityGroupId", (params["EC2SecurityGroupId"] ?? '').toString()); - if ("EC2SecurityGroupOwnerId" in params) body.append(prefix+"EC2SecurityGroupOwnerId", (params["EC2SecurityGroupOwnerId"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "RevokeDBSecurityGroupIngress", - }); - const xml = xmlP.readXmlResult(await resp.text(), "RevokeDBSecurityGroupIngressResult"); - return { - DBSecurityGroup: xml.first("DBSecurityGroup", false, DBSecurityGroup_Parse), - }; - } - -} - -function Tag_Serialize(body: URLSearchParams, prefix: string, params: s.Tag) { - if ("Key" in params) body.append(prefix+".Key", (params["Key"] ?? '').toString()); - if ("Value" in params) body.append(prefix+".Value", (params["Value"] ?? '').toString()); -} -function Tag_Parse(node: xmlP.XmlNode): s.Tag { - return node.strings({ - optional: {"Key":true,"Value":true}, - }); -} - -function Parameter_Serialize(body: URLSearchParams, prefix: string, params: s.Parameter) { - if ("ParameterName" in params) body.append(prefix+".ParameterName", (params["ParameterName"] ?? '').toString()); - if ("ParameterValue" in params) body.append(prefix+".ParameterValue", (params["ParameterValue"] ?? '').toString()); - if ("Description" in params) body.append(prefix+".Description", (params["Description"] ?? '').toString()); - if ("Source" in params) body.append(prefix+".Source", (params["Source"] ?? '').toString()); - if ("ApplyType" in params) body.append(prefix+".ApplyType", (params["ApplyType"] ?? '').toString()); - if ("DataType" in params) body.append(prefix+".DataType", (params["DataType"] ?? '').toString()); - if ("AllowedValues" in params) body.append(prefix+".AllowedValues", (params["AllowedValues"] ?? '').toString()); - if ("IsModifiable" in params) body.append(prefix+".IsModifiable", (params["IsModifiable"] ?? '').toString()); - if ("MinimumEngineVersion" in params) body.append(prefix+".MinimumEngineVersion", (params["MinimumEngineVersion"] ?? '').toString()); - if ("ApplyMethod" in params) body.append(prefix+".ApplyMethod", (params["ApplyMethod"] ?? '').toString()); -} -function Parameter_Parse(node: xmlP.XmlNode): s.Parameter { - return { - ...node.strings({ - optional: {"ParameterName":true,"ParameterValue":true,"Description":true,"Source":true,"ApplyType":true,"DataType":true,"AllowedValues":true,"MinimumEngineVersion":true}, - }), - IsModifiable: node.first("IsModifiable", false, x => x.content === 'true'), - ApplyMethod: node.first("ApplyMethod", false, x => (x.content ?? '') as s.ApplyMethod), - }; -} - -function OptionConfiguration_Serialize(body: URLSearchParams, prefix: string, params: s.OptionConfiguration) { - body.append(prefix+".OptionName", (params["OptionName"] ?? '').toString()); - if ("Port" in params) body.append(prefix+".Port", (params["Port"] ?? '').toString()); - if (params["DBSecurityGroupMemberships"]) qsP.appendList(body, prefix+".DBSecurityGroupMemberships", params["DBSecurityGroupMemberships"], {"entryPrefix":".DBSecurityGroupName."}) - if (params["VpcSecurityGroupMemberships"]) qsP.appendList(body, prefix+".VpcSecurityGroupMemberships", params["VpcSecurityGroupMemberships"], {"entryPrefix":".VpcSecurityGroupId."}) -} - -function EventSubscription_Parse(node: xmlP.XmlNode): s.EventSubscription { - return { - ...node.strings({ - optional: {"Id":true,"CustomerAwsId":true,"CustSubscriptionId":true,"SnsTopicArn":true,"Status":true,"SubscriptionCreationTime":true,"SourceType":true}, - }), - SourceIdsList: node.getList("SourceIdsList", "SourceId").map(x => x.content ?? ''), - EventCategoriesList: node.getList("EventCategoriesList", "EventCategory").map(x => x.content ?? ''), - Enabled: node.first("Enabled", false, x => x.content === 'true'), - }; -} - -function DBSecurityGroup_Parse(node: xmlP.XmlNode): s.DBSecurityGroup { - return { - ...node.strings({ - optional: {"OwnerId":true,"DBSecurityGroupName":true,"DBSecurityGroupDescription":true,"VpcId":true}, - }), - EC2SecurityGroups: node.getList("EC2SecurityGroups", "EC2SecurityGroup").map(EC2SecurityGroup_Parse), - IPRanges: node.getList("IPRanges", "IPRange").map(IPRange_Parse), - }; -} - -function EC2SecurityGroup_Parse(node: xmlP.XmlNode): s.EC2SecurityGroup { - return node.strings({ - optional: {"Status":true,"EC2SecurityGroupName":true,"EC2SecurityGroupId":true,"EC2SecurityGroupOwnerId":true}, - }); -} - -function IPRange_Parse(node: xmlP.XmlNode): s.IPRange { - return node.strings({ - optional: {"Status":true,"CIDRIP":true}, - }); -} - -function DBSnapshot_Parse(node: xmlP.XmlNode): s.DBSnapshot { - return { - ...node.strings({ - optional: {"DBSnapshotIdentifier":true,"DBInstanceIdentifier":true,"Engine":true,"Status":true,"AvailabilityZone":true,"VpcId":true,"MasterUsername":true,"EngineVersion":true,"LicenseModel":true,"SnapshotType":true}, - }), - SnapshotCreateTime: node.first("SnapshotCreateTime", false, x => xmlP.parseTimestamp(x.content)), - AllocatedStorage: node.first("AllocatedStorage", false, x => parseInt(x.content ?? '0')), - Port: node.first("Port", false, x => parseInt(x.content ?? '0')), - InstanceCreateTime: node.first("InstanceCreateTime", false, x => xmlP.parseTimestamp(x.content)), - Iops: node.first("Iops", false, x => parseInt(x.content ?? '0')), - }; -} - -function DBInstance_Parse(node: xmlP.XmlNode): s.DBInstance { - return { - ...node.strings({ - optional: {"DBInstanceIdentifier":true,"DBInstanceClass":true,"Engine":true,"DBInstanceStatus":true,"MasterUsername":true,"DBName":true,"PreferredBackupWindow":true,"AvailabilityZone":true,"PreferredMaintenanceWindow":true,"EngineVersion":true,"ReadReplicaSourceDBInstanceIdentifier":true,"LicenseModel":true,"CharacterSetName":true,"SecondaryAvailabilityZone":true}, - }), - Endpoint: node.first("Endpoint", false, Endpoint_Parse), - AllocatedStorage: node.first("AllocatedStorage", false, x => parseInt(x.content ?? '0')), - InstanceCreateTime: node.first("InstanceCreateTime", false, x => xmlP.parseTimestamp(x.content)), - BackupRetentionPeriod: node.first("BackupRetentionPeriod", false, x => parseInt(x.content ?? '0')), - DBSecurityGroups: node.getList("DBSecurityGroups", "DBSecurityGroup").map(DBSecurityGroupMembership_Parse), - VpcSecurityGroups: node.getList("VpcSecurityGroups", "VpcSecurityGroupMembership").map(VpcSecurityGroupMembership_Parse), - DBParameterGroups: node.getList("DBParameterGroups", "DBParameterGroup").map(DBParameterGroupStatus_Parse), - DBSubnetGroup: node.first("DBSubnetGroup", false, DBSubnetGroup_Parse), - PendingModifiedValues: node.first("PendingModifiedValues", false, PendingModifiedValues_Parse), - LatestRestorableTime: node.first("LatestRestorableTime", false, x => xmlP.parseTimestamp(x.content)), - MultiAZ: node.first("MultiAZ", false, x => x.content === 'true'), - AutoMinorVersionUpgrade: node.first("AutoMinorVersionUpgrade", false, x => x.content === 'true'), - ReadReplicaDBInstanceIdentifiers: node.getList("ReadReplicaDBInstanceIdentifiers", "ReadReplicaDBInstanceIdentifier").map(x => x.content ?? ''), - Iops: node.first("Iops", false, x => parseInt(x.content ?? '0')), - OptionGroupMembership: node.first("OptionGroupMembership", false, OptionGroupMembership_Parse), - PubliclyAccessible: node.first("PubliclyAccessible", false, x => x.content === 'true'), - }; -} - -function Endpoint_Parse(node: xmlP.XmlNode): s.Endpoint { - return { - ...node.strings({ - optional: {"Address":true}, - }), - Port: node.first("Port", false, x => parseInt(x.content ?? '0')), - }; -} - -function DBSecurityGroupMembership_Parse(node: xmlP.XmlNode): s.DBSecurityGroupMembership { - return node.strings({ - optional: {"DBSecurityGroupName":true,"Status":true}, - }); -} - -function VpcSecurityGroupMembership_Parse(node: xmlP.XmlNode): s.VpcSecurityGroupMembership { - return node.strings({ - optional: {"VpcSecurityGroupId":true,"Status":true}, - }); -} - -function DBParameterGroupStatus_Parse(node: xmlP.XmlNode): s.DBParameterGroupStatus { - return node.strings({ - optional: {"DBParameterGroupName":true,"ParameterApplyStatus":true}, - }); -} - -function DBSubnetGroup_Parse(node: xmlP.XmlNode): s.DBSubnetGroup { - return { - ...node.strings({ - optional: {"DBSubnetGroupName":true,"DBSubnetGroupDescription":true,"VpcId":true,"SubnetGroupStatus":true}, - }), - Subnets: node.getList("Subnets", "Subnet").map(Subnet_Parse), - }; -} - -function Subnet_Parse(node: xmlP.XmlNode): s.Subnet { - return { - ...node.strings({ - optional: {"SubnetIdentifier":true,"SubnetStatus":true}, - }), - SubnetAvailabilityZone: node.first("SubnetAvailabilityZone", false, AvailabilityZone_Parse), - }; -} - -function AvailabilityZone_Parse(node: xmlP.XmlNode): s.AvailabilityZone { - return { - ...node.strings({ - optional: {"Name":true}, - }), - ProvisionedIopsCapable: node.first("ProvisionedIopsCapable", false, x => x.content === 'true'), - }; -} - -function PendingModifiedValues_Parse(node: xmlP.XmlNode): s.PendingModifiedValues { - return { - ...node.strings({ - optional: {"DBInstanceClass":true,"MasterUserPassword":true,"EngineVersion":true,"DBInstanceIdentifier":true}, - }), - AllocatedStorage: node.first("AllocatedStorage", false, x => parseInt(x.content ?? '0')), - Port: node.first("Port", false, x => parseInt(x.content ?? '0')), - BackupRetentionPeriod: node.first("BackupRetentionPeriod", false, x => parseInt(x.content ?? '0')), - MultiAZ: node.first("MultiAZ", false, x => x.content === 'true'), - Iops: node.first("Iops", false, x => parseInt(x.content ?? '0')), - }; -} - -function OptionGroupMembership_Parse(node: xmlP.XmlNode): s.OptionGroupMembership { - return node.strings({ - optional: {"OptionGroupName":true,"Status":true}, - }); -} - -function DBParameterGroup_Parse(node: xmlP.XmlNode): s.DBParameterGroup { - return node.strings({ - optional: {"DBParameterGroupName":true,"DBParameterGroupFamily":true,"Description":true}, - }); -} - -function OptionGroup_Parse(node: xmlP.XmlNode): s.OptionGroup { - return { - ...node.strings({ - optional: {"OptionGroupName":true,"OptionGroupDescription":true,"EngineName":true,"MajorEngineVersion":true,"VpcId":true}, - }), - Options: node.getList("Options", "Option").map(Option_Parse), - AllowsVpcAndNonVpcInstanceMemberships: node.first("AllowsVpcAndNonVpcInstanceMemberships", false, x => x.content === 'true'), - }; -} - -function Option_Parse(node: xmlP.XmlNode): s.Option { - return { - ...node.strings({ - optional: {"OptionName":true,"OptionDescription":true}, - }), - Port: node.first("Port", false, x => parseInt(x.content ?? '0')), - DBSecurityGroupMemberships: node.getList("DBSecurityGroupMemberships", "DBSecurityGroup").map(DBSecurityGroupMembership_Parse), - VpcSecurityGroupMemberships: node.getList("VpcSecurityGroupMemberships", "VpcSecurityGroupMembership").map(VpcSecurityGroupMembership_Parse), - }; -} - -function DBEngineVersion_Parse(node: xmlP.XmlNode): s.DBEngineVersion { - return { - ...node.strings({ - optional: {"Engine":true,"EngineVersion":true,"DBParameterGroupFamily":true,"DBEngineDescription":true,"DBEngineVersionDescription":true}, - }), - DefaultCharacterSet: node.first("DefaultCharacterSet", false, CharacterSet_Parse), - SupportedCharacterSets: node.getList("SupportedCharacterSets", "CharacterSet").map(CharacterSet_Parse), - }; -} - -function CharacterSet_Parse(node: xmlP.XmlNode): s.CharacterSet { - return node.strings({ - optional: {"CharacterSetName":true,"CharacterSetDescription":true}, - }); -} - -function EngineDefaults_Parse(node: xmlP.XmlNode): s.EngineDefaults { - return { - ...node.strings({ - optional: {"DBParameterGroupFamily":true,"Marker":true}, - }), - Parameters: node.getList("Parameters", "Parameter").map(Parameter_Parse), - }; -} - -function EventCategoriesMap_Parse(node: xmlP.XmlNode): s.EventCategoriesMap { - return { - ...node.strings({ - optional: {"SourceType":true}, - }), - EventCategories: node.getList("EventCategories", "EventCategory").map(x => x.content ?? ''), - }; -} - -function Event_Parse(node: xmlP.XmlNode): s.Event { - return { - ...node.strings({ - optional: {"SourceIdentifier":true,"Message":true}, - }), - SourceType: node.first("SourceType", false, x => (x.content ?? '') as s.SourceType), - EventCategories: node.getList("EventCategories", "EventCategory").map(x => x.content ?? ''), - Date: node.first("Date", false, x => xmlP.parseTimestamp(x.content)), - }; -} - -function OptionGroupOption_Parse(node: xmlP.XmlNode): s.OptionGroupOption { - return { - ...node.strings({ - optional: {"Name":true,"Description":true,"EngineName":true,"MajorEngineVersion":true,"MinimumRequiredMinorEngineVersion":true}, - }), - PortRequired: node.first("PortRequired", false, x => x.content === 'true'), - DefaultPort: node.first("DefaultPort", false, x => parseInt(x.content ?? '0')), - OptionsDependedOn: node.getList("OptionsDependedOn", "OptionName").map(x => x.content ?? ''), - }; -} - -function OrderableDBInstanceOption_Parse(node: xmlP.XmlNode): s.OrderableDBInstanceOption { - return { - ...node.strings({ - optional: {"Engine":true,"EngineVersion":true,"DBInstanceClass":true,"LicenseModel":true}, - }), - AvailabilityZones: node.getList("AvailabilityZones", "AvailabilityZone").map(AvailabilityZone_Parse), - MultiAZCapable: node.first("MultiAZCapable", false, x => x.content === 'true'), - ReadReplicaCapable: node.first("ReadReplicaCapable", false, x => x.content === 'true'), - Vpc: node.first("Vpc", false, x => x.content === 'true'), - }; -} - -function ReservedDBInstance_Parse(node: xmlP.XmlNode): s.ReservedDBInstance { - return { - ...node.strings({ - optional: {"ReservedDBInstanceId":true,"ReservedDBInstancesOfferingId":true,"DBInstanceClass":true,"CurrencyCode":true,"ProductDescription":true,"OfferingType":true,"State":true}, - }), - StartTime: node.first("StartTime", false, x => xmlP.parseTimestamp(x.content)), - Duration: node.first("Duration", false, x => parseInt(x.content ?? '0')), - FixedPrice: node.first("FixedPrice", false, x => parseFloat(x.content ?? '0')), - UsagePrice: node.first("UsagePrice", false, x => parseFloat(x.content ?? '0')), - DBInstanceCount: node.first("DBInstanceCount", false, x => parseInt(x.content ?? '0')), - MultiAZ: node.first("MultiAZ", false, x => x.content === 'true'), - RecurringCharges: node.getList("RecurringCharges", "RecurringCharge").map(RecurringCharge_Parse), - }; -} - -function RecurringCharge_Parse(node: xmlP.XmlNode): s.RecurringCharge { - return { - ...node.strings({ - optional: {"RecurringChargeFrequency":true}, - }), - RecurringChargeAmount: node.first("RecurringChargeAmount", false, x => parseFloat(x.content ?? '0')), - }; -} - -function ReservedDBInstancesOffering_Parse(node: xmlP.XmlNode): s.ReservedDBInstancesOffering { - return { - ...node.strings({ - optional: {"ReservedDBInstancesOfferingId":true,"DBInstanceClass":true,"CurrencyCode":true,"ProductDescription":true,"OfferingType":true}, - }), - Duration: node.first("Duration", false, x => parseInt(x.content ?? '0')), - FixedPrice: node.first("FixedPrice", false, x => parseFloat(x.content ?? '0')), - UsagePrice: node.first("UsagePrice", false, x => parseFloat(x.content ?? '0')), - MultiAZ: node.first("MultiAZ", false, x => x.content === 'true'), - RecurringCharges: node.getList("RecurringCharges", "RecurringCharge").map(RecurringCharge_Parse), - }; -} diff --git a/lib/services/rds@2013-01-10/structs.ts b/lib/services/rds@2013-01-10/structs.ts deleted file mode 100644 index e80d9ae0..00000000 --- a/lib/services/rds@2013-01-10/structs.ts +++ /dev/null @@ -1,990 +0,0 @@ -// Autogenerated API structures for: Amazon Relational Database Service - -import * as cmnP from "../../encoding/common.ts"; - -// refs: 1 - tags: named, input -export interface AddSourceIdentifierToSubscriptionMessage { - SubscriptionName: string; - SourceIdentifier: string; -} - -// refs: 1 - tags: named, input -export interface AddTagsToResourceMessage { - ResourceName: string; - Tags: Tag[]; -} - -// refs: 1 - tags: named, input -export interface AuthorizeDBSecurityGroupIngressMessage { - DBSecurityGroupName: string; - CIDRIP?: string | null; - EC2SecurityGroupName?: string | null; - EC2SecurityGroupId?: string | null; - EC2SecurityGroupOwnerId?: string | null; -} - -// refs: 1 - tags: named, input -export interface CopyDBSnapshotMessage { - SourceDBSnapshotIdentifier: string; - TargetDBSnapshotIdentifier: string; -} - -// refs: 1 - tags: named, input -export interface CreateDBInstanceMessage { - DBName?: string | null; - DBInstanceIdentifier: string; - AllocatedStorage: number; - DBInstanceClass: string; - Engine: string; - MasterUsername: string; - MasterUserPassword: string; - DBSecurityGroups?: string[] | null; - VpcSecurityGroupIds?: string[] | null; - AvailabilityZone?: string | null; - DBSubnetGroupName?: string | null; - PreferredMaintenanceWindow?: string | null; - DBParameterGroupName?: string | null; - BackupRetentionPeriod?: number | null; - PreferredBackupWindow?: string | null; - Port?: number | null; - MultiAZ?: boolean | null; - EngineVersion?: string | null; - AutoMinorVersionUpgrade?: boolean | null; - LicenseModel?: string | null; - Iops?: number | null; - OptionGroupName?: string | null; - CharacterSetName?: string | null; - PubliclyAccessible?: boolean | null; -} - -// refs: 1 - tags: named, input -export interface CreateDBInstanceReadReplicaMessage { - DBInstanceIdentifier: string; - SourceDBInstanceIdentifier: string; - DBInstanceClass?: string | null; - AvailabilityZone?: string | null; - Port?: number | null; - AutoMinorVersionUpgrade?: boolean | null; - Iops?: number | null; - OptionGroupName?: string | null; - PubliclyAccessible?: boolean | null; -} - -// refs: 1 - tags: named, input -export interface CreateDBParameterGroupMessage { - DBParameterGroupName: string; - DBParameterGroupFamily: string; - Description: string; -} - -// refs: 1 - tags: named, input -export interface CreateDBSecurityGroupMessage { - DBSecurityGroupName: string; - DBSecurityGroupDescription: string; -} - -// refs: 1 - tags: named, input -export interface CreateDBSnapshotMessage { - DBSnapshotIdentifier: string; - DBInstanceIdentifier: string; -} - -// refs: 1 - tags: named, input -export interface CreateDBSubnetGroupMessage { - DBSubnetGroupName: string; - DBSubnetGroupDescription: string; - SubnetIds: string[]; -} - -// refs: 1 - tags: named, input -export interface CreateEventSubscriptionMessage { - SubscriptionName: string; - SnsTopicArn: string; - SourceType?: string | null; - EventCategories?: string[] | null; - SourceIds?: string[] | null; - Enabled?: boolean | null; -} - -// refs: 1 - tags: named, input -export interface CreateOptionGroupMessage { - OptionGroupName: string; - EngineName: string; - MajorEngineVersion: string; - OptionGroupDescription: string; -} - -// refs: 1 - tags: named, input -export interface DeleteDBInstanceMessage { - DBInstanceIdentifier: string; - SkipFinalSnapshot?: boolean | null; - FinalDBSnapshotIdentifier?: string | null; -} - -// refs: 1 - tags: named, input -export interface DeleteDBParameterGroupMessage { - DBParameterGroupName: string; -} - -// refs: 1 - tags: named, input -export interface DeleteDBSecurityGroupMessage { - DBSecurityGroupName: string; -} - -// refs: 1 - tags: named, input -export interface DeleteDBSnapshotMessage { - DBSnapshotIdentifier: string; -} - -// refs: 1 - tags: named, input -export interface DeleteDBSubnetGroupMessage { - DBSubnetGroupName: string; -} - -// refs: 1 - tags: named, input -export interface DeleteEventSubscriptionMessage { - SubscriptionName: string; -} - -// refs: 1 - tags: named, input -export interface DeleteOptionGroupMessage { - OptionGroupName: string; -} - -// refs: 1 - tags: named, input -export interface DescribeDBEngineVersionsMessage { - Engine?: string | null; - EngineVersion?: string | null; - DBParameterGroupFamily?: string | null; - MaxRecords?: number | null; - Marker?: string | null; - DefaultOnly?: boolean | null; - ListSupportedCharacterSets?: boolean | null; -} - -// refs: 1 - tags: named, input -export interface DescribeDBInstancesMessage { - DBInstanceIdentifier?: string | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeDBParameterGroupsMessage { - DBParameterGroupName?: string | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeDBParametersMessage { - DBParameterGroupName: string; - Source?: string | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeDBSecurityGroupsMessage { - DBSecurityGroupName?: string | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeDBSnapshotsMessage { - DBInstanceIdentifier?: string | null; - DBSnapshotIdentifier?: string | null; - SnapshotType?: string | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeDBSubnetGroupsMessage { - DBSubnetGroupName?: string | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeEngineDefaultParametersMessage { - DBParameterGroupFamily: string; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeEventCategoriesMessage { - SourceType?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeEventSubscriptionsMessage { - SubscriptionName?: string | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeEventsMessage { - SourceIdentifier?: string | null; - SourceType?: SourceType | null; - StartTime?: Date | number | null; - EndTime?: Date | number | null; - Duration?: number | null; - EventCategories?: string[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeOptionGroupOptionsMessage { - EngineName: string; - MajorEngineVersion?: string | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeOptionGroupsMessage { - OptionGroupName?: string | null; - Marker?: string | null; - MaxRecords?: number | null; - EngineName?: string | null; - MajorEngineVersion?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeOrderableDBInstanceOptionsMessage { - Engine: string; - EngineVersion?: string | null; - DBInstanceClass?: string | null; - LicenseModel?: string | null; - Vpc?: boolean | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeReservedDBInstancesMessage { - ReservedDBInstanceId?: string | null; - ReservedDBInstancesOfferingId?: string | null; - DBInstanceClass?: string | null; - Duration?: string | null; - ProductDescription?: string | null; - OfferingType?: string | null; - MultiAZ?: boolean | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeReservedDBInstancesOfferingsMessage { - ReservedDBInstancesOfferingId?: string | null; - DBInstanceClass?: string | null; - Duration?: string | null; - ProductDescription?: string | null; - OfferingType?: string | null; - MultiAZ?: boolean | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface ListTagsForResourceMessage { - ResourceName: string; -} - -// refs: 1 - tags: named, input -export interface ModifyDBInstanceMessage { - DBInstanceIdentifier: string; - AllocatedStorage?: number | null; - DBInstanceClass?: string | null; - DBSecurityGroups?: string[] | null; - VpcSecurityGroupIds?: string[] | null; - ApplyImmediately?: boolean | null; - MasterUserPassword?: string | null; - DBParameterGroupName?: string | null; - BackupRetentionPeriod?: number | null; - PreferredBackupWindow?: string | null; - PreferredMaintenanceWindow?: string | null; - MultiAZ?: boolean | null; - EngineVersion?: string | null; - AllowMajorVersionUpgrade?: boolean | null; - AutoMinorVersionUpgrade?: boolean | null; - Iops?: number | null; - OptionGroupName?: string | null; - NewDBInstanceIdentifier?: string | null; -} - -// refs: 1 - tags: named, input -export interface ModifyDBParameterGroupMessage { - DBParameterGroupName: string; - Parameters: Parameter[]; -} - -// refs: 1 - tags: named, input -export interface ModifyDBSubnetGroupMessage { - DBSubnetGroupName: string; - DBSubnetGroupDescription?: string | null; - SubnetIds: string[]; -} - -// refs: 1 - tags: named, input -export interface ModifyEventSubscriptionMessage { - SubscriptionName: string; - SnsTopicArn?: string | null; - SourceType?: string | null; - EventCategories?: string[] | null; - Enabled?: boolean | null; -} - -// refs: 1 - tags: named, input -export interface ModifyOptionGroupMessage { - OptionGroupName: string; - OptionsToInclude?: OptionConfiguration[] | null; - OptionsToRemove?: string[] | null; - ApplyImmediately?: boolean | null; -} - -// refs: 1 - tags: named, input -export interface PromoteReadReplicaMessage { - DBInstanceIdentifier: string; - BackupRetentionPeriod?: number | null; - PreferredBackupWindow?: string | null; -} - -// refs: 1 - tags: named, input -export interface PurchaseReservedDBInstancesOfferingMessage { - ReservedDBInstancesOfferingId: string; - ReservedDBInstanceId?: string | null; - DBInstanceCount?: number | null; -} - -// refs: 1 - tags: named, input -export interface RebootDBInstanceMessage { - DBInstanceIdentifier: string; - ForceFailover?: boolean | null; -} - -// refs: 1 - tags: named, input -export interface RemoveSourceIdentifierFromSubscriptionMessage { - SubscriptionName: string; - SourceIdentifier: string; -} - -// refs: 1 - tags: named, input -export interface RemoveTagsFromResourceMessage { - ResourceName: string; - TagKeys: string[]; -} - -// refs: 1 - tags: named, input -export interface ResetDBParameterGroupMessage { - DBParameterGroupName: string; - ResetAllParameters?: boolean | null; - Parameters?: Parameter[] | null; -} - -// refs: 1 - tags: named, input -export interface RestoreDBInstanceFromDBSnapshotMessage { - DBInstanceIdentifier: string; - DBSnapshotIdentifier: string; - DBInstanceClass?: string | null; - Port?: number | null; - AvailabilityZone?: string | null; - DBSubnetGroupName?: string | null; - MultiAZ?: boolean | null; - PubliclyAccessible?: boolean | null; - AutoMinorVersionUpgrade?: boolean | null; - LicenseModel?: string | null; - DBName?: string | null; - Engine?: string | null; - Iops?: number | null; - OptionGroupName?: string | null; -} - -// refs: 1 - tags: named, input -export interface RestoreDBInstanceToPointInTimeMessage { - SourceDBInstanceIdentifier: string; - TargetDBInstanceIdentifier: string; - RestoreTime?: Date | number | null; - UseLatestRestorableTime?: boolean | null; - DBInstanceClass?: string | null; - Port?: number | null; - AvailabilityZone?: string | null; - DBSubnetGroupName?: string | null; - MultiAZ?: boolean | null; - PubliclyAccessible?: boolean | null; - AutoMinorVersionUpgrade?: boolean | null; - LicenseModel?: string | null; - DBName?: string | null; - Engine?: string | null; - Iops?: number | null; - OptionGroupName?: string | null; -} - -// refs: 1 - tags: named, input -export interface RevokeDBSecurityGroupIngressMessage { - DBSecurityGroupName: string; - CIDRIP?: string | null; - EC2SecurityGroupName?: string | null; - EC2SecurityGroupId?: string | null; - EC2SecurityGroupOwnerId?: string | null; -} - -// refs: 1 - tags: named, output -export interface AddSourceIdentifierToSubscriptionResult { - EventSubscription?: EventSubscription | null; -} - -// refs: 1 - tags: named, output -export interface AuthorizeDBSecurityGroupIngressResult { - DBSecurityGroup?: DBSecurityGroup | null; -} - -// refs: 1 - tags: named, output -export interface CopyDBSnapshotResult { - DBSnapshot?: DBSnapshot | null; -} - -// refs: 1 - tags: named, output -export interface CreateDBInstanceResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface CreateDBInstanceReadReplicaResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface CreateDBParameterGroupResult { - DBParameterGroup?: DBParameterGroup | null; -} - -// refs: 1 - tags: named, output -export interface CreateDBSecurityGroupResult { - DBSecurityGroup?: DBSecurityGroup | null; -} - -// refs: 1 - tags: named, output -export interface CreateDBSnapshotResult { - DBSnapshot?: DBSnapshot | null; -} - -// refs: 1 - tags: named, output -export interface CreateDBSubnetGroupResult { - DBSubnetGroup?: DBSubnetGroup | null; -} - -// refs: 1 - tags: named, output -export interface CreateEventSubscriptionResult { - EventSubscription?: EventSubscription | null; -} - -// refs: 1 - tags: named, output -export interface CreateOptionGroupResult { - OptionGroup?: OptionGroup | null; -} - -// refs: 1 - tags: named, output -export interface DeleteDBInstanceResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface DeleteDBSnapshotResult { - DBSnapshot?: DBSnapshot | null; -} - -// refs: 1 - tags: named, output -export interface DeleteEventSubscriptionResult { - EventSubscription?: EventSubscription | null; -} - -// refs: 1 - tags: named, output -export interface DBEngineVersionMessage { - Marker?: string | null; - DBEngineVersions: DBEngineVersion[]; -} - -// refs: 1 - tags: named, output -export interface DBInstanceMessage { - Marker?: string | null; - DBInstances: DBInstance[]; -} - -// refs: 1 - tags: named, output -export interface DBParameterGroupsMessage { - Marker?: string | null; - DBParameterGroups: DBParameterGroup[]; -} - -// refs: 1 - tags: named, output -export interface DBParameterGroupDetails { - Parameters: Parameter[]; - Marker?: string | null; -} - -// refs: 1 - tags: named, output -export interface DBSecurityGroupMessage { - Marker?: string | null; - DBSecurityGroups: DBSecurityGroup[]; -} - -// refs: 1 - tags: named, output -export interface DBSnapshotMessage { - Marker?: string | null; - DBSnapshots: DBSnapshot[]; -} - -// refs: 1 - tags: named, output -export interface DBSubnetGroupMessage { - Marker?: string | null; - DBSubnetGroups: DBSubnetGroup[]; -} - -// refs: 1 - tags: named, output -export interface DescribeEngineDefaultParametersResult { - EngineDefaults?: EngineDefaults | null; -} - -// refs: 1 - tags: named, output -export interface EventCategoriesMessage { - EventCategoriesMapList: EventCategoriesMap[]; -} - -// refs: 1 - tags: named, output -export interface EventSubscriptionsMessage { - Marker?: string | null; - EventSubscriptionsList: EventSubscription[]; -} - -// refs: 1 - tags: named, output -export interface EventsMessage { - Marker?: string | null; - Events: Event[]; -} - -// refs: 1 - tags: named, output -export interface OptionGroupOptionsMessage { - OptionGroupOptions: OptionGroupOption[]; - Marker?: string | null; -} - -// refs: 1 - tags: named, output -export interface OptionGroups { - OptionGroupsList: OptionGroup[]; - Marker?: string | null; -} - -// refs: 1 - tags: named, output -export interface OrderableDBInstanceOptionsMessage { - OrderableDBInstanceOptions: OrderableDBInstanceOption[]; - Marker?: string | null; -} - -// refs: 1 - tags: named, output -export interface ReservedDBInstanceMessage { - Marker?: string | null; - ReservedDBInstances: ReservedDBInstance[]; -} - -// refs: 1 - tags: named, output -export interface ReservedDBInstancesOfferingMessage { - Marker?: string | null; - ReservedDBInstancesOfferings: ReservedDBInstancesOffering[]; -} - -// refs: 1 - tags: named, output -export interface TagListMessage { - TagList: Tag[]; -} - -// refs: 1 - tags: named, output -export interface ModifyDBInstanceResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface DBParameterGroupNameMessage { - DBParameterGroupName?: string | null; -} - -// refs: 1 - tags: named, output -export interface ModifyDBSubnetGroupResult { - DBSubnetGroup?: DBSubnetGroup | null; -} - -// refs: 1 - tags: named, output -export interface ModifyEventSubscriptionResult { - EventSubscription?: EventSubscription | null; -} - -// refs: 1 - tags: named, output -export interface ModifyOptionGroupResult { - OptionGroup?: OptionGroup | null; -} - -// refs: 1 - tags: named, output -export interface PromoteReadReplicaResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface PurchaseReservedDBInstancesOfferingResult { - ReservedDBInstance?: ReservedDBInstance | null; -} - -// refs: 1 - tags: named, output -export interface RebootDBInstanceResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface RemoveSourceIdentifierFromSubscriptionResult { - EventSubscription?: EventSubscription | null; -} - -// refs: 1 - tags: named, output -export interface RestoreDBInstanceFromDBSnapshotResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface RestoreDBInstanceToPointInTimeResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface RevokeDBSecurityGroupIngressResult { - DBSecurityGroup?: DBSecurityGroup | null; -} - -// refs: 2 - tags: input, named, interface, output -export interface Tag { - Key?: string | null; - Value?: string | null; -} - -// refs: 2 - tags: input, named, enum, output -export type SourceType = -| "db-instance" -| "db-parameter-group" -| "db-security-group" -| "db-snapshot" -| cmnP.UnexpectedEnumValue; - -// refs: 4 - tags: input, named, interface, output -export interface Parameter { - ParameterName?: string | null; - ParameterValue?: string | null; - Description?: string | null; - Source?: string | null; - ApplyType?: string | null; - DataType?: string | null; - AllowedValues?: string | null; - IsModifiable?: boolean | null; - MinimumEngineVersion?: string | null; - ApplyMethod?: ApplyMethod | null; -} - -// refs: 4 - tags: input, named, enum, output -export type ApplyMethod = -| "immediate" -| "pending-reboot" -| cmnP.UnexpectedEnumValue; - -// refs: 1 - tags: input, named, interface -export interface OptionConfiguration { - OptionName: string; - Port?: number | null; - DBSecurityGroupMemberships?: string[] | null; - VpcSecurityGroupMemberships?: string[] | null; -} - -// refs: 6 - tags: output, named, interface -export interface EventSubscription { - Id?: string | null; - CustomerAwsId?: string | null; - CustSubscriptionId?: string | null; - SnsTopicArn?: string | null; - Status?: string | null; - SubscriptionCreationTime?: string | null; - SourceType?: string | null; - SourceIdsList: string[]; - EventCategoriesList: string[]; - Enabled?: boolean | null; -} - -// refs: 4 - tags: output, named, interface -export interface DBSecurityGroup { - OwnerId?: string | null; - DBSecurityGroupName?: string | null; - DBSecurityGroupDescription?: string | null; - VpcId?: string | null; - EC2SecurityGroups: EC2SecurityGroup[]; - IPRanges: IPRange[]; -} - -// refs: 4 - tags: output, named, interface -export interface EC2SecurityGroup { - Status?: string | null; - EC2SecurityGroupName?: string | null; - EC2SecurityGroupId?: string | null; - EC2SecurityGroupOwnerId?: string | null; -} - -// refs: 4 - tags: output, named, interface -export interface IPRange { - Status?: string | null; - CIDRIP?: string | null; -} - -// refs: 4 - tags: output, named, interface -export interface DBSnapshot { - DBSnapshotIdentifier?: string | null; - DBInstanceIdentifier?: string | null; - SnapshotCreateTime?: Date | number | null; - Engine?: string | null; - AllocatedStorage?: number | null; - Status?: string | null; - Port?: number | null; - AvailabilityZone?: string | null; - VpcId?: string | null; - InstanceCreateTime?: Date | number | null; - MasterUsername?: string | null; - EngineVersion?: string | null; - LicenseModel?: string | null; - SnapshotType?: string | null; - Iops?: number | null; -} - -// refs: 9 - tags: output, named, interface -export interface DBInstance { - DBInstanceIdentifier?: string | null; - DBInstanceClass?: string | null; - Engine?: string | null; - DBInstanceStatus?: string | null; - MasterUsername?: string | null; - DBName?: string | null; - Endpoint?: Endpoint | null; - AllocatedStorage?: number | null; - InstanceCreateTime?: Date | number | null; - PreferredBackupWindow?: string | null; - BackupRetentionPeriod?: number | null; - DBSecurityGroups: DBSecurityGroupMembership[]; - VpcSecurityGroups: VpcSecurityGroupMembership[]; - DBParameterGroups: DBParameterGroupStatus[]; - AvailabilityZone?: string | null; - DBSubnetGroup?: DBSubnetGroup | null; - PreferredMaintenanceWindow?: string | null; - PendingModifiedValues?: PendingModifiedValues | null; - LatestRestorableTime?: Date | number | null; - MultiAZ?: boolean | null; - EngineVersion?: string | null; - AutoMinorVersionUpgrade?: boolean | null; - ReadReplicaSourceDBInstanceIdentifier?: string | null; - ReadReplicaDBInstanceIdentifiers: string[]; - LicenseModel?: string | null; - Iops?: number | null; - OptionGroupMembership?: OptionGroupMembership | null; - CharacterSetName?: string | null; - SecondaryAvailabilityZone?: string | null; - PubliclyAccessible?: boolean | null; -} - -// refs: 9 - tags: output, named, interface -export interface Endpoint { - Address?: string | null; - Port?: number | null; -} - -// refs: 12 - tags: output, named, interface -export interface DBSecurityGroupMembership { - DBSecurityGroupName?: string | null; - Status?: string | null; -} - -// refs: 12 - tags: output, named, interface -export interface VpcSecurityGroupMembership { - VpcSecurityGroupId?: string | null; - Status?: string | null; -} - -// refs: 9 - tags: output, named, interface -export interface DBParameterGroupStatus { - DBParameterGroupName?: string | null; - ParameterApplyStatus?: string | null; -} - -// refs: 12 - tags: output, named, interface -export interface DBSubnetGroup { - DBSubnetGroupName?: string | null; - DBSubnetGroupDescription?: string | null; - VpcId?: string | null; - SubnetGroupStatus?: string | null; - Subnets: Subnet[]; -} - -// refs: 12 - tags: output, named, interface -export interface Subnet { - SubnetIdentifier?: string | null; - SubnetAvailabilityZone?: AvailabilityZone | null; - SubnetStatus?: string | null; -} - -// refs: 13 - tags: output, named, interface -export interface AvailabilityZone { - Name?: string | null; - ProvisionedIopsCapable?: boolean | null; -} - -// refs: 9 - tags: output, named, interface -export interface PendingModifiedValues { - DBInstanceClass?: string | null; - AllocatedStorage?: number | null; - MasterUserPassword?: string | null; - Port?: number | null; - BackupRetentionPeriod?: number | null; - MultiAZ?: boolean | null; - EngineVersion?: string | null; - Iops?: number | null; - DBInstanceIdentifier?: string | null; -} - -// refs: 9 - tags: output, named, interface -export interface OptionGroupMembership { - OptionGroupName?: string | null; - Status?: string | null; -} - -// refs: 2 - tags: output, named, interface -export interface DBParameterGroup { - DBParameterGroupName?: string | null; - DBParameterGroupFamily?: string | null; - Description?: string | null; -} - -// refs: 3 - tags: output, named, interface -export interface OptionGroup { - OptionGroupName?: string | null; - OptionGroupDescription?: string | null; - EngineName?: string | null; - MajorEngineVersion?: string | null; - Options: Option[]; - AllowsVpcAndNonVpcInstanceMemberships?: boolean | null; - VpcId?: string | null; -} - -// refs: 3 - tags: output, named, interface -export interface Option { - OptionName?: string | null; - OptionDescription?: string | null; - Port?: number | null; - DBSecurityGroupMemberships: DBSecurityGroupMembership[]; - VpcSecurityGroupMemberships: VpcSecurityGroupMembership[]; -} - -// refs: 1 - tags: output, named, interface -export interface DBEngineVersion { - Engine?: string | null; - EngineVersion?: string | null; - DBParameterGroupFamily?: string | null; - DBEngineDescription?: string | null; - DBEngineVersionDescription?: string | null; - DefaultCharacterSet?: CharacterSet | null; - SupportedCharacterSets: CharacterSet[]; -} - -// refs: 2 - tags: output, named, interface -export interface CharacterSet { - CharacterSetName?: string | null; - CharacterSetDescription?: string | null; -} - -// refs: 1 - tags: output, named, interface -export interface EngineDefaults { - DBParameterGroupFamily?: string | null; - Marker?: string | null; - Parameters: Parameter[]; -} - -// refs: 1 - tags: output, named, interface -export interface EventCategoriesMap { - SourceType?: string | null; - EventCategories: string[]; -} - -// refs: 1 - tags: output, named, interface -export interface Event { - SourceIdentifier?: string | null; - SourceType?: SourceType | null; - Message?: string | null; - EventCategories: string[]; - Date?: Date | number | null; -} - -// refs: 1 - tags: output, named, interface -export interface OptionGroupOption { - Name?: string | null; - Description?: string | null; - EngineName?: string | null; - MajorEngineVersion?: string | null; - MinimumRequiredMinorEngineVersion?: string | null; - PortRequired?: boolean | null; - DefaultPort?: number | null; - OptionsDependedOn: string[]; -} - -// refs: 1 - tags: output, named, interface -export interface OrderableDBInstanceOption { - Engine?: string | null; - EngineVersion?: string | null; - DBInstanceClass?: string | null; - LicenseModel?: string | null; - AvailabilityZones: AvailabilityZone[]; - MultiAZCapable?: boolean | null; - ReadReplicaCapable?: boolean | null; - Vpc?: boolean | null; -} - -// refs: 2 - tags: output, named, interface -export interface ReservedDBInstance { - ReservedDBInstanceId?: string | null; - ReservedDBInstancesOfferingId?: string | null; - DBInstanceClass?: string | null; - StartTime?: Date | number | null; - Duration?: number | null; - FixedPrice?: number | null; - UsagePrice?: number | null; - CurrencyCode?: string | null; - DBInstanceCount?: number | null; - ProductDescription?: string | null; - OfferingType?: string | null; - MultiAZ?: boolean | null; - State?: string | null; - RecurringCharges: RecurringCharge[]; -} - -// refs: 3 - tags: output, named, interface -export interface RecurringCharge { - RecurringChargeAmount?: number | null; - RecurringChargeFrequency?: string | null; -} - -// refs: 1 - tags: output, named, interface -export interface ReservedDBInstancesOffering { - ReservedDBInstancesOfferingId?: string | null; - DBInstanceClass?: string | null; - Duration?: number | null; - FixedPrice?: number | null; - UsagePrice?: number | null; - CurrencyCode?: string | null; - ProductDescription?: string | null; - OfferingType?: string | null; - MultiAZ?: boolean | null; - RecurringCharges: RecurringCharge[]; -} diff --git a/lib/services/rds@2013-02-12/mod.ts b/lib/services/rds@2013-02-12/mod.ts deleted file mode 100644 index bca5044e..00000000 --- a/lib/services/rds@2013-02-12/mod.ts +++ /dev/null @@ -1,1442 +0,0 @@ -// Autogenerated API client for: Amazon Relational Database Service - -interface RequestConfig { - abortSignal?: AbortSignal; -} - -export * from "./structs.ts"; -import * as client from "../../client/common.ts"; -import * as qsP from "../../encoding/querystring.ts"; -import * as xmlP from "../../encoding/xml.ts"; -import type * as s from "./structs.ts"; - -export default class RDS { - #client: client.ServiceClient; - constructor(apiFactory: client.ApiFactory) { - this.#client = apiFactory.buildServiceClient(RDS.ApiMetadata); - } - - static ApiMetadata: client.ApiMetadata = { - "apiVersion": "2013-02-12", - "endpointPrefix": "rds", - "protocol": "query", - "serviceAbbreviation": "Amazon RDS", - "serviceFullName": "Amazon Relational Database Service", - "serviceId": "RDS", - "signatureVersion": "v4", - "uid": "rds-2013-02-12", - "xmlNamespace": "http://rds.amazonaws.com/doc/2013-02-12/" - }; - - async addSourceIdentifierToSubscription( - {abortSignal, ...params}: RequestConfig & s.AddSourceIdentifierToSubscriptionMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SubscriptionName", (params["SubscriptionName"] ?? '').toString()); - body.append(prefix+"SourceIdentifier", (params["SourceIdentifier"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "AddSourceIdentifierToSubscription", - }); - const xml = xmlP.readXmlResult(await resp.text(), "AddSourceIdentifierToSubscriptionResult"); - return { - EventSubscription: xml.first("EventSubscription", false, EventSubscription_Parse), - }; - } - - async addTagsToResource( - {abortSignal, ...params}: RequestConfig & s.AddTagsToResourceMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"ResourceName", (params["ResourceName"] ?? '').toString()); - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "AddTagsToResource", - }); - await resp.arrayBuffer(); // consume body without use - } - - async authorizeDBSecurityGroupIngress( - {abortSignal, ...params}: RequestConfig & s.AuthorizeDBSecurityGroupIngressMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSecurityGroupName", (params["DBSecurityGroupName"] ?? '').toString()); - if ("CIDRIP" in params) body.append(prefix+"CIDRIP", (params["CIDRIP"] ?? '').toString()); - if ("EC2SecurityGroupName" in params) body.append(prefix+"EC2SecurityGroupName", (params["EC2SecurityGroupName"] ?? '').toString()); - if ("EC2SecurityGroupId" in params) body.append(prefix+"EC2SecurityGroupId", (params["EC2SecurityGroupId"] ?? '').toString()); - if ("EC2SecurityGroupOwnerId" in params) body.append(prefix+"EC2SecurityGroupOwnerId", (params["EC2SecurityGroupOwnerId"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "AuthorizeDBSecurityGroupIngress", - }); - const xml = xmlP.readXmlResult(await resp.text(), "AuthorizeDBSecurityGroupIngressResult"); - return { - DBSecurityGroup: xml.first("DBSecurityGroup", false, DBSecurityGroup_Parse), - }; - } - - async copyDBSnapshot( - {abortSignal, ...params}: RequestConfig & s.CopyDBSnapshotMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SourceDBSnapshotIdentifier", (params["SourceDBSnapshotIdentifier"] ?? '').toString()); - body.append(prefix+"TargetDBSnapshotIdentifier", (params["TargetDBSnapshotIdentifier"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CopyDBSnapshot", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CopyDBSnapshotResult"); - return { - DBSnapshot: xml.first("DBSnapshot", false, DBSnapshot_Parse), - }; - } - - async createDBInstance( - {abortSignal, ...params}: RequestConfig & s.CreateDBInstanceMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("DBName" in params) body.append(prefix+"DBName", (params["DBName"] ?? '').toString()); - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - body.append(prefix+"AllocatedStorage", (params["AllocatedStorage"] ?? '').toString()); - body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - body.append(prefix+"Engine", (params["Engine"] ?? '').toString()); - body.append(prefix+"MasterUsername", (params["MasterUsername"] ?? '').toString()); - body.append(prefix+"MasterUserPassword", (params["MasterUserPassword"] ?? '').toString()); - if (params["DBSecurityGroups"]) qsP.appendList(body, prefix+"DBSecurityGroups", params["DBSecurityGroups"], {"entryPrefix":".DBSecurityGroupName."}) - if (params["VpcSecurityGroupIds"]) qsP.appendList(body, prefix+"VpcSecurityGroupIds", params["VpcSecurityGroupIds"], {"entryPrefix":".VpcSecurityGroupId."}) - if ("AvailabilityZone" in params) body.append(prefix+"AvailabilityZone", (params["AvailabilityZone"] ?? '').toString()); - if ("DBSubnetGroupName" in params) body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - if ("PreferredMaintenanceWindow" in params) body.append(prefix+"PreferredMaintenanceWindow", (params["PreferredMaintenanceWindow"] ?? '').toString()); - if ("DBParameterGroupName" in params) body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - if ("BackupRetentionPeriod" in params) body.append(prefix+"BackupRetentionPeriod", (params["BackupRetentionPeriod"] ?? '').toString()); - if ("PreferredBackupWindow" in params) body.append(prefix+"PreferredBackupWindow", (params["PreferredBackupWindow"] ?? '').toString()); - if ("Port" in params) body.append(prefix+"Port", (params["Port"] ?? '').toString()); - if ("MultiAZ" in params) body.append(prefix+"MultiAZ", (params["MultiAZ"] ?? '').toString()); - if ("EngineVersion" in params) body.append(prefix+"EngineVersion", (params["EngineVersion"] ?? '').toString()); - if ("AutoMinorVersionUpgrade" in params) body.append(prefix+"AutoMinorVersionUpgrade", (params["AutoMinorVersionUpgrade"] ?? '').toString()); - if ("LicenseModel" in params) body.append(prefix+"LicenseModel", (params["LicenseModel"] ?? '').toString()); - if ("Iops" in params) body.append(prefix+"Iops", (params["Iops"] ?? '').toString()); - if ("OptionGroupName" in params) body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - if ("CharacterSetName" in params) body.append(prefix+"CharacterSetName", (params["CharacterSetName"] ?? '').toString()); - if ("PubliclyAccessible" in params) body.append(prefix+"PubliclyAccessible", (params["PubliclyAccessible"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateDBInstance", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateDBInstanceResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async createDBInstanceReadReplica( - {abortSignal, ...params}: RequestConfig & s.CreateDBInstanceReadReplicaMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - body.append(prefix+"SourceDBInstanceIdentifier", (params["SourceDBInstanceIdentifier"] ?? '').toString()); - if ("DBInstanceClass" in params) body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - if ("AvailabilityZone" in params) body.append(prefix+"AvailabilityZone", (params["AvailabilityZone"] ?? '').toString()); - if ("Port" in params) body.append(prefix+"Port", (params["Port"] ?? '').toString()); - if ("AutoMinorVersionUpgrade" in params) body.append(prefix+"AutoMinorVersionUpgrade", (params["AutoMinorVersionUpgrade"] ?? '').toString()); - if ("Iops" in params) body.append(prefix+"Iops", (params["Iops"] ?? '').toString()); - if ("OptionGroupName" in params) body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - if ("PubliclyAccessible" in params) body.append(prefix+"PubliclyAccessible", (params["PubliclyAccessible"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateDBInstanceReadReplica", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateDBInstanceReadReplicaResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async createDBParameterGroup( - {abortSignal, ...params}: RequestConfig & s.CreateDBParameterGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - body.append(prefix+"DBParameterGroupFamily", (params["DBParameterGroupFamily"] ?? '').toString()); - body.append(prefix+"Description", (params["Description"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateDBParameterGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateDBParameterGroupResult"); - return { - DBParameterGroup: xml.first("DBParameterGroup", false, DBParameterGroup_Parse), - }; - } - - async createDBSecurityGroup( - {abortSignal, ...params}: RequestConfig & s.CreateDBSecurityGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSecurityGroupName", (params["DBSecurityGroupName"] ?? '').toString()); - body.append(prefix+"DBSecurityGroupDescription", (params["DBSecurityGroupDescription"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateDBSecurityGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateDBSecurityGroupResult"); - return { - DBSecurityGroup: xml.first("DBSecurityGroup", false, DBSecurityGroup_Parse), - }; - } - - async createDBSnapshot( - {abortSignal, ...params}: RequestConfig & s.CreateDBSnapshotMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSnapshotIdentifier", (params["DBSnapshotIdentifier"] ?? '').toString()); - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateDBSnapshot", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateDBSnapshotResult"); - return { - DBSnapshot: xml.first("DBSnapshot", false, DBSnapshot_Parse), - }; - } - - async createDBSubnetGroup( - {abortSignal, ...params}: RequestConfig & s.CreateDBSubnetGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - body.append(prefix+"DBSubnetGroupDescription", (params["DBSubnetGroupDescription"] ?? '').toString()); - if (params["SubnetIds"]) qsP.appendList(body, prefix+"SubnetIds", params["SubnetIds"], {"entryPrefix":".SubnetIdentifier."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateDBSubnetGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateDBSubnetGroupResult"); - return { - DBSubnetGroup: xml.first("DBSubnetGroup", false, DBSubnetGroup_Parse), - }; - } - - async createEventSubscription( - {abortSignal, ...params}: RequestConfig & s.CreateEventSubscriptionMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SubscriptionName", (params["SubscriptionName"] ?? '').toString()); - body.append(prefix+"SnsTopicArn", (params["SnsTopicArn"] ?? '').toString()); - if ("SourceType" in params) body.append(prefix+"SourceType", (params["SourceType"] ?? '').toString()); - if (params["EventCategories"]) qsP.appendList(body, prefix+"EventCategories", params["EventCategories"], {"entryPrefix":".EventCategory."}) - if (params["SourceIds"]) qsP.appendList(body, prefix+"SourceIds", params["SourceIds"], {"entryPrefix":".SourceId."}) - if ("Enabled" in params) body.append(prefix+"Enabled", (params["Enabled"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateEventSubscription", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateEventSubscriptionResult"); - return { - EventSubscription: xml.first("EventSubscription", false, EventSubscription_Parse), - }; - } - - async createOptionGroup( - {abortSignal, ...params}: RequestConfig & s.CreateOptionGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - body.append(prefix+"EngineName", (params["EngineName"] ?? '').toString()); - body.append(prefix+"MajorEngineVersion", (params["MajorEngineVersion"] ?? '').toString()); - body.append(prefix+"OptionGroupDescription", (params["OptionGroupDescription"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateOptionGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateOptionGroupResult"); - return { - OptionGroup: xml.first("OptionGroup", false, OptionGroup_Parse), - }; - } - - async deleteDBInstance( - {abortSignal, ...params}: RequestConfig & s.DeleteDBInstanceMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - if ("SkipFinalSnapshot" in params) body.append(prefix+"SkipFinalSnapshot", (params["SkipFinalSnapshot"] ?? '').toString()); - if ("FinalDBSnapshotIdentifier" in params) body.append(prefix+"FinalDBSnapshotIdentifier", (params["FinalDBSnapshotIdentifier"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteDBInstance", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DeleteDBInstanceResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async deleteDBParameterGroup( - {abortSignal, ...params}: RequestConfig & s.DeleteDBParameterGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteDBParameterGroup", - }); - await resp.arrayBuffer(); // consume body without use - } - - async deleteDBSecurityGroup( - {abortSignal, ...params}: RequestConfig & s.DeleteDBSecurityGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSecurityGroupName", (params["DBSecurityGroupName"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteDBSecurityGroup", - }); - await resp.arrayBuffer(); // consume body without use - } - - async deleteDBSnapshot( - {abortSignal, ...params}: RequestConfig & s.DeleteDBSnapshotMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSnapshotIdentifier", (params["DBSnapshotIdentifier"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteDBSnapshot", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DeleteDBSnapshotResult"); - return { - DBSnapshot: xml.first("DBSnapshot", false, DBSnapshot_Parse), - }; - } - - async deleteDBSubnetGroup( - {abortSignal, ...params}: RequestConfig & s.DeleteDBSubnetGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteDBSubnetGroup", - }); - await resp.arrayBuffer(); // consume body without use - } - - async deleteEventSubscription( - {abortSignal, ...params}: RequestConfig & s.DeleteEventSubscriptionMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SubscriptionName", (params["SubscriptionName"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteEventSubscription", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DeleteEventSubscriptionResult"); - return { - EventSubscription: xml.first("EventSubscription", false, EventSubscription_Parse), - }; - } - - async deleteOptionGroup( - {abortSignal, ...params}: RequestConfig & s.DeleteOptionGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteOptionGroup", - }); - await resp.arrayBuffer(); // consume body without use - } - - async describeDBEngineVersions( - {abortSignal, ...params}: RequestConfig & s.DescribeDBEngineVersionsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("Engine" in params) body.append(prefix+"Engine", (params["Engine"] ?? '').toString()); - if ("EngineVersion" in params) body.append(prefix+"EngineVersion", (params["EngineVersion"] ?? '').toString()); - if ("DBParameterGroupFamily" in params) body.append(prefix+"DBParameterGroupFamily", (params["DBParameterGroupFamily"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - if ("DefaultOnly" in params) body.append(prefix+"DefaultOnly", (params["DefaultOnly"] ?? '').toString()); - if ("ListSupportedCharacterSets" in params) body.append(prefix+"ListSupportedCharacterSets", (params["ListSupportedCharacterSets"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBEngineVersions", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBEngineVersionsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - DBEngineVersions: xml.getList("DBEngineVersions", "DBEngineVersion").map(DBEngineVersion_Parse), - }; - } - - async describeDBInstances( - {abortSignal, ...params}: RequestConfig & s.DescribeDBInstancesMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("DBInstanceIdentifier" in params) body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBInstances", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBInstancesResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - DBInstances: xml.getList("DBInstances", "DBInstance").map(DBInstance_Parse), - }; - } - - async describeDBLogFiles( - {abortSignal, ...params}: RequestConfig & s.DescribeDBLogFilesMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - if ("FilenameContains" in params) body.append(prefix+"FilenameContains", (params["FilenameContains"] ?? '').toString()); - if ("FileLastWritten" in params) body.append(prefix+"FileLastWritten", (params["FileLastWritten"] ?? '').toString()); - if ("FileSize" in params) body.append(prefix+"FileSize", (params["FileSize"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBLogFiles", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBLogFilesResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - DescribeDBLogFiles: xml.getList("DescribeDBLogFiles", "DescribeDBLogFilesDetails").map(DescribeDBLogFilesDetails_Parse), - }; - } - - async describeDBParameterGroups( - {abortSignal, ...params}: RequestConfig & s.DescribeDBParameterGroupsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("DBParameterGroupName" in params) body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBParameterGroups", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBParameterGroupsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - DBParameterGroups: xml.getList("DBParameterGroups", "DBParameterGroup").map(DBParameterGroup_Parse), - }; - } - - async describeDBParameters( - {abortSignal, ...params}: RequestConfig & s.DescribeDBParametersMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - if ("Source" in params) body.append(prefix+"Source", (params["Source"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBParameters", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBParametersResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - Parameters: xml.getList("Parameters", "Parameter").map(Parameter_Parse), - }; - } - - async describeDBSecurityGroups( - {abortSignal, ...params}: RequestConfig & s.DescribeDBSecurityGroupsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("DBSecurityGroupName" in params) body.append(prefix+"DBSecurityGroupName", (params["DBSecurityGroupName"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBSecurityGroups", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBSecurityGroupsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - DBSecurityGroups: xml.getList("DBSecurityGroups", "DBSecurityGroup").map(DBSecurityGroup_Parse), - }; - } - - async describeDBSnapshots( - {abortSignal, ...params}: RequestConfig & s.DescribeDBSnapshotsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("DBInstanceIdentifier" in params) body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - if ("DBSnapshotIdentifier" in params) body.append(prefix+"DBSnapshotIdentifier", (params["DBSnapshotIdentifier"] ?? '').toString()); - if ("SnapshotType" in params) body.append(prefix+"SnapshotType", (params["SnapshotType"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBSnapshots", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBSnapshotsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - DBSnapshots: xml.getList("DBSnapshots", "DBSnapshot").map(DBSnapshot_Parse), - }; - } - - async describeDBSubnetGroups( - {abortSignal, ...params}: RequestConfig & s.DescribeDBSubnetGroupsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("DBSubnetGroupName" in params) body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBSubnetGroups", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBSubnetGroupsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - DBSubnetGroups: xml.getList("DBSubnetGroups", "DBSubnetGroup").map(DBSubnetGroup_Parse), - }; - } - - async describeEngineDefaultParameters( - {abortSignal, ...params}: RequestConfig & s.DescribeEngineDefaultParametersMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBParameterGroupFamily", (params["DBParameterGroupFamily"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeEngineDefaultParameters", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeEngineDefaultParametersResult"); - return { - EngineDefaults: xml.first("EngineDefaults", false, EngineDefaults_Parse), - }; - } - - async describeEventCategories( - {abortSignal, ...params}: RequestConfig & s.DescribeEventCategoriesMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("SourceType" in params) body.append(prefix+"SourceType", (params["SourceType"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeEventCategories", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeEventCategoriesResult"); - return { - EventCategoriesMapList: xml.getList("EventCategoriesMapList", "EventCategoriesMap").map(EventCategoriesMap_Parse), - }; - } - - async describeEventSubscriptions( - {abortSignal, ...params}: RequestConfig & s.DescribeEventSubscriptionsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("SubscriptionName" in params) body.append(prefix+"SubscriptionName", (params["SubscriptionName"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeEventSubscriptions", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeEventSubscriptionsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - EventSubscriptionsList: xml.getList("EventSubscriptionsList", "EventSubscription").map(EventSubscription_Parse), - }; - } - - async describeEvents( - {abortSignal, ...params}: RequestConfig & s.DescribeEventsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("SourceIdentifier" in params) body.append(prefix+"SourceIdentifier", (params["SourceIdentifier"] ?? '').toString()); - if ("SourceType" in params) body.append(prefix+"SourceType", (params["SourceType"] ?? '').toString()); - if ("StartTime" in params) body.append(prefix+"StartTime", qsP.encodeDate_iso8601(params["StartTime"])); - if ("EndTime" in params) body.append(prefix+"EndTime", qsP.encodeDate_iso8601(params["EndTime"])); - if ("Duration" in params) body.append(prefix+"Duration", (params["Duration"] ?? '').toString()); - if (params["EventCategories"]) qsP.appendList(body, prefix+"EventCategories", params["EventCategories"], {"entryPrefix":".EventCategory."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeEvents", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeEventsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - Events: xml.getList("Events", "Event").map(Event_Parse), - }; - } - - async describeOptionGroupOptions( - {abortSignal, ...params}: RequestConfig & s.DescribeOptionGroupOptionsMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"EngineName", (params["EngineName"] ?? '').toString()); - if ("MajorEngineVersion" in params) body.append(prefix+"MajorEngineVersion", (params["MajorEngineVersion"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeOptionGroupOptions", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeOptionGroupOptionsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - OptionGroupOptions: xml.getList("OptionGroupOptions", "OptionGroupOption").map(OptionGroupOption_Parse), - }; - } - - async describeOptionGroups( - {abortSignal, ...params}: RequestConfig & s.DescribeOptionGroupsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("OptionGroupName" in params) body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("EngineName" in params) body.append(prefix+"EngineName", (params["EngineName"] ?? '').toString()); - if ("MajorEngineVersion" in params) body.append(prefix+"MajorEngineVersion", (params["MajorEngineVersion"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeOptionGroups", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeOptionGroupsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - OptionGroupsList: xml.getList("OptionGroupsList", "OptionGroup").map(OptionGroup_Parse), - }; - } - - async describeOrderableDBInstanceOptions( - {abortSignal, ...params}: RequestConfig & s.DescribeOrderableDBInstanceOptionsMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"Engine", (params["Engine"] ?? '').toString()); - if ("EngineVersion" in params) body.append(prefix+"EngineVersion", (params["EngineVersion"] ?? '').toString()); - if ("DBInstanceClass" in params) body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - if ("LicenseModel" in params) body.append(prefix+"LicenseModel", (params["LicenseModel"] ?? '').toString()); - if ("Vpc" in params) body.append(prefix+"Vpc", (params["Vpc"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeOrderableDBInstanceOptions", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeOrderableDBInstanceOptionsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - OrderableDBInstanceOptions: xml.getList("OrderableDBInstanceOptions", "OrderableDBInstanceOption").map(OrderableDBInstanceOption_Parse), - }; - } - - async describeReservedDBInstances( - {abortSignal, ...params}: RequestConfig & s.DescribeReservedDBInstancesMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("ReservedDBInstanceId" in params) body.append(prefix+"ReservedDBInstanceId", (params["ReservedDBInstanceId"] ?? '').toString()); - if ("ReservedDBInstancesOfferingId" in params) body.append(prefix+"ReservedDBInstancesOfferingId", (params["ReservedDBInstancesOfferingId"] ?? '').toString()); - if ("DBInstanceClass" in params) body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - if ("Duration" in params) body.append(prefix+"Duration", (params["Duration"] ?? '').toString()); - if ("ProductDescription" in params) body.append(prefix+"ProductDescription", (params["ProductDescription"] ?? '').toString()); - if ("OfferingType" in params) body.append(prefix+"OfferingType", (params["OfferingType"] ?? '').toString()); - if ("MultiAZ" in params) body.append(prefix+"MultiAZ", (params["MultiAZ"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeReservedDBInstances", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeReservedDBInstancesResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - ReservedDBInstances: xml.getList("ReservedDBInstances", "ReservedDBInstance").map(ReservedDBInstance_Parse), - }; - } - - async describeReservedDBInstancesOfferings( - {abortSignal, ...params}: RequestConfig & s.DescribeReservedDBInstancesOfferingsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("ReservedDBInstancesOfferingId" in params) body.append(prefix+"ReservedDBInstancesOfferingId", (params["ReservedDBInstancesOfferingId"] ?? '').toString()); - if ("DBInstanceClass" in params) body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - if ("Duration" in params) body.append(prefix+"Duration", (params["Duration"] ?? '').toString()); - if ("ProductDescription" in params) body.append(prefix+"ProductDescription", (params["ProductDescription"] ?? '').toString()); - if ("OfferingType" in params) body.append(prefix+"OfferingType", (params["OfferingType"] ?? '').toString()); - if ("MultiAZ" in params) body.append(prefix+"MultiAZ", (params["MultiAZ"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeReservedDBInstancesOfferings", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeReservedDBInstancesOfferingsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - ReservedDBInstancesOfferings: xml.getList("ReservedDBInstancesOfferings", "ReservedDBInstancesOffering").map(ReservedDBInstancesOffering_Parse), - }; - } - - async downloadDBLogFilePortion( - {abortSignal, ...params}: RequestConfig & s.DownloadDBLogFilePortionMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - body.append(prefix+"LogFileName", (params["LogFileName"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - if ("NumberOfLines" in params) body.append(prefix+"NumberOfLines", (params["NumberOfLines"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DownloadDBLogFilePortion", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DownloadDBLogFilePortionResult"); - return { - ...xml.strings({ - optional: {"LogFileData":true,"Marker":true}, - }), - AdditionalDataPending: xml.first("AdditionalDataPending", false, x => x.content === 'true'), - }; - } - - async listTagsForResource( - {abortSignal, ...params}: RequestConfig & s.ListTagsForResourceMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"ResourceName", (params["ResourceName"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "ListTagsForResource", - }); - const xml = xmlP.readXmlResult(await resp.text(), "ListTagsForResourceResult"); - return { - TagList: xml.getList("TagList", "Tag").map(Tag_Parse), - }; - } - - async modifyDBInstance( - {abortSignal, ...params}: RequestConfig & s.ModifyDBInstanceMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - if ("AllocatedStorage" in params) body.append(prefix+"AllocatedStorage", (params["AllocatedStorage"] ?? '').toString()); - if ("DBInstanceClass" in params) body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - if (params["DBSecurityGroups"]) qsP.appendList(body, prefix+"DBSecurityGroups", params["DBSecurityGroups"], {"entryPrefix":".DBSecurityGroupName."}) - if (params["VpcSecurityGroupIds"]) qsP.appendList(body, prefix+"VpcSecurityGroupIds", params["VpcSecurityGroupIds"], {"entryPrefix":".VpcSecurityGroupId."}) - if ("ApplyImmediately" in params) body.append(prefix+"ApplyImmediately", (params["ApplyImmediately"] ?? '').toString()); - if ("MasterUserPassword" in params) body.append(prefix+"MasterUserPassword", (params["MasterUserPassword"] ?? '').toString()); - if ("DBParameterGroupName" in params) body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - if ("BackupRetentionPeriod" in params) body.append(prefix+"BackupRetentionPeriod", (params["BackupRetentionPeriod"] ?? '').toString()); - if ("PreferredBackupWindow" in params) body.append(prefix+"PreferredBackupWindow", (params["PreferredBackupWindow"] ?? '').toString()); - if ("PreferredMaintenanceWindow" in params) body.append(prefix+"PreferredMaintenanceWindow", (params["PreferredMaintenanceWindow"] ?? '').toString()); - if ("MultiAZ" in params) body.append(prefix+"MultiAZ", (params["MultiAZ"] ?? '').toString()); - if ("EngineVersion" in params) body.append(prefix+"EngineVersion", (params["EngineVersion"] ?? '').toString()); - if ("AllowMajorVersionUpgrade" in params) body.append(prefix+"AllowMajorVersionUpgrade", (params["AllowMajorVersionUpgrade"] ?? '').toString()); - if ("AutoMinorVersionUpgrade" in params) body.append(prefix+"AutoMinorVersionUpgrade", (params["AutoMinorVersionUpgrade"] ?? '').toString()); - if ("Iops" in params) body.append(prefix+"Iops", (params["Iops"] ?? '').toString()); - if ("OptionGroupName" in params) body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - if ("NewDBInstanceIdentifier" in params) body.append(prefix+"NewDBInstanceIdentifier", (params["NewDBInstanceIdentifier"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "ModifyDBInstance", - }); - const xml = xmlP.readXmlResult(await resp.text(), "ModifyDBInstanceResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async modifyDBParameterGroup( - {abortSignal, ...params}: RequestConfig & s.ModifyDBParameterGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - if (params["Parameters"]) qsP.appendList(body, prefix+"Parameters", params["Parameters"], {"appender":Parameter_Serialize,"entryPrefix":".Parameter."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "ModifyDBParameterGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "ModifyDBParameterGroupResult"); - return xml.strings({ - optional: {"DBParameterGroupName":true}, - }); - } - - async modifyDBSubnetGroup( - {abortSignal, ...params}: RequestConfig & s.ModifyDBSubnetGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - if ("DBSubnetGroupDescription" in params) body.append(prefix+"DBSubnetGroupDescription", (params["DBSubnetGroupDescription"] ?? '').toString()); - if (params["SubnetIds"]) qsP.appendList(body, prefix+"SubnetIds", params["SubnetIds"], {"entryPrefix":".SubnetIdentifier."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "ModifyDBSubnetGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "ModifyDBSubnetGroupResult"); - return { - DBSubnetGroup: xml.first("DBSubnetGroup", false, DBSubnetGroup_Parse), - }; - } - - async modifyEventSubscription( - {abortSignal, ...params}: RequestConfig & s.ModifyEventSubscriptionMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SubscriptionName", (params["SubscriptionName"] ?? '').toString()); - if ("SnsTopicArn" in params) body.append(prefix+"SnsTopicArn", (params["SnsTopicArn"] ?? '').toString()); - if ("SourceType" in params) body.append(prefix+"SourceType", (params["SourceType"] ?? '').toString()); - if (params["EventCategories"]) qsP.appendList(body, prefix+"EventCategories", params["EventCategories"], {"entryPrefix":".EventCategory."}) - if ("Enabled" in params) body.append(prefix+"Enabled", (params["Enabled"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "ModifyEventSubscription", - }); - const xml = xmlP.readXmlResult(await resp.text(), "ModifyEventSubscriptionResult"); - return { - EventSubscription: xml.first("EventSubscription", false, EventSubscription_Parse), - }; - } - - async modifyOptionGroup( - {abortSignal, ...params}: RequestConfig & s.ModifyOptionGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - if (params["OptionsToInclude"]) qsP.appendList(body, prefix+"OptionsToInclude", params["OptionsToInclude"], {"appender":OptionConfiguration_Serialize,"entryPrefix":".OptionConfiguration."}) - if (params["OptionsToRemove"]) qsP.appendList(body, prefix+"OptionsToRemove", params["OptionsToRemove"], {"entryPrefix":".member."}) - if ("ApplyImmediately" in params) body.append(prefix+"ApplyImmediately", (params["ApplyImmediately"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "ModifyOptionGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "ModifyOptionGroupResult"); - return { - OptionGroup: xml.first("OptionGroup", false, OptionGroup_Parse), - }; - } - - async promoteReadReplica( - {abortSignal, ...params}: RequestConfig & s.PromoteReadReplicaMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - if ("BackupRetentionPeriod" in params) body.append(prefix+"BackupRetentionPeriod", (params["BackupRetentionPeriod"] ?? '').toString()); - if ("PreferredBackupWindow" in params) body.append(prefix+"PreferredBackupWindow", (params["PreferredBackupWindow"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "PromoteReadReplica", - }); - const xml = xmlP.readXmlResult(await resp.text(), "PromoteReadReplicaResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async purchaseReservedDBInstancesOffering( - {abortSignal, ...params}: RequestConfig & s.PurchaseReservedDBInstancesOfferingMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"ReservedDBInstancesOfferingId", (params["ReservedDBInstancesOfferingId"] ?? '').toString()); - if ("ReservedDBInstanceId" in params) body.append(prefix+"ReservedDBInstanceId", (params["ReservedDBInstanceId"] ?? '').toString()); - if ("DBInstanceCount" in params) body.append(prefix+"DBInstanceCount", (params["DBInstanceCount"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "PurchaseReservedDBInstancesOffering", - }); - const xml = xmlP.readXmlResult(await resp.text(), "PurchaseReservedDBInstancesOfferingResult"); - return { - ReservedDBInstance: xml.first("ReservedDBInstance", false, ReservedDBInstance_Parse), - }; - } - - async rebootDBInstance( - {abortSignal, ...params}: RequestConfig & s.RebootDBInstanceMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - if ("ForceFailover" in params) body.append(prefix+"ForceFailover", (params["ForceFailover"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "RebootDBInstance", - }); - const xml = xmlP.readXmlResult(await resp.text(), "RebootDBInstanceResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async removeSourceIdentifierFromSubscription( - {abortSignal, ...params}: RequestConfig & s.RemoveSourceIdentifierFromSubscriptionMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SubscriptionName", (params["SubscriptionName"] ?? '').toString()); - body.append(prefix+"SourceIdentifier", (params["SourceIdentifier"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "RemoveSourceIdentifierFromSubscription", - }); - const xml = xmlP.readXmlResult(await resp.text(), "RemoveSourceIdentifierFromSubscriptionResult"); - return { - EventSubscription: xml.first("EventSubscription", false, EventSubscription_Parse), - }; - } - - async removeTagsFromResource( - {abortSignal, ...params}: RequestConfig & s.RemoveTagsFromResourceMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"ResourceName", (params["ResourceName"] ?? '').toString()); - if (params["TagKeys"]) qsP.appendList(body, prefix+"TagKeys", params["TagKeys"], {"entryPrefix":".member."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "RemoveTagsFromResource", - }); - await resp.arrayBuffer(); // consume body without use - } - - async resetDBParameterGroup( - {abortSignal, ...params}: RequestConfig & s.ResetDBParameterGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - if ("ResetAllParameters" in params) body.append(prefix+"ResetAllParameters", (params["ResetAllParameters"] ?? '').toString()); - if (params["Parameters"]) qsP.appendList(body, prefix+"Parameters", params["Parameters"], {"appender":Parameter_Serialize,"entryPrefix":".Parameter."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "ResetDBParameterGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "ResetDBParameterGroupResult"); - return xml.strings({ - optional: {"DBParameterGroupName":true}, - }); - } - - async restoreDBInstanceFromDBSnapshot( - {abortSignal, ...params}: RequestConfig & s.RestoreDBInstanceFromDBSnapshotMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - body.append(prefix+"DBSnapshotIdentifier", (params["DBSnapshotIdentifier"] ?? '').toString()); - if ("DBInstanceClass" in params) body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - if ("Port" in params) body.append(prefix+"Port", (params["Port"] ?? '').toString()); - if ("AvailabilityZone" in params) body.append(prefix+"AvailabilityZone", (params["AvailabilityZone"] ?? '').toString()); - if ("DBSubnetGroupName" in params) body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - if ("MultiAZ" in params) body.append(prefix+"MultiAZ", (params["MultiAZ"] ?? '').toString()); - if ("PubliclyAccessible" in params) body.append(prefix+"PubliclyAccessible", (params["PubliclyAccessible"] ?? '').toString()); - if ("AutoMinorVersionUpgrade" in params) body.append(prefix+"AutoMinorVersionUpgrade", (params["AutoMinorVersionUpgrade"] ?? '').toString()); - if ("LicenseModel" in params) body.append(prefix+"LicenseModel", (params["LicenseModel"] ?? '').toString()); - if ("DBName" in params) body.append(prefix+"DBName", (params["DBName"] ?? '').toString()); - if ("Engine" in params) body.append(prefix+"Engine", (params["Engine"] ?? '').toString()); - if ("Iops" in params) body.append(prefix+"Iops", (params["Iops"] ?? '').toString()); - if ("OptionGroupName" in params) body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "RestoreDBInstanceFromDBSnapshot", - }); - const xml = xmlP.readXmlResult(await resp.text(), "RestoreDBInstanceFromDBSnapshotResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async restoreDBInstanceToPointInTime( - {abortSignal, ...params}: RequestConfig & s.RestoreDBInstanceToPointInTimeMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SourceDBInstanceIdentifier", (params["SourceDBInstanceIdentifier"] ?? '').toString()); - body.append(prefix+"TargetDBInstanceIdentifier", (params["TargetDBInstanceIdentifier"] ?? '').toString()); - if ("RestoreTime" in params) body.append(prefix+"RestoreTime", qsP.encodeDate_iso8601(params["RestoreTime"])); - if ("UseLatestRestorableTime" in params) body.append(prefix+"UseLatestRestorableTime", (params["UseLatestRestorableTime"] ?? '').toString()); - if ("DBInstanceClass" in params) body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - if ("Port" in params) body.append(prefix+"Port", (params["Port"] ?? '').toString()); - if ("AvailabilityZone" in params) body.append(prefix+"AvailabilityZone", (params["AvailabilityZone"] ?? '').toString()); - if ("DBSubnetGroupName" in params) body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - if ("MultiAZ" in params) body.append(prefix+"MultiAZ", (params["MultiAZ"] ?? '').toString()); - if ("PubliclyAccessible" in params) body.append(prefix+"PubliclyAccessible", (params["PubliclyAccessible"] ?? '').toString()); - if ("AutoMinorVersionUpgrade" in params) body.append(prefix+"AutoMinorVersionUpgrade", (params["AutoMinorVersionUpgrade"] ?? '').toString()); - if ("LicenseModel" in params) body.append(prefix+"LicenseModel", (params["LicenseModel"] ?? '').toString()); - if ("DBName" in params) body.append(prefix+"DBName", (params["DBName"] ?? '').toString()); - if ("Engine" in params) body.append(prefix+"Engine", (params["Engine"] ?? '').toString()); - if ("Iops" in params) body.append(prefix+"Iops", (params["Iops"] ?? '').toString()); - if ("OptionGroupName" in params) body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "RestoreDBInstanceToPointInTime", - }); - const xml = xmlP.readXmlResult(await resp.text(), "RestoreDBInstanceToPointInTimeResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async revokeDBSecurityGroupIngress( - {abortSignal, ...params}: RequestConfig & s.RevokeDBSecurityGroupIngressMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSecurityGroupName", (params["DBSecurityGroupName"] ?? '').toString()); - if ("CIDRIP" in params) body.append(prefix+"CIDRIP", (params["CIDRIP"] ?? '').toString()); - if ("EC2SecurityGroupName" in params) body.append(prefix+"EC2SecurityGroupName", (params["EC2SecurityGroupName"] ?? '').toString()); - if ("EC2SecurityGroupId" in params) body.append(prefix+"EC2SecurityGroupId", (params["EC2SecurityGroupId"] ?? '').toString()); - if ("EC2SecurityGroupOwnerId" in params) body.append(prefix+"EC2SecurityGroupOwnerId", (params["EC2SecurityGroupOwnerId"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "RevokeDBSecurityGroupIngress", - }); - const xml = xmlP.readXmlResult(await resp.text(), "RevokeDBSecurityGroupIngressResult"); - return { - DBSecurityGroup: xml.first("DBSecurityGroup", false, DBSecurityGroup_Parse), - }; - } - -} - -function Tag_Serialize(body: URLSearchParams, prefix: string, params: s.Tag) { - if ("Key" in params) body.append(prefix+".Key", (params["Key"] ?? '').toString()); - if ("Value" in params) body.append(prefix+".Value", (params["Value"] ?? '').toString()); -} -function Tag_Parse(node: xmlP.XmlNode): s.Tag { - return node.strings({ - optional: {"Key":true,"Value":true}, - }); -} - -function Parameter_Serialize(body: URLSearchParams, prefix: string, params: s.Parameter) { - if ("ParameterName" in params) body.append(prefix+".ParameterName", (params["ParameterName"] ?? '').toString()); - if ("ParameterValue" in params) body.append(prefix+".ParameterValue", (params["ParameterValue"] ?? '').toString()); - if ("Description" in params) body.append(prefix+".Description", (params["Description"] ?? '').toString()); - if ("Source" in params) body.append(prefix+".Source", (params["Source"] ?? '').toString()); - if ("ApplyType" in params) body.append(prefix+".ApplyType", (params["ApplyType"] ?? '').toString()); - if ("DataType" in params) body.append(prefix+".DataType", (params["DataType"] ?? '').toString()); - if ("AllowedValues" in params) body.append(prefix+".AllowedValues", (params["AllowedValues"] ?? '').toString()); - if ("IsModifiable" in params) body.append(prefix+".IsModifiable", (params["IsModifiable"] ?? '').toString()); - if ("MinimumEngineVersion" in params) body.append(prefix+".MinimumEngineVersion", (params["MinimumEngineVersion"] ?? '').toString()); - if ("ApplyMethod" in params) body.append(prefix+".ApplyMethod", (params["ApplyMethod"] ?? '').toString()); -} -function Parameter_Parse(node: xmlP.XmlNode): s.Parameter { - return { - ...node.strings({ - optional: {"ParameterName":true,"ParameterValue":true,"Description":true,"Source":true,"ApplyType":true,"DataType":true,"AllowedValues":true,"MinimumEngineVersion":true}, - }), - IsModifiable: node.first("IsModifiable", false, x => x.content === 'true'), - ApplyMethod: node.first("ApplyMethod", false, x => (x.content ?? '') as s.ApplyMethod), - }; -} - -function OptionConfiguration_Serialize(body: URLSearchParams, prefix: string, params: s.OptionConfiguration) { - body.append(prefix+".OptionName", (params["OptionName"] ?? '').toString()); - if ("Port" in params) body.append(prefix+".Port", (params["Port"] ?? '').toString()); - if (params["DBSecurityGroupMemberships"]) qsP.appendList(body, prefix+".DBSecurityGroupMemberships", params["DBSecurityGroupMemberships"], {"entryPrefix":".DBSecurityGroupName."}) - if (params["VpcSecurityGroupMemberships"]) qsP.appendList(body, prefix+".VpcSecurityGroupMemberships", params["VpcSecurityGroupMemberships"], {"entryPrefix":".VpcSecurityGroupId."}) - if (params["OptionSettings"]) qsP.appendList(body, prefix+".OptionSettings", params["OptionSettings"], {"appender":OptionSetting_Serialize,"entryPrefix":".OptionSetting."}) -} - -function OptionSetting_Serialize(body: URLSearchParams, prefix: string, params: s.OptionSetting) { - if ("Name" in params) body.append(prefix+".Name", (params["Name"] ?? '').toString()); - if ("Value" in params) body.append(prefix+".Value", (params["Value"] ?? '').toString()); - if ("DefaultValue" in params) body.append(prefix+".DefaultValue", (params["DefaultValue"] ?? '').toString()); - if ("Description" in params) body.append(prefix+".Description", (params["Description"] ?? '').toString()); - if ("ApplyType" in params) body.append(prefix+".ApplyType", (params["ApplyType"] ?? '').toString()); - if ("DataType" in params) body.append(prefix+".DataType", (params["DataType"] ?? '').toString()); - if ("AllowedValues" in params) body.append(prefix+".AllowedValues", (params["AllowedValues"] ?? '').toString()); - if ("IsModifiable" in params) body.append(prefix+".IsModifiable", (params["IsModifiable"] ?? '').toString()); - if ("IsCollection" in params) body.append(prefix+".IsCollection", (params["IsCollection"] ?? '').toString()); -} -function OptionSetting_Parse(node: xmlP.XmlNode): s.OptionSetting { - return { - ...node.strings({ - optional: {"Name":true,"Value":true,"DefaultValue":true,"Description":true,"ApplyType":true,"DataType":true,"AllowedValues":true}, - }), - IsModifiable: node.first("IsModifiable", false, x => x.content === 'true'), - IsCollection: node.first("IsCollection", false, x => x.content === 'true'), - }; -} - -function EventSubscription_Parse(node: xmlP.XmlNode): s.EventSubscription { - return { - ...node.strings({ - optional: {"CustomerAwsId":true,"CustSubscriptionId":true,"SnsTopicArn":true,"Status":true,"SubscriptionCreationTime":true,"SourceType":true}, - }), - SourceIdsList: node.getList("SourceIdsList", "SourceId").map(x => x.content ?? ''), - EventCategoriesList: node.getList("EventCategoriesList", "EventCategory").map(x => x.content ?? ''), - Enabled: node.first("Enabled", false, x => x.content === 'true'), - }; -} - -function DBSecurityGroup_Parse(node: xmlP.XmlNode): s.DBSecurityGroup { - return { - ...node.strings({ - optional: {"OwnerId":true,"DBSecurityGroupName":true,"DBSecurityGroupDescription":true,"VpcId":true}, - }), - EC2SecurityGroups: node.getList("EC2SecurityGroups", "EC2SecurityGroup").map(EC2SecurityGroup_Parse), - IPRanges: node.getList("IPRanges", "IPRange").map(IPRange_Parse), - }; -} - -function EC2SecurityGroup_Parse(node: xmlP.XmlNode): s.EC2SecurityGroup { - return node.strings({ - optional: {"Status":true,"EC2SecurityGroupName":true,"EC2SecurityGroupId":true,"EC2SecurityGroupOwnerId":true}, - }); -} - -function IPRange_Parse(node: xmlP.XmlNode): s.IPRange { - return node.strings({ - optional: {"Status":true,"CIDRIP":true}, - }); -} - -function DBSnapshot_Parse(node: xmlP.XmlNode): s.DBSnapshot { - return { - ...node.strings({ - optional: {"DBSnapshotIdentifier":true,"DBInstanceIdentifier":true,"Engine":true,"Status":true,"AvailabilityZone":true,"VpcId":true,"MasterUsername":true,"EngineVersion":true,"LicenseModel":true,"SnapshotType":true,"OptionGroupName":true}, - }), - SnapshotCreateTime: node.first("SnapshotCreateTime", false, x => xmlP.parseTimestamp(x.content)), - AllocatedStorage: node.first("AllocatedStorage", false, x => parseInt(x.content ?? '0')), - Port: node.first("Port", false, x => parseInt(x.content ?? '0')), - InstanceCreateTime: node.first("InstanceCreateTime", false, x => xmlP.parseTimestamp(x.content)), - Iops: node.first("Iops", false, x => parseInt(x.content ?? '0')), - }; -} - -function DBInstance_Parse(node: xmlP.XmlNode): s.DBInstance { - return { - ...node.strings({ - optional: {"DBInstanceIdentifier":true,"DBInstanceClass":true,"Engine":true,"DBInstanceStatus":true,"MasterUsername":true,"DBName":true,"PreferredBackupWindow":true,"AvailabilityZone":true,"PreferredMaintenanceWindow":true,"EngineVersion":true,"ReadReplicaSourceDBInstanceIdentifier":true,"LicenseModel":true,"CharacterSetName":true,"SecondaryAvailabilityZone":true}, - }), - Endpoint: node.first("Endpoint", false, Endpoint_Parse), - AllocatedStorage: node.first("AllocatedStorage", false, x => parseInt(x.content ?? '0')), - InstanceCreateTime: node.first("InstanceCreateTime", false, x => xmlP.parseTimestamp(x.content)), - BackupRetentionPeriod: node.first("BackupRetentionPeriod", false, x => parseInt(x.content ?? '0')), - DBSecurityGroups: node.getList("DBSecurityGroups", "DBSecurityGroup").map(DBSecurityGroupMembership_Parse), - VpcSecurityGroups: node.getList("VpcSecurityGroups", "VpcSecurityGroupMembership").map(VpcSecurityGroupMembership_Parse), - DBParameterGroups: node.getList("DBParameterGroups", "DBParameterGroup").map(DBParameterGroupStatus_Parse), - DBSubnetGroup: node.first("DBSubnetGroup", false, DBSubnetGroup_Parse), - PendingModifiedValues: node.first("PendingModifiedValues", false, PendingModifiedValues_Parse), - LatestRestorableTime: node.first("LatestRestorableTime", false, x => xmlP.parseTimestamp(x.content)), - MultiAZ: node.first("MultiAZ", false, x => x.content === 'true'), - AutoMinorVersionUpgrade: node.first("AutoMinorVersionUpgrade", false, x => x.content === 'true'), - ReadReplicaDBInstanceIdentifiers: node.getList("ReadReplicaDBInstanceIdentifiers", "ReadReplicaDBInstanceIdentifier").map(x => x.content ?? ''), - Iops: node.first("Iops", false, x => parseInt(x.content ?? '0')), - OptionGroupMemberships: node.getList("OptionGroupMemberships", "OptionGroupMembership").map(OptionGroupMembership_Parse), - PubliclyAccessible: node.first("PubliclyAccessible", false, x => x.content === 'true'), - }; -} - -function Endpoint_Parse(node: xmlP.XmlNode): s.Endpoint { - return { - ...node.strings({ - optional: {"Address":true}, - }), - Port: node.first("Port", false, x => parseInt(x.content ?? '0')), - }; -} - -function DBSecurityGroupMembership_Parse(node: xmlP.XmlNode): s.DBSecurityGroupMembership { - return node.strings({ - optional: {"DBSecurityGroupName":true,"Status":true}, - }); -} - -function VpcSecurityGroupMembership_Parse(node: xmlP.XmlNode): s.VpcSecurityGroupMembership { - return node.strings({ - optional: {"VpcSecurityGroupId":true,"Status":true}, - }); -} - -function DBParameterGroupStatus_Parse(node: xmlP.XmlNode): s.DBParameterGroupStatus { - return node.strings({ - optional: {"DBParameterGroupName":true,"ParameterApplyStatus":true}, - }); -} - -function DBSubnetGroup_Parse(node: xmlP.XmlNode): s.DBSubnetGroup { - return { - ...node.strings({ - optional: {"DBSubnetGroupName":true,"DBSubnetGroupDescription":true,"VpcId":true,"SubnetGroupStatus":true}, - }), - Subnets: node.getList("Subnets", "Subnet").map(Subnet_Parse), - }; -} - -function Subnet_Parse(node: xmlP.XmlNode): s.Subnet { - return { - ...node.strings({ - optional: {"SubnetIdentifier":true,"SubnetStatus":true}, - }), - SubnetAvailabilityZone: node.first("SubnetAvailabilityZone", false, AvailabilityZone_Parse), - }; -} - -function AvailabilityZone_Parse(node: xmlP.XmlNode): s.AvailabilityZone { - return { - ...node.strings({ - optional: {"Name":true}, - }), - ProvisionedIopsCapable: node.first("ProvisionedIopsCapable", false, x => x.content === 'true'), - }; -} - -function PendingModifiedValues_Parse(node: xmlP.XmlNode): s.PendingModifiedValues { - return { - ...node.strings({ - optional: {"DBInstanceClass":true,"MasterUserPassword":true,"EngineVersion":true,"DBInstanceIdentifier":true}, - }), - AllocatedStorage: node.first("AllocatedStorage", false, x => parseInt(x.content ?? '0')), - Port: node.first("Port", false, x => parseInt(x.content ?? '0')), - BackupRetentionPeriod: node.first("BackupRetentionPeriod", false, x => parseInt(x.content ?? '0')), - MultiAZ: node.first("MultiAZ", false, x => x.content === 'true'), - Iops: node.first("Iops", false, x => parseInt(x.content ?? '0')), - }; -} - -function OptionGroupMembership_Parse(node: xmlP.XmlNode): s.OptionGroupMembership { - return node.strings({ - optional: {"OptionGroupName":true,"Status":true}, - }); -} - -function DBParameterGroup_Parse(node: xmlP.XmlNode): s.DBParameterGroup { - return node.strings({ - optional: {"DBParameterGroupName":true,"DBParameterGroupFamily":true,"Description":true}, - }); -} - -function OptionGroup_Parse(node: xmlP.XmlNode): s.OptionGroup { - return { - ...node.strings({ - optional: {"OptionGroupName":true,"OptionGroupDescription":true,"EngineName":true,"MajorEngineVersion":true,"VpcId":true}, - }), - Options: node.getList("Options", "Option").map(Option_Parse), - AllowsVpcAndNonVpcInstanceMemberships: node.first("AllowsVpcAndNonVpcInstanceMemberships", false, x => x.content === 'true'), - }; -} - -function Option_Parse(node: xmlP.XmlNode): s.Option { - return { - ...node.strings({ - optional: {"OptionName":true,"OptionDescription":true}, - }), - Persistent: node.first("Persistent", false, x => x.content === 'true'), - Port: node.first("Port", false, x => parseInt(x.content ?? '0')), - OptionSettings: node.getList("OptionSettings", "OptionSetting").map(OptionSetting_Parse), - DBSecurityGroupMemberships: node.getList("DBSecurityGroupMemberships", "DBSecurityGroup").map(DBSecurityGroupMembership_Parse), - VpcSecurityGroupMemberships: node.getList("VpcSecurityGroupMemberships", "VpcSecurityGroupMembership").map(VpcSecurityGroupMembership_Parse), - }; -} - -function DBEngineVersion_Parse(node: xmlP.XmlNode): s.DBEngineVersion { - return { - ...node.strings({ - optional: {"Engine":true,"EngineVersion":true,"DBParameterGroupFamily":true,"DBEngineDescription":true,"DBEngineVersionDescription":true}, - }), - DefaultCharacterSet: node.first("DefaultCharacterSet", false, CharacterSet_Parse), - SupportedCharacterSets: node.getList("SupportedCharacterSets", "CharacterSet").map(CharacterSet_Parse), - }; -} - -function CharacterSet_Parse(node: xmlP.XmlNode): s.CharacterSet { - return node.strings({ - optional: {"CharacterSetName":true,"CharacterSetDescription":true}, - }); -} - -function DescribeDBLogFilesDetails_Parse(node: xmlP.XmlNode): s.DescribeDBLogFilesDetails { - return { - ...node.strings({ - optional: {"LogFileName":true}, - }), - LastWritten: node.first("LastWritten", false, x => parseInt(x.content ?? '0')), - Size: node.first("Size", false, x => parseInt(x.content ?? '0')), - }; -} - -function EngineDefaults_Parse(node: xmlP.XmlNode): s.EngineDefaults { - return { - ...node.strings({ - optional: {"DBParameterGroupFamily":true,"Marker":true}, - }), - Parameters: node.getList("Parameters", "Parameter").map(Parameter_Parse), - }; -} - -function EventCategoriesMap_Parse(node: xmlP.XmlNode): s.EventCategoriesMap { - return { - ...node.strings({ - optional: {"SourceType":true}, - }), - EventCategories: node.getList("EventCategories", "EventCategory").map(x => x.content ?? ''), - }; -} - -function Event_Parse(node: xmlP.XmlNode): s.Event { - return { - ...node.strings({ - optional: {"SourceIdentifier":true,"Message":true}, - }), - SourceType: node.first("SourceType", false, x => (x.content ?? '') as s.SourceType), - EventCategories: node.getList("EventCategories", "EventCategory").map(x => x.content ?? ''), - Date: node.first("Date", false, x => xmlP.parseTimestamp(x.content)), - }; -} - -function OptionGroupOption_Parse(node: xmlP.XmlNode): s.OptionGroupOption { - return { - ...node.strings({ - optional: {"Name":true,"Description":true,"EngineName":true,"MajorEngineVersion":true,"MinimumRequiredMinorEngineVersion":true}, - }), - PortRequired: node.first("PortRequired", false, x => x.content === 'true'), - DefaultPort: node.first("DefaultPort", false, x => parseInt(x.content ?? '0')), - OptionsDependedOn: node.getList("OptionsDependedOn", "OptionName").map(x => x.content ?? ''), - Persistent: node.first("Persistent", false, x => x.content === 'true'), - OptionGroupOptionSettings: node.getList("OptionGroupOptionSettings", "OptionGroupOptionSetting").map(OptionGroupOptionSetting_Parse), - }; -} - -function OptionGroupOptionSetting_Parse(node: xmlP.XmlNode): s.OptionGroupOptionSetting { - return { - ...node.strings({ - optional: {"SettingName":true,"SettingDescription":true,"DefaultValue":true,"ApplyType":true,"AllowedValues":true}, - }), - IsModifiable: node.first("IsModifiable", false, x => x.content === 'true'), - }; -} - -function OrderableDBInstanceOption_Parse(node: xmlP.XmlNode): s.OrderableDBInstanceOption { - return { - ...node.strings({ - optional: {"Engine":true,"EngineVersion":true,"DBInstanceClass":true,"LicenseModel":true}, - }), - AvailabilityZones: node.getList("AvailabilityZones", "AvailabilityZone").map(AvailabilityZone_Parse), - MultiAZCapable: node.first("MultiAZCapable", false, x => x.content === 'true'), - ReadReplicaCapable: node.first("ReadReplicaCapable", false, x => x.content === 'true'), - Vpc: node.first("Vpc", false, x => x.content === 'true'), - }; -} - -function ReservedDBInstance_Parse(node: xmlP.XmlNode): s.ReservedDBInstance { - return { - ...node.strings({ - optional: {"ReservedDBInstanceId":true,"ReservedDBInstancesOfferingId":true,"DBInstanceClass":true,"CurrencyCode":true,"ProductDescription":true,"OfferingType":true,"State":true}, - }), - StartTime: node.first("StartTime", false, x => xmlP.parseTimestamp(x.content)), - Duration: node.first("Duration", false, x => parseInt(x.content ?? '0')), - FixedPrice: node.first("FixedPrice", false, x => parseFloat(x.content ?? '0')), - UsagePrice: node.first("UsagePrice", false, x => parseFloat(x.content ?? '0')), - DBInstanceCount: node.first("DBInstanceCount", false, x => parseInt(x.content ?? '0')), - MultiAZ: node.first("MultiAZ", false, x => x.content === 'true'), - RecurringCharges: node.getList("RecurringCharges", "RecurringCharge").map(RecurringCharge_Parse), - }; -} - -function RecurringCharge_Parse(node: xmlP.XmlNode): s.RecurringCharge { - return { - ...node.strings({ - optional: {"RecurringChargeFrequency":true}, - }), - RecurringChargeAmount: node.first("RecurringChargeAmount", false, x => parseFloat(x.content ?? '0')), - }; -} - -function ReservedDBInstancesOffering_Parse(node: xmlP.XmlNode): s.ReservedDBInstancesOffering { - return { - ...node.strings({ - optional: {"ReservedDBInstancesOfferingId":true,"DBInstanceClass":true,"CurrencyCode":true,"ProductDescription":true,"OfferingType":true}, - }), - Duration: node.first("Duration", false, x => parseInt(x.content ?? '0')), - FixedPrice: node.first("FixedPrice", false, x => parseFloat(x.content ?? '0')), - UsagePrice: node.first("UsagePrice", false, x => parseFloat(x.content ?? '0')), - MultiAZ: node.first("MultiAZ", false, x => x.content === 'true'), - RecurringCharges: node.getList("RecurringCharges", "RecurringCharge").map(RecurringCharge_Parse), - }; -} diff --git a/lib/services/rds@2013-02-12/structs.ts b/lib/services/rds@2013-02-12/structs.ts deleted file mode 100644 index 8f0bde9f..00000000 --- a/lib/services/rds@2013-02-12/structs.ts +++ /dev/null @@ -1,1056 +0,0 @@ -// Autogenerated API structures for: Amazon Relational Database Service - -import * as cmnP from "../../encoding/common.ts"; - -// refs: 1 - tags: named, input -export interface AddSourceIdentifierToSubscriptionMessage { - SubscriptionName: string; - SourceIdentifier: string; -} - -// refs: 1 - tags: named, input -export interface AddTagsToResourceMessage { - ResourceName: string; - Tags: Tag[]; -} - -// refs: 1 - tags: named, input -export interface AuthorizeDBSecurityGroupIngressMessage { - DBSecurityGroupName: string; - CIDRIP?: string | null; - EC2SecurityGroupName?: string | null; - EC2SecurityGroupId?: string | null; - EC2SecurityGroupOwnerId?: string | null; -} - -// refs: 1 - tags: named, input -export interface CopyDBSnapshotMessage { - SourceDBSnapshotIdentifier: string; - TargetDBSnapshotIdentifier: string; -} - -// refs: 1 - tags: named, input -export interface CreateDBInstanceMessage { - DBName?: string | null; - DBInstanceIdentifier: string; - AllocatedStorage: number; - DBInstanceClass: string; - Engine: string; - MasterUsername: string; - MasterUserPassword: string; - DBSecurityGroups?: string[] | null; - VpcSecurityGroupIds?: string[] | null; - AvailabilityZone?: string | null; - DBSubnetGroupName?: string | null; - PreferredMaintenanceWindow?: string | null; - DBParameterGroupName?: string | null; - BackupRetentionPeriod?: number | null; - PreferredBackupWindow?: string | null; - Port?: number | null; - MultiAZ?: boolean | null; - EngineVersion?: string | null; - AutoMinorVersionUpgrade?: boolean | null; - LicenseModel?: string | null; - Iops?: number | null; - OptionGroupName?: string | null; - CharacterSetName?: string | null; - PubliclyAccessible?: boolean | null; -} - -// refs: 1 - tags: named, input -export interface CreateDBInstanceReadReplicaMessage { - DBInstanceIdentifier: string; - SourceDBInstanceIdentifier: string; - DBInstanceClass?: string | null; - AvailabilityZone?: string | null; - Port?: number | null; - AutoMinorVersionUpgrade?: boolean | null; - Iops?: number | null; - OptionGroupName?: string | null; - PubliclyAccessible?: boolean | null; -} - -// refs: 1 - tags: named, input -export interface CreateDBParameterGroupMessage { - DBParameterGroupName: string; - DBParameterGroupFamily: string; - Description: string; -} - -// refs: 1 - tags: named, input -export interface CreateDBSecurityGroupMessage { - DBSecurityGroupName: string; - DBSecurityGroupDescription: string; -} - -// refs: 1 - tags: named, input -export interface CreateDBSnapshotMessage { - DBSnapshotIdentifier: string; - DBInstanceIdentifier: string; -} - -// refs: 1 - tags: named, input -export interface CreateDBSubnetGroupMessage { - DBSubnetGroupName: string; - DBSubnetGroupDescription: string; - SubnetIds: string[]; -} - -// refs: 1 - tags: named, input -export interface CreateEventSubscriptionMessage { - SubscriptionName: string; - SnsTopicArn: string; - SourceType?: string | null; - EventCategories?: string[] | null; - SourceIds?: string[] | null; - Enabled?: boolean | null; -} - -// refs: 1 - tags: named, input -export interface CreateOptionGroupMessage { - OptionGroupName: string; - EngineName: string; - MajorEngineVersion: string; - OptionGroupDescription: string; -} - -// refs: 1 - tags: named, input -export interface DeleteDBInstanceMessage { - DBInstanceIdentifier: string; - SkipFinalSnapshot?: boolean | null; - FinalDBSnapshotIdentifier?: string | null; -} - -// refs: 1 - tags: named, input -export interface DeleteDBParameterGroupMessage { - DBParameterGroupName: string; -} - -// refs: 1 - tags: named, input -export interface DeleteDBSecurityGroupMessage { - DBSecurityGroupName: string; -} - -// refs: 1 - tags: named, input -export interface DeleteDBSnapshotMessage { - DBSnapshotIdentifier: string; -} - -// refs: 1 - tags: named, input -export interface DeleteDBSubnetGroupMessage { - DBSubnetGroupName: string; -} - -// refs: 1 - tags: named, input -export interface DeleteEventSubscriptionMessage { - SubscriptionName: string; -} - -// refs: 1 - tags: named, input -export interface DeleteOptionGroupMessage { - OptionGroupName: string; -} - -// refs: 1 - tags: named, input -export interface DescribeDBEngineVersionsMessage { - Engine?: string | null; - EngineVersion?: string | null; - DBParameterGroupFamily?: string | null; - MaxRecords?: number | null; - Marker?: string | null; - DefaultOnly?: boolean | null; - ListSupportedCharacterSets?: boolean | null; -} - -// refs: 1 - tags: named, input -export interface DescribeDBInstancesMessage { - DBInstanceIdentifier?: string | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeDBLogFilesMessage { - DBInstanceIdentifier: string; - FilenameContains?: string | null; - FileLastWritten?: number | null; - FileSize?: number | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeDBParameterGroupsMessage { - DBParameterGroupName?: string | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeDBParametersMessage { - DBParameterGroupName: string; - Source?: string | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeDBSecurityGroupsMessage { - DBSecurityGroupName?: string | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeDBSnapshotsMessage { - DBInstanceIdentifier?: string | null; - DBSnapshotIdentifier?: string | null; - SnapshotType?: string | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeDBSubnetGroupsMessage { - DBSubnetGroupName?: string | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeEngineDefaultParametersMessage { - DBParameterGroupFamily: string; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeEventCategoriesMessage { - SourceType?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeEventSubscriptionsMessage { - SubscriptionName?: string | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeEventsMessage { - SourceIdentifier?: string | null; - SourceType?: SourceType | null; - StartTime?: Date | number | null; - EndTime?: Date | number | null; - Duration?: number | null; - EventCategories?: string[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeOptionGroupOptionsMessage { - EngineName: string; - MajorEngineVersion?: string | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeOptionGroupsMessage { - OptionGroupName?: string | null; - Marker?: string | null; - MaxRecords?: number | null; - EngineName?: string | null; - MajorEngineVersion?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeOrderableDBInstanceOptionsMessage { - Engine: string; - EngineVersion?: string | null; - DBInstanceClass?: string | null; - LicenseModel?: string | null; - Vpc?: boolean | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeReservedDBInstancesMessage { - ReservedDBInstanceId?: string | null; - ReservedDBInstancesOfferingId?: string | null; - DBInstanceClass?: string | null; - Duration?: string | null; - ProductDescription?: string | null; - OfferingType?: string | null; - MultiAZ?: boolean | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeReservedDBInstancesOfferingsMessage { - ReservedDBInstancesOfferingId?: string | null; - DBInstanceClass?: string | null; - Duration?: string | null; - ProductDescription?: string | null; - OfferingType?: string | null; - MultiAZ?: boolean | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DownloadDBLogFilePortionMessage { - DBInstanceIdentifier: string; - LogFileName: string; - Marker?: string | null; - NumberOfLines?: number | null; -} - -// refs: 1 - tags: named, input -export interface ListTagsForResourceMessage { - ResourceName: string; -} - -// refs: 1 - tags: named, input -export interface ModifyDBInstanceMessage { - DBInstanceIdentifier: string; - AllocatedStorage?: number | null; - DBInstanceClass?: string | null; - DBSecurityGroups?: string[] | null; - VpcSecurityGroupIds?: string[] | null; - ApplyImmediately?: boolean | null; - MasterUserPassword?: string | null; - DBParameterGroupName?: string | null; - BackupRetentionPeriod?: number | null; - PreferredBackupWindow?: string | null; - PreferredMaintenanceWindow?: string | null; - MultiAZ?: boolean | null; - EngineVersion?: string | null; - AllowMajorVersionUpgrade?: boolean | null; - AutoMinorVersionUpgrade?: boolean | null; - Iops?: number | null; - OptionGroupName?: string | null; - NewDBInstanceIdentifier?: string | null; -} - -// refs: 1 - tags: named, input -export interface ModifyDBParameterGroupMessage { - DBParameterGroupName: string; - Parameters: Parameter[]; -} - -// refs: 1 - tags: named, input -export interface ModifyDBSubnetGroupMessage { - DBSubnetGroupName: string; - DBSubnetGroupDescription?: string | null; - SubnetIds: string[]; -} - -// refs: 1 - tags: named, input -export interface ModifyEventSubscriptionMessage { - SubscriptionName: string; - SnsTopicArn?: string | null; - SourceType?: string | null; - EventCategories?: string[] | null; - Enabled?: boolean | null; -} - -// refs: 1 - tags: named, input -export interface ModifyOptionGroupMessage { - OptionGroupName: string; - OptionsToInclude?: OptionConfiguration[] | null; - OptionsToRemove?: string[] | null; - ApplyImmediately?: boolean | null; -} - -// refs: 1 - tags: named, input -export interface PromoteReadReplicaMessage { - DBInstanceIdentifier: string; - BackupRetentionPeriod?: number | null; - PreferredBackupWindow?: string | null; -} - -// refs: 1 - tags: named, input -export interface PurchaseReservedDBInstancesOfferingMessage { - ReservedDBInstancesOfferingId: string; - ReservedDBInstanceId?: string | null; - DBInstanceCount?: number | null; -} - -// refs: 1 - tags: named, input -export interface RebootDBInstanceMessage { - DBInstanceIdentifier: string; - ForceFailover?: boolean | null; -} - -// refs: 1 - tags: named, input -export interface RemoveSourceIdentifierFromSubscriptionMessage { - SubscriptionName: string; - SourceIdentifier: string; -} - -// refs: 1 - tags: named, input -export interface RemoveTagsFromResourceMessage { - ResourceName: string; - TagKeys: string[]; -} - -// refs: 1 - tags: named, input -export interface ResetDBParameterGroupMessage { - DBParameterGroupName: string; - ResetAllParameters?: boolean | null; - Parameters?: Parameter[] | null; -} - -// refs: 1 - tags: named, input -export interface RestoreDBInstanceFromDBSnapshotMessage { - DBInstanceIdentifier: string; - DBSnapshotIdentifier: string; - DBInstanceClass?: string | null; - Port?: number | null; - AvailabilityZone?: string | null; - DBSubnetGroupName?: string | null; - MultiAZ?: boolean | null; - PubliclyAccessible?: boolean | null; - AutoMinorVersionUpgrade?: boolean | null; - LicenseModel?: string | null; - DBName?: string | null; - Engine?: string | null; - Iops?: number | null; - OptionGroupName?: string | null; -} - -// refs: 1 - tags: named, input -export interface RestoreDBInstanceToPointInTimeMessage { - SourceDBInstanceIdentifier: string; - TargetDBInstanceIdentifier: string; - RestoreTime?: Date | number | null; - UseLatestRestorableTime?: boolean | null; - DBInstanceClass?: string | null; - Port?: number | null; - AvailabilityZone?: string | null; - DBSubnetGroupName?: string | null; - MultiAZ?: boolean | null; - PubliclyAccessible?: boolean | null; - AutoMinorVersionUpgrade?: boolean | null; - LicenseModel?: string | null; - DBName?: string | null; - Engine?: string | null; - Iops?: number | null; - OptionGroupName?: string | null; -} - -// refs: 1 - tags: named, input -export interface RevokeDBSecurityGroupIngressMessage { - DBSecurityGroupName: string; - CIDRIP?: string | null; - EC2SecurityGroupName?: string | null; - EC2SecurityGroupId?: string | null; - EC2SecurityGroupOwnerId?: string | null; -} - -// refs: 1 - tags: named, output -export interface AddSourceIdentifierToSubscriptionResult { - EventSubscription?: EventSubscription | null; -} - -// refs: 1 - tags: named, output -export interface AuthorizeDBSecurityGroupIngressResult { - DBSecurityGroup?: DBSecurityGroup | null; -} - -// refs: 1 - tags: named, output -export interface CopyDBSnapshotResult { - DBSnapshot?: DBSnapshot | null; -} - -// refs: 1 - tags: named, output -export interface CreateDBInstanceResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface CreateDBInstanceReadReplicaResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface CreateDBParameterGroupResult { - DBParameterGroup?: DBParameterGroup | null; -} - -// refs: 1 - tags: named, output -export interface CreateDBSecurityGroupResult { - DBSecurityGroup?: DBSecurityGroup | null; -} - -// refs: 1 - tags: named, output -export interface CreateDBSnapshotResult { - DBSnapshot?: DBSnapshot | null; -} - -// refs: 1 - tags: named, output -export interface CreateDBSubnetGroupResult { - DBSubnetGroup?: DBSubnetGroup | null; -} - -// refs: 1 - tags: named, output -export interface CreateEventSubscriptionResult { - EventSubscription?: EventSubscription | null; -} - -// refs: 1 - tags: named, output -export interface CreateOptionGroupResult { - OptionGroup?: OptionGroup | null; -} - -// refs: 1 - tags: named, output -export interface DeleteDBInstanceResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface DeleteDBSnapshotResult { - DBSnapshot?: DBSnapshot | null; -} - -// refs: 1 - tags: named, output -export interface DeleteEventSubscriptionResult { - EventSubscription?: EventSubscription | null; -} - -// refs: 1 - tags: named, output -export interface DBEngineVersionMessage { - Marker?: string | null; - DBEngineVersions: DBEngineVersion[]; -} - -// refs: 1 - tags: named, output -export interface DBInstanceMessage { - Marker?: string | null; - DBInstances: DBInstance[]; -} - -// refs: 1 - tags: named, output -export interface DescribeDBLogFilesResponse { - DescribeDBLogFiles: DescribeDBLogFilesDetails[]; - Marker?: string | null; -} - -// refs: 1 - tags: named, output -export interface DBParameterGroupsMessage { - Marker?: string | null; - DBParameterGroups: DBParameterGroup[]; -} - -// refs: 1 - tags: named, output -export interface DBParameterGroupDetails { - Parameters: Parameter[]; - Marker?: string | null; -} - -// refs: 1 - tags: named, output -export interface DBSecurityGroupMessage { - Marker?: string | null; - DBSecurityGroups: DBSecurityGroup[]; -} - -// refs: 1 - tags: named, output -export interface DBSnapshotMessage { - Marker?: string | null; - DBSnapshots: DBSnapshot[]; -} - -// refs: 1 - tags: named, output -export interface DBSubnetGroupMessage { - Marker?: string | null; - DBSubnetGroups: DBSubnetGroup[]; -} - -// refs: 1 - tags: named, output -export interface DescribeEngineDefaultParametersResult { - EngineDefaults?: EngineDefaults | null; -} - -// refs: 1 - tags: named, output -export interface EventCategoriesMessage { - EventCategoriesMapList: EventCategoriesMap[]; -} - -// refs: 1 - tags: named, output -export interface EventSubscriptionsMessage { - Marker?: string | null; - EventSubscriptionsList: EventSubscription[]; -} - -// refs: 1 - tags: named, output -export interface EventsMessage { - Marker?: string | null; - Events: Event[]; -} - -// refs: 1 - tags: named, output -export interface OptionGroupOptionsMessage { - OptionGroupOptions: OptionGroupOption[]; - Marker?: string | null; -} - -// refs: 1 - tags: named, output -export interface OptionGroups { - OptionGroupsList: OptionGroup[]; - Marker?: string | null; -} - -// refs: 1 - tags: named, output -export interface OrderableDBInstanceOptionsMessage { - OrderableDBInstanceOptions: OrderableDBInstanceOption[]; - Marker?: string | null; -} - -// refs: 1 - tags: named, output -export interface ReservedDBInstanceMessage { - Marker?: string | null; - ReservedDBInstances: ReservedDBInstance[]; -} - -// refs: 1 - tags: named, output -export interface ReservedDBInstancesOfferingMessage { - Marker?: string | null; - ReservedDBInstancesOfferings: ReservedDBInstancesOffering[]; -} - -// refs: 1 - tags: named, output -export interface DownloadDBLogFilePortionDetails { - LogFileData?: string | null; - Marker?: string | null; - AdditionalDataPending?: boolean | null; -} - -// refs: 1 - tags: named, output -export interface TagListMessage { - TagList: Tag[]; -} - -// refs: 1 - tags: named, output -export interface ModifyDBInstanceResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface DBParameterGroupNameMessage { - DBParameterGroupName?: string | null; -} - -// refs: 1 - tags: named, output -export interface ModifyDBSubnetGroupResult { - DBSubnetGroup?: DBSubnetGroup | null; -} - -// refs: 1 - tags: named, output -export interface ModifyEventSubscriptionResult { - EventSubscription?: EventSubscription | null; -} - -// refs: 1 - tags: named, output -export interface ModifyOptionGroupResult { - OptionGroup?: OptionGroup | null; -} - -// refs: 1 - tags: named, output -export interface PromoteReadReplicaResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface PurchaseReservedDBInstancesOfferingResult { - ReservedDBInstance?: ReservedDBInstance | null; -} - -// refs: 1 - tags: named, output -export interface RebootDBInstanceResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface RemoveSourceIdentifierFromSubscriptionResult { - EventSubscription?: EventSubscription | null; -} - -// refs: 1 - tags: named, output -export interface RestoreDBInstanceFromDBSnapshotResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface RestoreDBInstanceToPointInTimeResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface RevokeDBSecurityGroupIngressResult { - DBSecurityGroup?: DBSecurityGroup | null; -} - -// refs: 2 - tags: input, named, interface, output -export interface Tag { - Key?: string | null; - Value?: string | null; -} - -// refs: 2 - tags: input, named, enum, output -export type SourceType = -| "db-instance" -| "db-parameter-group" -| "db-security-group" -| "db-snapshot" -| cmnP.UnexpectedEnumValue; - -// refs: 4 - tags: input, named, interface, output -export interface Parameter { - ParameterName?: string | null; - ParameterValue?: string | null; - Description?: string | null; - Source?: string | null; - ApplyType?: string | null; - DataType?: string | null; - AllowedValues?: string | null; - IsModifiable?: boolean | null; - MinimumEngineVersion?: string | null; - ApplyMethod?: ApplyMethod | null; -} - -// refs: 4 - tags: input, named, enum, output -export type ApplyMethod = -| "immediate" -| "pending-reboot" -| cmnP.UnexpectedEnumValue; - -// refs: 1 - tags: input, named, interface -export interface OptionConfiguration { - OptionName: string; - Port?: number | null; - DBSecurityGroupMemberships?: string[] | null; - VpcSecurityGroupMemberships?: string[] | null; - OptionSettings?: OptionSetting[] | null; -} - -// refs: 4 - tags: input, named, interface, output -export interface OptionSetting { - Name?: string | null; - Value?: string | null; - DefaultValue?: string | null; - Description?: string | null; - ApplyType?: string | null; - DataType?: string | null; - AllowedValues?: string | null; - IsModifiable?: boolean | null; - IsCollection?: boolean | null; -} - -// refs: 6 - tags: output, named, interface -export interface EventSubscription { - CustomerAwsId?: string | null; - CustSubscriptionId?: string | null; - SnsTopicArn?: string | null; - Status?: string | null; - SubscriptionCreationTime?: string | null; - SourceType?: string | null; - SourceIdsList: string[]; - EventCategoriesList: string[]; - Enabled?: boolean | null; -} - -// refs: 4 - tags: output, named, interface -export interface DBSecurityGroup { - OwnerId?: string | null; - DBSecurityGroupName?: string | null; - DBSecurityGroupDescription?: string | null; - VpcId?: string | null; - EC2SecurityGroups: EC2SecurityGroup[]; - IPRanges: IPRange[]; -} - -// refs: 4 - tags: output, named, interface -export interface EC2SecurityGroup { - Status?: string | null; - EC2SecurityGroupName?: string | null; - EC2SecurityGroupId?: string | null; - EC2SecurityGroupOwnerId?: string | null; -} - -// refs: 4 - tags: output, named, interface -export interface IPRange { - Status?: string | null; - CIDRIP?: string | null; -} - -// refs: 4 - tags: output, named, interface -export interface DBSnapshot { - DBSnapshotIdentifier?: string | null; - DBInstanceIdentifier?: string | null; - SnapshotCreateTime?: Date | number | null; - Engine?: string | null; - AllocatedStorage?: number | null; - Status?: string | null; - Port?: number | null; - AvailabilityZone?: string | null; - VpcId?: string | null; - InstanceCreateTime?: Date | number | null; - MasterUsername?: string | null; - EngineVersion?: string | null; - LicenseModel?: string | null; - SnapshotType?: string | null; - Iops?: number | null; - OptionGroupName?: string | null; -} - -// refs: 9 - tags: output, named, interface -export interface DBInstance { - DBInstanceIdentifier?: string | null; - DBInstanceClass?: string | null; - Engine?: string | null; - DBInstanceStatus?: string | null; - MasterUsername?: string | null; - DBName?: string | null; - Endpoint?: Endpoint | null; - AllocatedStorage?: number | null; - InstanceCreateTime?: Date | number | null; - PreferredBackupWindow?: string | null; - BackupRetentionPeriod?: number | null; - DBSecurityGroups: DBSecurityGroupMembership[]; - VpcSecurityGroups: VpcSecurityGroupMembership[]; - DBParameterGroups: DBParameterGroupStatus[]; - AvailabilityZone?: string | null; - DBSubnetGroup?: DBSubnetGroup | null; - PreferredMaintenanceWindow?: string | null; - PendingModifiedValues?: PendingModifiedValues | null; - LatestRestorableTime?: Date | number | null; - MultiAZ?: boolean | null; - EngineVersion?: string | null; - AutoMinorVersionUpgrade?: boolean | null; - ReadReplicaSourceDBInstanceIdentifier?: string | null; - ReadReplicaDBInstanceIdentifiers: string[]; - LicenseModel?: string | null; - Iops?: number | null; - OptionGroupMemberships: OptionGroupMembership[]; - CharacterSetName?: string | null; - SecondaryAvailabilityZone?: string | null; - PubliclyAccessible?: boolean | null; -} - -// refs: 9 - tags: output, named, interface -export interface Endpoint { - Address?: string | null; - Port?: number | null; -} - -// refs: 12 - tags: output, named, interface -export interface DBSecurityGroupMembership { - DBSecurityGroupName?: string | null; - Status?: string | null; -} - -// refs: 12 - tags: output, named, interface -export interface VpcSecurityGroupMembership { - VpcSecurityGroupId?: string | null; - Status?: string | null; -} - -// refs: 9 - tags: output, named, interface -export interface DBParameterGroupStatus { - DBParameterGroupName?: string | null; - ParameterApplyStatus?: string | null; -} - -// refs: 12 - tags: output, named, interface -export interface DBSubnetGroup { - DBSubnetGroupName?: string | null; - DBSubnetGroupDescription?: string | null; - VpcId?: string | null; - SubnetGroupStatus?: string | null; - Subnets: Subnet[]; -} - -// refs: 12 - tags: output, named, interface -export interface Subnet { - SubnetIdentifier?: string | null; - SubnetAvailabilityZone?: AvailabilityZone | null; - SubnetStatus?: string | null; -} - -// refs: 13 - tags: output, named, interface -export interface AvailabilityZone { - Name?: string | null; - ProvisionedIopsCapable?: boolean | null; -} - -// refs: 9 - tags: output, named, interface -export interface PendingModifiedValues { - DBInstanceClass?: string | null; - AllocatedStorage?: number | null; - MasterUserPassword?: string | null; - Port?: number | null; - BackupRetentionPeriod?: number | null; - MultiAZ?: boolean | null; - EngineVersion?: string | null; - Iops?: number | null; - DBInstanceIdentifier?: string | null; -} - -// refs: 9 - tags: output, named, interface -export interface OptionGroupMembership { - OptionGroupName?: string | null; - Status?: string | null; -} - -// refs: 2 - tags: output, named, interface -export interface DBParameterGroup { - DBParameterGroupName?: string | null; - DBParameterGroupFamily?: string | null; - Description?: string | null; -} - -// refs: 3 - tags: output, named, interface -export interface OptionGroup { - OptionGroupName?: string | null; - OptionGroupDescription?: string | null; - EngineName?: string | null; - MajorEngineVersion?: string | null; - Options: Option[]; - AllowsVpcAndNonVpcInstanceMemberships?: boolean | null; - VpcId?: string | null; -} - -// refs: 3 - tags: output, named, interface -export interface Option { - OptionName?: string | null; - OptionDescription?: string | null; - Persistent?: boolean | null; - Port?: number | null; - OptionSettings: OptionSetting[]; - DBSecurityGroupMemberships: DBSecurityGroupMembership[]; - VpcSecurityGroupMemberships: VpcSecurityGroupMembership[]; -} - -// refs: 1 - tags: output, named, interface -export interface DBEngineVersion { - Engine?: string | null; - EngineVersion?: string | null; - DBParameterGroupFamily?: string | null; - DBEngineDescription?: string | null; - DBEngineVersionDescription?: string | null; - DefaultCharacterSet?: CharacterSet | null; - SupportedCharacterSets: CharacterSet[]; -} - -// refs: 2 - tags: output, named, interface -export interface CharacterSet { - CharacterSetName?: string | null; - CharacterSetDescription?: string | null; -} - -// refs: 1 - tags: output, named, interface -export interface DescribeDBLogFilesDetails { - LogFileName?: string | null; - LastWritten?: number | null; - Size?: number | null; -} - -// refs: 1 - tags: output, named, interface -export interface EngineDefaults { - DBParameterGroupFamily?: string | null; - Marker?: string | null; - Parameters: Parameter[]; -} - -// refs: 1 - tags: output, named, interface -export interface EventCategoriesMap { - SourceType?: string | null; - EventCategories: string[]; -} - -// refs: 1 - tags: output, named, interface -export interface Event { - SourceIdentifier?: string | null; - SourceType?: SourceType | null; - Message?: string | null; - EventCategories: string[]; - Date?: Date | number | null; -} - -// refs: 1 - tags: output, named, interface -export interface OptionGroupOption { - Name?: string | null; - Description?: string | null; - EngineName?: string | null; - MajorEngineVersion?: string | null; - MinimumRequiredMinorEngineVersion?: string | null; - PortRequired?: boolean | null; - DefaultPort?: number | null; - OptionsDependedOn: string[]; - Persistent?: boolean | null; - OptionGroupOptionSettings: OptionGroupOptionSetting[]; -} - -// refs: 1 - tags: output, named, interface -export interface OptionGroupOptionSetting { - SettingName?: string | null; - SettingDescription?: string | null; - DefaultValue?: string | null; - ApplyType?: string | null; - AllowedValues?: string | null; - IsModifiable?: boolean | null; -} - -// refs: 1 - tags: output, named, interface -export interface OrderableDBInstanceOption { - Engine?: string | null; - EngineVersion?: string | null; - DBInstanceClass?: string | null; - LicenseModel?: string | null; - AvailabilityZones: AvailabilityZone[]; - MultiAZCapable?: boolean | null; - ReadReplicaCapable?: boolean | null; - Vpc?: boolean | null; -} - -// refs: 2 - tags: output, named, interface -export interface ReservedDBInstance { - ReservedDBInstanceId?: string | null; - ReservedDBInstancesOfferingId?: string | null; - DBInstanceClass?: string | null; - StartTime?: Date | number | null; - Duration?: number | null; - FixedPrice?: number | null; - UsagePrice?: number | null; - CurrencyCode?: string | null; - DBInstanceCount?: number | null; - ProductDescription?: string | null; - OfferingType?: string | null; - MultiAZ?: boolean | null; - State?: string | null; - RecurringCharges: RecurringCharge[]; -} - -// refs: 3 - tags: output, named, interface -export interface RecurringCharge { - RecurringChargeAmount?: number | null; - RecurringChargeFrequency?: string | null; -} - -// refs: 1 - tags: output, named, interface -export interface ReservedDBInstancesOffering { - ReservedDBInstancesOfferingId?: string | null; - DBInstanceClass?: string | null; - Duration?: number | null; - FixedPrice?: number | null; - UsagePrice?: number | null; - CurrencyCode?: string | null; - ProductDescription?: string | null; - OfferingType?: string | null; - MultiAZ?: boolean | null; - RecurringCharges: RecurringCharge[]; -} diff --git a/lib/services/rds@2013-09-09/mod.ts b/lib/services/rds@2013-09-09/mod.ts deleted file mode 100644 index d2598ff9..00000000 --- a/lib/services/rds@2013-09-09/mod.ts +++ /dev/null @@ -1,1532 +0,0 @@ -// Autogenerated API client for: Amazon Relational Database Service - -interface RequestConfig { - abortSignal?: AbortSignal; -} - -export * from "./structs.ts"; -import * as client from "../../client/common.ts"; -import * as qsP from "../../encoding/querystring.ts"; -import * as xmlP from "../../encoding/xml.ts"; -import type * as s from "./structs.ts"; - -export default class RDS { - #client: client.ServiceClient; - constructor(apiFactory: client.ApiFactory) { - this.#client = apiFactory.buildServiceClient(RDS.ApiMetadata); - } - - static ApiMetadata: client.ApiMetadata = { - "apiVersion": "2013-09-09", - "endpointPrefix": "rds", - "protocol": "query", - "serviceAbbreviation": "Amazon RDS", - "serviceFullName": "Amazon Relational Database Service", - "serviceId": "RDS", - "signatureVersion": "v4", - "uid": "rds-2013-09-09", - "xmlNamespace": "http://rds.amazonaws.com/doc/2013-09-09/" - }; - - async addSourceIdentifierToSubscription( - {abortSignal, ...params}: RequestConfig & s.AddSourceIdentifierToSubscriptionMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SubscriptionName", (params["SubscriptionName"] ?? '').toString()); - body.append(prefix+"SourceIdentifier", (params["SourceIdentifier"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "AddSourceIdentifierToSubscription", - }); - const xml = xmlP.readXmlResult(await resp.text(), "AddSourceIdentifierToSubscriptionResult"); - return { - EventSubscription: xml.first("EventSubscription", false, EventSubscription_Parse), - }; - } - - async addTagsToResource( - {abortSignal, ...params}: RequestConfig & s.AddTagsToResourceMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"ResourceName", (params["ResourceName"] ?? '').toString()); - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "AddTagsToResource", - }); - await resp.arrayBuffer(); // consume body without use - } - - async authorizeDBSecurityGroupIngress( - {abortSignal, ...params}: RequestConfig & s.AuthorizeDBSecurityGroupIngressMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSecurityGroupName", (params["DBSecurityGroupName"] ?? '').toString()); - if ("CIDRIP" in params) body.append(prefix+"CIDRIP", (params["CIDRIP"] ?? '').toString()); - if ("EC2SecurityGroupName" in params) body.append(prefix+"EC2SecurityGroupName", (params["EC2SecurityGroupName"] ?? '').toString()); - if ("EC2SecurityGroupId" in params) body.append(prefix+"EC2SecurityGroupId", (params["EC2SecurityGroupId"] ?? '').toString()); - if ("EC2SecurityGroupOwnerId" in params) body.append(prefix+"EC2SecurityGroupOwnerId", (params["EC2SecurityGroupOwnerId"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "AuthorizeDBSecurityGroupIngress", - }); - const xml = xmlP.readXmlResult(await resp.text(), "AuthorizeDBSecurityGroupIngressResult"); - return { - DBSecurityGroup: xml.first("DBSecurityGroup", false, DBSecurityGroup_Parse), - }; - } - - async copyDBSnapshot( - {abortSignal, ...params}: RequestConfig & s.CopyDBSnapshotMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SourceDBSnapshotIdentifier", (params["SourceDBSnapshotIdentifier"] ?? '').toString()); - body.append(prefix+"TargetDBSnapshotIdentifier", (params["TargetDBSnapshotIdentifier"] ?? '').toString()); - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CopyDBSnapshot", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CopyDBSnapshotResult"); - return { - DBSnapshot: xml.first("DBSnapshot", false, DBSnapshot_Parse), - }; - } - - async createDBInstance( - {abortSignal, ...params}: RequestConfig & s.CreateDBInstanceMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("DBName" in params) body.append(prefix+"DBName", (params["DBName"] ?? '').toString()); - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - body.append(prefix+"AllocatedStorage", (params["AllocatedStorage"] ?? '').toString()); - body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - body.append(prefix+"Engine", (params["Engine"] ?? '').toString()); - body.append(prefix+"MasterUsername", (params["MasterUsername"] ?? '').toString()); - body.append(prefix+"MasterUserPassword", (params["MasterUserPassword"] ?? '').toString()); - if (params["DBSecurityGroups"]) qsP.appendList(body, prefix+"DBSecurityGroups", params["DBSecurityGroups"], {"entryPrefix":".DBSecurityGroupName."}) - if (params["VpcSecurityGroupIds"]) qsP.appendList(body, prefix+"VpcSecurityGroupIds", params["VpcSecurityGroupIds"], {"entryPrefix":".VpcSecurityGroupId."}) - if ("AvailabilityZone" in params) body.append(prefix+"AvailabilityZone", (params["AvailabilityZone"] ?? '').toString()); - if ("DBSubnetGroupName" in params) body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - if ("PreferredMaintenanceWindow" in params) body.append(prefix+"PreferredMaintenanceWindow", (params["PreferredMaintenanceWindow"] ?? '').toString()); - if ("DBParameterGroupName" in params) body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - if ("BackupRetentionPeriod" in params) body.append(prefix+"BackupRetentionPeriod", (params["BackupRetentionPeriod"] ?? '').toString()); - if ("PreferredBackupWindow" in params) body.append(prefix+"PreferredBackupWindow", (params["PreferredBackupWindow"] ?? '').toString()); - if ("Port" in params) body.append(prefix+"Port", (params["Port"] ?? '').toString()); - if ("MultiAZ" in params) body.append(prefix+"MultiAZ", (params["MultiAZ"] ?? '').toString()); - if ("EngineVersion" in params) body.append(prefix+"EngineVersion", (params["EngineVersion"] ?? '').toString()); - if ("AutoMinorVersionUpgrade" in params) body.append(prefix+"AutoMinorVersionUpgrade", (params["AutoMinorVersionUpgrade"] ?? '').toString()); - if ("LicenseModel" in params) body.append(prefix+"LicenseModel", (params["LicenseModel"] ?? '').toString()); - if ("Iops" in params) body.append(prefix+"Iops", (params["Iops"] ?? '').toString()); - if ("OptionGroupName" in params) body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - if ("CharacterSetName" in params) body.append(prefix+"CharacterSetName", (params["CharacterSetName"] ?? '').toString()); - if ("PubliclyAccessible" in params) body.append(prefix+"PubliclyAccessible", (params["PubliclyAccessible"] ?? '').toString()); - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateDBInstance", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateDBInstanceResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async createDBInstanceReadReplica( - {abortSignal, ...params}: RequestConfig & s.CreateDBInstanceReadReplicaMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - body.append(prefix+"SourceDBInstanceIdentifier", (params["SourceDBInstanceIdentifier"] ?? '').toString()); - if ("DBInstanceClass" in params) body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - if ("AvailabilityZone" in params) body.append(prefix+"AvailabilityZone", (params["AvailabilityZone"] ?? '').toString()); - if ("Port" in params) body.append(prefix+"Port", (params["Port"] ?? '').toString()); - if ("AutoMinorVersionUpgrade" in params) body.append(prefix+"AutoMinorVersionUpgrade", (params["AutoMinorVersionUpgrade"] ?? '').toString()); - if ("Iops" in params) body.append(prefix+"Iops", (params["Iops"] ?? '').toString()); - if ("OptionGroupName" in params) body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - if ("PubliclyAccessible" in params) body.append(prefix+"PubliclyAccessible", (params["PubliclyAccessible"] ?? '').toString()); - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - if ("DBSubnetGroupName" in params) body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateDBInstanceReadReplica", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateDBInstanceReadReplicaResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async createDBParameterGroup( - {abortSignal, ...params}: RequestConfig & s.CreateDBParameterGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - body.append(prefix+"DBParameterGroupFamily", (params["DBParameterGroupFamily"] ?? '').toString()); - body.append(prefix+"Description", (params["Description"] ?? '').toString()); - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateDBParameterGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateDBParameterGroupResult"); - return { - DBParameterGroup: xml.first("DBParameterGroup", false, DBParameterGroup_Parse), - }; - } - - async createDBSecurityGroup( - {abortSignal, ...params}: RequestConfig & s.CreateDBSecurityGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSecurityGroupName", (params["DBSecurityGroupName"] ?? '').toString()); - body.append(prefix+"DBSecurityGroupDescription", (params["DBSecurityGroupDescription"] ?? '').toString()); - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateDBSecurityGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateDBSecurityGroupResult"); - return { - DBSecurityGroup: xml.first("DBSecurityGroup", false, DBSecurityGroup_Parse), - }; - } - - async createDBSnapshot( - {abortSignal, ...params}: RequestConfig & s.CreateDBSnapshotMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSnapshotIdentifier", (params["DBSnapshotIdentifier"] ?? '').toString()); - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateDBSnapshot", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateDBSnapshotResult"); - return { - DBSnapshot: xml.first("DBSnapshot", false, DBSnapshot_Parse), - }; - } - - async createDBSubnetGroup( - {abortSignal, ...params}: RequestConfig & s.CreateDBSubnetGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - body.append(prefix+"DBSubnetGroupDescription", (params["DBSubnetGroupDescription"] ?? '').toString()); - if (params["SubnetIds"]) qsP.appendList(body, prefix+"SubnetIds", params["SubnetIds"], {"entryPrefix":".SubnetIdentifier."}) - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateDBSubnetGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateDBSubnetGroupResult"); - return { - DBSubnetGroup: xml.first("DBSubnetGroup", false, DBSubnetGroup_Parse), - }; - } - - async createEventSubscription( - {abortSignal, ...params}: RequestConfig & s.CreateEventSubscriptionMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SubscriptionName", (params["SubscriptionName"] ?? '').toString()); - body.append(prefix+"SnsTopicArn", (params["SnsTopicArn"] ?? '').toString()); - if ("SourceType" in params) body.append(prefix+"SourceType", (params["SourceType"] ?? '').toString()); - if (params["EventCategories"]) qsP.appendList(body, prefix+"EventCategories", params["EventCategories"], {"entryPrefix":".EventCategory."}) - if (params["SourceIds"]) qsP.appendList(body, prefix+"SourceIds", params["SourceIds"], {"entryPrefix":".SourceId."}) - if ("Enabled" in params) body.append(prefix+"Enabled", (params["Enabled"] ?? '').toString()); - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateEventSubscription", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateEventSubscriptionResult"); - return { - EventSubscription: xml.first("EventSubscription", false, EventSubscription_Parse), - }; - } - - async createOptionGroup( - {abortSignal, ...params}: RequestConfig & s.CreateOptionGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - body.append(prefix+"EngineName", (params["EngineName"] ?? '').toString()); - body.append(prefix+"MajorEngineVersion", (params["MajorEngineVersion"] ?? '').toString()); - body.append(prefix+"OptionGroupDescription", (params["OptionGroupDescription"] ?? '').toString()); - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateOptionGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateOptionGroupResult"); - return { - OptionGroup: xml.first("OptionGroup", false, OptionGroup_Parse), - }; - } - - async deleteDBInstance( - {abortSignal, ...params}: RequestConfig & s.DeleteDBInstanceMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - if ("SkipFinalSnapshot" in params) body.append(prefix+"SkipFinalSnapshot", (params["SkipFinalSnapshot"] ?? '').toString()); - if ("FinalDBSnapshotIdentifier" in params) body.append(prefix+"FinalDBSnapshotIdentifier", (params["FinalDBSnapshotIdentifier"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteDBInstance", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DeleteDBInstanceResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async deleteDBParameterGroup( - {abortSignal, ...params}: RequestConfig & s.DeleteDBParameterGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteDBParameterGroup", - }); - await resp.arrayBuffer(); // consume body without use - } - - async deleteDBSecurityGroup( - {abortSignal, ...params}: RequestConfig & s.DeleteDBSecurityGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSecurityGroupName", (params["DBSecurityGroupName"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteDBSecurityGroup", - }); - await resp.arrayBuffer(); // consume body without use - } - - async deleteDBSnapshot( - {abortSignal, ...params}: RequestConfig & s.DeleteDBSnapshotMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSnapshotIdentifier", (params["DBSnapshotIdentifier"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteDBSnapshot", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DeleteDBSnapshotResult"); - return { - DBSnapshot: xml.first("DBSnapshot", false, DBSnapshot_Parse), - }; - } - - async deleteDBSubnetGroup( - {abortSignal, ...params}: RequestConfig & s.DeleteDBSubnetGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteDBSubnetGroup", - }); - await resp.arrayBuffer(); // consume body without use - } - - async deleteEventSubscription( - {abortSignal, ...params}: RequestConfig & s.DeleteEventSubscriptionMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SubscriptionName", (params["SubscriptionName"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteEventSubscription", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DeleteEventSubscriptionResult"); - return { - EventSubscription: xml.first("EventSubscription", false, EventSubscription_Parse), - }; - } - - async deleteOptionGroup( - {abortSignal, ...params}: RequestConfig & s.DeleteOptionGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteOptionGroup", - }); - await resp.arrayBuffer(); // consume body without use - } - - async describeDBEngineVersions( - {abortSignal, ...params}: RequestConfig & s.DescribeDBEngineVersionsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("Engine" in params) body.append(prefix+"Engine", (params["Engine"] ?? '').toString()); - if ("EngineVersion" in params) body.append(prefix+"EngineVersion", (params["EngineVersion"] ?? '').toString()); - if ("DBParameterGroupFamily" in params) body.append(prefix+"DBParameterGroupFamily", (params["DBParameterGroupFamily"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - if ("DefaultOnly" in params) body.append(prefix+"DefaultOnly", (params["DefaultOnly"] ?? '').toString()); - if ("ListSupportedCharacterSets" in params) body.append(prefix+"ListSupportedCharacterSets", (params["ListSupportedCharacterSets"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBEngineVersions", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBEngineVersionsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - DBEngineVersions: xml.getList("DBEngineVersions", "DBEngineVersion").map(DBEngineVersion_Parse), - }; - } - - async describeDBInstances( - {abortSignal, ...params}: RequestConfig & s.DescribeDBInstancesMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("DBInstanceIdentifier" in params) body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBInstances", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBInstancesResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - DBInstances: xml.getList("DBInstances", "DBInstance").map(DBInstance_Parse), - }; - } - - async describeDBLogFiles( - {abortSignal, ...params}: RequestConfig & s.DescribeDBLogFilesMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - if ("FilenameContains" in params) body.append(prefix+"FilenameContains", (params["FilenameContains"] ?? '').toString()); - if ("FileLastWritten" in params) body.append(prefix+"FileLastWritten", (params["FileLastWritten"] ?? '').toString()); - if ("FileSize" in params) body.append(prefix+"FileSize", (params["FileSize"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBLogFiles", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBLogFilesResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - DescribeDBLogFiles: xml.getList("DescribeDBLogFiles", "DescribeDBLogFilesDetails").map(DescribeDBLogFilesDetails_Parse), - }; - } - - async describeDBParameterGroups( - {abortSignal, ...params}: RequestConfig & s.DescribeDBParameterGroupsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("DBParameterGroupName" in params) body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBParameterGroups", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBParameterGroupsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - DBParameterGroups: xml.getList("DBParameterGroups", "DBParameterGroup").map(DBParameterGroup_Parse), - }; - } - - async describeDBParameters( - {abortSignal, ...params}: RequestConfig & s.DescribeDBParametersMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - if ("Source" in params) body.append(prefix+"Source", (params["Source"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBParameters", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBParametersResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - Parameters: xml.getList("Parameters", "Parameter").map(Parameter_Parse), - }; - } - - async describeDBSecurityGroups( - {abortSignal, ...params}: RequestConfig & s.DescribeDBSecurityGroupsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("DBSecurityGroupName" in params) body.append(prefix+"DBSecurityGroupName", (params["DBSecurityGroupName"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBSecurityGroups", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBSecurityGroupsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - DBSecurityGroups: xml.getList("DBSecurityGroups", "DBSecurityGroup").map(DBSecurityGroup_Parse), - }; - } - - async describeDBSnapshots( - {abortSignal, ...params}: RequestConfig & s.DescribeDBSnapshotsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("DBInstanceIdentifier" in params) body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - if ("DBSnapshotIdentifier" in params) body.append(prefix+"DBSnapshotIdentifier", (params["DBSnapshotIdentifier"] ?? '').toString()); - if ("SnapshotType" in params) body.append(prefix+"SnapshotType", (params["SnapshotType"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBSnapshots", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBSnapshotsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - DBSnapshots: xml.getList("DBSnapshots", "DBSnapshot").map(DBSnapshot_Parse), - }; - } - - async describeDBSubnetGroups( - {abortSignal, ...params}: RequestConfig & s.DescribeDBSubnetGroupsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("DBSubnetGroupName" in params) body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBSubnetGroups", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBSubnetGroupsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - DBSubnetGroups: xml.getList("DBSubnetGroups", "DBSubnetGroup").map(DBSubnetGroup_Parse), - }; - } - - async describeEngineDefaultParameters( - {abortSignal, ...params}: RequestConfig & s.DescribeEngineDefaultParametersMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBParameterGroupFamily", (params["DBParameterGroupFamily"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeEngineDefaultParameters", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeEngineDefaultParametersResult"); - return { - EngineDefaults: xml.first("EngineDefaults", false, EngineDefaults_Parse), - }; - } - - async describeEventCategories( - {abortSignal, ...params}: RequestConfig & s.DescribeEventCategoriesMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("SourceType" in params) body.append(prefix+"SourceType", (params["SourceType"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeEventCategories", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeEventCategoriesResult"); - return { - EventCategoriesMapList: xml.getList("EventCategoriesMapList", "EventCategoriesMap").map(EventCategoriesMap_Parse), - }; - } - - async describeEventSubscriptions( - {abortSignal, ...params}: RequestConfig & s.DescribeEventSubscriptionsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("SubscriptionName" in params) body.append(prefix+"SubscriptionName", (params["SubscriptionName"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeEventSubscriptions", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeEventSubscriptionsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - EventSubscriptionsList: xml.getList("EventSubscriptionsList", "EventSubscription").map(EventSubscription_Parse), - }; - } - - async describeEvents( - {abortSignal, ...params}: RequestConfig & s.DescribeEventsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("SourceIdentifier" in params) body.append(prefix+"SourceIdentifier", (params["SourceIdentifier"] ?? '').toString()); - if ("SourceType" in params) body.append(prefix+"SourceType", (params["SourceType"] ?? '').toString()); - if ("StartTime" in params) body.append(prefix+"StartTime", qsP.encodeDate_iso8601(params["StartTime"])); - if ("EndTime" in params) body.append(prefix+"EndTime", qsP.encodeDate_iso8601(params["EndTime"])); - if ("Duration" in params) body.append(prefix+"Duration", (params["Duration"] ?? '').toString()); - if (params["EventCategories"]) qsP.appendList(body, prefix+"EventCategories", params["EventCategories"], {"entryPrefix":".EventCategory."}) - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeEvents", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeEventsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - Events: xml.getList("Events", "Event").map(Event_Parse), - }; - } - - async describeOptionGroupOptions( - {abortSignal, ...params}: RequestConfig & s.DescribeOptionGroupOptionsMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"EngineName", (params["EngineName"] ?? '').toString()); - if ("MajorEngineVersion" in params) body.append(prefix+"MajorEngineVersion", (params["MajorEngineVersion"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeOptionGroupOptions", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeOptionGroupOptionsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - OptionGroupOptions: xml.getList("OptionGroupOptions", "OptionGroupOption").map(OptionGroupOption_Parse), - }; - } - - async describeOptionGroups( - {abortSignal, ...params}: RequestConfig & s.DescribeOptionGroupsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("OptionGroupName" in params) body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("EngineName" in params) body.append(prefix+"EngineName", (params["EngineName"] ?? '').toString()); - if ("MajorEngineVersion" in params) body.append(prefix+"MajorEngineVersion", (params["MajorEngineVersion"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeOptionGroups", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeOptionGroupsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - OptionGroupsList: xml.getList("OptionGroupsList", "OptionGroup").map(OptionGroup_Parse), - }; - } - - async describeOrderableDBInstanceOptions( - {abortSignal, ...params}: RequestConfig & s.DescribeOrderableDBInstanceOptionsMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"Engine", (params["Engine"] ?? '').toString()); - if ("EngineVersion" in params) body.append(prefix+"EngineVersion", (params["EngineVersion"] ?? '').toString()); - if ("DBInstanceClass" in params) body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - if ("LicenseModel" in params) body.append(prefix+"LicenseModel", (params["LicenseModel"] ?? '').toString()); - if ("Vpc" in params) body.append(prefix+"Vpc", (params["Vpc"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeOrderableDBInstanceOptions", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeOrderableDBInstanceOptionsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - OrderableDBInstanceOptions: xml.getList("OrderableDBInstanceOptions", "OrderableDBInstanceOption").map(OrderableDBInstanceOption_Parse), - }; - } - - async describeReservedDBInstances( - {abortSignal, ...params}: RequestConfig & s.DescribeReservedDBInstancesMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("ReservedDBInstanceId" in params) body.append(prefix+"ReservedDBInstanceId", (params["ReservedDBInstanceId"] ?? '').toString()); - if ("ReservedDBInstancesOfferingId" in params) body.append(prefix+"ReservedDBInstancesOfferingId", (params["ReservedDBInstancesOfferingId"] ?? '').toString()); - if ("DBInstanceClass" in params) body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - if ("Duration" in params) body.append(prefix+"Duration", (params["Duration"] ?? '').toString()); - if ("ProductDescription" in params) body.append(prefix+"ProductDescription", (params["ProductDescription"] ?? '').toString()); - if ("OfferingType" in params) body.append(prefix+"OfferingType", (params["OfferingType"] ?? '').toString()); - if ("MultiAZ" in params) body.append(prefix+"MultiAZ", (params["MultiAZ"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeReservedDBInstances", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeReservedDBInstancesResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - ReservedDBInstances: xml.getList("ReservedDBInstances", "ReservedDBInstance").map(ReservedDBInstance_Parse), - }; - } - - async describeReservedDBInstancesOfferings( - {abortSignal, ...params}: RequestConfig & s.DescribeReservedDBInstancesOfferingsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("ReservedDBInstancesOfferingId" in params) body.append(prefix+"ReservedDBInstancesOfferingId", (params["ReservedDBInstancesOfferingId"] ?? '').toString()); - if ("DBInstanceClass" in params) body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - if ("Duration" in params) body.append(prefix+"Duration", (params["Duration"] ?? '').toString()); - if ("ProductDescription" in params) body.append(prefix+"ProductDescription", (params["ProductDescription"] ?? '').toString()); - if ("OfferingType" in params) body.append(prefix+"OfferingType", (params["OfferingType"] ?? '').toString()); - if ("MultiAZ" in params) body.append(prefix+"MultiAZ", (params["MultiAZ"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeReservedDBInstancesOfferings", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeReservedDBInstancesOfferingsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - ReservedDBInstancesOfferings: xml.getList("ReservedDBInstancesOfferings", "ReservedDBInstancesOffering").map(ReservedDBInstancesOffering_Parse), - }; - } - - async downloadDBLogFilePortion( - {abortSignal, ...params}: RequestConfig & s.DownloadDBLogFilePortionMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - body.append(prefix+"LogFileName", (params["LogFileName"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - if ("NumberOfLines" in params) body.append(prefix+"NumberOfLines", (params["NumberOfLines"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DownloadDBLogFilePortion", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DownloadDBLogFilePortionResult"); - return { - ...xml.strings({ - optional: {"LogFileData":true,"Marker":true}, - }), - AdditionalDataPending: xml.first("AdditionalDataPending", false, x => x.content === 'true'), - }; - } - - async listTagsForResource( - {abortSignal, ...params}: RequestConfig & s.ListTagsForResourceMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"ResourceName", (params["ResourceName"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "ListTagsForResource", - }); - const xml = xmlP.readXmlResult(await resp.text(), "ListTagsForResourceResult"); - return { - TagList: xml.getList("TagList", "Tag").map(Tag_Parse), - }; - } - - async modifyDBInstance( - {abortSignal, ...params}: RequestConfig & s.ModifyDBInstanceMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - if ("AllocatedStorage" in params) body.append(prefix+"AllocatedStorage", (params["AllocatedStorage"] ?? '').toString()); - if ("DBInstanceClass" in params) body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - if (params["DBSecurityGroups"]) qsP.appendList(body, prefix+"DBSecurityGroups", params["DBSecurityGroups"], {"entryPrefix":".DBSecurityGroupName."}) - if (params["VpcSecurityGroupIds"]) qsP.appendList(body, prefix+"VpcSecurityGroupIds", params["VpcSecurityGroupIds"], {"entryPrefix":".VpcSecurityGroupId."}) - if ("ApplyImmediately" in params) body.append(prefix+"ApplyImmediately", (params["ApplyImmediately"] ?? '').toString()); - if ("MasterUserPassword" in params) body.append(prefix+"MasterUserPassword", (params["MasterUserPassword"] ?? '').toString()); - if ("DBParameterGroupName" in params) body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - if ("BackupRetentionPeriod" in params) body.append(prefix+"BackupRetentionPeriod", (params["BackupRetentionPeriod"] ?? '').toString()); - if ("PreferredBackupWindow" in params) body.append(prefix+"PreferredBackupWindow", (params["PreferredBackupWindow"] ?? '').toString()); - if ("PreferredMaintenanceWindow" in params) body.append(prefix+"PreferredMaintenanceWindow", (params["PreferredMaintenanceWindow"] ?? '').toString()); - if ("MultiAZ" in params) body.append(prefix+"MultiAZ", (params["MultiAZ"] ?? '').toString()); - if ("EngineVersion" in params) body.append(prefix+"EngineVersion", (params["EngineVersion"] ?? '').toString()); - if ("AllowMajorVersionUpgrade" in params) body.append(prefix+"AllowMajorVersionUpgrade", (params["AllowMajorVersionUpgrade"] ?? '').toString()); - if ("AutoMinorVersionUpgrade" in params) body.append(prefix+"AutoMinorVersionUpgrade", (params["AutoMinorVersionUpgrade"] ?? '').toString()); - if ("Iops" in params) body.append(prefix+"Iops", (params["Iops"] ?? '').toString()); - if ("OptionGroupName" in params) body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - if ("NewDBInstanceIdentifier" in params) body.append(prefix+"NewDBInstanceIdentifier", (params["NewDBInstanceIdentifier"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "ModifyDBInstance", - }); - const xml = xmlP.readXmlResult(await resp.text(), "ModifyDBInstanceResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async modifyDBParameterGroup( - {abortSignal, ...params}: RequestConfig & s.ModifyDBParameterGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - if (params["Parameters"]) qsP.appendList(body, prefix+"Parameters", params["Parameters"], {"appender":Parameter_Serialize,"entryPrefix":".Parameter."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "ModifyDBParameterGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "ModifyDBParameterGroupResult"); - return xml.strings({ - optional: {"DBParameterGroupName":true}, - }); - } - - async modifyDBSubnetGroup( - {abortSignal, ...params}: RequestConfig & s.ModifyDBSubnetGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - if ("DBSubnetGroupDescription" in params) body.append(prefix+"DBSubnetGroupDescription", (params["DBSubnetGroupDescription"] ?? '').toString()); - if (params["SubnetIds"]) qsP.appendList(body, prefix+"SubnetIds", params["SubnetIds"], {"entryPrefix":".SubnetIdentifier."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "ModifyDBSubnetGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "ModifyDBSubnetGroupResult"); - return { - DBSubnetGroup: xml.first("DBSubnetGroup", false, DBSubnetGroup_Parse), - }; - } - - async modifyEventSubscription( - {abortSignal, ...params}: RequestConfig & s.ModifyEventSubscriptionMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SubscriptionName", (params["SubscriptionName"] ?? '').toString()); - if ("SnsTopicArn" in params) body.append(prefix+"SnsTopicArn", (params["SnsTopicArn"] ?? '').toString()); - if ("SourceType" in params) body.append(prefix+"SourceType", (params["SourceType"] ?? '').toString()); - if (params["EventCategories"]) qsP.appendList(body, prefix+"EventCategories", params["EventCategories"], {"entryPrefix":".EventCategory."}) - if ("Enabled" in params) body.append(prefix+"Enabled", (params["Enabled"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "ModifyEventSubscription", - }); - const xml = xmlP.readXmlResult(await resp.text(), "ModifyEventSubscriptionResult"); - return { - EventSubscription: xml.first("EventSubscription", false, EventSubscription_Parse), - }; - } - - async modifyOptionGroup( - {abortSignal, ...params}: RequestConfig & s.ModifyOptionGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - if (params["OptionsToInclude"]) qsP.appendList(body, prefix+"OptionsToInclude", params["OptionsToInclude"], {"appender":OptionConfiguration_Serialize,"entryPrefix":".OptionConfiguration."}) - if (params["OptionsToRemove"]) qsP.appendList(body, prefix+"OptionsToRemove", params["OptionsToRemove"], {"entryPrefix":".member."}) - if ("ApplyImmediately" in params) body.append(prefix+"ApplyImmediately", (params["ApplyImmediately"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "ModifyOptionGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "ModifyOptionGroupResult"); - return { - OptionGroup: xml.first("OptionGroup", false, OptionGroup_Parse), - }; - } - - async promoteReadReplica( - {abortSignal, ...params}: RequestConfig & s.PromoteReadReplicaMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - if ("BackupRetentionPeriod" in params) body.append(prefix+"BackupRetentionPeriod", (params["BackupRetentionPeriod"] ?? '').toString()); - if ("PreferredBackupWindow" in params) body.append(prefix+"PreferredBackupWindow", (params["PreferredBackupWindow"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "PromoteReadReplica", - }); - const xml = xmlP.readXmlResult(await resp.text(), "PromoteReadReplicaResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async purchaseReservedDBInstancesOffering( - {abortSignal, ...params}: RequestConfig & s.PurchaseReservedDBInstancesOfferingMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"ReservedDBInstancesOfferingId", (params["ReservedDBInstancesOfferingId"] ?? '').toString()); - if ("ReservedDBInstanceId" in params) body.append(prefix+"ReservedDBInstanceId", (params["ReservedDBInstanceId"] ?? '').toString()); - if ("DBInstanceCount" in params) body.append(prefix+"DBInstanceCount", (params["DBInstanceCount"] ?? '').toString()); - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "PurchaseReservedDBInstancesOffering", - }); - const xml = xmlP.readXmlResult(await resp.text(), "PurchaseReservedDBInstancesOfferingResult"); - return { - ReservedDBInstance: xml.first("ReservedDBInstance", false, ReservedDBInstance_Parse), - }; - } - - async rebootDBInstance( - {abortSignal, ...params}: RequestConfig & s.RebootDBInstanceMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - if ("ForceFailover" in params) body.append(prefix+"ForceFailover", (params["ForceFailover"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "RebootDBInstance", - }); - const xml = xmlP.readXmlResult(await resp.text(), "RebootDBInstanceResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async removeSourceIdentifierFromSubscription( - {abortSignal, ...params}: RequestConfig & s.RemoveSourceIdentifierFromSubscriptionMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SubscriptionName", (params["SubscriptionName"] ?? '').toString()); - body.append(prefix+"SourceIdentifier", (params["SourceIdentifier"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "RemoveSourceIdentifierFromSubscription", - }); - const xml = xmlP.readXmlResult(await resp.text(), "RemoveSourceIdentifierFromSubscriptionResult"); - return { - EventSubscription: xml.first("EventSubscription", false, EventSubscription_Parse), - }; - } - - async removeTagsFromResource( - {abortSignal, ...params}: RequestConfig & s.RemoveTagsFromResourceMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"ResourceName", (params["ResourceName"] ?? '').toString()); - if (params["TagKeys"]) qsP.appendList(body, prefix+"TagKeys", params["TagKeys"], {"entryPrefix":".member."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "RemoveTagsFromResource", - }); - await resp.arrayBuffer(); // consume body without use - } - - async resetDBParameterGroup( - {abortSignal, ...params}: RequestConfig & s.ResetDBParameterGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - if ("ResetAllParameters" in params) body.append(prefix+"ResetAllParameters", (params["ResetAllParameters"] ?? '').toString()); - if (params["Parameters"]) qsP.appendList(body, prefix+"Parameters", params["Parameters"], {"appender":Parameter_Serialize,"entryPrefix":".Parameter."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "ResetDBParameterGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "ResetDBParameterGroupResult"); - return xml.strings({ - optional: {"DBParameterGroupName":true}, - }); - } - - async restoreDBInstanceFromDBSnapshot( - {abortSignal, ...params}: RequestConfig & s.RestoreDBInstanceFromDBSnapshotMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - body.append(prefix+"DBSnapshotIdentifier", (params["DBSnapshotIdentifier"] ?? '').toString()); - if ("DBInstanceClass" in params) body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - if ("Port" in params) body.append(prefix+"Port", (params["Port"] ?? '').toString()); - if ("AvailabilityZone" in params) body.append(prefix+"AvailabilityZone", (params["AvailabilityZone"] ?? '').toString()); - if ("DBSubnetGroupName" in params) body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - if ("MultiAZ" in params) body.append(prefix+"MultiAZ", (params["MultiAZ"] ?? '').toString()); - if ("PubliclyAccessible" in params) body.append(prefix+"PubliclyAccessible", (params["PubliclyAccessible"] ?? '').toString()); - if ("AutoMinorVersionUpgrade" in params) body.append(prefix+"AutoMinorVersionUpgrade", (params["AutoMinorVersionUpgrade"] ?? '').toString()); - if ("LicenseModel" in params) body.append(prefix+"LicenseModel", (params["LicenseModel"] ?? '').toString()); - if ("DBName" in params) body.append(prefix+"DBName", (params["DBName"] ?? '').toString()); - if ("Engine" in params) body.append(prefix+"Engine", (params["Engine"] ?? '').toString()); - if ("Iops" in params) body.append(prefix+"Iops", (params["Iops"] ?? '').toString()); - if ("OptionGroupName" in params) body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "RestoreDBInstanceFromDBSnapshot", - }); - const xml = xmlP.readXmlResult(await resp.text(), "RestoreDBInstanceFromDBSnapshotResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async restoreDBInstanceToPointInTime( - {abortSignal, ...params}: RequestConfig & s.RestoreDBInstanceToPointInTimeMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SourceDBInstanceIdentifier", (params["SourceDBInstanceIdentifier"] ?? '').toString()); - body.append(prefix+"TargetDBInstanceIdentifier", (params["TargetDBInstanceIdentifier"] ?? '').toString()); - if ("RestoreTime" in params) body.append(prefix+"RestoreTime", qsP.encodeDate_iso8601(params["RestoreTime"])); - if ("UseLatestRestorableTime" in params) body.append(prefix+"UseLatestRestorableTime", (params["UseLatestRestorableTime"] ?? '').toString()); - if ("DBInstanceClass" in params) body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - if ("Port" in params) body.append(prefix+"Port", (params["Port"] ?? '').toString()); - if ("AvailabilityZone" in params) body.append(prefix+"AvailabilityZone", (params["AvailabilityZone"] ?? '').toString()); - if ("DBSubnetGroupName" in params) body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - if ("MultiAZ" in params) body.append(prefix+"MultiAZ", (params["MultiAZ"] ?? '').toString()); - if ("PubliclyAccessible" in params) body.append(prefix+"PubliclyAccessible", (params["PubliclyAccessible"] ?? '').toString()); - if ("AutoMinorVersionUpgrade" in params) body.append(prefix+"AutoMinorVersionUpgrade", (params["AutoMinorVersionUpgrade"] ?? '').toString()); - if ("LicenseModel" in params) body.append(prefix+"LicenseModel", (params["LicenseModel"] ?? '').toString()); - if ("DBName" in params) body.append(prefix+"DBName", (params["DBName"] ?? '').toString()); - if ("Engine" in params) body.append(prefix+"Engine", (params["Engine"] ?? '').toString()); - if ("Iops" in params) body.append(prefix+"Iops", (params["Iops"] ?? '').toString()); - if ("OptionGroupName" in params) body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "RestoreDBInstanceToPointInTime", - }); - const xml = xmlP.readXmlResult(await resp.text(), "RestoreDBInstanceToPointInTimeResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async revokeDBSecurityGroupIngress( - {abortSignal, ...params}: RequestConfig & s.RevokeDBSecurityGroupIngressMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSecurityGroupName", (params["DBSecurityGroupName"] ?? '').toString()); - if ("CIDRIP" in params) body.append(prefix+"CIDRIP", (params["CIDRIP"] ?? '').toString()); - if ("EC2SecurityGroupName" in params) body.append(prefix+"EC2SecurityGroupName", (params["EC2SecurityGroupName"] ?? '').toString()); - if ("EC2SecurityGroupId" in params) body.append(prefix+"EC2SecurityGroupId", (params["EC2SecurityGroupId"] ?? '').toString()); - if ("EC2SecurityGroupOwnerId" in params) body.append(prefix+"EC2SecurityGroupOwnerId", (params["EC2SecurityGroupOwnerId"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "RevokeDBSecurityGroupIngress", - }); - const xml = xmlP.readXmlResult(await resp.text(), "RevokeDBSecurityGroupIngressResult"); - return { - DBSecurityGroup: xml.first("DBSecurityGroup", false, DBSecurityGroup_Parse), - }; - } - - // Resource State Waiters - - /** Checks state up to 60 times, 30 seconds apart (about 30 minutes max wait time). */ - async waitForDBInstanceAvailable( - params: RequestConfig & s.DescribeDBInstancesMessage, - ): Promise { - const errMessage = 'ResourceNotReady: Resource is not in the state DBInstanceAvailable'; - for (let i = 0; i < 60; i++) { - const resp = await this.describeDBInstances(params); - const field = resp?.DBInstances?.flatMap(x => x?.DBInstanceStatus); - if (field?.every(x => x === "available")) return resp; - if (field?.some(x => x === "deleted")) throw new Error(errMessage); - if (field?.some(x => x === "deleting")) throw new Error(errMessage); - if (field?.some(x => x === "failed")) throw new Error(errMessage); - if (field?.some(x => x === "incompatible-restore")) throw new Error(errMessage); - if (field?.some(x => x === "incompatible-parameters")) throw new Error(errMessage); - if (field?.some(x => x === "incompatible-parameters")) throw new Error(errMessage); - if (field?.some(x => x === "incompatible-restore")) throw new Error(errMessage); - await new Promise(r => setTimeout(r, 30000)); - } - throw new Error(errMessage); - } - - /** Checks state up to 60 times, 30 seconds apart (about 30 minutes max wait time). */ - async waitForDBInstanceDeleted( - params: RequestConfig & s.DescribeDBInstancesMessage, - ): Promise { - const errMessage = 'ResourceNotReady: Resource is not in the state DBInstanceDeleted'; - for (let i = 0; i < 60; i++) { - const resp = await this.describeDBInstances(params); - const field = resp?.DBInstances?.flatMap(x => x?.DBInstanceStatus); - if (field?.every(x => x === "deleted")) return resp; - if (field?.some(x => x === "creating")) throw new Error(errMessage); - if (field?.some(x => x === "modifying")) throw new Error(errMessage); - if (field?.some(x => x === "rebooting")) throw new Error(errMessage); - if (field?.some(x => x === "resetting-master-credentials")) throw new Error(errMessage); - await new Promise(r => setTimeout(r, 30000)); - } - throw new Error(errMessage); - } - -} - -function Tag_Serialize(body: URLSearchParams, prefix: string, params: s.Tag) { - if ("Key" in params) body.append(prefix+".Key", (params["Key"] ?? '').toString()); - if ("Value" in params) body.append(prefix+".Value", (params["Value"] ?? '').toString()); -} -function Tag_Parse(node: xmlP.XmlNode): s.Tag { - return node.strings({ - optional: {"Key":true,"Value":true}, - }); -} - -function Filter_Serialize(body: URLSearchParams, prefix: string, params: s.Filter) { - body.append(prefix+".Name", (params["Name"] ?? '').toString()); - if (params["Values"]) qsP.appendList(body, prefix+".Values", params["Values"], {"entryPrefix":".Value."}) -} - -function Parameter_Serialize(body: URLSearchParams, prefix: string, params: s.Parameter) { - if ("ParameterName" in params) body.append(prefix+".ParameterName", (params["ParameterName"] ?? '').toString()); - if ("ParameterValue" in params) body.append(prefix+".ParameterValue", (params["ParameterValue"] ?? '').toString()); - if ("Description" in params) body.append(prefix+".Description", (params["Description"] ?? '').toString()); - if ("Source" in params) body.append(prefix+".Source", (params["Source"] ?? '').toString()); - if ("ApplyType" in params) body.append(prefix+".ApplyType", (params["ApplyType"] ?? '').toString()); - if ("DataType" in params) body.append(prefix+".DataType", (params["DataType"] ?? '').toString()); - if ("AllowedValues" in params) body.append(prefix+".AllowedValues", (params["AllowedValues"] ?? '').toString()); - if ("IsModifiable" in params) body.append(prefix+".IsModifiable", (params["IsModifiable"] ?? '').toString()); - if ("MinimumEngineVersion" in params) body.append(prefix+".MinimumEngineVersion", (params["MinimumEngineVersion"] ?? '').toString()); - if ("ApplyMethod" in params) body.append(prefix+".ApplyMethod", (params["ApplyMethod"] ?? '').toString()); -} -function Parameter_Parse(node: xmlP.XmlNode): s.Parameter { - return { - ...node.strings({ - optional: {"ParameterName":true,"ParameterValue":true,"Description":true,"Source":true,"ApplyType":true,"DataType":true,"AllowedValues":true,"MinimumEngineVersion":true}, - }), - IsModifiable: node.first("IsModifiable", false, x => x.content === 'true'), - ApplyMethod: node.first("ApplyMethod", false, x => (x.content ?? '') as s.ApplyMethod), - }; -} - -function OptionConfiguration_Serialize(body: URLSearchParams, prefix: string, params: s.OptionConfiguration) { - body.append(prefix+".OptionName", (params["OptionName"] ?? '').toString()); - if ("Port" in params) body.append(prefix+".Port", (params["Port"] ?? '').toString()); - if (params["DBSecurityGroupMemberships"]) qsP.appendList(body, prefix+".DBSecurityGroupMemberships", params["DBSecurityGroupMemberships"], {"entryPrefix":".DBSecurityGroupName."}) - if (params["VpcSecurityGroupMemberships"]) qsP.appendList(body, prefix+".VpcSecurityGroupMemberships", params["VpcSecurityGroupMemberships"], {"entryPrefix":".VpcSecurityGroupId."}) - if (params["OptionSettings"]) qsP.appendList(body, prefix+".OptionSettings", params["OptionSettings"], {"appender":OptionSetting_Serialize,"entryPrefix":".OptionSetting."}) -} - -function OptionSetting_Serialize(body: URLSearchParams, prefix: string, params: s.OptionSetting) { - if ("Name" in params) body.append(prefix+".Name", (params["Name"] ?? '').toString()); - if ("Value" in params) body.append(prefix+".Value", (params["Value"] ?? '').toString()); - if ("DefaultValue" in params) body.append(prefix+".DefaultValue", (params["DefaultValue"] ?? '').toString()); - if ("Description" in params) body.append(prefix+".Description", (params["Description"] ?? '').toString()); - if ("ApplyType" in params) body.append(prefix+".ApplyType", (params["ApplyType"] ?? '').toString()); - if ("DataType" in params) body.append(prefix+".DataType", (params["DataType"] ?? '').toString()); - if ("AllowedValues" in params) body.append(prefix+".AllowedValues", (params["AllowedValues"] ?? '').toString()); - if ("IsModifiable" in params) body.append(prefix+".IsModifiable", (params["IsModifiable"] ?? '').toString()); - if ("IsCollection" in params) body.append(prefix+".IsCollection", (params["IsCollection"] ?? '').toString()); -} -function OptionSetting_Parse(node: xmlP.XmlNode): s.OptionSetting { - return { - ...node.strings({ - optional: {"Name":true,"Value":true,"DefaultValue":true,"Description":true,"ApplyType":true,"DataType":true,"AllowedValues":true}, - }), - IsModifiable: node.first("IsModifiable", false, x => x.content === 'true'), - IsCollection: node.first("IsCollection", false, x => x.content === 'true'), - }; -} - -function EventSubscription_Parse(node: xmlP.XmlNode): s.EventSubscription { - return { - ...node.strings({ - optional: {"CustomerAwsId":true,"CustSubscriptionId":true,"SnsTopicArn":true,"Status":true,"SubscriptionCreationTime":true,"SourceType":true}, - }), - SourceIdsList: node.getList("SourceIdsList", "SourceId").map(x => x.content ?? ''), - EventCategoriesList: node.getList("EventCategoriesList", "EventCategory").map(x => x.content ?? ''), - Enabled: node.first("Enabled", false, x => x.content === 'true'), - }; -} - -function DBSecurityGroup_Parse(node: xmlP.XmlNode): s.DBSecurityGroup { - return { - ...node.strings({ - optional: {"OwnerId":true,"DBSecurityGroupName":true,"DBSecurityGroupDescription":true,"VpcId":true}, - }), - EC2SecurityGroups: node.getList("EC2SecurityGroups", "EC2SecurityGroup").map(EC2SecurityGroup_Parse), - IPRanges: node.getList("IPRanges", "IPRange").map(IPRange_Parse), - }; -} - -function EC2SecurityGroup_Parse(node: xmlP.XmlNode): s.EC2SecurityGroup { - return node.strings({ - optional: {"Status":true,"EC2SecurityGroupName":true,"EC2SecurityGroupId":true,"EC2SecurityGroupOwnerId":true}, - }); -} - -function IPRange_Parse(node: xmlP.XmlNode): s.IPRange { - return node.strings({ - optional: {"Status":true,"CIDRIP":true}, - }); -} - -function DBSnapshot_Parse(node: xmlP.XmlNode): s.DBSnapshot { - return { - ...node.strings({ - optional: {"DBSnapshotIdentifier":true,"DBInstanceIdentifier":true,"Engine":true,"Status":true,"AvailabilityZone":true,"VpcId":true,"MasterUsername":true,"EngineVersion":true,"LicenseModel":true,"SnapshotType":true,"OptionGroupName":true,"SourceRegion":true}, - }), - SnapshotCreateTime: node.first("SnapshotCreateTime", false, x => xmlP.parseTimestamp(x.content)), - AllocatedStorage: node.first("AllocatedStorage", false, x => parseInt(x.content ?? '0')), - Port: node.first("Port", false, x => parseInt(x.content ?? '0')), - InstanceCreateTime: node.first("InstanceCreateTime", false, x => xmlP.parseTimestamp(x.content)), - Iops: node.first("Iops", false, x => parseInt(x.content ?? '0')), - PercentProgress: node.first("PercentProgress", false, x => parseInt(x.content ?? '0')), - }; -} - -function DBInstance_Parse(node: xmlP.XmlNode): s.DBInstance { - return { - ...node.strings({ - optional: {"DBInstanceIdentifier":true,"DBInstanceClass":true,"Engine":true,"DBInstanceStatus":true,"MasterUsername":true,"DBName":true,"PreferredBackupWindow":true,"AvailabilityZone":true,"PreferredMaintenanceWindow":true,"EngineVersion":true,"ReadReplicaSourceDBInstanceIdentifier":true,"LicenseModel":true,"CharacterSetName":true,"SecondaryAvailabilityZone":true}, - }), - Endpoint: node.first("Endpoint", false, Endpoint_Parse), - AllocatedStorage: node.first("AllocatedStorage", false, x => parseInt(x.content ?? '0')), - InstanceCreateTime: node.first("InstanceCreateTime", false, x => xmlP.parseTimestamp(x.content)), - BackupRetentionPeriod: node.first("BackupRetentionPeriod", false, x => parseInt(x.content ?? '0')), - DBSecurityGroups: node.getList("DBSecurityGroups", "DBSecurityGroup").map(DBSecurityGroupMembership_Parse), - VpcSecurityGroups: node.getList("VpcSecurityGroups", "VpcSecurityGroupMembership").map(VpcSecurityGroupMembership_Parse), - DBParameterGroups: node.getList("DBParameterGroups", "DBParameterGroup").map(DBParameterGroupStatus_Parse), - DBSubnetGroup: node.first("DBSubnetGroup", false, DBSubnetGroup_Parse), - PendingModifiedValues: node.first("PendingModifiedValues", false, PendingModifiedValues_Parse), - LatestRestorableTime: node.first("LatestRestorableTime", false, x => xmlP.parseTimestamp(x.content)), - MultiAZ: node.first("MultiAZ", false, x => x.content === 'true'), - AutoMinorVersionUpgrade: node.first("AutoMinorVersionUpgrade", false, x => x.content === 'true'), - ReadReplicaDBInstanceIdentifiers: node.getList("ReadReplicaDBInstanceIdentifiers", "ReadReplicaDBInstanceIdentifier").map(x => x.content ?? ''), - Iops: node.first("Iops", false, x => parseInt(x.content ?? '0')), - OptionGroupMemberships: node.getList("OptionGroupMemberships", "OptionGroupMembership").map(OptionGroupMembership_Parse), - PubliclyAccessible: node.first("PubliclyAccessible", false, x => x.content === 'true'), - StatusInfos: node.getList("StatusInfos", "DBInstanceStatusInfo").map(DBInstanceStatusInfo_Parse), - }; -} - -function Endpoint_Parse(node: xmlP.XmlNode): s.Endpoint { - return { - ...node.strings({ - optional: {"Address":true}, - }), - Port: node.first("Port", false, x => parseInt(x.content ?? '0')), - }; -} - -function DBSecurityGroupMembership_Parse(node: xmlP.XmlNode): s.DBSecurityGroupMembership { - return node.strings({ - optional: {"DBSecurityGroupName":true,"Status":true}, - }); -} - -function VpcSecurityGroupMembership_Parse(node: xmlP.XmlNode): s.VpcSecurityGroupMembership { - return node.strings({ - optional: {"VpcSecurityGroupId":true,"Status":true}, - }); -} - -function DBParameterGroupStatus_Parse(node: xmlP.XmlNode): s.DBParameterGroupStatus { - return node.strings({ - optional: {"DBParameterGroupName":true,"ParameterApplyStatus":true}, - }); -} - -function DBSubnetGroup_Parse(node: xmlP.XmlNode): s.DBSubnetGroup { - return { - ...node.strings({ - optional: {"DBSubnetGroupName":true,"DBSubnetGroupDescription":true,"VpcId":true,"SubnetGroupStatus":true}, - }), - Subnets: node.getList("Subnets", "Subnet").map(Subnet_Parse), - }; -} - -function Subnet_Parse(node: xmlP.XmlNode): s.Subnet { - return { - ...node.strings({ - optional: {"SubnetIdentifier":true,"SubnetStatus":true}, - }), - SubnetAvailabilityZone: node.first("SubnetAvailabilityZone", false, AvailabilityZone_Parse), - }; -} - -function AvailabilityZone_Parse(node: xmlP.XmlNode): s.AvailabilityZone { - return { - ...node.strings({ - optional: {"Name":true}, - }), - ProvisionedIopsCapable: node.first("ProvisionedIopsCapable", false, x => x.content === 'true'), - }; -} - -function PendingModifiedValues_Parse(node: xmlP.XmlNode): s.PendingModifiedValues { - return { - ...node.strings({ - optional: {"DBInstanceClass":true,"MasterUserPassword":true,"EngineVersion":true,"DBInstanceIdentifier":true}, - }), - AllocatedStorage: node.first("AllocatedStorage", false, x => parseInt(x.content ?? '0')), - Port: node.first("Port", false, x => parseInt(x.content ?? '0')), - BackupRetentionPeriod: node.first("BackupRetentionPeriod", false, x => parseInt(x.content ?? '0')), - MultiAZ: node.first("MultiAZ", false, x => x.content === 'true'), - Iops: node.first("Iops", false, x => parseInt(x.content ?? '0')), - }; -} - -function OptionGroupMembership_Parse(node: xmlP.XmlNode): s.OptionGroupMembership { - return node.strings({ - optional: {"OptionGroupName":true,"Status":true}, - }); -} - -function DBInstanceStatusInfo_Parse(node: xmlP.XmlNode): s.DBInstanceStatusInfo { - return { - ...node.strings({ - optional: {"StatusType":true,"Status":true,"Message":true}, - }), - Normal: node.first("Normal", false, x => x.content === 'true'), - }; -} - -function DBParameterGroup_Parse(node: xmlP.XmlNode): s.DBParameterGroup { - return node.strings({ - optional: {"DBParameterGroupName":true,"DBParameterGroupFamily":true,"Description":true}, - }); -} - -function OptionGroup_Parse(node: xmlP.XmlNode): s.OptionGroup { - return { - ...node.strings({ - optional: {"OptionGroupName":true,"OptionGroupDescription":true,"EngineName":true,"MajorEngineVersion":true,"VpcId":true}, - }), - Options: node.getList("Options", "Option").map(Option_Parse), - AllowsVpcAndNonVpcInstanceMemberships: node.first("AllowsVpcAndNonVpcInstanceMemberships", false, x => x.content === 'true'), - }; -} - -function Option_Parse(node: xmlP.XmlNode): s.Option { - return { - ...node.strings({ - optional: {"OptionName":true,"OptionDescription":true}, - }), - Persistent: node.first("Persistent", false, x => x.content === 'true'), - Permanent: node.first("Permanent", false, x => x.content === 'true'), - Port: node.first("Port", false, x => parseInt(x.content ?? '0')), - OptionSettings: node.getList("OptionSettings", "OptionSetting").map(OptionSetting_Parse), - DBSecurityGroupMemberships: node.getList("DBSecurityGroupMemberships", "DBSecurityGroup").map(DBSecurityGroupMembership_Parse), - VpcSecurityGroupMemberships: node.getList("VpcSecurityGroupMemberships", "VpcSecurityGroupMembership").map(VpcSecurityGroupMembership_Parse), - }; -} - -function DBEngineVersion_Parse(node: xmlP.XmlNode): s.DBEngineVersion { - return { - ...node.strings({ - optional: {"Engine":true,"EngineVersion":true,"DBParameterGroupFamily":true,"DBEngineDescription":true,"DBEngineVersionDescription":true}, - }), - DefaultCharacterSet: node.first("DefaultCharacterSet", false, CharacterSet_Parse), - SupportedCharacterSets: node.getList("SupportedCharacterSets", "CharacterSet").map(CharacterSet_Parse), - }; -} - -function CharacterSet_Parse(node: xmlP.XmlNode): s.CharacterSet { - return node.strings({ - optional: {"CharacterSetName":true,"CharacterSetDescription":true}, - }); -} - -function DescribeDBLogFilesDetails_Parse(node: xmlP.XmlNode): s.DescribeDBLogFilesDetails { - return { - ...node.strings({ - optional: {"LogFileName":true}, - }), - LastWritten: node.first("LastWritten", false, x => parseInt(x.content ?? '0')), - Size: node.first("Size", false, x => parseInt(x.content ?? '0')), - }; -} - -function EngineDefaults_Parse(node: xmlP.XmlNode): s.EngineDefaults { - return { - ...node.strings({ - optional: {"DBParameterGroupFamily":true,"Marker":true}, - }), - Parameters: node.getList("Parameters", "Parameter").map(Parameter_Parse), - }; -} - -function EventCategoriesMap_Parse(node: xmlP.XmlNode): s.EventCategoriesMap { - return { - ...node.strings({ - optional: {"SourceType":true}, - }), - EventCategories: node.getList("EventCategories", "EventCategory").map(x => x.content ?? ''), - }; -} - -function Event_Parse(node: xmlP.XmlNode): s.Event { - return { - ...node.strings({ - optional: {"SourceIdentifier":true,"Message":true}, - }), - SourceType: node.first("SourceType", false, x => (x.content ?? '') as s.SourceType), - EventCategories: node.getList("EventCategories", "EventCategory").map(x => x.content ?? ''), - Date: node.first("Date", false, x => xmlP.parseTimestamp(x.content)), - }; -} - -function OptionGroupOption_Parse(node: xmlP.XmlNode): s.OptionGroupOption { - return { - ...node.strings({ - optional: {"Name":true,"Description":true,"EngineName":true,"MajorEngineVersion":true,"MinimumRequiredMinorEngineVersion":true}, - }), - PortRequired: node.first("PortRequired", false, x => x.content === 'true'), - DefaultPort: node.first("DefaultPort", false, x => parseInt(x.content ?? '0')), - OptionsDependedOn: node.getList("OptionsDependedOn", "OptionName").map(x => x.content ?? ''), - Persistent: node.first("Persistent", false, x => x.content === 'true'), - Permanent: node.first("Permanent", false, x => x.content === 'true'), - OptionGroupOptionSettings: node.getList("OptionGroupOptionSettings", "OptionGroupOptionSetting").map(OptionGroupOptionSetting_Parse), - }; -} - -function OptionGroupOptionSetting_Parse(node: xmlP.XmlNode): s.OptionGroupOptionSetting { - return { - ...node.strings({ - optional: {"SettingName":true,"SettingDescription":true,"DefaultValue":true,"ApplyType":true,"AllowedValues":true}, - }), - IsModifiable: node.first("IsModifiable", false, x => x.content === 'true'), - }; -} - -function OrderableDBInstanceOption_Parse(node: xmlP.XmlNode): s.OrderableDBInstanceOption { - return { - ...node.strings({ - optional: {"Engine":true,"EngineVersion":true,"DBInstanceClass":true,"LicenseModel":true}, - }), - AvailabilityZones: node.getList("AvailabilityZones", "AvailabilityZone").map(AvailabilityZone_Parse), - MultiAZCapable: node.first("MultiAZCapable", false, x => x.content === 'true'), - ReadReplicaCapable: node.first("ReadReplicaCapable", false, x => x.content === 'true'), - Vpc: node.first("Vpc", false, x => x.content === 'true'), - }; -} - -function ReservedDBInstance_Parse(node: xmlP.XmlNode): s.ReservedDBInstance { - return { - ...node.strings({ - optional: {"ReservedDBInstanceId":true,"ReservedDBInstancesOfferingId":true,"DBInstanceClass":true,"CurrencyCode":true,"ProductDescription":true,"OfferingType":true,"State":true}, - }), - StartTime: node.first("StartTime", false, x => xmlP.parseTimestamp(x.content)), - Duration: node.first("Duration", false, x => parseInt(x.content ?? '0')), - FixedPrice: node.first("FixedPrice", false, x => parseFloat(x.content ?? '0')), - UsagePrice: node.first("UsagePrice", false, x => parseFloat(x.content ?? '0')), - DBInstanceCount: node.first("DBInstanceCount", false, x => parseInt(x.content ?? '0')), - MultiAZ: node.first("MultiAZ", false, x => x.content === 'true'), - RecurringCharges: node.getList("RecurringCharges", "RecurringCharge").map(RecurringCharge_Parse), - }; -} - -function RecurringCharge_Parse(node: xmlP.XmlNode): s.RecurringCharge { - return { - ...node.strings({ - optional: {"RecurringChargeFrequency":true}, - }), - RecurringChargeAmount: node.first("RecurringChargeAmount", false, x => parseFloat(x.content ?? '0')), - }; -} - -function ReservedDBInstancesOffering_Parse(node: xmlP.XmlNode): s.ReservedDBInstancesOffering { - return { - ...node.strings({ - optional: {"ReservedDBInstancesOfferingId":true,"DBInstanceClass":true,"CurrencyCode":true,"ProductDescription":true,"OfferingType":true}, - }), - Duration: node.first("Duration", false, x => parseInt(x.content ?? '0')), - FixedPrice: node.first("FixedPrice", false, x => parseFloat(x.content ?? '0')), - UsagePrice: node.first("UsagePrice", false, x => parseFloat(x.content ?? '0')), - MultiAZ: node.first("MultiAZ", false, x => x.content === 'true'), - RecurringCharges: node.getList("RecurringCharges", "RecurringCharge").map(RecurringCharge_Parse), - }; -} diff --git a/lib/services/rds@2013-09-09/structs.ts b/lib/services/rds@2013-09-09/structs.ts deleted file mode 100644 index b7917bb7..00000000 --- a/lib/services/rds@2013-09-09/structs.ts +++ /dev/null @@ -1,1106 +0,0 @@ -// Autogenerated API structures for: Amazon Relational Database Service - -import * as cmnP from "../../encoding/common.ts"; - -// refs: 1 - tags: named, input -export interface AddSourceIdentifierToSubscriptionMessage { - SubscriptionName: string; - SourceIdentifier: string; -} - -// refs: 1 - tags: named, input -export interface AddTagsToResourceMessage { - ResourceName: string; - Tags: Tag[]; -} - -// refs: 1 - tags: named, input -export interface AuthorizeDBSecurityGroupIngressMessage { - DBSecurityGroupName: string; - CIDRIP?: string | null; - EC2SecurityGroupName?: string | null; - EC2SecurityGroupId?: string | null; - EC2SecurityGroupOwnerId?: string | null; -} - -// refs: 1 - tags: named, input -export interface CopyDBSnapshotMessage { - SourceDBSnapshotIdentifier: string; - TargetDBSnapshotIdentifier: string; - Tags?: Tag[] | null; -} - -// refs: 1 - tags: named, input -export interface CreateDBInstanceMessage { - DBName?: string | null; - DBInstanceIdentifier: string; - AllocatedStorage: number; - DBInstanceClass: string; - Engine: string; - MasterUsername: string; - MasterUserPassword: string; - DBSecurityGroups?: string[] | null; - VpcSecurityGroupIds?: string[] | null; - AvailabilityZone?: string | null; - DBSubnetGroupName?: string | null; - PreferredMaintenanceWindow?: string | null; - DBParameterGroupName?: string | null; - BackupRetentionPeriod?: number | null; - PreferredBackupWindow?: string | null; - Port?: number | null; - MultiAZ?: boolean | null; - EngineVersion?: string | null; - AutoMinorVersionUpgrade?: boolean | null; - LicenseModel?: string | null; - Iops?: number | null; - OptionGroupName?: string | null; - CharacterSetName?: string | null; - PubliclyAccessible?: boolean | null; - Tags?: Tag[] | null; -} - -// refs: 1 - tags: named, input -export interface CreateDBInstanceReadReplicaMessage { - DBInstanceIdentifier: string; - SourceDBInstanceIdentifier: string; - DBInstanceClass?: string | null; - AvailabilityZone?: string | null; - Port?: number | null; - AutoMinorVersionUpgrade?: boolean | null; - Iops?: number | null; - OptionGroupName?: string | null; - PubliclyAccessible?: boolean | null; - Tags?: Tag[] | null; - DBSubnetGroupName?: string | null; -} - -// refs: 1 - tags: named, input -export interface CreateDBParameterGroupMessage { - DBParameterGroupName: string; - DBParameterGroupFamily: string; - Description: string; - Tags?: Tag[] | null; -} - -// refs: 1 - tags: named, input -export interface CreateDBSecurityGroupMessage { - DBSecurityGroupName: string; - DBSecurityGroupDescription: string; - Tags?: Tag[] | null; -} - -// refs: 1 - tags: named, input -export interface CreateDBSnapshotMessage { - DBSnapshotIdentifier: string; - DBInstanceIdentifier: string; - Tags?: Tag[] | null; -} - -// refs: 1 - tags: named, input -export interface CreateDBSubnetGroupMessage { - DBSubnetGroupName: string; - DBSubnetGroupDescription: string; - SubnetIds: string[]; - Tags?: Tag[] | null; -} - -// refs: 1 - tags: named, input -export interface CreateEventSubscriptionMessage { - SubscriptionName: string; - SnsTopicArn: string; - SourceType?: string | null; - EventCategories?: string[] | null; - SourceIds?: string[] | null; - Enabled?: boolean | null; - Tags?: Tag[] | null; -} - -// refs: 1 - tags: named, input -export interface CreateOptionGroupMessage { - OptionGroupName: string; - EngineName: string; - MajorEngineVersion: string; - OptionGroupDescription: string; - Tags?: Tag[] | null; -} - -// refs: 1 - tags: named, input -export interface DeleteDBInstanceMessage { - DBInstanceIdentifier: string; - SkipFinalSnapshot?: boolean | null; - FinalDBSnapshotIdentifier?: string | null; -} - -// refs: 1 - tags: named, input -export interface DeleteDBParameterGroupMessage { - DBParameterGroupName: string; -} - -// refs: 1 - tags: named, input -export interface DeleteDBSecurityGroupMessage { - DBSecurityGroupName: string; -} - -// refs: 1 - tags: named, input -export interface DeleteDBSnapshotMessage { - DBSnapshotIdentifier: string; -} - -// refs: 1 - tags: named, input -export interface DeleteDBSubnetGroupMessage { - DBSubnetGroupName: string; -} - -// refs: 1 - tags: named, input -export interface DeleteEventSubscriptionMessage { - SubscriptionName: string; -} - -// refs: 1 - tags: named, input -export interface DeleteOptionGroupMessage { - OptionGroupName: string; -} - -// refs: 1 - tags: named, input -export interface DescribeDBEngineVersionsMessage { - Engine?: string | null; - EngineVersion?: string | null; - DBParameterGroupFamily?: string | null; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; - DefaultOnly?: boolean | null; - ListSupportedCharacterSets?: boolean | null; -} - -// refs: 1 - tags: named, input -export interface DescribeDBInstancesMessage { - DBInstanceIdentifier?: string | null; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeDBLogFilesMessage { - DBInstanceIdentifier: string; - FilenameContains?: string | null; - FileLastWritten?: number | null; - FileSize?: number | null; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeDBParameterGroupsMessage { - DBParameterGroupName?: string | null; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeDBParametersMessage { - DBParameterGroupName: string; - Source?: string | null; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeDBSecurityGroupsMessage { - DBSecurityGroupName?: string | null; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeDBSnapshotsMessage { - DBInstanceIdentifier?: string | null; - DBSnapshotIdentifier?: string | null; - SnapshotType?: string | null; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeDBSubnetGroupsMessage { - DBSubnetGroupName?: string | null; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeEngineDefaultParametersMessage { - DBParameterGroupFamily: string; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeEventCategoriesMessage { - SourceType?: string | null; - Filters?: Filter[] | null; -} - -// refs: 1 - tags: named, input -export interface DescribeEventSubscriptionsMessage { - SubscriptionName?: string | null; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeEventsMessage { - SourceIdentifier?: string | null; - SourceType?: SourceType | null; - StartTime?: Date | number | null; - EndTime?: Date | number | null; - Duration?: number | null; - EventCategories?: string[] | null; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeOptionGroupOptionsMessage { - EngineName: string; - MajorEngineVersion?: string | null; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeOptionGroupsMessage { - OptionGroupName?: string | null; - Filters?: Filter[] | null; - Marker?: string | null; - MaxRecords?: number | null; - EngineName?: string | null; - MajorEngineVersion?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeOrderableDBInstanceOptionsMessage { - Engine: string; - EngineVersion?: string | null; - DBInstanceClass?: string | null; - LicenseModel?: string | null; - Vpc?: boolean | null; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeReservedDBInstancesMessage { - ReservedDBInstanceId?: string | null; - ReservedDBInstancesOfferingId?: string | null; - DBInstanceClass?: string | null; - Duration?: string | null; - ProductDescription?: string | null; - OfferingType?: string | null; - MultiAZ?: boolean | null; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeReservedDBInstancesOfferingsMessage { - ReservedDBInstancesOfferingId?: string | null; - DBInstanceClass?: string | null; - Duration?: string | null; - ProductDescription?: string | null; - OfferingType?: string | null; - MultiAZ?: boolean | null; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DownloadDBLogFilePortionMessage { - DBInstanceIdentifier: string; - LogFileName: string; - Marker?: string | null; - NumberOfLines?: number | null; -} - -// refs: 1 - tags: named, input -export interface ListTagsForResourceMessage { - ResourceName: string; - Filters?: Filter[] | null; -} - -// refs: 1 - tags: named, input -export interface ModifyDBInstanceMessage { - DBInstanceIdentifier: string; - AllocatedStorage?: number | null; - DBInstanceClass?: string | null; - DBSecurityGroups?: string[] | null; - VpcSecurityGroupIds?: string[] | null; - ApplyImmediately?: boolean | null; - MasterUserPassword?: string | null; - DBParameterGroupName?: string | null; - BackupRetentionPeriod?: number | null; - PreferredBackupWindow?: string | null; - PreferredMaintenanceWindow?: string | null; - MultiAZ?: boolean | null; - EngineVersion?: string | null; - AllowMajorVersionUpgrade?: boolean | null; - AutoMinorVersionUpgrade?: boolean | null; - Iops?: number | null; - OptionGroupName?: string | null; - NewDBInstanceIdentifier?: string | null; -} - -// refs: 1 - tags: named, input -export interface ModifyDBParameterGroupMessage { - DBParameterGroupName: string; - Parameters: Parameter[]; -} - -// refs: 1 - tags: named, input -export interface ModifyDBSubnetGroupMessage { - DBSubnetGroupName: string; - DBSubnetGroupDescription?: string | null; - SubnetIds: string[]; -} - -// refs: 1 - tags: named, input -export interface ModifyEventSubscriptionMessage { - SubscriptionName: string; - SnsTopicArn?: string | null; - SourceType?: string | null; - EventCategories?: string[] | null; - Enabled?: boolean | null; -} - -// refs: 1 - tags: named, input -export interface ModifyOptionGroupMessage { - OptionGroupName: string; - OptionsToInclude?: OptionConfiguration[] | null; - OptionsToRemove?: string[] | null; - ApplyImmediately?: boolean | null; -} - -// refs: 1 - tags: named, input -export interface PromoteReadReplicaMessage { - DBInstanceIdentifier: string; - BackupRetentionPeriod?: number | null; - PreferredBackupWindow?: string | null; -} - -// refs: 1 - tags: named, input -export interface PurchaseReservedDBInstancesOfferingMessage { - ReservedDBInstancesOfferingId: string; - ReservedDBInstanceId?: string | null; - DBInstanceCount?: number | null; - Tags?: Tag[] | null; -} - -// refs: 1 - tags: named, input -export interface RebootDBInstanceMessage { - DBInstanceIdentifier: string; - ForceFailover?: boolean | null; -} - -// refs: 1 - tags: named, input -export interface RemoveSourceIdentifierFromSubscriptionMessage { - SubscriptionName: string; - SourceIdentifier: string; -} - -// refs: 1 - tags: named, input -export interface RemoveTagsFromResourceMessage { - ResourceName: string; - TagKeys: string[]; -} - -// refs: 1 - tags: named, input -export interface ResetDBParameterGroupMessage { - DBParameterGroupName: string; - ResetAllParameters?: boolean | null; - Parameters?: Parameter[] | null; -} - -// refs: 1 - tags: named, input -export interface RestoreDBInstanceFromDBSnapshotMessage { - DBInstanceIdentifier: string; - DBSnapshotIdentifier: string; - DBInstanceClass?: string | null; - Port?: number | null; - AvailabilityZone?: string | null; - DBSubnetGroupName?: string | null; - MultiAZ?: boolean | null; - PubliclyAccessible?: boolean | null; - AutoMinorVersionUpgrade?: boolean | null; - LicenseModel?: string | null; - DBName?: string | null; - Engine?: string | null; - Iops?: number | null; - OptionGroupName?: string | null; - Tags?: Tag[] | null; -} - -// refs: 1 - tags: named, input -export interface RestoreDBInstanceToPointInTimeMessage { - SourceDBInstanceIdentifier: string; - TargetDBInstanceIdentifier: string; - RestoreTime?: Date | number | null; - UseLatestRestorableTime?: boolean | null; - DBInstanceClass?: string | null; - Port?: number | null; - AvailabilityZone?: string | null; - DBSubnetGroupName?: string | null; - MultiAZ?: boolean | null; - PubliclyAccessible?: boolean | null; - AutoMinorVersionUpgrade?: boolean | null; - LicenseModel?: string | null; - DBName?: string | null; - Engine?: string | null; - Iops?: number | null; - OptionGroupName?: string | null; - Tags?: Tag[] | null; -} - -// refs: 1 - tags: named, input -export interface RevokeDBSecurityGroupIngressMessage { - DBSecurityGroupName: string; - CIDRIP?: string | null; - EC2SecurityGroupName?: string | null; - EC2SecurityGroupId?: string | null; - EC2SecurityGroupOwnerId?: string | null; -} - -// refs: 1 - tags: named, output -export interface AddSourceIdentifierToSubscriptionResult { - EventSubscription?: EventSubscription | null; -} - -// refs: 1 - tags: named, output -export interface AuthorizeDBSecurityGroupIngressResult { - DBSecurityGroup?: DBSecurityGroup | null; -} - -// refs: 1 - tags: named, output -export interface CopyDBSnapshotResult { - DBSnapshot?: DBSnapshot | null; -} - -// refs: 1 - tags: named, output -export interface CreateDBInstanceResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface CreateDBInstanceReadReplicaResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface CreateDBParameterGroupResult { - DBParameterGroup?: DBParameterGroup | null; -} - -// refs: 1 - tags: named, output -export interface CreateDBSecurityGroupResult { - DBSecurityGroup?: DBSecurityGroup | null; -} - -// refs: 1 - tags: named, output -export interface CreateDBSnapshotResult { - DBSnapshot?: DBSnapshot | null; -} - -// refs: 1 - tags: named, output -export interface CreateDBSubnetGroupResult { - DBSubnetGroup?: DBSubnetGroup | null; -} - -// refs: 1 - tags: named, output -export interface CreateEventSubscriptionResult { - EventSubscription?: EventSubscription | null; -} - -// refs: 1 - tags: named, output -export interface CreateOptionGroupResult { - OptionGroup?: OptionGroup | null; -} - -// refs: 1 - tags: named, output -export interface DeleteDBInstanceResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface DeleteDBSnapshotResult { - DBSnapshot?: DBSnapshot | null; -} - -// refs: 1 - tags: named, output -export interface DeleteEventSubscriptionResult { - EventSubscription?: EventSubscription | null; -} - -// refs: 1 - tags: named, output -export interface DBEngineVersionMessage { - Marker?: string | null; - DBEngineVersions: DBEngineVersion[]; -} - -// refs: 1 - tags: named, output -export interface DBInstanceMessage { - Marker?: string | null; - DBInstances: DBInstance[]; -} - -// refs: 1 - tags: named, output -export interface DescribeDBLogFilesResponse { - DescribeDBLogFiles: DescribeDBLogFilesDetails[]; - Marker?: string | null; -} - -// refs: 1 - tags: named, output -export interface DBParameterGroupsMessage { - Marker?: string | null; - DBParameterGroups: DBParameterGroup[]; -} - -// refs: 1 - tags: named, output -export interface DBParameterGroupDetails { - Parameters: Parameter[]; - Marker?: string | null; -} - -// refs: 1 - tags: named, output -export interface DBSecurityGroupMessage { - Marker?: string | null; - DBSecurityGroups: DBSecurityGroup[]; -} - -// refs: 1 - tags: named, output -export interface DBSnapshotMessage { - Marker?: string | null; - DBSnapshots: DBSnapshot[]; -} - -// refs: 1 - tags: named, output -export interface DBSubnetGroupMessage { - Marker?: string | null; - DBSubnetGroups: DBSubnetGroup[]; -} - -// refs: 1 - tags: named, output -export interface DescribeEngineDefaultParametersResult { - EngineDefaults?: EngineDefaults | null; -} - -// refs: 1 - tags: named, output -export interface EventCategoriesMessage { - EventCategoriesMapList: EventCategoriesMap[]; -} - -// refs: 1 - tags: named, output -export interface EventSubscriptionsMessage { - Marker?: string | null; - EventSubscriptionsList: EventSubscription[]; -} - -// refs: 1 - tags: named, output -export interface EventsMessage { - Marker?: string | null; - Events: Event[]; -} - -// refs: 1 - tags: named, output -export interface OptionGroupOptionsMessage { - OptionGroupOptions: OptionGroupOption[]; - Marker?: string | null; -} - -// refs: 1 - tags: named, output -export interface OptionGroups { - OptionGroupsList: OptionGroup[]; - Marker?: string | null; -} - -// refs: 1 - tags: named, output -export interface OrderableDBInstanceOptionsMessage { - OrderableDBInstanceOptions: OrderableDBInstanceOption[]; - Marker?: string | null; -} - -// refs: 1 - tags: named, output -export interface ReservedDBInstanceMessage { - Marker?: string | null; - ReservedDBInstances: ReservedDBInstance[]; -} - -// refs: 1 - tags: named, output -export interface ReservedDBInstancesOfferingMessage { - Marker?: string | null; - ReservedDBInstancesOfferings: ReservedDBInstancesOffering[]; -} - -// refs: 1 - tags: named, output -export interface DownloadDBLogFilePortionDetails { - LogFileData?: string | null; - Marker?: string | null; - AdditionalDataPending?: boolean | null; -} - -// refs: 1 - tags: named, output -export interface TagListMessage { - TagList: Tag[]; -} - -// refs: 1 - tags: named, output -export interface ModifyDBInstanceResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface DBParameterGroupNameMessage { - DBParameterGroupName?: string | null; -} - -// refs: 1 - tags: named, output -export interface ModifyDBSubnetGroupResult { - DBSubnetGroup?: DBSubnetGroup | null; -} - -// refs: 1 - tags: named, output -export interface ModifyEventSubscriptionResult { - EventSubscription?: EventSubscription | null; -} - -// refs: 1 - tags: named, output -export interface ModifyOptionGroupResult { - OptionGroup?: OptionGroup | null; -} - -// refs: 1 - tags: named, output -export interface PromoteReadReplicaResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface PurchaseReservedDBInstancesOfferingResult { - ReservedDBInstance?: ReservedDBInstance | null; -} - -// refs: 1 - tags: named, output -export interface RebootDBInstanceResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface RemoveSourceIdentifierFromSubscriptionResult { - EventSubscription?: EventSubscription | null; -} - -// refs: 1 - tags: named, output -export interface RestoreDBInstanceFromDBSnapshotResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface RestoreDBInstanceToPointInTimeResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface RevokeDBSecurityGroupIngressResult { - DBSecurityGroup?: DBSecurityGroup | null; -} - -// refs: 14 - tags: input, named, interface, output -export interface Tag { - Key?: string | null; - Value?: string | null; -} - -// refs: 18 - tags: input, named, interface -export interface Filter { - Name: string; - Values: string[]; -} - -// refs: 2 - tags: input, named, enum, output -export type SourceType = -| "db-instance" -| "db-parameter-group" -| "db-security-group" -| "db-snapshot" -| cmnP.UnexpectedEnumValue; - -// refs: 4 - tags: input, named, interface, output -export interface Parameter { - ParameterName?: string | null; - ParameterValue?: string | null; - Description?: string | null; - Source?: string | null; - ApplyType?: string | null; - DataType?: string | null; - AllowedValues?: string | null; - IsModifiable?: boolean | null; - MinimumEngineVersion?: string | null; - ApplyMethod?: ApplyMethod | null; -} - -// refs: 4 - tags: input, named, enum, output -export type ApplyMethod = -| "immediate" -| "pending-reboot" -| cmnP.UnexpectedEnumValue; - -// refs: 1 - tags: input, named, interface -export interface OptionConfiguration { - OptionName: string; - Port?: number | null; - DBSecurityGroupMemberships?: string[] | null; - VpcSecurityGroupMemberships?: string[] | null; - OptionSettings?: OptionSetting[] | null; -} - -// refs: 4 - tags: input, named, interface, output -export interface OptionSetting { - Name?: string | null; - Value?: string | null; - DefaultValue?: string | null; - Description?: string | null; - ApplyType?: string | null; - DataType?: string | null; - AllowedValues?: string | null; - IsModifiable?: boolean | null; - IsCollection?: boolean | null; -} - -// refs: 6 - tags: output, named, interface -export interface EventSubscription { - CustomerAwsId?: string | null; - CustSubscriptionId?: string | null; - SnsTopicArn?: string | null; - Status?: string | null; - SubscriptionCreationTime?: string | null; - SourceType?: string | null; - SourceIdsList: string[]; - EventCategoriesList: string[]; - Enabled?: boolean | null; -} - -// refs: 4 - tags: output, named, interface -export interface DBSecurityGroup { - OwnerId?: string | null; - DBSecurityGroupName?: string | null; - DBSecurityGroupDescription?: string | null; - VpcId?: string | null; - EC2SecurityGroups: EC2SecurityGroup[]; - IPRanges: IPRange[]; -} - -// refs: 4 - tags: output, named, interface -export interface EC2SecurityGroup { - Status?: string | null; - EC2SecurityGroupName?: string | null; - EC2SecurityGroupId?: string | null; - EC2SecurityGroupOwnerId?: string | null; -} - -// refs: 4 - tags: output, named, interface -export interface IPRange { - Status?: string | null; - CIDRIP?: string | null; -} - -// refs: 4 - tags: output, named, interface -export interface DBSnapshot { - DBSnapshotIdentifier?: string | null; - DBInstanceIdentifier?: string | null; - SnapshotCreateTime?: Date | number | null; - Engine?: string | null; - AllocatedStorage?: number | null; - Status?: string | null; - Port?: number | null; - AvailabilityZone?: string | null; - VpcId?: string | null; - InstanceCreateTime?: Date | number | null; - MasterUsername?: string | null; - EngineVersion?: string | null; - LicenseModel?: string | null; - SnapshotType?: string | null; - Iops?: number | null; - OptionGroupName?: string | null; - PercentProgress?: number | null; - SourceRegion?: string | null; -} - -// refs: 9 - tags: output, named, interface -export interface DBInstance { - DBInstanceIdentifier?: string | null; - DBInstanceClass?: string | null; - Engine?: string | null; - DBInstanceStatus?: string | null; - MasterUsername?: string | null; - DBName?: string | null; - Endpoint?: Endpoint | null; - AllocatedStorage?: number | null; - InstanceCreateTime?: Date | number | null; - PreferredBackupWindow?: string | null; - BackupRetentionPeriod?: number | null; - DBSecurityGroups: DBSecurityGroupMembership[]; - VpcSecurityGroups: VpcSecurityGroupMembership[]; - DBParameterGroups: DBParameterGroupStatus[]; - AvailabilityZone?: string | null; - DBSubnetGroup?: DBSubnetGroup | null; - PreferredMaintenanceWindow?: string | null; - PendingModifiedValues?: PendingModifiedValues | null; - LatestRestorableTime?: Date | number | null; - MultiAZ?: boolean | null; - EngineVersion?: string | null; - AutoMinorVersionUpgrade?: boolean | null; - ReadReplicaSourceDBInstanceIdentifier?: string | null; - ReadReplicaDBInstanceIdentifiers: string[]; - LicenseModel?: string | null; - Iops?: number | null; - OptionGroupMemberships: OptionGroupMembership[]; - CharacterSetName?: string | null; - SecondaryAvailabilityZone?: string | null; - PubliclyAccessible?: boolean | null; - StatusInfos: DBInstanceStatusInfo[]; -} - -// refs: 9 - tags: output, named, interface -export interface Endpoint { - Address?: string | null; - Port?: number | null; -} - -// refs: 12 - tags: output, named, interface -export interface DBSecurityGroupMembership { - DBSecurityGroupName?: string | null; - Status?: string | null; -} - -// refs: 12 - tags: output, named, interface -export interface VpcSecurityGroupMembership { - VpcSecurityGroupId?: string | null; - Status?: string | null; -} - -// refs: 9 - tags: output, named, interface -export interface DBParameterGroupStatus { - DBParameterGroupName?: string | null; - ParameterApplyStatus?: string | null; -} - -// refs: 12 - tags: output, named, interface -export interface DBSubnetGroup { - DBSubnetGroupName?: string | null; - DBSubnetGroupDescription?: string | null; - VpcId?: string | null; - SubnetGroupStatus?: string | null; - Subnets: Subnet[]; -} - -// refs: 12 - tags: output, named, interface -export interface Subnet { - SubnetIdentifier?: string | null; - SubnetAvailabilityZone?: AvailabilityZone | null; - SubnetStatus?: string | null; -} - -// refs: 13 - tags: output, named, interface -export interface AvailabilityZone { - Name?: string | null; - ProvisionedIopsCapable?: boolean | null; -} - -// refs: 9 - tags: output, named, interface -export interface PendingModifiedValues { - DBInstanceClass?: string | null; - AllocatedStorage?: number | null; - MasterUserPassword?: string | null; - Port?: number | null; - BackupRetentionPeriod?: number | null; - MultiAZ?: boolean | null; - EngineVersion?: string | null; - Iops?: number | null; - DBInstanceIdentifier?: string | null; -} - -// refs: 9 - tags: output, named, interface -export interface OptionGroupMembership { - OptionGroupName?: string | null; - Status?: string | null; -} - -// refs: 9 - tags: output, named, interface -export interface DBInstanceStatusInfo { - StatusType?: string | null; - Normal?: boolean | null; - Status?: string | null; - Message?: string | null; -} - -// refs: 2 - tags: output, named, interface -export interface DBParameterGroup { - DBParameterGroupName?: string | null; - DBParameterGroupFamily?: string | null; - Description?: string | null; -} - -// refs: 3 - tags: output, named, interface -export interface OptionGroup { - OptionGroupName?: string | null; - OptionGroupDescription?: string | null; - EngineName?: string | null; - MajorEngineVersion?: string | null; - Options: Option[]; - AllowsVpcAndNonVpcInstanceMemberships?: boolean | null; - VpcId?: string | null; -} - -// refs: 3 - tags: output, named, interface -export interface Option { - OptionName?: string | null; - OptionDescription?: string | null; - Persistent?: boolean | null; - Permanent?: boolean | null; - Port?: number | null; - OptionSettings: OptionSetting[]; - DBSecurityGroupMemberships: DBSecurityGroupMembership[]; - VpcSecurityGroupMemberships: VpcSecurityGroupMembership[]; -} - -// refs: 1 - tags: output, named, interface -export interface DBEngineVersion { - Engine?: string | null; - EngineVersion?: string | null; - DBParameterGroupFamily?: string | null; - DBEngineDescription?: string | null; - DBEngineVersionDescription?: string | null; - DefaultCharacterSet?: CharacterSet | null; - SupportedCharacterSets: CharacterSet[]; -} - -// refs: 2 - tags: output, named, interface -export interface CharacterSet { - CharacterSetName?: string | null; - CharacterSetDescription?: string | null; -} - -// refs: 1 - tags: output, named, interface -export interface DescribeDBLogFilesDetails { - LogFileName?: string | null; - LastWritten?: number | null; - Size?: number | null; -} - -// refs: 1 - tags: output, named, interface -export interface EngineDefaults { - DBParameterGroupFamily?: string | null; - Marker?: string | null; - Parameters: Parameter[]; -} - -// refs: 1 - tags: output, named, interface -export interface EventCategoriesMap { - SourceType?: string | null; - EventCategories: string[]; -} - -// refs: 1 - tags: output, named, interface -export interface Event { - SourceIdentifier?: string | null; - SourceType?: SourceType | null; - Message?: string | null; - EventCategories: string[]; - Date?: Date | number | null; -} - -// refs: 1 - tags: output, named, interface -export interface OptionGroupOption { - Name?: string | null; - Description?: string | null; - EngineName?: string | null; - MajorEngineVersion?: string | null; - MinimumRequiredMinorEngineVersion?: string | null; - PortRequired?: boolean | null; - DefaultPort?: number | null; - OptionsDependedOn: string[]; - Persistent?: boolean | null; - Permanent?: boolean | null; - OptionGroupOptionSettings: OptionGroupOptionSetting[]; -} - -// refs: 1 - tags: output, named, interface -export interface OptionGroupOptionSetting { - SettingName?: string | null; - SettingDescription?: string | null; - DefaultValue?: string | null; - ApplyType?: string | null; - AllowedValues?: string | null; - IsModifiable?: boolean | null; -} - -// refs: 1 - tags: output, named, interface -export interface OrderableDBInstanceOption { - Engine?: string | null; - EngineVersion?: string | null; - DBInstanceClass?: string | null; - LicenseModel?: string | null; - AvailabilityZones: AvailabilityZone[]; - MultiAZCapable?: boolean | null; - ReadReplicaCapable?: boolean | null; - Vpc?: boolean | null; -} - -// refs: 2 - tags: output, named, interface -export interface ReservedDBInstance { - ReservedDBInstanceId?: string | null; - ReservedDBInstancesOfferingId?: string | null; - DBInstanceClass?: string | null; - StartTime?: Date | number | null; - Duration?: number | null; - FixedPrice?: number | null; - UsagePrice?: number | null; - CurrencyCode?: string | null; - DBInstanceCount?: number | null; - ProductDescription?: string | null; - OfferingType?: string | null; - MultiAZ?: boolean | null; - State?: string | null; - RecurringCharges: RecurringCharge[]; -} - -// refs: 3 - tags: output, named, interface -export interface RecurringCharge { - RecurringChargeAmount?: number | null; - RecurringChargeFrequency?: string | null; -} - -// refs: 1 - tags: output, named, interface -export interface ReservedDBInstancesOffering { - ReservedDBInstancesOfferingId?: string | null; - DBInstanceClass?: string | null; - Duration?: number | null; - FixedPrice?: number | null; - UsagePrice?: number | null; - CurrencyCode?: string | null; - ProductDescription?: string | null; - OfferingType?: string | null; - MultiAZ?: boolean | null; - RecurringCharges: RecurringCharge[]; -} diff --git a/lib/services/rds@2014-09-01/mod.ts b/lib/services/rds@2014-09-01/mod.ts deleted file mode 100644 index 22e7de0b..00000000 --- a/lib/services/rds@2014-09-01/mod.ts +++ /dev/null @@ -1,1540 +0,0 @@ -// Autogenerated API client for: Amazon Relational Database Service - -interface RequestConfig { - abortSignal?: AbortSignal; -} - -export * from "./structs.ts"; -import * as client from "../../client/common.ts"; -import * as qsP from "../../encoding/querystring.ts"; -import * as xmlP from "../../encoding/xml.ts"; -import type * as s from "./structs.ts"; - -export default class RDS { - #client: client.ServiceClient; - constructor(apiFactory: client.ApiFactory) { - this.#client = apiFactory.buildServiceClient(RDS.ApiMetadata); - } - - static ApiMetadata: client.ApiMetadata = { - "apiVersion": "2014-09-01", - "endpointPrefix": "rds", - "protocol": "query", - "serviceAbbreviation": "Amazon RDS", - "serviceFullName": "Amazon Relational Database Service", - "serviceId": "RDS", - "signatureVersion": "v4", - "uid": "rds-2014-09-01", - "xmlNamespace": "http://rds.amazonaws.com/doc/2014-09-01/" - }; - - async addSourceIdentifierToSubscription( - {abortSignal, ...params}: RequestConfig & s.AddSourceIdentifierToSubscriptionMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SubscriptionName", (params["SubscriptionName"] ?? '').toString()); - body.append(prefix+"SourceIdentifier", (params["SourceIdentifier"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "AddSourceIdentifierToSubscription", - }); - const xml = xmlP.readXmlResult(await resp.text(), "AddSourceIdentifierToSubscriptionResult"); - return { - EventSubscription: xml.first("EventSubscription", false, EventSubscription_Parse), - }; - } - - async addTagsToResource( - {abortSignal, ...params}: RequestConfig & s.AddTagsToResourceMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"ResourceName", (params["ResourceName"] ?? '').toString()); - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "AddTagsToResource", - }); - await resp.arrayBuffer(); // consume body without use - } - - async authorizeDBSecurityGroupIngress( - {abortSignal, ...params}: RequestConfig & s.AuthorizeDBSecurityGroupIngressMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSecurityGroupName", (params["DBSecurityGroupName"] ?? '').toString()); - if ("CIDRIP" in params) body.append(prefix+"CIDRIP", (params["CIDRIP"] ?? '').toString()); - if ("EC2SecurityGroupName" in params) body.append(prefix+"EC2SecurityGroupName", (params["EC2SecurityGroupName"] ?? '').toString()); - if ("EC2SecurityGroupId" in params) body.append(prefix+"EC2SecurityGroupId", (params["EC2SecurityGroupId"] ?? '').toString()); - if ("EC2SecurityGroupOwnerId" in params) body.append(prefix+"EC2SecurityGroupOwnerId", (params["EC2SecurityGroupOwnerId"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "AuthorizeDBSecurityGroupIngress", - }); - const xml = xmlP.readXmlResult(await resp.text(), "AuthorizeDBSecurityGroupIngressResult"); - return { - DBSecurityGroup: xml.first("DBSecurityGroup", false, DBSecurityGroup_Parse), - }; - } - - async copyDBParameterGroup( - {abortSignal, ...params}: RequestConfig & s.CopyDBParameterGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SourceDBParameterGroupIdentifier", (params["SourceDBParameterGroupIdentifier"] ?? '').toString()); - body.append(prefix+"TargetDBParameterGroupIdentifier", (params["TargetDBParameterGroupIdentifier"] ?? '').toString()); - body.append(prefix+"TargetDBParameterGroupDescription", (params["TargetDBParameterGroupDescription"] ?? '').toString()); - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CopyDBParameterGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CopyDBParameterGroupResult"); - return { - DBParameterGroup: xml.first("DBParameterGroup", false, DBParameterGroup_Parse), - }; - } - - async copyDBSnapshot( - {abortSignal, ...params}: RequestConfig & s.CopyDBSnapshotMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SourceDBSnapshotIdentifier", (params["SourceDBSnapshotIdentifier"] ?? '').toString()); - body.append(prefix+"TargetDBSnapshotIdentifier", (params["TargetDBSnapshotIdentifier"] ?? '').toString()); - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CopyDBSnapshot", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CopyDBSnapshotResult"); - return { - DBSnapshot: xml.first("DBSnapshot", false, DBSnapshot_Parse), - }; - } - - async copyOptionGroup( - {abortSignal, ...params}: RequestConfig & s.CopyOptionGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SourceOptionGroupIdentifier", (params["SourceOptionGroupIdentifier"] ?? '').toString()); - body.append(prefix+"TargetOptionGroupIdentifier", (params["TargetOptionGroupIdentifier"] ?? '').toString()); - body.append(prefix+"TargetOptionGroupDescription", (params["TargetOptionGroupDescription"] ?? '').toString()); - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CopyOptionGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CopyOptionGroupResult"); - return { - OptionGroup: xml.first("OptionGroup", false, OptionGroup_Parse), - }; - } - - async createDBInstance( - {abortSignal, ...params}: RequestConfig & s.CreateDBInstanceMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("DBName" in params) body.append(prefix+"DBName", (params["DBName"] ?? '').toString()); - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - body.append(prefix+"AllocatedStorage", (params["AllocatedStorage"] ?? '').toString()); - body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - body.append(prefix+"Engine", (params["Engine"] ?? '').toString()); - body.append(prefix+"MasterUsername", (params["MasterUsername"] ?? '').toString()); - body.append(prefix+"MasterUserPassword", (params["MasterUserPassword"] ?? '').toString()); - if (params["DBSecurityGroups"]) qsP.appendList(body, prefix+"DBSecurityGroups", params["DBSecurityGroups"], {"entryPrefix":".DBSecurityGroupName."}) - if (params["VpcSecurityGroupIds"]) qsP.appendList(body, prefix+"VpcSecurityGroupIds", params["VpcSecurityGroupIds"], {"entryPrefix":".VpcSecurityGroupId."}) - if ("AvailabilityZone" in params) body.append(prefix+"AvailabilityZone", (params["AvailabilityZone"] ?? '').toString()); - if ("DBSubnetGroupName" in params) body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - if ("PreferredMaintenanceWindow" in params) body.append(prefix+"PreferredMaintenanceWindow", (params["PreferredMaintenanceWindow"] ?? '').toString()); - if ("DBParameterGroupName" in params) body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - if ("BackupRetentionPeriod" in params) body.append(prefix+"BackupRetentionPeriod", (params["BackupRetentionPeriod"] ?? '').toString()); - if ("PreferredBackupWindow" in params) body.append(prefix+"PreferredBackupWindow", (params["PreferredBackupWindow"] ?? '').toString()); - if ("Port" in params) body.append(prefix+"Port", (params["Port"] ?? '').toString()); - if ("MultiAZ" in params) body.append(prefix+"MultiAZ", (params["MultiAZ"] ?? '').toString()); - if ("EngineVersion" in params) body.append(prefix+"EngineVersion", (params["EngineVersion"] ?? '').toString()); - if ("AutoMinorVersionUpgrade" in params) body.append(prefix+"AutoMinorVersionUpgrade", (params["AutoMinorVersionUpgrade"] ?? '').toString()); - if ("LicenseModel" in params) body.append(prefix+"LicenseModel", (params["LicenseModel"] ?? '').toString()); - if ("Iops" in params) body.append(prefix+"Iops", (params["Iops"] ?? '').toString()); - if ("OptionGroupName" in params) body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - if ("CharacterSetName" in params) body.append(prefix+"CharacterSetName", (params["CharacterSetName"] ?? '').toString()); - if ("PubliclyAccessible" in params) body.append(prefix+"PubliclyAccessible", (params["PubliclyAccessible"] ?? '').toString()); - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - if ("StorageType" in params) body.append(prefix+"StorageType", (params["StorageType"] ?? '').toString()); - if ("TdeCredentialArn" in params) body.append(prefix+"TdeCredentialArn", (params["TdeCredentialArn"] ?? '').toString()); - if ("TdeCredentialPassword" in params) body.append(prefix+"TdeCredentialPassword", (params["TdeCredentialPassword"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateDBInstance", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateDBInstanceResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async createDBInstanceReadReplica( - {abortSignal, ...params}: RequestConfig & s.CreateDBInstanceReadReplicaMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - body.append(prefix+"SourceDBInstanceIdentifier", (params["SourceDBInstanceIdentifier"] ?? '').toString()); - if ("DBInstanceClass" in params) body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - if ("AvailabilityZone" in params) body.append(prefix+"AvailabilityZone", (params["AvailabilityZone"] ?? '').toString()); - if ("Port" in params) body.append(prefix+"Port", (params["Port"] ?? '').toString()); - if ("AutoMinorVersionUpgrade" in params) body.append(prefix+"AutoMinorVersionUpgrade", (params["AutoMinorVersionUpgrade"] ?? '').toString()); - if ("Iops" in params) body.append(prefix+"Iops", (params["Iops"] ?? '').toString()); - if ("OptionGroupName" in params) body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - if ("PubliclyAccessible" in params) body.append(prefix+"PubliclyAccessible", (params["PubliclyAccessible"] ?? '').toString()); - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - if ("DBSubnetGroupName" in params) body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - if ("StorageType" in params) body.append(prefix+"StorageType", (params["StorageType"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateDBInstanceReadReplica", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateDBInstanceReadReplicaResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async createDBParameterGroup( - {abortSignal, ...params}: RequestConfig & s.CreateDBParameterGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - body.append(prefix+"DBParameterGroupFamily", (params["DBParameterGroupFamily"] ?? '').toString()); - body.append(prefix+"Description", (params["Description"] ?? '').toString()); - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateDBParameterGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateDBParameterGroupResult"); - return { - DBParameterGroup: xml.first("DBParameterGroup", false, DBParameterGroup_Parse), - }; - } - - async createDBSecurityGroup( - {abortSignal, ...params}: RequestConfig & s.CreateDBSecurityGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSecurityGroupName", (params["DBSecurityGroupName"] ?? '').toString()); - body.append(prefix+"DBSecurityGroupDescription", (params["DBSecurityGroupDescription"] ?? '').toString()); - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateDBSecurityGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateDBSecurityGroupResult"); - return { - DBSecurityGroup: xml.first("DBSecurityGroup", false, DBSecurityGroup_Parse), - }; - } - - async createDBSnapshot( - {abortSignal, ...params}: RequestConfig & s.CreateDBSnapshotMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSnapshotIdentifier", (params["DBSnapshotIdentifier"] ?? '').toString()); - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateDBSnapshot", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateDBSnapshotResult"); - return { - DBSnapshot: xml.first("DBSnapshot", false, DBSnapshot_Parse), - }; - } - - async createDBSubnetGroup( - {abortSignal, ...params}: RequestConfig & s.CreateDBSubnetGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - body.append(prefix+"DBSubnetGroupDescription", (params["DBSubnetGroupDescription"] ?? '').toString()); - if (params["SubnetIds"]) qsP.appendList(body, prefix+"SubnetIds", params["SubnetIds"], {"entryPrefix":".SubnetIdentifier."}) - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateDBSubnetGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateDBSubnetGroupResult"); - return { - DBSubnetGroup: xml.first("DBSubnetGroup", false, DBSubnetGroup_Parse), - }; - } - - async createEventSubscription( - {abortSignal, ...params}: RequestConfig & s.CreateEventSubscriptionMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SubscriptionName", (params["SubscriptionName"] ?? '').toString()); - body.append(prefix+"SnsTopicArn", (params["SnsTopicArn"] ?? '').toString()); - if ("SourceType" in params) body.append(prefix+"SourceType", (params["SourceType"] ?? '').toString()); - if (params["EventCategories"]) qsP.appendList(body, prefix+"EventCategories", params["EventCategories"], {"entryPrefix":".EventCategory."}) - if (params["SourceIds"]) qsP.appendList(body, prefix+"SourceIds", params["SourceIds"], {"entryPrefix":".SourceId."}) - if ("Enabled" in params) body.append(prefix+"Enabled", (params["Enabled"] ?? '').toString()); - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateEventSubscription", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateEventSubscriptionResult"); - return { - EventSubscription: xml.first("EventSubscription", false, EventSubscription_Parse), - }; - } - - async createOptionGroup( - {abortSignal, ...params}: RequestConfig & s.CreateOptionGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - body.append(prefix+"EngineName", (params["EngineName"] ?? '').toString()); - body.append(prefix+"MajorEngineVersion", (params["MajorEngineVersion"] ?? '').toString()); - body.append(prefix+"OptionGroupDescription", (params["OptionGroupDescription"] ?? '').toString()); - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "CreateOptionGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "CreateOptionGroupResult"); - return { - OptionGroup: xml.first("OptionGroup", false, OptionGroup_Parse), - }; - } - - async deleteDBInstance( - {abortSignal, ...params}: RequestConfig & s.DeleteDBInstanceMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - if ("SkipFinalSnapshot" in params) body.append(prefix+"SkipFinalSnapshot", (params["SkipFinalSnapshot"] ?? '').toString()); - if ("FinalDBSnapshotIdentifier" in params) body.append(prefix+"FinalDBSnapshotIdentifier", (params["FinalDBSnapshotIdentifier"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteDBInstance", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DeleteDBInstanceResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async deleteDBParameterGroup( - {abortSignal, ...params}: RequestConfig & s.DeleteDBParameterGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteDBParameterGroup", - }); - await resp.arrayBuffer(); // consume body without use - } - - async deleteDBSecurityGroup( - {abortSignal, ...params}: RequestConfig & s.DeleteDBSecurityGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSecurityGroupName", (params["DBSecurityGroupName"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteDBSecurityGroup", - }); - await resp.arrayBuffer(); // consume body without use - } - - async deleteDBSnapshot( - {abortSignal, ...params}: RequestConfig & s.DeleteDBSnapshotMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSnapshotIdentifier", (params["DBSnapshotIdentifier"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteDBSnapshot", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DeleteDBSnapshotResult"); - return { - DBSnapshot: xml.first("DBSnapshot", false, DBSnapshot_Parse), - }; - } - - async deleteDBSubnetGroup( - {abortSignal, ...params}: RequestConfig & s.DeleteDBSubnetGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteDBSubnetGroup", - }); - await resp.arrayBuffer(); // consume body without use - } - - async deleteEventSubscription( - {abortSignal, ...params}: RequestConfig & s.DeleteEventSubscriptionMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SubscriptionName", (params["SubscriptionName"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteEventSubscription", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DeleteEventSubscriptionResult"); - return { - EventSubscription: xml.first("EventSubscription", false, EventSubscription_Parse), - }; - } - - async deleteOptionGroup( - {abortSignal, ...params}: RequestConfig & s.DeleteOptionGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DeleteOptionGroup", - }); - await resp.arrayBuffer(); // consume body without use - } - - async describeDBEngineVersions( - {abortSignal, ...params}: RequestConfig & s.DescribeDBEngineVersionsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("Engine" in params) body.append(prefix+"Engine", (params["Engine"] ?? '').toString()); - if ("EngineVersion" in params) body.append(prefix+"EngineVersion", (params["EngineVersion"] ?? '').toString()); - if ("DBParameterGroupFamily" in params) body.append(prefix+"DBParameterGroupFamily", (params["DBParameterGroupFamily"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - if ("DefaultOnly" in params) body.append(prefix+"DefaultOnly", (params["DefaultOnly"] ?? '').toString()); - if ("ListSupportedCharacterSets" in params) body.append(prefix+"ListSupportedCharacterSets", (params["ListSupportedCharacterSets"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBEngineVersions", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBEngineVersionsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - DBEngineVersions: xml.getList("DBEngineVersions", "DBEngineVersion").map(DBEngineVersion_Parse), - }; - } - - async describeDBInstances( - {abortSignal, ...params}: RequestConfig & s.DescribeDBInstancesMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("DBInstanceIdentifier" in params) body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBInstances", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBInstancesResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - DBInstances: xml.getList("DBInstances", "DBInstance").map(DBInstance_Parse), - }; - } - - async describeDBLogFiles( - {abortSignal, ...params}: RequestConfig & s.DescribeDBLogFilesMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - if ("FilenameContains" in params) body.append(prefix+"FilenameContains", (params["FilenameContains"] ?? '').toString()); - if ("FileLastWritten" in params) body.append(prefix+"FileLastWritten", (params["FileLastWritten"] ?? '').toString()); - if ("FileSize" in params) body.append(prefix+"FileSize", (params["FileSize"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBLogFiles", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBLogFilesResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - DescribeDBLogFiles: xml.getList("DescribeDBLogFiles", "DescribeDBLogFilesDetails").map(DescribeDBLogFilesDetails_Parse), - }; - } - - async describeDBParameterGroups( - {abortSignal, ...params}: RequestConfig & s.DescribeDBParameterGroupsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("DBParameterGroupName" in params) body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBParameterGroups", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBParameterGroupsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - DBParameterGroups: xml.getList("DBParameterGroups", "DBParameterGroup").map(DBParameterGroup_Parse), - }; - } - - async describeDBParameters( - {abortSignal, ...params}: RequestConfig & s.DescribeDBParametersMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - if ("Source" in params) body.append(prefix+"Source", (params["Source"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBParameters", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBParametersResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - Parameters: xml.getList("Parameters", "Parameter").map(Parameter_Parse), - }; - } - - async describeDBSecurityGroups( - {abortSignal, ...params}: RequestConfig & s.DescribeDBSecurityGroupsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("DBSecurityGroupName" in params) body.append(prefix+"DBSecurityGroupName", (params["DBSecurityGroupName"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBSecurityGroups", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBSecurityGroupsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - DBSecurityGroups: xml.getList("DBSecurityGroups", "DBSecurityGroup").map(DBSecurityGroup_Parse), - }; - } - - async describeDBSnapshots( - {abortSignal, ...params}: RequestConfig & s.DescribeDBSnapshotsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("DBInstanceIdentifier" in params) body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - if ("DBSnapshotIdentifier" in params) body.append(prefix+"DBSnapshotIdentifier", (params["DBSnapshotIdentifier"] ?? '').toString()); - if ("SnapshotType" in params) body.append(prefix+"SnapshotType", (params["SnapshotType"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBSnapshots", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBSnapshotsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - DBSnapshots: xml.getList("DBSnapshots", "DBSnapshot").map(DBSnapshot_Parse), - }; - } - - async describeDBSubnetGroups( - {abortSignal, ...params}: RequestConfig & s.DescribeDBSubnetGroupsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("DBSubnetGroupName" in params) body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeDBSubnetGroups", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeDBSubnetGroupsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - DBSubnetGroups: xml.getList("DBSubnetGroups", "DBSubnetGroup").map(DBSubnetGroup_Parse), - }; - } - - async describeEngineDefaultParameters( - {abortSignal, ...params}: RequestConfig & s.DescribeEngineDefaultParametersMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBParameterGroupFamily", (params["DBParameterGroupFamily"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeEngineDefaultParameters", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeEngineDefaultParametersResult"); - return { - EngineDefaults: xml.first("EngineDefaults", false, EngineDefaults_Parse), - }; - } - - async describeEventCategories( - {abortSignal, ...params}: RequestConfig & s.DescribeEventCategoriesMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("SourceType" in params) body.append(prefix+"SourceType", (params["SourceType"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeEventCategories", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeEventCategoriesResult"); - return { - EventCategoriesMapList: xml.getList("EventCategoriesMapList", "EventCategoriesMap").map(EventCategoriesMap_Parse), - }; - } - - async describeEventSubscriptions( - {abortSignal, ...params}: RequestConfig & s.DescribeEventSubscriptionsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("SubscriptionName" in params) body.append(prefix+"SubscriptionName", (params["SubscriptionName"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeEventSubscriptions", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeEventSubscriptionsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - EventSubscriptionsList: xml.getList("EventSubscriptionsList", "EventSubscription").map(EventSubscription_Parse), - }; - } - - async describeEvents( - {abortSignal, ...params}: RequestConfig & s.DescribeEventsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("SourceIdentifier" in params) body.append(prefix+"SourceIdentifier", (params["SourceIdentifier"] ?? '').toString()); - if ("SourceType" in params) body.append(prefix+"SourceType", (params["SourceType"] ?? '').toString()); - if ("StartTime" in params) body.append(prefix+"StartTime", qsP.encodeDate_iso8601(params["StartTime"])); - if ("EndTime" in params) body.append(prefix+"EndTime", qsP.encodeDate_iso8601(params["EndTime"])); - if ("Duration" in params) body.append(prefix+"Duration", (params["Duration"] ?? '').toString()); - if (params["EventCategories"]) qsP.appendList(body, prefix+"EventCategories", params["EventCategories"], {"entryPrefix":".EventCategory."}) - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeEvents", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeEventsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - Events: xml.getList("Events", "Event").map(Event_Parse), - }; - } - - async describeOptionGroupOptions( - {abortSignal, ...params}: RequestConfig & s.DescribeOptionGroupOptionsMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"EngineName", (params["EngineName"] ?? '').toString()); - if ("MajorEngineVersion" in params) body.append(prefix+"MajorEngineVersion", (params["MajorEngineVersion"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeOptionGroupOptions", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeOptionGroupOptionsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - OptionGroupOptions: xml.getList("OptionGroupOptions", "OptionGroupOption").map(OptionGroupOption_Parse), - }; - } - - async describeOptionGroups( - {abortSignal, ...params}: RequestConfig & s.DescribeOptionGroupsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("OptionGroupName" in params) body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("EngineName" in params) body.append(prefix+"EngineName", (params["EngineName"] ?? '').toString()); - if ("MajorEngineVersion" in params) body.append(prefix+"MajorEngineVersion", (params["MajorEngineVersion"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeOptionGroups", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeOptionGroupsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - OptionGroupsList: xml.getList("OptionGroupsList", "OptionGroup").map(OptionGroup_Parse), - }; - } - - async describeOrderableDBInstanceOptions( - {abortSignal, ...params}: RequestConfig & s.DescribeOrderableDBInstanceOptionsMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"Engine", (params["Engine"] ?? '').toString()); - if ("EngineVersion" in params) body.append(prefix+"EngineVersion", (params["EngineVersion"] ?? '').toString()); - if ("DBInstanceClass" in params) body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - if ("LicenseModel" in params) body.append(prefix+"LicenseModel", (params["LicenseModel"] ?? '').toString()); - if ("Vpc" in params) body.append(prefix+"Vpc", (params["Vpc"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeOrderableDBInstanceOptions", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeOrderableDBInstanceOptionsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - OrderableDBInstanceOptions: xml.getList("OrderableDBInstanceOptions", "OrderableDBInstanceOption").map(OrderableDBInstanceOption_Parse), - }; - } - - async describeReservedDBInstances( - {abortSignal, ...params}: RequestConfig & s.DescribeReservedDBInstancesMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("ReservedDBInstanceId" in params) body.append(prefix+"ReservedDBInstanceId", (params["ReservedDBInstanceId"] ?? '').toString()); - if ("ReservedDBInstancesOfferingId" in params) body.append(prefix+"ReservedDBInstancesOfferingId", (params["ReservedDBInstancesOfferingId"] ?? '').toString()); - if ("DBInstanceClass" in params) body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - if ("Duration" in params) body.append(prefix+"Duration", (params["Duration"] ?? '').toString()); - if ("ProductDescription" in params) body.append(prefix+"ProductDescription", (params["ProductDescription"] ?? '').toString()); - if ("OfferingType" in params) body.append(prefix+"OfferingType", (params["OfferingType"] ?? '').toString()); - if ("MultiAZ" in params) body.append(prefix+"MultiAZ", (params["MultiAZ"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeReservedDBInstances", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeReservedDBInstancesResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - ReservedDBInstances: xml.getList("ReservedDBInstances", "ReservedDBInstance").map(ReservedDBInstance_Parse), - }; - } - - async describeReservedDBInstancesOfferings( - {abortSignal, ...params}: RequestConfig & s.DescribeReservedDBInstancesOfferingsMessage = {}, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - if ("ReservedDBInstancesOfferingId" in params) body.append(prefix+"ReservedDBInstancesOfferingId", (params["ReservedDBInstancesOfferingId"] ?? '').toString()); - if ("DBInstanceClass" in params) body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - if ("Duration" in params) body.append(prefix+"Duration", (params["Duration"] ?? '').toString()); - if ("ProductDescription" in params) body.append(prefix+"ProductDescription", (params["ProductDescription"] ?? '').toString()); - if ("OfferingType" in params) body.append(prefix+"OfferingType", (params["OfferingType"] ?? '').toString()); - if ("MultiAZ" in params) body.append(prefix+"MultiAZ", (params["MultiAZ"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - if ("MaxRecords" in params) body.append(prefix+"MaxRecords", (params["MaxRecords"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DescribeReservedDBInstancesOfferings", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DescribeReservedDBInstancesOfferingsResult"); - return { - ...xml.strings({ - optional: {"Marker":true}, - }), - ReservedDBInstancesOfferings: xml.getList("ReservedDBInstancesOfferings", "ReservedDBInstancesOffering").map(ReservedDBInstancesOffering_Parse), - }; - } - - async downloadDBLogFilePortion( - {abortSignal, ...params}: RequestConfig & s.DownloadDBLogFilePortionMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - body.append(prefix+"LogFileName", (params["LogFileName"] ?? '').toString()); - if ("Marker" in params) body.append(prefix+"Marker", (params["Marker"] ?? '').toString()); - if ("NumberOfLines" in params) body.append(prefix+"NumberOfLines", (params["NumberOfLines"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "DownloadDBLogFilePortion", - }); - const xml = xmlP.readXmlResult(await resp.text(), "DownloadDBLogFilePortionResult"); - return { - ...xml.strings({ - optional: {"LogFileData":true,"Marker":true}, - }), - AdditionalDataPending: xml.first("AdditionalDataPending", false, x => x.content === 'true'), - }; - } - - async listTagsForResource( - {abortSignal, ...params}: RequestConfig & s.ListTagsForResourceMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"ResourceName", (params["ResourceName"] ?? '').toString()); - if (params["Filters"]) qsP.appendList(body, prefix+"Filters", params["Filters"], {"appender":Filter_Serialize,"entryPrefix":".Filter."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "ListTagsForResource", - }); - const xml = xmlP.readXmlResult(await resp.text(), "ListTagsForResourceResult"); - return { - TagList: xml.getList("TagList", "Tag").map(Tag_Parse), - }; - } - - async modifyDBInstance( - {abortSignal, ...params}: RequestConfig & s.ModifyDBInstanceMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - if ("AllocatedStorage" in params) body.append(prefix+"AllocatedStorage", (params["AllocatedStorage"] ?? '').toString()); - if ("DBInstanceClass" in params) body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - if (params["DBSecurityGroups"]) qsP.appendList(body, prefix+"DBSecurityGroups", params["DBSecurityGroups"], {"entryPrefix":".DBSecurityGroupName."}) - if (params["VpcSecurityGroupIds"]) qsP.appendList(body, prefix+"VpcSecurityGroupIds", params["VpcSecurityGroupIds"], {"entryPrefix":".VpcSecurityGroupId."}) - if ("ApplyImmediately" in params) body.append(prefix+"ApplyImmediately", (params["ApplyImmediately"] ?? '').toString()); - if ("MasterUserPassword" in params) body.append(prefix+"MasterUserPassword", (params["MasterUserPassword"] ?? '').toString()); - if ("DBParameterGroupName" in params) body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - if ("BackupRetentionPeriod" in params) body.append(prefix+"BackupRetentionPeriod", (params["BackupRetentionPeriod"] ?? '').toString()); - if ("PreferredBackupWindow" in params) body.append(prefix+"PreferredBackupWindow", (params["PreferredBackupWindow"] ?? '').toString()); - if ("PreferredMaintenanceWindow" in params) body.append(prefix+"PreferredMaintenanceWindow", (params["PreferredMaintenanceWindow"] ?? '').toString()); - if ("MultiAZ" in params) body.append(prefix+"MultiAZ", (params["MultiAZ"] ?? '').toString()); - if ("EngineVersion" in params) body.append(prefix+"EngineVersion", (params["EngineVersion"] ?? '').toString()); - if ("AllowMajorVersionUpgrade" in params) body.append(prefix+"AllowMajorVersionUpgrade", (params["AllowMajorVersionUpgrade"] ?? '').toString()); - if ("AutoMinorVersionUpgrade" in params) body.append(prefix+"AutoMinorVersionUpgrade", (params["AutoMinorVersionUpgrade"] ?? '').toString()); - if ("Iops" in params) body.append(prefix+"Iops", (params["Iops"] ?? '').toString()); - if ("OptionGroupName" in params) body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - if ("NewDBInstanceIdentifier" in params) body.append(prefix+"NewDBInstanceIdentifier", (params["NewDBInstanceIdentifier"] ?? '').toString()); - if ("StorageType" in params) body.append(prefix+"StorageType", (params["StorageType"] ?? '').toString()); - if ("TdeCredentialArn" in params) body.append(prefix+"TdeCredentialArn", (params["TdeCredentialArn"] ?? '').toString()); - if ("TdeCredentialPassword" in params) body.append(prefix+"TdeCredentialPassword", (params["TdeCredentialPassword"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "ModifyDBInstance", - }); - const xml = xmlP.readXmlResult(await resp.text(), "ModifyDBInstanceResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async modifyDBParameterGroup( - {abortSignal, ...params}: RequestConfig & s.ModifyDBParameterGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - if (params["Parameters"]) qsP.appendList(body, prefix+"Parameters", params["Parameters"], {"appender":Parameter_Serialize,"entryPrefix":".Parameter."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "ModifyDBParameterGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "ModifyDBParameterGroupResult"); - return xml.strings({ - optional: {"DBParameterGroupName":true}, - }); - } - - async modifyDBSubnetGroup( - {abortSignal, ...params}: RequestConfig & s.ModifyDBSubnetGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - if ("DBSubnetGroupDescription" in params) body.append(prefix+"DBSubnetGroupDescription", (params["DBSubnetGroupDescription"] ?? '').toString()); - if (params["SubnetIds"]) qsP.appendList(body, prefix+"SubnetIds", params["SubnetIds"], {"entryPrefix":".SubnetIdentifier."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "ModifyDBSubnetGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "ModifyDBSubnetGroupResult"); - return { - DBSubnetGroup: xml.first("DBSubnetGroup", false, DBSubnetGroup_Parse), - }; - } - - async modifyEventSubscription( - {abortSignal, ...params}: RequestConfig & s.ModifyEventSubscriptionMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SubscriptionName", (params["SubscriptionName"] ?? '').toString()); - if ("SnsTopicArn" in params) body.append(prefix+"SnsTopicArn", (params["SnsTopicArn"] ?? '').toString()); - if ("SourceType" in params) body.append(prefix+"SourceType", (params["SourceType"] ?? '').toString()); - if (params["EventCategories"]) qsP.appendList(body, prefix+"EventCategories", params["EventCategories"], {"entryPrefix":".EventCategory."}) - if ("Enabled" in params) body.append(prefix+"Enabled", (params["Enabled"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "ModifyEventSubscription", - }); - const xml = xmlP.readXmlResult(await resp.text(), "ModifyEventSubscriptionResult"); - return { - EventSubscription: xml.first("EventSubscription", false, EventSubscription_Parse), - }; - } - - async modifyOptionGroup( - {abortSignal, ...params}: RequestConfig & s.ModifyOptionGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - if (params["OptionsToInclude"]) qsP.appendList(body, prefix+"OptionsToInclude", params["OptionsToInclude"], {"appender":OptionConfiguration_Serialize,"entryPrefix":".OptionConfiguration."}) - if (params["OptionsToRemove"]) qsP.appendList(body, prefix+"OptionsToRemove", params["OptionsToRemove"], {"entryPrefix":".member."}) - if ("ApplyImmediately" in params) body.append(prefix+"ApplyImmediately", (params["ApplyImmediately"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "ModifyOptionGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "ModifyOptionGroupResult"); - return { - OptionGroup: xml.first("OptionGroup", false, OptionGroup_Parse), - }; - } - - async promoteReadReplica( - {abortSignal, ...params}: RequestConfig & s.PromoteReadReplicaMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - if ("BackupRetentionPeriod" in params) body.append(prefix+"BackupRetentionPeriod", (params["BackupRetentionPeriod"] ?? '').toString()); - if ("PreferredBackupWindow" in params) body.append(prefix+"PreferredBackupWindow", (params["PreferredBackupWindow"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "PromoteReadReplica", - }); - const xml = xmlP.readXmlResult(await resp.text(), "PromoteReadReplicaResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async purchaseReservedDBInstancesOffering( - {abortSignal, ...params}: RequestConfig & s.PurchaseReservedDBInstancesOfferingMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"ReservedDBInstancesOfferingId", (params["ReservedDBInstancesOfferingId"] ?? '').toString()); - if ("ReservedDBInstanceId" in params) body.append(prefix+"ReservedDBInstanceId", (params["ReservedDBInstanceId"] ?? '').toString()); - if ("DBInstanceCount" in params) body.append(prefix+"DBInstanceCount", (params["DBInstanceCount"] ?? '').toString()); - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "PurchaseReservedDBInstancesOffering", - }); - const xml = xmlP.readXmlResult(await resp.text(), "PurchaseReservedDBInstancesOfferingResult"); - return { - ReservedDBInstance: xml.first("ReservedDBInstance", false, ReservedDBInstance_Parse), - }; - } - - async rebootDBInstance( - {abortSignal, ...params}: RequestConfig & s.RebootDBInstanceMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - if ("ForceFailover" in params) body.append(prefix+"ForceFailover", (params["ForceFailover"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "RebootDBInstance", - }); - const xml = xmlP.readXmlResult(await resp.text(), "RebootDBInstanceResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async removeSourceIdentifierFromSubscription( - {abortSignal, ...params}: RequestConfig & s.RemoveSourceIdentifierFromSubscriptionMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SubscriptionName", (params["SubscriptionName"] ?? '').toString()); - body.append(prefix+"SourceIdentifier", (params["SourceIdentifier"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "RemoveSourceIdentifierFromSubscription", - }); - const xml = xmlP.readXmlResult(await resp.text(), "RemoveSourceIdentifierFromSubscriptionResult"); - return { - EventSubscription: xml.first("EventSubscription", false, EventSubscription_Parse), - }; - } - - async removeTagsFromResource( - {abortSignal, ...params}: RequestConfig & s.RemoveTagsFromResourceMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"ResourceName", (params["ResourceName"] ?? '').toString()); - if (params["TagKeys"]) qsP.appendList(body, prefix+"TagKeys", params["TagKeys"], {"entryPrefix":".member."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "RemoveTagsFromResource", - }); - await resp.arrayBuffer(); // consume body without use - } - - async resetDBParameterGroup( - {abortSignal, ...params}: RequestConfig & s.ResetDBParameterGroupMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBParameterGroupName", (params["DBParameterGroupName"] ?? '').toString()); - if ("ResetAllParameters" in params) body.append(prefix+"ResetAllParameters", (params["ResetAllParameters"] ?? '').toString()); - if (params["Parameters"]) qsP.appendList(body, prefix+"Parameters", params["Parameters"], {"appender":Parameter_Serialize,"entryPrefix":".Parameter."}) - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "ResetDBParameterGroup", - }); - const xml = xmlP.readXmlResult(await resp.text(), "ResetDBParameterGroupResult"); - return xml.strings({ - optional: {"DBParameterGroupName":true}, - }); - } - - async restoreDBInstanceFromDBSnapshot( - {abortSignal, ...params}: RequestConfig & s.RestoreDBInstanceFromDBSnapshotMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBInstanceIdentifier", (params["DBInstanceIdentifier"] ?? '').toString()); - body.append(prefix+"DBSnapshotIdentifier", (params["DBSnapshotIdentifier"] ?? '').toString()); - if ("DBInstanceClass" in params) body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - if ("Port" in params) body.append(prefix+"Port", (params["Port"] ?? '').toString()); - if ("AvailabilityZone" in params) body.append(prefix+"AvailabilityZone", (params["AvailabilityZone"] ?? '').toString()); - if ("DBSubnetGroupName" in params) body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - if ("MultiAZ" in params) body.append(prefix+"MultiAZ", (params["MultiAZ"] ?? '').toString()); - if ("PubliclyAccessible" in params) body.append(prefix+"PubliclyAccessible", (params["PubliclyAccessible"] ?? '').toString()); - if ("AutoMinorVersionUpgrade" in params) body.append(prefix+"AutoMinorVersionUpgrade", (params["AutoMinorVersionUpgrade"] ?? '').toString()); - if ("LicenseModel" in params) body.append(prefix+"LicenseModel", (params["LicenseModel"] ?? '').toString()); - if ("DBName" in params) body.append(prefix+"DBName", (params["DBName"] ?? '').toString()); - if ("Engine" in params) body.append(prefix+"Engine", (params["Engine"] ?? '').toString()); - if ("Iops" in params) body.append(prefix+"Iops", (params["Iops"] ?? '').toString()); - if ("OptionGroupName" in params) body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - if ("StorageType" in params) body.append(prefix+"StorageType", (params["StorageType"] ?? '').toString()); - if ("TdeCredentialArn" in params) body.append(prefix+"TdeCredentialArn", (params["TdeCredentialArn"] ?? '').toString()); - if ("TdeCredentialPassword" in params) body.append(prefix+"TdeCredentialPassword", (params["TdeCredentialPassword"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "RestoreDBInstanceFromDBSnapshot", - }); - const xml = xmlP.readXmlResult(await resp.text(), "RestoreDBInstanceFromDBSnapshotResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async restoreDBInstanceToPointInTime( - {abortSignal, ...params}: RequestConfig & s.RestoreDBInstanceToPointInTimeMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"SourceDBInstanceIdentifier", (params["SourceDBInstanceIdentifier"] ?? '').toString()); - body.append(prefix+"TargetDBInstanceIdentifier", (params["TargetDBInstanceIdentifier"] ?? '').toString()); - if ("RestoreTime" in params) body.append(prefix+"RestoreTime", qsP.encodeDate_iso8601(params["RestoreTime"])); - if ("UseLatestRestorableTime" in params) body.append(prefix+"UseLatestRestorableTime", (params["UseLatestRestorableTime"] ?? '').toString()); - if ("DBInstanceClass" in params) body.append(prefix+"DBInstanceClass", (params["DBInstanceClass"] ?? '').toString()); - if ("Port" in params) body.append(prefix+"Port", (params["Port"] ?? '').toString()); - if ("AvailabilityZone" in params) body.append(prefix+"AvailabilityZone", (params["AvailabilityZone"] ?? '').toString()); - if ("DBSubnetGroupName" in params) body.append(prefix+"DBSubnetGroupName", (params["DBSubnetGroupName"] ?? '').toString()); - if ("MultiAZ" in params) body.append(prefix+"MultiAZ", (params["MultiAZ"] ?? '').toString()); - if ("PubliclyAccessible" in params) body.append(prefix+"PubliclyAccessible", (params["PubliclyAccessible"] ?? '').toString()); - if ("AutoMinorVersionUpgrade" in params) body.append(prefix+"AutoMinorVersionUpgrade", (params["AutoMinorVersionUpgrade"] ?? '').toString()); - if ("LicenseModel" in params) body.append(prefix+"LicenseModel", (params["LicenseModel"] ?? '').toString()); - if ("DBName" in params) body.append(prefix+"DBName", (params["DBName"] ?? '').toString()); - if ("Engine" in params) body.append(prefix+"Engine", (params["Engine"] ?? '').toString()); - if ("Iops" in params) body.append(prefix+"Iops", (params["Iops"] ?? '').toString()); - if ("OptionGroupName" in params) body.append(prefix+"OptionGroupName", (params["OptionGroupName"] ?? '').toString()); - if (params["Tags"]) qsP.appendList(body, prefix+"Tags", params["Tags"], {"appender":Tag_Serialize,"entryPrefix":".Tag."}) - if ("StorageType" in params) body.append(prefix+"StorageType", (params["StorageType"] ?? '').toString()); - if ("TdeCredentialArn" in params) body.append(prefix+"TdeCredentialArn", (params["TdeCredentialArn"] ?? '').toString()); - if ("TdeCredentialPassword" in params) body.append(prefix+"TdeCredentialPassword", (params["TdeCredentialPassword"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "RestoreDBInstanceToPointInTime", - }); - const xml = xmlP.readXmlResult(await resp.text(), "RestoreDBInstanceToPointInTimeResult"); - return { - DBInstance: xml.first("DBInstance", false, DBInstance_Parse), - }; - } - - async revokeDBSecurityGroupIngress( - {abortSignal, ...params}: RequestConfig & s.RevokeDBSecurityGroupIngressMessage, - ): Promise { - const body = new URLSearchParams; - const prefix = ''; - body.append(prefix+"DBSecurityGroupName", (params["DBSecurityGroupName"] ?? '').toString()); - if ("CIDRIP" in params) body.append(prefix+"CIDRIP", (params["CIDRIP"] ?? '').toString()); - if ("EC2SecurityGroupName" in params) body.append(prefix+"EC2SecurityGroupName", (params["EC2SecurityGroupName"] ?? '').toString()); - if ("EC2SecurityGroupId" in params) body.append(prefix+"EC2SecurityGroupId", (params["EC2SecurityGroupId"] ?? '').toString()); - if ("EC2SecurityGroupOwnerId" in params) body.append(prefix+"EC2SecurityGroupOwnerId", (params["EC2SecurityGroupOwnerId"] ?? '').toString()); - const resp = await this.#client.performRequest({ - abortSignal, body, - action: "RevokeDBSecurityGroupIngress", - }); - const xml = xmlP.readXmlResult(await resp.text(), "RevokeDBSecurityGroupIngressResult"); - return { - DBSecurityGroup: xml.first("DBSecurityGroup", false, DBSecurityGroup_Parse), - }; - } - -} - -function Tag_Serialize(body: URLSearchParams, prefix: string, params: s.Tag) { - if ("Key" in params) body.append(prefix+".Key", (params["Key"] ?? '').toString()); - if ("Value" in params) body.append(prefix+".Value", (params["Value"] ?? '').toString()); -} -function Tag_Parse(node: xmlP.XmlNode): s.Tag { - return node.strings({ - optional: {"Key":true,"Value":true}, - }); -} - -function Filter_Serialize(body: URLSearchParams, prefix: string, params: s.Filter) { - body.append(prefix+".Name", (params["Name"] ?? '').toString()); - if (params["Values"]) qsP.appendList(body, prefix+".Values", params["Values"], {"entryPrefix":".Value."}) -} - -function Parameter_Serialize(body: URLSearchParams, prefix: string, params: s.Parameter) { - if ("ParameterName" in params) body.append(prefix+".ParameterName", (params["ParameterName"] ?? '').toString()); - if ("ParameterValue" in params) body.append(prefix+".ParameterValue", (params["ParameterValue"] ?? '').toString()); - if ("Description" in params) body.append(prefix+".Description", (params["Description"] ?? '').toString()); - if ("Source" in params) body.append(prefix+".Source", (params["Source"] ?? '').toString()); - if ("ApplyType" in params) body.append(prefix+".ApplyType", (params["ApplyType"] ?? '').toString()); - if ("DataType" in params) body.append(prefix+".DataType", (params["DataType"] ?? '').toString()); - if ("AllowedValues" in params) body.append(prefix+".AllowedValues", (params["AllowedValues"] ?? '').toString()); - if ("IsModifiable" in params) body.append(prefix+".IsModifiable", (params["IsModifiable"] ?? '').toString()); - if ("MinimumEngineVersion" in params) body.append(prefix+".MinimumEngineVersion", (params["MinimumEngineVersion"] ?? '').toString()); - if ("ApplyMethod" in params) body.append(prefix+".ApplyMethod", (params["ApplyMethod"] ?? '').toString()); -} -function Parameter_Parse(node: xmlP.XmlNode): s.Parameter { - return { - ...node.strings({ - optional: {"ParameterName":true,"ParameterValue":true,"Description":true,"Source":true,"ApplyType":true,"DataType":true,"AllowedValues":true,"MinimumEngineVersion":true}, - }), - IsModifiable: node.first("IsModifiable", false, x => x.content === 'true'), - ApplyMethod: node.first("ApplyMethod", false, x => (x.content ?? '') as s.ApplyMethod), - }; -} - -function OptionConfiguration_Serialize(body: URLSearchParams, prefix: string, params: s.OptionConfiguration) { - body.append(prefix+".OptionName", (params["OptionName"] ?? '').toString()); - if ("Port" in params) body.append(prefix+".Port", (params["Port"] ?? '').toString()); - if (params["DBSecurityGroupMemberships"]) qsP.appendList(body, prefix+".DBSecurityGroupMemberships", params["DBSecurityGroupMemberships"], {"entryPrefix":".DBSecurityGroupName."}) - if (params["VpcSecurityGroupMemberships"]) qsP.appendList(body, prefix+".VpcSecurityGroupMemberships", params["VpcSecurityGroupMemberships"], {"entryPrefix":".VpcSecurityGroupId."}) - if (params["OptionSettings"]) qsP.appendList(body, prefix+".OptionSettings", params["OptionSettings"], {"appender":OptionSetting_Serialize,"entryPrefix":".OptionSetting."}) -} - -function OptionSetting_Serialize(body: URLSearchParams, prefix: string, params: s.OptionSetting) { - if ("Name" in params) body.append(prefix+".Name", (params["Name"] ?? '').toString()); - if ("Value" in params) body.append(prefix+".Value", (params["Value"] ?? '').toString()); - if ("DefaultValue" in params) body.append(prefix+".DefaultValue", (params["DefaultValue"] ?? '').toString()); - if ("Description" in params) body.append(prefix+".Description", (params["Description"] ?? '').toString()); - if ("ApplyType" in params) body.append(prefix+".ApplyType", (params["ApplyType"] ?? '').toString()); - if ("DataType" in params) body.append(prefix+".DataType", (params["DataType"] ?? '').toString()); - if ("AllowedValues" in params) body.append(prefix+".AllowedValues", (params["AllowedValues"] ?? '').toString()); - if ("IsModifiable" in params) body.append(prefix+".IsModifiable", (params["IsModifiable"] ?? '').toString()); - if ("IsCollection" in params) body.append(prefix+".IsCollection", (params["IsCollection"] ?? '').toString()); -} -function OptionSetting_Parse(node: xmlP.XmlNode): s.OptionSetting { - return { - ...node.strings({ - optional: {"Name":true,"Value":true,"DefaultValue":true,"Description":true,"ApplyType":true,"DataType":true,"AllowedValues":true}, - }), - IsModifiable: node.first("IsModifiable", false, x => x.content === 'true'), - IsCollection: node.first("IsCollection", false, x => x.content === 'true'), - }; -} - -function EventSubscription_Parse(node: xmlP.XmlNode): s.EventSubscription { - return { - ...node.strings({ - optional: {"CustomerAwsId":true,"CustSubscriptionId":true,"SnsTopicArn":true,"Status":true,"SubscriptionCreationTime":true,"SourceType":true}, - }), - SourceIdsList: node.getList("SourceIdsList", "SourceId").map(x => x.content ?? ''), - EventCategoriesList: node.getList("EventCategoriesList", "EventCategory").map(x => x.content ?? ''), - Enabled: node.first("Enabled", false, x => x.content === 'true'), - }; -} - -function DBSecurityGroup_Parse(node: xmlP.XmlNode): s.DBSecurityGroup { - return { - ...node.strings({ - optional: {"OwnerId":true,"DBSecurityGroupName":true,"DBSecurityGroupDescription":true,"VpcId":true}, - }), - EC2SecurityGroups: node.getList("EC2SecurityGroups", "EC2SecurityGroup").map(EC2SecurityGroup_Parse), - IPRanges: node.getList("IPRanges", "IPRange").map(IPRange_Parse), - }; -} - -function EC2SecurityGroup_Parse(node: xmlP.XmlNode): s.EC2SecurityGroup { - return node.strings({ - optional: {"Status":true,"EC2SecurityGroupName":true,"EC2SecurityGroupId":true,"EC2SecurityGroupOwnerId":true}, - }); -} - -function IPRange_Parse(node: xmlP.XmlNode): s.IPRange { - return node.strings({ - optional: {"Status":true,"CIDRIP":true}, - }); -} - -function DBParameterGroup_Parse(node: xmlP.XmlNode): s.DBParameterGroup { - return node.strings({ - optional: {"DBParameterGroupName":true,"DBParameterGroupFamily":true,"Description":true}, - }); -} - -function DBSnapshot_Parse(node: xmlP.XmlNode): s.DBSnapshot { - return { - ...node.strings({ - optional: {"DBSnapshotIdentifier":true,"DBInstanceIdentifier":true,"Engine":true,"Status":true,"AvailabilityZone":true,"VpcId":true,"MasterUsername":true,"EngineVersion":true,"LicenseModel":true,"SnapshotType":true,"OptionGroupName":true,"SourceRegion":true,"StorageType":true,"TdeCredentialArn":true}, - }), - SnapshotCreateTime: node.first("SnapshotCreateTime", false, x => xmlP.parseTimestamp(x.content)), - AllocatedStorage: node.first("AllocatedStorage", false, x => parseInt(x.content ?? '0')), - Port: node.first("Port", false, x => parseInt(x.content ?? '0')), - InstanceCreateTime: node.first("InstanceCreateTime", false, x => xmlP.parseTimestamp(x.content)), - Iops: node.first("Iops", false, x => parseInt(x.content ?? '0')), - PercentProgress: node.first("PercentProgress", false, x => parseInt(x.content ?? '0')), - }; -} - -function OptionGroup_Parse(node: xmlP.XmlNode): s.OptionGroup { - return { - ...node.strings({ - optional: {"OptionGroupName":true,"OptionGroupDescription":true,"EngineName":true,"MajorEngineVersion":true,"VpcId":true}, - }), - Options: node.getList("Options", "Option").map(Option_Parse), - AllowsVpcAndNonVpcInstanceMemberships: node.first("AllowsVpcAndNonVpcInstanceMemberships", false, x => x.content === 'true'), - }; -} - -function Option_Parse(node: xmlP.XmlNode): s.Option { - return { - ...node.strings({ - optional: {"OptionName":true,"OptionDescription":true}, - }), - Persistent: node.first("Persistent", false, x => x.content === 'true'), - Permanent: node.first("Permanent", false, x => x.content === 'true'), - Port: node.first("Port", false, x => parseInt(x.content ?? '0')), - OptionSettings: node.getList("OptionSettings", "OptionSetting").map(OptionSetting_Parse), - DBSecurityGroupMemberships: node.getList("DBSecurityGroupMemberships", "DBSecurityGroup").map(DBSecurityGroupMembership_Parse), - VpcSecurityGroupMemberships: node.getList("VpcSecurityGroupMemberships", "VpcSecurityGroupMembership").map(VpcSecurityGroupMembership_Parse), - }; -} - -function DBSecurityGroupMembership_Parse(node: xmlP.XmlNode): s.DBSecurityGroupMembership { - return node.strings({ - optional: {"DBSecurityGroupName":true,"Status":true}, - }); -} - -function VpcSecurityGroupMembership_Parse(node: xmlP.XmlNode): s.VpcSecurityGroupMembership { - return node.strings({ - optional: {"VpcSecurityGroupId":true,"Status":true}, - }); -} - -function DBInstance_Parse(node: xmlP.XmlNode): s.DBInstance { - return { - ...node.strings({ - optional: {"DBInstanceIdentifier":true,"DBInstanceClass":true,"Engine":true,"DBInstanceStatus":true,"MasterUsername":true,"DBName":true,"PreferredBackupWindow":true,"AvailabilityZone":true,"PreferredMaintenanceWindow":true,"EngineVersion":true,"ReadReplicaSourceDBInstanceIdentifier":true,"LicenseModel":true,"CharacterSetName":true,"SecondaryAvailabilityZone":true,"StorageType":true,"TdeCredentialArn":true}, - }), - Endpoint: node.first("Endpoint", false, Endpoint_Parse), - AllocatedStorage: node.first("AllocatedStorage", false, x => parseInt(x.content ?? '0')), - InstanceCreateTime: node.first("InstanceCreateTime", false, x => xmlP.parseTimestamp(x.content)), - BackupRetentionPeriod: node.first("BackupRetentionPeriod", false, x => parseInt(x.content ?? '0')), - DBSecurityGroups: node.getList("DBSecurityGroups", "DBSecurityGroup").map(DBSecurityGroupMembership_Parse), - VpcSecurityGroups: node.getList("VpcSecurityGroups", "VpcSecurityGroupMembership").map(VpcSecurityGroupMembership_Parse), - DBParameterGroups: node.getList("DBParameterGroups", "DBParameterGroup").map(DBParameterGroupStatus_Parse), - DBSubnetGroup: node.first("DBSubnetGroup", false, DBSubnetGroup_Parse), - PendingModifiedValues: node.first("PendingModifiedValues", false, PendingModifiedValues_Parse), - LatestRestorableTime: node.first("LatestRestorableTime", false, x => xmlP.parseTimestamp(x.content)), - MultiAZ: node.first("MultiAZ", false, x => x.content === 'true'), - AutoMinorVersionUpgrade: node.first("AutoMinorVersionUpgrade", false, x => x.content === 'true'), - ReadReplicaDBInstanceIdentifiers: node.getList("ReadReplicaDBInstanceIdentifiers", "ReadReplicaDBInstanceIdentifier").map(x => x.content ?? ''), - Iops: node.first("Iops", false, x => parseInt(x.content ?? '0')), - OptionGroupMemberships: node.getList("OptionGroupMemberships", "OptionGroupMembership").map(OptionGroupMembership_Parse), - PubliclyAccessible: node.first("PubliclyAccessible", false, x => x.content === 'true'), - StatusInfos: node.getList("StatusInfos", "DBInstanceStatusInfo").map(DBInstanceStatusInfo_Parse), - }; -} - -function Endpoint_Parse(node: xmlP.XmlNode): s.Endpoint { - return { - ...node.strings({ - optional: {"Address":true}, - }), - Port: node.first("Port", false, x => parseInt(x.content ?? '0')), - }; -} - -function DBParameterGroupStatus_Parse(node: xmlP.XmlNode): s.DBParameterGroupStatus { - return node.strings({ - optional: {"DBParameterGroupName":true,"ParameterApplyStatus":true}, - }); -} - -function DBSubnetGroup_Parse(node: xmlP.XmlNode): s.DBSubnetGroup { - return { - ...node.strings({ - optional: {"DBSubnetGroupName":true,"DBSubnetGroupDescription":true,"VpcId":true,"SubnetGroupStatus":true}, - }), - Subnets: node.getList("Subnets", "Subnet").map(Subnet_Parse), - }; -} - -function Subnet_Parse(node: xmlP.XmlNode): s.Subnet { - return { - ...node.strings({ - optional: {"SubnetIdentifier":true,"SubnetStatus":true}, - }), - SubnetAvailabilityZone: node.first("SubnetAvailabilityZone", false, AvailabilityZone_Parse), - }; -} - -function AvailabilityZone_Parse(node: xmlP.XmlNode): s.AvailabilityZone { - return node.strings({ - optional: {"Name":true}, - }); -} - -function PendingModifiedValues_Parse(node: xmlP.XmlNode): s.PendingModifiedValues { - return { - ...node.strings({ - optional: {"DBInstanceClass":true,"MasterUserPassword":true,"EngineVersion":true,"DBInstanceIdentifier":true,"StorageType":true}, - }), - AllocatedStorage: node.first("AllocatedStorage", false, x => parseInt(x.content ?? '0')), - Port: node.first("Port", false, x => parseInt(x.content ?? '0')), - BackupRetentionPeriod: node.first("BackupRetentionPeriod", false, x => parseInt(x.content ?? '0')), - MultiAZ: node.first("MultiAZ", false, x => x.content === 'true'), - Iops: node.first("Iops", false, x => parseInt(x.content ?? '0')), - }; -} - -function OptionGroupMembership_Parse(node: xmlP.XmlNode): s.OptionGroupMembership { - return node.strings({ - optional: {"OptionGroupName":true,"Status":true}, - }); -} - -function DBInstanceStatusInfo_Parse(node: xmlP.XmlNode): s.DBInstanceStatusInfo { - return { - ...node.strings({ - optional: {"StatusType":true,"Status":true,"Message":true}, - }), - Normal: node.first("Normal", false, x => x.content === 'true'), - }; -} - -function DBEngineVersion_Parse(node: xmlP.XmlNode): s.DBEngineVersion { - return { - ...node.strings({ - optional: {"Engine":true,"EngineVersion":true,"DBParameterGroupFamily":true,"DBEngineDescription":true,"DBEngineVersionDescription":true}, - }), - DefaultCharacterSet: node.first("DefaultCharacterSet", false, CharacterSet_Parse), - SupportedCharacterSets: node.getList("SupportedCharacterSets", "CharacterSet").map(CharacterSet_Parse), - }; -} - -function CharacterSet_Parse(node: xmlP.XmlNode): s.CharacterSet { - return node.strings({ - optional: {"CharacterSetName":true,"CharacterSetDescription":true}, - }); -} - -function DescribeDBLogFilesDetails_Parse(node: xmlP.XmlNode): s.DescribeDBLogFilesDetails { - return { - ...node.strings({ - optional: {"LogFileName":true}, - }), - LastWritten: node.first("LastWritten", false, x => parseInt(x.content ?? '0')), - Size: node.first("Size", false, x => parseInt(x.content ?? '0')), - }; -} - -function EngineDefaults_Parse(node: xmlP.XmlNode): s.EngineDefaults { - return { - ...node.strings({ - optional: {"DBParameterGroupFamily":true,"Marker":true}, - }), - Parameters: node.getList("Parameters", "Parameter").map(Parameter_Parse), - }; -} - -function EventCategoriesMap_Parse(node: xmlP.XmlNode): s.EventCategoriesMap { - return { - ...node.strings({ - optional: {"SourceType":true}, - }), - EventCategories: node.getList("EventCategories", "EventCategory").map(x => x.content ?? ''), - }; -} - -function Event_Parse(node: xmlP.XmlNode): s.Event { - return { - ...node.strings({ - optional: {"SourceIdentifier":true,"Message":true}, - }), - SourceType: node.first("SourceType", false, x => (x.content ?? '') as s.SourceType), - EventCategories: node.getList("EventCategories", "EventCategory").map(x => x.content ?? ''), - Date: node.first("Date", false, x => xmlP.parseTimestamp(x.content)), - }; -} - -function OptionGroupOption_Parse(node: xmlP.XmlNode): s.OptionGroupOption { - return { - ...node.strings({ - optional: {"Name":true,"Description":true,"EngineName":true,"MajorEngineVersion":true,"MinimumRequiredMinorEngineVersion":true}, - }), - PortRequired: node.first("PortRequired", false, x => x.content === 'true'), - DefaultPort: node.first("DefaultPort", false, x => parseInt(x.content ?? '0')), - OptionsDependedOn: node.getList("OptionsDependedOn", "OptionName").map(x => x.content ?? ''), - Persistent: node.first("Persistent", false, x => x.content === 'true'), - Permanent: node.first("Permanent", false, x => x.content === 'true'), - OptionGroupOptionSettings: node.getList("OptionGroupOptionSettings", "OptionGroupOptionSetting").map(OptionGroupOptionSetting_Parse), - }; -} - -function OptionGroupOptionSetting_Parse(node: xmlP.XmlNode): s.OptionGroupOptionSetting { - return { - ...node.strings({ - optional: {"SettingName":true,"SettingDescription":true,"DefaultValue":true,"ApplyType":true,"AllowedValues":true}, - }), - IsModifiable: node.first("IsModifiable", false, x => x.content === 'true'), - }; -} - -function OrderableDBInstanceOption_Parse(node: xmlP.XmlNode): s.OrderableDBInstanceOption { - return { - ...node.strings({ - optional: {"Engine":true,"EngineVersion":true,"DBInstanceClass":true,"LicenseModel":true,"StorageType":true}, - }), - AvailabilityZones: node.getList("AvailabilityZones", "AvailabilityZone").map(AvailabilityZone_Parse), - MultiAZCapable: node.first("MultiAZCapable", false, x => x.content === 'true'), - ReadReplicaCapable: node.first("ReadReplicaCapable", false, x => x.content === 'true'), - Vpc: node.first("Vpc", false, x => x.content === 'true'), - SupportsIops: node.first("SupportsIops", false, x => x.content === 'true'), - }; -} - -function ReservedDBInstance_Parse(node: xmlP.XmlNode): s.ReservedDBInstance { - return { - ...node.strings({ - optional: {"ReservedDBInstanceId":true,"ReservedDBInstancesOfferingId":true,"DBInstanceClass":true,"CurrencyCode":true,"ProductDescription":true,"OfferingType":true,"State":true}, - }), - StartTime: node.first("StartTime", false, x => xmlP.parseTimestamp(x.content)), - Duration: node.first("Duration", false, x => parseInt(x.content ?? '0')), - FixedPrice: node.first("FixedPrice", false, x => parseFloat(x.content ?? '0')), - UsagePrice: node.first("UsagePrice", false, x => parseFloat(x.content ?? '0')), - DBInstanceCount: node.first("DBInstanceCount", false, x => parseInt(x.content ?? '0')), - MultiAZ: node.first("MultiAZ", false, x => x.content === 'true'), - RecurringCharges: node.getList("RecurringCharges", "RecurringCharge").map(RecurringCharge_Parse), - }; -} - -function RecurringCharge_Parse(node: xmlP.XmlNode): s.RecurringCharge { - return { - ...node.strings({ - optional: {"RecurringChargeFrequency":true}, - }), - RecurringChargeAmount: node.first("RecurringChargeAmount", false, x => parseFloat(x.content ?? '0')), - }; -} - -function ReservedDBInstancesOffering_Parse(node: xmlP.XmlNode): s.ReservedDBInstancesOffering { - return { - ...node.strings({ - optional: {"ReservedDBInstancesOfferingId":true,"DBInstanceClass":true,"CurrencyCode":true,"ProductDescription":true,"OfferingType":true}, - }), - Duration: node.first("Duration", false, x => parseInt(x.content ?? '0')), - FixedPrice: node.first("FixedPrice", false, x => parseFloat(x.content ?? '0')), - UsagePrice: node.first("UsagePrice", false, x => parseFloat(x.content ?? '0')), - MultiAZ: node.first("MultiAZ", false, x => x.content === 'true'), - RecurringCharges: node.getList("RecurringCharges", "RecurringCharge").map(RecurringCharge_Parse), - }; -} diff --git a/lib/services/rds@2014-09-01/structs.ts b/lib/services/rds@2014-09-01/structs.ts deleted file mode 100644 index af0bf9fa..00000000 --- a/lib/services/rds@2014-09-01/structs.ts +++ /dev/null @@ -1,1151 +0,0 @@ -// Autogenerated API structures for: Amazon Relational Database Service - -import * as cmnP from "../../encoding/common.ts"; - -// refs: 1 - tags: named, input -export interface AddSourceIdentifierToSubscriptionMessage { - SubscriptionName: string; - SourceIdentifier: string; -} - -// refs: 1 - tags: named, input -export interface AddTagsToResourceMessage { - ResourceName: string; - Tags: Tag[]; -} - -// refs: 1 - tags: named, input -export interface AuthorizeDBSecurityGroupIngressMessage { - DBSecurityGroupName: string; - CIDRIP?: string | null; - EC2SecurityGroupName?: string | null; - EC2SecurityGroupId?: string | null; - EC2SecurityGroupOwnerId?: string | null; -} - -// refs: 1 - tags: named, input -export interface CopyDBParameterGroupMessage { - SourceDBParameterGroupIdentifier: string; - TargetDBParameterGroupIdentifier: string; - TargetDBParameterGroupDescription: string; - Tags?: Tag[] | null; -} - -// refs: 1 - tags: named, input -export interface CopyDBSnapshotMessage { - SourceDBSnapshotIdentifier: string; - TargetDBSnapshotIdentifier: string; - Tags?: Tag[] | null; -} - -// refs: 1 - tags: named, input -export interface CopyOptionGroupMessage { - SourceOptionGroupIdentifier: string; - TargetOptionGroupIdentifier: string; - TargetOptionGroupDescription: string; - Tags?: Tag[] | null; -} - -// refs: 1 - tags: named, input -export interface CreateDBInstanceMessage { - DBName?: string | null; - DBInstanceIdentifier: string; - AllocatedStorage: number; - DBInstanceClass: string; - Engine: string; - MasterUsername: string; - MasterUserPassword: string; - DBSecurityGroups?: string[] | null; - VpcSecurityGroupIds?: string[] | null; - AvailabilityZone?: string | null; - DBSubnetGroupName?: string | null; - PreferredMaintenanceWindow?: string | null; - DBParameterGroupName?: string | null; - BackupRetentionPeriod?: number | null; - PreferredBackupWindow?: string | null; - Port?: number | null; - MultiAZ?: boolean | null; - EngineVersion?: string | null; - AutoMinorVersionUpgrade?: boolean | null; - LicenseModel?: string | null; - Iops?: number | null; - OptionGroupName?: string | null; - CharacterSetName?: string | null; - PubliclyAccessible?: boolean | null; - Tags?: Tag[] | null; - StorageType?: string | null; - TdeCredentialArn?: string | null; - TdeCredentialPassword?: string | null; -} - -// refs: 1 - tags: named, input -export interface CreateDBInstanceReadReplicaMessage { - DBInstanceIdentifier: string; - SourceDBInstanceIdentifier: string; - DBInstanceClass?: string | null; - AvailabilityZone?: string | null; - Port?: number | null; - AutoMinorVersionUpgrade?: boolean | null; - Iops?: number | null; - OptionGroupName?: string | null; - PubliclyAccessible?: boolean | null; - Tags?: Tag[] | null; - DBSubnetGroupName?: string | null; - StorageType?: string | null; -} - -// refs: 1 - tags: named, input -export interface CreateDBParameterGroupMessage { - DBParameterGroupName: string; - DBParameterGroupFamily: string; - Description: string; - Tags?: Tag[] | null; -} - -// refs: 1 - tags: named, input -export interface CreateDBSecurityGroupMessage { - DBSecurityGroupName: string; - DBSecurityGroupDescription: string; - Tags?: Tag[] | null; -} - -// refs: 1 - tags: named, input -export interface CreateDBSnapshotMessage { - DBSnapshotIdentifier: string; - DBInstanceIdentifier: string; - Tags?: Tag[] | null; -} - -// refs: 1 - tags: named, input -export interface CreateDBSubnetGroupMessage { - DBSubnetGroupName: string; - DBSubnetGroupDescription: string; - SubnetIds: string[]; - Tags?: Tag[] | null; -} - -// refs: 1 - tags: named, input -export interface CreateEventSubscriptionMessage { - SubscriptionName: string; - SnsTopicArn: string; - SourceType?: string | null; - EventCategories?: string[] | null; - SourceIds?: string[] | null; - Enabled?: boolean | null; - Tags?: Tag[] | null; -} - -// refs: 1 - tags: named, input -export interface CreateOptionGroupMessage { - OptionGroupName: string; - EngineName: string; - MajorEngineVersion: string; - OptionGroupDescription: string; - Tags?: Tag[] | null; -} - -// refs: 1 - tags: named, input -export interface DeleteDBInstanceMessage { - DBInstanceIdentifier: string; - SkipFinalSnapshot?: boolean | null; - FinalDBSnapshotIdentifier?: string | null; -} - -// refs: 1 - tags: named, input -export interface DeleteDBParameterGroupMessage { - DBParameterGroupName: string; -} - -// refs: 1 - tags: named, input -export interface DeleteDBSecurityGroupMessage { - DBSecurityGroupName: string; -} - -// refs: 1 - tags: named, input -export interface DeleteDBSnapshotMessage { - DBSnapshotIdentifier: string; -} - -// refs: 1 - tags: named, input -export interface DeleteDBSubnetGroupMessage { - DBSubnetGroupName: string; -} - -// refs: 1 - tags: named, input -export interface DeleteEventSubscriptionMessage { - SubscriptionName: string; -} - -// refs: 1 - tags: named, input -export interface DeleteOptionGroupMessage { - OptionGroupName: string; -} - -// refs: 1 - tags: named, input -export interface DescribeDBEngineVersionsMessage { - Engine?: string | null; - EngineVersion?: string | null; - DBParameterGroupFamily?: string | null; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; - DefaultOnly?: boolean | null; - ListSupportedCharacterSets?: boolean | null; -} - -// refs: 1 - tags: named, input -export interface DescribeDBInstancesMessage { - DBInstanceIdentifier?: string | null; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeDBLogFilesMessage { - DBInstanceIdentifier: string; - FilenameContains?: string | null; - FileLastWritten?: number | null; - FileSize?: number | null; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeDBParameterGroupsMessage { - DBParameterGroupName?: string | null; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeDBParametersMessage { - DBParameterGroupName: string; - Source?: string | null; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeDBSecurityGroupsMessage { - DBSecurityGroupName?: string | null; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeDBSnapshotsMessage { - DBInstanceIdentifier?: string | null; - DBSnapshotIdentifier?: string | null; - SnapshotType?: string | null; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeDBSubnetGroupsMessage { - DBSubnetGroupName?: string | null; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeEngineDefaultParametersMessage { - DBParameterGroupFamily: string; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeEventCategoriesMessage { - SourceType?: string | null; - Filters?: Filter[] | null; -} - -// refs: 1 - tags: named, input -export interface DescribeEventSubscriptionsMessage { - SubscriptionName?: string | null; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeEventsMessage { - SourceIdentifier?: string | null; - SourceType?: SourceType | null; - StartTime?: Date | number | null; - EndTime?: Date | number | null; - Duration?: number | null; - EventCategories?: string[] | null; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeOptionGroupOptionsMessage { - EngineName: string; - MajorEngineVersion?: string | null; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeOptionGroupsMessage { - OptionGroupName?: string | null; - Filters?: Filter[] | null; - Marker?: string | null; - MaxRecords?: number | null; - EngineName?: string | null; - MajorEngineVersion?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeOrderableDBInstanceOptionsMessage { - Engine: string; - EngineVersion?: string | null; - DBInstanceClass?: string | null; - LicenseModel?: string | null; - Vpc?: boolean | null; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeReservedDBInstancesMessage { - ReservedDBInstanceId?: string | null; - ReservedDBInstancesOfferingId?: string | null; - DBInstanceClass?: string | null; - Duration?: string | null; - ProductDescription?: string | null; - OfferingType?: string | null; - MultiAZ?: boolean | null; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DescribeReservedDBInstancesOfferingsMessage { - ReservedDBInstancesOfferingId?: string | null; - DBInstanceClass?: string | null; - Duration?: string | null; - ProductDescription?: string | null; - OfferingType?: string | null; - MultiAZ?: boolean | null; - Filters?: Filter[] | null; - MaxRecords?: number | null; - Marker?: string | null; -} - -// refs: 1 - tags: named, input -export interface DownloadDBLogFilePortionMessage { - DBInstanceIdentifier: string; - LogFileName: string; - Marker?: string | null; - NumberOfLines?: number | null; -} - -// refs: 1 - tags: named, input -export interface ListTagsForResourceMessage { - ResourceName: string; - Filters?: Filter[] | null; -} - -// refs: 1 - tags: named, input -export interface ModifyDBInstanceMessage { - DBInstanceIdentifier: string; - AllocatedStorage?: number | null; - DBInstanceClass?: string | null; - DBSecurityGroups?: string[] | null; - VpcSecurityGroupIds?: string[] | null; - ApplyImmediately?: boolean | null; - MasterUserPassword?: string | null; - DBParameterGroupName?: string | null; - BackupRetentionPeriod?: number | null; - PreferredBackupWindow?: string | null; - PreferredMaintenanceWindow?: string | null; - MultiAZ?: boolean | null; - EngineVersion?: string | null; - AllowMajorVersionUpgrade?: boolean | null; - AutoMinorVersionUpgrade?: boolean | null; - Iops?: number | null; - OptionGroupName?: string | null; - NewDBInstanceIdentifier?: string | null; - StorageType?: string | null; - TdeCredentialArn?: string | null; - TdeCredentialPassword?: string | null; -} - -// refs: 1 - tags: named, input -export interface ModifyDBParameterGroupMessage { - DBParameterGroupName: string; - Parameters: Parameter[]; -} - -// refs: 1 - tags: named, input -export interface ModifyDBSubnetGroupMessage { - DBSubnetGroupName: string; - DBSubnetGroupDescription?: string | null; - SubnetIds: string[]; -} - -// refs: 1 - tags: named, input -export interface ModifyEventSubscriptionMessage { - SubscriptionName: string; - SnsTopicArn?: string | null; - SourceType?: string | null; - EventCategories?: string[] | null; - Enabled?: boolean | null; -} - -// refs: 1 - tags: named, input -export interface ModifyOptionGroupMessage { - OptionGroupName: string; - OptionsToInclude?: OptionConfiguration[] | null; - OptionsToRemove?: string[] | null; - ApplyImmediately?: boolean | null; -} - -// refs: 1 - tags: named, input -export interface PromoteReadReplicaMessage { - DBInstanceIdentifier: string; - BackupRetentionPeriod?: number | null; - PreferredBackupWindow?: string | null; -} - -// refs: 1 - tags: named, input -export interface PurchaseReservedDBInstancesOfferingMessage { - ReservedDBInstancesOfferingId: string; - ReservedDBInstanceId?: string | null; - DBInstanceCount?: number | null; - Tags?: Tag[] | null; -} - -// refs: 1 - tags: named, input -export interface RebootDBInstanceMessage { - DBInstanceIdentifier: string; - ForceFailover?: boolean | null; -} - -// refs: 1 - tags: named, input -export interface RemoveSourceIdentifierFromSubscriptionMessage { - SubscriptionName: string; - SourceIdentifier: string; -} - -// refs: 1 - tags: named, input -export interface RemoveTagsFromResourceMessage { - ResourceName: string; - TagKeys: string[]; -} - -// refs: 1 - tags: named, input -export interface ResetDBParameterGroupMessage { - DBParameterGroupName: string; - ResetAllParameters?: boolean | null; - Parameters?: Parameter[] | null; -} - -// refs: 1 - tags: named, input -export interface RestoreDBInstanceFromDBSnapshotMessage { - DBInstanceIdentifier: string; - DBSnapshotIdentifier: string; - DBInstanceClass?: string | null; - Port?: number | null; - AvailabilityZone?: string | null; - DBSubnetGroupName?: string | null; - MultiAZ?: boolean | null; - PubliclyAccessible?: boolean | null; - AutoMinorVersionUpgrade?: boolean | null; - LicenseModel?: string | null; - DBName?: string | null; - Engine?: string | null; - Iops?: number | null; - OptionGroupName?: string | null; - Tags?: Tag[] | null; - StorageType?: string | null; - TdeCredentialArn?: string | null; - TdeCredentialPassword?: string | null; -} - -// refs: 1 - tags: named, input -export interface RestoreDBInstanceToPointInTimeMessage { - SourceDBInstanceIdentifier: string; - TargetDBInstanceIdentifier: string; - RestoreTime?: Date | number | null; - UseLatestRestorableTime?: boolean | null; - DBInstanceClass?: string | null; - Port?: number | null; - AvailabilityZone?: string | null; - DBSubnetGroupName?: string | null; - MultiAZ?: boolean | null; - PubliclyAccessible?: boolean | null; - AutoMinorVersionUpgrade?: boolean | null; - LicenseModel?: string | null; - DBName?: string | null; - Engine?: string | null; - Iops?: number | null; - OptionGroupName?: string | null; - Tags?: Tag[] | null; - StorageType?: string | null; - TdeCredentialArn?: string | null; - TdeCredentialPassword?: string | null; -} - -// refs: 1 - tags: named, input -export interface RevokeDBSecurityGroupIngressMessage { - DBSecurityGroupName: string; - CIDRIP?: string | null; - EC2SecurityGroupName?: string | null; - EC2SecurityGroupId?: string | null; - EC2SecurityGroupOwnerId?: string | null; -} - -// refs: 1 - tags: named, output -export interface AddSourceIdentifierToSubscriptionResult { - EventSubscription?: EventSubscription | null; -} - -// refs: 1 - tags: named, output -export interface AuthorizeDBSecurityGroupIngressResult { - DBSecurityGroup?: DBSecurityGroup | null; -} - -// refs: 1 - tags: named, output -export interface CopyDBParameterGroupResult { - DBParameterGroup?: DBParameterGroup | null; -} - -// refs: 1 - tags: named, output -export interface CopyDBSnapshotResult { - DBSnapshot?: DBSnapshot | null; -} - -// refs: 1 - tags: named, output -export interface CopyOptionGroupResult { - OptionGroup?: OptionGroup | null; -} - -// refs: 1 - tags: named, output -export interface CreateDBInstanceResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface CreateDBInstanceReadReplicaResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface CreateDBParameterGroupResult { - DBParameterGroup?: DBParameterGroup | null; -} - -// refs: 1 - tags: named, output -export interface CreateDBSecurityGroupResult { - DBSecurityGroup?: DBSecurityGroup | null; -} - -// refs: 1 - tags: named, output -export interface CreateDBSnapshotResult { - DBSnapshot?: DBSnapshot | null; -} - -// refs: 1 - tags: named, output -export interface CreateDBSubnetGroupResult { - DBSubnetGroup?: DBSubnetGroup | null; -} - -// refs: 1 - tags: named, output -export interface CreateEventSubscriptionResult { - EventSubscription?: EventSubscription | null; -} - -// refs: 1 - tags: named, output -export interface CreateOptionGroupResult { - OptionGroup?: OptionGroup | null; -} - -// refs: 1 - tags: named, output -export interface DeleteDBInstanceResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface DeleteDBSnapshotResult { - DBSnapshot?: DBSnapshot | null; -} - -// refs: 1 - tags: named, output -export interface DeleteEventSubscriptionResult { - EventSubscription?: EventSubscription | null; -} - -// refs: 1 - tags: named, output -export interface DBEngineVersionMessage { - Marker?: string | null; - DBEngineVersions: DBEngineVersion[]; -} - -// refs: 1 - tags: named, output -export interface DBInstanceMessage { - Marker?: string | null; - DBInstances: DBInstance[]; -} - -// refs: 1 - tags: named, output -export interface DescribeDBLogFilesResponse { - DescribeDBLogFiles: DescribeDBLogFilesDetails[]; - Marker?: string | null; -} - -// refs: 1 - tags: named, output -export interface DBParameterGroupsMessage { - Marker?: string | null; - DBParameterGroups: DBParameterGroup[]; -} - -// refs: 1 - tags: named, output -export interface DBParameterGroupDetails { - Parameters: Parameter[]; - Marker?: string | null; -} - -// refs: 1 - tags: named, output -export interface DBSecurityGroupMessage { - Marker?: string | null; - DBSecurityGroups: DBSecurityGroup[]; -} - -// refs: 1 - tags: named, output -export interface DBSnapshotMessage { - Marker?: string | null; - DBSnapshots: DBSnapshot[]; -} - -// refs: 1 - tags: named, output -export interface DBSubnetGroupMessage { - Marker?: string | null; - DBSubnetGroups: DBSubnetGroup[]; -} - -// refs: 1 - tags: named, output -export interface DescribeEngineDefaultParametersResult { - EngineDefaults?: EngineDefaults | null; -} - -// refs: 1 - tags: named, output -export interface EventCategoriesMessage { - EventCategoriesMapList: EventCategoriesMap[]; -} - -// refs: 1 - tags: named, output -export interface EventSubscriptionsMessage { - Marker?: string | null; - EventSubscriptionsList: EventSubscription[]; -} - -// refs: 1 - tags: named, output -export interface EventsMessage { - Marker?: string | null; - Events: Event[]; -} - -// refs: 1 - tags: named, output -export interface OptionGroupOptionsMessage { - OptionGroupOptions: OptionGroupOption[]; - Marker?: string | null; -} - -// refs: 1 - tags: named, output -export interface OptionGroups { - OptionGroupsList: OptionGroup[]; - Marker?: string | null; -} - -// refs: 1 - tags: named, output -export interface OrderableDBInstanceOptionsMessage { - OrderableDBInstanceOptions: OrderableDBInstanceOption[]; - Marker?: string | null; -} - -// refs: 1 - tags: named, output -export interface ReservedDBInstanceMessage { - Marker?: string | null; - ReservedDBInstances: ReservedDBInstance[]; -} - -// refs: 1 - tags: named, output -export interface ReservedDBInstancesOfferingMessage { - Marker?: string | null; - ReservedDBInstancesOfferings: ReservedDBInstancesOffering[]; -} - -// refs: 1 - tags: named, output -export interface DownloadDBLogFilePortionDetails { - LogFileData?: string | null; - Marker?: string | null; - AdditionalDataPending?: boolean | null; -} - -// refs: 1 - tags: named, output -export interface TagListMessage { - TagList: Tag[]; -} - -// refs: 1 - tags: named, output -export interface ModifyDBInstanceResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface DBParameterGroupNameMessage { - DBParameterGroupName?: string | null; -} - -// refs: 1 - tags: named, output -export interface ModifyDBSubnetGroupResult { - DBSubnetGroup?: DBSubnetGroup | null; -} - -// refs: 1 - tags: named, output -export interface ModifyEventSubscriptionResult { - EventSubscription?: EventSubscription | null; -} - -// refs: 1 - tags: named, output -export interface ModifyOptionGroupResult { - OptionGroup?: OptionGroup | null; -} - -// refs: 1 - tags: named, output -export interface PromoteReadReplicaResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface PurchaseReservedDBInstancesOfferingResult { - ReservedDBInstance?: ReservedDBInstance | null; -} - -// refs: 1 - tags: named, output -export interface RebootDBInstanceResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface RemoveSourceIdentifierFromSubscriptionResult { - EventSubscription?: EventSubscription | null; -} - -// refs: 1 - tags: named, output -export interface RestoreDBInstanceFromDBSnapshotResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface RestoreDBInstanceToPointInTimeResult { - DBInstance?: DBInstance | null; -} - -// refs: 1 - tags: named, output -export interface RevokeDBSecurityGroupIngressResult { - DBSecurityGroup?: DBSecurityGroup | null; -} - -// refs: 16 - tags: input, named, interface, output -export interface Tag { - Key?: string | null; - Value?: string | null; -} - -// refs: 18 - tags: input, named, interface -export interface Filter { - Name: string; - Values: string[]; -} - -// refs: 2 - tags: input, named, enum, output -export type SourceType = -| "db-instance" -| "db-parameter-group" -| "db-security-group" -| "db-snapshot" -| cmnP.UnexpectedEnumValue; - -// refs: 4 - tags: input, named, interface, output -export interface Parameter { - ParameterName?: string | null; - ParameterValue?: string | null; - Description?: string | null; - Source?: string | null; - ApplyType?: string | null; - DataType?: string | null; - AllowedValues?: string | null; - IsModifiable?: boolean | null; - MinimumEngineVersion?: string | null; - ApplyMethod?: ApplyMethod | null; -} - -// refs: 4 - tags: input, named, enum, output -export type ApplyMethod = -| "immediate" -| "pending-reboot" -| cmnP.UnexpectedEnumValue; - -// refs: 1 - tags: input, named, interface -export interface OptionConfiguration { - OptionName: string; - Port?: number | null; - DBSecurityGroupMemberships?: string[] | null; - VpcSecurityGroupMemberships?: string[] | null; - OptionSettings?: OptionSetting[] | null; -} - -// refs: 5 - tags: input, named, interface, output -export interface OptionSetting { - Name?: string | null; - Value?: string | null; - DefaultValue?: string | null; - Description?: string | null; - ApplyType?: string | null; - DataType?: string | null; - AllowedValues?: string | null; - IsModifiable?: boolean | null; - IsCollection?: boolean | null; -} - -// refs: 6 - tags: output, named, interface -export interface EventSubscription { - CustomerAwsId?: string | null; - CustSubscriptionId?: string | null; - SnsTopicArn?: string | null; - Status?: string | null; - SubscriptionCreationTime?: string | null; - SourceType?: string | null; - SourceIdsList: string[]; - EventCategoriesList: string[]; - Enabled?: boolean | null; -} - -// refs: 4 - tags: output, named, interface -export interface DBSecurityGroup { - OwnerId?: string | null; - DBSecurityGroupName?: string | null; - DBSecurityGroupDescription?: string | null; - VpcId?: string | null; - EC2SecurityGroups: EC2SecurityGroup[]; - IPRanges: IPRange[]; -} - -// refs: 4 - tags: output, named, interface -export interface EC2SecurityGroup { - Status?: string | null; - EC2SecurityGroupName?: string | null; - EC2SecurityGroupId?: string | null; - EC2SecurityGroupOwnerId?: string | null; -} - -// refs: 4 - tags: output, named, interface -export interface IPRange { - Status?: string | null; - CIDRIP?: string | null; -} - -// refs: 3 - tags: output, named, interface -export interface DBParameterGroup { - DBParameterGroupName?: string | null; - DBParameterGroupFamily?: string | null; - Description?: string | null; -} - -// refs: 4 - tags: output, named, interface -export interface DBSnapshot { - DBSnapshotIdentifier?: string | null; - DBInstanceIdentifier?: string | null; - SnapshotCreateTime?: Date | number | null; - Engine?: string | null; - AllocatedStorage?: number | null; - Status?: string | null; - Port?: number | null; - AvailabilityZone?: string | null; - VpcId?: string | null; - InstanceCreateTime?: Date | number | null; - MasterUsername?: string | null; - EngineVersion?: string | null; - LicenseModel?: string | null; - SnapshotType?: string | null; - Iops?: number | null; - OptionGroupName?: string | null; - PercentProgress?: number | null; - SourceRegion?: string | null; - StorageType?: string | null; - TdeCredentialArn?: string | null; -} - -// refs: 4 - tags: output, named, interface -export interface OptionGroup { - OptionGroupName?: string | null; - OptionGroupDescription?: string | null; - EngineName?: string | null; - MajorEngineVersion?: string | null; - Options: Option[]; - AllowsVpcAndNonVpcInstanceMemberships?: boolean | null; - VpcId?: string | null; -} - -// refs: 4 - tags: output, named, interface -export interface Option { - OptionName?: string | null; - OptionDescription?: string | null; - Persistent?: boolean | null; - Permanent?: boolean | null; - Port?: number | null; - OptionSettings: OptionSetting[]; - DBSecurityGroupMemberships: DBSecurityGroupMembership[]; - VpcSecurityGroupMemberships: VpcSecurityGroupMembership[]; -} - -// refs: 13 - tags: output, named, interface -export interface DBSecurityGroupMembership { - DBSecurityGroupName?: string | null; - Status?: string | null; -} - -// refs: 13 - tags: output, named, interface -export interface VpcSecurityGroupMembership { - VpcSecurityGroupId?: string | null; - Status?: string | null; -} - -// refs: 9 - tags: output, named, interface -export interface DBInstance { - DBInstanceIdentifier?: string | null; - DBInstanceClass?: string | null; - Engine?: string | null; - DBInstanceStatus?: string | null; - MasterUsername?: string | null; - DBName?: string | null; - Endpoint?: Endpoint | null; - AllocatedStorage?: number | null; - InstanceCreateTime?: Date | number | null; - PreferredBackupWindow?: string | null; - BackupRetentionPeriod?: number | null; - DBSecurityGroups: DBSecurityGroupMembership[]; - VpcSecurityGroups: VpcSecurityGroupMembership[]; - DBParameterGroups: DBParameterGroupStatus[]; - AvailabilityZone?: string | null; - DBSubnetGroup?: DBSubnetGroup | null; - PreferredMaintenanceWindow?: string | null; - PendingModifiedValues?: PendingModifiedValues | null; - LatestRestorableTime?: Date | number | null; - MultiAZ?: boolean | null; - EngineVersion?: string | null; - AutoMinorVersionUpgrade?: boolean | null; - ReadReplicaSourceDBInstanceIdentifier?: string | null; - ReadReplicaDBInstanceIdentifiers: string[]; - LicenseModel?: string | null; - Iops?: number | null; - OptionGroupMemberships: OptionGroupMembership[]; - CharacterSetName?: string | null; - SecondaryAvailabilityZone?: string | null; - PubliclyAccessible?: boolean | null; - StatusInfos: DBInstanceStatusInfo[]; - StorageType?: string | null; - TdeCredentialArn?: string | null; -} - -// refs: 9 - tags: output, named, interface -export interface Endpoint { - Address?: string | null; - Port?: number | null; -} - -// refs: 9 - tags: output, named, interface -export interface DBParameterGroupStatus { - DBParameterGroupName?: string | null; - ParameterApplyStatus?: string | null; -} - -// refs: 12 - tags: output, named, interface -export interface DBSubnetGroup { - DBSubnetGroupName?: string | null; - DBSubnetGroupDescription?: string | null; - VpcId?: string | null; - SubnetGroupStatus?: string | null; - Subnets: Subnet[]; -} - -// refs: 12 - tags: output, named, interface -export interface Subnet { - SubnetIdentifier?: string | null; - SubnetAvailabilityZone?: AvailabilityZone | null; - SubnetStatus?: string | null; -} - -// refs: 13 - tags: output, named, interface -export interface AvailabilityZone { - Name?: string | null; -} - -// refs: 9 - tags: output, named, interface -export interface PendingModifiedValues { - DBInstanceClass?: string | null; - AllocatedStorage?: number | null; - MasterUserPassword?: string | null; - Port?: number | null; - BackupRetentionPeriod?: number | null; - MultiAZ?: boolean | null; - EngineVersion?: string | null; - Iops?: number | null; - DBInstanceIdentifier?: string | null; - StorageType?: string | null; -} - -// refs: 9 - tags: output, named, interface -export interface OptionGroupMembership { - OptionGroupName?: string | null; - Status?: string | null; -} - -// refs: 9 - tags: output, named, interface -export interface DBInstanceStatusInfo { - StatusType?: string | null; - Normal?: boolean | null; - Status?: string | null; - Message?: string | null; -} - -// refs: 1 - tags: output, named, interface -export interface DBEngineVersion { - Engine?: string | null; - EngineVersion?: string | null; - DBParameterGroupFamily?: string | null; - DBEngineDescription?: string | null; - DBEngineVersionDescription?: string | null; - DefaultCharacterSet?: CharacterSet | null; - SupportedCharacterSets: CharacterSet[]; -} - -// refs: 2 - tags: output, named, interface -export interface CharacterSet { - CharacterSetName?: string | null; - CharacterSetDescription?: string | null; -} - -// refs: 1 - tags: output, named, interface -export interface DescribeDBLogFilesDetails { - LogFileName?: string | null; - LastWritten?: number | null; - Size?: number | null; -} - -// refs: 1 - tags: output, named, interface -export interface EngineDefaults { - DBParameterGroupFamily?: string | null; - Marker?: string | null; - Parameters: Parameter[]; -} - -// refs: 1 - tags: output, named, interface -export interface EventCategoriesMap { - SourceType?: string | null; - EventCategories: string[]; -} - -// refs: 1 - tags: output, named, interface -export interface Event { - SourceIdentifier?: string | null; - SourceType?: SourceType | null; - Message?: string | null; - EventCategories: string[]; - Date?: Date | number | null; -} - -// refs: 1 - tags: output, named, interface -export interface OptionGroupOption { - Name?: string | null; - Description?: string | null; - EngineName?: string | null; - MajorEngineVersion?: string | null; - MinimumRequiredMinorEngineVersion?: string | null; - PortRequired?: boolean | null; - DefaultPort?: number | null; - OptionsDependedOn: string[]; - Persistent?: boolean | null; - Permanent?: boolean | null; - OptionGroupOptionSettings: OptionGroupOptionSetting[]; -} - -// refs: 1 - tags: output, named, interface -export interface OptionGroupOptionSetting { - SettingName?: string | null; - SettingDescription?: string | null; - DefaultValue?: string | null; - ApplyType?: string | null; - AllowedValues?: string | null; - IsModifiable?: boolean | null; -} - -// refs: 1 - tags: output, named, interface -export interface OrderableDBInstanceOption { - Engine?: string | null; - EngineVersion?: string | null; - DBInstanceClass?: string | null; - LicenseModel?: string | null; - AvailabilityZones: AvailabilityZone[]; - MultiAZCapable?: boolean | null; - ReadReplicaCapable?: boolean | null; - Vpc?: boolean | null; - StorageType?: string | null; - SupportsIops?: boolean | null; -} - -// refs: 2 - tags: output, named, interface -export interface ReservedDBInstance { - ReservedDBInstanceId?: string | null; - ReservedDBInstancesOfferingId?: string | null; - DBInstanceClass?: string | null; - StartTime?: Date | number | null; - Duration?: number | null; - FixedPrice?: number | null; - UsagePrice?: number | null; - CurrencyCode?: string | null; - DBInstanceCount?: number | null; - ProductDescription?: string | null; - OfferingType?: string | null; - MultiAZ?: boolean | null; - State?: string | null; - RecurringCharges: RecurringCharge[]; -} - -// refs: 3 - tags: output, named, interface -export interface RecurringCharge { - RecurringChargeAmount?: number | null; - RecurringChargeFrequency?: string | null; -} - -// refs: 1 - tags: output, named, interface -export interface ReservedDBInstancesOffering { - ReservedDBInstancesOfferingId?: string | null; - DBInstanceClass?: string | null; - Duration?: number | null; - FixedPrice?: number | null; - UsagePrice?: number | null; - CurrencyCode?: string | null; - ProductDescription?: string | null; - OfferingType?: string | null; - MultiAZ?: boolean | null; - RecurringCharges: RecurringCharge[]; -} diff --git a/lib/services/route53@2013-04-01/mod.ts b/lib/services/route53/mod.ts similarity index 100% rename from lib/services/route53@2013-04-01/mod.ts rename to lib/services/route53/mod.ts diff --git a/lib/services/route53@2013-04-01/structs.ts b/lib/services/route53/structs.ts similarity index 100% rename from lib/services/route53@2013-04-01/structs.ts rename to lib/services/route53/structs.ts diff --git a/lib/services/s3@2006-03-01/mod.ts b/lib/services/s3/mod.ts similarity index 100% rename from lib/services/s3@2006-03-01/mod.ts rename to lib/services/s3/mod.ts diff --git a/lib/services/s3@2006-03-01/structs.ts b/lib/services/s3/structs.ts similarity index 100% rename from lib/services/s3@2006-03-01/structs.ts rename to lib/services/s3/structs.ts diff --git a/lib/services/ses@2010-12-01/mod.ts b/lib/services/ses/mod.ts similarity index 100% rename from lib/services/ses@2010-12-01/mod.ts rename to lib/services/ses/mod.ts diff --git a/lib/services/ses@2010-12-01/structs.ts b/lib/services/ses/structs.ts similarity index 100% rename from lib/services/ses@2010-12-01/structs.ts rename to lib/services/ses/structs.ts diff --git a/lib/services/sesv2@2019-09-27/mod.ts b/lib/services/sesv2/mod.ts similarity index 100% rename from lib/services/sesv2@2019-09-27/mod.ts rename to lib/services/sesv2/mod.ts diff --git a/lib/services/sesv2@2019-09-27/structs.ts b/lib/services/sesv2/structs.ts similarity index 100% rename from lib/services/sesv2@2019-09-27/structs.ts rename to lib/services/sesv2/structs.ts diff --git a/lib/services/sns@2010-03-31/mod.ts b/lib/services/sns/mod.ts similarity index 100% rename from lib/services/sns@2010-03-31/mod.ts rename to lib/services/sns/mod.ts diff --git a/lib/services/sns@2010-03-31/structs.ts b/lib/services/sns/structs.ts similarity index 100% rename from lib/services/sns@2010-03-31/structs.ts rename to lib/services/sns/structs.ts diff --git a/lib/services/sqs@2012-11-05/mod.ts b/lib/services/sqs/mod.ts similarity index 100% rename from lib/services/sqs@2012-11-05/mod.ts rename to lib/services/sqs/mod.ts diff --git a/lib/services/sqs@2012-11-05/structs.ts b/lib/services/sqs/structs.ts similarity index 100% rename from lib/services/sqs@2012-11-05/structs.ts rename to lib/services/sqs/structs.ts diff --git a/lib/services/ssm@2014-11-06/mod.ts b/lib/services/ssm/mod.ts similarity index 100% rename from lib/services/ssm@2014-11-06/mod.ts rename to lib/services/ssm/mod.ts diff --git a/lib/services/ssm@2014-11-06/structs.ts b/lib/services/ssm/structs.ts similarity index 100% rename from lib/services/ssm@2014-11-06/structs.ts rename to lib/services/ssm/structs.ts diff --git a/lib/services/sts@2011-06-15/mod.ts b/lib/services/sts/mod.ts similarity index 100% rename from lib/services/sts@2011-06-15/mod.ts rename to lib/services/sts/mod.ts diff --git a/lib/services/sts@2011-06-15/structs.ts b/lib/services/sts/structs.ts similarity index 100% rename from lib/services/sts@2011-06-15/structs.ts rename to lib/services/sts/structs.ts